Skip to content

FLOOR PART 3 accepts a destination's TRANSPOSED corpus and proves it faithful (RULED Q-F1 (a)) - #1086

Merged
brettheap merged 18 commits into
mainfrom
build/floor-part-3-corpus-transposition
Sep 18, 2026
Merged

brettheap merged 18 commits into
mainfrom
build/floor-part-3-corpus-transposition

Conversation

@brettheap

@brettheap brettheap commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Refs #656 (stays OPEN).
CLAIM: 5714686940

RULED Q-F1 (a) — Brett Heap, 2026-09-17, #656 comment 5714365086: "the
DESTINATION TRANSPOSES the corpus into git (conformance_corpus.transpose(),
--corpus <transposition>, bytes unchanged)"
. This is the openxFactory
half
of that ruling and nothing else.

Why the ruling exists

FLOOR PART 3 (split-opendox-two-layer-product § 3.7, design § D6 (3), RULED
OQ-1) is a claim about a READER: every destination passes the same neutral
conformance corpus. The corpus is laid down as a plain directory tree
(tests/corpus-adapter/fixtures/, RULED OQ-3's seed, named by eleven manifest
rows and therefore not relocatable). openDox's reader
(opendox.runtime.local_git_adapter.LocalGitCorpus, openDox-code #26) has a
different location vocabulary: its corpus is git HISTORY, not a working tree.
Measured 2026-09-17 by the lane's read-only actor floor37 against #26
6c8f19e7: pointed at the fixtures as they ship, that reader refuses at
resolution (corpus-unclassifiable — the directory is not a git repository)
and reaches 1 of 17 checks, sixteen "not reached". Pointed at a
transposition of the same three documents it reaches all seventeen and passes
eleven.

Narrowing the corpus was never on the table — "narrowing the corpus to what
the legs pass today would be FLOOR PART 3 deleted to tick FLOOR PART 3". The
ruling instead lets the DESTINATION lay the same documents down in the form
its own reader addresses, bytes unchanged, and say so. This pull request is
the other side of that bargain: the permission comes with a proof.

What this changes

1. scripts/verify-carve-conformance.py proves a transposition faithful
before it measures a reader.

  • The REFERENCE side is computed here, from files, with no reader in it:
    document_fingerprint() returns {key: sha256(bytes)} over every document
    of tests/corpus-adapter/fixtures/neutral in the checkout the runner runs
    from.
  • The CANDIDATE side is what the reader under test SERVES out of the
    --corpus: list_documents at the corpus's declared revision, then read
    for each. It must be that table exactly — the same keys, the same bytes
    under each key. (Keys are COMPARED, never parsed, which is the interface's
    own rule: "a consumer may compare it, sort it and hand it back, and may not
    parse it"
    .)
  • A difference refuses a new sixth code, conformance-corpus-unfaithful,
    exit 2, NAMING the keys — documents the corpus holds and the transposition
    does not serve, documents it serves that the corpus does not hold, and
    documents whose bytes differ (with both digests). It refuses BEFORE any of
    the seventeen runs.
  • The verdict line and the --json payload carry the transposition — path,
    shipped, document count, and the table's digest — so § 3.7's evidence
    reads transposed, faithful and a reader of it can recompute the number.
  • Two deliberate asymmetries, both tested. Where the reader cannot RESOLVE or
    LIST the location at all there is nothing to compare, so the proof records
    the reason and hands over to the seventeen, which report it far better
    (resolve-populated failing, the rest not reached) — and a run whose
    seventeen all passed over a transposition never proven faithful refuses at
    the END rather than printing OK. A document the reader LISTS and will not
    serve is unfaithful, because the seventeen would not catch it:
    read-round-trip reads the FIRST document only.

2. The default path is byte-for-byte what it was. The proof is taken only
when --corpus RESOLVES somewhere other than this repository's own fixtures.
No --corpus, or --corpus <the fixtures>, is the shipped corpus compared
with itself, which proves nothing and is not claimed: transposition is
null in the JSON and the human line is unchanged. Measured, both lines
verbatim:

$ python3 scripts/verify-carve-conformance.py --destination openxfactory \
      --dest-root . --adapter home_factory:neutral_reader \
      --sys-path tests/carve_conformance
OK …/oxf: openxfactory passed the neutral conformance corpus — 17 of 17
check(s), reader home_factory:neutral_reader, corpus …/tests/corpus-adapter/fixtures
exit=0

3. The :317 refusal is reconciled with the ruling, and it was the PROSE
and never the condition.
corpus_locations() refuses
conformance-corpus-missing when --corpus is not a directory — correct, and
a transposition satisfies it. What was wrong was the sentence it printed:
"point --corpus at a checkout that carries it". A transposition lawfully
lives in a temporary directory that is no checkout at all, and an operator who
read that sentence could conclude the ruling was unimplementable. The message
now names the transposition and says it need not sit inside any checkout;
test_the_corpus_missing_refusal_admits_a_transposition_outside_a_checkout
reds if the old sentence comes back.

4. tests/carve_conformance/git_history_factory.py — a reader whose corpus
IS history, and the transposition it addresses.
This is openxFactory's own
evidence for the ruling and NOT a destination's reader (its docstring says so
in the first paragraph). A test that used the home reader over a COPY of the
fixtures would exercise the comparison and never the case the ruling was
written for: no working tree, an empty state carrying no placeholder files,
documents that exist only as blobs at a revision. So this file supplies the
smallest honest one — ~100 lines over git cat-file / git ls-tree, stdlib
plus the interface — plus transpose(), which lays the same three documents
down as blobs at the same keys in a BARE repository per corpus state, through
git's own plumbing so no working tree ever exists, copies not-a-directory
verbatim and never creates the absent name. Measured end to end:

$ python3 scripts/verify-carve-conformance.py --destination openxfactory \
      --dest-root . --adapter git_history_factory:reader \
      --sys-path tests/carve_conformance --corpus <transposition>
OK …/oxf: openxfactory passed the neutral conformance corpus — 17 of 17
check(s), reader git_history_factory:reader, corpus …/probe/git, TRANSPOSED and
FAITHFUL to …/tests/corpus-adapter/fixtures — 3 document(s), key/sha256 table
744c9183e65f40fcd9061d6cdadf254db0b1a5c4a0ab633fc210b724e0f013c1
exit=0

That digest is the same value a plain file copy of the fixtures produces,
which is the whole point: one corpus, two storage forms.

5. Documents. docs/opendox-cutover-runbook.md § 2.2 gains the
transposition paragraph (a destination may transpose; it says so; the runner
proves it) and a sixth row in its refusal table; README's doc index moves from
"five refusal codes" to six and names the flag; scripts/corpus_adapter.py's
list of what still imports the interface by path grows the runner (for
CorpusRef) and the new fixture.

Evidence, all of it measured by a command

measurement command result
the runner's own suite at base a93d2682 python -m pytest -q tests/carve_conformance 38 passed
the same at the FIRST head of this branch same 55 passed (+17)
the same at 1c737838 same 82 passed (+44) — the twenty-seven tests the nine review rounds added
the carve manifest suite python -m pytest -q tests/carve_manifest 181 passed
arrival + both pin suites python -m pytest -q tests/carve_arrival tests/opendox_pin tests/openxdox_pin 264 passed
conformance + manifest + arrival at 1c737838 python -m pytest -q tests/carve_conformance tests/carve_manifest tests/carve_arrival 423 passed
the seam's own suites at 1c737838 python -m pytest -q tests/corpus-adapter tests/carve_conformance 165 passed
doc-health at 1c737838 python -m pytest -q tests/doc-health 1826 passed

Thirty-eight mutation proofs now stand behind this act. The thirteen below
are the ones this branch opened with; M14-M38 belong to Copilot rounds 1-9 and
are tabulated in the round comments on this pull request — the strongest of
them is M35, which shows this runner printing OK ... 17 of 17 ... TRANSPOSED and FAITHFUL over a reader that served altered bytes to the seventeen, the
defect round 8 found and closed. Each proof is applied to the landed code, run
against the named test, and reverted — the file's own doctrine that a green run over a
well-behaved reader proves the reader and not the corpus:

# mutation test that reds
M1 the proof never runs (if False) 8 of the new tests
M2 bytes ignored (changed = []) …one_byte_changed…, …runs_BEFORE_the_seventeen
M3 keys ignored (missing/extra emptied) …dropped_a_document…, …added_a_document…
M4 the proof moved AFTER run_corpus …runs_BEFORE_the_seventeen, …dropped_a_document…
M5 the last gate removed …unproven_transposition_still_refuses
M6 reference keyed by basename, not POSIX relpath …reference_table…, …digest_is_the_shipped_corpuss_own_table
M7a digest built over unsorted keys …depends_on_the_pairing_and_not_on_the_order
M7b the NUL separator dropped the same test — it did NOT red until an assertion was added, which is why commit 3 exists
M8 transpose() also writes a working tree …is_history_and_not_a_working_tree
M9 the :317 sentence reverted …admits_a_transposition_outside_a_checkout
M10 a read that raises is swallowed …lists_and_will_not_serve_is_unfaithful
M11 an unresolvable reader refuses instead of being handed on …handed_to_the_seventeen, …unproven_transposition…
M12 the verdict line drops the transposition …passes_fidelity_and_the_whole_corpus
M13 the refusal payload drops corpus …named_in_the_refusal_payload

M7b is reported rather than quietly fixed: the mutation round found a real
gap in this pull request's own tests, and the commit that closes it says so.

What this does NOT do, by name

  • openDox's conformance_corpus.transpose() and its in-tree factory are not
    here.
    They are openDox-code Record Merge Master review routing proof #26's, with RULINGS Q-F2 and Q-F3, and belong
    to the lane's runtime actor. git_history_factory.py is openxFactory's test
    fixture and no verdict about openDox may be read off it.
  • § 3.7 is not ticked and no § 3.7 evidence is written here. tasks.md is
    the bookkeeper's file and is untouched. The sentence this act earns, for
    whoever places it: "RULED Q-F1 (a) is realized at openxFactory: a
    destination may hand verify-carve-conformance.py a TRANSPOSITION of the
    corpus with --corpus, and the runner proves it faithful to the shipped
    fixtures document by document and byte by byte — the same keys, the same
    bytes at the corpus's declared revision — before any of the seventeen checks
    runs, refusing conformance-corpus-unfaithful and naming the keys
    otherwise, and names the transposition (path, count, key/sha256 table
    digest) in the verdict line and the --json payload, so a run recorded
    against a transposed corpus reads transposed, faithful."
  • No re-measurement of any destination. The per-destination table in
    runbook § 2.2 still carries its 2026-09-10 figures; floor37's 2026-09-17
    re-measurement is the holder's to place, and openDox's row moves when Record Merge Master review routing proof #26
    lands.
  • No openspec/changes/ path and no README OpenSpec Records block, so
    this is a plain-gate pull request and not a Rule 6 landing.
  • The empty/ state's two .gitkeep placeholders are not imported by
    transpose() and are deliberately outside the fidelity proof: they exist
    only so a FILESYSTEM corpus can carry an empty directory, a git corpus
    carries one as the absence of a blob, and the claim about that state is the
    empty-is-an-answer check rather than a byte comparison. Same for
    not-a-directory, whose claim is unreadable-refuses.

🤖 Generated with Claude Code

Summary by Sourcery

Allow destinations to submit storage-specific transpositions of the neutral conformance corpus while proving their document-level fidelity before measuring reader conformance.

New Features:

  • Enable conformance verification against destination-specific corpus transpositions, including git-history repositories, through the --corpus option.
  • Prove transpositions faithful to the shipped corpus by comparing document keys, bytes, revisions, and a reproducible digest before and after the conformance checks.

Bug Fixes:

  • Prevent successful conformance results from being reported when a transposition cannot be verified or changes during measurement.
  • Clarify missing-corpus refusals so valid transpositions outside a checkout are accepted and reported correctly.

Enhancements:

  • Add a bare-git history reader and transposition fixture to exercise the ruling's history-based corpus scenario end to end.
  • Expose transposition details and fidelity status in human-readable verdicts and JSON refusal/results payloads.

Documentation:

  • Update the README and cutover runbook to document transpositions, the new refusal code, and the --corpus workflow.

Tests:

  • Add comprehensive conformance tests covering faithful transpositions, altered or incomplete documents, identity and revision mismatches, movement during measurement, refusal payloads, and git-environment isolation.

Chores:

  • Register the new reader and fidelity-proof interface imports in the corpus adapter documentation.

brettheap and others added 3 commits September 17, 2026 12:46
…faithful

RULED Q-F1 (a), Brett Heap 2026-09-17, openxFactory #656 comment 5714365086.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
… consumers

RULED Q-F1 (a) is an operator-facing rule as much as a code path, so the
runbook's FLOOR PART 3 section carries the paragraph that says a destination
whose corpus is git history may transpose the corpus, must say so, and is
proven rather than trusted; the refusal table grows its sixth row; README's
doc index moves from "five refusal codes" to six and names the flag; and
`scripts/corpus_adapter.py`'s list of what still imports the interface by
path grows the runner (for `CorpusRef`) and the new git-history fixture.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
The mutation round found one assertion missing: dropping the NUL between a
key and its digest left `test_the_table_digest_depends_on_the_pairing_and_not
_on_the_order` green, so the separator was untested. Measured: with the NUL
removed the two tables {"ab": "c"*64} and {"a": "b"+"c"*64} digest
identically -- two different corpora reported under one number -- and the
added assertion reds on exactly that mutation.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 17, 2026 13:06
@sourcery-ai

sourcery-ai Bot commented Sep 17, 2026

Copy link
Copy Markdown

Reviewer's Guide

This PR allows destinations with non-filesystem corpus representations to pass a --corpus transposition while proving, through the reader under test, that it serves exactly the shipped corpus’s keys and bytes before running the 17 checks. It adds explicit fidelity evidence and a new refusal code, provides a bare-git history fixture/transposer, updates operator documentation, and substantially extends behavioral and mutation-oriented test coverage.

Sequence diagram for faithful corpus transposition verification

sequenceDiagram
    participant Operator
    participant Runner as verify_carve_conformance.py
    participant Fixtures as Shipped fixtures
    participant Reader as Reader under test
    participant Checks as 17 conformance checks

    Operator->>Runner: --corpus transposition
    Runner->>Fixtures: document_fingerprint()
    Fixtures-->>Runner: key/sha256 reference table
    Runner->>Reader: resolve(CorpusRef)
    Reader-->>Runner: resolved corpus
    Runner->>Reader: list_documents()
    Reader-->>Runner: document keys
    loop each listed document
        Runner->>Reader: read(document)
        Reader-->>Runner: document bytes
    end
    Runner->>Runner: Compare keys and byte digests
    alt faithful
        Runner->>Checks: run_corpus()
        Checks-->>Runner: 17-check result
        Runner-->>Operator: OK — TRANSPOSED and FAITHFUL
    else mismatch
        Runner-->>Operator: Refuse conformance-corpus-unfaithful
    end
Loading

File-Level Changes

Change Details Files
Adds fail-closed fidelity verification for destination-provided corpus transpositions before conformance checks run.
  • Computes a reader-independent key-to-SHA-256 reference table from the shipped neutral corpus.
  • Reads the candidate table through the destination reader and rejects missing, extra, changed, malformed, or unreadable documents with named details.
  • Adds the conformance-corpus-unfaithful refusal, JSON corpus context, transposition metadata, and human-readable faithful verdict output.
  • Preserves the existing default behavior when using the repository’s shipped fixtures, while enforcing a final refusal if checks pass over an unproven transposition.
scripts/verify-carve-conformance.py
README.md
docs/opendox-cutover-runbook.md
scripts/corpus_adapter.py
Introduces an end-to-end git-history corpus fixture and bare-repository transposition implementation.
  • Implements a reader backed by git ls-tree and git cat-file with no working tree fallback.
  • Builds populated and empty corpus states as bare repositories while preserving document keys and bytes.
  • Keeps the fixture explicitly scoped as openxFactory test evidence rather than an openDox implementation.
tests/carve_conformance/git_history_factory.py
Expands conformance tests to validate transposition fidelity, ordering, evidence, refusal behavior, and compatibility.
  • Tests successful bare-git transposition through all 17 checks and verifies the reported digest against the shipped corpus.
  • Tests changed, missing, extra, unservable, and malformed documents, ensuring refusal occurs before checks and names affected keys.
  • Tests unresolved readers, fail-closed handling after green checks, JSON refusal payloads, default-path compatibility, copied corpora, and updated missing-corpus messaging.
tests/carve_conformance/test_verify_carve_conformance.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Three unresolved moderate findings remain, along with one test-name nit.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds support for destination-provided corpus transpositions, proving document keys and bytes before conformance checks.

Changes:

  • Adds fidelity validation, diagnostics, and transposition metadata.
  • Adds a bare Git-history corpus fixture and coverage.
  • Updates documentation and corpus interface references.
File summaries
File Summary
tests/carve_conformance/test_verify_carve_conformance.py Tests transposition fidelity, ordering, metadata, and refusal cases. Nit (3 votes): fix corpuss typo.
tests/carve_conformance/git_history_factory.py Adds a bare Git-history reader and transposition fixture.
scripts/verify-carve-conformance.py Implements fidelity proof and reporting. Moderate findings: pin checks to the proven revision (1 vote), resolve corpus paths in JSON (2 votes), and emit complete digests (1 vote).
scripts/corpus_adapter.py Updates interface import documentation.
README.md Documents transposition support and the new refusal code.
docs/opendox-cutover-runbook.md Documents the transposition workflow and diagnostics.
Review details

Suppressed comments (2)

scripts/verify-carve-conformance.py:738

  • Please pin the populated conformance run to the exact revision that the proof used. prove_transposition() resolves and reads this corpus first, but run_corpus() constructs/resolves a fresh reader from only the path; a mutable transposition (for example, a moving Git HEAD) can change between those calls, leaving the 17 checks and the FAITHFUL metadata describing a different revision than the one proven. Reuse the proven resolved snapshot or pass its revision into the populated checks, and record that revision in the evidence.
        summary = run_corpus(factory, locations, args.destination, dest_root,
                             corpus_root, args.adapter, transposition)

scripts/verify-carve-conformance.py:544

  • The refusal claims to report both digests, but [:12] only emits prefixes. A changed document's full reference and served SHA-256 values are not available in either the human diagnostic or the JSON detail, so the reported mismatch cannot be independently checked from the failure output. Include the complete digests here.
            parts.append("documents whose bytes differ: " + ", ".join(
                f"{k!r} (corpus {reference[k][:12]}…, served "
                f"{served[k][:12]}…)" for k in changed))
  • Files reviewed: 6/6 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread scripts/verify-carve-conformance.py Resolved
brettheap and others added 2 commits September 17, 2026 13:17
… digests

Four findings at 57578dc, each taken by measurement and each with the test
that would have caught it.

1. THE REVISION WINDOW (suppressed comment, :738). `prove_transposition`
   resolves the corpus and reads it; `carve_conformance.run` then builds its
   own readers off the same path and resolves AGAIN. A transposition that
   moved between the two -- a git HEAD advanced by something else -- would
   have been measured at a revision nobody proved while the verdict said
   FAITHFUL. Closed by DETECTION rather than by pinning, because pinning
   would mean changing `carve_conformance.run`'s signature and that module
   is the one thing every destination runs: the record now carries the
   revision it was proven at, and `confirm_transposition_unmoved()`
   re-proves after a fully green run and refuses if the revision moved. It
   re-PROVES rather than comparing revisions, which is what catches the case
   a revision comparison cannot -- a directory corpus reports revision=None,
   so content rewritten under it is caught by the proof itself, naming the
   document. It cannot mask `write-back-leaves-the-tree`: `run_corpus`
   raises on any failed check first, so a tree that moved under the
   write-back never reaches it.

