Repository navigation
FLOOR PART 3 follow-up: the four findings registered at #1086 @43a48ed5 - #1113
Conversation
…, listing membership, control hermeticity Follow-up to #1086 at `43a48ed5`, whose review comment 5732073951 registered four findings this act measured but had no push budget left to take. Holder decision 2026-09-18 17:09Z: take all four, one test each. [1] `verify-carve-conformance.py` - `Document.revision` was checked for PRESENCE and compared for EQUALITY, but never for TYPE, while `ResolvedCorpus.revision` has been held to its declared `str | None` since round 8 twelve lines up. The equality is the READER's own `__eq__`, so a structurally loaded object could claim to match the declared string and be certified FAITHFUL while being a malformed document response. The check runs BEFORE the comparison, because after it the comparison has already been decided by the object under test. [2] `verify-carve-conformance.py` - a `--corpus` run can be proven faithful and THEN refuse (`conformance-check-failed`, or the end-gate), and `_refused()` dropped the proof, so the JSON carried no path, shipped corpus, document count or digest. The runbook promises machine consumers exactly those. The record now rides through both refusal paths under the same key and the same shape as the success payload, `null` where nothing was proven - a key that appears only sometimes is a key a caller has to branch on. [3] `git_history_factory.py` (Q-T3) - `list_documents` narrowed this reader's document set to the `.md` entries while `read()` served any path `cat-file` could resolve, so an existing but UNLISTED blob was readable under an identity the reader never listed. The interface refuses that (`DOCUMENT_UNKNOWN`). Both now answer from one `_keys_at()`, because two definitions of one set is how they drift. The corpus as it ships holds three files and all three are documents, so the gap was latent - and a latent gap in the witness is still a gap in the witness. [4] `test_verify_carve_conformance.py` - the one deliberate control `git` process inherited the caller's environment while every other call goes through `_git()` and the repository's own scrubber. An ambient `GIT_DIR` would point it at another repository and an ambient `GIT_NO_REPLACE_OBJECTS=1` would suppress the replacement it exists to observe. It now runs through the scrubber with exactly that one key removed. This one always failed LOUD rather than passing falsely, so it buys hermeticity and not a corrected verdict. Five tests: one per finding, plus the `transposition: null` half of [2] so the field cannot become conditional. `tests/carve_conformance` 82 -> 87. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Reviewer's GuideThe PR closes four follow-up conformance-proof gaps: it validates Sequence diagram for conformance proof and refusal metadatasequenceDiagram
participant Main as main
participant Proof as prove_transposition
participant Refusal as _refused
participant JSON as JSON consumer
Main->>Proof: prove_transposition(...)
Proof->>Proof: Check Document.revision type
alt Revision has wrong type
Proof-->>Main: ConformanceRefusal
Main->>Refusal: _refused(exc, ..., transposition)
Refusal-->>JSON: refused with transposition: null or proven record
else Revision type is valid
Proof->>Proof: Compare served_at with corpus_revision
Proof-->>Main: transposition record
Main->>Refusal: _refused(exc, ..., transposition)
Refusal-->>JSON: refused with transposition record
end
Flow diagram for Git document membership and hermetic controlflowchart TD
A[list_documents] --> B[_keys_at]
B --> C[Listed document keys]
C --> D[read]
D --> E{Path is in _keys_at}
E -->|yes| F[Read blob]
E -->|no| G[DOCUMENT_UNKNOWN]
H[Replacement control] --> I[_git]
I --> J[Sanitized environment]
J --> K[Control verdict]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
🟢 Approval recommended
No correctness blockers remain; one non-blocking redundant Git lookup is noted for cleanup.
Pull request overview
Hardens carve-conformance validation and Git fixture behavior for malformed revisions, refusal payloads, unlisted documents, and ambient Git settings.
Changes:
- Validates document revision types before comparison.
- Preserves transposition metadata in refusal JSON.
- Shares Git membership checks and adds regression coverage for all four findings.
File summaries
| File | Description |
|---|---|
scripts/verify-carve-conformance.py |
Adds revision validation and refusal metadata propagation. |
tests/carve_conformance/git_history_factory.py |
Enforces listed-document membership in Git reads. |
tests/carve_conformance/test_verify_carve_conformance.py |
Adds regression and hermetic-environment tests. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
The membership fix routed the listing through `_keys_at()` and left the original `ls-tree` block standing above the return, so every listing paid for two identical git reads and this module carried two copies of one refusal. That is the exact duplication finding 3 exists to remove, so the leftover is a real defect in the fix and not a style note. `_keys_at` raises the same `CORPUS_UNREADABLE` on the same condition, so removing the block loses nothing: the module now has exactly ONE `ls-tree` call site. tests/carve_conformance 87 passed, and the transposition run still reports OK 17 of 17 TRANSPOSED and FAITHFUL. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 3 days and 1 hour by commenting @sourcery-ai review. Upgrade to get a review now.
|
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) LANDED — lane openxfactory-4, 2026-09-18T18:00:31Z, PR #1113 → 4401e1a (opensoft/openxFactory main; plain gate) FLOOR PART 3 follow-up: the four findings registered at #1086 @43a48ed5 (Document.revision type check before comparison, and three siblings), one test each; plain gate, no document changes |
…and leave sections 8.5 and 3.7 open with exactly what each still wants No box moves. Ledger stays 59 [x] / 12 [ ] / 1 [~] of 72. SECTION 5.2a's ENCODING GAP IS DISCHARGED. #1103 -> eb1880c, merged 21:30:14Z by merge commit, archives repromote-engineering-vocabulary. Measured in the archived packet rather than taken on report: proposal.md, design.md AND tasks.md all read Status: ratified; tasks 1.1-1.6 are all [x] with zero unchecked tasks remaining; review/ratification-2026-09-18.md is present. The contradiction the note registered -- a corpus reading draft where the ledger read RATIFIED -- no longer exists. Recorded as a CLOSE rather than by deleting the registration: the gap was real, a reviewer raised it against three separate heads, and the record of a finding that was right and then satisfied is worth more than a page that looks as though it never happened. SECTION 8.5 DOES NOT TICK, and what it still wants is named exactly. The openxFactory side is complete and the aggregation side is xFactory #454 -> 0b0c88f4. Two things the box's own words ask for are not in hand. (a) "each with its destination NAMED IN THE RECEIVING REPOSITORY" -- only two of the four re-homes name one here, section 6.1's openXdox-spec #15 -> f088b097 and section 6.4's openDox-spec #12 -> edeed08c; sections 6.3 and 6.5 name no destination-side pull request in this ledger. (b) The word "FIRST" is not satisfied on the obvious reading: retire-doxbench-chat-turn-v1 archived LAST of the five, at 20:24:53Z against 10:50:06Z, 13:31:51Z, 17:30:27Z and 17:54:08Z. If "first" means before the other four, the record contradicts it; if it means before its own forward half promotes, or before section 8 as section 6.2's box says, it holds. That is a ruling rather than a measurement, so it is left to the ticking act rather than decided here by picking the reading that lets the box tick. SECTION 3.7 DOES NOT TICK, and the three sides are now recorded per repository. openxFactory HOLDS: #1086 -> 049d54a and its follow-up #1113 -> 4401e1a (18:00:25Z) closing the four findings #1086 registered. openDox is NOT evidenced: #26 was offered as carrying transpose() plus a factory, and its diff contains no def transpose at all; across openDox-code the token occurs in exactly one file, src/opendox/doxbench_abstract_store.py, which #26 did not touch. What #26 does with the corpus adapter is IMPLEMENT its Protocol for the local-git case, which is section 3.6's subject and why 3.6 ticks on it. openXdox is NOT evidenced and the pull request offered is a different subject: openXdox-code #22 -> fa792cbb is "section 3.4 RULED Q7: the gate loop's stylesheets arrive with the bindings that own them", already recorded at section 3.4; and transpose occurs ZERO times anywhere in openXdox-code, so that side is not merely unnamed but absent. Sections 5.6 and 8.4 take a STATUS: #1103 is the gate precondition and it has landed, but Phase 1 still waits on THIS packet's own archive per RULED Q-D1 (a) (#656 comment 5735889836), and Phase 0 is the pin advance on the codexFactory bot pull request. Neither box ticks -- a precondition landing is not the act. origin/main merged in at eb1880c. All four validators exit 0. Refs #656 (stays OPEN). Lane: openxfactory-4 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…e FACTs registered against #1104, AGGREGATION-SIDE RECORD A1, and the § 6.6 STATUS (#1120) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Refs #656 (stays OPEN). **`split-opendox-two-layer-product` `tasks.md` AMENDMENT #7 — § 3.6 and § 6.2 ticked, the three FACTs registered against #1104, an aggregation-side record, and the § 6.6 STATUS.** Branched from the landed `main` at **`507b6233`** (#1104's squash). **Ledger 57 `[x]` / 14 `[ ]` / 1 `[~]` → 59 / 12 / 1 of 72.** One file. **Exactly two marker changes — § 3.6 and § 6.2.** Rule 6 applies. > Both holds are discharged: **#1066** landed for § 6.2 and **openDox-code #26** for § 3.6. ## The three FACTs, each measured before acceptance **1. One phrase named two commits.** Amendment #6 used *"this amendment's own head"* for **`83a055a6`** at § 3.7 and **`c2d5ce92`** at § 8.9 residue (v). *Neither reading was wrong* — each is reproducible at its own sha. The ambiguity was the phrase. Each reading now names an immutable sha, and a third live use at the refusal-code delta is bound to `507b6233`. **An evidence line names a commit, never a position in a process** — that phrase moved six times while #6 was written. **2. § 8.3's reproducibility procedure was one step where it needed two.** A plain `gh repo clone` does not initialize the legs, and the verifier then exits **2** on `ReleaseDependencyError` emitting **no finding** — so a reader following the recorded procedure could not reproduce the pass the record claims. `git submodule update --init --recursive openDox openXdox` is now **in the procedure**. #6 disclosed it at clause (c), which is a warning the reader meets *after* the command they already ran. **The tick is unaffected** — two independent checkouts did pass. This corrects the recipe, not the result. **3. Two dated benchmarks were listed as sites to rewrite.** `sequenced_after.py:1927` reads *"re-run … against all 171 **on 2026-09-18**"* and `:1958` *"(as measured 2026-09-18)"*. They are **evidence**, and renumbering them would destroy it. The list is now split **LIVE** (`:449`, `:1599`, `:1607`, `test_sweep.py:2049`) from **DATED** (`:1598`, `:1927`, `:1958`). > Amendment #6 made this error **two lines below its own retraction of the identical error** for `:36`/`:396`. The rule is written out twice because this row got it wrong twice: **a dated claim is not a stale claim, and the test is whether the sentence names its own moment.** ## Three STATUS sentences, no ticks **§ 3.6 TICKED — on `openDox-code` #26 → `4f8ae01e`**, merged **2026-09-18T21:20:16Z**. Both halves of the box are in the landed files: the first-class act is `repository_act.py`, and RULING C3's standalone shape is `local_git_adapter.py` — an adapter **implementation**, which is what the box asked for, *"not a mode"*. > **The security hold is discharged, and how it closed is the part worth keeping**: the exposure at `app.py:1076` fixed at `fe421882`, and the rest closed by **one redactor at the boundary**, pgid taken at `Popen`, decoder bound — *one instrument for one class* rather than one fix per finding. > **An overrun is recorded rather than passed over**: the actor pushed **three times against a one-push word**. Accepted, and written down — a bounded round that silently runs long stops being a bound, and the accepting is what keeps it honest, not the forgetting. > **Registered as ONE follow-up act** under the same claim: three suppressed Copilot findings, `S8544`, and the `OPENDOX_SERVED_DATABASE` declaration — the **fifth** use of land-and-register in this packet. **§ 3.7 does NOT gain #26 as its openDox side, and the measurement says why.** #26 was expected to supply it. Its **fifteen** changed files are the runtime and its tests — and **not one is a conformance file**. `openDox-code` carries a `corpus_adapter.py` of its own, but it was already there and #26 did not touch it. **Citing #26 at § 3.7 would be evidence claimed as proof it cannot give**: a landing in the right repository is not a pass of the corpus, and the box asks for the pass. § 3.7 still waits on both destinations; the openXdox side remains § 4.5a, which is `[ ]`. **§ 6.2 TICKED — the one that could not simply close.** **#1066 → `3bf63b8e`**, merged **2026-09-18T20:24:53Z**. It closed in the two halves it always named: it archives *here* on its own evidence, and its forward half promotes into `openspec/specs/ideation-dashboard/spec.md`. > **Both clauses held, and NO DISPOSITION IS OWED**: two parents, and the `2026-09-16-` directory carries an adding commit `90bf93c3` dated **2026-09-16T14:38:38Z** — so unlike INCIDENT 1's closure this one costs no disposition row. Clause 2 on main-plus-candidate exits **0**. > **§ 6 is now complete except for its standing condition**: §§ 6.1–6.5 all `[x]`, and **all five disposition directories are under `openspec/changes/archive/`** — read from the *tree*, so the ledger and the corpus can be compared instead of one restating the other. > **One finding registered, not resolved** (`4050274179`) — the land-and-register pattern this packet has now used four times (`#1105`→`#1110`, `#1086`, `openDox-code #25`, here). > *A release figure inside that closure is kept as a measurement, because it is this packet's own defect class caught in someone else's prose and then in its own: the published run is **twenty** releases counted **by tag**, after an earlier count wrongly included **`contract-v2.6`**, which the policy rules "permanently unreleased". Verified here: `git tag -l 'contract-v2.*'` returns v2.0–v2.5 and **no v2.6**. A count from intent rather than from the tag would have been wrong by one.* **§ 6.6** — recorded and **deliberately not claimed as proven**. It is a standing condition over a *window*, not a fact about a tree, so no single run discharges it. What is measurable at `507b6233` is recorded so the ticking act starts from a number: **45 active changes, 16 mentioning `ideation-dashboard`** — stated with its own limits, because grepping for mentions and calling the result compliance would be **evidence claimed as proof it cannot give**. The condition names changes *opened after* ratification, and the grep cannot see when a change opened. ## AGGREGATION-SIDE RECORD A1 — § 6's promotion fidelity `opensoft/xFactory` **#454 → `0b0c88f4`**, merged **2026-09-18T21:15:14Z** — one file, `health/dispositions.yaml`, disposing **20 findings** measured at `openxFactory` `main` `3bf63b8e`, aggregation gate **0/0/0/0**, header count corrected from *"+15"* to a net **+20** before landing. Recorded as a **named row placed beside § 8.7 and explicitly NOT part of its tick evidence** — § 8.7 ticks on *gitlinks*; this is a different aggregation-side act, filed there because that is where a reader looks for one. **It moves no box.** **Four closures, five files, and § 6.2 raises none.** The asymmetry is the point: § 6.2 is the one of the five *not* closed as re-homed, so its delta's promotion obligation is discharged **by promotion** rather than by a disposition, and it *"must not get one by analogy"*. The fifth file exists because `add-nightly-dashboard-refresh` carries **two** deltas — the same partial-carriage shape § 6.1's STATUS registers against `_REHOMED_AND_STILL_WHOLE`. **One FACT registered as residue, not resolved here.** The header says *"three of the five files carry more than one affected requirement"*. **Measured at `3bf63b8e`, it is FOUR** — `add-composed-view-authoring` **1**, `add-doxchat-model-intake` **5**, `add-lens-document-selection` **5**, `add-nightly-dashboard-refresh`/`doc-health` **7**, its `ideation-dashboard` **2**. Only one of the five carries a single requirement. > The figure changes nothing about the dispositions themselves — each entry is **path-keyed** and deliberately not narrowed by `requirement:`, so the count is prose in the header rather than a key any entry turns on. It is registered because **a header that miscounts its own subject** is the defect class this packet has spent two amendments on, and the next reader will reach for the number rather than recount five files. ## Four more records, no further ticks **§ 5.2a's registered encoding gap is DISCHARGED.** **#1103 → `eb1880cb`** (21:30:14Z, merge commit) archives `repromote-engineering-vocabulary`. Measured in the archived packet: `proposal.md`, `design.md` **and** `tasks.md` all read `Status: ratified`, tasks **1.1–1.6 all `[x]`** with **zero** unchecked remaining, and `review/ratification-2026-09-18.md` present. *Recorded as a **close**, not by deleting the registration — the gap was real, a reviewer raised it against three heads, and the record of a finding that was right and then satisfied is worth more than a page that looks as though it never happened.* **§ 8.5 does NOT tick, and what it still wants is named exactly.** The openxFactory side is complete and the aggregation side is `xFactory #454`. Two of the box's own words are not yet in hand: > **(a) "each with its destination NAMED IN THE RECEIVING REPOSITORY"** — only **two** of the four re-homes name one here (§ 6.1's `openXdox-spec #15 → f088b097`, § 6.4's `openDox-spec #12 → edeed08c`). § 6.3 and § 6.5 name no destination-side PR. > **(b) The word "FIRST" is not satisfied on the obvious reading** — `retire-doxbench-chat-turn-v1` archived **LAST** of the five (20:24:53Z against 10:50:06Z / 13:31:51Z / 17:30:27Z / 17:54:08Z). If "first" means *before the other four*, the record contradicts it; if it means *before § 8*, as § 6.2's box says, it holds. **That is a ruling, not a measurement**, so it is left to the ticking act rather than settled here by choosing the reading that lets the box tick. **§ 3.7 does NOT tick, and the three sides are now recorded per repository.** > **`openxFactory` — holds**: `#1086 → 049d54a` plus its follow-up `#1113 → 4401e1a` (18:00:25Z) closing the four findings `#1086` registered. > **openDox — not evidenced**: `#26` was offered as carrying `transpose()` plus a factory; **its diff contains no `def transpose` at all**, and across `openDox-code` the token occurs in exactly one file, `doxbench_abstract_store.py`, which `#26` did not touch. What `#26` does is *implement* the `CorpusAdapter` Protocol for the local-git case — § 3.6's subject, and why § 3.6 ticks on it. > **openXdox — not evidenced, and the PR offered is a different subject**: `openXdox-code #22 → fa792cbb` is *"§ 3.4 RULED Q7: the gate loop's stylesheets…"*, already recorded at § 3.4. **`transpose` occurs ZERO times anywhere in `openXdox-code`** — that side is not merely unnamed, it is absent. **§ 5.6 / § 8.4 take a STATUS**: **#1103** is the gate precondition and it has landed, but **Phase 1 still waits on THIS packet's own archive** (RULED **Q-D1 (a)**, `#656` `5735889836`) and **Phase 0 is the pin advance on the codexFactory bot PR**. Neither box ticks — a precondition landing is not the act. ## Gates `openspec validate … --strict` **valid** · `proposal-support.py verify` **ok** · `validate-sequenced-after.py --ledger-diff` **clean** · `verify-opendox-pin.py` **OK**. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>



Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Refs #656 (stays OPEN).
CLAIM: 5714686940
Follow-up to #1086 @
43a48ed5's four registered findings (comment5732073951), holder decision 2026-09-18 17:09Z. #1086 landed as
049d54a9; this branch takes all four of the findings that act measured buthad no push budget left to take. One test each, each mutation-proved.
Plain gate: three files, no
openspec/changes/path, no README or runbookchange — no figure moves here, and no document changes at all.
[1]
Document.revisionis checked for TYPE, before it is comparedverify-carve-conformance.pyheld the served revision to PRESENCE (_ABSENTsentinel) and to EQUALITY, but never to the type the interface declares, while
ResolvedCorpus.revisionhas been held to its declaredstr | Nonesinceround 8 twelve lines up. The equality is the READER's own
__eq__: astructurally loaded object can answer
Trueagainst the declared string and becertified FAITHFUL while being a malformed document response. The seam is
structural, so nothing at runtime makes a reader return the declared type.
The check runs before the comparison, not after — after it, the comparison
has already been decided by the object under test.
[2] The proof rides through the REFUSAL paths
A
--corpusrun can be proven faithful and then refuse —conformance-check- failed, or the end-gate — and_refused()dropped the record, so the JSONcarried the code, the detail and the corpus path but no
path,shipped,documentsordigest. The runbook promises machine consumers exactly those,so a caller could not tell WHICH proven transposition a failure covered.
The record now rides through both refusal paths under the same key and the
same shape as the success payload, and
nullwhere nothing was proven — a keythat appears only sometimes is a key a caller has to branch on, so there is a
second test for the
nullhalf.[3] The git reader refuses a blob it did not LIST (Q-T3)
list_documentsnarrows this fixture's document set to the.mdentries whileread()served any pathcat-filecould resolve, so an existing but UNLISTEDblob was readable under an identity the reader never listed — which the
interface refuses (
DOCUMENT_UNKNOWN). Both now answer from one_keys_at(),because two definitions of one set is how they drift.
Measured honestly: the corpus as it ships holds three files and all three are
documents, so this case is built in the test rather than found. The gap was
latent — and a latent gap in the witness is still a gap in the witness.
[4] The replacement control is hermetic too
One deliberate control
gitprocess inherited the caller's whole environmentwhile every other call in the fixture goes through
_git()and therepository's own scrubber. An ambient
GIT_DIRwould point it at anotherrepository; an ambient
GIT_NO_REPLACE_OBJECTS=1— which that very scrubbersets, so it is a plausible thing to be carrying — would suppress the
replacement the control exists to observe. It now runs through the scrubber
with exactly that one key removed.
This one always failed loud rather than passing falsely, so it buys
hermeticity, not a corrected verdict. Said plainly because the distinction is
the difference between a hole in the proof and a flake.
Evidence, all measured by a command
tests/carve_conformancemain)tests/carve_conformance+carve_manifest+carve_arrivalmain)main--jsonvs plainmainOK … 17 of 17 … TRANSPOSED and FAITHFUL … unmoved across the run744c9183…, unchanged for the sixth consecutive buildscripts/validate-carve-manifest.pyBoth control comparisons were taken in the SAME checkout at the same root, so
they are raw byte comparisons and not normalised ones. That both the human line
and the JSON are identical is the claim that matters here: four changes to
the runner and the fixture, and the default path is untouched.
Four mutation proofs, M43-M46 — remove the type check; drop the record from
the refusal payload; remove the membership check; let the control inherit the
ambient environment. Each applied to the landed code, its own test watched go
red, then reverted (all three files verified restored byte-for-byte, tree
clean). This carries the act's total to 46.
What this does NOT do
landed with FLOOR PART 3 accepts a destination's TRANSPOSED corpus and proves it faithful (RULED Q-F1 (a)) #1086 and are not touched, so no figure moves.
tasks.mdis untouched; the § 3.7 tick and evidence sentence remain the laneholder's, as does the bookkeeper's still-owed append at
tasks.md:1189-1190(five → six refusal codes, and "34 tests" → the suite'scurrent size).
transpose()and in-tree factory remain openDox-code Record Merge Master review routing proof #26's,under RULINGS Q-F2 / Q-F3.
🤖 Generated with Claude Code
Summary by Sourcery
Harden carve conformance proofing and Git fixture behavior across validation, refusal reporting, document membership, and test isolation.
Bug Fixes:
Enhancements:
Tests: