Repository navigation
Realize mirror-floor-addition-grace: re-pin, mirror, and import the addition grace - #686
Conversation
…dition grace
Lane: openxfactory-2 (openXfactory-2)
Realization Commit A of `mirror-floor-addition-grace` (tasks.md task 1): the
five-site lockstep advance the mirror in Commits B/C depends on, per
requirement 6 ("the mirror is inert until the pin carries the rule, and the
pin moves as one act").
codexFactory `origin/main` re-measured at realization time (task 1.1's own
instruction, not the packet's dispatch-time value): it had moved past
`712fc8ca` (PR #206, merge, realizing the ratified `add-floor-addition-grace`)
to `e57643a7` (PR #208 merge) by way of one intervening PR (#207, a vendored
`uv.lock` only). `git merge-base --is-ancestor 712fc8ca e57643a7` holds, and
the floor document at `e57643a7` is byte-identical to the document at
`712fc8ca` and at `467cec42` (sha256 `0eba8e58…7ba4be`, 15402 bytes) — PR #207
and #208 touch unrelated `exercise-gate-footing` files only, never
`repository_floor_drift.py`, `specs_floor_block.py`, the floor document, or
the vectors fixture.
This is the FIRST advance in this pin's history whose floor grew by ZERO
paths: the generated block is unchanged (`generated_at` stays `3afd8a8c`,
`entry_count` stays 59, floor total stays 67); the object of this advance is
the addition-grace mechanism the core shipped alongside it — one new
hand-authored field, `floor.pending_floor_extension_tolerance: 3`, outside the
generated block — not a spec promotion. `floor_snapshot.sha256` moves
(`c4a386db…` -> `0eba8e58…`) because it hashes the whole document;
`floor_snapshot.entry_count` does not (67 -> 67).
Five sites, one commit: `contracts/review-lane-pin.yaml` `core_commit`;
`.github/workflows/merge-master-approval.yml` `PINNED_CORE_COMMIT` and its
core checkout `ref:`; `.github/workflows/pytest-suite.yml`'s core checkout
`ref:`; and `contracts/review-lane-floor-snapshot.yaml`, re-copied byte for
byte from codexFactory `e57643a7` (not hand-edited) and gated by `cmp` against
a codexFactory clone before this commit. `pytest tests/review_lane_pin` is
green both without the core on disk (55 passed, 1 skipped) and with
`PINNED_CORE_CHECKOUT` pointed at a codexFactory checkout of `e57643a7` (56
passed, freshness verifier runs and passes). The 40-hex guard holds: exactly
one `\b[0-9a-f]{40}\b` token in `contracts/review-lane-pin.yaml`
(`core_commit` itself).
`pinned_members` gains two new entries this advance makes load-bearing:
`scripts/merge_master/specs_floor_block.py` (`paths_added_after_pin` /
`pin_window_for_document`, B1's measurement) and
`tests/merge-master/fixtures/floor-addition-grace/` (the replayable vectors
the required lane's mirror is falsified against, Commit B). Neither is a pin
site; both are read out of the pinned tree and are named here so a future
re-point ceremony knows they are now consumed.
Refs #675
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…e assertion Lane: openxfactory-2 (openXfactory-2) Realization Commit B of `mirror-floor-addition-grace` (tasks.md task 2). The required coverage assertion (LQ-A7, `test_every_tracked_openspec_spec_path_is_on_the_floor`) and its two negative controls now classify an off-floor tracked path exactly as the pinned core's `evaluate_floor_completeness` does: covered-pending when the candidate's own diff creates it, or when it landed on the base branch after the snapshot's declared `generated_at` (B1); uncovered otherwise; no grace when the base or the pin is unmeasurable (fail-safe, the default). Authoring decision A, as ratified: the assertion RE-IMPLEMENTS the rule from git alone (`resolve_base_branch`, `created_since_merge_base`, `pin_window`, `graced_uncovered`) rather than importing the pinned core — the core checkout carries `continue-on-error: true` by design, so an importing required assertion could only skip on an outage (a CSC-F16 silent-false-green) or fail for a cause no candidate can fix. It is FALSIFIED instead, by a new `TheVectorReplay` class that replays the pinned core's own 16 accepted and 5 refused vectors (`tests/merge-master/fixtures/floor-addition-grace/ vectors.json`), read from the checkout, comparing `tracked_under_prefix`, `uncovered` and `pending` — the facts this mirror actually computes; `stage`/ `escalated`/drift are the advisory lane's concern (Commit C), not this one's. `test_the_unmutated_surface_is_a_positive_first` and `test_a_fabricated_off_floor_spec_path_is_refused` move onto the graced expression, keeping their meaning; the fabricated path is created by no diff and lies in no window, so it stays refused — asserted explicitly, so the grace cannot be misread as "additions are free" (decision E). A new `TheGraceItself` class adds the negative controls the grace itself needs: a created path is pending; a modification/copy/rename/removal are not, including real disposable-git-repository tests proving the actual `git diff --diff-filter=A` / `git log --diff-filter=A` invocations exclude each; an unmeasurable base or an unmeasurable/non-ancestor pin grants nothing from that half alone, without disabling the other half's independent grace. The vector replay's skip is watched BY NAME in `pytest-suite.yml` (`VECTOR_REPLAY_CLASSNAME`/`VECTOR_REPLAY_TESTNAME`), same discipline as the freshness verifier's, with `EXPECT_SKIPPED` moving 21 -> 22 and a new `test_the_required_suite_watches_the_vector_replay_by_name` asserting the pair against the live class/method objects. The JUnit-parsing python is factored into one `named_verdict()` helper called for both watched pairs, rather than duplicated. `pytest tests/review_lane_pin` is green both without the pinned core (72 passed, 2 skipped, 22 subtests) and with `PINNED_CORE_CHECKOUT` pointed at a codexFactory checkout of `e57643a7` (74 passed, 43 subtests — the vector replay's 21 subtests plus the negative-control subtests, all exercised rather than skipped). Refs #675 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…step 8
Lane: openxfactory-2 (openXfactory-2)
Realization Commit C of `mirror-floor-addition-grace` (tasks.md task 3).
`.github/workflows/merge-master-approval.yml` step 8 now imports the pinned
core's `evaluate_floor_completeness` and `pin_window_for_document` directly
(authoring decision A: the advisory lane already refuses to run at all when
the pinned core is unreadable, so it has nothing to lose by importing and
everything to lose by keeping a second copy of the classification) and
DELETES both the hand-rolled `sorted(set(tracked) - set(floor.
never_clearable_paths))` completeness set difference and the separate,
conditional `candidate_floor_drift` call: both partitions
(`caused_by_candidate`/`already_unreachable` and `uncovered`/`pending`) now
come from ONE call over the SAME post-merge facts, superseding two callers of
the pinned core's own `_drift_between` with one. `refusals[0].stage` keeps its
documented order (drift, then already-unreachable, then completeness, with
`pending_floor_extension` reported only when nothing refuses) because that
order is the core's own `FloorCompleteness.refusals()`, not re-derived here.
Requirement 5 / decision C: step 3's base checkout ("Checkout base (this
repository)") now carries `fetch-depth: 0` — measured cost 2,025 commits /
29.6 MiB on this branch, 2026-09-05 — because B1's window
(`generated_at..origin/main`) is unmeasurable on the shallow checkout this
step had before, which would fail-safe the pin-relative grace off on every
run of this lane while it worked in the required lane (`pytest-suite`,
already full history). The targeted-fetch alternative is recorded as cheaper
but strictly more fragile (a depth sufficient today silently fails into the
fail-safe as the pin ages).
Task 3.4: the jq report and the rendered advisory-verdict table both gain a
covered-pending count, per-path reasons, the escalation state and whether B1's
pin was measured; every new lookup keeps the `// []` / `// "-"` default
discipline the early refusal stages need. Task 3.5: the anti-vacuity step
gains a POSITIVE assertion that the addition-grace computation produced a
result (`has("pending_floor_extension")` plus its own four-field shape), same
form as the existing three (b′) guards.
Verified against three real, hand-constructed scenarios run through the
extracted step-8 script with the pinned core on disk (not CI — a local
pre-merge check, not the archive-gate evidence tasks 5.2/5.3 require of a real
run): a clean tree (`floor_complete`); a candidate that adds an off-floor spec
path (`pending_floor_extension`, path named, tolerance 3, pin correctly NOT
measured — `3afd8a8c` is not an ancestor of this branch's `origin/main`,
exactly the live-pin defect the packet's own proposal documents); and a
candidate that removes a floored path (`floor_drift_caused_by_candidate`,
unchanged from before this commit).
Updates two pre-existing `test_review_lane_caller.py` assertions that named
the old shape by literal string: `test_the_caller_calls_the_three_amended_core
_functions` now names `evaluate_floor_completeness` in place of
`candidate_floor_drift` (still exercised — the SAME underlying function, one
call rather than two); `test_the_caller_asserts_the_floors_completeness`
(renamed `..._and_grace`) gains assertions for `pin_window_for_document` and
`pending_floor_extension`; a new
`test_the_base_checkout_carries_the_history_the_pin_window_needs` asserts
`fetch-depth: 0` on the named checkout step. `pytest tests/review_lane_pin` is
green both without the pinned core (73 passed, 2 skipped, 22 subtests) and
with `PINNED_CORE_CHECKOUT` pointed at a codexFactory checkout of `e57643a7`
(75 passed, 43 subtests). `tests/doc-health/test_workflow_contract.py` (18
tests) is unaffected.
Refs #675
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Lane: openxfactory-2 (openXfactory-2) Ticks 1.1-1.5 (the pin advance), 2.1-2.8 (the required lane's mirror and vector replay) and 3.1-3.6 (the advisory lane's import and reporting), each with an evidence line naming the commit and the measured test counts; ticks 5.4 (the vector replay green on this head, against the pinned core). Does NOT tick 4.1-4.3 (the first landed floor regeneration is a separate, later codexFactory act), 5.1 (the full `pytest-suite` green is CI's own required check, not yet observed on this head), 5.2-5.3 (the `pending_floor_extension` outcome and a real promoting pull request observed NOT RED are reserved for a real run, which this PR's local verification is not), or 6.1-6.3 (the owner's own acts, per that section's own heading). Refs #675 Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
|
Lane: openxfactory-2 (openXfactory-2) @codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
1 similar comment
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
🟡 Changes recommended
The pytest-suite.yml update bumps EXPECT_SKIPPED even though the newly added vector replay is required to pass on healthy runs (so the normal-run skip pin is likely incorrect and may break the required check).
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR realizes the mirror-floor-addition-grace change by advancing the pinned codexFactory core commit and aligning both openxFactory “floor lanes” (the required pytest-suite assertion and the advisory merge-master-approval workflow) with the core’s new “addition grace” completeness rule.
Changes:
- Re-pin the codexFactory decision core across the five lockstep sites and update the vendored floor snapshot metadata.
- Update the required lane (
tests/review_lane_pin/test_floor_snapshot.py+pytest-suite.yml) to mirror the grace rule locally and falsify it by replaying the pinned core’s exported vector fixture. - Update the advisory lane (
merge-master-approval.ymlstep 8) to import and useevaluate_floor_completeness+pin_window_for_document, and surfacepending_floor_extensionin reporting and anti-vacuity checks.
File summaries
| File | Description |
|---|---|
tests/review_lane_pin/test_review_lane_caller.py |
Updates caller-text assertions to reflect the new single-call completeness+attribution wiring and enforces base checkout history requirements. |
tests/review_lane_pin/test_floor_snapshot.py |
Adds the mirrored grace rule, git-based measurements, negative controls, and vector replay falsifier for the required lane. |
openspec/changes/mirror-floor-addition-grace/tasks.md |
Marks realization tasks complete and records supporting evidence. |
contracts/review-lane-pin.yaml |
Advances the pinned codexFactory commit and updates pin history/prose to document the grace-focused advance. |
contracts/review-lane-floor-snapshot.yaml |
Adds pending_floor_extension_tolerance and explanatory commentary alongside the existing floor declaration. |
.github/workflows/pytest-suite.yml |
Re-pins codexFactory checkout, adds named-verdict enforcement for the new vector replay, and updates skip/verification wiring. |
.github/workflows/merge-master-approval.yml |
Re-pins codexFactory checkout, sets base checkout fetch-depth: 0, and replaces hand-rolled completeness/drift logic with core imports and richer reporting. |
Review details
- Files reviewed: 7/7 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Lane: openxfactory-2 (openXfactory-2) `pytest-suite` reds on PR #686's first push (run 33978773175): "skipped 21, pinned exactly 22", with BOTH named verdicts (freshness verifier, vector replay) reporting `passed`, not skipped. Commit f6185a1 moved `EXPECT_SKIPPED` 21 -> 22 on tasks.md task 2.7's literal instruction, on the assumption that the new vector-replay test always contributes a skip. It does not: on the normal path (pinned core present, the common case in CI) it RUNS and PASSES, exactly like `TheFreshnessVerifier` beside it — the two share the same `locate_pinned_core()` guard and only skip TOGETHER, on a core-checkout failure, which would report 23 (not 22). The happy-path aggregate is therefore unchanged at 21, and pinning it at 22 reds every normal run. Reverts `EXPECT_SKIPPED` to `"21"` with a corrected comment; fixes the two `test_floor_snapshot.py` docstrings that repeated the wrong assumption (`test_the_required_suite_watches_the_vector_replay_by_name` and `TheFreshnessVerifier`'s own class docstring); corrects tasks.md's 2.7 evidence line to record the deviation from that task's own prose, with the CI run that caught it. `pytest tests/review_lane_pin -q`: 73 passed, 2 skipped, 22 subtests (unchanged in shape — the fix is a comment and one string literal, not a test-count change). Refs #675 Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Lane: openxfactory-2 (openXfactory-2)
New CI run in progress on |
There was a problem hiding this comment.
🔵 Needs a closer look
It changes core governance pinning plus both required/advisory CI lane semantics (including required-check enforcement logic), so it warrants final human review despite no specific defects found in the diff.
Review details
- Files reviewed: 7/7 changed files
- Comments generated: 0 new
- Review effort level: Lite
…odule gap Lane: openxfactory-2 (openXfactory-2) `pytest-suite` passed on CI at head `8e3910d9` (run 33979893935, 22m21s): selected=9725 passed=9704 skipped=21 failures=0 errors=0, both named verdicts passed. Ticks task 5.1 with that evidence alongside the already-measured subset results. Also records what the ~95 failures / ~50 errors in the FIRST local full-suite run (noted but not yet explained in the prior commit) turned out to be: this clone never ran `git submodule update --init openXwallet`, and every one of them sat in `tests/trust-anchor/`, `tests/openxwallet_pin/`, `tests/clearing/`, or was the flat-checkout case pytest-suite.yml's own header already documents (`test_find_validator_locates_pinned_checkout`). Initializing the submodule and re-running each affected subtree cleanly (311 passed, 203 passed) confirms this was a local setup gap, not a defect this PR introduces — CI's own "Init the openXwallet gitlink only" step does this already, which is why the CI run above needed no such correction. Refs #675 Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Lane: openxfactory-2 (openXfactory-2) MERGING THE REALIZATION on Brett Heap's word of 2026-09-05 ~16:1xZ, in session, verbatim "merge the realization when green, then do the regeneration", realizing the packet he ratified ("ratify the companion when green, then realize it"). Final head What lands: the five-site pin advance Evidence on Disclosed, not a defect of this PR: Merge = squash with |
|
Lane: openxfactory-2 (openXfactory-2) Squash |
There was a problem hiding this comment.
🔵 Needs a closer look
It changes pinned decision-core wiring and both required/advisory governance gates, so it warrants final human verification of workflow behavior and cross-repo pin assumptions.
Review details
- Files reviewed: 7/7 changed files
- Comments generated: 0 new
- Review effort level: Lite
…nd collision) Main landed again between the first collision merge and the landing wake (#685 archived amend-published-tip-unreadable-scenario and moved its README entry and ledger row; #686 realized mirror-floor-addition-grace), and the README records-block entry collided once more. Same resolution: every entry kept, this change's first. Nothing else conflicted; the ledger and pin suites pass on the merged tree. Lane: openxfactory-3 (openXfactory-3) Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01L8z77hdwYFusQM7rRCP6uj
…ANDED commit (3afd8a8 retired; 67 -> 67) (#689) Lane: openxfactory-2 (openXfactory-2) Refs #675 `mirror-floor-addition-grace` tasks 4.1-4.3: the regeneration the packet's own realization made possible, requested at a LANDED openxFactory commit rather than at any pull request's own unlanded head, per task 4.1's own instruction ("the first repair that does not block the pull request that caused it"). FIVE SITES, advanced e57643a7 -> 67a6ffc9 in this one commit: `contracts/review-lane-pin.yaml` `core_commit`; `.github/workflows/merge-master-approval.yml` `PINNED_CORE_COMMIT` and its core checkout `ref:`; `.github/workflows/pytest-suite.yml`'s core checkout `ref:`; `contracts/review-lane-floor-snapshot.yaml` (re-copied byte for byte, never hand-edited). WITNESS. codexFactory PR #212 (MERGE COMMIT `67a6ffc9`, merged 2026-09-05T18:08:23Z) regenerated `scripts/merge_master/openxfactory-review-authority-floor.yaml` at openxFactory `f6724f04` — the merge commit of PR #686, this repository's own `mirror-floor-addition-grace` realization, and reachable from openxFactory `main` (`git merge-base --is-ancestor f6724f0 origin/main` holds on THIS repository's tree, re-measured before this commit). The resulting document: sha256 `18389a3d…3521a8`, 15402 bytes, blob `fdcd9f7e…5b5a8` — vendored here byte for byte, `cmp`-identical to `git show 67a6ffc9:scripts/merge_master/ openxfactory-review-authority-floor.yaml`. THE FLOOR CHANGED BY TWO HEADER LINES. `git diff e57643a7 67a6ffc9 -- scripts/merge_master/openxfactory-review-authority-floor.yaml` in the pinned core is exactly the generated block's `generated_at` and `--ref` lines (`3afd8a8c` -> `f6724f04`) and nothing else: `entry_count` stays 59, the floor's `never_clearable_paths` total stays 67 — the SECOND advance in this pin's history whose floor grew by zero paths, and this time deliberately: no `openspec/specs` path exists at `f6724f04` that did not already exist at `3afd8a8c`. THIS IS THE ADVANCE THAT RETIRES THE NON-ANCESTOR PIN. `3afd8a8c` was measured 2026-09-05 (this same packet's task 4.3) as NOT an ancestor of openxFactory `main`. `f6724f04` IS an ancestor of it. That is the whole operational content of this advance: `specs_floor_block. pin_window_for_document` fail-safes to `None` ("not measured") whenever the declared `generated_at` will not resolve as an ancestor of the base branch being measured, so the addition grace's B1 pending-extension window could only ever report `pin_measured: false` on this repository's own `main` against the eighth advance's `3afd8a8c`. Against `f6724f04` the window is MEASURABLE for the first time — the addition-grace mechanism the eighth advance (`e57643a7`) made operative finally has a resolvable pin to measure from. NO COLLISION MEASURED. openxFactory PR #687 (`change/repoint-pytest-suite- at-pin`, a separate lane) also edits `.github/workflows/pytest-suite.yml`, still OPEN at this commit (`gh pr view 687 --json state,mergeCommit` -> `OPEN`, no merge commit). Its diff touches only the header comment above the OpenSpec-CLI install step and the `actions/setup-node` block that follows it (originally lines ~190-215 and ~393-420); this commit's only change to that file is the codexFactory core checkout's `ref:` at line 372, a separate step entirely — no line this commit touches is a line #687 touches, measured by reading both diffs rather than assumed from file identity alone. LOCKSTEP RE-MEASURED ON xFactory `main`: unchanged in kind, carried forward undischarged against the same floor size as before (see this commit's own addition to `contracts/review-lane-pin.yaml`'s `lockstep.reason`). VALIDATED. `pytest tests/review_lane_pin -q`: 73 passed / 2 skipped / 22 subtests (no core on disk, matching the prior advance's shape) and 75 passed / 0 skipped / 43 subtests with `PINNED_CORE_CHECKOUT` at a codexFactory checkout of `67a6ffc9`. `OPENSPEC_TELEMETRY=0 openspec validate --all --strict`: 93 passed / 0 failed. `validate-sequenced-after.py .` and `--ledger-diff`: consistent with the corpus (172 rows), no row moves. All four touched YAML files re-parse. `git diff --stat` against origin/main is exactly the five sites plus `tasks.md`. Packet boxes ticked in `openspec/changes/mirror-floor-addition-grace/ tasks.md`: 4.1 (the regeneration, cxF #212 -> 67a6ffc9, landed at f6724f0, the negative control's refusal observed), 4.2 (this advance), 4.3 (the non-ancestor retirement, measured), 6.1 and 6.2 (Brett Heap's ratification, verbatim "ratify the companion when green, then realize it", applied at head ce9a81e, recorded in review/ratification-2026-09-05.md; decisions A-F stand as recommended). 5.2, 5.3 and 6.3 remain open — they are evidence from a REAL advisory/required run and a codexFactory-owned value, not this commit's to claim. Do NOT merge on this commit alone: STEP (2) of the two-repository act, opened for review. Co-authored-by: Claude Fable 5.1 <[email protected]>
…ce sets like the shipped assertion; 5.2/5.3 ticked with the observed outputs Lane: openxfactory-2 (openXfactory-2) This is the live test task 5.2/5.3 exist for. PR #699 (this pull request) is the programme's first real promotion: it creates openspec/specs/review-lane-floor-mirror/spec.md, a new tracked path under the exactly-enumerated floor. On head 1fde704: - merge-master-approval run 33989488802 printed the advisory lane's pending_floor_extension outcome for the first time ever (the parent's own archive record, codexFactory PR #218, could only report the report SHAPE with nothing pending): stage pending_floor_extension, covered-pending 1 (tolerance 3, pin measured), PENDING (created_by_candidate): openspec/specs/review-lane-floor-mirror/spec.md, floor evaluated 0 never-clearable path(s) touched. - pytest-suite run 33989489654 held the required lane's own shipped assertion, TheRealFiles::test_every_tracked_openspec_spec_path_is_on_the_ floor, GREEN with the same path covered-pending — but the SAME run found two negative controls red: NegativeControls::test_the_unmutated_surface_ is_a_positive_first and NegativeControls::test_a_fabricated_off_floor_ spec_path_is_refused (2 failed, 9631 passed, 21 skipped). Cause: both controls called graced_uncovered(self.surface, self.entries, (), ()) with hard-coded EMPTY grace sets, while the shipped assertion beside them measures created/window from resolve_base_branch(), created_since_merge_base() and pin_window(). On a branch that legitimately creates a spec path, the controls saw it as uncovered where the shipped assertion correctly saw it covered-pending. This is a defect in the companion realization (PR #686, authoring decision E: the controls were moved onto the graced expression but not onto the graced measurement), predicted by Copilot review (thread PRRT_kwDOTAvnrs6fmnH4) and caught here by the first real promotion — exactly what this live test was for. Fix, in tests/review_lane_pin/test_floor_snapshot.py only: NegativeControls.setUpClass now derives generated_at/created/window the same way TheRealFiles.setUpClass and the shipped assertion do. test_the_unmutated_surface_is_a_positive_first now asserts missing == () and that every covered-pending path carries a measured reason, instead of asserting ((), ()) against a live surface that legitimately has a pending path. test_a_fabricated_off_floor_spec_path_is_refused now takes a baseline before adding the fabrication and asserts the fabricated path alone is refused while pending is unchanged from that baseline. Re-run after the fix: tests/review_lane_pin -q -> 73 passed / 2 skipped (both controls pass on this branch); with PINNED_CORE_CHECKOUT at codexFactory 67a6ffc9 -> 75 passed / 43 subtests, no skips. tests/sequenced_after -q -> 162 passed. openspec validate --all --strict -> 94 passed / 0 failed. validate-sequenced-after.py . --ledger-diff -> consistent (173 rows, no row moves). tasks.md: ticks 5.2 and 5.3 in the archived 2026-09-05-mirror-floor-addition-grace change with the verbatim run output above. README.md: the mirror-floor-addition-grace archive entry pointed at "tasks.md § Archive" for the observed result, but the evidence lives in tasks.md's own 5.2/5.3 items — corrected the pointer, and added one sentence naming the negative-controls defect this live test found and fixed, so the archive narrative does not read as a clean first pass. Refs #675 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…6724f0), pinned at a landed regeneration (#689) — the first promotion judged under the grace (#699) * Archive mirror-floor-addition-grace: ratified (#676), realized (#686 f6724f0), pinned at a landed regeneration (#689) — the first promotion judged under the grace Brett Heap's word in session on 2026-09-05, verbatim "archive the grace packets" — one word over BOTH halves of a cross-repository pair. This is the SECOND half, and the order is this packet's own declaration rather than a preference: proposal.md carries sequenced_after: [codexFactory:add-floor-addition-grace], so the parent archived first (codexFactory PR #218, merge commit 35c08994, 2026-09-05T19:47:09Z, promoting repository-gate-floor 5 -> 12 requirements and closing codexFactory issue #203). AND THIS ARCHIVE IS THE PACKET'S OWN FALSIFICATION TEST. It CREATES openspec/specs/review-lane-floor-mirror/spec.md, a new tracked path under a floor that is an EXACT ENUMERATION. Under the regime this packet replaced, that path would be reported UNCOVERED in two lanes at once and the REQUIRED pytest-suite would refuse this pull request until a two-repository hand repair had run — the cost measured at five payments in two days. Under the grace now in force in both lanes, THIS pull request's own diff creates the path, so the required lane should stay GREEN with the path covered-pending (created_by_candidate) and the advisory lane should print pending_floor_extension naming it. Tasks 5.2 and 5.3 are observations of THIS pull request's checks and are ticked in a later commit here, with run ids and the verbatim lines, or not at all. EVERY SHA RE-READ FROM THE GITHUB API FOR THIS ACT, not remembered. RATIFIED 2026-09-05 "ratify the companion when green, then realize it", applied at head ce9a81e; record review/ratification-2026-09-05.md, archived with the packet; decisions A-F stand as recommended, none separately ruled. PROPOSED by PR #676 (568fa37). REALIZED by PR #686 (f6724f0, 2026-09-05T17:30:54Z). REGENERATED AT A LANDED COMMIT by codexFactory PR #212 (67a6ffc9, generated_at 3afd8a8 -> f6724f0, 59 entries unchanged) — the first floor repair in this programme that did NOT block the pull request that caused it. RE-PINNED onto it by PR #689 (b680499), five sites in lockstep, which is what makes the live test measurable: f6724f0 IS an ancestor of this repository's main (checked with git merge-base --is-ancestor on this tree), where the retired 3afd8a8 was not, so B1's pin window resolves rather than fail-safing to None. No contract bundle, no digest set, no contract_bundle_version spent, no release tag owed. THE ESCAPE IS DISCLOSED. python3 scripts/proposal-support.py . archive mirror-floor-addition-grace was run FIRST and REFUSED — exit 1, "change has incomplete tasks", working tree untouched; its gate is scripts/proposal-support.py:1079-1081, read off those three lines in this tree and UNCONDITIONAL on WHICH box. OPENSPEC_TELEMETRY=0 openspec archive mirror-floor-addition-grace --yes was used instead: "Task status: 26/29 tasks", "Warning: 3 incomplete task(s) found. Continuing due to --yes flag.", "review-lane-floor-mirror: create", "+ 7 added", "Totals: + 7, ~ 0, - 0, -> 0". Precedents: govern-sibling-added-modified-deltas (#571 3bcde7e), declare-spent-bundle-state (#611 7af2725), add-subject-establishment (#647 e4ff4fb), add-chain-anchoring (#669 66d11a2), amend-chain-anchoring-readiness-and-durability (#670 3d7b8f3), and one hour earlier this packet's own parent (codexFactory #218, 35c08994). THREE BOXES STAY OPEN, none of them undone realization. 5.2 and 5.3 are this pull request's own observations (above). 6.3 says in its own first words that it is NOT OWED HERE: the D-3 escalation-tolerance NUMBER is codexFactory's to set in its own CODEOWNERS-routed document — it stands PROPOSED at 3, offered for veto, no veto exercised, UNRULED — and option (b) of codexFactory issue #203 remains unruled and undesigned. An openxFactory archive cannot close a codexFactory owner's box and none is attempted. BYTE-CHECKED PROMOTION, one way because the capability is NEW: the archived delta's requirement region (16 744 bytes) against the created specification's (16 745), extracted from the first "### Requirement:" line on both sides — diff reports exactly one difference, 182a183, a single appended blank line at end-of-file, the same one-byte archiver signature #669 and #670 each recorded. SEVEN requirements / 28 SCENARIOS on both sides, counted rather than added. git status --porcelain -uall openspec/specs/ names that one file and no other. THE ## Purpose WAS WRITTEN BY THIS ACT and is the one thing in the promoted file the archiver did not author. Leaving the tool's "TBD - created by archiving change ... Update Purpose after archive." would have made this the ONLY promoted specification in the corpus still carrying it — 552a3a7 repaired all 39 others on 2026-09-05 — so it was replaced in the promoted specification directly, which is the only surface where such an edit lands. It carries no SHALL and lies outside the byte-checked region. REPOINTS, listed rather than summarized. README.md: the entry MOVED from "Active changes" to the head of "Archived changes", relinked to the archive path, with the word, the evidence chain, the escape, the open box and the live test stated. tests/review_lane_pin/test_floor_snapshot.py: the packet citation in the mirror's own header comment repointed to the archive directory and the promoted capability named beside it (comment only; no assertion, name or watched string moved). LEFT ALONE ON THE #669/#670 PRECEDENT: contracts/review-lane-pin.yaml's history paragraphs and every archived record that cites the old path — records are frozen, and contracts/ carries provenance rather than navigation. GATES ON THIS HEAD: openspec validate --all --strict 94 passed / 0 failed; proposal-support.py . verify ok; validate-sequenced-after.py . passed. The per-change sweep ledger is STALE by design at this commit (row mirror-floor-addition-grace state active -> archived, plus the three derived totals) and is re-seeded in the NEXT commit with this pull request's real number, never by hand. Lane: openxfactory-2 (openXfactory-2) Refs #675 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Seed the per-change sweep ledger row for this archive: mirror-floor-addition-grace active -> archived, moved by #699 The row is MOVED BY THE TOOL, never by hand, which is the substrate's own rule: python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#699' --moved-on 2026-09-05 — "wrote tests/sequenced_after/corpus-ledger.yaml (173 rows, 1 moved by #699)". Exactly ONE row moved and the diff is one line: mirror-floor-addition-grace: {state: archived, class: sole, declares: [codexFactory:add-floor-addition-grace], depth: 0, prose: false, moved_by: "#699", moved_on: "2026-09-05"} class stays `sole`, the CROSS-REPOSITORY parent declaration is carried unchanged, and `depth: 0` is carried unchanged too — the known oddity this packet's own design.md § 7 recorded when it filed the corpus's first cross-repository `sequenced_after:` (a foreign parent resolves for well-formedness but contributes no hop to a depth this repository can measure). It is NOT hand-corrected here. The pull request number could not be known before the pull request existed, which is why this is a second commit rather than part of the archive: the archive commit deliberately left the ledger STALE and said so. AFTER, on this head: validate-sequenced-after.py . --ledger-diff reports "per-change sweep ledger consistent with the corpus (173 rows)" over 34 active + 139 archived (was 35 + 138); python3 -m pytest tests/sequenced_after -q is 162 passed, where the archive commit alone had the three expected sweep failures (test_the_LIVE_corpus_and_the_LEDGER_agree_row_by_row, test_the_totals_DERIVED_FROM_THE_LEDGER_equal_the_MEASURED_sweep, test_the_live_ledger_reports_the_SAME_totals_the_sweep_MEASURES). Lane: openxfactory-2 (openXfactory-2) Refs #675 Co-Authored-By: Claude Fable 5.1 <[email protected]> * The live test found the controls: negative controls measure their grace sets like the shipped assertion; 5.2/5.3 ticked with the observed outputs Lane: openxfactory-2 (openXfactory-2) This is the live test task 5.2/5.3 exist for. PR #699 (this pull request) is the programme's first real promotion: it creates openspec/specs/review-lane-floor-mirror/spec.md, a new tracked path under the exactly-enumerated floor. On head 1fde704: - merge-master-approval run 33989488802 printed the advisory lane's pending_floor_extension outcome for the first time ever (the parent's own archive record, codexFactory PR #218, could only report the report SHAPE with nothing pending): stage pending_floor_extension, covered-pending 1 (tolerance 3, pin measured), PENDING (created_by_candidate): openspec/specs/review-lane-floor-mirror/spec.md, floor evaluated 0 never-clearable path(s) touched. - pytest-suite run 33989489654 held the required lane's own shipped assertion, TheRealFiles::test_every_tracked_openspec_spec_path_is_on_the_ floor, GREEN with the same path covered-pending — but the SAME run found two negative controls red: NegativeControls::test_the_unmutated_surface_ is_a_positive_first and NegativeControls::test_a_fabricated_off_floor_ spec_path_is_refused (2 failed, 9631 passed, 21 skipped). Cause: both controls called graced_uncovered(self.surface, self.entries, (), ()) with hard-coded EMPTY grace sets, while the shipped assertion beside them measures created/window from resolve_base_branch(), created_since_merge_base() and pin_window(). On a branch that legitimately creates a spec path, the controls saw it as uncovered where the shipped assertion correctly saw it covered-pending. This is a defect in the companion realization (PR #686, authoring decision E: the controls were moved onto the graced expression but not onto the graced measurement), predicted by Copilot review (thread PRRT_kwDOTAvnrs6fmnH4) and caught here by the first real promotion — exactly what this live test was for. Fix, in tests/review_lane_pin/test_floor_snapshot.py only: NegativeControls.setUpClass now derives generated_at/created/window the same way TheRealFiles.setUpClass and the shipped assertion do. test_the_unmutated_surface_is_a_positive_first now asserts missing == () and that every covered-pending path carries a measured reason, instead of asserting ((), ()) against a live surface that legitimately has a pending path. test_a_fabricated_off_floor_spec_path_is_refused now takes a baseline before adding the fabrication and asserts the fabricated path alone is refused while pending is unchanged from that baseline. Re-run after the fix: tests/review_lane_pin -q -> 73 passed / 2 skipped (both controls pass on this branch); with PINNED_CORE_CHECKOUT at codexFactory 67a6ffc9 -> 75 passed / 43 subtests, no skips. tests/sequenced_after -q -> 162 passed. openspec validate --all --strict -> 94 passed / 0 failed. validate-sequenced-after.py . --ledger-diff -> consistent (173 rows, no row moves). tasks.md: ticks 5.2 and 5.3 in the archived 2026-09-05-mirror-floor-addition-grace change with the verbatim run output above. README.md: the mirror-floor-addition-grace archive entry pointed at "tasks.md § Archive" for the observed result, but the evidence lives in tasks.md's own 5.2/5.3 items — corrected the pointer, and added one sentence naming the negative-controls defect this live test found and fixed, so the archive narrative does not read as a clean first pass. Refs #675 Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
Lane: openxfactory-2 (openXfactory-2)
Claim: #675 (comment)
Brett Heap, 2026-09-05 ~08:4xZ, in session, verbatim: "ratify the companion when green, then realize it".
Realizes the RATIFIED packet
openspec/changes/mirror-floor-addition-grace/(ratification recordreview/ratification-2026-09-05.md; PR #676, squash568fa370). Do NOT merge — report only.What lands
Four commits, in the order tasks.md prescribes:
e3ed78b1— the five-site pin advance to codexFactorye57643a7(re-measured at realization time, per task 1.1:origin/mainhad moved past the ratified target712fc8ca, and past467cec42, toe57643a7— verified712fc8caan ancestor). The floor document is byte-identical across all three commits (sha2560eba8e58…7ba4be, 15402 bytes) — the object of this advance is the addition-grace mechanism (evaluate_floor_completeness,paths_added_after_pin), not a spec promotion, so the floor'sentry_countdoes not move: 67 → 67, the first advance in this pin's history whose floor grew by zero paths.f6185a11— the required lane's mirrored completeness rule (tests/review_lane_pin/test_floor_snapshot.py): a path is covered-pending when this candidate's own diff creates it or when it landed on the base branch after the floor snapshot'sgenerated_at, mirrored from git alone (authoring decision A), falsified by a newTheVectorReplayclass replaying all 16 accepted + 5 refused vectors from the pinned core's own fixture.EXPECT_SKIPPED21 → 22 inpytest-suite.yml, watched by name.01e1fd88— the advisory lane (merge-master-approval.ymlstep 8) now importsevaluate_floor_completeness/pin_window_for_documentdirectly, superseding both the hand-rolled completeness set-difference and the separatecandidate_floor_driftcall (one call now supplies both). Base checkout getsfetch-depth: 0(decision C) so B1's pin window is measurable. Report/summary/anti-vacuity all extended.c5b07571— tasks.md ticked for exactly what this PR completes, each box with an evidence line.The five re-pin sites, before → after
contracts/review-lane-pin.yamlcore_commit76fa501cd1c846ca9676d901e41e33ae1e730733e57643a79132d11a1b2e1c807b0da589befb3f31merge-master-approval.ymlPINNED_CORE_COMMIT76fa501c…e57643a7…merge-master-approval.ymlcore checkoutref:76fa501c…e57643a7…pytest-suite.ymlcore checkoutref:76fa501c…e57643a7…contracts/review-lane-floor-snapshot.yamlc4a386db…e78, entry_count 670eba8e58…7ba4be, entry_count 67 (unchanged)Witness:
entry_count67 → 67 is the first advance whose floor grew by zero paths — the prior seven advances each moved it by one (a spec promotion). The 40-hex guard holds: exactly one\b[0-9a-f]{40}\btoken incontracts/review-lane-pin.yaml(core_commititself).LQ-A7 design, as implemented
The required assertion (
test_floor_snapshot.py) mirrors the pinned core'sevaluate_floor_completenesslocally, from git alone — never imports it — because the pinned core checkout inpytest-suite.ymlcarriescontinue-on-error: trueby design: an importing REQUIRED assertion could only skip on an outage (a CSC-F16 silent-false-green) or fail for a cause no candidate can fix.created_since_merge_base()(git diff --name-status --diff-filter=A <merge-base>..HEAD) andpin_window()(git log --diff-filter=A --name-only --pretty=format: <generated_at>..<base>, byte for byte the core's ownpaths_added_after_pininvocation) feedgraced_uncovered(). The mirror is falsified — not merely exercised — byTheVectorReplay, which replays the pinned core's own 16 accepted + 5 refused vectors read from the checkout, comparingtracked_under_prefix/uncovered/pending(the facts this simplified mirror actually computes;stage/escalated/drift are the advisory lane's, not re-asserted here).TheGraceItselfadds 18 more tests, including real disposable-git-repository tests proving the actual invocations exclude modifications/removals/renames and fail-safe on unresolvable/non-ancestor pins.The advisory lane (
merge-master-approval.ymlstep 8) takes the opposite path per decision A: it already refuses outright when the pinned core is unreadable, so it importsevaluate_floor_completenessdirectly and deletes its own hand-rolled classification, including the formerly-separatecandidate_floor_driftcall (both partitions now come from one call over the same post-merge facts).Step 8 changes and the fetch-depth change
evaluate_floor_completeness(merge_master.repository_floor) andpin_window_for_document(merge_master.specs_floor_block); deletes the hand-rolledsorted(set(tracked) - set(floor.never_clearable_paths))and the conditionalcandidate_floor_driftcall.generated_at, window = pin_window_for_document(floor_text, Path("."), base_ref="origin/main", prefix=prefix);completeness = evaluate_floor_completeness(floor, prefix=prefix, base_tree_paths=tree, changed_entries=entries, generated_at=generated_at, added_since_pin=window);verdict.update(completeness.report()).fetch-depth: 0(measured cost: this branch'smainis 2,025 commits / 29.6 MiB packed) — B1's window is otherwise unmeasurable on the shallow default, which would silently fail-safe the grace off on every advisory run.// []/// "-"default discipline.has("pending_floor_extension")assertion plus a four-field shape check.test_review_lane_caller.pyassertions that named the old shape literally (candidate_floor_drift→evaluate_floor_completeness); addedtest_the_base_checkout_carries_the_history_the_pin_window_needs.Verified locally (not CI — a pre-merge check, not the archive-gate evidence tasks 5.2/5.3 reserve for a real run) against four hand-constructed scenarios run through the extracted step-8 script with the pinned core on disk: a clean tree (
floor_complete); an added off-floor spec path (pending_floor_extension, tolerance 3, pin correctly NOT measured — the live pin3afd8a8cis not an ancestor of this branch'sorigin/main, exactly the defect the proposal documents); a removed floored path (floor_drift_caused_by_candidate, unchanged); and both in one candidate (floor_drift_caused_by_candidatestill wins,ok: false, while the graced addition is still reported separately under its own stage — task 3.6).Test counts
tests/review_lane_pin(both files): without pinned core — 73 passed, 2 skipped, 22 subtests; withPINNED_CORE_CHECKOUTat codexFactorye57643a7— 75 passed, 43 subtests.tests/sequenced_after -q: 162 passed.tests/doc-health -k "pin or sentinel or floor": 181 passed.tests/doc-health/test_workflow_contract.py: 18 passed, unaffected.python3 -m pytest tests/ -q -m "not postgres"(~9,600 selected): run locally in the background; will report the final count. It surfaces roughly 50 errors intests/clearing/that reproduce IDENTICALLY on an unmodifiedorigin/maincheckout (verified viagit worktreeatd0a5f396) — a pre-existing local pytest/environment issue unrelated to this packet's files.pytest-suitein CI is the authoritative judge.Validators
OPENSPEC_TELEMETRY=0 openspec validate --all --strict: 92 passed, 0 failed (unchanged from pre-realization).python3 scripts/proposal-support.py . verify: proposal support verification ok.python3 scripts/validate-sequenced-after.py .: sequenced_after validation passed (33 active changes, 2 declaring the field).python3 scripts/validate-sequenced-after.py . --ledger-diff: per-change sweep ledger consistent with the corpus (170 rows) — no row moves.tasks.md
Ticked: 1.1–1.5 (pin advance), 2.1–2.8 (required lane), 3.1–3.6 (advisory lane), 5.4 (vector replay green on this head) — each with an evidence line naming the commit/test. Not ticked, deliberately: 4.1–4.3 (the first LANDED floor regeneration is a separate codexFactory act), 5.1 (the full
pytest-suitegreen is CI's own required check, not yet observed on this head — subset evidence recorded instead), 5.2–5.3 (thepending_floor_extensionoutcome and a real promoting PR observed NOT RED are reserved for a real run, not this PR's local verification), 6.1–6.3 (the owner's own acts — ratification already happened but this heading is explicitly "not an agent's").CI
merge-master-approvalruns underpull_request_targetat the BASE's pin (76fa501c, the OLD core) — it will judge this PR with the old core and cannot exercise this PR's own step-8 changes;pytest-suite(~22 min) is the check that judges the head, including the new mirror and vector replay. Will report both with run ids once green.@codex reviewrequested once; Copilot review requested. Not merging — reporting back for review.Refs #675
Co-Authored-By: Claude Fable 5.1 [email protected]