2. THE REFUSAL PAYLOAD'S CORPUS (thread PRRT_kwDOTAvnrs6jXfSu). `args.corpus`
   is null on a default run and an uncanonicalized relative path when one is
   given, while a successful summary carries the resolved path -- so the two
   could not be compared. `corpus_root` is hoisted above the try (it depends
   on nothing but the flag and this repository's layout) and every refusal
   now serializes it.

3. WHOLE DIGESTS (suppressed comment, :544). The byte-mismatch refusal
   printed twelve-character prefixes, which nobody can check a sha256
   against. Both digests are now complete.

4. THE `corpuss` TYPO (thread PRRT_kwDOTAvnrs6jXfTT) -- corrected.

Folded in with them, from this actor's own read: the git fixture now drops
ambient GIT_DIR / GIT_WORK_TREE / GIT_INDEX_FILE / GIT_OBJECT_DIRECTORY /
GIT_COMMON_DIR before every plumbing call (they would override every cwd=
and aim a file that WRITES COMMITS at whatever repository the process
started in); `document_fingerprint`'s docstring says why every file under
the populated state counts; the duplicate-key collapse says why it is
`list-stable`'s defect and not the corpus's; and the module's Run: block
carries a worked `--corpus` invocation.

tests/carve_conformance: 55 -> 60 passed.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
One conflict, in README.md's documentation index, and both sides were
verified before either was taken: main advanced the cutover-runbook entry's
line count 454 -> 621 (this branch never touched that line, so main's wins),
and the carve-conformance entry differed ONLY by this branch's own edit
(five -> six refusal codes plus the RULED Q-F1 (a) transposition clause),
checked by rebuilding main's line with that one replacement and asserting it
equalled this branch's. Nothing else in the entry moved.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 17, 2026 13:23
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Refs #656 (stays OPEN).
CLAIM: 5714686940

Copilot round 1 taken in full at e7968a3d, plus a merge of main at f2f03a17. Four findings, four fixes, each with the test that would have caught it and each mutation-proved. The two suppressed comments are answered here because they opened no thread.

1. The revision window (suppressed, verify-carve-conformance.py:738) — the sharpest of the four, and it was real. prove_transposition() resolves the corpus and reads it; carve_conformance.run() then builds its OWN readers off the same path and resolves again. A transposition that moved between the two — a git HEAD advanced by something else — would have been measured at a revision nobody proved, while the verdict said FAITHFUL.

Closed by detection rather than by pinning, and the choice is deliberate: pinning would mean handing carve_conformance.run() a pre-resolved corpus, and that module's signature is the one thing every destination runs, so widening it for the home runner's convenience is the privileged route wearing a helpful face. Instead the record now carries revision — the revision it was proven at, in the evidence, as the finding asked — and a new confirm_transposition_unmoved() re-proves after a fully green run, refusing conformance-corpus-unfaithful if the revision moved. It re-PROVES rather than comparing revisions because a revision comparison alone is vacuous exactly where it matters least: a directory corpus reports revision=None (the interface permits it), so content rewritten under it is caught by the proof itself, naming the document. It cannot mask write-back-leaves-the-tree: run_corpus() raises on any failed check first, so a tree that moved under the write-back never reaches it.

The verdict line now reads … 3 document(s) at revision <sha>, key/sha256 table <digest>, unmoved across the run.

Tests: test_a_transposition_that_moves_UNDER_the_run_is_caught_afterwards (a transposition advanced to a DIFFERENT commit carrying the SAME three documents at the same bytes — the content table is identical, so only the revision comparison can catch it) and test_content_that_moves_under_a_corpus_with_no_revision_is_caught_too.

2. The refusal payload's corpus (thread). args.corpus was null on a default run and uncanonicalized when relative. corpus_root is now formed above the try and every _refused call site passes it. Test: test_every_refusal_payload_names_the_RESOLVED_corpus.

3. Whole digests (suppressed, :544). Both sha256 values in a byte-mismatch refusal are now complete, so the mismatch can be recomputed from the failure output. Test: test_the_mismatch_reports_WHOLE_digests_and_not_prefixes, which recomputes both digests itself.

4. The corpuss typo (thread) — corrected.

Folded in from this act's own re-read, all three with a measurement: the git fixture now drops ambient GIT_DIR / GIT_WORK_TREE / GIT_INDEX_FILE / GIT_OBJECT_DIRECTORY / GIT_COMMON_DIR before every plumbing call — they would override every cwd= and aim a file that WRITES COMMITS at whatever repository the process started in (test_the_transposition_fixture_ignores_an_ambient_git_pointer sets one at a decoy bare repository and asserts it does not move); document_fingerprint's docstring records why every file under the populated state counts as a document; the duplicate-key collapse records why that is list-stable's defect and not the corpus's; and the module's Run: block carries a worked --corpus invocation.

One thing deliberately NOT added, and it is worth naming because it looks like an omission: confirm_transposition_unmoved() does not compare the served table digests. Both values would be equal to the reference by construction — the re-proof it just ran enforces that — so it is a check that cannot fail. The comment in the code says so.

Measured at f2f03a17: tests/carve_conformance 60 passed (38 at base, 55 at the previous head); tests/carve_conformance tests/carve_manifest tests/carve_arrival 401 passed; the control run (no --corpus) prints the line it printed before this pull request, byte for byte; the git transposition run prints OK … 17 of 17 … TRANSPOSED and FAITHFUL … 3 document(s) at revision cf064827…, key/sha256 table 744c9183e65f40fcd9061d6cdadf254db0b1a5c4a0ab633fc210b724e0f013c1, unmoved across the run.

Mutation proofs for this round (five more, eighteen in all): removing the post-run re-proof reds …digest_is_the_shipped_corpus_table (KeyError: 'revision_confirmed'); removing the revision comparison reds …moves_UNDER_the_run… (DID NOT RAISE); making the re-proof a bare copy of the earlier record instead of a fresh proof reds …no_revision_is_caught_too; truncating the digests again reds …WHOLE_digests…; reverting the payload to args.corpus reds …RESOLVED_corpus; inheriting the ambient git pointers reds …ambient_git_pointer.

main was merged at f2f03a17. Its one conflict was README's documentation index and both sides were verified before either was taken: main advanced the cutover-runbook entry's line count 454 → 621 (this branch never touched that line, so main's wins), and the carve-conformance entry differed ONLY by this branch's own edit — checked by rebuilding main's line with that single replacement and asserting it equalled this branch's.

🤖 Generated with Claude Code

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Two critical runner issues and one moderate Git replacement-object issue remain unresolved.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 6/6 changed files
  • Comments generated: 3
  • Review effort level: Lite

Comment thread scripts/verify-carve-conformance.py Resolved
Comment thread scripts/verify-carve-conformance.py Resolved
…k, replacements

Three findings at f2f03a1, all three right, each taken by measurement.

1. THE SERVED REVISION (:556). The proof keyed only on `got.content`, so a
   reader could resolve one revision and serve bytes from another -- a
   working tree, an older commit -- and still be recorded FAITHFUL. That is
   the interface's own contract rather than an extra demand:
   `CorpusAdapter.read` says "`revision=None` means the revision `corpus`
   was resolved at", and `Document.revision` reports which one it was. The
   seventeen checks never inspect that field, so the proof is the only place
   it can be held, and it now is, naming the key and both revisions.

2. THE RESOLVE THAT COULD TRACEBACK (:793). Round 1 hoisted the `--corpus`
   resolution above the catch-all `try` so that every refusal could name the
   corpus; that put `Path.resolve()`'s `OSError` -- a symlink loop is the
   exact case -- outside the exit contract, where it would have arrived as a
   traceback and exit 1, which this runner does not have. The DECLARATION
   stays outside and the RESOLUTION moves inside, so both findings hold:
   every refusal still names the corpus, and a corpus path that cannot
   resolve is `conformance-unreadable`, exit 2, naming what the operator
   typed.

3. REPLACEMENT OBJECTS (git_history_factory.py:111). The fixture's plumbing
   honoured replacement refs, so an ambient one could make `ls-tree` and
   `cat-file` serve objects other than the ones the transposition wrote --
   the fixture would prove a history it never laid down. It now passes
   `--no-replace-objects`, which is this repository's own rule for every git
   reader it owns (validate-carve-manifest.py:862, carved_reach.py:796,
   hermes_runtime_validation/content.py:106 and four more). The test plants
   a replacement, asserts it IS in force for a reader that does not disable
   it, and then asserts the proof still sees the real history.

tests/carve_conformance: 60 -> 63 passed.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Refs #656 (stays OPEN).
CLAIM: 5714686940

Copilot round 2 taken in full at 59b2a9ce. Three findings, all three right, each with the test that would have caught it and each mutation-proved. One of them was round 1's own fix opening a new hole, which is recorded rather than quietly patched.

1. The served revision (:556). The proof keyed only on got.content, so a reader could resolve one revision and serve bytes from another — a working tree, an older commit — and still be recorded FAITHFUL. It is the interface's own contract rather than an extra demand (CorpusAdapter.read: "revision=None means the revision corpus was resolved at"), and the seventeen never inspect Document.revision, so the proof is the only place it can be held. It now is, for every document, before the bytes are recorded, naming the key and both revisions.

2. The resolve that could traceback (:793) — round 1's fix opened this. Hoisting the --corpus resolution above the catch-all try (so every refusal could name the corpus) put Path.resolve()'s OSError outside the exit contract, where a symlink loop would have arrived as a traceback and exit 1. Both findings hold now by splitting the two: the DECLARATION stays outside, the RESOLUTION moves inside. A corpus path that cannot resolve is conformance-unreadable, exit 2, and the payload names what the operator typed.

3. Replacement objects (git_history_factory.py:111). The fixture's plumbing honoured replacement refs, so an ambient one could make ls-tree and cat-file serve objects other than the ones the transposition wrote — it would prove a history it never laid down. _git() now runs git --no-replace-objects …, which is this repository's own rule for every git reader it owns (validate-carve-manifest.py:862, carved_reach.py:796, hermes_runtime_validation/content.py:106, release.py:283, semantics/overlays.py:124, intent_compliance/authority_repository.py:193, validate-contract-release.py:70).

Measured at 59b2a9ce: tests/carve_conformance 63 passed (38 at base, 55, then 60); tests/carve_conformance tests/carve_manifest tests/carve_arrival 404 passed.

Mutation proofs for this round (three more, twenty-one in all): removing the revision comparison reds …serves_ANOTHER_revision… (DID NOT RAISE); hoisting the resolution back above the try reds …cannot_RESOLVE… with the traceback in the assertion message; dropping --no-replace-objects reds …not_a_REPLACEMENT with conformance-corpus-unfaithful. The replacement test also asserts the planted replacement IS in force for a reader that does not disable it, so it cannot pass vacuously.

All five threads are resolved. Requesting a fresh review at this head.

🤖 Generated with Claude Code

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Sanitize the complete Git environment in the history fixture before approval.

Review details

Suppressed comments (1)

Previously missed (1) — in code that hasn't changed since the last review.

tests/carve_conformance/git_history_factory.py:108

  • _git() removes only a subset of Git's ambient controls. The repository's exact Git readers also scrub GIT_ALTERNATE_OBJECT_DIRECTORIES, GIT_REPLACE_REF_BASE, GIT_CONFIG_COUNT, GIT_CONFIG_PARAMETERS, and indexed GIT_CONFIG_KEY_/GIT_CONFIG_VALUE_ variables; leaving them inherited means this fixture can read from an alternate object store or be altered by injected Git configuration, so it may certify history different from the bare repository it created. Build the environment from the established sanitized-Git pattern before adding GIT_ENV.
  • Files reviewed: 6/6 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…not a subset

One finding at 59b2a9c (a suppressed comment, no thread), and it is right:
round 2's hand-picked list scrubbed five ambient controls and left
GIT_ALTERNATE_OBJECT_DIRECTORIES, GIT_REPLACE_REF_BASE, GIT_CONFIG_COUNT,
GIT_CONFIG_PARAMETERS and the indexed GIT_CONFIG_KEY_n / GIT_CONFIG_VALUE_n
inherited -- so the fixture could read out of an alternate object store, or
be altered by injected configuration, and certify a history it never wrote.

The remedy is the repository's own rule rather than a longer list:
`validate-carve-manifest.py:856` says `carved_reach._sanitized_git_environment()`
"is REUSED rather than a third copy of its scrub list", so the fixture now
reuses it too -- the same helper every carve read already goes through. It
scrubs nine names plus every indexed config pair and pins GIT_CONFIG_GLOBAL,
GIT_CONFIG_SYSTEM, GIT_CONFIG_NOSYSTEM and GIT_NO_REPLACE_OBJECTS; the
fixture then adds only the four identity fields a commit needs where no
ambient git identity exists. `carved_reach` is stdlib plus PyYAML and
imports in 0.07s, measured, so the fixture stays cheap.

Two tests, and the second pins the RULE rather than the list: the
hermeticity case now plants ELEVEN ambient controls (a decoy GIT_DIR, a work
tree, an object directory, an alternate object store, a common dir, an index
file, a replace-ref base, and injected configuration both ways round) and
asserts the decoy repository does not move; and a new case asserts the
fixture's `_sanitized_git_environment` IS `carved_reach`'s, that it never
builds an environment from `os.environ` itself, and that the identity fields
it adds cannot re-open anything scrubbed -- so a name added to
`_SCRUBBED_GIT_ENVIRONMENT` reaches this fixture for free.

tests/carve_conformance: 63 -> 64 passed.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 17, 2026 13:47
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Refs #656 (stays OPEN).
CLAIM: 5714686940

Copilot round 3 taken at 13e8abf5. One finding, arriving as a suppressed comment with no thread — recorded here because a body-only finding is still a finding (this lane has been caught by that before).

The finding is right, and its remedy is a rule this repository already wrote down. Round 2's hand-picked list scrubbed five ambient controls and left GIT_ALTERNATE_OBJECT_DIRECTORIES, GIT_REPLACE_REF_BASE, GIT_CONFIG_COUNT, GIT_CONFIG_PARAMETERS and the indexed GIT_CONFIG_KEY_n / GIT_CONFIG_VALUE_n inherited — so the fixture could read out of an alternate object store, or be altered by injected configuration, and certify a history it never wrote.

A longer hand-picked list would be the same defect one iteration later, so the fixture now reuses carved_reach._sanitized_git_environment() — which is the repository's own rule, stated at validate-carve-manifest.py:856: "carved_reach._sanitized_git_environment() is REUSED rather than a third copy of its scrub list". It is the same helper every carve read already goes through (validate-carve-manifest.py:864, carved_reach._git_object_id): nine names plus every indexed config pair scrubbed, and GIT_CONFIG_GLOBAL, GIT_CONFIG_SYSTEM, GIT_CONFIG_NOSYSTEM, GIT_NO_REPLACE_OBJECTS pinned. The fixture then adds only the four identity fields a commit needs where no ambient git identity exists. carved_reach is stdlib plus PyYAML and imports in 0.07s, measured, so the fixture stays cheap.

Two tests, and the second pins the RULE rather than the list. The hermeticity case now plants ELEVEN ambient controls — a decoy GIT_DIR, a work tree, an object directory, an alternate object store, a common dir, an index file, a replace-ref base, and injected configuration both ways round — and asserts the decoy repository does not move. The new test_the_fixture_reuses_the_repositorys_own_git_scrubber asserts the fixture's _sanitized_git_environment is carved_reach's, that the file never builds an environment out of os.environ itself, and that the identity fields it adds cannot re-open anything scrubbed — so a name added to _SCRUBBED_GIT_ENVIRONMENT reaches this fixture for free.

Stated precisely, because the two tests guard different things and only measurement says which: restoring round 2's five-name subset reds the RULE test and not the ambient-controls test (the five pointers are still scrubbed there, and an alternate object store changes no outcome in that case); scrubbing nothing at all reds the ambient-controls test. Together they close the finding; neither alone does, and that is why both are here.

Measured at 13e8abf5: tests/carve_conformance 64 passed (38 at base, then 55, 60, 63); tests/carve_conformance tests/carve_manifest tests/carve_arrival 405 passed.

Twenty-two mutation proofs in all. All five threads resolved; this round opened none. Requesting a fresh review at this head.

🤖 Generated with Claude Code

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Two moderate validation gaps in the conformance runner remain unresolved.

Review details

Suppressed comments (2)

Previously missed (1) — in code that hasn't changed since the last review.

scripts/verify-carve-conformance.py:572

  • The proof reads every listed document but records only got.content; it never verifies that the returned Document.id identifies the requested document. A reader can return correct bytes for all keys while returning a wrong identity for the second or third document; carve_conformance only checks identity for the first, so this run can still pass a reader that violates the read round-trip contract. Compare the returned identity structurally by its corpus and key fields (not nominal dataclass equality, since interface replicas are intentional) before hashing.

scripts/verify-carve-conformance.py:561

  • Because revision=None is a valid value, getattr(got, "revision", None) conflates a document that explicitly reports no revision with a returned object that has no revision field. A foreign reader can return correct bytes from a plain-directory transposition while omitting that field and still pass this proof; use a sentinel and refuse a missing field so the check enforces the Document.revision contract.
        served_at = getattr(got, "revision", None)
        if served_at != corpus.revision:
  • Files reviewed: 6/6 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…eld is not None

Two findings at 13e8abf, both suppressed comments with no thread, both
right, and both about what a reader ANSWERED WITH rather than what it
answered.

1. THE IDENTITY (:572). The proof recorded `got.content` under the key it
   ASKED for and never looked at `Document.id`, so a reader could serve
   correct bytes under a wrong identity for the second or third document and
   still be recorded FAITHFUL -- `read-round-trip` checks the identity of the
   FIRST document only, so the seventeen would not catch it either. The
   identity is now compared, and STRUCTURALLY, by `corpus` and `key` rather
   than by dataclass equality: a reader authored elsewhere holds its own
   replica of the interface and its `DocumentId` is a different class object
   with the same shape, so nominal equality would fail a conformant reader.
   Two tests, because the pair is the claim: one where the last document
   comes back under another document's key (refuses, naming both), and one
   where a reader returns an identity of the same SHAPE from a class this
   repository has never seen (passes, and asserts that class is genuinely
   foreign so the case cannot pass for the wrong reason).

2. A MISSING FIELD IS NOT A VALUE (:561). `None` is a LEGAL value of
   `Document.revision` -- a corpus with no revision notion reports one -- so
   `getattr(got, "revision", None)` read a reader that omits the field
   ENTIRELY as one that answered `None` correctly. A module-level `_ABSENT`
   sentinel now separates the two, and the test measures exactly the
   conflation: a reader over a plain-directory corpus whose `resolve`
   reports `revision=None`, returning document objects with no `revision`
   attribute at all.

tests/carve_conformance: 64 -> 67 passed.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 17, 2026
…§ 5.2a's successor is READY-and-conflicting, and § 3.7's openDox figure gains the real reader's result

Three currency updates from acts that landed or moved while this amendment was
open. No marker moves; ledger stays 49/22/1.

1 · § 7.4 CLAUSE (ii) IS IN HAND. add-per-tenant-app-manifest-provisioning landed
as openxFactory #1073 -> 74647df at 2026-09-17T13:44:02Z (CLAIM 5704248880,
LANDED note 5715385370), the same day as the ruling that scoped it. Verified
against the landed tree rather than the note: the credential-contracts MODIFIED
delta restates the :169 invariant verbatim -- body plus all three promoted
scenarios -- and grows it by four clauses and six scenarios; code_surface: none,
target_release: implemented. And it proves clauses (B) and (D) BY OMISSION:
OpsxFactory and Omnigent-Install are not touched by a byte, which is exactly what
the ruling narrowed this lane to. The box now reads "(i) and (ii) are in hand;
(iii) is not, which is why the marker is untouched" -- § 3.5's per-tenant evidence
is the one that does not exist yet.

2 · § 5.2a's successor is READY, not merely filed, and CONFLICTING against main --
because it collided with § 7.4's own #1073 on the README OpenSpec Records block,
the one block Rule 6's landing window exists to serialize, two acts of the SAME
lane on the same afternoon. Recorded with the read time. The box does not move
until #1071 lands.

3 · § 3.7's openDox figure gains the newer result and keeps the old one, each
bound to its head: 11 of 17 at #26 6c8f19e7 (floor37's read, the measurement the
rulings were given on) and "OK - 17 of 17 check(s)", exit 0, once Q-F2's
construction data is applied in #26 -- the REAL class, not the diagnostic subclass
that first reached 17 of 17. #26 does not thereby claim this box and says so in
terms: § 3.7 also owes a declared factory and Q-F1's transposition, a separate act
at openxFactory (#1086).

openspec validate --strict valid.

Refs #656 (stays OPEN). CLAIM 5704937336.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 17, 2026 14:00
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Refs #656 (stays OPEN).
CLAIM: 5714686940

Copilot round 4 taken at db8a7bcb. Two findings, both arriving as suppressed comments with no thread, both right, and both about what a reader ANSWERED WITH rather than about what it answered.

1. The identity the bytes came back under (:572). The proof recorded got.content under the key it ASKED for and never looked at Document.id, so a reader could serve correct bytes under a wrong identity for the second or third document and still be recorded FAITHFUL — and, as the finding says, the seventeen would not catch it either, because read-round-trip checks the identity of the FIRST document only. The identity is now compared, and STRUCTURALLY, by corpus and key rather than by dataclass equality: a reader authored elsewhere holds its own replica of the interface and its DocumentId is a different class object with the same shape, so nominal equality would fail a conformant reader — which is the property the whole seam exists to preserve.

Two tests, because the pair is the claim and either alone is half of it: test_bytes_served_under_ANOTHER_identity_are_unfaithful (the last document comes back under another document's key; refuses, naming what was asked and what was answered) and test_a_foreign_identity_of_the_same_SHAPE_still_passes (a reader returns an identity of the same shape from a class this repository has never seen; passes, and the test asserts that class is genuinely foreign so it cannot pass for the wrong reason).

2. A missing field is not a value (:561). None is a LEGAL value of Document.revision — a corpus with no revision notion reports one — so getattr(got, "revision", None) read a reader that omits the field ENTIRELY as one that answered None correctly. A module-level _ABSENT sentinel now separates the two, and the test measures exactly that conflation: a reader over a plain-directory corpus whose resolve reports revision=None (asserted in the test), returning document objects with no revision attribute at all. The same sentinel guards the identity read.

Measured at db8a7bcb: tests/carve_conformance 67 passed (38 at base, then 55, 60, 63, 64); tests/carve_conformance tests/carve_manifest tests/carve_arrival 408 passed.

Mutation proofs for this round (three more, twenty-five in all): dropping the identity comparison reds …ANOTHER_identity… (DID NOT RAISE); making the identity comparison NOMINAL reds …foreign_identity… with conformance-corpus-unfaithful, which is the conformant reader being failed for Python's module identity; restoring the None default reds …MISSING_revision_field… (DID NOT RAISE).

All five threads remain resolved; rounds 3 and 4 opened none. Requesting a fresh review at this head.

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings September 18, 2026 14:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The runner must capture corpus identity and revision before listing documents to prevent validating mutated metadata.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (1)

tests/carve_conformance/test_verify_carve_conformance.py:842

  • This end-to-end test only checks the transposition marker and document/check counts. It does not verify the new human-verdict fields that _print_ok is responsible for—resolved candidate path, shipped path, proven revision, table digest, and unmoved across the run—so those fields could regress while the JSON test remains green. Add assertions for the rendered values here.
    assert "TRANSPOSED and FAITHFUL" in done.stdout, done.stdout
    assert f"{CC.SEED_EXPECTATION.documents} document(s)" in done.stdout
    assert f"17 of {len(CC.CHECKS)} check(s)" in done.stdout, done.stdout
  • Files reviewed: 6/6 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread scripts/verify-carve-conformance.py Resolved
…he JSON

Copilot's suppressed comment on this head is right, and measured before it was
taken: `unmoved across the run` and `key/sha256 table` appear in NO test in this
repository. The `--json` record is proved field by field -- `path`, `shipped`,
`documents`, `digest`, `revision`, `revision_confirmed`, `served_digest` -- but
nothing held `_print_ok` to RENDERING any of them. The shipped path, the proven
revision, the table digest and the closing `unmoved across the run` could each
be reworded or dropped and this suite would stay green.

That matters beyond tidiness: runbook section 2.2 tells a reader that "the
verdict's closing words `unmoved across the run` are that second one", and the
README index entry says the runner "names the transposition, its revision and
that table's digest in the verdict". A silent rendering regression would
falsify two landed documents while every check passed.

The whole transposition clause is now compared at once, so a REORDER or a
relabel reds as well as a deletion, and every value in it is DERIVED in the test
-- the digest from `fingerprint_digest(document_fingerprint(...))`, the revision
from the bare repository's own HEAD -- never transcribed.

This takes the suppressed finding only. The opened thread on the anchor's
ordering is answered on the pull request instead: its stated mechanism is a
reader that "returns a mutable ResolvedCorpus and changes either value during
listing", and both `CorpusRef` and `ResolvedCorpus` are frozen dataclasses, so
that is refused by the interface's own types.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 18, 2026 14:56
brettheap added a commit that referenced this pull request Sep 18, 2026
…ite (#1105)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Refs #656 (stays OPEN).

CLAIM: 5728621421

**FLOOR PART 4 (RULED OQ-1) is the one leg of the § D6 floor with no runner, and
it had never been run at all** — because nobody had asked what its two sides
were. This pull request answers that and gates the answer: `scripts/verify-snapshot-equivalence.py`
plus `tests/snapshot_equivalence/`, inside `pytest-suite`. A plain gate: no
`openspec/changes/` path, no README "OpenSpec Records" block, no leg, no pin,
no gitlink, no `docs/opendox-carve-manifest.yaml`, no runbook.

## The two sides, measured before anything was written

Read-only measurement 2026-09-18 (`attachments/lane-opendox/floor55/SCOPING-floor55.md`)
answered the three questions that had to be answered first, and the answer to
the fourth is that **the floor already holds**:

* **the PRE-SPLIT TREE is a published annotated tag, not a fixture** —
  `opendox-carve-0` → `b075fd91dc8fced8e1373825ba80220c33536bae`, FLOOR PART 1's
  own `carve_commit`, frozen by RULED (a) POST-SHED MODE (`#656` comment
  `5625573095`), reached by `git archive`. The carve manifest's own header
  already prescribes the move ("ask about the carve's own line by CHECKING OUT
  A PRE-SHED REVISION"), and `--pre-ref` accepts any pre-shed ref, so the claim
  does not rest on one of them: `contract-v3.7` (`45bd9ee2`) re-renders the
  identical digest, asserted by a test.
* **the POST-SPLIT STACK is not any leg pull request.** openDox-code #25/#26 and
  openXdox-code #23 carry no renderer between them (measured over their file
  lists). It is `openxdox.generator` + `openxdox.snapshot` at the openXdox-code
  leg this repository ALREADY PINS (`88a1047e` → `2529c10a`), reached through
  openxFactory's own `scripts/carved_reach.py` (RULED Q7, `5626248666`) over
  `scripts/doc_health/` (RULED DQ-1, `5547049745`) and
  `contracts/domain-profiles/openxfactory-engineering.yaml`.
* **the CORPUS is `tests/ideation-dashboard/fixtures/base-repo`** — 11 files,
  `not_moved / replicated_at_destination`, byte-identical at `b075fd91` and at
  today's `main`, which is why ONE directory can serve both sides.

## The § 8.2 evidence line this run produces

> **FLOOR PART 4 — the snapshot-equivalence run.** `scripts/verify-snapshot-equivalence.py`
> at `openxFactory` `<HEAD>`, 2026-09-18: the pre-split tree `opendox-carve-0`
> (`b075fd91dc8fced8e1373825ba80220c33536bae`, FLOOR PART 1's own
> `carve_commit`) and the post-split stack (`openxdox.generator` +
> `openxdox.snapshot` at the pinned openXdox-code
> `2529c10aa37cdee05957ccbb4ab57794a9fa7fb6`, through `scripts/carved_reach.py`,
> over `scripts/doc_health/` and
> `contracts/domain-profiles/openxfactory-engineering.yaml`) each rendered the
> corpus `tests/ideation-dashboard/fixtures/base-repo` (11 files,
> byte-identical at both revisions) at the pinned `source_revision`, and
> produced the SAME canonical snapshot: **14,849 bytes, `sha256
> 764b077b84031ec9bb13538f400904119141d954636cee6d53eee052b3840735`**, `cmp`
> byte-identical. Four corpus states were run and the digests matched at every
> one, including two that MOVE the digest — so the run discriminates.
> `OK — 4 of 4 corpus state(s) equivalent`, exit 0.

## A runner, not a one-shot recorded run

Parts 1–3 measure a tree that has stopped moving. **Part 4's post side is a PIN
THAT MOVES** — openXdox's gitlink advances on every leg bump, and each bump is a
chance to break the projection with nothing red. A recorded run proves the day
it ran. This proves every merge, and the whole of it costs **1.375 s** for one
corpus state and **1.959 s** for four.

`verify-carve-conformance.py`'s idiom throughout: `argparse`, named refusal
kinds with the vocabulary ENFORCED at the one place every refusal passes
through, `--json`, and the **0-pass / 2-refuse / never-1** exit contract held by
a blanket `except Exception` rather than by inspection. Five named kinds —
`equivalence-pre-ref-unreachable`, `-pre-tree-unrenderable`,
`-reach-unavailable`, `-profile-unregistered`, `-digests-differ` — plus the
blanket's own `equivalence-unreadable`, which is exactly part 3's shape (four
named beside `conformance-unreadable`): the exit contract's `except Exception`
has to render SOMETHING, and giving it one of the five would make the runner lie
about the cause.

**The evidence line is true by construction, not by report.** `verify_pins()`
checks BOTH LEVELS of BOTH legs — the recorded gitlink and the checked-out
revision, as `scripts/verify-openxdox-pin.py` checks them and as separate
required comparisons because only one of them catches each case — and refuses
`equivalence-reach-unavailable` on any mismatch or unreadable gitlink. Without
it, a leg left detached at some other commit renders perfectly well and § 8.2's
line names a pin that did not render. Every `git` read is scrubbed of
`GIT_DIR` / alternate-object-directory / replace-ref configuration, bounded at
30 s and `--no-replace-objects`; `--pre-ref` reaches `git rev-parse` behind
`--end-of-options`; the archive reads the RESOLVED COMMIT, so a branch or a
force-updated tag moving between the two reads cannot leave the runner
recording commit A while rendering commit B; and the verdict DERIVES the
post-side modules and their legs PER ROW from what `carved_reach` actually
resolved, so a `re_destined:` row cannot make the evidence line name a leg that
did not render. (All of that is Copilot's round 1
on this pull request: seven findings, every one FACT-correct on the landed
text, every one fixed with a test that would catch it coming back. **Round 2**
added three more, also all FACT-correct: the nested leg WORKTREE — what
`carved_reach` actually imports from — was never checked for dirt, so an
uncommitted edit rendered bytes that are not the pinned commit's while every
sha comparison passed; `GIT_CONFIG_PARAMETERS`, the channel `git -c`
propagates through, survived the scrub; and the unreadable-checkout refusal did
not distinguish a failed `rev-parse` from a checkout that is off its pin.
**Round 3** raised nine: six are fixed — `--source-revision` validated for
shape (which also closes SonarCloud `pythonsecurity:S8705` at the child argv),
a git read that did not ANSWER no longer reported as a missing ref, a
formatting-only difference still printing a diff, the verdict and the diff
header DERIVING the post side from the resolved modules instead of spelling
`openXdox-code` (a `re_destined:` row would otherwise render one leg and report
the other), and `-I` described accurately — and three are the
pin-verification class at its two-round cap, answered by measurement in
[one comment](#1105 (comment))
and registered for the next act on the file.)

Two things a builder would otherwise get wrong, both measured:

* **the PRE side runs in an ISOLATED child interpreter.** Both trees define
  `ideation_dashboard` AND `doc_health`; one process would resolve whichever
  landed on `sys.path` first, for both names, and could report equivalence
  against itself. `-I` drops `PYTHONPATH`, the user site directory and the
  implicit cwd entry, so the archived tree is the only place the child's two
  imports can come from.
* **`source_revision` is pinned on both sides, with an injected git.** Unpinned,
  the post side reads the checkout's HEAD through `RealGit` and the pre side —
  an archive, not a repository — reads `unknown`, and the digests then differ
  for a reason that has nothing to do with the projection. The pre-split
  determinism suite already solved this (`PINNED_REVISION = "abcd1234" * 5`);
  both sides here get that pin, and a test moves it to prove it is projected and
  that the injection reaches both sides.

## The run has teeth, measured rather than assumed

Four corpus states in one invocation, and **two of them MOVE the digest**:

| corpus state | bytes | sha256 | moves? |
| --- | --- | --- | --- |
| as it ships (11 files) | 14,849 | `764b077b…` | baseline |
| a file the projection does not read, added | 14,849 | `764b077b…` | no |
| one document DROPPED | 13,846 | `ba0e384b…` | **yes** |
| one `Status:` header changed | 14,845 | `0ed6e0d2…` | **yes** |

Both directions are needed. A projection that read everything would move on the
unread file too, and "equal" would then only mean "both sides ignore the
corpus".

**Two mutation controls, one on each side**, are what prove the runner refuses
when the sides differ — a comparison written `post == post` passes the first and
fails the second, which is why they are two tests and not one twice. Each is
asserted to produce `equivalence-digests-differ` carrying both digests, both
byte counts and a unified diff that NAMES the field. Every refusal kind is
driven through the command line rather than stubbed, including
`equivalence-reach-unavailable`, which is reached by copying the runner and
`carved_reach.py` into a tree with no legs.

**Nothing in this suite skips, and the last test asserts that of this file.**
`.github/workflows/pytest-suite.yml` pins `EXPECT_SKIPPED` as an EXACT sum
because a directory that quietly turns into skips reports as a green bar; this
suite has no conditional it could stand down on, since the gate's checkout is
`fetch-depth: 0` (so the tag is reachable) and it initialises both legs
recursively. `MIN_SELECTED` and `MIN_PASSED` are floors and need no edit.

## The second thing this run proves — § 4.4's profile fidelity

The arrived `generator.py` is parameterized by RULING C2 / § 4.4's domain
profile, measured at both ends: the pre-split blob (912 lines) carries the
literals inline — `"staged"` at `:348` and `:366`, `"picked"` at `:893` — and
the arrived one (974 lines) resolves each through `domain_profile.current()`
in `_declared_origin_kind()` (`:337`) and `_picked_register_state()` (`:324`).
**A byte-identical snapshot is therefore mechanical proof that
`contracts/domain-profiles/openxfactory-engineering.yaml` reproduces
openxFactory's vocabulary word for word** — one sentence of evidence, claimed
for § 5.5 and for § 8.2's line and for nothing else: **§ 4.4's box does not
move**, and this pull request ticks no box at all.

## Registered residue — what this runner does NOT do, by name

§ D6 (4)'s own words are "the same snapshot digests"; `canonical_bytes` reaches
no validator, so the run is complete without one. **The snapshot VALIDATOR is
nonetheless broken three ways by the carve, and this is the record of it**
(owed to § 8.9 or a successor, not repaired here — it would drag a
three-repository schema split into a box whose ruling asks for digests, and
touch openXdox-code, which #23 holds):

1. `openXdox/code/scripts/validate-ideation-dashboard-contracts.py` derives
   `SCHEMAS_DIR = ROOT / "contracts" / "schemas"` from its own `__file__` and
   openXdox-**code** carries no such directory (`exit 2`, `ERROR … not found`).
   Its ten schemas are split three ways — snapshot/index/gate-action at
   openXdox-**spec**, workbench/chat-turn/model-catalog at openDox-**spec**,
   gate-intent/possibles-register/project-register/demotion-receipt HERE — so no
   single `--schemas-dir` closes it either. **As carved, it cannot run from
   anywhere.**
2. `openxdox/snapshot.py`:29's `VALIDATOR_RELPATH` is a `moved_verbatim` row and
   now names `openxFactory/scripts/validate-ideation-dashboard-contracts.py`, a
   path this repository shed at `cc4ae9d3`.
3. `find_validator()` WALKS UP THE PARENTS, so a run started inside a checkout
   that still carries a pre-shed copy silently adopts it — floor37 § 6's defect
   class (a reader adopting its enclosing tree) arriving a second time in a
   different module.

Also flagged and NOT claimed: the snapshot **INDEX**
(`openxdox/snapshot_registry.py`, `ideation-dashboard-snapshot-index.schema.yaml`).
§ D6 (4) says "snapshot digests"; the index is a second artifact and would be a
second runner.

**The runbook section is deferred, deliberately.** Part 4's home is runbook
**§ 2.3** — never § 5.5, which is the runbook's own "The two commits, and why
they are two" — and the runbook's § 2 family is contended by #1085 and #1086.
The follow-up lands after both. The runner and its suite share no file with
either pull request.

## Bound by

RULED **OQ-1** `5547060378` (four parts, none substitutes for another;
"snapshot-equivalence only" was rejected on the record, so this closes the
FOURTH part and claims nothing for the other three) · RULED **OQ-K**
`5609526215` (its reasoning against a scalar in a ratified document —
"re-falsified by every merge" — is why the referent is a TAG and not a recorded
golden digest) · RULED **DQ-1** `5547049745` (openxFactory keeps `doc_health`
and its own adapter — the half of the post-split stack that stayed) · RULED
**(a) POST-SHED MODE** `5625573095` (carve digests frozen at `b075fd91` /
`opendox-carve-0`) · RULED **Q7** `5626248666` (`scripts/carved_reach.py`, the
one composition point) · RULING **C2** / § 4.4 · `design.md` § D6 (4):676-679 ·
§ 8.2's one-evidence-line-per-part.

## Verification

* `python3 scripts/verify-snapshot-equivalence.py` → `OK — 1 of 1 corpus
  state(s) equivalent`, exit 0, **0.78 s**, 14,849 bytes, `sha256 764b077b…`.
* Four corpus states in one invocation → `OK — 4 of 4 corpus state(s)
  equivalent`, exit 0, **1.196 s**.
* `--pre-ref contract-v3.7` (`45bd9ee2`) → the identical digest, exit 0.
* All five named refusals AND the blanket reproduce END TO END through the
  command line; not one of them is stubbed to be reached.
* `pytest -q tests/snapshot_equivalence` at `9be6727f` → **47 passed in
  24.14 s**, 0 skipped. (Earlier figures in the Copilot rounds — 21, 22, 28,
  29, 33, 38, 39 — are each the count at the revision they were measured at;
  the suite grew by a test per finding fixed.)
* `pytest -q tests/snapshot_equivalence tests/ideation-dashboard` →
  **1145 passed, 13 skipped in 322.57 s** (the 13 are the ideation-dashboard
  suite's own, under a targeted invocation; this directory contributes none).
* `pytest -q tests/snapshot_equivalence tests/carve_conformance
  tests/carve_manifest tests/domain_profile tests/openxdox_pin
  tests/opendox_pin` → **444 passed in 78.31 s**.
* **SonarCloud (advisory on this lane) reads ERROR on `new_security_rating`
  alone**, from ONE open `pythonsecurity:S8705` "command argument injection":
  `render_pre`'s child `subprocess.run`, where the tainted value is now only
  the `--corpus` path. It is `Path(...).resolve()`d and `is_dir()`-checked
  before it is used, and it lands as a POSITIONAL argument after `-c
  <program>`, which Python reads out of `sys.argv` and never parses as an
  option. Two of the three S8705 issues on this file are already CLOSED by the
  `--end-of-options` / resolved-commit fixes of round 1 and the
  `--source-revision` object-id validation of round 3 — the same class, taken
  where it was real. The remaining hardening (hand the child its inputs through
  the environment rather than argv) is registered with the six owed to the
  successor act.
* **THE GATE'S OWN `pytest-suite` AT `9eee4706` (run 35352846274): `4 failed,
  7966 passed, 6 skipped, 338 deselected` in 21:06.** `skipped == 6` is exactly
  the pinned `EXPECT_SKIPPED`, measured on the runner with this suite at 46
  tests — **this directory moves it by zero**, and `tests/snapshot_equivalence`
  contributes no failure. The four failures are `pytest red = inherited main
  red, 4ccab7b`: they are IDENTICALLY main's own four at `4ccab7b9` (run
  35350757712) —
  `tests/sequenced_after/test_archive_commit_dates.py::test_THE_BATCH_WALK_AGREES_WITH_A_PER_DIRECTORY_LOG_on_every_DISPOSITION`,
  `…::test_THE_LIVE_RECORD_DISPOSITIONS_ONLY_REAL_DISAGREEMENTS_and_NAMES_FACTS`,
  `…::test_THE_LIVE_PLAIN_RUN_IS_GREEN_WITH_ZERO_UNDISPOSITIONED`,
  `tests/sequenced_after/test_validate.py::test_corpus_sequenced_after_all_validate`,
  all `archive-date-vs-commit` over `2026-09-16-add-composed-view-authoring`.
  The same held at `2c0e7030` before the holder's `gh pr update-branch`, where
  the gate read `3 failed, 7960 passed, 6 skipped` against main's three at
  `aea1e6ce`.
* The whole `pytest-suite.yml` invocation (`python3 -m pytest tests/ -q -m "not
  postgres"`) was run locally AT `9c1a07f2`, when this suite held 21 tests:
  8330 selected, 8081 passed, 103 skipped, 96 failed, 50 errors, in 35:48.
  **`tests/snapshot_equivalence` is 21 of 21 passed, 0 skipped, 0 failed in
  that report** — which is the number
  `EXPECT_SKIPPED` cares about, and this directory moves it by zero. The local
  totals are NOT a control for CI and are not offered as one: 86 of the 96
  failures are `tests/trust-anchor` and all 50 errors are `tests/clearing`,
  neither of which this change touches, and the local skip count (103, of which
  74 are `tests/factory_identity`) differs from the gate's pinned 6 because the
  gate has tokens, a network and a pinned OpenSpec CLI this workstation does
  not. One failure was controlled explicitly and is NOT this change's:
  `tests/doc-health/test_sentinel_vocabulary.py::test_the_pin_counts_did_not_move_and_no_site_is_classified_twice`
  fails identically on a clean `origin/main` `9c817545` checkout here
  (`len(report.lost) == 0`, frozen at `1`) — a `--filter=blob:none` clone's
  `origin/main` IS its own HEAD, so the census's comparison against a MOVED
  main has nothing to see. **The gate's own `pytest-suite` run on this pull
  request is the authority.**
* **A mutation sweep of the runner at `2c0e7030`: 25 mutants, 25 caught, 0
  survived**
  (banked at `attachments/lane-opendox/floor55/build/mutation-sweep.log`). It
  earned its keep three times, and each survivor produced a commit rather than
  a shrug: `FakeGit(head=source_revision)` → `FakeGit()` survived, because with
  an explicit `source_revision` the generator calls `commit_date` once and
  never `head_sha` (measured with a recording git) — which is the reason to pin
  the injected anchor and not the reason not to; deleting the
  unrecorded-gitlink guard survived, because in a healthy tree that branch is
  never taken; and dropping `--end-of-options` survived and is MEASURED
  EQUIVALENT today (git 2.43.0 answers exit 1 with empty stderr either way,
  because the appended `^{commit}` already makes any option name unparseable),
  so the marker is kept and held by a source assertion carrying that
  measurement as its stated reason.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Four moderate findings remain in fidelity reporting, revision validation, reader membership checks, and Git-environment handling.

Review details

Suppressed comments (4)

Previously missed (1) — in code that hasn't changed since the last review.

scripts/verify-carve-conformance.py:718

  • This comparison enforces equality but not the interface's declared type for Document.revision (str | None in scripts/corpus_adapter.py:226-232). A structurally loaded reader can return a non-string revision object whose equality claims it matches the declared string, and the fidelity proof will accept it even though it certifies a malformed document response. Reject non-str/None values before comparing them, as is already done for ResolvedCorpus.revision above.

scripts/verify-carve-conformance.py:921

  • For an alternate --corpus, a successful proof can be followed by a conformance-check-failed or post-run fidelity refusal, but _refused() drops the transposition record and emits only the generic fields. That makes the JSON refusal/result payload lose the path, shipped corpus, document count, and digest promised by the new runbook/API, so machine consumers cannot identify which proven transposition the failure covered. Carry the proof record through these refusal paths (and emit it as a structured field) rather than requiring callers to reconstruct it from prose.
        print(json.dumps({"result": "refused", "code": exc.code,
                          "detail": exc.detail,
                          "destination": args.destination,
                          "dest_root": args.dest_root,
                          # WHICH corpus was refused against, because a
                          # `conformance-corpus-unfaithful` object that does
                          # not name the corpus leaves a caller reading the
                          # prose to find out. THE RESOLVED PATH AND NOT THE
                          # FLAG (Copilot, round 1): `args.corpus` is `null`
                          # on a default run and an uncanonicalized relative
                          # path when one was given, so a caller comparing a
                          # refusal with a summary — which carries the
                          # resolved path — would be comparing two spellings
                          # of one directory, or nothing at all.
                          "corpus": (str(corpus_root) if corpus_root
                                     else args.corpus),
                          "adapter": args.adapter}))

tests/carve_conformance/git_history_factory.py:231

  • read() accepts any key that Git can resolve, but the interface requires an unknown DocumentId to refuse. Because list_documents() deliberately exposes only .md documents, a non-document blob in this history can be read/classified successfully even though it is not listed; this makes the supposedly honest history reader non-conformant and weakens the corpus proof. Check membership in the declared listing before cat-file, as the home adapter does in scripts/corpus_adapter_openxfactory/adapter.py:209-216.
        at = corpus.revision if revision is None else revision
        if revision is not None and revision != corpus.revision:
            known = _git("rev-parse", "--verify", f"{revision}^{{commit}}",
                         cwd=Path(corpus.location))
            if known.returncode != 0:
                raise CorpusRefused(Refusal(
                    kind=REVISION_UNKNOWN, subject=str(revision),
                    detail="this repository carries no such revision"))
        blob = _git("cat-file", "blob", f"{at}:{document.key}",

tests/carve_conformance/test_verify_carve_conformance.py:1403

  • This deliberate control git process inherits the caller's Git environment, unlike GH._git(). An ambient GIT_DIR, alternate object store, or GIT_NO_REPLACE_OBJECTS=1 can make it inspect a different repository or suppress the replacement, so the test can fail spuriously or no longer prove that replacements are active. Run the control command with the shared sanitized environment, removing only GIT_NO_REPLACE_OBJECTS so the replacement remains enabled.
    import subprocess as sp
    swapped = sp.run(["git", "-C", str(populated), "cat-file", "blob",
                      f"HEAD:notes/alpha.md"], capture_output=True,
                     check=False)
  • Files reviewed: 6/6 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Refs #656 (stays OPEN).
CLAIM: 5714686940

Round 13 taken, and four findings registered rather than taken. This head
43a48ed5 is the holder's gh pr update-branch merge (933bbf7a, carrying main
dc242f3a) plus ONE fix commit. The round's opened thread is answered on the
thread itself and resolved; threads are 12/12 resolved, 0 unresolved.

What was taken. Copilot's suppressed comment on the end-to-end test was
right, and it was measured before it was taken: unmoved across the run and
key/sha256 table appeared in no test in this repository. The --json
record is proved field by field, but nothing held _print_ok to RENDERING any
of it, so the shipped path, the proven revision, the table digest and that
closing phrase could each be reworded or dropped with the suite still green —
while runbook § 2.2 quotes that phrase to a reader, and README's index entry
says the runner "names the transposition, its revision and that table's digest
in the verdict". The whole transposition clause is now compared at once, so a
REORDER or a relabel reds as well as a deletion, and every value in it is
derived in the test rather than transcribed. Four mutation proofs stand behind
it — M39 drop the closing phrase, M40 drop the digest, M41 stop
naming the shipped path, M42 reorder digest before revision — each applied
to the landed renderer, watched go red, and reverted byte-for-byte. That brings
this act to 42 mutation proofs.

What was answered rather than taken. The opened thread said the proof reads
corpus.ref and corpus.revision only after list_documents returns, and that
a reader could "return a mutable ResolvedCorpus and change either value during
listing". The premise about ordering is right; the conclusion does not follow.
CorpusRef and ResolvedCorpus are frozen dataclasses — measured, not read
off the decorator: assigning ref, revision or name raises
FrozenInstanceError — so the stated mechanism is refused by the interface's
own types. And the anchor is the frozen requested built before any destination
code runs, so the only post-list value that passes the comparison is the request
itself. The residue — a FOREIGN duck-typed stand-in mutating its own .revision
between calls — is already declared in the runbook paragraph this act lands.
That class was taken in rounds 5, 6, 7, 8 and 9; resolved rather than reopened a
sixth time.

Registered, not taken — the fix budget for this round is spent, and each was
measured here rather than relayed:

  1. verify-carve-conformance.py:718 — Document.revision is checked for
    PRESENCE and compared for EQUALITY, but not for TYPE, while
    ResolvedCorpus.revision is type-checked twelve lines earlier (that check is
    round 8's). Confirmed: the asymmetry is real. Second round for that class.
  2. verify-carve-conformance.py:921 — the refusal payload carries
    code/detail/destination/dest_root/corpus/adapter and zero
    occurrences of transposition
    , so a machine consumer reading a
    conformance-check-failed over a proven transposition cannot tell which
    transposition it covered. Confirmed. A new class.
  3. git_history_factory.py:231 — the read() membership check. This is Q-T3
    and pending Brett Heap's word
    ; not taken unbidden. Measured last round:
    structurally true, and not reachable through this corpus (the neutral fixture
    holds three files, all .md, and the transposed tree holds exactly those
    three blobs, so subtracting the listed identities leaves the empty set).
  4. test_verify_carve_conformance.py:1403 — one deliberate control git
    process runs through a bare subprocess.run while every other git call in
    the fixture goes through _git(), which applies
    _sanitized_git_environment() (itself rounds 2 and 3). Confirmed. Worth
    noting for whoever takes it: this one fails SAFE — an ambient GIT_DIR or
    GIT_NO_REPLACE_OBJECTS makes the assertion fail loudly rather than pass
    falsely — so it is a hermeticity gap, not a hole in the proof.

Landing, the § 3.7 tick and the § 3.7 evidence sentence remain the lane
holder's.

brettheap added a commit that referenced this pull request Sep 18, 2026
…hout (#1110)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Refs #656 (stays OPEN).

CLAIM: 5728621421

**Follow-up to #1105 @`9ed3def3`'s four suppressed findings.** #1105 landed at `02967478`. Copilot's review at its final head carried a "Suppressed comments" block of four, and **a 0-unresolved-threads count is not evidence about a suppressed block** — that is the landing gate's own rule, and it is what this pull request exists to satisfy after the fact. The four were registered on #1105 (comment [5731868859](#1105 (comment))) and are taken here.

**Scope: ONLY these four**, on Brett's RULING Q-P5 = (a) (`#656` comment `5731951297`): the remaining eight registered items and runbook § 2.3 go to a SECOND follow-up, because the runbook's § 2 family is contended until #1086 lands. No `openspec/changes/` path, no README Records block, no pin, gitlink or manifest — a plain gate over the same two files #1105 landed.

## The four

**[a] `render_post()` ran the moving post-split stack UNBOUNDED** (`:741`). The PRE side got its `timeout=` in #1105; the post side runs IN THIS PROCESS on purpose — it is the only stack the process has imported, and the PRE side, the one that would collide with it, is already in a child of its own — so moving it out to gain a timeout would undo the thing the timeout protects. It gets a `SIGALRM` watchdog instead, disarmed in a `finally`, mapped to a NAMED refusal: **`equivalence-post-stack-unrenderable`**, the symmetric counterpart to `-pre-tree-unrenderable`. Without it, a non-terminating regression in a FUTURE pinned leg — and the post side IS a pin that moves, which is this runner's whole reason to exist — hangs the required `pytest-suite` job until its own 35-minute limit instead of refusing.

The watchdog answers `None`, and the render then runs unbounded, where no `SIGALRM` exists or the caller is off the main thread. That is **the only place in this file that degrades rather than refusing**, and it says so in terms: the alternative is refusing a run for the shape of the interpreter rather than for anything about the projection.

**[b] The dirty-leg remediation could not clean the dirt it reported** (`:1020`). `worktree_dirt()` reports untracked entries, and `git checkout -- .` restores TRACKED paths only while a plain `git stash` leaves untracked files behind — so for a `??` entry the message sent an operator to a command that could not make the next run clean. It branches on what is actually there and names `stash -u` / `clean -fd` where those are what is needed.

**[c] `GIT_ATTR_NOSYSTEM` was scrubbed and never SET, which is half a guard** (`:352`). Dropping an inherited one only stops a caller DISABLING the system attributes file; `git archive` then still consults `/etc/gitattributes`, where an `export-ignore` silently changes WHICH FILES the pre-split tree carries. This runner's whole claim is that it read one named tree, so the tree must not vary with the host it is read on. Set now, and asserted twice — including that a caller who sets it to `0` does not get it back.

**[d] The resolved-commit test spied at the wrong layer** (`test:583`). It replaced `extract_pre_tree()`, so the `git archive` call whose argument IS the invariant never ran, and a regression inside that function passing `pre_ref` where `pre_commit` belongs would have left it green. It keeps the real extractor now and spies on `_git`'s archive arguments, asserting the revision handed to `git archive` positionally is the resolved 40-hex commit the evidence line quotes.

## Verification

* **The runner's verdict is unchanged**, which is the thing this pull request must not move: `OK — 1 of 1 corpus state(s) equivalent`, exit 0, **14,849 bytes, `sha256 764b077b84031ec9bb13538f400904119141d954636cee6d53eee052b3840735`**; and `OK — 4 of 4 corpus state(s) equivalent` over the four corpus states, two of which move the digest.
* `pytest -q tests/snapshot_equivalence` → **60 passed in 26.94 s, 0 skipped** (47 at `02967478`, plus six for the four findings, plus seven from the watchdog round below).
* **Mutation sweeps over the new code: 14 mutants, 14 caught, 0 survived** — 6 for the four fixes (the attributes file left enabled, the watchdog never armed, the watchdog left armed, the remediation ignoring untracked dirt, the archive handed the mutable ref again, a render timeout swallowed instead of refused) and 8 for the watchdog round.
* `EXPECT_SKIPPED` is untouched: this directory still contributes zero skips, and `MIN_SELECTED`/`MIN_PASSED` are floors.

## Round 1 on this PR — the watchdog class, closed

Copilot's review at `cc0ec217` raised three findings, all about the watchdog [a] introduced, all FACT, all fixed at `5b1b5855` (answers: [thread](#1110 (comment)), [thread](#1110 (comment)), and [the suppressed one](#1110 (comment))).

1. **`_RenderTimeout` derived from `Exception`**, so a pinned renderer's own `except Exception:` could consume the alarm and return as though the render had finished. It derives from `BaseException` now, for the reason `KeyboardInterrupt` and `asyncio.CancelledError` do — and `main()` grew an explicit catch, because its blanket guard is `Exception` ON PURPOSE and a `BaseException` escaping would have left a traceback and EXIT 1.
2. **The bound stopped at `generate_snapshot`**, leaving `canonical_bytes` — the snapshot leg's own code, which this function promises the BYTES of — outside it. A pin that hangs while SERIALIZING hangs the gate exactly as one that hangs while generating.
3. **Arming took the caller's `ITIMER_REAL` and `disarm()` cancelled rather than restored it.** A process gets ONE. A tighter inherited deadline is now left alone and we do not arm; a looser one comes back at what is LEFT of it, with its interval and handler; one that passed comes back firing rather than vanishing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 18, 2026
…st half on #1110, and names the second as still owed

#1110 -> 313b2665, merged 2026-09-18T16:47:05Z, takes all four of the suppressed
findings Copilot's review carried at #1105's landed head 9ed3def, as a plain
gate over the SAME TWO FILES #1105 landed and no other path.

A second follow-up is still owed and is NOT this box's condition: RULED Q-P5 (a)
(#656 comment 5731951297) scoped #1110 to those four alone, sending the remaining
eight registered items and runbook section 2.3 to a second act, held because the
runbook's section 2 family is contended until #1086 lands.

The clause read "floor55b takes them as a follow-up act" until that act landed.
Corrected rather than left in the future tense -- the same stale forward
reference this amendment already had to repair once at section 6.4, where a list
of "remaining" closures still named one that had landed. A ledger's forward
references are the part of it that rots fastest, which is why this amendment now
fixes them on sight rather than at the end.

Also recorded from the landing: a 0-unresolved-threads count is not evidence
about a suppressed block, which is the landing gate's own rule and the reason the
debt existed at all.

origin/main merged in at 313b2665 (#1108, #1094, #1110 since the last merge).
#1060 (section 6.1) and #1086 (floor part 3 transposition) are still OPEN, so
their ticks go to amendment #7.

Ledger unchanged at 54 [x] / 17 [ ] / 1 [~] of 72; one file; five marker changes
against main (5.2a, 5.5, 6.3, 6.4, 8.3). All four validators exit 0.

Refs #656 (stays OPEN). CLAIM 5728937703.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@brettheap
brettheap merged commit 049d54a into main Sep 18, 2026
15 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

LANDED — lane openxfactory-4, 2026-09-18T17:09:30Z, PR #1086 → 049d54a (opensoft/openxFactory main; plain gate)

FLOOR PART 3: the destination's TRANSPOSED corpus accepted and proved faithful (RULED Q-F1 (a) 5714365086). Copilot's four suppressed findings at 43a48ed are REGISTERED (comment 5732073951) and go to ONE follow-up PR under claim 5714686940 (the #1105/#1110 pattern; holder's decision (a)/(a) on the helper's Q-T3/Q-T4). Brett Heap: "keep going".

brettheap added a commit that referenced this pull request Sep 18, 2026
Lane: openxfactory-4
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 18, 2026
…osition proof, and the box deliberately does not tick

#1086 -> 049d54a, merged 2026-09-18T17:09:24Z, "FLOOR PART 3 accepts a
destination's TRANSPOSED corpus and proves it faithful", RULED Q-F1 (a) (#656
comment 5714365086).

What it discharges is the RULING, not the box. Section 3.7's own words are
"EVERY DESTINATION PASSES IT", so it ticks only when BOTH destinations pass the
neutral corpus -- openDox via #26, openXdox via section 4.5a. A proof that a
transposed corpus is faithful is the machinery those passes will run on, not one
of the passes; accepting the landing as the tick would discharge a
two-destination condition on zero destinations.

The follow-up's scope is four registered findings, booked at section 3.7 rather
than as section 8.9 residue because they belong to this box's own instrument:
#1086 landed AS IS at head 43a48ed with four Copilot findings registered rather
than fixed (#1086 comment 5732073951), and transpose37b takes them as one
follow-up PR under claim 5714686940. They are not a condition of this box
either.

Registering findings and landing anyway is the same shape section 5.5 used for
#1105 -> #1110. It is recorded at the box that owns the instrument because the
pattern only works if the register sits where the next reader actually looks,
rather than in a residue list at the far end of the file.

One more clock measured rather than transcribed: #1086's mergedAt is 17:09:24Z,
not 17:09:30Z; its updatedAt is 17:09:31Z. That is the THIRD landing time handed
to this lane today that was the PR's updatedAt rather than its mergedAt (#1109,
#1110, #1086), all three caught by reading the field instead of accepting the
figure.

origin/main merged in, now carrying 049d54a. Ledger unchanged at 54 [x] /
17 [ ] / 1 [~] of 72; section 3.7 stays [ ]; one file; five marker changes
(5.2a, 5.5, 6.3, 6.4, 8.3). All four validators exit 0.

Refs #656 (stays OPEN). CLAIM 5728937703.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 18, 2026
…d5 (#1113)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Refs #656 (stays OPEN).
CLAIM: 5714686940

**Follow-up to #1086 @`43a48ed5`'s four registered findings (comment
5732073951), holder decision 2026-09-18 17:09Z.** #1086 landed as
`049d54a9`; this branch takes all four of the findings that act measured but
had no push budget left to take. **One test each**, each mutation-proved.

Plain gate: three files, no `openspec/changes/` path, no README or runbook
change — no figure moves here, and **no document changes at all**.

## [1] `Document.revision` is checked for TYPE, before it is compared

`verify-carve-conformance.py` held the served revision to PRESENCE (`_ABSENT`
sentinel) and to EQUALITY, but never to the type the interface declares, 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__`: a
structurally loaded object can answer `True` against the declared string and be
certified 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 `--corpus` run can be proven faithful and *then* refuse — `conformance-check-
failed`, or the end-gate — and `_refused()` dropped the record, so the JSON
carried the code, the detail and the corpus path but no `path`, `shipped`,
`documents` or `digest`. 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 `null` where nothing was proven — a key
that appears only sometimes is a key a caller has to branch on, so there is a
second test for the `null` half.

## [3] The git reader refuses a blob it did not LIST (Q-T3)

`list_documents` narrows this fixture'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 — 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 `git` process inherited the caller's whole environment
while every other call in the fixture goes through `_git()` and the
repository's own scrubber. An ambient `GIT_DIR` would point it at another
repository; an ambient `GIT_NO_REPLACE_OBJECTS=1` — which that very scrubber
sets, 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

| measurement | result |
| --- | --- |
| `tests/carve_conformance` | **87 passed** (82 on `main`) |
| `tests/carve_conformance` + `carve_manifest` + `carve_arrival` | **495 passed** (490 on `main`) |
| the control run's verdict line vs plain `main` | **byte-identical** |
| the control run's `--json` vs plain `main` | **byte-identical** |
| the git transposition run | `OK … 17 of 17 … TRANSPOSED and FAITHFUL … unmoved across the run` |
| the key/sha256 table digest | `744c9183…`, unchanged for the sixth consecutive build |
| `scripts/validate-carve-manifest.py` | OK — 456 rows, 318 digests recomputed |

Both 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

* No document changes — the runbook's § 2.2 paragraph and README's index entry
  landed with #1086 and are not touched, so no figure moves.
* `tasks.md` is untouched; the § 3.7 tick and evidence sentence remain the lane
  holder's, as does the bookkeeper's still-owed append at
  `tasks.md:1189-1190` (five → six refusal codes, and "34 tests" → the suite's
  current size).
* openDox's own `transpose()` and in-tree factory remain openDox-code #26's,
  under RULINGS Q-F2 / Q-F3.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 18, 2026
… section 3.6 on the security defect that stopped #26

Section 3.5 TICKS on opensoft/openDox-code #25 -> aca94ecb, merged
2026-09-18T18:15:40Z, "the openDox runtime -- FastAPI + Postgres, identity and
coordination, and nothing else (RULED Q1/Q2)". The landing word was RULED
2026-09-18 17:55Z (#656 comment 5734029578) after a third mini-batch took three
security items; the word authorized the landing and the box ticks on the
LANDING, the same two-act ordering section 6 uses for a disposition.

Two things are owed and neither is this box's condition. #25 landed with three
suppressed Copilot findings REGISTERED rather than fixed, taken by the follow-up
under the same claim -- the same land-and-register shape section 5.5 used for
#1105 -> #1110 and section 3.7 used for #1086, now three times in this packet
and therefore a practice rather than an exception. And item (4), the
OPENDOX_SERVED_DATABASE declaration, was deliberately not in batch 3.

Section 3.6 does NOT tick and its STATUS says why. #26 is still an open draft:
its BASE MERGE introduced a credential exposure at app.py:1076, being fixed in
#26 before it lands. The record carries the fact, the file and the disposition
and deliberately not the value; no credential is reproduced, and the diff adds
no value-shaped string.

That pair is worth stating plainly: a landing word is not a landing. The word
covered #25 and #26 together and was given before the defect was found, so it
authorizes the act rather than certifying the result -- which is exactly why
this ledger ticks on landings and not on authorizations. A sibling's landing
does not discharge this box.

One more clock measured rather than transcribed: #25's mergedAt is 18:15:40Z,
not 18:15:46Z; updatedAt is 18:15:47Z. Fifth occurrence today.

Ledger 56 -> 57 [x] / 14 [ ] / 1 [~] of 72; one file; eight marker changes
(3.5, 5.2a, 5.5, 6.1, 6.3, 6.4, 6.5, 8.3). All four validators exit 0.

Refs #656 (stays OPEN). CLAIM 5728937703.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 18, 2026
…amendment's own landings overtook, and discharge section 5.5's satisfied hold

Three corrections, all measured at this branch's head with #1086 merged in.

Q-T1's registration said "ONLY ONE OF THE TWO HAS MOVED", gave the
carve-conformance suite as 35 def test_, and asserted the refusal codes were
"STILL EXACTLY FIVE". All three were true when written. Two were false by the
time this amendment reached its window, because #1086 landed in between and this
branch then merged it:

- tests/carve_conformance/test_verify_carve_conformance.py carries 79 def test_
  at this head, not 35, and it is the only test file in that directory.
- The refusal codes are SIX, not five. #1086 added
  conformance-corpus-unfaithful, which is the refusal carrying FLOOR PART 3's
  transposition contract.
- The corpus is still 17 checks.

The sixth code matters beyond currency. A registered inventory naming five would
send the next act to re-verify a refusal contract with one member missing, and
that missing member is precisely the one section 3.7's own transposition STATUS
depends on.

The paragraph predicted its own failure -- it says a test count "is exactly the
kind of figure that moves under acts with nothing to do with it" -- and was then
overtaken by that inside a single amendment. Every figure is now bound to this
head with the instruction restated: a count in this row is a reading, never a
fact, and the ticking act must re-measure all three at its own head.

Section 5.5's follow-up 2 said it was held "until #1086 lands" while this same
file already recorded #1086 as merged at 17:09:24Z two boxes away -- a forward
reference contradicted by the amendment's own evidence. The hold is discharged
and follow-up 2 is unblocked; any remaining wait belongs to its owner's
scheduling, not to that dependency.

All three caught by Copilot against head 83a055a.

Ledger unchanged at 57 [x] / 14 [ ] / 1 [~] of 72; one file; eight marker
changes. All four validators exit 0.

Refs #656 (stays OPEN). CLAIM 5728937703.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 18, 2026
…5, § 6.1, § 6.3, § 6.4, § 6.5, § 8.3), two landing-form INCIDENTS, and six residue rows (#1104)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Refs #656 (stays OPEN). CLAIM [`5728937703`](#656 (comment)).

**`split-opendox-two-layer-product` `tasks.md` AMENDMENT #6 — EIGHT ticks, the rulings of 2026-09-18 encoded, two INCIDENTS registered, and six residue rows booked.**

Claimed after a clean sibling search. Branch off `main`; amendment #5 landed at `cb0f8544`. `origin/main` is merged in. **Rule 6 applies.**

**Ledger 49 `[x]` / 22 `[ ]` / 1 `[~]` of 72 → 57 / 14 / 1 of 72.** One file. **Exactly EIGHT marker changes — § 3.5, § 5.2a, § 5.5, § 6.1, § 6.3, § 6.4, § 6.5, § 8.3.** Both gitlinks untouched.

> **This description has been rewritten as the amendment grew.** It previously declared *one* tick, then *two*; each figure was superseded by evidence that landed after it was written. Copilot correctly flagged the mismatch against heads `d323b9b5` and `fe9e5e6f` — the ledger was right and the description was stale, and this is the repair. The counts above are measured at head `7ac75a4e`.

## Eight ticks

**§ 5.2a — on RULED R-A** ([`5728607038`](#656 (comment))). `repromote-engineering-vocabulary` is **RATIFIED**, filed by **#1071 → `e83f8cd7`**. The box owed an **authored id**, and `openxfactory-engineering-adapter` is authored, filed and ratified. **Its archive is not this box's condition and is not claimed as one.**
> **The ratification is on the word; its ENCODING is owed and is now registered at the box.** Copilot raised across three heads that the successor packet still reads `draft`. **Measured true**: `Status: draft` in `proposal.md`, `design.md` *and* `tasks.md`, ratification tasks **1.1–1.6 all `[ ]`**, no `review/ratification-<date>.md`. **The tick stands** — what ratifies a change here is Brett Heap's word, and a packet's headers *record* a ratification rather than perform one — **but the encoding belongs to that packet's owner under its own claim**, and this amendment must not edit a neighbouring packet's lifecycle headers on its way past.

**§ 6.4 — on #1056's closure.** **#1056 → `3e32d987`**, merged **2026-09-18T10:50:06Z**, closing `add-composed-view-authoring` as re-homed to openDox under **RULING Q6**. Its destination half, `openDox-spec` **#12 → `edeed08c`**, was byte-identity verified at both ends by amendment #5.

**§ 6.3 — on #1057's closure.** **#1057 → `4ccab7b9`**, merged **2026-09-18T13:31:51Z**, closing `add-doxchat-model-intake` as re-homed to openDox under **RULING Q6**. Recorded Rule 6 window 13:31:44Z → 13:32:00Z, and **the measured merge time falls inside it** — the check worth making on a window rather than reading it back.

**§ 8.3 — on Brett Heap's word and the live evidence** at [`5729935756`](#656 (comment)). The box names **three clauses** and the tick is decided by reading its own text, each clause on its own artifact: the shed merged (**#940 → `cc4ae9d3`**); the MAJOR cut merged and **TAGGED** (**#983 → `ce5c054e`**; annotated tag `contract-v4.0`, object **`9e6c0ae4`**, peeling to `ce5c054e` **exactly**); and the tag verified from an independently refreshed checkout — **re-derived in this lane's own clone rather than transcribed**, `verify-tag` and `verify-commit` each returning `{"findings":[],"status":"pass"}` at exit 0. **Two independent checkouts agree**, which is what the clause asks for.
> **Three readings that could pass for defects are disposed of on the page**: the tag is **unsigned**, but it is a genuine annotated tag and **all 56 `contract-v*` tags are the same unsigned annotated form**, and the box asks for *verified*, not *signed*; **`verify-promotion`'s 4 findings** are a **pre-cut gate read after the cut** per its own docstring at `release.py:1197`, so `HGR-RELEASE-TAG-EXISTS` fires by construction; and **a harness error can impersonate a tag finding** — with shallow legs `verify-tag` raises `ReleaseDependencyError` and emits **no** finding. *The failure shape is the tell: a tag defect is a `findings` entry, a leg defect is a traceback.*

**§ 5.5 — FLOOR PART 4, on the runner the ruling asked for.** **#1105 → `02967478`**, merged **2026-09-18T14:59:28Z**. The box's condition was a **gated runner, not a recorded run**, and both halves are measured present: `scripts/verify-snapshot-equivalence.py` and `tests/snapshot_equivalence/test_snapshot_equivalence.py` are the two files the commit adds, `pytest-suite` runs `python3 -m pytest tests/ -q` (`pytest-suite.yml:599`) so the suite is inside the gate **by construction** rather than by a wiring entry that could be dropped, and it **collects 60 tests** in this branch's own tree (48 before `#1110` added its watchdog suite — the figure is bound to this head, not carried). *That is exactly why Q-P1 (a) refused a one-shot run: the post-split side is a pin that moves, so what holds the equality is a gate that re-proves it every time.*
> **One STATUS clause is owed, and it is a REVIEW DEBT rather than a runner defect.** Copilot's review at the landed head `9ed3def3` (review `5249196044`) carries **four suppressed findings** the holder's gate script did not surface before landing; **`floor55b` takes them as a follow-up act**. The tick is not held on that — this box asked for a gated runner and the gated runner is on `main`, and conflating an owed review act with the box's stated condition would leave the floor's fourth part unticked for a reason the box never stated. **Second occurrence in this packet of a per-push review body going unread**, which is why the clause names the review ID.

**§ 8.2 stays `[ ]` and gains part 4's referent** — it owes one evidence line *per part* and is discharged by all four, not by the fourth.

**§ 6.1 — on #1060's closure, and it is the landing rule's first clean pass end to end.** **#1060 → `e3647b6d`**, merged **2026-09-18T17:30:27Z**, closing `add-nightly-dashboard-refresh` as re-homed to openXdox, destination `openXdox-spec` **#15 → `f088b097`**. **Both clauses of the amended rule were exercised and both held**: clause 1 — two parents, and the `2026-09-16-` directory keeps a `2026-09-16T01:28:33Z` adding commit; clause 2 — the archive-date arm re-run on **`origin/main` merged with the candidate** exits **0**, so INCIDENT 2's stacked-history trap is measured absent rather than assumed absent.
> **One item registered for the successor, not booked as residue**: the self-gate `_REHOMED_AND_STILL_WHOLE` **cannot carry a row for a PARTIAL carriage** — this closure re-authored the proposal at the destination while the `doc-health` delta deliberately did not travel. A partial-carriage pin is owed (`#1060` comment `5733632291`). It sits at § 6.1 because it is a property of *this closure's shape*, and § 6.1 is where the next partial carriage will be read from.

**§ 6.5 — on #1065's closure, the awkward one.** **#1065 → `81903286`**, merged **2026-09-18T17:54:08Z**, RULINGS **Q6 + DQ-1**. The landing rule held on both clauses again (two parents; the `2026-09-16-` directory keeps a `2026-09-16T13:29:40Z` adding commit; the arm on main-plus-candidate exits 0). **The SPLIT is what makes this box awkward and the closure names it rather than eliding it** — the set-builder half re-homes while the `doc_health.staging_seed` drafter and route stay in `openxFactory`'s own adapter, so the requirement is divided *within itself*. A re-home that moved the whole requirement would have been the easier record and the false one.

**§ 3.5 and § 3.6 take a STATUS and deliberately do NOT tick** (RULED 2026-09-18 17:55Z, `#656` comment `5734029578`): `openDox-code` **#25** and **#26** take a third mini-batch for three security items and then land on that word. The word authorizes the **landing**, and the box ticks on the landing — the same two-act ordering § 6 uses for a disposition. **Item (4), the `OPENDOX_SERVED_DATABASE` declaration, is a follow-up act under the same claim and is not in batch 3**, written into both sentences so its absence from #25/#26 is not read as an omission.

## Two INCIDENTS registered

**INCIDENT 1 — the squash (§ 6.4).** #1056 landed by **squash**, so the archive directory named `2026-09-16` took a **2026-09-18** adding commit and reddened `main`. **Measured, not taken on report**: `3e32d987` has exactly one parent. **The rule this packet now carries: archive closures land by `gh pr merge --merge`, never squash** — written into the ledger because the ledger is what the next closure's author reads.

**INCIDENT 2 — the merge (§ 6.3), and it is why the rule gained a second clause.** #1057's branch was stacked on #1056's **pre-squash** tip, so landing it by merge commit carried #1056's original archive commit **`d8ff2ec2`** (2026-09-16) into `main`'s history. The checker then reads `d8ff2ec2` rather than the squash, the directory name agrees, and **#1106's disposition row — correct when it landed — is reported STALE**. `main` went red again at `4ccab7b9`.
> **Measured**: `d8ff2ec2` is not an ancestor of `bbd1cca8` (13:28Z) but is an ancestor of `main` after `4ccab7b9` (13:32Z); it arrives through #1057's **second parent**, **not** the first-parent line. The row was correct for about four minutes, then became wrong **with no edit to it and none to the directory**.
>
> **The lesson is not that the squash was fine.** A disposition row is a statement about **which commits are reachable from `main`**, not about a directory. Squash caused INCIDENT 1 by **mis-dating**; merge caused INCIDENT 2 by **re-parenting**. So the rule **gains a second clause** rather than being withdrawn: land stacked archive closures by merge commit, **and re-run the archive-date arm on `origin/main` merged with the candidate before opening the window**. The clauses answer the incidents **one each** — clause one would not have caught INCIDENT 2, and clause two could not have caught INCIDENT 1, since the squash commit does not exist until the landing happens.

## Three rulings encoded, moving no box

**§ 5.5 — RULED Q-P1..Q-P4** ([`5728856581`](#656 (comment))), over helper actor `floor55`'s read-only measurement. **The fourth floor part already holds**, so what is owed is a **RUNNER, gated in `pytest-suite`**, not a recorded run — *because the post-split side is a pin that moves, and an equality proved once is not an equality held.* The pre-split tree is the published annotated tag **`opendox-carve-0` → `b075fd91`**, `git archive`d into a temp tree. The snapshot **validator is not part 4's** (§ D6 (4) asks for equal digests; `canonical_bytes` reaches no validator). § 4.4's profile fidelity earns **one sentence** here and one in § 8.2's line, **and moves no box**.

**§ 5.6 — RULED R-B, R-C, R-D** ([`5728607038`](#656 (comment))), over helper actor `defloor56`'s measurement, spot-checked at codexFactory `main` `22d44b09`. **R-B, the ORDER EXCEPTION**: the order this box writes is **jointly unsatisfiable** with `assert_landed_pin` for a removal, and has never been exercised because no floored path has ever been removed. **The measured cost decides it** — de-floor-first reds `openxFactory`'s **REQUIRED** `pytest-suite` repo-wide; archive-first reds only codexFactory's **ADVISORY** merge-master lane, which that spec's own design intends (*"the deleting PR carries the failure"*). **No REQUIRED check goes red at any step of the ruled order.** **R-C** reads the `SPECS_FLOOR_PATHS` clause as satisfied by the regeneration, since codexFactory #232 made the constant computed at import — **the reading is recorded, the clause is not edited**, in this packet's no-deletion style. **R-D** records the additions-only test fixed inside the de-floor PR as a test-scope correction: it asserts `removed == set()` over the live document, was **proven RED on the dry run**, and is **broader than its own canon**.

**§ 4.5a — RULED [`5728368325`](#656 (comment) `xdoxbuild`'s **seven bot commits are ACCEPTED AS DISPOSITIONED and the episode is registered as a process breach**, with the verdict-at-HEAD table (one content-reverted — it deleted the listing cache and took 801 documents from 0.07 s to 58.85 s; one finding-kept-implementation-replaced; five kept) and **the relay lag named as the cause, not the actor's judgment**. **Q-A, the dirty-work-tree reader: LEAVE AS IS** — both readers resolve HEAD over a dirty tree consistently, and a refusal would make an editor's swap file render the corpus unreadable.

## Four records

* **§ 3.4** books `openXdox-code` **#22 → `fa792cbb`** (09:53:32Z), completing the **Q7 trio**. The box is already `[x]`; the record does not move it.
* **§ 4.5a** takes its exit sentence from `openXdox-code`#23's own body **with `--dest-root` ADDED, and not as offered**. This lane measured twice — amendment #5's rounds 15 and 25 — that the runner refuses `conformance-unreadable — --dest-root is required` and **exits 2** without it. **The sentence as offered would record a passing run of a command that cannot run**, which is the defect § 4.5a spent two rounds removing.
* **§ 8.9** books the snapshot validator's **three** defects as residue rows on Q-P3: `SCHEMAS_DIR` resolving to an absent directory; `VALIDATOR_RELPATH` naming a path `openxFactory` shed at `cc4ae9d3`; and `find_validator`'s parent walk adopting an enclosing pre-shed checkout — **`floor37` § 6's defect class for the second time in this packet**, which is why it is named as a class.
* **§ 3.7** registers **Q-T1** rather than performing it: the correction is owed as one append **when that box ticks**.

## A correction that corrected itself

Q-T1 named **two** stale figures in § 3.7, and this amendment answered twice — the second answer overturning the first.

**At this branch's base** only ONE had moved: **35** `def test_` against the recorded 34, with *"five refusal codes"* still five.

**At the immutable sha `83a055a6`, BOTH have moved, and one moved while the amendment was being written**: the suite carries **79** `def test_`, and the refusal codes are **SIX** — `#1086` added **`conformance-corpus-unfaithful`**, the refusal carrying FLOOR PART 3's transposition contract. The corpus is **still 17 checks**.

*The registered paragraph predicted precisely this* — it says a test count *"is exactly the kind of figure that moves under acts with nothing to do with it"* — and was then overtaken by it inside a single amendment. **Re-measure all three at YOUR head; a count in this row is a reading, never a fact.**

**Q-T2** (list-versus-tuple `list_documents`, `5716870896`) is recorded as RULED (a): **no change, the seventeen stay closed.**

## Records that move no box

* **§ 3.4** books the **Q7 trio** (`openXdox-code` **#22 → `fa792cbb`**) and the **S7 residue pair** — **#1085 → `1da7ea6e`** (13:29:34Z) with `openDox-code` **#28 → `52b237e8`** (13:30:20Z). **Guarded explicitly**: Q-L1's annotation-first rule holds again in form, 46 s apart, but **the holding count stays SEVEN** — it counts one holding per *annotated slice*, and this is residue to S7, already counted. Counting it would restate a figure this packet has already had to correct once.
* **§ 4.5a** takes its exit sentence from `openXdox-code`#23's own body **with `--dest-root` ADDED, and not as offered**. The sentence as offered would record a passing run of a command that **cannot run**.
* **§ 3.7** registers **Q-T1** rather than performing it, owed as one append **when that box ticks**.

## Six residue rows booked, none resolved

* **(i)–(iii)** the snapshot validator's three defects on Q-P3 — `SCHEMAS_DIR` absent; `VALIDATOR_RELPATH` naming a path shed at `cc4ae9d3`; `find_validator` adopting an enclosing pre-shed checkout, **`floor37` § 6's class for the second time in this packet**.
* **(iv)** two of the **release bundle's own validators** byte-drifted against their digest set. **Not a finding against § 8.3** — clause 3 reads the *historical* commit `ce5c054e`, this drift is measured against *today's working tree*, and both are true. Also **not** the three `HGR-RELEASE-SURFACE-DRIFT` paths, so the two reports must not be collapsed.
* **(v)** `validate-sequenced-after.py` claims **"124 of the 143"**; measured at merged head `c2d5ce92` it is **128 of 172**. **The live claim lives at THREE sites** — `:42`/`:402` the pair and `:739`, an **argparse help string** and so user-visible CLI text. *This row first "corrected" three to five by adding `:36`/`:396`; that was wrong and is retracted in the ledger — both read "before it was made a gate" and are **historical evidence**, which renumbering would destroy.* **A dated claim is not a stale claim.** **A bare renumber is the wrong repair**: the denominator moved **three times in one afternoon** (170 → 171 → 172) while the numerator held at 128, because a closure archived on its own directory's date lands in the *equal* bucket. **The denominator rots by construction.**
* **(vi)** the `archive-date-vs-commit` arm is **history-shape sensitive** (INCIDENT 2 is the demonstration), owed to the owner of `tests/sequenced_after`. Two candidates, neither chosen: a **first-parent walk**, or dispositioning by the **(directory, adding commit) pair** so a displaced row reads **SUPERSEDED** rather than STALE. **Candidate (1) is measured to work on this case** — `d8ff2ec2` is not reachable along main's first-parent line — **but that is one case and not a proof of the general rule.**

## What this amendment deliberately does not do

§ 3.5, § 3.6 and § 4.5a keep their `[ ]` and wait for their own landings. **#1060, #1065 and #1066 (§ 6.1 / § 6.5 / § 6.2) are not ticked here**; their ticks are left to a later amendment unless they land before this one's window opens.

## Gates

`OPENSPEC_TELEMETRY=0 openspec validate split-opendox-two-layer-product --strict` **valid** · `proposal-support.py verify` **ok** · `validate-sequenced-after.py --ledger-diff` **clean (219 rows)** · `verify-opendox-pin.py` **OK, lockstep confirmed**.

**The gate is GREEN.** The `add-composed-view-authoring` STALE finding that reddened `main` was INCIDENT 2's, and it is retired: **#1109 → `dc242f3a`** (merged 14:26:58Z). Verified in this branch's own merged tree, not taken on report — `validate-sequenced-after.py` exits **0** with *"archive-date-vs-commit agreement passed … 13 disposition(s) in force"*, and the retired key is genuinely absent (13 live keys, none of them that one; the four remaining name-hits are all comments recording why). The corpus reconciles at **172 archived / 13 dispositioned / 159 agreeing**.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 18, 2026
…y close, and with it every section 6 disposition

Section 6.2 TICKS on #1066 -> 3bf63b8, merged 2026-09-18T20:24:53Z, "Close
section 6.2: retire-doxbench-chat-turn-v1 archives on its own evidence, and ITS
delta promotes". The box is the one that could not simply close, and 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.

The landing rule held on both clauses and NO DISPOSITION IS OWED. 3bf63b8 has
two parents; the archive directory 2026-09-16-retire-doxbench-chat-turn-v1
carries an adding commit 90bf93c dated 2026-09-16T14:38:38Z, the day it is
named for, so the archive-date arm has nothing to fire on -- unlike INCIDENT 1's
closure, this one costs no disposition row. Clause 2 re-run on origin/main
merged with this branch exits 0.

Section 6 is now complete except for its standing condition. Sections 6.1
through 6.5 are all [x], and all five disposition directories are under
openspec/changes/archive/ -- read from the tree rather than from this ledger, so
the two can be compared instead of one restating the other. Only section 6.6
remains, and it is a standing condition rather than an act.

One finding is registered and not resolved (4050274179): a Copilot qualification
against the closure, carried as the follow-up's scope under the land-and-register
pattern this packet has now used four times -- #1105 to #1110, #1086, openDox-code
#25, and here.

A release figure inside that closure is preserved as a measurement, because it is
this packet's own defect class caught first in someone else's prose and then in
its own: the published run from the deprecation to the removal is TWENTY
releases, counted BY TAG, after an earlier count wrongly included contract-v2.6,
which the versioning policy rules "permanently unreleased". Verified
independently here -- git tag -l 'contract-v2.*' returns v2.0 through v2.5 and no
v2.6, so the bundle is absent from the tag space rather than merely unpublished.
A count taken from intent rather than from the tag would have been wrong by one.

origin/main merged in at 3bf63b8. Ledger 57 -> 58 [x] / 13 [ ] / 1 [~] of 72;
one file; one marker change. All four validators exit 0.

Refs #656 (stays OPEN).

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 18, 2026
…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]>
brettheap added a commit that referenced this pull request Sep 18, 2026
…#1115)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Refs #656 (stays OPEN).

CLAIM: 5728621421

**The SECOND and last follow-up on FLOOR PART 4**, on Brett's RULING Q-P5 = (a) (`#656` comment [`5731951297`](#656 (comment))): #1105 landed the runner, #1110 took the four findings its review SUPPRESSED, and this takes **the eight remaining registered items plus runbook § 2.3**. Registered across #1105's rounds and listed in full in [comment `5731868859`](#1105 (comment)) (round 10's twelve, minus #1110's four). Nothing is left owed after this.

A plain gate: four files, no `openspec/changes/` path, no README OpenSpec Records block, no pin, no gitlink, no manifest. `origin/main` is MERGED in at `e3647b6d` (never rebased), which is how #1086's runbook lands under § 2.3.

## The eight

**1. `ls-files -s` reads STAGE 0, or names the conflict.** During an unresolved merge git lists stages 1, 2 and 3 for a path, so taking the first `160000` row read the MERGE BASE's gitlink — or THEIRS — as the pin this repository records, and then refused or passed against a commit nobody has declared. There is no recorded pin during a conflict; that is a state to name, not to guess through. Tested against a **real** conflicted index written with `update-index --index-info`.

**2. The two `spec` mounts join the pin set** (and, for a while, the sweep — see the correction below). `leg_of()` matches the longest VERIFIED pin root containing a module's file, so a module under `openDox/spec` — which a `re_destined:` block may lawfully put there — resolved to the `openDox` ASSEMBLY ROOT, and the verdict named the assembly's commit for a module the assembly does not contain. Measured on #1105 round 6 with a module placed there; the pin set is six mounts now.

> **CORRECTED at `3ab57af5`, on a measurement rather than an argument.** `IMPORTED_LEGS` briefly followed the pin set, and that was over-reach: `carved_reach.LEGS` installs exactly two roots (`openDox/code/src`, `openXdox/code/src`) and `module()` refuses a row that is not a `.py` at a code leg, so **nothing can be imported out of a spec mount through this reach**. Sweeping a tree this run cannot import from can only refuse a run for a state that cannot change its result. The spec mounts stay PINNED and leave the SWEEP; the test asserts the measurement, so it fails if the reach ever grows a spec root.

**3. The chain is resolved from the EXACT OUTER COMMIT.** Index-first is right for the pin this repository declares — a re-pin must be checkable before it is committed — and wrong one level down. A `code` gitlink staged inside `openDox` is in no commit openxFactory has declared, yet the index-first read took it as the recorded pin while `openDox`'s own HEAD still matched, so the level above stayed green. Each nested row is now read out of `<the commit its parent verified>:<path>`. Two tests: the helper, against a real staged-vs-committed gitlink, and the WIRING — that `verify_pins()` actually hands each nested row its parent's verified oid.

**4. `GIT_NO_LAZY_FETCH=1`, and the failure it produces named.** In a partial clone a read of an absent blob is fetched from the promisor remote, so `git archive` reaches for the NETWORK in the middle of a measurement — and hangs for as long as that takes, or for ever, inside a runner whose whole contract is to refuse rather than hang. **Measured on a `--filter=blob:none` clone archiving a tag the checkout never materialized** (this runner's own case, since `opendox-carve-0` is far behind any working tree):

```
$ GIT_NO_LAZY_FETCH=1 git archive --format=tar carve-0 -- scripts
warning: lazy fetching disabled; some objects may not be available
fatal: could not fetch d943254485e0… from promisor remote      → rc 128
$ git archive --format=tar carve-0 -- scripts                   → rc 0, after a silent fetch
```

New code **`equivalence-object-store-incomplete`**, because the remedy is a deliberate `git fetch origin <commit>` and the old message told that operator their tree carried no renderer — sending them to replace a good `--pre-ref`.

**And the other half, after Copilot's round on this PR (`d6244aa4`):** classifying the store left the FALLBACK worded for it, and what now landed there was the opposite condition — `git archive` fails before writing anything when no path matches, so a tree carrying neither archive path never reached the per-row post-shed check below and was told to fetch objects instead of to name a pre-shed ref. A pathspec failure is classified as the POST-SHED REF it is; what is left is UNDIAGNOSED and says so, carrying its stderr and both remedies as possibilities rather than one as a verdict. Both new tests assert the DETAIL and not only the code, which is how the first one passed on the wrong message.

**5. The cleanliness sweep in its working form.** `git diff --name-only HEAD -- src`, `ls-files --others --exclude-standard`, and an `ls-files -v` scan for `assume-unchanged` / `skip-worktree`. Those flags make git report an EDITED file as clean, so a leg carrying one could be edited with `status --porcelain` — the first spelling — answering nothing at all; the test proves exactly that, with `status` returning empty while the sweep reports the file. `--ignored`, the originally proposed remedy, stays REJECTED on the measurement that killed it: it reports this runner's own `__pycache__` (3 and 4 entries) and would refuse on every run after the first. `_clean_advice()` grows the third remediation, because `checkout -- .` cannot clear a flag bit.

**6. A non-importing materialization probe, BEFORE `post_stack()`.** Composing the stack installs a meta-path finder, mutates the import system for the rest of the process, and writes `__pycache__` INTO the leg whose cleanliness the next check asserts. Doing all that to discover that a submodule directory is empty — and then saying so in terms of a module name — is work with side effects performed to reach a worse message. Three shapes are named: absent, empty (recorded and never initialized), and no `.git` (a copied source tree). The ORDER is tested, not just the function.

**7. The superproject's revision and dirt in the evidence, never a refusal.** The post side is composed out of ROOT's `carved_reach.py`, `opendox_host.py` and the § 4.4 profile — none of them pinned by the gitlinks the verdict names — so two runs can differ by them alone while every pinned leg matches. It is reported and not refused on, and the asymmetry is the point: this is the tree the runner is EDITED in, and a gate that refused on its dirt would be unusable by the only people who change it.

**8. The PRE child's inputs travel by NAME, not by position** — SonarCloud's last `pythonsecurity:S8705` on this file. The program goes to `-c`, so everything after it is `sys.argv[1:]`, and a mis-ordered or empty element silently shifts the unpack: the corpus becoming the output path. Environment entries are read by name, and a missing one raises `KeyError` in the child rather than rendering something else.

## Runbook § 2.3, and the README index

**§ 2.3 FLOOR PART 4 — the snapshot-equivalence run**, written where the other floor parts are documented (§ 2.1 the arrival verifier, § 2.2 the conformance runner), and held until #1086 landed because until then the § 2 family was contended. It carries the claim, both sides and why each is composed as it is, the pinned anchor, the command with its expected verdict, the four corpus states of which two must move the digest, what is verified before any digest exists, and what the run does NOT prove.

**§ 2.3 IS NOT § 5.5, and the section says so**: the box FLOOR PART 4 ticks is § 5.5 of `split-opendox-two-layer-product`'s `tasks.md`, while this runbook's own § 5.5 is the two commits a leg arrives in. § 2 is otherwise untouched — the runbook diff is **one hunk at line 849 with zero deletions**, so every paragraph of § 2, its disposition table and the two-paragraph disposition block above it are byte-identical.

The README doc index gains the runner beside `scripts/carve_conformance.py`, in that entry's form and for its reason: the index lists what proves each floor part, and FLOOR PART 4's prover was missing from it.

## Verification

* **The verdict is unchanged**, which is what a hardening pass must not move: `OK — 1 of 1 corpus state(s) equivalent`, exit 0, **14,849 bytes, `sha256 764b077b84031ec9bb13538f400904119141d954636cee6d53eee052b3840735`**.
* `pytest -q tests/snapshot_equivalence` → **94 passed, 0 skipped** (60 at `02967478` + #1110, plus thirty-four here). `EXPECT_SKIPPED: "6"` untouched; `MIN_SELECTED` / `MIN_PASSED` are floors.
* **Mutation sweeps over the new code: 39 mutants, 39 caught, 0 survived** — sixteen over the eight — every stage read as the pin; the conflict unnamed; the spec mounts out of the pin set; out of the sweep; the nested rows back on the nested index; lazy fetching allowed; the partial clone diagnosed as a bad tree; the flag scan dropped; `--exclude-standard` dropped; the untracked half dropped; the probe skipped; an empty leg read as materialized; the unpinned half dropped from the evidence; an unreadable root status read as clean; the child's inputs back in argv; and the child reading a positional tuple again; then two over the round-1 fix — the pathspec failure left unclassified, and the fallback claiming the object store again — and four over round 2's.

## Copilot round 2 (`c7ed6828`) — the class closes at its cap

One threaded finding and two suppressed, all three FACT, all three measured before they were taken ([thread](#1115 (comment)), [the suppressed pair](#1115 (comment))).

1. **An ignored `.py` under `src` is still importable.** `--exclude-standard` was bought for one measured problem — this runner's own `__pycache__` — and paid for it by dropping the whole class, so a leg could render bytes in no commit while the verdict named one. The ignored files under the import surface are scanned now, with an allowlist of exactly CPython's bytecode: measured, the two code legs carry 45 and 21 such files and every one is a `.pyc`.
2. **The no-network guarantee did not cover the whole measurement.** The post side reads through `carved_reach._git_run()`, a SHARED reader whose sanitizer builds from `os.environ` minus a scrub list that does not carry this name — so the guard is set on THE PROCESS before the reach is imported, and `"GIT_NO_LAZY_FETCH" in _sanitized_git_environment()` goes False → True across it.
3. **Clearing a hidden flag reveals the edit rather than removing it**, so the remediation stopping at `update-index` promised a clean re-run that would refuse again. The restore is named with it.

## SonarCloud went red, and it was right to (`e77726ac`)

The quality gate failed on `new_reliability_rating` 3 against a threshold of 1, and the issue behind it was **`python:S5850` on `_GENERATED_BYTECODE`** — the unparenthesised top-level `|` meant `\.pyc$` allowlisted a `.pyc` ANYWHERE under the import surface, and a sourceless `src/shadow.pyc` is an ordinary import candidate. Copilot found the same hole from the other end in the same hour. The pattern is one anchored shape now, with a test that `src/shadow.pyc` is dirt and `__pycache__/m.cpython-312.pyc` is not. Also in that commit: `git archive` fails on ANY absent pathspec, so the refusal now asks `ls-tree` WHICH path the tree lacks instead of asserting it carries neither; and the maintainability findings on the same analysis — two `S3776` complexity splits, an `S1192` constant, an `S3358` lift, three `S9073` assertion splits and two `S8997` monkeypatch conversions — are cleared rather than suppressed.

## The last round (`c26083ee`), and what is registered rather than taken

Two suppressed findings, both INCONSISTENCIES IN CODE THIS PR INTRODUCED: `_flagged()` scanned the whole leg while its two sibling reads were scoped to `src`, which would have made a required gate refuse for a bit on a file that cannot reach the imports — a false refusal; and the superproject evidence read a plain `git status`, carrying the exact blind spot this act fixes one layer down, so a flag-hidden edit to `carved_reach.py` would have printed `working tree clean`. Both fixed. The second test's first spelling survived its own mutant (it asserted `dirty` while the ambient checkout was already dirty) and now forces the status read clean, which is the only way the flag can be what makes the difference.

**Registered, not taken** ([thread](#1115 (comment))): an allowlisted `__pycache__/*.pyc` is trusted by PATHNAME, so a crafted cache whose header matches the tracked source is executed before the sweep runs. True, and the remedy is `sys.pycache_prefix` set before the legs are imported — which would also stop this runner writing into the legs at all and retire the allowlist. It is a process-wide behaviour change that deserves its own act rather than the last commit of this one, and the exposure needs a writer in the checkout, who could equally edit `carved_reach.py`, which no pin covers.
* **doc-health** over the tree names neither `docs/opendox-cutover-runbook.md` nor `README.md` (nor the runner): the standing findings are the repository's own and this act adds none.

## Rounds 6-9, and where the line was drawn

Copilot reviewed at every head and kept finding real defects — **in code this act wrote**. The rule I held: *a defect this act INTRODUCED gets fixed however late; a finding about ground this act did not break is answered and registered.*

* **`ce976cbe`** — `rev-parse <commit>:<path>` returns an oid for ANY tree entry, so a parent commit with a file or directory at `code` had it read AS THE NESTED PIN; mode `160000` is required now, through one `ls-tree` that answers presence, mode and id together. Plus three texts this act made stale: `any(leg.iterdir())` counted `.git` (a metadata-only mount read as materialized), the dirt refusal still named `git status --porcelain` after that read became three, and the comment above the probe still said `post_stack()` comes first — the opposite of the implemented order.
* **`3ab57af5`** — mostly a SUBTRACTION (the spec-mount correction above), plus the HEAD read made mode-aware like its sibling and every nonzero index stage treated as a conflict whatever its mode.
* **`630af798`** — a REGRESSION `3ab57af5` introduced, undone: making the HEAD read mode-aware also made it RAISE, and HEAD was read BEFORE the index, so an unreadable HEAD tree could reject a VALID staged pin — which is precisely what index-first exists to prevent.
* **`b959a071`** — the untracked read took no scope while its two siblings did (a false refusal for an untracked `docs/NOTE.md`), and the tracked remedy offered `checkout -- .` for a diff taken against HEAD, which leaves a STAGED edit exactly where it is.

**Registered against the successor act, not taken here**: the tampered-`__pycache__` exposure — an allowlisted `__pycache__/*.pyc` is trusted by PATHNAME, and CPython executes a crafted cache whose header still matches the source. The remedy is `sys.pycache_prefix` set before the legs are imported, which would also stop this runner writing into the legs and RETIRE the allowlist that produced three findings. It is a process-wide behaviour change and belongs to an act that is about it.


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 18, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants