Repository navigation
FLOOR PART 4 (RULED OQ-1): the snapshot-equivalence runner and its suite - #1105
Conversation
…uivalence runner split-opendox-two-layer-product § 5.5, design § D6 (4), RULED OQ-1 (`#656` comment `5547060378`). The fourth part of the floor is the only one with no runner: parts 1-3 left `validate-carve-manifest.py`, `verify-carve-arrival.py` and `verify-carve-conformance.py` behind them, and part 4 had never been run at all, because nobody had asked what its two sides were. They were measured read-only 2026-09-18 (`attachments/lane-opendox/floor55/SCOPING-floor55.md`): the PRE-SPLIT TREE is the published annotated tag `opendox-carve-0` -> `b075fd91`, FLOOR PART 1's own `carve_commit`, frozen by RULED (a) `5625573095` and reached by `git archive`; the POST-SPLIT STACK is `openxdox.generator` + `openxdox.snapshot` at the openXdox-code leg this repository ALREADY PINS, reached through its own `scripts/carved_reach.py` (RULED Q7 `5626248666`) over `scripts/doc_health/` (RULED DQ-1 `5547049745`) and `contracts/domain-profiles/openxfactory-engineering.yaml`. A RUNNER AND NOT A RECORDED RUN, which is where part 4 differs from the other three: their subject has stopped moving and this one's post side is a PIN THAT MOVES. A recorded run proves the day it ran; this proves every merge, in about 1.4 s. `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. The PRE side runs in an ISOLATED child interpreter because both trees define `ideation_dashboard` and `doc_health` and one process could otherwise compare the post side with itself. `source_revision` is pinned on both sides with an injected git, measured: unpinned, the sides diverge on the anchor alone. The docstring registers by name what this runner does NOT do — the snapshot validator the carve broke three ways, and the snapshot index — so neither is mistaken for an oversight. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…un teeth Twenty-one tests over three claims that are three different claims: that the floor HOLDS (the pre-split tree and the post-split stack render the same canonical snapshot over the same corpus, through the documented command line); that the run DISCRIMINATES (four corpus states in one invocation, two of which MOVE the digest and two of which correctly do not — so an equal result is a measurement and not a constant); and that the runner REFUSES WHEN THE SIDES DIFFER, which nothing about a passing floor can demonstrate. Two mutation controls, one on each side, are what make that third claim evidence: a post side that projects one extra token into `generator_version` and a pre side whose `repository` differs by one character. Each is asserted to produce `equivalence-digests-differ` with both digests, both byte counts and a diff that NAMES the field. A comparison written `post == post` passes the first and fails the second, which is why they are two tests and not one twice. 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 (the shape of a fresh clone with no `git submodule update`), because a stubbed resolver would prove this file can monkeypatch rather than that the command line refuses. The one that most needs to be sure of itself is the post-shed `--pre-ref`: `main` and `contract-v4.0` carry an `ideation_dashboard` package WITHOUT its renderer, and a runner that read "the tree I was pointed at cannot render" as anything but an operator error would let FLOOR PART 4 pass over a side that does not exist. NOTHING HERE SKIPS, and the last test asserts that of this file by scanning its own source for spellings it BUILDS rather than writes. `.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` and it initialises both legs recursively. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The docstring claimed the isolated child was what stopped the run comparing the post side with itself. It is not: `sys.path.insert(0, <archive>/scripts)` wins every name the archived tree HAS, and the SEPARATE PROCESS is what carries that isolation. `-I` closes a different door, and a real one — a name the archive LACKS falls through to whatever comes next, so a `PYTHONPATH` or user-site copy could silently complete a partial archive out of another tree. Isolated, there is nothing after the insert but the standard library, and a missing piece fails loudly as `equivalence-pre-tree-unrenderable` rather than as a pass. Both statements are now the measured one. An overclaimed comment is a comment a later reader trusts in the wrong direction. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Found by the mutation sweep, which is what a sweep is for: replacing `FakeGit(head=source_revision)` with `FakeGit()` in `render_post` SURVIVED all 21 tests. Measured with a recording git at the pinned leg — given an explicit `source_revision`, `generate_snapshot` calls `commit_date(corpus, revision)` exactly once and NEVER `head_sha` — so the two spellings are indistinguishable in the rendered bytes today. That is the reason to assert it rather than the reason not to. Any field derived from HEAD again (and one was, before the explicit argument existed) would make a runner whose injected git disagreed with its own argument report a difference that is about the runner and not about the projection. The new test pins the constructor's anchor to the run's, and the mutant is now caught. 22 passed in 17.28 s. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Five lines were 80-83 characters. No behaviour changes; 22 passed in 17.94 s and the runner still reports OK — 1 of 1. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Reviewer's GuideImplements FLOOR PART 4 as a repeatable snapshot-equivalence gate: it renders the same corpus through an archived pre-split tree and the dynamically resolved post-split stack, compares canonical bytes, and reports actionable refusals. A 22-test CLI-driven suite validates equivalence across discriminating corpus mutations, independent side mutations, environment failures, revision pinning, and the runner’s operational contracts. Sequence diagram for the snapshot-equivalence runnersequenceDiagram
participant CLI as verify-snapshot-equivalence.py
participant Post as Post-split stack
participant Reach as carved_reach.py
participant Git as Git repository
participant Pre as Isolated pre-side child
participant Compare as Snapshot comparison
CLI->>Post: post_stack()
Post->>Reach: require()
Reach-->>Post: resolve pinned generator and snapshot
Post->>Post: register_openxfactory()
CLI->>Git: pre_ref_commit(pre_ref)
Git-->>CLI: pre-split commit
CLI->>Git: git archive(pre_ref)
Git-->>CLI: archived renderer tree
CLI->>Pre: render_pre(corpus, source_revision)
Pre->>Pre: generate_snapshot(..., git=FakeGit())
Pre-->>CLI: canonical snapshot bytes
CLI->>Post: render_post(corpus, source_revision)
Post->>Post: generate_snapshot(..., git=FakeGit())
Post-->>CLI: canonical snapshot bytes
CLI->>Compare: compare(pre, post)
alt byte-identical snapshots
Compare-->>CLI: equivalent
CLI-->>CLI: exit 0
else snapshots differ or execution refuses
Compare-->>CLI: named refusal and diff
CLI-->>CLI: exit 2
end
Flow diagram for corpus-state equivalence verificationflowchart TD
Start([Start runner]) --> Inputs["Resolve pre-ref, corpus states, and source_revision"]
Inputs --> Compose["Compose post-split stack and register profile"]
Compose --> Archive["Archive pre-split renderer"]
Archive --> Render["Render every corpus state on both sides"]
Render --> Compare["Compare canonical snapshot bytes"]
Compare --> Equal{"All states equivalent?"}
Equal -->|Yes| Pass["Print OK — N of N equivalent"]
Equal -->|No| Diff["Report equivalence-digests-differ with digests, sizes, and diff"]
Compose -->|Environment or profile failure| Refuse["Report named refusal"]
Archive -->|Tag or tree unavailable| Refuse
Render -->|Unexpected exception| Unreadable["Report equivalence-unreadable"]
Pass --> Exit0([Exit 0])
Diff --> Exit2([Exit 2])
Refuse --> Exit2
Unreadable --> Exit2
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved moderate findings affect error classification, pin verification, Git safety, ref handling, and skip enforcement.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adds a snapshot-equivalence runner comparing pre-split and pinned post-split OpenDox snapshots.
Changes:
- Adds deterministic rendering, digest comparison, JSON output, and refusal codes.
- Adds tests for equivalence, mutations, refusal paths, and skip enforcement.
File summaries
| File | Summary and findings |
|---|---|
tests/snapshot_equivalence/test_snapshot_equivalence.py |
Tests runner behavior and refusal paths. Moderate (1 vote): the no-skip guard misses pytest.mark.skip and pytest.mark.xfail. |
scripts/verify-snapshot-equivalence.py |
Implements snapshot rendering and comparison. Moderate (3 votes): registration failures are mislabeled. Moderate (2 votes): nested leg commits are not checked against recorded gitlinks. Moderate (1 vote): Git reads lack sanitization, timeouts, and replacement protection; pre_ref lacks end-of-options handling; archive resolution can use a ref different from the recorded commit. Nit (1 vote): JSON payload documentation does not match its diff-only contents. |
Review details
Suppressed comments (5)
scripts/verify-snapshot-equivalence.py:328
- These Git subprocesses inherit the caller's Git environment and have no timeout or
--no-replace-objects;GIT_DIR, alternate object directories, replace refs, or a promisor remote can make the archive read a different object store or hang, despite this runner claiming an exact offline measurement. Route the ref/archive/leg-commit reads through the repository's sanitized, replacement-free, bounded Git helper (carved_reach._git_runor an equivalent local wrapper).
archive = subprocess.run(
["git", "-C", str(repo), "archive", "--format=tar", pre_ref, "--",
*ARCHIVE_PATHS],
capture_output=True, check=False)
scripts/verify-snapshot-equivalence.py:300
pre_refis command-line input but is passed togit rev-parsebefore--end-of-options, so a leading-dash value is parsed as a Git option rather than as a revision. This leaves the runner's ref boundary unsafe (and the later archive call also receives the raw value); add Git's end-of-options marker here and archive the resolved commit instead of raw input, matching the existing arrival verifier's defense.
["git", "-C", str(repo), "rev-parse", "--verify", "--quiet",
f"{pre_ref}^{{commit}}"],
scripts/verify-snapshot-equivalence.py:628
- The ref is resolved to
pre_commitat lines 613–618, but this call resolves the mutableargs.pre_refagain duringgit archive. If a branch or force-updated tag moves between those calls, the runner records commit A while rendering commit B. Passpre_commithere so the archive and the evidence line refer to one immutable tree.
tree = extract_pre_tree(args.pre_ref, ROOT, scratch / "pre")
scripts/verify-snapshot-equivalence.py:202
- The JSON refusal payload does not carry both snapshots:
compare()only stores the full unified diff plus the digests and byte counts, so unchanged fields are absent. Update this comment to describe the diff-only payload, or include the raw snapshots if callers are meant to receive them.
#: reads; the JSON payload carries the whole of both sides for a caller that
#: wants it.
DIFF_LINE_CAP = 120
tests/snapshot_equivalence/test_snapshot_equivalence.py:535
- The no-skip guard misses the standard marker forms
pytest.mark.skipandpytest.mark.xfail: it only searches forpytest.skipandpytest.xfail. Adding either decorator to this file would leave this test green while changing the workflow's exact skip count, so include the marker spellings in the forbidden set.
forbidden = ("pytest" + ".skip", "pytest" + ".xfail", "skip" + "if",
"importor" + "skip")
- Files reviewed: 2/2 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.
…correct PR #1105's first Copilot review made two thread findings and suppressed five more. Every one of the seven is true of the landed text, so every one is fixed here and each gets a test that would catch it coming back. 1. REGISTRATION FAILURES WERE MISLABELLED. `post_stack()` wrapped `register_openxfactory()` in a blanket that called every failure `equivalence-profile-unregistered`. `AlreadyRegistered` — some OTHER profile holds the process — and a malformed declaration are not "no profile is registered", and the remediation then sends an operator to run the registration that IS the problem. The wrapper is gone; those reach the blanket and arrive as `equivalence-unreadable` naming the exception, which is what that code is for. `equivalence-profile-unregistered` is now reserved for the one failure it describes, raised where the engine asks and finds none. 2. THE PINS WERE REPORTED, NOT VERIFIED — and the evidence line is the reason this matters. § 8.2's line says the post side rendered "at the pinned openXdox-code <sha>"; `carved_reach` imports out of the nested WORKTREE, so a leg left detached at some other commit renders perfectly well and the line then names a pin that did not render. `verify_pins()` now checks BOTH LEVELS of BOTH legs — the recorded gitlink and the checked-out revision, as `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. The index wins over HEAD when they disagree, which is that file's own ruling: a one-commit re-pin must be checkable before it is committed. 3. EVERY GIT READ IS NOW SCRUBBED, BOUNDED AND REPLACEMENT-FREE. `GIT_DIR`, an alternate object directory or a replace ref could make a `<revision>:<path>` read answer out of another object store, and a partial clone whose promisor remote is unreachable can HANG — in a runner whose whole claim is that it read ONE named tree, offline, in about a second. `_git()` restates `carved_reach._git_run`'s discipline locally rather than borrowing another module's underscore from a command-line entry point. 4. `--pre-ref` IS COMMAND-LINE INPUT AND NOW HAS A BOUNDARY. Without `--end-of-options` a leading-dash value is parsed by `git rev-parse` as an OPTION. (`git archive` does NOT get the marker: it would make the `--` separator itself a pathspec — measured. It does not need one, because…) 5. …THE ARCHIVE READS THE RESOLVED COMMIT. The ref was being re-resolved during `git archive`, so a branch or a force-updated tag moving between the two reads would leave the runner recording commit A while rendering commit B. One resolution, one immutable tree, one evidence line. 6. THE `--json` PAYLOAD COMMENT CLAIMED MORE THAN THE PAYLOAD CARRIES: the whole DIFF, the digests and the byte counts, not both snapshots. 7. THE NO-SKIP GUARD MISSED THE MARKER FORMS. A decorator written as the marker attribute contains none of the four bare spellings, so the guard would have stayed green while the workflow's exact skip count moved. Six new tests, 28 passed in 13.40 s. Re-measured at this head: `OK — 1 of 1`, exit 0, 0.776 s; four corpus states `OK — 4 of 4` in 1.196 s, two of them moving the digest (13,846 `ba0e384b…`, 14,845 `0ed6e0d2…`) and two not. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The sweep over the repaired runner caught 18 of 20 and named the two it did
not, which is the only reason they are closed now.
M17 — deleting `verify_pins()`'s unrecorded-gitlink guard survived, because in
a healthy tree that branch is never taken. A test now drives it: a gitlink that
cannot be READ refuses, on `carved_reach`'s own rule one layer up — a query
that went unanswered is not an answer, so nothing may be claimed for a pin
nothing compared.
M19 — dropping `--end-of-options` from the ref read survived, and MEASURED IT
IS EQUIVALENT TODAY: git 2.43.0 answers `rev-parse --verify --quiet` with exit
1 and empty stderr for a leading-dash revision either way, because the
`^{commit}` suffix this runner appends already makes any option name
unparseable. The marker is kept anyway and is now held by a SOURCE assertion
with that measurement as its stated reason: a later edit that drops the suffix
would silently drop the boundary with it, and that is exactly a change no
behavioural test could see.
29 passed in 11.29 s. Mutation sweep: 20 mutants, 20 caught, 0 survived.
Lane: openxfactory-4
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Dirty worktrees can bypass pin checks, and Git configuration and refusal handling need correction.
Get a fresh assessment by requesting another Copilot review.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 3
- Review effort level: Lite
1. THE TREE IS WHAT RENDERS, NOT THE COMMIT IT IS CHECKED OUT AT. `carved_reach.module()` imports `openxdox.generator` off `openXdox/code/src` ON DISK, not out of git, so an uncommitted edit under a leg renders bytes that are not the pinned commit's while every sha comparison round 1 added still passes and the verdict still names that commit — the same false evidence line one layer lower. `verify-openxdox-pin.py` records this gap in terms; here it is closed. `worktree_dirt()` reads `git status --porcelain` for the two legs this runner actually imports from, and `verify_pins()` refuses on any entry, listing them. The two assembly roots are deliberately not checked: their only content that matters is the gitlink, and a staged or unstaged gitlink move is already what the index-first comparison reads. `None` is not "clean" — a status read that did not answer learned nothing, and a pin this runner could not verify is a pin it must not report. 2. `GIT_CONFIG_PARAMETERS` WAS LEFT IN THE ENVIRONMENT, and it is the whole channel `git -c` propagates through, so ambient `-c` settings still reached reads this file calls hermetic. `scripts/hermes_runtime_validation/ content.py`:16-25 already scrubs it. REGISTERED RESIDUE, in the code: `carved_reach._sanitized_git_environment()` does NOT, which is a finding against the resolver rather than against this file. 3. The unreadable-checkout refusal did not say plainly that `rev-parse HEAD` itself had failed, so an operator could not tell it from a checkout that is simply off its pin. It says both now, and names the leg, the recorded commit and where that was read from. Four new tests: a dirty leg refuses; an unanswered status read is not read as clean; `worktree_dirt` measured against a real repository three ways (clean, stray file, modified file, and a directory that is no repository); and the scrub asserted over the BUILT environment rather than over the constant, because what matters is what the subprocess is handed. The dirty test drives the seam rather than writing into a real submodule: a test that dirties a leg and is killed before its cleanup leaves every later run of this gate refusing, which is a worse failure than the one it would prove. 33 passed in 21.21 s; the runner still reports OK — 1 of 1, exit 0. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
Nine moderate findings remain unresolved in the runner.
Review details
Suppressed comments (9)
Previously missed (1) — in code that hasn't changed since the last review.
scripts/verify-snapshot-equivalence.py:646
git ls-files -semits stage 1/2/3 entries for an unresolved index conflict, but this loop accepts the first160000entry without checking the stage. A conflicted index can consequently be treated as a valid recorded pin (and compared against an arbitrary checkout) even though no single gitlink is recorded. Require stage0and refuse the unmerged form before returning the index oid.
scripts/verify-snapshot-equivalence.py:670
git status --porcelain --untracked-files=normaldoes not report ignored files, and it also trusts index flags such asassume-unchanged/skip-worktree. Becausecarved_reachimports directly from these worktrees, a hidden source file or an index-flagged edit can change the rendered snapshot while this check passes and the verdict names the pinned commit. Compare the imported tree's actual files withHEAD(including ignored and index-flagged states) before claiming the pin rendered.
done = _git(leg, "status", "--porcelain", "--untracked-files=normal")
scripts/verify-snapshot-equivalence.py:820
--source-revisionis documented as a SHA, but this argument is accepted verbatim and the runner always injectsFakeGit, whosecommit_date()accepts any string. Consequently--source-revision HEADornot-a-revisioncan exit 0 and produce a successful snapshot with a non-commit anchor/date, unlike the pinned engine's normal Git adapter. Validate the supplied revision shape before rendering and cover the refusal in the CLI tests.
"--source-revision", metavar="SHA", default=PINNED_SOURCE_REVISION,
help=("the revision both sides stamp the snapshot with (default: the "
"determinism suite's pin). Unpinned, the two sides diverge on "
"the anchor alone and the comparison means nothing"))
scripts/verify-snapshot-equivalence.py:467
-Idoes not remove the interpreter's system site-packages; it only disables environment configuration, the current/script directory, and the user site. If a pre-split dependency is missing from this archive, an installed system package can therefore complete the import and make a partial tree render, contrary to the isolation guarantee in the docstring. Add-S(if the archived tree is self-contained) or explicitly constrain the childsys.pathto the approved runtime paths.
[sys.executable, "-I", "-c", _PRE_RENDER_PROGRAM,
str(tree / "scripts"), str(corpus), str(out), source_revision,
PINNED_COMMIT_DATE, REPOSITORY_NAME],
scripts/verify-snapshot-equivalence.py:857
post_stack()is called beforeverify_pins(), but it is not lazy:carved_reach.install(), profile registration, andcarved_reach.module()import code from the leg worktrees. A detached or dirty leg therefore executes unverified off-pin code before the runner checks the recorded/checked-out commits and cleanliness, allowing import-time behavior to affect the process and undermining the claim that the reported pin is what ran. Perform pin verification before composing/importing the post stack (preserving only a non-importing materialization check if that refusal ordering is required).
stack = post_stack(register_profile=not args.no_register_profile)
pins = verify_pins()
scripts/verify-snapshot-equivalence.py:595
- The raw comparison correctly detects byte differences, but
_pretty()parses/re-serializes JSON and callssplitlines(), which erases formatting-only changes such as the canonical trailing newline. That leavesstate["diff"]empty and the human refusal without an@@hunk even though the byte-level snapshots differ, so the promised actionable diff is missing for a valid mismatch. Preserve line endings or fall back to a raw-text/byte diff whenever the pretty diff is empty.
diff = list(difflib.unified_diff(
_pretty(pre), _pretty(post),
fromfile=f"PRE {pre_ref}", tofile="POST pinned openXdox-code",
lineterm=""))
shown = diff[:DIFF_LINE_CAP]
scripts/verify-snapshot-equivalence.py:374
_git()returnsNonefor a timeout or anOSErroras well as for an unavailable Git process, but this branch labels every such caseequivalence-pre-ref-unreachableand tells the operator to fetch tags. A Git query that did not answer has not established that the ref is absent, so a transient promisor timeout or missing executable is misreported as a bad ref; keep this named code for a completed nonzerorev-parseand routedone is Nonethrough the unreadable/environment refusal.
if done is None or done.returncode != 0 or not done.stdout.strip():
raise EquivalenceRefusal(
"equivalence-pre-ref-unreachable",
scripts/verify-snapshot-equivalence.py:790
post_stack()deliberately resolves these rows through the manifest-drivencarved_reach.module(), but the success evidence hard-codesopenxdox.generator/openXdox-code. If a supported re-destination moves either row to the other leg, this runner will render the new modules while reporting the wrong stack and pin. Derive the displayed module/leg from the resolved modules and carry that fact insummaryinstead of hard-coding it.
f"and the post-split stack (openxdox.generator + openxdox.snapshot "
f"at the pinned openXdox-code "
f"{summary['openxdox_code'][:12]}, through "
scripts/verify-snapshot-equivalence.py:594
- The mismatch diagnostic repeats the same hard-coded
openXdox-codelabel, so even after the success line is corrected a digest difference after a manifest re-destination would attribute the POST bytes to the wrong leg. Pass the actual resolved post-side label intocompare()and use it in both the diff header and detail.
fromfile=f"PRE {pre_ref}", tofile="POST pinned openXdox-code",
lineterm=""))
- Files reviewed: 2/2 changed files
- Comments generated: 0 new
- Review effort level: Lite
…ered, not pushed The round-3 body raised nine. Six fall in classes that had not had a head-moving round yet and are fixed here. THREE ARE THE PIN-VERIFICATION CLASS, WHICH IS AT ITS TWO-ROUND CAP, and they are answered by measurement in one comment on the pull request and registered for the next act on this file rather than taken in a third round: `git ls-files -s` not requiring stage 0 (a real four-line fix, owed); `git status --porcelain` not reporting ignored or index-flagged files (measured: the remedy as proposed would refuse on every second run, because `__pycache__` is ignored BY DESIGN in both legs' own `.gitignore`); and importing the post stack before verifying the pins. FIXED HERE: * `--source-revision` IS VALIDATED FOR SHAPE. Both sides stamp the snapshot with it through an INJECTED git that resolves nothing, so `--source-revision HEAD` rendered, compared equal and exited 0 over a snapshot anchored to something that is not a commit. 40 or 64 hex, on `hermes_runtime_validation/content.py`'s `_OBJECT_ID`. This also closes SonarCloud `pythonsecurity:S8705` (argument injection) at `render_pre`'s child argv, which is the same value reaching the same place. * A GIT READ THAT DID NOT ANSWER IS NO LONGER A MISSING REF. `_git()` answers `None` for a timeout and for a git that could not run, and telling an operator to `git fetch --tags` because a promisor remote hung sends them to fix the wrong thing. `equivalence-pre-ref-unreachable` is now raised only for a COMPLETED, nonzero `rev-parse`. * A FORMATTING-ONLY DIFFERENCE STILL PRINTS A DIFF. `_pretty()` parses and re-serializes, which erases exactly the margin the byte comparison exists to catch — a trailing newline, indentation, key order — and left `equivalence-digests-differ` without the half that makes it actionable. Two fallbacks: the raw text with line endings visible, then a length statement. * THE VERDICT DERIVES THE POST SIDE INSTEAD OF SPELLING IT. `carved_reach.module()` answers from the MANIFEST ROW and a `re_destined:` block can move a row to the other leg (RULED Q6, `5648044785`); the verdict and the diff header both said `openxdox.generator` / `openXdox-code` in their own text, so a re-destination would render the new modules and report the old leg — the evidence line naming a pin that did not render, by a route the pin checks cannot see. `post_side_identity()` reads the dotted names off the imported modules and the leg off where their files are. * `-I` IS DESCRIBED ACCURATELY. It does not remove system site-packages, and `-S` cannot be used: measured, the archived `doc_health` imports PyYAML, so `python3 -S` cannot import `ideation_dashboard.generator` at all. The remaining exposure is symmetric — the same interpreter and the same installed distributions the POST side runs on — and the docstring now says so rather than claiming the standard library is all that is left. Five new tests (38 passed in 23.10 s). Re-measured: `OK — 1 of 1`, exit 0; four corpus states `OK — 4 of 4`, two moving the digest. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Round 3 dispositioned: six of the nine are fixed at Fixed ( Answered, and owed to the next act on this file. The class has had two head-moving rounds (round 1 added the gitlink and checkout comparisons; round 2 added the worktree-cleanliness check); a third would be the loop the lane's decision (b) exists to stop.
All three are recorded for the successor act on Measured at |
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical and moderate findings affect correctness and hermetic execution.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (4)
scripts/verify-snapshot-equivalence.py:752
- This status check omits ignored untracked files. Because
carved_reachimports directly from each leg's working tree, an ignored.pyadded undersrc/can change the rendered snapshot whileworktree_dirt()returns[], so the output can still claim the recorded gitlink rendered. Please detect ignored source files as well (filtering only known interpreter-cache directories) or validate the imported source bytes before certifying the pin.
done = _git(leg, "status", "--porcelain", "--untracked-files=normal")
scripts/verify-snapshot-equivalence.py:345
- The environment scrub disables replacement objects but leaves Git's lazy-fetch behavior enabled. In a partial clone with a configured promisor remote,
git archivecan fetch missing objects over the network, contradicting the suite's hermetic/no-network claim and making the result depend on remote availability. SetGIT_NO_LAZY_FETCH=1so missing local objects take the existing refusal path instead of triggering a fetch.
environment["GIT_CONFIG_GLOBAL"] = os.devnull
environment["GIT_CONFIG_SYSTEM"] = os.devnull
environment["GIT_CONFIG_NOSYSTEM"] = "1"
environment["GIT_NO_REPLACE_OBJECTS"] = "1"
return environment
scripts/verify-snapshot-equivalence.py:325
- This block says
carved_reach._sanitized_git_environment()does not removeGIT_CONFIG_PARAMETERSand registers that as unresolved residue, but the current resolver already removes it atscripts/carved_reach.py:796-820. The stale claim andcontent.py:16-25 reference are misleading; update the comment to describe the existing scrub rather than filing a problem that is already fixed.
# content.py`:16-25 already scrubs it; REGISTERED RESIDUE:
# `carved_reach._sanitized_git_environment()` does NOT, and that is a
# finding against the resolver rather than against this file, owed
# wherever `carved_reach` is next opened.
tests/snapshot_equivalence/test_snapshot_equivalence.py:832
- The verification description does not match this checked-in suite: this file currently contains 38 top-level
test_functions, while the description reports 29 targeted passes and 21 passes in the whole-suite report. With no skip mechanism in this file, those counts cannot describe this revision; please rerun or update the evidence so the review record reflects the tests that CI will actually collect.
def test_this_suite_never_skips():
- Files reviewed: 2/2 changed files
- Comments generated: 3
- Review effort level: Lite
…rors of FACT Round 4 raised seven. Two are wrong text in this file and are fixed here; the other five are in the pin-verification and git-hermeticity classes, both at their two-round cap, and are answered by measurement on the pull request. 1. **THE REGISTERED RESIDUE WAS FALSE, and that is the worse of the two.** The round-2 comment filed `carved_reach._sanitized_git_environment()` as MISSING `GIT_CONFIG_PARAMETERS`. Measured: it does not miss it — `carved_reach.py`:796-806 lists it, and `'GIT_CONFIG_PARAMETERS' in _sanitized_git_environment()` is `False`. A comment that files a problem which does not exist sends the next reader to fix nothing, and it is worse than silence because it will be believed. The comment now says what is true: this set MATCHES the repository's two existing scrubs rather than exceeding them, and it names the earlier error so nobody re-files it. 2. **THE POST-SIDE IDENTITY IS DERIVED PER ROW, NOT PER STACK.** `carved_reach.module()` resolves the generator row and the snapshot row INDEPENDENTLY, and a `re_destined:` block is per row (RULED Q6, `5648044785`), so the two can lawfully arrive at different legs. Round 3 derived one leg from `generator.__file__` and printed it for both — which makes the evidence line false in exactly the case the derivation exists to survive. A mixed stack is NOT refused, because the manifest permits it; it is reported, with both legs and both pins, and `post_module_legs` carries the mapping for a caller reading `--json`. 39 passed in 22.95 s. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Round 4 dispositioned at FIXED — and the first of the two is the one I most needed told.
The test-count record, corrected. The body's ANSWERED, not pushed — two classes at their cap.
All six registrations are owed to the successor act on Measured at |
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical and moderate findings affect fail-closed verification and test hermeticity.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (3)
scripts/verify-snapshot-equivalence.py:824
- This negative test only changes
recorded_gitlink, so it exercises the gitlink mismatch but never the independent checkout comparison below. Ifchecked_out != recordedis removed or compared against the wrong value, the suite still passes; add a case that keeps the recorded gitlink pinned while makingrev-parse HEADreturn a different valid commit.
if checked_out != recorded:
scripts/verify-snapshot-equivalence.py:566
- The return annotation is inaccurate: this function returns
post_legsas a list andpost_module_legsas a mapping, not only string values. That makes static callers treat those fields asstrand can surface type errors or mislead consumers; use aTypedDictor at leastdict[str, Any]for the actual payload shape.
def post_side_identity(stack, pins: dict[str, str]) -> dict[str, str]:
tests/snapshot_equivalence/test_snapshot_equivalence.py:332
- Unlike the runner's Git reads, this test invokes
gitdirectly and inheritsGIT_DIR, alternate-object, replace-ref, and config settings. An ambientGIT_DIRcan make the tag check resolve another repository, so the supposedly hermetic suite can depend on host state; use the module's scrubbed_gitwrapper here.
done = subprocess.run(
["git", "-C", str(REPO_ROOT), "rev-parse", "--verify",
f"{CARVE_TAG}^{{commit}}"],
capture_output=True, text=True, check=False)
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
…rrections THE LAST HEAD-MOVING ROUND. Three of round 5's four are fixed here; the fourth is answered by measurement, because its claim is false and the measurement is already in the record. 1. **`post_side_identity()` WAS FAIL-OPEN, in code one commit old.** A module resolving outside every verified pin root returned the leg `"unresolved"` and `main()` still emitted an `ok` verdict carrying an empty `post_leg_commit`. That is the "silence reads as a pass" failure this whole file is built to refuse, arriving in the function written to stop the evidence line naming the wrong leg. It refuses now, naming the module and the roots it looked in. The lawful case is untouched: a `re_destined:` row moves a module BETWEEN the two legs, and both are verified. 2. The return annotation said `dict[str, str]` while the payload carries a list and a mapping. 3. `test_the_default_pre_ref_…` read git through a bare `subprocess.run`, so an ambient `GIT_DIR` could have let a supposedly hermetic assertion resolve the tag in ANOTHER repository. It goes through the module's own scrubbed `_git` now — which is also the honest thing, since the test exists to assert what the runner will see. ANSWERED, NOT PUSHED: "this negative test never exercises the checkout comparison; remove `checked_out != recorded` and the suite still passes". It does not — that mutant is M16 of the sweep and it is CAUGHT (1 failed, 32 passed). `test_a_leg_off_its_pin_refuses_rather_than_rendering` pins the RECORDED gitlink to a value the real checkout is not at, so it IS that branch. The finding's useful half is that the case was incidental rather than explicit, so a test that leaves the recorded gitlink exactly as git reports it and makes `rev-parse HEAD` answer a different valid commit is added anyway. 41 passed in 25.43 s. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The unresolved critical gitlink validation issue and moderate no-skip invariant gap block approval.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (2)
Previously missed (1) — in code that hasn't changed since the last review.
tests/snapshot_equivalence/test_snapshot_equivalence.py:1038
- This is the only assertion enforcing the file's no-skip invariant, but it does not cover
unittestskip decorators, which this repository uses (for exampletests/proposal-support/test_proposal_support.py:636). Adding@unittest.skipUnless(...)to this file would therefore change the workflow's exact skipped count whiletest_this_suite_never_skips()still passed; include theunittest.skipspelling (or inspect pytest's collected outcomes).
scripts/verify-snapshot-equivalence.py:831
- When both snapshots contain distinct invalid UTF-8 bytes that decode to the same replacement text, both line-oriented diffs are empty even if their lengths are equal. This fallback then says they differ 'in length alone' and prints equal lengths, which is a false diagnostic; use a generic raw-byte/hex difference message instead.
if not diff:
diff = [f"(the two sides differ in length alone: {len(pre)} vs "
f"{len(post)} bytes, with no line that differs)"]
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
…nd the unittest skip spelling Two FACT findings, both in classes inside their two rounds. The third — `git ls-files -s` stage 0 — is the pin-verification class, which is at its cap; it is answered on the pull request and stays on the follow-up list it has been on since round 3. 1. **THE LAST-RESORT DIFF INVENTED A CAUSE.** When both sides carry distinct invalid UTF-8 that `decode(errors="replace")` flattens to the same text, every line-oriented diff is empty — and the fallback then said the two "differ in length alone" while printing two EQUAL lengths. That is a false diagnostic in the one place an operator has nothing else to read. It now states what is actually known: the offset where the bytes first part company, with a window of each side, or that one is a prefix of the other. 2. **THE NO-SKIP GUARD MISSED THE `unittest` SPELLINGS**, and this repository uses them — `tests/proposal-support/test_proposal_support.py` carries a `skipUnless`. A `@unittest.skip` or `@unittest.skipUnless` on this file would have moved `.github/workflows/pytest-suite.yml`'s EXACT `EXPECT_SKIPPED` while the guard stayed green. One entry covers all three, built rather than written for the reason the test's own docstring gives. 48 passed in 27.80 s; the runner still reports OK — 1 of 1, exit 0. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
Three moderate issues remain around Git-state handling and success-output error handling.
Review details
Suppressed comments (3)
scripts/verify-snapshot-equivalence.py:877
- When
_git()cannot answer either the HEAD or index query, this branch returns(None, "HEAD");verify_pins()then reports that the parent "records no gitlink", asserting absence even though the repository was unreadable. Preserve an explicit unavailable state and carry it through the refusal detail so a timeout or Git execution failure is not misdiagnosed as a missing pin.
LEG_GITLINKS: tuple[tuple[str, str], ...] = (
(".", "openDox"), ("openDox", "code"),
(".", "openXdox"), ("openXdox", "code"),
scripts/verify-snapshot-equivalence.py:883
- An unmerged submodule path is represented by multiple
git ls-files -sentries (stages 1/2/3), or by a non-zero stage, but this loop takes the first mode-160000 entry and stops. If that first OID happens to equalHEAD,verify_pins()treats the conflicted index as a valid recorded pin and can render while the gitlink has no single committed value. Treat the index as unusable unless it has exactly one stage-0 160000 entry, and add a regression for an unmerged gitlink.
def recorded_gitlink(parent: Path, path: str) -> tuple[str | None, str]:
"""(oid, source) for the gitlink `parent` RECORDS for `path`.
scripts/verify-snapshot-equivalence.py:1144
_print_ok()runs after thetry/exceptthat owns the documented 0/2 exit contract. An output/serialization failure (for exampleBrokenPipeErrorwhen stdout is closed, or an unexpected summary value) therefore escapes as a traceback and exit 1, contrary to the script docstring and the exit-status test. Keep success rendering under the contract handler and explicitly handle a closed output stream.
pre = render_pre(tree, corpus, scratch, args.pre_ref,
args.source_revision)
- Files reviewed: 2/2 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
There was a problem hiding this comment.
🔵 Needs a closer look
Unresolved moderate findings remain around timeout handling, environment hardening, and archive-argument test coverage.
Review details
Suppressed comments (4)
scripts/verify-snapshot-equivalence.py:741
- Unlike the pre-split child,
render_post()invokes the moving post-split stack in the gate process without any timeout. A non-terminating regression in a future pinned leg can therefore hang the requiredpytest-suitejob until its 35-minute job timeout instead of returning the promised refusal; run the post render in a bounded subprocess (or add an equivalent watchdog) and map a timeout to a refusal.
generator, snapshot = stack
try:
snap = generator.generate_snapshot(
corpus, REPOSITORY_NAME, source_revision=source_revision,
git=FakeGit(head=source_revision))
scripts/verify-snapshot-equivalence.py:1020
worktree_dirt()includes untracked entries (--untracked-files=normal), but the suggestedgit checkout -- .only restores tracked paths and a plaingit stashalso leaves untracked files behind. For a??entry this remediation sends the operator to a command that cannot make the next run clean; distinguish the cases or tell them to remove/stash untracked files (for example withgit stash -u).
"Rendering it would produce bytes that are not that commit's "
"while the verdict named that commit. Commit the edit, stash "
f"it, or `git -C {leg} checkout -- .` and re-run")
scripts/verify-snapshot-equivalence.py:352
GIT_ATTR_NOSYSTEMis removed from the inherited environment above but is never set in the replacement environment.git archivecan consult system-wide gitattributes such asexport-ignore, so the pre-tree contents can vary with the host despite this scrub; setGIT_ATTR_NOSYSTEM=1here (and assert it in the environment test).
environment["GIT_CONFIG_GLOBAL"] = os.devnull
environment["GIT_CONFIG_SYSTEM"] = os.devnull
environment["GIT_CONFIG_NOSYSTEM"] = "1"
environment["GIT_NO_REPLACE_OBJECTS"] = "1"
tests/snapshot_equivalence/test_snapshot_equivalence.py:583
- This test replaces
extract_pre_tree(), so it never executes thegit archivecall whose argument is supposed to be the resolved commit. A regression insideextract_pre_tree()that passedpre_refinstead ofpre_commitwould still leave this test green; keep the real extractor and spy on_git's archive arguments so the claimed invariant is actually covered.
def recording(pre_commit, repo, into, pre_ref):
seen.append(pre_commit)
return real(pre_commit, repo, into, pre_ref)
monkeypatch.setattr(MODULE, "extract_pre_tree", recording)
- Files reviewed: 2/2 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) LANDED — lane openxfactory-4, 2026-09-18T14:59:35Z, PR #1105 → 0296747 (opensoft/openxFactory main; plain gate) § 5.5 FLOOR PART 4: the snapshot-equivalence RUNNER (scripts/verify-snapshot-equivalence.py + tests/snapshot_equivalence/, gated in pytest-suite; pre-tree = tag opendox-carve-0) — RULED Q-P1..Q-P4 (5728856581), CLAIM 5728621421. § 5.5 ticks on its evidence (bookkeeper). Brett Heap: "keep going". |
…nner) Lane: openxfactory-4 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…r, and give section 8.2's part-4 evidence line its referent Section 5.5 TICKS on #1105 -> 0296747, merged 2026-09-18T14:59:28Z, "FLOOR PART 4 (RULED OQ-1): the snapshot-equivalence runner and its suite" (claim 5728621421). The box's own condition was a RUNNER THAT IS GATED, not a recorded run, and both halves are measured present rather than taken on report: 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` (.github/workflows/pytest-suite.yml:599) so a suite under tests/snapshot_equivalence/ is inside the gate by construction rather than by a wiring entry that could be dropped, and the suite collects 48 tests in this branch's own merged tree. That is 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 on every pull request. One STATUS clause is owed and it is a REVIEW DEBT, not a runner defect. Copilot's review at the LANDED head 9ed3def (review 5249196044) carries four suppressed findings the holder's gate script did not surface before the landing. floor55b takes them as a follow-up act on the landed file -- a fix PR, or measured answers where a finding does not survive measurement. 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. Named as a class, because it is the second occurrence in this packet: a reviewer's body is posted PER PUSH, so a script that looks at the wrong thing leaves bodies unread. This lane's own answer was to enumerate reviews by commit_id against a read-set rather than trust "I read the body at the head I pushed", which is why this clause names the review ID rather than merely saying findings exist. Section 8.2 gains part 4's referent and STAYS [ ]: it owes one evidence line per part and is discharged by all four, not by the fourth. Naming the referent here is what lets the act that finally ticks it quote a commit instead of re-deriving one. Per RULED Q-P4 (a) the line also carries the section 4.4 profile-fidelity sentence. One correction to the figure handed to this lane: #1105's mergedAt measures 2026-09-18T14:59:28Z, not 14:59:35Z. It landed by squash, which is correct here -- the merge-not-squash rule binds ARCHIVE CLOSURES, and this is a code surface, so the rule is not over-applied to it. origin/main merged in, now carrying 0296747. Ledger 53 -> 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]>
…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]>
…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]>
…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]>
… 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]>
…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]>
…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]>
…#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]>
…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]>
…es at all three destinations, and the four-part floor has one evidence line per part Ledger 62 [x] / 9 [ ] / 1 [~] -> 64 / 7 / 1 of 72; five marker changes in this amendment (3.7, 4.5a, 5.4, 8.2, 8.5). SECTION 3.7 TICKS. All three destinations now have a recorded pass at a LANDED head, which is the box's own word -- "EVERY DESTINATION PASSES IT": openxFactory's own adapter at eb1880c, the only mechanical proof that the home corpus has no privileged route and the reason the box names it separately; openXdox-code at 3ee8cd31 (#656 comment 5736681367); and openDox-code at 93ccc3dd, OK - 17 of 17, exit 0, transposed and faithful, #31 merged 2026-09-19T01:11:53Z (#656 comment 5738152229, the re-read AT MAIN, addendum to 5738117973). The pass is quoted at the LANDED commit and not at the candidate, on purpose. 5738117973 recorded the same pass at candidate head 776d2a80 and itself superseded 5736880991 at 474144ef -- three heads for one destination in a day. A pass at a candidate head is a pass at a commit that no longer exists on main. This packet has now had a reader mistaken for a pass, a candidate mistaken for a landing, and a wrong token mistaken for absence, all on this one box. The durable figure is recorded as the corpus digest rather than the transposition's revision: the revision moved again, a fourth distinct value, as it does on every build, while the key/sha256 table digest 744c9183 held for the fourth time. That is what identifies the corpus and what a later reader recomputes. Registered as residue and not resolved (#656 5738108117): the core.excludesFile switch, the corpus-mirroring fixture, the enumerated skip diagnostic. SECTION 8.2 TICKS. All four evidence lines are on record, one per part and no part standing in for another: (1) the carve manifest, #865 -> 1716748, 454 rows at carve_commit b075fd9; (2) the test mapping, section 5.4 ticked in this amendment, (a)(b)(c) at #1080 -> 4b53ea9 and (d) pinned at all three; (3) the neutral conformance corpus green in every destination, section 3.7 above; (4) the snapshot-equivalence run, section 5.5 on the gated runner #1105 -> 0296747 with follow-ups #1110 and #1115, and per RULED Q-P4 (a) that line also says section 4.4's domain profile reproduces openxFactory's own vocabulary. They are listed with their own artifacts because the box's standing objection is that "none of these is 'the tests passed'" and that no part substitutes for another. Two single-instrument alternatives were rejected on the record; a tick quoting one artifact four times would be the same mistake wearing a different hat. Section 3.6's follow-up 2 is named as openDox-code #32, a draft at b7d9d7a9. The section 5.6 Phase 0 record gains its residue: openxFactory #1123, lockstep.status re-diverged after the repin lane's advance, at the gate, registered and not a condition of either box. The superseded 2026-09-18 per-repository reading is kept beneath the tick, because it shows the box closing in under a day from a state where neither destination was evidenced. All four validators exit 0. Refs #656 (stays OPEN). Lane: openxfactory-4 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…, § 8.2, § 8.5) and the RULED four-part floor complete (#1124) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Refs #656 (stays OPEN). **`split-opendox-two-layer-product` `tasks.md` AMENDMENT #8 — FIVE ticks (§ 3.7, § 4.5a, § 5.4, § 8.2, § 8.5), and the four-part floor complete.** Branched from the landed `main` at **`fc837dff`** (#1120's squash); `origin/main` merged in at `38f826c2`. **Ledger 59 `[x]` / 12 `[ ]` / 1 `[~]` → 64 / 7 / 1 of 72.** One file. **Exactly five marker changes — § 3.7, § 4.5a, § 5.4, § 8.2 and § 8.5.** Rule 6 applies. > **THE RULED FOUR-PART FLOOR IS COMPLETE.** § 8.2 carries one evidence line per part, and no part stands in for another. ## § 5.4 — FLOOR PART 2 ticks, and the blocker the box itself named is discharged Its own STATUS said (a), (b) and (c) had landed at **#1080 → `4b53ea99`**, and that **clause (d)'s LEG half was blocked on the BUILD arc** — both legs running a named file list under `--noconftest` **with no JUnit and no triple**. Both halves of that blocker are gone. The BUILD arc landed (§ 3.5 on `openDox-code` #25, § 3.6 on #26, both `[x]`), and clause (d)'s **three** pins are in place — *per destination, never as one cross-repository equality*, which is the clause's own rule: | leg | pin | evidence | | --- | --- | --- | | `openDox-code` | `MIN_SELECTED 1076` · `MIN_PASSED 1073` · `EXPECT_SKIPPED 3` | **#29 → `373b05aa`**, run `35398182026` | | `openXdox-code` | `MIN_SELECTED 539` · `MIN_PASSED 533` · `EXPECT_SKIPPED 6` | **#25 → `ab04453d`**, run `35399041710` | | `openxFactory` | its own `pytest-suite.yml` | already pinned — the model the clause names | **Verified in each leg's own workflow rather than taken from the report**: both files carry those pin variables *and quote clause (d) verbatim*, so the shape is the clause's rather than an approximation of it. **Four of four is the clause set, so the box closes.** > **Residue registered, not resolved**: all three of `openDox-code`'s report-producing commands run **named file lists under `--noconftest`**, so `collect_ignore` never applies there, and **26 of the 61 `test_*.py` on disk are collected by no required command**. That does not touch clause (d), which pins what the required job *does* collect — it is booked because a reader could mistake the pinned triple for a statement about the whole tree, and it is not one. ## § 4.5a — ticks on the exit line the box asked for **`OK — 17 of 17`, exit 0**, at `openXdox-code` `3ee8cd31` with the runner at `openxFactory` `eb1880cb` (`#656` `5736681367`), over the BUILD at **#23 → `3ee8cd31`** with admissions rows at **#1091 → `eb2d4569`**. **The bare-checkout precondition is written INTO the evidence line as procedure, not left as a caveat**: the git-pinned `opendox` dependency (`pyproject.toml:106`) must be installed first, or the run exits **2** with `conformance-adapter-unresolvable` before the corpus is reached. > This is **the box's own standard applied to itself**. Its existing parenthetical already refused an abbreviated form of this very command — ***"a command that cannot be run is not exit evidence"*** — when the missing piece was `--dest-root`. The missing piece is now an install rather than a flag, and **the standard does not change with the shape of what is missing.** ## § 3.7 — FLOOR PART 3 ticks: all three destinations pass at a LANDED head *"EVERY DESTINATION PASSES IT"* is the box's own word, and all three now do — **`openxFactory`'s own adapter at `eb1880cb`** (*the only mechanical proof the home corpus has no privileged route*, which is why the box names it separately), **`openXdox-code` at `3ee8cd31`** (`5736681367`), and **`openDox-code` at `93ccc3dd`** — `OK — 17 of 17`, exit 0, transposed and faithful, #31 merged 01:11:53Z (`#656` **`5738152229`**, the re-read AT MAIN). **The pass is quoted at the LANDED commit, not the candidate, on purpose.** `5738117973` recorded the same pass at candidate `776d2a80`, and itself superseded `5736880991` at `474144ef` — **three heads for one destination in a day**. *A pass at a candidate head is a pass at a commit that no longer exists on `main`.* This packet has now had a reader mistaken for a pass, a candidate mistaken for a landing, and a wrong token mistaken for absence, all on this one box. **The durable figure is the corpus digest, not the transposition's revision**: the revision moved again (a fourth distinct value, as it does on every build) while the **key/sha256 table digest `744c9183…` held for the fourth time**. That is what a later reader recomputes. > **Residue registered, not resolved** (`5738108117`): the `core.excludesFile` switch, the corpus-mirroring fixture, the enumerated skip diagnostic. ## § 8.2 — the four-part floor ticks, one evidence line per part **(1) carve manifest** `#865 → 1716748` (454 rows at `carve_commit b075fd9`) · **(2) test mapping** § 5.4 above · **(3) conformance corpus green in every destination** § 3.7 above · **(4) snapshot-equivalence** § 5.5 on the gated runner `#1105 → 0296747` with `#1110` and `#1115`, and per RULED **Q-P4 (a)** that line also says § 4.4's domain profile reproduces `openxFactory`'s own vocabulary. > Listed with their own artifacts because the box's standing objection is that **"none of these is 'the tests passed'"** and that no part substitutes for another. Two single-instrument alternatives were rejected on the record; **a tick quoting one artifact four times would be the same mistake wearing a different hat.** ## § 8.5 — TICKED on HOLDER RULING `5738064190` Amendment #7 reported two destination halves missing. **They were missing from the *ledger*, not the corpus.** All four are named now — § 6.1 `openXdox-spec` **#15 → `f088b097`**, § 6.3 `openDox-spec` **#13 → `3b7f80c4`**, § 6.4 **#12 → `edeed08c`**, § 6.5 **#14 → `66d59778`** — plus § 6.2's forward half at `openDox-spec` **#15 → `8fe8c4c7`**. **Clause (a) is closed**: amendment #7 reported two destination halves missing — **they were missing from the *ledger*, not the corpus**. All four are named (§ 6.1 `openXdox-spec #15 → f088b097`, § 6.3 `openDox-spec #13 → 3b7f80c4`, § 6.4 `#12 → edeed08c`, § 6.5 `#14 → 66d59778`), plus § 6.2's forward half (`#15 → 8fe8c4c7`) and the aggregation side (`xFactory #454 → 0b0c88f4`). **Clause (b) is RULED — Reading B** (`#656` `5738064190`): *"first"* means **before this packet's own archive (§ 8)**, the only ordering the ratified text states (`specs/ideation-dashboard/spec.md:88-90` orders *this change* against the five, not the five among themselves) and the one § 6.2's own box already names, *"Sequenced BEFORE § 8"*. **Reading A — before the other four — is refuted by the record**: § 6.2's `#1066` merged **20:24:53Z**, LAST of the five (`#1056` 10:50:06Z, `#1057` 13:31:51Z, `#1060` 17:30:27Z, `#1065` 17:54:08Z). **The box's wording is sharpened** to *"…on its own evidence **before this packet's own archive (§ 8)**"*. The word *"first"* was **the ledger's own** — absent from the ratified source sentence at `proposal.md:476` and from every `specs/` delta — so the ruling settled *which evidence line satisfies a box*, not what a requirement means. > Both readings are kept on the page with the merge times that decided between them. **A ledger that shows only the reading that won teaches nothing about why the other lost**, and this box will be read again by someone facing the same kind of call. ## Five follow-up landings, none moving a box * **§ 3.6** — `openDox-code` **#30 → `5c867137`** takes the seven findings #26 registered plus eight cases; **follow-up 2 in flight** (linked-worktree descriptor binding, RULED `5736683962`; `RefusedError` → 409; fallback narrowing; mismatched-DB cases). * **§ 5.5** — **#1115 → `4101fbe9`** takes the eight hardening items; two residues registered (`:608` wording, `sys.pycache_prefix`, `5736824535`). * **§ 3.7 openDox side** — `openDox-code` **#31** open at `4b9714d0`. * **Q-A2** — folded into `openXdox-code` #25; opened and closed in one line, which is the only honest way to record something that never reached the page while it was open. * **§ 5.6 Phase 0 has landed, and it landed itself** — `codexFactory` **#491 → `b21f0100`** regenerated the floor block (62 → 63) at 22:50:17Z, and the repin **#1122 → `38f826c2`** advanced the pinned decision core to it at **2026-09-19T00:53:37Z**. *Corrected against the report, which had #1122 open with auto-merge armed: it is merged and on `main`. An armed auto-merge can land without anyone watching, so its state is worth reading rather than inferring.* ## Gates `openspec validate … --strict` **valid** · `proposal-support.py verify` **ok** · `validate-sequenced-after.py --ledger-diff` **clean** · `verify-opendox-pin.py` **OK**. **AFTER THIS HEAD — REGISTERED, NOT PUSHED** (comment `5738349034`; all of it folds at amendment #9, because this amendment's head-moving budget is closed and none of it shows a tick is wrong): § 5.6's registered residue is CLOSED and **PHASE 0 IS COMPLETE** — `openxFactory` **#1123 → `8184d74a`** landed **01:27:44Z**, after `codexFactory` #491 → `b21f0100` and `openxFactory` #1122 → `38f826c2`; the `opensoft/xFactory` aggregation re-sync (**R-5**) is registered for Brett's word, and Phase 1 still waits on this packet's own archive (RULED **Q-D1 (a)**). § 3.6 follow-up #2 landed — `openDox-code` **#32 → `d816cf06`**, `mergedAt` **01:30:28Z**. The assembly roots now name every landed leg — `opensoft/openXdox` **#12 → `9be407bd`**, `opensoft/openDox` **#10 → `d05e204e`** — and the `dox-v1.0` / `xdox-v1.0` cuts are **Brett's act** (runbook § 9 Phase 6), which is why **§ 3.8 and § 4.6 stay `[ ]` here**. Copilot's one finding (`r4051734088`, the same discussion at all three heads) is **answered by measurement and resolved**: the install step it asked § 4.5a for is checked in — `openXdox-code` `.github/workflows/validate.yml:58-59`, `python -m pip install -e ".[test]"` against `pyproject.toml:106`'s pinned `opendox` — and it does not falsify the exit line the box ticked on. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>




Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Refs #656 (stays OPEN).
CLAIM: 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.pyplus
tests/snapshot_equivalence/, insidepytest-suite. A plain gate: noopenspec/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:
opendox-carve-0→b075fd91dc8fced8e1373825ba80220c33536bae, FLOOR PART 1'sown
carve_commit, frozen by RULED (a) POST-SHED MODE (#656comment5625573095), reached bygit archive. The carve manifest's own headeralready prescribes the move ("ask about the carve's own line by CHECKING OUT
A PRE-SHED REVISION"), and
--pre-refaccepts any pre-shed ref, so the claimdoes not rest on one of them:
contract-v3.7(45bd9ee2) re-renders theidentical digest, asserted by a test.
openXdox-code Record Spec Kit stage control proof #23 carry no renderer between them (measured over their file
lists). It is
openxdox.generator+openxdox.snapshotat the openXdox-codeleg this repository ALREADY PINS (
88a1047e→2529c10a), reached throughopenxFactory's own
scripts/carved_reach.py(RULED Q7,5626248666) overscripts/doc_health/(RULED DQ-1,5547049745) andcontracts/domain-profiles/openxfactory-engineering.yaml.tests/ideation-dashboard/fixtures/base-repo— 11 files,not_moved / replicated_at_destination, byte-identical atb075fd91and attoday's
main, which is why ONE directory can serve both sides.The § 8.2 evidence line this run produces
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 refusalkinds with the vocabulary ENFORCED at the one place every refusal passes
through,
--json, and the 0-pass / 2-refuse / never-1 exit contract held bya blanket
except Exceptionrather than by inspection. Five named kinds —equivalence-pre-ref-unreachable,-pre-tree-unrenderable,-reach-unavailable,-profile-unregistered,-digests-differ— plus theblanket's own
equivalence-unreadable, which is exactly part 3's shape (fournamed beside
conformance-unreadable): the exit contract'sexcept Exceptionhas 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.pychecks them and as separaterequired comparisons because only one of them catches each case — and refuses
equivalence-reach-unavailableon any mismatch or unreadable gitlink. Withoutit, a leg left detached at some other commit renders perfectly well and § 8.2's
line names a pin that did not render. Every
gitread is scrubbed ofGIT_DIR/ alternate-object-directory / replace-ref configuration, bounded at30 s and
--no-replace-objects;--pre-refreachesgit rev-parsebehind--end-of-options; the archive reads the RESOLVED COMMIT, so a branch or aforce-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_reachactuallyresolved, so a
re_destined:row cannot make the evidence line name a leg thatdid 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_reachactually imports from — was never checked for dirt, so anuncommitted edit rendered bytes that are not the pinned commit's while every
sha comparison passed;
GIT_CONFIG_PARAMETERS, the channelgit -cpropagates through, survived the scrub; and the unreadable-checkout refusal did
not distinguish a failed
rev-parsefrom a checkout that is off its pin.Round 3 raised nine: six are fixed —
--source-revisionvalidated forshape (which also closes SonarCloud
pythonsecurity:S8705at 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(are_destined:row would otherwise render one leg and reportthe other), and
-Idescribed accurately — and three are thepin-verification class at its two-round cap, answered by measurement in
one comment
and registered for the next act on the file.)
Two things a builder would otherwise get wrong, both measured:
ideation_dashboardANDdoc_health; one process would resolve whicheverlanded on
sys.pathfirst, for both names, and could report equivalenceagainst itself.
-IdropsPYTHONPATH, the user site directory and theimplicit cwd entry, so the archived tree is the only place the child's two
imports can come from.
source_revisionis pinned on both sides, with an injected git. Unpinned,the post side reads the checkout's HEAD through
RealGitand the pre side —an archive, not a repository — reads
unknown, and the digests then differfor 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:
764b077b…764b077b…ba0e384b…Status:header changed0ed6e0d2…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 == postpasses the first andfails the second, which is why they are two tests and not one twice. Each is
asserted to produce
equivalence-digests-differcarrying both digests, bothbyte 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 andcarved_reach.pyinto a tree with no legs.Nothing in this suite skips, and the last test asserts that of this file.
.github/workflows/pytest-suite.ymlpinsEXPECT_SKIPPEDas an EXACT sumbecause 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 legsrecursively.
MIN_SELECTEDandMIN_PASSEDare floors and need no edit.The second thing this run proves — § 4.4's profile fidelity
The arrived
generator.pyis parameterized by RULING C2 / § 4.4's domainprofile, measured at both ends: the pre-split blob (912 lines) carries the
literals inline —
"staged"at:348and:366,"picked"at:893— andthe 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.yamlreproducesopenxFactory'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_bytesreachesno 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):
openXdox/code/scripts/validate-ideation-dashboard-contracts.pyderivesSCHEMAS_DIR = ROOT / "contracts" / "schemas"from its own__file__andopenXdox-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-dircloses it either. As carved, it cannot run fromanywhere.
openxdox/snapshot.py:29'sVALIDATOR_RELPATHis amoved_verbatimrow andnow names
openxFactory/scripts/validate-ideation-dashboard-contracts.py, apath this repository shed at
cc4ae9d3.find_validator()WALKS UP THE PARENTS, so a run started inside a checkoutthat 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 keepsdoc_healthand its own adapter — the half of the post-split stack that stayed) · RULED
(a) POST-SHED MODE
5625573095(carve digests frozen atb075fd91/opendox-carve-0) · RULED Q75626248666(scripts/carved_reach.py, theone 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….OK — 4 of 4 corpus state(s) equivalent, exit 0, 1.196 s.--pre-ref contract-v3.7(45bd9ee2) → the identical digest, exit 0.command line; not one of them is stubbed to be reached.
pytest -q tests/snapshot_equivalenceat9ed3def3→ 48 passed,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.new_security_ratingalone, from ONE open
pythonsecurity:S8705"command argument injection":render_pre's childsubprocess.run, where the tainted value is now onlythe
--corpuspath. It isPath(...).resolve()d andis_dir()-checkedbefore it is used, and it lands as a POSITIONAL argument after
-c <program>, which Python reads out ofsys.argvand never parses as anoption. 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-revisionobject-id validation of round 3 — the same class, takenwhere 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.
pytest-suiteat9ed3def3(run 35357834419):7972 passed, 6 skipped, 338 deselectedin 15:29, and the workflow's ownfloor line reads
selected>=7050 (margin 1334) passed>=7044 (margin 1334) skipped==6.skipped == 6is the pinnedEXPECT_SKIPPEDEXACTLY, withthis suite at 48 tests — this directory moves it by zero, measured on the
runner. (Earlier heads inherited main's
archive-date-vs-commitred; theholder's two
gh pr update-branchmerges brought#1109'sdc242f3a, mainwent green, and so did this.)
pytest-suite.ymlinvocation (python3 -m pytest tests/ -q -m "not postgres") was run locally AT9c1a07f2, when this suite held 21 tests:8330 selected, 8081 passed, 103 skipped, 96 failed, 50 errors, in 35:48.
tests/snapshot_equivalenceis 21 of 21 passed, 0 skipped, 0 failed inthat report — which is the number
EXPECT_SKIPPEDcares about, and this directory moves it by zero. The localtotals are NOT a control for CI and are not offered as one: 86 of the 96
failures are
tests/trust-anchorand all 50 errors aretests/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 thegate 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_twicefails identically on a clean
origin/main9c817545checkout here(
len(report.lost) == 0, frozen at1) — a--filter=blob:noneclone'sorigin/mainIS its own HEAD, so the census's comparison against a MOVEDmain has nothing to see. The gate's own
pytest-suiterun on this pullrequest is the authority.
2c0e7030: 25 mutants, 25 caught, 0survived
(banked at
attachments/lane-opendox/floor55/build/mutation-sweep.log). Itearned its keep three times, and each survivor produced a commit rather than
a shrug:
FakeGit(head=source_revision)→FakeGit()survived, because withan explicit
source_revisionthe generator callscommit_dateonce andnever
head_sha(measured with a recording git) — which is the reason to pinthe 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-optionssurvived and is MEASUREDEQUIVALENT 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