Repository navigation
Promote development to main: 1.5.0 — CRAF'd delivers into its own Appwrite project - #358
Merged
Merged
Conversation
…324) `pyproject.toml` pinned `views-frames = ">=2.0.0,<3"`. views-models' pod runners require views-frames >= 3.0.0, so the cap meant this repository could not be installed alongside the ensemble lane that produces its input. That is the real cost; it is not a correctness problem. The cap excluded a release that changes nothing here. The whole 3.0.0 MAJOR is in `views_frames_reconcile` (donor fill for empty-grid draws, views-frames ADR-030), which this repository does not import — reconciliation left in #62. `views_frames/io/arrow.py`, the only views_frames module that produces bytes we publish (`contract/wire/shard.py:34`), is byte-identical across the boundary: `git diff v2.0.0..v3.0.0 -- views_frames/io/` is empty. Proved the way the fixture README requires, rather than argued. Regenerating the ADR-013 §10 golden fixture under views-frames 3.0.0 at the pinned toolchain reproduces all five artifacts byte-identically — SHA256SUMS unchanged, the arrow shard still `203650fd…12c54`. Full suite on Python 3.11 with the resulting locked set: 527 passed, 3 skipped, 41 xfailed, 0 failed. The lock moves so CI asserts the new ceiling instead of leaving it a claim, and it carries views-pipeline-core 3.3.0 -> 3.4.0 with it: 3.3.0 capped `views-frames <3.0.0`, so frames 3.x is not reachable alone. Both land inside ranges already declared here. Floors stay at views-frames 2.0.0 and views-pipeline-core 3.0.0 deliberately — (frames 2.x + pipeline-core 3.3.x) is still a coherent resolution and nothing here needs 3.x. Also corrects the fixture README, which recorded pipeline-core's `<2.0.0` cap as a live blocker. It is not one any more, and a comment asserting a blocker that has been lifted is the shape that manufactured three false findings in this platform two days ago. Answers #324's question as asked ("can 2.x read shards published by 3.x?") by noting its premise does not hold: Hop-A does not read through views_frames at all. `contract/track_a_source.py:82-86` decodes the Track-A archive with zipfile + np.load + json.loads, so inbound shard bytes are a pipeline-core contract. The one views-frames serialization call in this repository is outbound. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
Review found two factual defects in 5c8a08a's own prose. Both are real. **1. The proof command was vacuous.** Both files quoted git diff v2.0.0..v3.0.0 -- views_frames/io/ # "is empty" as the evidence that the arrow writer is unchanged. views-frames uses a **src layout**: the package is at `src/views_frames/io/`. That pathspec matches nothing in either tree, so git prints nothing and exits 0 — it returns empty whether or not arrow.py changed. Demonstrated: the same form aimed at `views_frames/conformance/`, a directory that definitely changed in 3.0.0, is also empty. This is the guards-that-cannot-fire family, and the placement makes it worse than a typo. The fixture README exists so "the byte question is not re-opened", so the next person raising this pin would have re-run a command that cannot fail and read it as a pass. Corrected to `src/views_frames/io/`, and the README now carries a **control** line (`-- src/views_frames/`, which must be NON-empty) with the reason: an empty result from `git diff` does not distinguish "nothing changed" from "nothing matched". The paragraph says plainly that its own first draft had the bug. The underlying claim was true. `git diff v2.0.0..v3.0.0 -- src/views_frames/io/` is genuinely empty; arrow.py is byte-identical across the tags. The byte-parity conclusion and the regenerated fixture stand. **2. "The 3.0.0 MAJOR is confined to `views_frames_reconcile`" was overstated.** The MAJOR also touches `views_frames/conformance/__init__.py`, which moves its published `CONFORMANCE_FLOOR` from 2.0.0 to 3.0.0. Accurate claim, now written: the *behavioural* change is confined to the reconcile package; the floor constant also moves, and is inert here because nothing in this repo reads it (`grep -rn CONFORMANCE_FLOOR` returns nothing). The non-import claim was correct as written and is unchanged — `views_frames_reconcile` has no importer here. Not rewriting history to fix this: 5c8a08a's message still quotes the bad pathspec. Force-pushing is the operator's call in this repository, and the record of the correction is more useful than a clean one. Unchanged: 527 passed, 3 skipped, 41 xfailed, 0 failed on Python 3.11 with the locked set; ruff clean; `poetry check --lock` clean. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
/review-diff finding (Category D, duplication): the 3.0.0 rationale was stated in full twice — once in the `pyproject.toml` pin comment and once in `tests/fixtures/wire_contract/README.md`. Two copies of one explanation, which is the shape this repo has been moving away from. The fixture README is the right home and already says so: it carries the 1.10.2 and 2.0.0 byte measurements as a series and exists specifically so "the byte question is not re-opened". So the pin comment now states the decision and its pin-specific facts — the operational reason the cap had to go, the pipeline-core 3.4.0 coupling, why the floors stay — and points at that file for the evidence, with the instruction to read it before raising the pin again. Drops the duplicated arrow.py / CONFORMANCE_FLOOR paragraph and the test counts from `pyproject.toml`; both live in the README, dated, where a stale number is legible as history rather than read as a current claim. 28 comment lines to 18. No behaviour change; the constraint is untouched. Still 527 passed, 3 skipped, 41 xfailed, 0 failed on Python 3.11 with the locked set; ruff and `poetry check --lock` clean. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
chore(deps): lift the views-frames cap to <4 — measured, not assumed (#324)
The module docstring claimed FAO receives ``(N, S≈1024)`` draws per cell. That was a design target stated as delivered fact, and it named the wrong consumer: ADR-013 §6's gate is partner-neutral and has run for CRAF'd as well as FAO since #153. Rather than correct the number, remove it. The delivered width is a property of the run, declared in the §2 header and floored per product by ``S_MIN``; a value written into this docstring is a third copy of a fact with two homes, and it is the copy nothing checks. It had already drifted once. Measured today: the staged chrome_box wire's headers declare ``sample_count = 1024`` in all 108 shards, with ``num_rows / 64,742 = 1,024`` — one ensemble's pooled width, not a constant. ``docs/ADRs/013`` §74 is left alone: it says production *aims* at S≈1024, which is true as an aim. The docstring's error was restating an aim as a measurement. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
Review of the previous commit caught that it asserted the floor has exactly two declared homes while check 3's own description, unchanged in the same docstring, named a third: "the consumer-facing floor (2 for the walking skeleton; region-pinned for production)". Measured: nothing region-pins the draw width. Neither product module mentions ``region`` at all, and ``delivery/coverage.py`` pins cell counts, not sample widths. The floor is a plain per-product constant. So the fix for one stale copy of a fact shipped beside another stale copy of the same fact. Also tightened the paragraph the previous commit added: it said the header and ``S_MIN`` were "its two homes", eliding that the header declares the width while ``S_MIN`` declares the floor — two facts, not one with two homes, which is the distinction the paragraph exists to draw. ruff clean; 41 passed on -k "draws or collapse or doc_accuracy". Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
…widened Intake for the findings the max review verified and this branch does not fix. Nothing here changes code. New, tiered on evidence rather than on how alarming they read: - C-113 (T2) `coverage.py:62,99` collapse "no region declared" into the same return as "a named region that is not pinned". The second is supported and documented (africa_me_legacy); the first is ADR-003 inference by omission and silently no-ops both coverage gates. One branch fixes all six call sites. - C-114 (T3) the S7 stub reports XFAIL for a ValueError or FileNotFoundError raised by its own probe, and a rename of `resolve_latest` to the port's real method name XPASSes it into a hard red on a required check. - C-115 (T3) the credential warning names the key both deliveries authenticate with from `min()` over timestamps the same file calls invented. - C-116 (T2) `ACKNOWLEDGED_UNTIL` is bounded only by the expiry, so the 2027 move widened the escape to swallow 29 of the 30 lead days. - C-117 (T3) the seam drift detector projects three fields, so the pinned registry still declaring two retired keys dying 2026-11-17 is invisible. - C-118 (T2) the views-frames `<4` justification is unguarded prose, and the re-check it points at is scoped to the one directory the MAJOR did not change. - C-119 (T3) resolving C-84/C-110 left C-86 and Cluster N asserting a red build that is green. Widened rather than duplicated: C-107 gains the two stale *claims* found in `delivery/draws.py` as evidence that the unscanned corpus rots in two ways, not one. They are fixed on docs/draws-docstring-stale-sample-width, so they are recorded as evidence, not as an open defect. Not registered: every finding scoped only to the untracked tests/test_falsify_coverage_region_is_declared.py, which is in no commit. Its root cause is C-113. Counts 113 -> 120 total, 30 -> 37 open; verified 37 + 83 against the section bodies, not the header. test_register_integrity.py 12 passed — it caught a missing `---` fence on the first entry, which is what it is for. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
… is not a verdict
The docstring work on this branch asserted that check 4 fails "only [when]
*every* row is draw-degenerate". For an empty payload the code did not honour
that, so fixing the prose without fixing the code would have left the file
self-contradictory in a new way. Both found by /code-review max's sweep.
**Empty payload, misdiagnosed.** `np.any(arr != arr[:, :1], axis=1).any()` over
zero rows is False, so the degeneracy branch fired. Measured before the fix:
(0, 8) -> "every one of the 0 rows is draw-degenerate (all 8 draws
identical per row)"
(3, 0) -> "every one of the 3 rows is draw-degenerate (all 0 draws
identical per row)"
Vacuously true, and it pointed the reader at the summarizer and the ADR-013 §6
contract when the real fault was a target that resolved to no rows — which would
have delivered zero cells to a partner. Now refused as what it is, naming the
resolution step upstream. (The `(3, 0)` shape is unreachable in production:
check 2 or check 3 catches a zero width first, since S_MIN is 2.)
**Ragged input, mislabelled.** `np.asarray([[1,2],[3]])` raises numpy's bare
`ValueError`, and because `DrawsCollapseError` subclasses `ValueError` a caller
catching the narrow type missed it while a caller catching `ValueError` blamed
the §6 policy gate for malformed input. Now wrapped, saying that nothing about
the draws has been checked.
Both refusals are documented as sitting **outside** §6's four rules, because in
both cases there is no payload to judge. The four-rule numbering is deliberately
left intact: ADR-013 counts four, and renumbering would widen the drift that
review finding (c) already records.
ruff clean; tests/test_draws.py 12 passed; full suite 529 passed, 3 skipped,
41 xfailed, 0 failed (excluding the untracked stub, which is in no commit).
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
… fixed The max review's Phase 3 sweep landed after its hand-back. Of its six findings, three were fixed as code on docs/draws-docstring-stale-sample-width (the empty payload misdiagnosis and the ragged-input Raises hole). These are the rest. - C-120 (T3) ADR-013 is now the stale copy of §6. `:1126` carries an OPEN maintainer item — '§6 "region-pinned" production S_min: the term was never defined' — and the docstring quoted that undefined term as fact until 5d6262e deleted it. Deleting a term is not defining it, so the item stands. `:730` still scopes the gate to the FAO delivery and calls the sink leg unbuilt; `:1201` still says the four rules match draws.py exactly. - C-121 (T3) test_an_acknowledgement_cannot_outlive_the_expiry returns early on ACKNOWLEDGED_UNTIL is None and has never run its assertion, while the register credits it among four companion tests "verified by mutation". Its sibling got a derived probe precisely so C-102 could not apply; this one did not. - C-122 (T3) test_the_manager_asserts_both_axes reads unfao's manager by hardcoded path and never crafd's. Ninth in the #211 family, in a repo whose conftest declares PARTNER_PACKAGES to end exactly this. Fixed rather than registered: pyproject's pytest comment read "the suite runs on 9.x today; 8.x still works". Measured — the lock pins 8.4.2, `poetry check --lock` exits 0, the installed runtime is 8.4.2. 8.x is not the fallback, it is the only resolution, so the comment was backwards about which pytest the green suite was measured on. One line, below the register's signal threshold. Counts 120 -> 123 total, 37 -> 40 open; verified 40 + 83 against the section bodies. test_register_integrity caught an extra blank line after the fence, as it did the missing fence last time. 45 passed across register, lock and doc-accuracy guards. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
…verclaim /falsify, claim mode, on "ready to merge": FALSIFIED by the prose added in 2190bd6. It said the two new refusals mean "the Raises contract below holds for every input". Measured: s_min=None -> TypeError (escapes DrawsCollapseError) s_min="2" -> TypeError (escapes DrawsCollapseError) Both from check 3's `sample_count < s_min`. Since DrawsCollapseError subclasses ValueError, neither is catchable as a draws failure, so "every input" was false on the third probe that looked for it. Narrowed to what was measured: no *payload* can now reach a caller as a bare ValueError, and the declared ints remain unenforced — stated explicitly, with the reason it is tolerable (sink.py passes a product constant) rather than left for the next reader to discover. This is the third stale or overstated claim in this one docstring, and the second one introduced while fixing the previous. Recorded in the commit rather than the prose, because the file does not need a changelog of its own prose. ruff clean; full suite 529 passed, 3 skipped, 41 xfailed, 0 failed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
…e-sample-width draws.py: the docstring lied about S, and the code lied about empty payloads
…w-max-findings chore(register): seven findings from /code-review max
…orces half of it /falsify's two soft falsifications from the #329 review, the only findings from this session's audits that were still untracked. Re-measured before registration rather than copied from the audit output: s_min=None and s_min="2" both escape check 3 as TypeError (neither a DrawsCollapseError nor a ValueError, so uncatchable by either narrow type), and a 2-D DataFrame passes all four checks because np.asarray coerces it. Registered at Tier 3, not 2: unreachable today — both products declare S_MIN: int = 2 and both managers pass that constant. Not 4 either, because the floor is the one argument scheduled to stop being a literal. Merged into nothing: C-107 is the same docstring but the opposite shape (prose drifted from code; here the prose is accurate and the code falls short), so this is cross-referenced rather than folded in. The failing stubs stay out of tests/ for the reason C-114 records. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
…e ways
C-119's trigger was "the next /review-rr pass". This was it, so C-119 is
discharged — and the pass found a fifth stale record it had missed (C-111,
listed live in Cluster N beside the C-110 that C-119 did catch).
Five cluster drifts, every one findable only by reading:
G advertised "Highest tier: 1 (C-26)" three months after C-26 re-tiered
itself to 2, so the register displayed a Tier 1 it does not have; it
also listed the resolved C-27 as a live member
H listed C-30 among the fully resolved while C-30 is open at Tier 2 with
a declared upstream-regression residual
M named "Highest tier: 2 (C-73)" five lines below the paragraph
explaining that C-73 closed at the 3.0.0 bump and C-72 did not
N carried C-110 and C-111 as live members after both resolved
That is Cluster I's August residual landing exactly as written: "The guard
covers entries. It does not cover the Causal Clusters section." No guard is
proposed — ADR-014 §2 says why the obvious one cannot work.
Two new clusters, because 29 of 41 open entries belonged to none:
O "A guard that cannot fail" — C-108, C-113, C-114, C-116, C-121, C-122,
C-123. Seven entries, one review habit: a declaration nothing enforces
or a check that cannot fire. Nothing in the suite can report these,
because a guard that cannot fail is green.
P "The delivery has no return channel" — C-94, C-87, C-92. Three Tier 2s
stating the same consequence in nearly the same words.
Location citations, measured rather than re-read:
C-242 cited unfao.py:440 — past the end of a 437-line file; the write
is at :435
C-113 cited crafd.py:223,299,415 — the call sites are :228-229, :300-301,
:419. Wrong on the day it was written, the managers' last change
predating it, which sharpens C-109's point: the decay is not only
over time
D-09 cited three ranges, one of which its own body says stopped existing
C-97/C-15/C-24 cited in-repo paths without the package prefix
C-109's trigger was a symptom ("when a Location is used and the code is not
there"); rewritten as the action this pass performed, which found two wrong
out of the eleven entries filed yesterday.
Expired triggers in resolved bodies: C-84's and C-110's both still read as
pending, and C-84 kept its entire pre-resolution argument below the
resolution in the present tense. Fenced and past-tensed rather than deleted
— the rejected key-validity preflight is worth not re-proposing.
Not done, deliberately: C-242's 200-series ID (one digit from the
views-pipeline-core C-241 the guard already caught once), D-11's misfiling
under open Disagreements, the C-92→C-87 and C-100+C-106 merges, and moving
C-40's standing-work half to an issue. Each changes entry identity or the
open count.
Four blind spots recorded in the plan and not registered, per the skill —
the largest being that this week's measured datafactory regression has no
entry here at all.
40 open, 84 resolved, 124 total. test_register_integrity 12 passed; full
suite 529 passed, 3 skipped, 41 xfailed, unchanged from before the edit.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
…-curation register: /review-rr strategic — five cluster drifts, two new clusters, C-119 discharged
…3) (#335) * fix(coverage): an undeclared region is a refusal, not a skipped gate (C-113) `expected_for(None)` returned None and `excluded_for(None)` returned an empty set — the same values a region that is DECLARED but not pinned returns. So a launch config omitting `region` shipped a delivery whose cell curation and completeness check had both done nothing, reported as a supported configuration. One of the two is supported: `africa_me_legacy` is deliberately unpinned because "complete" is ambiguous there. The other is ADR-003 inference by omission. The refusal goes where this repo already keeps launch declarations, not into a new guard beside the gates: `launch_config.assert_region_declared`, sibling of `assert_contract_mode` and `assert_frame_native_historical`, called from `_read_forecast_data` before any store call. `delivery/coverage.py` holds the same rule at the invariant for every other caller — `RegionNotDeclaredError` on undeclared, None/empty still for declared-but-unpinned. `RegionNotDeclaredError` is not a `CoverageError` subclass, deliberately. Nothing was delivered wrongly; the question could not be asked, and a caller catching CoverageError must not mislabel it as a coverage failure. A second, silent half fixed with it: the count gate logged its skip and the exclusion gate did not, so an uncurated delivery left half its evidence in the run log. Both gates now report their own skip INSIDE the invariant — `assert_complete_coverage` accepts None, `assert_no_excluded_cells` accepts an empty manifest. That is also what let this land: putting the reporting in the managers tripped the 300-line ratchet at 319, and the ratchet was right (C-40 (a)). Both skips are now proven by caplog with no framework at all, and the managers got shorter rather than longer. The entry's warning was the load-bearing part — "a guard refusing any region absent from EXPECTED_CELLS would make africa_me_legacy unlaunchable". The uncommitted falsification stub prescribed exactly that; it is not adopted, and a test now pins the opposite. Also corrects coverage.py's header pointer to a module deleted in #151 — one of the two stale docstring pointers C-107 names. 16 new tests, suite 529 -> 545 passed. C-113 moves to Resolved; Cluster O records its first discharge. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9 * fix(coverage): the C-113 fix was half a fix — the forecast leg, and a misspelling Review and an independent guard audit on this branch both found that the first commit closed the smaller leg and claimed the pair. The forecast leg. Coverage is not asserted in the managers for forecasts: it is asserted in `TargetLease.load`, where the frame exists. Both calls there were wrapped in `if self.excluded_gids:` / `if self.expected_cells is not None:`, so a region that pins neither ran every target with both gates skipped and nothing in the run log. That is the silence C-113 is about, on the leg that does most of the checking. Both `if`s are gone; each gate reports its own skip. A misspelling. `assert_region_declared` accepted any non-empty string, so `region: "lnd_gaul"` passed it, missed both lookups, and skipped both gates while reporting itself as the deliberately-unpinned configuration. KNOWN_REGIONS now declares the regions this delivery recognises, separately from whether a region's cell count is pinned: `africa_me_legacy` is known and still unpinned, and still launches. An unrecognised name raises UnknownRegionError at the invariant and LaunchConfigError at launch, each naming the known set and both repair paths. Two tests from the first commit pinned the old behaviour and are rewritten. The guard audit applied 38 mutations and 7 survived, all at the call sites this change created an obligation for, or in the declaration the invariant trusts: restoring the caller-side `if`s in both managers, adding a fictional region to KNOWN_REGIONS, deleting both ADR-008 `logger.error` calls, deleting the manager call site, and swapping the load-bearing gate order all left the suite green — and one new test asserted something untrue of itself (it claimed the exclusion gate fired where `drop_units` had already removed the cell). All seven are closed: an ast scan of both managers' `_check_coverage`, a cross-check of KNOWN_REGIONS against views-datafactory's own regions.py, two entries in test_env_declaration's _REFUSALS, a parametrised manager source scan, call-order and line-order assertions, and an honest exclusion-gate test. Register: C-113's resolution amended with both findings and the audit. New C-124 — the §6 draws gate catches `Exception` and reports a MemoryError as malformed producer input. Registered, not fixed here, so draws.py stays out of this diff. C-117 and C-123 location notes corrected. 565 passed, 3 skipped, 41 xfailed; ruff clean — measured in the poetry.lock env. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9 * chore(register): C-124 is tracked as views-postprocessing#336 The entry said what to do and why it was not done on this branch; it did not say where the work now lives. A register entry with no home for its remedy is how C-40's standing-work half became hard to find. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9 --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
…elves, and a settled disagreement sat open for 16 weeks
All 12 existing integrity checks passed, so every finding here is in the half the
guard does not cover: the Causal Clusters prose, and entry bodies.
Corrected, each a false statement the register made about itself:
- Cluster M was titled "Six open concerns" and has held exactly one (C-72) since
2026-08-03 — which its own Entries line already said. Renamed, with the note
that it closes when C-72 closes: a one-member cluster has no shared root cause.
- Cluster H's Fix-strategy line said "this cluster is discharged" while the
Resolution-scope line directly below it recorded C-30 as open at Tier 2. The
cluster is live and its only live purpose is being C-30's home — no other
cluster covers upstream regression on a views-datafactory region definition.
- D-11 carried "SETTLED 2026-07-31" and "CONDITION MET 2026-08-01" and stated
outright that no live tension remained, while filed under ## Disagreements.
Moved to Resolved Disagreements.
Owner added to the nine open entries without one (C-15, C-24, C-26, C-28, C-30,
C-40, C-72, C-98, C-100 — four of them Tier 2). Every value is derived from what
the entry or its cluster already states, not assigned: C-26/C-28 from Cluster G's
"genuinely upstream-owned", C-24 from its own "the repo that owns the fix",
C-72 from "where the exposure actually sits: views-faoapi". Owner is not in the
guard's required set and the nine were the oldest entries, which is why they
drifted; the required set is left alone deliberately, since backfilling a field
is cheaper than failing CI on history.
C-109's trigger fired and is discharged: 19 Location references across the 11
entries filed since 2026-11-12, 0 unresolvable. The entry now records what that
does NOT prove — a line can be in range and point at unrelated code — and that
the trigger is perpetual by construction and kept that way on purpose, because
the subject is decay and the only honest trigger for decay is the clock.
New guard, test_no_settled_entry_sits_under_an_open_section, widening the
existing check twice: it scans ## Disagreements as well as ## Open Concerns, and
reads bodies rather than only headings. Both gaps were needed to hide D-11.
The pattern is anchored (bold, line-initial) because a looser one reported eight
false positives, every one a legitimate partial discharge ("RESIDUAL DISCHARGED
2026-07-27") or a cross-reference to another closed entry. Measured when written:
0 matches under Open Concerns, 1 under Disagreements, 34 under Resolved Concerns.
Mutation-tested rather than assumed, since a guard that cannot fail is this
register's own Cluster O: a settled marker injected under Open Concerns and again
under Disagreements each turned it red, and both were reverted. The existing
fence guard also caught a real error in this change — the C-109 note was first
written past the entry's closing rule, stranding C-112.
Not done, and recommend-only per the skill: three blind spots need register-risk,
the sharpest being that nothing covers a zero-filled upstream tail meeting an
observed-range clip documented to degrade open (C-26 + C-103), which is live
against the artifact published 2026-11-22.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
…back to the shelf (#327) The CRAF'd delivery read and wrote one project. Since 2026-11-11 the audience has its own, and views-crafdapi reads only that one — so a delivery switched on today would have landed where nothing reads it. Two connections now, not one: - the SHELF (shared project, producer key) is READ - the AUDIENCE (CRAF'd's own project, publisher key) is WRITTEN `contract/audience.py` refuses the case an absence check cannot see: both coordinates present and equal. It takes primitives only, so it is testable with no Appwrite environment and no pipeline-core, and it names no partner, so a clone gets it free. There is no fallback — a missing, blank or equal audience project is a refusal, never a write to the shelf — and no refusal message prints a project id, because this repository is public and its CI logs are world-readable (C-89). The publisher key's env-var name is minted by the coordinate registry in edition v1.9.1 (views-appwrite#211 -> PR #212, promoted to main in #213, tagged appwrite-seam-v1.9.1). The pin moves to that commit. Raises the views-pipeline-core floor to >=3.6.0 for its TablesDB metadata writes, without which a key issued after Appwrite's 1.8 rename uploads files and then 401s on the metadata row, leaving an orphan with an exit-0 run (ADR-047). This changes what the next FAO run installs: pipeline-core 3.3.5 -> 3.6.0 and, because 3.6.0 requires it, views-frames 2.0.0 -> 3.0.0. Accepted by the operator 2026-11-27. Registers C-125, found while completing the pin: both guards on it were being run on Python 3.10, below this project's declared floor of 3.11, where one skipped quietly and the other aborted collection. The suite reported `passed` with the guards subtracted, and a pin that contradicted itself survived that run. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
…ect, and fix twelve more review findings (#327) The #327 guarantee was not guarded. `/code-review max` on #356 found, and I reproduced, that the whole `assert_audience_is_not_the_shelf` call could be DELETED from `_partner_appwrite_config`, its two project ids transposed, or `project_id=` repointed at the shared project — and the suite stayed green in all three. Nine tests exercised the rule; none asserted the `AppwriteConfig` the manager actually builds. That is this repository's own cluster O ("a guard that cannot fail"), in a change that had just registered C-125 for another instance of it. Ten mutations now fail the suite, each applied and run, each reverted: delete the call; transpose its project ids; repoint project_id; drop the shelf tuple from the environment assertion; return the unstripped value; drop the ERROR log; never compare credentials; pass on a blank shelf id; drop the publisher key from KEY_EXPIRY; drop the two new coordinates from the class map. The rule itself, six findings: - every parameter keyword-only — four same-typed strings from four similar coordinates transpose, and a SYMMETRIC equality check passes when they do; - the credential is compared too, never printed. A key authenticates against exactly one project, so audience-project-plus-shelf-key is as broken as the collision and fails as a 401 inside the delivery instead of as a refusal; - a blank or non-str shelf id is now a REFUSAL, not a pass. It previously skipped the comparison and then logged "two distinct projects" having compared nothing — the polarity C-113 was closed to fix, reintroduced; - the returned value is stripped, so the client gets the value that was checked; - every refusal is logged at ERROR as well as raised (ADR-008). Failure was the quieter outcome: nothing logged on refusal, an INFO line on success; - `APPWRITE_DATASTORE_PROJECT_ID` is declared on this path. It was the check's second operand while being asserted only in a different function on a different path. One connection resolution per delivery, shared by the upload and the C-94 read-back. Two independent `os.getenv` sweeps minutes apart meant the read-back could verify a different project than the write. Two pyproject justifications were wrong and are corrected. The claimed mechanism — files uploaded, metadata 401ing, orphans, exit 0 — does not exist: at pipeline-core 3.4.0 `upload_file_with_metadata` calls `check_file_exists_by_hash` BEFORE storage and returns failure, and `store_port.py` raises so the run exits non-zero. The cited "ADR-047" names no document here. And the views-frames paragraph still said pipeline-core capped frames below 3.0.0; 3.6.0 requires `>=3.0.0`, so TWO majors move on FAO's next run, not one. `publisher-2026-11` added to the expiry tripwire with a role map, because its message said both delivery paths authenticate with the earliest key — which would have sent the operator to rotate a key that had not expired. Docs: vpp_018 records the standing rule (CLAUDE.md requires an ADR, and there was none). README gained both connections; it listed neither new coordinate, so the only operator reference could not say where either value comes from. CLONING.md and the CIC both said the two managers "change no behaviour" — measured 31/53 lines and they now do. Budgets raised with measurements rather than squeezed: package 732 -> 760, manager 450 -> 475, both with ~20 lines of headroom because zero turns the next unrelated comment into a red build. The review's own remedy — moving the byte-identical 111-line store port into `contract/` — is NOT taken: that duplication is C-33, re-affirmed with reasons, and a line budget is not its stated trigger. Registers C-126 (none of this code has executed, and views-models does not export the two coordinates — cross-repo) and C-127 (six container coordinates now addressed against two projects, their registry rows carrying no project scope). C-125's control measurement corrected: it quoted a recalled 573/2 in the entry about trusting an unwatched run. 587 passed, 1 failed on Python 3.11.15 — the failure being the environment-drift guard reporting this prefix has not been reinstalled since the floor moved. ruff clean. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
…oints at views-models#755 Read in views-models rather than inferred from a grep: `platform_env.sh` exports coordinates generically from the registry, so `APPWRITE_CRAFD_PROJECT_ID` resolves there with no change at all. Only the SECRET is single-slotted — `PLATFORM_ENV_SECRET_NAME` at `:68`, with one `.env` lookup, one export and one presence check behind it — so the publisher key is the whole of what has nowhere to live. The entry said "the two coordinates", which overstated the change that repository has to make. It also failed to cite views-models#755, which has tracked exactly this since 2026-11-25 and deliberately leaves the direction open because it touches their single-writer rule. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
…tion-327 CRAF'd delivers into CRAF'd's own Appwrite project, with no fallback to the shelf (#327)
…e project Bumps the declared version ahead of the tag, because `tests/test_release_version.py` requires the tag and `pyproject.toml` to agree and a consumer reads the installed number to decide what the build can do (views-models#294). Tag `1.1.0` was once cut while pyproject still said `1.0.0`; this ordering is why. The changelog entry is written for the consumer, not the commit log: two environment values the CRAF'd path now requires and did not before, the refusal that replaces a fallback, and the two major dependency versions that move on the next install of either product. The UN-FAO path is unchanged apart from that install. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
release: 1.5.0 — the CRAF'd delivery writes into CRAF'd's own Appwrite project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Promotes
developmenttomainso tag1.5.0can be cut there. Tags in this repository live onmain—1.3.0and1.4.0both are — andviews-models' launchers install this package by tag, so nothing downstream can use any of this until a tag exists.23 commits, 16 of them non-merge. The release itself is the last two; the rest is work merged to
developmentsince1.4.0and never promoted.The release
#356 / #327 — the CRAF'd delivery writes into CRAF'd's own Appwrite project. Two connections instead of one: the shared store is read with the platform key, CRAF'd's own project is written with a key of its own. Those became separate projects on 2026-11-11 and this package addressed only the shared one, so a CRAF'd delivery made before this would have written where the consuming API does not look, with the upload succeeding and nothing reporting it.
If the two cannot be proven distinct — a missing, blank, or shared-project value, or one key used for both — the run refuses before any byte moves. There is no fallback and no override, because falling back to the shared store is the failure being prevented. Decision:
docs/ADRs/018_one_audience_one_connection.md(vpp_018).#357 — version bump and changelog, ahead of the tag, because
tests/test_release_version.pyfails if a tag points at a commit declaring a different number.What a consumer must know before installing this tag
Two environment values the CRAF'd path now requires.
APPWRITE_CRAFD_PROJECT_IDalready resolves in views-models' launcher, which reads coordinates from the registry generically.APPWRITE_CRAFD_PUBLISHER_API_KEYdoes not — that loader carries exactly one secret by name, so the key has nowhere to live yet. Tracked at views-models#755, and it is what stands between this tag and a first CRAF'd delivery.Two major dependency versions move on the next install, not one. The
views-pipeline-corefloor is now>=3.6.0, which requiresviews-frames >=3.0.0; the shared environment holds 3.3.5 and 2.0.0. This reaches the UN-FAO path too, which needs neither change — one floor serves both products. Accepted by the operator 2026-11-27. Delivered bytes are unaffected:pyarrow,numpyandpandasare untouched in the lock.Nothing is armed by this.
product.UPLOAD_ENABLEDisFalsefor both partners, so no run on this tag makes a store call on the CRAF'd path.Also promoted since 1.4.0
tests/test_register_integrity.pygaining a check that no settled entry sits under an open heading.Verification
CI green on
development's head: lint clean, 586 passed, 5 skipped, 41 xfailed, nothing failing.The #327 work was mutation-tested after review found its central guarantee unguarded — ten mutations, each applied to the real files, run, and reverted. The table is on #356.
After this merges
1.5.0onmain— the operator's call, since other repositories pin it;VIEWS_POSTPROCESSING_PIN1.4.0→1.5.0in both views-models launchers (one shared environment, so both products move together);🤖 Generated with Claude Code
https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9