Repository navigation
Tick box 3.3 of extend-merge-master-envelope-to-floor-bot-lanes on the measured negative control; record the accepted 3.6 finding (bookkeeping only) - #957
Conversation
…e measured negative control; record the accepted 3.6 finding (bookkeeping only) Brett Heap selected "Do 3.3 and 3.6" 2026-09-11 ~01:15Z, in session, on a multi-choice question (authority for the whole exercise). The lane's RESULT on openxFactory #745 at 03:08Z (comment 5628853801) measured box 3.3's constructed negative control SATISFIED and box 3.6's kill switch NOT THROWN. Brett then ruled on 3.6 ~03:40Z, in session, on a further multi-choice question: "Accept the finding; file a successor" (recorded on #745, comment 5632569506). A sibling claim on #745 at 09:57Z (comment 5632757397) names the successor: amend-kill-switch-to-declared-test- companion. This is bookkeeping only: flips box 3.3 to ticked and appends its dated evidence note (the constructed control, codeXfactory/codexFactory #382, and its merge-master-approval run 34554938749 decision JSON); appends box 3.6's dated finding note WITHOUT ticking it (the finding is accepted, but the box itself waits on the named successor and a real bot cycle); and appends a status paragraph at the end of the file. No proposal.md, design.md or spec delta touched. Still open by their own text: 3.1, 3.4, 3.6, 4.1, 4.2, 4.4. The packet is NOT archived. Refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Reviewer's GuideThis bookkeeping-only PR updates the task checklist with evidence for the measured 3.3 negative control, records the accepted-but-unfulfilled 3.6 kill-switch finding and its successor, and appends the resulting checklist status; no proposal, design, or spec files are changed. Sequence diagram for the measured negative control parkingsequenceDiagram
participant Control as NegativeControlPR
participant Approval as merge-master-approval
participant Envelope as MergeMasterEnvelope
participant Issue as openXfactory745
Control->>Approval: evaluate
Approval->>Envelope: check candidate and gates
Envelope-->>Approval: expected_author failed
Approval-->>Control: park, no approval submitted
Control->>Issue: record RESULT evidence
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
The prior commit left "PR #PRNUM" as a placeholder since the PR number did not exist yet at authoring time. Now that PR #957 exists, amend the note to cite it by number, matching this packet's own established citation style ("Ticked by PR #944.", "cite PR #944 by number"). Refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
The only outstanding comment is a minor documentation-consistency nit; no blocking issues remain.
Pull request overview
Bookkeeping-only update recording evidence for checklist item 3.3 and the accepted, unresolved 3.6 finding without changing specifications.
Changes:
- Marks 3.3 complete with measured evidence.
- Records 3.6’s finding, successor, and open status.
- Appends current checklist and archive status.
Review note: The active README ledger contains stale unticked claims and should receive a dated superseding update.
File summaries
| File | Summary |
|---|---|
openspec/changes/extend-merge-master-envelope-to-floor-bot-lanes/tasks.md |
Updates checklist evidence and status history. |
Review details
Suppressed comments (1)
openspec/changes/extend-merge-master-envelope-to-floor-bot-lanes/tasks.md:907
- The active
README.mdOpenSpec Records entry for this packet still says that every task box stays unticked and that no box is ticked (README.md:1089-1104), but this PR changes the checklist and records 3.3 as ticked. Please add a dated superseding state to that index (or otherwise update those stale claims) so the repository's active packet ledger does not contradicttasks.md.
**THE CHECKLIST STATE AFTER THIS PR:** open by their own text — 3.1, 3.4,
3.6, 4.1, 4.2, 4.4 (confirmed by `grep -n '^- \[ \]'`). Every other
numbered box is ticked or N/A. **The packet is NOT archived** — § 4.4
(archive through `proposal-support`) is separately open by its own text
and this PR does not touch it.
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 3 days and 6 hours by commenting @sourcery-ai review. Upgrade to get a review now.
|
Lane: openxfactory-2 (openXfactory-2) |
|
Lane: openxfactory-2 (openXfactory-2) |
…mmit (#957 tick 3.3), no conflict, packet unchanged main advanced again during verification (22efcbe -> 54c166c, PR #957: a different change's own tasks.md tick). No overlap with this packet or with README.md. git diff --quiet HEAD~1 HEAD -- openspec/changes/archive/2026-09-11-state-header-window-budget/ exits 0. Lane: codexfactory-1 (codeXfactory-1) Co-Authored-By: Claude Sonnet 5 <[email protected]>
…pendent verifier's eight round-3 findings Merge (F4): git merge --no-edit origin/main (merge-base 22efcbe; main at 78d2c6f, having advanced past the 54c166c the verifier measured against). One conflict, in README.md's OpenSpec Records block: kept this packet's row, dropped the state-header-window-budget row main's own commit had just archived out of Active changes. tests/sequenced_after/corpus-ledger.yaml auto-merged clean (different rows). F1 (BLOCKING, == Copilot N3): code_surface's tests/ scoping (already fixed round 2) is now also named in proposal.md's "What changes" and tasks.md box 2.5: this filing moves two bookkeeping rows in the per-change sweep ledger, seeded by validate-sequenced-after.py --seed-ledger, carrying no requirement and no grant. F2 (BLOCKING): the "A kill switch outside the diff" scenario is broadened, not unchanged — the parent's "repository or environment setting" widens to name secrets and any other value outside a reviewable diff, matching the requirement's own body paragraph. Declared explicitly in proposal.md (the scenario-inventory bullet plus a new paragraph) and tasks.md box 2.1. spec.md itself is untouched: the broadened text was already correct, only its description as "unchanged" was wrong. F3: design.md no longer calls PR #957 "open" — it merged 2026-09-11T10:50:23Z at 54c166c; this packet takes the merge-from-main rather than re-writing the parent's tasks.md itself. F5: .openspec.yaml's proposed_by drops the stale "(window `openxfactory-f7`)" parenthetical (accurate at authoring, superseded by a profile switch at 11:04Z); lane + session id `c07ed656` identify the actor without it. F6: proposal.md's "Two of the six files are not ordinary code" named a test FUNCTION as if it were a file; reworded to "Two things in that set" and named the file the function lives in (test_floor_regeneration_enrolment.py, confirmed via a read-only, unpushed codexFactory clone). F7: tasks.md gains box 1.3 under § 1, naming the ratification-encoding task (approved_by/approved_on, Status flips, the ratification record, the README row) that no existing box named. F8: .openspec.yaml's `related` entry for govern-sibling-added-modified-deltas now spells its archived path (archive/2026-09-02-govern-sibling-added- modified-deltas) rather than the pre-archive id. Re-validated after the merge: per-change --strict clean; --all --strict same 3 pre-existing failures as the live main tip (78d2c6f); ledger-diff exit 0; targeted pytest 401 passed. refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Co-Authored-By: Claude Sonnet 5 <[email protected]>
…ntifier, and the artefact equality is measured against a committed post-withdrawal baseline Six Copilot threads on b3b8716, all accepted and encoded in one commit. * S1 (.openspec.yaml) — the provenance paragraph still said PR #957 was OPEN and its `tasks.md` "is being moved", which contradicted design.md's own record of that merge. Past tense now: #957 MERGED 2026-09-11T10:50:23Z (`54c166cf`); this packet takes its merge-from-main and does not edit that file, so the conflict it warned of no longer exists. * S2 (proposal.md § What is NOT proposed, and the `target_release` front matter) — an unqualified "no digest movement" contradicted D-3, which makes the codexFactory behaviour digest part of the declared companion and requires a movement at the throw AND at the restore. The two are now distinguished: no openxFactory CONTRACT digest set, pin byte or `contract_bundle_version` moves in THIS FILING; the codexFactory behaviour-snapshot digest is a declared companion artefact and DOES move, in that repository, by the companion realization — the point of D-3, not an exception to the bullet. * S3 (design.md D-2c/D-2b, spec para 3 and its scenario, tasks 3.1/3.2) — `regenerate: <command>` was arbitrary shell in a pull-request-editable comment that the conformance test would execute inside a REQUIRED CI runner. The grammar is now `regenerate: <identifier>`: a bare allowlisted token, resolved ONLY in trusted, code-owner-reviewed test code by a fixed `identifier -> argv` table in codexFactory's `tests/merge-master/`, run as an argv list with no shell from a fixed cwd. An identifier absent from the table FAILS the check rather than being executed, so a declaration edit can never introduce execution; adding an identifier is a reviewed test-code change, not a declaration edit. * S4 and S6 (design.md D-2b, tasks 3.2 — the same defect reported twice) — a whole-tree `git diff --name-only` taken in a tree that already carries the withdrawal reports the envelope itself, so equality against artefact paths alone could never hold. The baseline is now explicit: apply the withdrawal in the scratch tree and COMMIT IT as the baseline commit, run the pinning suite, then run each declared artefact's allowlisted regeneration, then `git diff --name-only <baseline-commit>` — a delta that holds ONLY what regeneration wrote. The diff is deliberately NOT path-scoped, so a regeneration writing a path nobody declared still fails. * S5 (spec paras 3 and 5, with a new scenario; mirrored in D-2b, task 3.2 and proposal.md) — both equalities passed vacuously on an EMPTY companion, so an enrolment nothing pins could leave unnoticed. The notice-it-leaving property is now explicit: the measured set for every enrolled class SHALL be non-empty, and an empty measured set is a failing check, never a vacuous pass. New scenario "An enrolment nobody would notice leaving is refused"; the requirement header is unchanged and every existing scenario is kept. Nothing is ratified, realized, thrown or ticked. No codexFactory byte, no envelope byte, no parent-packet byte is authored here. Validated: per-change `--strict` clean; `--all --strict` failure set IDENTICAL to main at 38c076d (2 pre-existing: change/disposition-codexfactory-declared- renames, change/disposition-codexfactory-floor-relocation-retitle); `validate-sequenced-after.py . --ledger-diff` exit 0 (200 rows consistent); `Status:` at line 9/3/3; targeted pytest 401 passed, 66 subtests passed. refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…witch is one reviewed edit plus its declared test companion (#959) * File amend-kill-switch-to-declared-test-companion (DRAFT): N-4's one-edit kill switch amended to one reviewed edit plus its declared test companion Successor named by extend-merge-master-envelope-to-floor-bot-lanes box 3.6's 2026-09-11 finding, on Brett Heap's selection "Accept the finding; file a successor" (~03:40Z, in session). Filing, not ratifying. refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Add design.md: the measurement, D-1..D-6, box 3.6's amended procedure, five open questions D-1 recommends (A) one reviewed edit plus its declared test companion and refuses (B) a kill-switch-aware suite, because a suite that adapts to the entry leaving no longer notices it leaving. refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Move the two sweep-ledger rows this filing moves: the new row, and the parent flipping sole to co-modifier Machine-derived by validate-sequenced-after.py --seed-ledger --moved-by '#959' --moved-on 2026-09-11: two rows, exactly the case the ledger header documents (a change moves its own row, plus a partner's row when its ## MODIFIED Requirements block flips that partner from sole to co-modifier). No file inside the parent packet is touched. refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Fix round on #959: marker reason separator, task 2.5 gate wording measured against main, grammar (Copilot threads) T2: specs/roles-authority-model/spec.md's `Modified over` marker lacked the ` — ` reason separator `_REASON_SEP` requires (scripts/doc_health/ modified_block_currency.py); inserted it so `parse_marker` now returns a non-None reason, matching the amend-mirror-floor-regeneration-merge-authority precedent form. T3: tasks.md task 2.5 claimed `openspec validate --all --strict` would be clean outright, which is unsatisfiable — 3 pre-existing failures exist on `main` (disposition-codexfactory-declared-renames, disposition-codexfactory-floor-relocation-retitle, repo-boundary-governance). Reworded to the parent's own task 1.7 form: per-change --strict clean, and --all --strict with the failure set unchanged from main, naming the measured set, count and the main sha (54c166c) measured against. T5: proposal.md's "the realization is that repository's lane's to author" grammar fixed to "the realization is for that repository's lane to author". refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Co-Authored-By: Claude Sonnet 5 <[email protected]> * Round 2 on the kill-switch companion packet: machine-readable companion grammar (D-2c), accurate 5+1 file count, scoped code_surface tests/ claim N1: design.md D-2 gained D-2c — a stated minimal machine-readable grammar for the companion declaration (pytest node ids for assertions, artefact paths for golden/snapshot files; function grain for assertions, file grain for artefacts), making task 3.2's equality check deterministic. Q-3 marked answered. tasks.md 3.1/3.2 reworded to match, and to allow either a comment-block or a sibling-file realization of the grammar. N2: "29 required tests across 6 files" was wrong — it is 29 failing assertions across five test files, plus a sixth file (the golden behaviour-snapshot.json digest) that moves with them but is not itself a test. Corrected in README.md, proposal.md and the roles-authority-model spec.md marker; .openspec.yaml already carried the accurate FIVE+SIXTH phrasing. N3: proposal.md's code_surface field claimed no byte under `tests/` moves, but this filing moves two rows of the machine-derived per-change sweep ledger tests/sequenced_after/corpus-ledger.yaml. Scoped the claim to test implementation/runtime code and named the ledger as the one tests/ file this pull request touches. refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Co-Authored-By: Claude Sonnet 5 <[email protected]> * Round 4 on the successor: every enrolled class gets a declared companion; in-envelope comment grammar; assertion-only equality check R1/R4 — the amended requirement binds EVERY enrolled candidate class and this packet grandfathers none. Task 3.1 now declares a companion for every class enrolled in the envelope at realization time (today two: codexfactory-routine-code and openxfactory-floor-regeneration), each measured the same way; task 3.2's equality test runs per class; design.md's former Q-2 is moved out of the open questions and answered at filing; tasks 5.1 and proposal.md's Impact state the block explicitly — not archivable while ANY enrolled class lacks a declared companion and a passing equality test. R2 — the sibling-declared-file option is dropped. The companion is declared in .github/merge-approval-envelope.yml beside the candidate it belongs to, as comment lines, with a fixed grammar (`# companion:` / `# companion-artefact:`) and a stated discovery rule for the checker. R3 — the equality check is on assertions only: the failing node ids from withdrawing that class alone equal the declared companion set, both directions and order-free. Artefacts are declared and existence-checked, and their movement is proved by the failing set itself, so no artefact-diff procedure is needed or claimed. refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Round 5 on the successor: artefact movement is measured by a regeneration diff, not inferred from node ids The review's ground is accepted, and the inference it names is withdrawn rather than defended. Declaring a `# companion-artefact:` path and checking that the path exists proved nothing about movement: existence does not prove the declared file is the one whose recorded value moves, a failing node id does not identify the path its run rewrites, a recording test can fail for a reason unrelated to the withdrawal, and a shared snapshot can change without any declared node id naming it. So the conformance check is now TWO EQUALITIES, both measured in the SAME scratch tree with the class alone withdrawn: (i) ASSERTIONS — the set of failing pytest node ids equals that class's declared `# companion:` set, both directions, order-free; (ii) ARTEFACTS — each declared artefact is regenerated by ITS OWN declared recording command, and the set of paths `git diff --name-only` reports changed equals that class's declared `# companion-artefact:` set — no more, no less. The grammar gains the command that makes (ii) executable: `# companion-artefact: <path> regenerate: <command>`. An artefact with no recording command therefore cannot be declared and cannot form part of an enrolment's companion; supplying the missing command is the realizing codexFactory companion's work, stated as such in task 3.1 rather than left to be discovered. Existence stays necessary and is no longer the check. The objection that a pytest run does not report moved paths is answered by not asking it to. Encoded at: design.md D-2c grammar (the `regenerate:` field and why the command is part of the declaration), D-2b (rewritten: the two equalities, the withdrawn inference stated with its four grounds, and the realization constraint), and D-2's summary sentence, § 4's measurement parenthetical and Q-1 specs/roles-authority-model/spec.md paragraph 3 (SHALL assert BOTH equalities; SHALL NOT infer movement from the failing assertions or an existence check; an artefact with no declared recording command SHALL NOT be declared) and the "companion is declared beside the declaration" scenario, which gains the artefact-diff bullet — requirement header unchanged, every scenario kept tasks.md 3.1 (grammar + supply the missing recording command) and 3.2 (rewritten as the two equalities), with 5.1's archive block and proposal.md brought into line refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Round 6 on the successor: the regeneration name is an allowlisted identifier, and the artefact equality is measured against a committed post-withdrawal baseline Six Copilot threads on b3b8716, all accepted and encoded in one commit. * S1 (.openspec.yaml) — the provenance paragraph still said PR #957 was OPEN and its `tasks.md` "is being moved", which contradicted design.md's own record of that merge. Past tense now: #957 MERGED 2026-09-11T10:50:23Z (`54c166cf`); this packet takes its merge-from-main and does not edit that file, so the conflict it warned of no longer exists. * S2 (proposal.md § What is NOT proposed, and the `target_release` front matter) — an unqualified "no digest movement" contradicted D-3, which makes the codexFactory behaviour digest part of the declared companion and requires a movement at the throw AND at the restore. The two are now distinguished: no openxFactory CONTRACT digest set, pin byte or `contract_bundle_version` moves in THIS FILING; the codexFactory behaviour-snapshot digest is a declared companion artefact and DOES move, in that repository, by the companion realization — the point of D-3, not an exception to the bullet. * S3 (design.md D-2c/D-2b, spec para 3 and its scenario, tasks 3.1/3.2) — `regenerate: <command>` was arbitrary shell in a pull-request-editable comment that the conformance test would execute inside a REQUIRED CI runner. The grammar is now `regenerate: <identifier>`: a bare allowlisted token, resolved ONLY in trusted, code-owner-reviewed test code by a fixed `identifier -> argv` table in codexFactory's `tests/merge-master/`, run as an argv list with no shell from a fixed cwd. An identifier absent from the table FAILS the check rather than being executed, so a declaration edit can never introduce execution; adding an identifier is a reviewed test-code change, not a declaration edit. * S4 and S6 (design.md D-2b, tasks 3.2 — the same defect reported twice) — a whole-tree `git diff --name-only` taken in a tree that already carries the withdrawal reports the envelope itself, so equality against artefact paths alone could never hold. The baseline is now explicit: apply the withdrawal in the scratch tree and COMMIT IT as the baseline commit, run the pinning suite, then run each declared artefact's allowlisted regeneration, then `git diff --name-only <baseline-commit>` — a delta that holds ONLY what regeneration wrote. The diff is deliberately NOT path-scoped, so a regeneration writing a path nobody declared still fails. * S5 (spec paras 3 and 5, with a new scenario; mirrored in D-2b, task 3.2 and proposal.md) — both equalities passed vacuously on an EMPTY companion, so an enrolment nothing pins could leave unnoticed. The notice-it-leaving property is now explicit: the measured set for every enrolled class SHALL be non-empty, and an empty measured set is a failing check, never a vacuous pass. New scenario "An enrolment nobody would notice leaving is refused"; the requirement header is unchanged and every existing scenario is kept. Nothing is ratified, realized, thrown or ticked. No codexFactory byte, no envelope byte, no parent-packet byte is authored here. Validated: per-change `--strict` clean; `--all --strict` failure set IDENTICAL to main at 38c076d (2 pre-existing: change/disposition-codexfactory-declared- renames, change/disposition-codexfactory-floor-relocation-retitle); `validate-sequenced-after.py . --ledger-diff` exit 0 (200 rows consistent); `Status:` at line 9/3/3; targeted pytest 401 passed, 66 subtests passed. refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * State the conformance procedure once, as five ordered steps beginning with the declaration capture Three Copilot threads on tasks.md read as one defect: the procedure was written in the wrong order and restated in several places, so no two statements of it agreed. It is now ONE numbered five-step sequence in task 3.2, and 3.1, design.md D-2b, the ## MODIFIED scenarios and proposal.md point at it rather than restate it. 1. CAPTURE THE DECLARATIONS first, from the PRE-withdrawal envelope: the `# companion:` pinning node-id set and the `# companion-artefact:` (path, identifier) pairs, with every identifier resolved against the trusted module's allowlist table before a byte is edited. Step 2 removes those very comment lines, so a test that has not captured them has nothing left to compare against; an unresolvable identifier, and a declared node id naming the conformance module itself, fail here. 2. WITHDRAW THAT CLASS ALONE AND COMMIT THE BASELINE. Every later measurement is taken in that committed tree and against that commit. 3. MEASURE THE ASSERTIONS over EXACTLY the node ids captured at step 1 — an explicit node list, never a sweep of tests/merge-master/ or any other directory — so the conformance module cannot discover or invoke itself and no unrelated failure contaminates the measured set. The failing set equals the captured `# companion:` set and is not empty. 4. REGENERATE each captured artefact by its allowlisted identifier (argv from the table, no shell, fixed cwd of the repository root) and assert `git diff --name-only <baseline-commit>` equals the captured `# companion-artefact:` path set exactly, the diff deliberately not path-scoped. 5. RECORD both equalities and the non-emptiness result per class, naming the class and the step in any failure. design.md D-2b also states, in one sentence, that the conformance module lives in tests/merge-master/ but is never a member of any class's pinning node list. The spec's third paragraph and the "companion is declared beside the declaration" scenario are tightened to measurement against the CAPTURED declaration in a committed post-withdrawal baseline, over the captured node ids. Task 2.5 additionally records today's re-measurement of the `--all --strict` failure set against main at 38c076d (2 pre-existing failures, identical on this branch); no requirement, decision or box moves. refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Define "the declared companion APPLIED" as an act at the throw, separate from the realization that only declares it The review's ground is accepted. The packet kept conflating two moments, and the landability condition read as unachievable because of it: * AT REALIZATION (tasks 3.1/3.2, the codexFactory companion change) the envelope gains the declarations and the trusted conformance module is added. NO pinning assertion moves and NO artefact moves — 3.3 stands, unqualified. The conformance check is a MEASUREMENT taken in a throwaway scratch tree; it proves each class's declaration is COMPLETE and EXACT (declared equals measured, non-empty) and it EDITS NOTHING. Its value is that the throw's author knows, before opening the pull request, exactly which assertions and artefacts the withdrawal will move. * AT THE THROW (a later codexFactory pull request on a real bot cycle) the companion is APPLIED. New task 3.6 "THE THROW, DEFINED" is the packet's single definition of that act — ONE pull request carrying exactly three kinds of change and nothing else: (i) the candidate mapping and its companion comment lines removed from the envelope; (ii) for EACH declared `# companion:` node id, the minimal reviewed edit to that assertion's EXPECTATION so that it holds in the post-withdrawal tree (an enrolled-id list loses the withdrawn id; a helper asserting `len(matches) == 1` asserts the post-withdrawal count) — RE-TARGETED, never deleted, skipped or weakened, and still noticing the enrolments that remain; (iii) for EACH declared `# companion-artefact:`, the file as produced by its own allowlisted regeneration, the golden digest's movement recorded in its movement log as the throw. "AND NOTHING ELSE" is a MEASURABLE BOUND rather than an assurance: the paths `git diff --name-only` reports for the throw lie within the union of the envelope, the files holding the declared node ids and the declared artefact paths, and no assertion outside the declared set changes. Landability is then a CONSEQUENCE — every assertion that would fail is one the pull request re-targets, every artefact that would move is one it regenerates — so the required `validate` check passes on the throw's own tree. The RESTORE is the revert of that same pull request. The figures stay in view rather than being smoothed away: at today's head the companion for `openxfactory-floor-regeneration` measures 29 assertions across five test files plus the golden digest (the RESULT on openxFactory #745 at 2026-09-11T03:08Z), so the throw carries a six-file companion beside the envelope edit. That is exactly what N-4's "one edit" hid, and what this packet makes declared, bounded and reviewable. Encoded at: tasks.md 3.1 (the realization moves nothing in the pinning suite; points at 3.3 and at 3.6), 3.3 (binds the realization, not the throw; re-targeting is not relaxation), NEW 3.6 (the definition, numbered for the parent's box 3.6 whose throw it defines), and 4.1 (the throw is applied as 3.6 defines it) design.md D-2d "APPLYING THE COMPANION AT THE THROW", carrying the same content beside D-2's declaration site and grammar specs/roles-authority-model/spec.md paragraph 4, which gains the defining clause — applying the companion SHALL MEAN re-targeting each declared assertion's expectation and regenerating each declared artefact by its allowlisted tool; NOTHING ELSE SHALL MEAN no change outside the enrolment declaration, the declared assertions' files and the declared artefact paths — and the "Withdrawing an enrolment" scenario's WHEN bullet, which now names the re-targeting and the regeneration Requirement header unchanged, every scenario kept, every box still `- [ ]` (19 open, none ticked). Nothing is ratified, realized, thrown or ticked here, and no codexFactory, envelope or parent-packet byte is authored. Validated: per-change `--strict` clean; `--all --strict` failure set IDENTICAL to main at 2cdaf06 (2 pre-existing: change/disposition-codexfactory-declared- renames, change/disposition-codexfactory-floor-relocation-retitle); `validate-sequenced-after.py . --ledger-diff` exit 0 (200 rows consistent); `Status:` at line 3/9/3; targeted pytest 401 passed, 66 subtests passed. refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Round 9 on the successor: the restore is a forward change, and the measurement runs the whole pinning suite with the conformance module excluded by path Two Copilot findings after 6dd333a, both against rulings of earlier rounds, and both accepted. The restore is no longer defined as a revert of the throw. It is a FORWARD change produced by the throw's own procedure, in one pull request carrying the same three kinds of change in the opposite direction and nothing else: the candidate mapping and its companion comment lines re-added byte-identical to the pre-throw declaration, each declared assertion's expectation re-targeted back to the enrolled tree, and each declared artefact regenerated by its allowlisted tool in the restored tree -- which is what APPENDS the restore movement to the golden digest's history. A `git revert` is refused as the restore, because reverting the patch would delete the throw's recorded movement instead of recording a second one, leaving the behaviour history with no trace that the switch was ever thrown. That is the opposite of the ledger D-3 exists to produce, so D-3 now says it in those terms: two forward movements, throw and restore, each recorded by regeneration, never a revert. Encoded at design.md D-2d and D-3 and the section-3 table, proposal.md's four-step procedure, and tasks.md 3.6 and 4.3. The conformance measurement no longer runs only what the declaration named. Step 3 runs the WHOLE pinning suite on the committed post-withdrawal baseline with the conformance module itself excluded BY PATH -- that path being a constant in trusted test code and never a value read from a declaration -- and the failing node ids are the measured set. Narrowing the run to the captured node list bought self-containment at the price of the property the check exists for: an assertion the declaration OMITS would never be run, never fail and never enter the measured set, so an incomplete declaration would equal its own measurement. Now it is run, it fails, it enters the measured set, and the equality breaks. Step 4 takes the same treatment on the artefact half: every regeneration in the allowlist table is run, the whole table and not only the identifiers this class declared, so an artefact that moves undeclared appears in the baseline diff and breaks the equality rather than being passed over unregenerated. Contamination is answered by the baseline rather than by the run, since the pinning suite is green on the pre-withdrawal tree and the baseline differs from it by the withdrawal and nothing else. Encoded at tasks.md 3.2 steps 1, 3 and 4, design.md D-2b's numbered items and the completeness paragraph beneath them, proposal.md's summary and code_surface, and spec paragraph 3 with its scenario bullets. design.md section 4 gains a revisions-at-filing note, so the record says what review moved and what it did not: rounds 7-9 changed the conformance procedure and the definition of the restore, not the mechanism this packet asks to ratify. The declared companion, the in-envelope comment grammar, the allowlisted regeneration identifiers resolved only in trusted test code, the committed post-withdrawal baseline and the non-emptiness clause all stand as filed. The requirement header is unchanged, every scenario is kept, and every box stays unticked. refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Round 10 on the successor: artefact paths are normalized and contained or refused at capture, the baseline commit is hermetic, and artefact attribution is per identifier Three Copilot findings from the un-draft review, all accepted, all against the conformance procedure `tasks.md` 3.2 fixes and `design.md` D-2b restates. The declared artefact path is now a FORM, not free text. `<repo-relative path>` is a normalized repository-relative POSIX path CONTAINED IN THE CHECKOUT, and step 1 refuses everything else at capture: an absolute path, any `..` segment, a backslash, an empty segment, and any path whose realpath after normalization is not under the repository root. The normalization and the containment check are performed BEFORE ANY FILESYSTEM READ, so the existence check that follows can never leave the checkout and no comparison is ever made on a non-canonical spelling; a refused path fails the conformance check naming the refusal class and the offending declaration. The envelope is a pull-request-editable file read inside a required check, which is the whole reason the grammar has to fix the path form rather than describe it. Encoded at design.md D-2c's grammar and D-2b step 1, tasks.md 3.1's restatement of the grammar and 3.2 steps 1 and 5, and spec paragraph 3 with the declaration scenario. The baseline commit is taken in a HERMETIC scratch repository. The scratch tree is a repository of its own -- `git init`-ed there, or a worktree with a private `GIT_DIR` -- with repository-local `user.name`/`user.email` set to fixed test constants, `GIT_CONFIG_GLOBAL=/dev/null` and `GIT_CONFIG_SYSTEM=/dev/null` (equivalently `GIT_CONFIG_NOSYSTEM=1`), `core.hooksPath` pointed at an empty directory, and `commit.gpgsign=false`/`tag.gpgsign=false`; the same environment governs step 4's `git diff --name-only <baseline-commit>`. This repository already records the failure being avoided, and the precedent is cited by path rather than paraphrased: `tests/openxwallet_pin/test_verify_pin.py`'s `_hermetic_git` account at lines 32-42 -- a CI runner carries no ambient git identity, so an un-pinned scratch commit dies there with `Author identity unknown` while passing on a developer's machine, and a developer's global config can carry `core.hooksPath` or `commit.gpgsign`, either of which then runs or refuses inside the throwaway repository. Both directions are the same defect: the ambient installation must not change the answer. Encoded at tasks.md 3.2 step 2 and design.md D-2b step 2. Artefact attribution is now PER IDENTIFIER, and the comparison is over pairs. Step 4 runs each allowlisted regeneration ONE AT A TIME from the committed baseline, records the paths `git diff --name-only <baseline-commit>` reports as the paths THAT identifier produced, and restores the tree to the baseline (`git checkout -- .`, `git clean -fd`) before the next identifier runs; the measured value is a set of `{(identifier, path)}` pairs and it must equal the captured `# companion-artefact:` pair set exactly, both directions, order-free. A declared pair whose identifier did not produce that path fails even where another allowlisted tool did produce it, so an artefact bound to the wrong recording tool is a finding rather than something the comparison absorbs; an undeclared pair produced by any allowlisted tool fails for the same reason. The union of changed paths is retained only as a consequence of the pair equality and is never itself the check -- it was comparing the path union after running the whole allowlist together that let a mis-bound identifier pass. The whole-tree grain and the declaration-independent inventory are unchanged; only the grain of the comparison moved. Encoded at tasks.md 3.2 steps 4 and 5, design.md D-2b step 4 with the path-scoped-diff and completeness paragraphs beneath it, and spec paragraph 3 with the step-4 scenario bullet. The mechanism this packet asks to ratify is untouched: the declared companion, the in-envelope comment grammar, the allowlisted identifiers resolved only in trusted test code, the committed post-withdrawal baseline, the complete pinning inventory with the conformance module excluded by its own path, and the non-emptiness clause all stand as filed. No requirement header moves and no scenario is dropped. refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Harden the conformance procedure's git environment, path refusal and inter-tool reset, and bound the packet to its invariants Round-11 review of the five-step conformance procedure raised five defects in how the procedure is specified, all of which let a check pass while measuring something other than what it claims. Each is encoded here; the sixth item bounds what this packet specifies at all. - The hermetic scratch repository now CLEARS the environment rather than only adding to it: every inherited GIT_* control variable is unset (GIT_DIR, GIT_WORK_TREE, GIT_INDEX_FILE, GIT_COMMON_DIR, GIT_OBJECT_DIRECTORY, GIT_ALTERNATE_OBJECT_DIRECTORIES, GIT_NAMESPACE, GIT_CEILING_DIRECTORIES and any other), leaving only the two config variables the procedure sets itself, and every git call in steps 2 and 4 names its repository explicitly (--git-dir/--work-tree, or -C <scratch> after git init there). Hermetic VALUES alone left an inherited GIT_DIR free to aim the scratch commit and the step-4 diffs at another repository — a green check on the wrong tree. - The artefact-path check is stated as TWO STAGES instead of the self-contradictory "containment before any filesystem read" (realpath reads metadata): (a) a LEXICAL refusal that touches no filesystem at all, then (b) containment, resolving the surviving path through symlinks and requiring the result under the repository root's own resolved path — a stage that may consult metadata but does not open or read the artefact before containment holds. The spec's phrase is now "before the artefact is opened or read". - The refusal set is ONE set across all three sites. The spec paragraph states it normatively — absolute path, any `..` segment, any `.` segment, a backslash, an empty segment, a trailing slash, any non-POSIX separator — and D-2c and task 3.2 step 1 repeat that set verbatim. It previously differed between the spec, step 1 and D-2c over `.` segments and trailing slashes. - Between allowlisted tool runs, BOTH the index and the worktree reset to the baseline commit: git reset --hard <baseline-commit> then git clean -fdx, with git status --porcelain verified empty. `git checkout -- .` restores from the index, so a tool that stages what it writes leaked its content into the next identifier's delta — the exact mis-binding the (identifier, path) pair equality exists to catch. - New D-2e states what this packet fixes and what the codexFactory companion change's design owns: the invariants here, the exact commands, flags and helper layout there. Task 3.2's head points at it. refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Measure each tool's output as the full working-tree delta, so an untracked or ignored artefact cannot go undeclared Round-12 review found the per-identifier inventory measured with `git diff --name-only <baseline-commit>`, which reports only changes to TRACKED content. A regeneration tool that writes a NEW file — above all one the repository ignores, and this procedure expressly contemplates tools that write ignored outputs — produced an artefact the (identifier, path) equality never saw, so the undeclared output the check exists to catch could pass it. The inventory is now the FULL WORKING-TREE DELTA against the committed baseline: tracked modifications and deletions, untracked files, and ignored files alike, read as `git status --porcelain=v1 --untracked-files=all --ignored=matching`, the path taken from every status line, a rename counted as both paths, and the call made immediately after that identifier's run and before the reset. An ignored path a tool produces counts as produced and fails the equality when undeclared exactly as a tracked one does — being ignored by git is a statement about version control, never about whether the tool wrote it. The reset between tools is unchanged in form and now explained: `git reset --hard <baseline-commit>` then `git clean -fdx`, the `-x` being precisely what removes the ignored outputs the inventory has just counted, verified by the same `git status --porcelain=v1 --untracked-files=all --ignored=matching` call that measures — one notion of "changed" for both the measurement and its check. Encoded at task 3.2 step 4, design D-2b step 4, the requirement's per-tool attribution sentence ("every path the tool created, modified or deleted, tracked or not") and its companion scenario, the design passage that named the diff as the reporter, both step-2 references to what the hermetic environment governs, and D-2e's invariant list. The `git diff --name-only` bound on the THROW pull request (D-2d, task 3.6) is deliberately untouched: that is a real pull request's own diff, a different act from this scratch-tree measurement. refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * State the artefact equality in the proposal summary as (identifier, path) pairs, matching the procedure it summarises Round-12 review found the `code_surface:` summary still describing the artefact half as "the set of paths reported changed by regenerating EVERY ARTEFACT IN THE ALLOWLIST TABLE". The canonical procedure in `design.md` D-2b and `tasks.md` § 3.2 has required equality of (IDENTIFIER, PATH) PAIRS since the mis-binding check was rejected: a path-only comparison cannot tell that the declared generator is the one that produced the artefact, so a summary written in paths reads as a licence to build exactly the check the packet refused, and the summary is the part a reader of the proposal reaches first. The summary now says what the procedure says, in the procedure's own terms: the declared companion ARTEFACTS equal, AS A SET OF (IDENTIFIER, PATH) PAIRS AND NEVER AS A SET OF PATHS ALONE, what regenerating the whole allowlist table ONE TOOL AT A TIME actually produces — each tool run alone from the committed baseline, that run's FULL WORKING-TREE DELTA against it (tracked modifications and deletions, untracked files and ignored files alike) attributed to its own `regenerate:` identifier, those measured pairs compared with the declared `# companion-artefact:` pairs. The five-step recital in the same sentence carried the same drift one clause earlier — "regenerate EVERY allowlisted artefact and diff against the baseline" — and now names the one-tool-at-a-time run and the working-tree delta the preceding commit made the inventory. The requirement's own measurement vocabulary is aligned with it in one place for the same reason: "that regeneration diff" becomes "that regeneration DELTA", and the sentence that forbids narrowing it to the declared paths now forbids narrowing it to tracked content alone as well — a restatement of what the same paragraph already requires, not a new obligation, so that the requirement does not call the inventory a diff two sentences after defining it as the full working-tree delta. No normative content moves: the pair equality, the one-tool-at-a-time run and the tracked/untracked/ignored inventory are all already ratified text in the requirement, the design record and the task list. This commit makes the proposal's summary and the requirement's noun agree with them. `Status:` stays within the first fifteen lines of `proposal.md`. The `git diff --name-only` bound on the THROW pull request (D-2d, task 3.6) is again left alone: that is a real pull request's own diff, a different act from this scratch-tree measurement. refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Open every regeneration with a reset barrier and require its tool to exit zero, and tick § 4's boxes on their recording refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Bound the withdrawal inside a declared assertion's own file, and prove every recording tool a no-op before the withdrawal is measured refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Require a declared companion artefact to be a tracked path, and make determinism a byte-identical no-op refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Refuse a declared path that git could read as a flag or a pattern, and pass every declared path literally after a separator refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Bind the committed baseline to post-withdrawal measurement, and state the control-first order in the requirement refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Require GIT_CONFIG_GLOBAL always, with the system half in either spelling, since NOSYSTEM alone leaves the user's global config active refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Bound every allowlisted invocation and both whole runs by a constant timeout, and refuse an assertion run that never produced node ids refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>



Lane: openxfactory-2 (openXfactory-2)
Authority
Brett Heap, 2026-09-11 ~01:15Z, in session, multi-choice: selected "Do
3.3 and 3.6" — authority for this whole exercise (governing issue #745).
For box 3.6 specifically, Brett Heap ruled ~03:40Z, in session,
multi-choice: "Accept the finding; file a successor" — recorded on
#745 at 09:42Z (comment 5632569506).
What this PR does (bookkeeping only)
[x], with a dated evidence note.[ ]; the accepted finding is recorded underit, naming the successor.
proposal.md,design.mdor spec delta touched.Box 3.3 — the measured negative control (SATISFIED)
Measured and recorded on openxFactory #745 at 03:08Z (RESULT comment
#745 (comment))
and codexFactory #232.
Constructed control: codeXfactory/codexFactory#382 (head
24964a1donfloor/bot-regeneration, basemain, authorbrettheap, changed pathsexactly
floor/openxfactory-review-authority-floor.yaml; one inputvaried — the author), opened 02:31:12Z, closed unmerged 02:41:27Z, branch
deleted.
merge-master-approval run
34554938749
evaldecision JSON, verbatim:tier1.is_candidatetrue;checked.surface"openxfactory-floor-regeneration";checked.same_repositorytrue;checked.expected_authorfalse;failed_condition"expected_author";reason"author 'brettheap' !=expected 'openxfactory[bot]'"; the plural
failed_conditionskey isABSENT (only emitted for more than one failing condition) → exactly one
condition failed, every gate ahead of it held; no approval submitted.
Sticky comment 5628568909 renders
Candidate class: openxfactory-floor-regeneration— the first live read of #369's fix onthe PARK path (not box 3.1's APPROVE rendering, which renders
unrecorded).Box 3.6 — kill switch NOT THROWN; finding ACCEPTED; successor named
Measured on the same RESULT comment (03:08Z).
design.mdN-4 says thekill switch "takes one edit." Measured in a throwaway clone at
codexFactory
main=0ad92bd5: deleting only the candidate mapping(envelope lines 173–356) turns
tests/merge-masterfrom3993 passedto29 failed / 3964 passedacross 5 files(
test_floor_regeneration_enrolment.py17,test_enrolled_surface_config.py7,test_behaviour_snapshot.py3 — agolden digest,
test_caller_workflows.py1,test_class_floor_differential.py1). That directory is inside theREQUIRED
validatecheck (scripts/validate-docs.sh:217). A one-editthrow is not landable. No bot cycle existed to observe a resume either —
every scheduled floor-regeneration run has reported "nothing owed" hourly
since 2026-09-10T17:22Z.
The switch was not thrown; the candidate entry is intact.
Brett Heap ruled ~03:40Z (multi-choice, recorded on #745 comment
5632569506): "Accept the finding; file a successor." The successor is
claimed on #745 at 09:57Z (comment
#745 (comment)):
amend-kill-switch-to-declared-test-companion— filing is in flight by asibling agent, not this PR.
Note: the RESULT comment's own file-by-file breakdown (17+7+3+1+1 = 29)
sums across 5 files, not 6 — this PR's note uses the verified 5-file
count.
Still open (by their own text) after this PR
3.1, 3.4, 3.6, 4.1, 4.2, 4.4 — confirmed by
grep -n '^- \[ \]'. Thepacket is NOT archived (§4.4 is separately open).
Validation
OPENSPEC_TELEMETRY=0 openspec validate --all --strict: 99 passed, 3failed (102 items) — byte-identical to origin/main's output (same 3
pre-existing failures:
change/disposition-codexfactory-declared-renames,change/disposition-codexfactory-floor-relocation-retitle,spec/repo-boundary-governance).scripts/validate-openspec-cli-pin.py --all --no-cache: 100 passed, 2failed, both ACCEPTED EXCEPTIONS (dispositioned) — 0 undispositioned
failures.
python3 -m pytest -q tests/doc-health -p no:cacheprovider: 1689passed, 7 warnings.
Refs #745
🤖 Generated with Claude Code
Summary by Sourcery
Record the measured negative-control evidence and accepted kill-switch finding in the envelope checklist without changing the associated specifications.
Enhancements: