Skip to content

[EPIC] Every claim checkable: clear the unblocked debt before the views-pipeline-core 3.0.0 bump #181

Closed

Description

@Polichinel

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:

  1. No register entry sits Open while its own stated closing condition is met — and a test enforces that, so this class cannot recur silently.
  2. Both entry-validation modules (appwrite_env, launch_config) log before raising, and a test pins ADR-008 compliance across both.
  3. The lookup's provenance stamp either resolves or raises. It cannot become "unknown".
  4. The retired contract name is gone from code, and a test bans its return.
  5. The two cross-repo gated checks resolve their sibling repository the same declared way the build script already does — no machine-specific paths.
  6. tests/test_validation.py tests the gate that exists, at the module that owns it, importing the column contract rather than copying it.
  7. 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:

Deliberately deferred, not blocked:

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

  1. pytest -q is 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.
  2. tests/test_register_integrity.py gains a closing-condition check and passes. Mutation-tested against C-43's actual historical state (Open with test_gaul_lookup_fidelity.py present) — it must fail on that input, or it is decoration.
  3. ADR-013 is byte-unchanged. tests/fixtures/wire_contract/ untouched — verify with git diff --stat origin/main -- tests/fixtures/. contract_version still "1.5". tests/test_wire_fixture.py green.
  4. grep -rn "PLATFORM-001" --include=*.py . returns nothing, and a test enforces it.
  5. gaul_lookup.version() never returns "unknown" — the function no longer has that branch.
  6. No machine-specific absolute path in tests/ — grep -rn "/home/simon" tests/ returns nothing.
  7. 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.
  8. One-way dependency intact: unfao/ → contract/ → delivery/; views_pipeline_core still has exactly one importer. tests/test_clone_readiness.py green.

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

  1. added
    epic
    planning
    on Aug 1, 2026
  2. Polichinel commented on Aug 1, 2026

    @Polichinel
    CollaboratorAuthor

    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.

  3. Polichinel commented on Aug 1, 2026

    @Polichinel
    CollaboratorAuthor

    S10 added — #192. Found by S1's own /review-diff, which is the process working rather than the plan failing.

    tests/test_redaction_guard.py pins the þing-01 #135 redaction audit. Epic #148's #153 moved the machinery from unfao/ to contract/, and four of its five declared scan roots were never re-pointed. _python_sources calls rglob on 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.

  4. added 2 commits that reference this issue on Aug 1, 2026
  5. Polichinel commented on Aug 2, 2026

    @Polichinel
    CollaboratorAuthor

    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 with rev-parse HEAD on 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epicplanning

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions