Repository navigation
Description
The problem
Every open concern in this repo falls into one of two boxes: blocked on views-pipeline-core 3.0.0, or actionable now. The register said the second box held seven items. Investigating it found nine, and found that the box has a shape.
Every item in it is a claim with nothing mechanical behind it.
| the claim | who makes it | what checks it |
|---|---|---|
"C-43 closes when tests/test_gaul_lookup_fidelity.py is committed and green" |
register C-43 | nothing — the test is committed and green; the entry is still Open |
| "Mitigation — landed 2026-07-31" | register C-59, C-61 | nothing — the four named tests exist and pass; both entries are still Open |
| "Rename PLATFORM-001 → The Appwrite Seam Contract in this repo's citations" | issue #158, closed 2026-08-01 | nothing — 4 references survive in .py |
"The logic tested matches unfao.py:_validate() exactly" |
tests/test_validation.py:8 |
nothing — _validate stopped null-gating in #149; the replica still does |
| "raised structural failures must be logged at ERROR" | ADR-008:48 | nothing — appwrite_env.assert_env_declared raises without logging |
"lookup_version ties a delivery to its exact lookup build" |
register C-15 | nothing — it degrades to the string "unknown" on a bare except |
| "this repo matches the Appwrite Seam Contract's coordinate registry" | appwrite_env.py:3 |
nothing — the registry lives in another repo and is deliberately never copied |
| "views-datafactory is ready to serve" | tests/test_datafactory_deploy_readiness.py |
nothing — the gate is hardcoded to one machine's path and never runs in CI |
Five of these were found in a single day, four of them by tests and guards written earlier in the same week. That is the register working — but working late, and only because a human asked the right question. The pattern is not sloppiness; it is that this repo writes its guarantees in prose and then does not attach them to anything the interpreter runs.
That is the same defect ADR-003 (authority of declarations over inference) exists to prevent, applied one level up: a declaration nothing validates is an inference with better grammar.
Why now
views-pipeline-core 3.0.0 is not this seat's to schedule. It clears six entries at once — Cluster M — and until the maintainer's platform-wide release signal fires, none of them is engineering work here. Waiting is correct for those six.
Waiting is not correct for these nine. They are unblocked, they are small, and three of them are already finished and mis-filed. Clearing them before the bump means the bump lands on a repo whose record is true, rather than one where "24 open" hides three that are done and one that is worse than described.
There is also a release consideration. 1.0.0 was tagged on 2026-08-01 and main is now canonical. The next thing anyone does with this repository is clone it — views-crafdapi and views-productionapi, per epic #148. A clone inherits the record along with the code. Every stale claim above becomes a stale claim in two more repositories.
Desired end state
A claim in this repository is checkable by a command, or it is not made.
Concretely:
- No register entry sits Open while its own stated closing condition is met — and a test enforces that, so this class cannot recur silently.
- Both entry-validation modules (
appwrite_env,launch_config) log before raising, and a test pins ADR-008 compliance across both. - The lookup's provenance stamp either resolves or raises. It cannot become
"unknown". - The retired contract name is gone from code, and a test bans its return.
- The two cross-repo gated checks resolve their sibling repository the same declared way the build script already does — no machine-specific paths.
tests/test_validation.pytests the gate that exists, at the module that owns it, importing the column contract rather than copying it.- The post-delivery correction procedure describes the delivery this repo actually performs.
And the wire is untouched throughout. ADR-013 contract_version = "1.5" does not move in this epic.
Scope boundaries — explicitly NOT in this epic
Blocked upstream, deliberately left:
- Cluster M — C-44, C-58, C-62, C-72, C-73, C-07. Six entries, two Tier 2, one publish. Moves on the maintainer's release signal, not on engineering here.
- C-13, C-26, C-27, C-28 — views-pipeline-core owns the code. Filed there (S7: delete both consumer source-reads — the category is wrong, proven twice in 24h #248, S3 (#344): ACKNOWLEDGED_UNTIL's only bound is the expiry, so the escape widened to a year (C-116) #347, S2 (#359): characterize the model_path filter semantics #366, S3 (#359): funnel the six store-construction sites into one factory per partner #367).
- C-24 — views-faoapi's output-schema epic (fix(delivery): C-79 and C-83 — two refusals on the live FAO path #222).
- C-43's upstream half — the degree-based area math, views-datafactory#387. This repo is structurally incapable of judging it.
Deliberately deferred, not blocked:
- C-33 / [Scoping] Second prediction store / partner — sample-bearing, multi-target, cm+pgm with reconciliation #97 (second prediction store), C-40's double-inheritance shell, Rename: views-postprocessing → views-delivery (the name is a misnomer) #96 (repo rename). All speculative until a real second partner exists. D-11 already ruled that way and [EPIC] One delivery path, one partner boundary — make this repo cloneable for views-crafdapi + views-productionapi #148 held the line.
- C-15's provenance half that depends on pipeline-core S4: delete the unfiltered arrival check; keep the row differential #245.
Explicitly refused — WET before DRY:
appwrite_env.assert_env_declared and launch_config.assert_contract_mode will, after S1, have the same shape: gather what is missing, log, raise. Do not extract a shared assert_declared helper. Two copies that are understood beat one abstraction that is guessed, and these two answer different questions (did the launcher assemble the environment vs did it declare the delivery mode) against different sources (os.getenv vs a passed dict). The named trigger for revisiting: a third entry-validation module. Not before.
Stories
| # | story | closes | labels |
|---|---|---|---|
| S1 | appwrite_env logs before it raises |
C-71 | implementation, testing |
| S2 | Close what is already fixed, and make closing conditions machine-checkable | C-43, C-59, C-61 | testing, documentation |
| S3 | Finish #158's rename, and ban the retired name | — | implementation, testing |
| S4 | Retire the _validate replica |
C-03 | testing |
| S5 | The lookup declares its own version | C-60 | implementation, testing |
| S6 | Detect coordinate-registry drift | C-57 | testing |
| S7 | One declared way to find views-datafactory | C-46 | testing |
| S8 | Rewrite the post-delivery correction procedure | C-22 / #15 | documentation, needs-decision |
| S10 | Repair the þing-01 redaction guard | C-74 | testing |
| S9 | Closeout | — | documentation |
Dependencies
S1 ─┐
S2 ─┤
S3 ─┼──> S6
S4 ─┤
S5 ─┼──> S7
└──> S8
all ──> S9
S1–S5 are independent and may be done in any order; the listed order is smallest-first so review effort ramps rather than spikes. S6 follows S3 because both touch appwrite_env.py and the contract's name. S7 and S8 follow S5 because both depend on the lookup's provenance being trustworthy.
Epic acceptance criteria
pytest -qis green, 355+ tests, with the only accepted failures being the 5 known pyarrow 23.0.1-vs-pinned-16.1.0 byte-parity ones (C-72). CI is authoritative.tests/test_register_integrity.pygains a closing-condition check and passes. Mutation-tested against C-43's actual historical state (Open withtest_gaul_lookup_fidelity.pypresent) — it must fail on that input, or it is decoration.- ADR-013 is byte-unchanged.
tests/fixtures/wire_contract/untouched — verify withgit diff --stat origin/main -- tests/fixtures/.contract_versionstill"1.5".tests/test_wire_fixture.pygreen. grep -rn "PLATFORM-001" --include=*.py .returns nothing, and a test enforces it.gaul_lookup.version()never returns"unknown"— the function no longer has that branch.- No machine-specific absolute path in
tests/—grep -rn "/home/simon" tests/returns nothing. - Register open count falls 24 → 15, and every remaining open entry names either an upstream owner or a deliberate deferral. No entry is open whose closing condition is met.
- One-way dependency intact:
unfao/ → contract/ → delivery/;views_pipeline_corestill has exactly one importer.tests/test_clone_readiness.pygreen.
Validation, every story
ruff check .
pytest -q
pytest -q tests/test_register_integrity.py tests/test_clone_readiness.py tests/test_wire_fixture.py
git diff --stat origin/main -- tests/fixtures/ # must be empty
Full ritual between stories: /review-diff → /register-risk if findings → address → /ship-it → push → PR → CI green → merge to development.
Activity
Polichinel commentedon Aug 1, 2026
Stories and tracking created.
Stories: #182 (S1) · #183 (S2) · #184 (S3) · #185 (S4) · #186 (S5) · #187 (S6) · #188 (S7) · #189 (S8) · #190 (S9)
Tracking checklist: #191
Order of execution and the standing per-story checks live in #191.
Polichinel commentedon Aug 1, 2026
S10 added — #192. Found by S1's own
/review-diff, which is the process working rather than the plan failing.tests/test_redaction_guard.pypins the þing-01 #135 redaction audit. Epic #148's #153 moved the machinery fromunfao/tocontract/, and four of its five declared scan roots were never re-pointed._python_sourcescallsrglobon them, which on a nonexistent directory yields nothing rather than raising — so the guard scans 6 files instead of ~16 and passes.Not a leak: the relocated modules were checked directly and are still credential-blind. What is gone is the thing that would notice them ceasing to be.
Two entries in the register vouched for this guard in writing — C-57 ("already mechanically enforced") and Cluster I's fix strategy, which cites this exact file as the pattern working. Both corrected in place. Registered as C-74.
Sixth instance of the stale-claim class in two days. The shape is now clear enough to name: a move leaves prose and paths behind, and nothing in this repo asserts that a declared path exists. That belongs in S9's ADR question.
fix(env): S1 #182 — appwrite_env logs before it raises, and a guard o…
docs(adr): S9 #190 — epic #181 closeout, and ADR-014 for the rules no…
Polichinel commentedon Aug 2, 2026
Closed. Eleven stories, ten register entries, one cluster, one ADR.
Two things were not in the plan and turned out to matter more than most of what was:
#196 — the pin that existed but had never reached
main. S3 resolved it withrev-parse HEADon a checkout sitting on an unmerged branch. Every check written at the time passed. Existence is not reachability is now asserted by S6's drift test and is the sharpest thing this epic produced.C-71 — fixed in the morning, filed open all day while eight further stories shipped, inside the epic whose thesis is that a record should not outlive the thing it describes. S2's guard did not catch it, correctly: the entry's closing language is prose. That became ADR-014 §5, the one rule written down because it cannot be mechanised.
Open count 24 → 15. What remains is six entries on one upstream publish, five owned by other repos, and four deliberately deferred — each with a named trigger.
fix(enrichment): S4 review round 3 — the float bound was off by one U…
fix(enrichment): S4 review round 3 — the float bound was off by one U…
feat(enrichment): S4 (#89) — numpy/pyarrow keyed gather, drop pandas …
Merge pull request #215 from views-platform/development