Skip to content

Activate the OpenSpec floor: the pin advances, the lane refuses what the enumeration names, and the required suite watches the snapshot - #569

Merged
brettheap merged 6 commits into
mainfrom
change/activate-openspec-floor
Sep 2, 2026
Merged

brettheap merged 6 commits into
mainfrom
change/activate-openspec-floor

Conversation

@brettheap

@brettheap brettheap commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

The openxFactory half of the (b′) landing pair — the half that makes the floor
OPERATIVE.
codexFactory PR #162 (merged e37c5ac2) wrote 53 generated entries
into scripts/merge_master/openxfactory-review-authority-floor.yaml and said of
itself, in terms: "Until that one lands, this extension is INERT" — because
openxFactory's lane reads that document from the codexFactory commit its pin
names, not from main. This is that one.

THE PAIR IS THE LANDING. LA-A2 says the enumeration "may land only together
with"
the guard; CPL-C1 says no enumeration may land "until openxFactory
carries"
it. #162 took the reading that the two pull requests are one landing —
entries written into a document nothing consumes, and the pin advance that makes
them consumable arriving with the guards. On that reading the enumeration never
becomes operative without them, and this pull request is where that promise is
kept or broken.
It carries all four guards, each red-proved by its own case.

Authority: hermes/domain/review-councils/records/2026-08-31-gate-rules-openxfactory-bprime.md
(codexFactory main), ruled by Brett Heap, session openxfactory-f5 —
§1 items 7.3/7.9, §6.1 BOTH, LAYERED, §12 ("an openxFactory pull request
advancing contracts/review-lane-pin.yaml core_commit and the workflow's two
pin literals in lockstep"
). Amendment texts are quoted from the vendored ballot
§4/§5 and the five seat returns beside it; where a summary and a return
diverge, THE RETURN GOVERNS.

MERGE IS GATED BY BRETT'S RULING, NOT BY THIS PULL REQUEST'S CI. No review is
requested here and nothing is merged.


What moved, and what moved with it

core_commit → db157dbb (codexFactory origin/main HEAD, 2026-09-01, the
merge of PR #167), from f4702f64 (2026-08-28).

Contains e37c5ac2 verified — git merge-base --is-ancestor e37c5ac2 origin/main
Why the tip and not e37c5ac2 itself git diff e37c5ac2 db157dbb over BOTH pinned_members is EMPTY. The tip acquires the floor extension and the three new core functions without acquiring a different version of anything this lane consumes; PR #167's provenance-axis work lands in modules scope.does_not_evaluate already excludes.
Floor at the new pin 57 entries = 4 hand-reasoned chokepoints + 1 generated block of 53

A pin moves with everything that names it. The pin file's own comment calls
core_commit "an UNCOVERED pin site … a key the sweep vocabulary did not
know"
, so the sweep was run rather than trusted (git grep f4702f64, plus
tests/review_lane_pin/, scripts/doc_health/pin_class.py, and every
verify-*pin* script). Five sites, up from the three the last ceremony moved:

Site What moved
contracts/review-lane-pin.yaml core_commit, declared_at, declared_from; pinned_members gains scripts/merge_master/repository_floor_drift.py (load-bearing at this advance, and re-exported through repository_floor — so the import site does not name it and a re-point ceremony would not know to re-verify it); a new floor_snapshot block
.github/workflows/merge-master-approval.yml both pin literals (PINNED_CORE_COMMIT and the checkout ref:)
.github/workflows/pytest-suite.yml a new, fourth site: the freshness checkout's ref:, tied to the pin by test
tests/review_lane_pin/test_review_lane_caller.py the lockstep assertion and the pinned_members assertion
contracts/review-lane-floor-snapshot.yaml + its sha256 a fifth — the vendored copy is only meaningful at one pin
scripts/doc_health/pin_class.py the snapshot declared as a NON_MEMBERS row, with the measurement — see below

Two stale statements were found by that sweep and are corrected here rather
than left:

  • the caller's header named xFactory's pin as 3c35ca8b (2026-08-21); xFactory
    advanced both surfaces to f4702f64 at eae4dc6 on 2026-08-28 and nobody came
    back to this paragraph;
  • specs/025-openxfactory-review-lane-caller/ task 6.5 and its spec paragraph
    recorded "xFactory … remain pinned at 3c35ca8b" as of 2026-08-28. The
    dated observations are left as written
    — rewriting a dated measurement is how
    a record stops being one — and a dated UPDATE is appended beside them.

AND THE SNAPSHOT'S OWN PIN IS DECLARED A NON-MEMBER, WITH THE MEASUREMENT —
recorded because the instinct runs the other way and the next person will have
it too.
The vendored snapshot carries a generated_at of its own (openxFactory
1a69b7cb, the commit the block was enumerated at). It RESOLVES here, and
pin_class.py's coverage test resolves every 40-hex token in every swept file,
so the class has to say something about it. This repository's doctrine says
declare a MEMBER — "a key the sweep vocabulary did not know is an UNCOVERED pin
site until a member teaches it."
That was tried, and it breaks three
doc-health tests, correctly:

  1. the generator writes generated_at into a YAML COMMENT, not a data field.
    The sweep's commit-shaped pass reads every line and finds it; the non-commit
    pass skips comment lines by design and does not. One declaration therefore
    classifies the file twice — a resolved pin site and an absent_key —
    and test_the_pin_counts_did_not_move_and_no_site_is_classified_twice fails;
  2. PIN_KEY_VOCABULARY is the UNION of declared field keys, so the declaration
    widens the sweep repo-wide. Measured: 21 files inside the scan roots carry a
    data-field generated_at, and every one holds an ISO TIMESTAMP, not a
    commit
    ;
  3. adopting it would move the sentinel-vocabulary accounting (67 → 68 sites,
    3 → 4 recognized absences) across files this act has nothing to do with.

And the file may not be edited to suit either pass: it is a witness, and an
edited witness proves nothing.
So the exclusion is DECLARED, in NON_MEMBERS,
with the measurement written into the row — "an exclusion nobody can read is
indistinguishable from a coverage gap"
— and asserted by
test_the_snapshot_is_a_declared_non_member_of_the_pin_class, which also refuses
a future member declaration. The claim this file makes is codexFactory's, not
this repository's about itself, which is the line every NON_MEMBERS row
draws.
The seam in (1) is real and pre-existing; it is not this act's
object. The provenance is bound by the sha256 and the byte-for-byte freshness
comparison instead — a stronger guarantee than a reachability verdict, since a
drifted generated_at could only arrive inside bytes that failed both.

lockstep.status is diverged again, and saying so is the point. Measured
on xFactory main, 2026-09-01: merge-master-approval.yml:146 and
council-convening-lane.yml:302 both name f4702f64. At that commit the floor
is four entries and post_merge_tree_paths, candidate_floor_drift and
parse_repository_floor_reporting do not exist — so the converged commit cannot
evaluate the object this advance exists to make operative. Forced by the
feature for the second time; convergence held four days.
The obligation to
re-converge stands and now names all five sites.


Per-amendment discharge

Discharged in this pull request

Id Class Where Evidence
LA-A2 BLOCKING merge-master-approval.yml steps 7–8 Step 7 proves a string status on every changed-file entry and emits changed_entries.json; step 8 parses the floor against post_merge_tree_paths(base tree, this candidate's changed files). RED-PROVED: a PR deleting openspec/specs/doc-health/spec.md → floor_drift_caused_by_candidate, the path named in caused_by_candidate; a PR renaming it away → the same, via previous_filename. AND THE INNOCENT CASE: a path already dead on the base branch lands in already_unreachable, never in caused_by_candidate.
CPL-C1 BLOCKING same CPL-C1's first sufficient branch verbatim — "the base tree adjusted by the candidate's own changed paths" — and its second: the deletion turns that pull request's own check red. The check is openxFactory's, which is why this half could only ever land here.
LS-A1 BLOCKING merge-master-approval.yml step 8 + tests/review_lane_pin/ parse_repository_floor_reporting supplies the floor_partially_unreachable stage; the step names the unreachable entries, attributes them, and prints matched_paths over the reachable subset before exit 1. RED-PROVED with the crux case: a floor entry dead on base + a candidate touching contracts/openxwallet-pin.yaml → refused, and matched_paths: ['contracts/openxwallet-pin.yaml'] still reported. Fail-closed preserved in full — every refusal path still ends in exit 1.
LQ-A7 BLOCKING merge-master-approval.yml step 8 The completeness set difference, in LQ's designated home, over tree_paths.txt the lane already had on hand. LQ's own falsification, executed: seed one uncovered spec path → the lane goes red, naming it (floor_incomplete).
CSC-C6 BLOCKING pytest-suite.yml + tests/review_lane_pin/test_floor_snapshot.py The required-check half of §6.1's BOTH-LAYERED ruling. pytest-suite is REQUIRED by org ruleset 21538893; the assertion runs there offline over a vendored byte copy, so the advisory lane is not alone — CSC-C6's own words. RED-PROVED: a fabricated openspec/specs/<new>/spec.md added to a tmp copy of the real tree fails test_every_tracked_openspec_spec_path_is_on_the_floor.
LS-C1 (b) BLOCKING this PR body Limb (b), "the openxFactory commit advancing core_commit" — a fresh run at this branch tip, pasted below. "Not discharged by citing this return's run."
CSC-C7 BLOCKING (re-run half) this PR body Both CSC-C4 limbs re-run against the tree this pin actually names, with the entries checked per entry, not one aggregate. The block itself was regenerated in codexFactory, never copied — and it needed no regeneration for this landing (measured below).
CSC-C8 BLOCKING this PR body load_governance_paths over the whole governance directory in the production no-tree mode, pasted below, plus the duplicate refusal proven in that same mode.
LA-C1 BLOCKING (ordering) — "merge-master-approval must not become a required check on openxFactory until LA-A2's drift check has landed." The drift check lands here. This pull request creates no ruleset and requests none, so the ordering is satisfied and nothing is claimed by it.
LA-C3 SHOULD-FIX step 8 "The commit that breaks an enumerated floor does not edit that file — it deletes a spec." That commit class is exactly what candidate_floor_drift catches, and it now catches it in the caller, which is where the deleting pull request runs.

Explicitly NOT discharged here


D-2, re-run at THIS landing pin (LS-C1 · CSC-C7 · CSC-C8)

# openxFactory landing pin (this branch tip): 493fdac18e7a06906809ff2363827f8906b4a4d2
# codexFactory core_commit declared by the pin: db157dbbcf19a69c1b189ed433b5062807d61043
# openxFactory tracked paths at that tip: 4567

parse_repository_floor(4 + generated block, tree_paths=openxFactory@493fdac1)
  -> ACCEPTED, 57 entries
matching_paths asserted PER ENTRY over the generated block, 53 assertions, not one aggregate
  -> 53 matched exactly, 0 failed
  the four hand-reasoned chokepoints, asserted the same way -> 4/4 matched
every generated entry matches a real path at this tip: True

BOTH CSC-C4 LIMBS AT THIS TIP:
  forward  (entries -> tree): 57/57 reachable
  converse (tree  -> entries): 53 tracked under openspec/specs, 0 UNCOVERED 

NEGATIVE CONTROLS, at this same tip:
  a fabricated 58th entry  REFUSED   floor.never_clearable_paths name path(s) not present in opensoft/openxFactory: ['openspec/specs/...
  a wildcard entry         REFUSED   repository floor path 'openspec/specs/**' must be exact; wildcards are not allowed...
  a duplicate entry        REFUSED   floor.never_clearable_paths must not contain duplicates...
  a BARE DIRECTORY floor   matches () — exact set membership, so a directory name protects nothing

PIN SENSITIVITY (LS-C1): the SAME document against an OLDER openxFactory tree
  openxFactory@493fdac1 -> REFUSED  floor.never_clearable_paths name path(s) not present in opensoft/openxFactory: ['openspec/specs/signed-execution-chain/spec.md']. A floor that matches...

CSC-C8 limb (i): load_governance_paths over the whole governance directory,
the production NO-TREE mode:
  rule documents: ['codexfactory-routine-code-clearance.yaml', 'nightly-sweep-council-clearance.yaml']
  floor opensoft/openxFactory: id=openxfactory-review-authority-register, 57 entries, ACCEPTED

REGENERATION WAS MEASURED AND IS NOT NEEDED. The generated block declares
generated_at: 1a69b7cb. Between that commit and this branch tip the
openspec/specs path set is IDENTICAL — 53 at both, and
git diff --name-status 1a69b7cb HEAD -- openspec/specs/ reports two M
entries and nothing else
: no A, no D, no R. So the block reproduces at
this landing and a codexFactory-side regeneration would be a no-op. Had the set
moved, this pull request would have stopped: regenerating is a codexFactory act.


What this makes OPERATIVE — and what it still does not

BEFORE this pull request, on main today: the lane reads a four-entry
floor, refuses only a floor already unreachable on the base branch, and has no
completeness check at all. #162's 53 entries are consumed by nothing.

AFTER it, three things become true, and they are not equally strong. Stated
separately so neither is read as the other:

  1. The advisory lane refuses what the enumeration names — and still blocks
    nobody.
    merge-master-approval is required by no ruleset (measured
    2026-09-01: openxFactory's three required contexts are pytest-suite,
    wallet-validation and signed-execution-chain-gate). Every refusal it
    renders is a report. LA-C1 keeps it that way for now.
  2. A REQUIRED check now blocks a real class of pull request. pytest-suite
    carries the completeness assertion, so a pull request adding a path under
    openspec/specs cannot merge until the two-repository repair lands.
    This is
    new enforcement and it is the point of CSC-C6 — "running on a check somebody
    is required to look at"
    . The tax is real and it is stated in the commit that
    creates it: the assertion does not create it — the exact enumeration does;
    the assertion only stops it being paid silently.
  3. The clearance semantics still enforce nothing. Never-clearable means no
    council verdict may autonomously clear the path — and no candidate class is
    enrolled for this repository, tier1.is_candidate is False for every
    openxFactory pull request, and add-substantive-review-lane task 3.2 stays
    OPEN. This pull request discharges nothing: not task 3.2, not FR-008, not
    a class, not a step toward one.

THE MEASURED REACH, PRINTED TWICE AND UNMERGED (record §4.3). The two seats
counted the same history by different methods and the record forbids merging
them:

  • LA (lead-architect): "107 of the 109 landings touching the surface are
    already refused by the landed four or the canonical GATE_INTEGRITY_FLOOR,
    leaving 2 of 1218 as an upper bound"
    , and "even those are unreachable
    today because tier1.is_candidate is False for every openxFactory pull
    request — a property the landed four share, which is why I do not refuse on
    it."
  • CPL (company-policy-lead): "under a lawful enrolled envelope the refusal is
    real but would have bound on 2 of 1219 first-parent landings, all
    history
    "
    ; 1 since 2026-07-01.

And CPL-F6's finding is the one this pull request actually answers: "the
inertness is absence of a consumer, not redundancy."
The consumer is
here.
LA's qualification rides with it and is not withdrawn: the object is READ
on every pull request and its clearance effect enforces nothing while
tier1.is_candidate is False. "The only option here enforceable today" is not
repeated unqualified.


What remains after this, owned by nobody unless named

  • B1″ is EXPRESSLY UNROUTED (record §6.2). Its merits were put to nobody;
    nothing is inferred from this act's silence, and this pull request does not
    adopt, reject or weaken it. Its surface is specs/** (278 tracked); this act's
    is openspec/specs/** (53). Different objects.

  • Q-b3 has no receiving body. "A disjunction whose remaining branch does not
    exist is not a route."
    Naming that body is not an act this pull request takes.

  • THE FLOOR'S CURRENCY OWNER IS BRETT HEAP, in the responsible_operator
    role
    (record §6.4) — "the role's holder assigns it to himself, on the
    record, which is the one act that cannot be discharged by nobody."
    He may
    delegate later by a recorded act; until such an act exists the owner is the
    one named there. The four seats' trigger forms attach to that ownership, and
    each is quoted rather than summarized:

    Seat item The obligation, in the seat's own terms
    LS-A2 (BLOCKING) the DE-FLOOR-BEFORE-REMOVE ordering, written into the object itself: (1) codexFactory PR removing the entry, (2) openxFactory PR advancing core_commit, (3) the removal — "The reverse order — the natural order, and the order the 2026-08-28 capability exit actually used — produces a red-and-blind window"
    CSC-C10 (SHOULD-FIX) the two-repository repair path written down before it is needed, owned by a named party — "because the party that deletes a spec (openxFactory) is not the party that owns the document (codexFactory) and will not see the trigger"
    LQ-C6 (condition; LQ's D-3 refuses the form without it) a written deletion-repair runbook, cited in the change: what a contributor sees when floor_unreachable fires, who edits the codexFactory floor, who advances the pin, and the expected time to green — "measured against the observed reality that the pin has been advanced 3 times ever"
    LA-C3 (SHOULD-FIX) "The commit that breaks an enumerated floor does not edit that file — it deletes a spec." Extend the trigger to "any commit removing or renaming a tracked path that a floor entry names", offered "as a strengthening of CSC's own condition, in support of it"

    LS-A2's ordering is now quoted back to the author who trips it, inside the
    refusal message the core builds, and the runbook is named in both of this
    lane's refusals. The obligation is not thereby discharged — it is an
    ordering a human must follow, and machinery can only tell them what it is.

  • The three-surface lockstep convergence (D2) — an act in opensoft/xFactory,
    outside this pull request.

  • Task 5.1's ruleset half — still owed, behind S3 and S5 of
    add-wallet-carried-review-authority.


Gates

Gate Result
pytest tests/review_lane_pin -q with a pinned core on disk 55 passed, 0 skipped
…without one 54 passed, 1 skipped — the skip that moves the exact pin
pytest tests/ -q -m "not postgres" (full suite) 3 failed, 8595 passed, 21 skipped vs the untouched origin/main baseline's 2 failed, 8576 passed, 20 skipped in a second clone. Zero NEW failures and zero NEW skips — both deltas proven not mine, below.
pytest tests/doc-health -q covered by the full run above; the two pin modules that the NON_MEMBERS row moves (test_pin_reachability.py, test_sentinel_vocabulary.py) run green as a pair: 101 passed
python3 scripts/validate-manifest-digests.py OK contracts/manifest.yaml: 163 per-file digest(s) verify
python3 scripts/verify-openxwallet-pin.py OK openxwallet-pin verified: openXwallet@6b248d40… 8 digest(s) recomputed
OPENSPEC_TELEMETRY=0 openspec validate --all --strict 83 passed, 0 failed
actionlint on both edited workflows clean (rc 0); origin/main's copies are clean too, so the comparison is real
Same-clock doc-health, --single-repo, both trees named openxFactory zero NEW findings — and stronger: the two reports are byte-identical (diff is empty, 51 847 bytes each), both written with the same --as-of 2026-09-01
Step 8's python heredoc, extracted VERBATIM and executed every shape listed below
pytest tests/ --collect-only 8619 collected vs the baseline's 8598 — exactly +21, the new module, and no collection error
CI on the first head (ec88f35b) wallet-validation ✅ signed-execution-chain-gate ✅ merge-master-approval ✅ · pytest-suite ❌ on ONE test — this pull request's own negative control, fixed by the fourth commit 493fdac1 (the non_fast_forward rule forbids rewriting a pushed branch, so the repair is a commit rather than an amend — the better record anyway). The cross-repository checkout SUCCEEDED and the freshness verifier RAN: 21 skipped, exactly the pin.
CI on this head (493fdac1) ALL FOUR GREEN — pytest-suite ✅ wallet-validation ✅ signed-execution-chain-gate ✅ merge-master-approval ✅. The required suite's own pinned triple, from the run: selected=8666 passed=8645 skipped=21 failures=0 errors=0, floors: selected>=7090 (margin 1576) passed>=7070 (margin 1575) skipped==21.

THE LANE'S SHELL IS NOT TAKEN ON TRUST. Step 8's python was pulled out of the
shipped file byte for byte and run against the real tree and the real pinned
core, so what was exercised is what CI runs:

innocent PR (README.md)              -> ok, floor_reachable, 57 entries, 53 tracked, 0 uncovered
deletes openspec/specs/doc-health/spec.md
                                     -> REFUSED floor_drift_caused_by_candidate; names it
renames that path away               -> REFUSED, BOTH limbs (drift + floor_incomplete)
adds a spec off the floor            -> REFUSED floor_incomplete; names it
entry already dead on base, innocent -> REFUSED floor_partially_unreachable,
                                        caused_by_candidate EMPTY
   …and touching a reachable entry   -> REFUSED, matched_paths STILL reported (LS-A1)
unrecognized `status`                -> REFUSED changed_entries_unusable
rename with no previous_filename     -> REFUSED changed_entries_unusable
the SAME tree at the OLD pin f4702f64 -> REFUSED floor_incomplete, 53 uncovered

That last line is the pair, proven. At the pin main carries today this
lane cannot pass; at the pin this branch proposes it passes with nothing
uncovered. The enumeration and the guards arrive together or not at all.

THE TWO DELTAS AGAINST THE BASELINE, RUN DOWN RATHER THAN WAVED AT. A count
that differs is not evidence until you know why.

  • The third failure — tests/doc-health/test_modified_block_currency_self_gate.py::test_the_report_moves_only_in_this_family_s_lines, "the report moved
    OUTSIDE this family's lines, in ['### release-tag-publication']"
    — REPRODUCES
    ON THE UNTOUCHED BASELINE CLONE, re-run at the same moment, with the identical
    message.
    It is clock-sensitive (a release-tag-publication window moved
    between the baseline suite run and now), pre-existing on origin/main, and not
    this branch's. The other two failures are in both columns:
    test_release_mode_field_is_preserved_on_the_real_repository (a 30-second
    subprocess timeout, the known WSL2 environment artifact) and
    test_the_live_sweep_reproduces_the_AUTHORING_measurement (a corpus-count
    assertion that has drifted on main).
  • The twenty-first skip is NOT the new module. It is
    tests/ideation-dashboard/test_wheel_model.py::test_landed_parses_a_real_archived_change_delta,
    which resolves REPO_ROOT.parent.parent / "openxFactory" and skips when nothing
    is there. The baseline clone happens to sit one directory deeper, so that path
    resolves for it and not for the branch clone — a fact about where I put two
    checkouts, not about either tree.
    Proven by construction: place a sibling and
    the same test on the same branch tree runs and passes (1 passed). CI's own
    layout makes it skip, which is why EXPECT_SKIPPED: 21 already counts it.
  • AND THE FRESHNESS VERIFIER DID NOT SKIP — it is absent from the branch run's
    skip list entirely, which is the property the whole hybrid rests on.

THE HYBRID IS PROVEN ON CI, NOT ARGUED. The green run's own log carries the
line the design turns on:

pinned decision core on disk: the snapshot freshness verifier will RUN.
...
selected=8666 passed=8645 skipped=21 failures=0 errors=0
floors: selected>=7090 (margin 1576) passed>=7070 (margin 1575) skipped==21

The cross-repository checkout worked on the first attempt with the credential
pytest-suite already mints, the verifier RAN rather than skipped, and
EXPECT_SKIPPED did not move.
That is the whole claim of the feasibility
report, executed on a REQUIRED check rather than reasoned about.

AND CI FOUND A DEFECT IN THIS PULL REQUEST'S OWN NEGATIVE CONTROL, WHICH IS
WHAT IT IS FOR.
The first runner execution of the new module failed
test_the_core_locator_refuses_a_directory_without_the_floor:
PosixPath('.../openxFactory/.merge-master-core') is not None. The locator tried
the declared path and then two fallbacks, and on a runner
REPO_ROOT.parent/.merge-master-core IS a real codexFactory checkout —
GITHUB_WORKSPACE is the parent of the repository checkout, which is exactly
where the new step puts the core. Locally the fallbacks are empty and the defect
was invisible. What it would have cost is worse than a red control: a run
whose NAMED core was missing would have verified the snapshot against whatever
tree was lying beside the repository and reported a pass — the silent-degradation
shape this whole design exists to prevent. PINNED_CORE_CHECKOUT is now
AUTHORITATIVE when set: a named core that is absent yields None, therefore a
skip, therefore a moved skip count. The fallbacks survive only for the unnamed
developer case, and both branches now carry a control. Verified in all four
shapes, including a local reproduction of the runner's exact layout.

AND CODEX FOUND THAT THE FAILURE SIGNAL WAS AN AGGREGATE — FIXED IN a1280f26, THE FIFTH COMMIT. The design above is stated correctly and its
conclusion was still too weak. Codex (P2, .github/workflows/pytest-suite.yml)
read "the checkout fails → the verifier skips → 22 ≠ 21 → red" and observed
that EXPECT_SKIPPED is a SUM, and a sum cannot tell "the core checkout
failed" (+1 skip) from "the core checkout failed and some other conditional
skip started running" (+1 −1 = 0). On that second run — any pull request that
fixes or deletes one of the 21 — the count reads 21 again, the REQUIRED check is
GREEN, and the byte-for-byte comparison the vendored snapshot's fidelity
rests on has silently disappeared. The floors cannot cover for it: the green run
above printed margin 1576 / margin 1575, and a one-test change is not
visible from there.

That is CSC-F16's silent false green, found inside the guard built against
CSC-F16
— which is the reason it is fixed rather than argued with.

SO THE ONE TEST THAT DEPENDS ON A CROSS-REPOSITORY CHECKOUT IS NOW WATCHED AS
ITSELF.
The same pin step, the same stdlib xml.etree, one more printed
field: it looks the verifier's own <testcase> up in pytest-report.xml by
classname and name (FRESHNESS_CLASSNAME / FRESHNESS_TESTNAME) and requires
the verdict passed. Absent, skipped, failed and errored each fail the job
with ::error::snapshot freshness verifier did not run — pinned core checkout unavailable or test removed, and nothing happening elsewhere in the suite can
cancel it
. EXPECT_SKIPPED is UNCHANGED at 21 and keeps the job it was always
for — the general skip discipline, "a directory that silently turned into
skips"
, which the named verdict says nothing about. Two signals, split, both
kept: the name is the signal, the count is the backstop.

THE NODE ID IS ASSERTED AGAINST THE LIVE OBJECTS, because a watcher pointed
at a name that no longer exists is the same defect one level up. A rename that
forgets the workflow makes the verdict absent, which reds — fail-safe — but it
would red as a mystery, so TheRealFiles::test_the_required_suite_watches_the_verifier_by_name
compares the two strings to the class and method objects and fails on the
developer's machine first, naming what to move. (pytest's JUnit classname is
the rootdir-relative node id folded to dots, not __module__ — tests/
carries no __init__.py — so the test rebuilds it the way the report does.) The
skip reason now also opens with the greppable marker
FRESHNESS-VERIFIER-DID-NOT-RUN:, so the log names the cause without the XML.

RED-PROVED AGAINST THE SHIPPED BYTES, NOT A REIMPLEMENTATION. The step's
run: and env: were extracted from pytest-suite.yml with PyYAML and executed
under bash against JUnit fixtures shaped like a CI report — testsuite tests="7100" skipped="21" failures="0" errors="0" — so every aggregate
assertion passes in every row
and only the named one can speak. The right-hand
column is the same extraction from 493fdac1:

fixture aggregate assertions this commit 493fdac1
freshness <testcase> skipped — the Codex scenario: the core checkout failed while another conditional skip started passing, sum still 21 all green exit 1, named message exit 0 — GREEN
freshness <testcase> absent — renamed or deleted all green exit 1, named message exit 0 — GREEN
freshness <testcase> <failure> all green exit 1, named message exit 0 — GREEN
freshness <testcase> <error> all green exit 1, named message exit 0 — GREEN
freshness <testcase> passed — the normal path all green exit 0 exit 0

Four rows where the shipped gate was green and the finding said it would be.
Two REAL pytest-emitted reports confirm the shape the fixtures imitate: with a
core on disk the verdict reads passed (exit 0); without one it reads skipped
and reds with the named message.

Gate, this commit Result
actionlint .github/workflows/pytest-suite.yml clean (rc 0)
pytest tests/review_lane_pin -q 55 passed, 1 skipped, 18 subtests (was 54 + 1 — the one added guard, no new skip, so EXPECT_SKIPPED does not move and the floors only widen)
pytest tests/doc-health tests/conformance-gate tests/trust-anchor tests/openxwallet_pin -q green — unchanged by this commit

The workflow change itself is exercised by CI, which is the only place the real
report exists; the full suite runs there.

ON EXPECT_SKIPPED, STATED PRECISELY RATHER THAN CONVENIENTLY. 21 is CI's
number and this clone is not CI — the self-skip guards resolve differently in a
worktree, which is why that pin is documented as the runner's. What was verified
here is the PROPERTY the pin protects: the new module adds no skip when the
pinned core is present
(tests/review_lane_pin 55 passed / 0 skipped) and
exactly one when it is absent
(54 / 1), and the whole-suite run contributed no skip of its own (see the two deltas run down above). So the count CI reads does not move on the normal path and moves
by exactly one when the fetch fails, which is what makes the failure loud.

MIN_SELECTED / MIN_PASSED need no edit — they are floors that only rise, and
the new module widens their margin.


No README or contracts/manifest.yaml row: following
contracts/openxwallet-pin.yaml and this pin's own landing (f012eb10), a pin
is not a contract this repository publishes to consumers. Commits are structured
to stand alone. Its CI is green, and that is not the authority to merge — the merge is Brett Heap's, on his ruling. Note also that — pull_request_target
evaluates the BASE branch, so the advisory lane on this pull request runs the OLD
pin and the OLD lane; the first real report is the next pull request opened after
this one lands.

🤖 Generated with Claude Code

https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2

brettheap and others added 3 commits September 1, 2026 19:51
…ove everything that names it

The openxFactory half of the (b′) landing pair, first commit: WHICH codexFactory
decision core judges this repository. codexFactory PR #162 (merge `e37c5ac2`)
rewrote `openxfactory-review-authority-floor.yaml` from 4 entries to 57 — the
four hand-reasoned chokepoints plus one machine-generated block carrying every
tracked path under `openspec/specs` at openxFactory `1a69b7cb`. That document is
INERT until this line moves: the lane reads the floor from the commit the pin
names, never from codexFactory `main`. Authority: the (b′) record §12, ruled by
Brett Heap, session `openxfactory-f5`.

`core_commit` -> `db157dbb` (codexFactory `origin/main` HEAD, 2026-09-01, the
merge of PR #167), which CONTAINS `e37c5ac2`. Pinning the tip rather than
`e37c5ac2` itself is safe and measured: `git diff` over both `pinned_members`
between the two commits is EMPTY, so the tip acquires the floor extension and
the three new core functions without acquiring a different version of anything
this lane consumes.

A PIN MOVES WITH EVERYTHING THAT NAMES IT, which here is more than the three
sites the last ceremony moved:

* `contracts/review-lane-pin.yaml` — `core_commit`, `declared_at`,
  `declared_from`, and `pinned_members` gains
  `scripts/merge_master/repository_floor_drift.py`. That module became
  load-bearing at this advance and is re-exported through `repository_floor`, so
  the import site does not name it and a re-point ceremony would not know to
  re-verify it.
* `.github/workflows/merge-master-approval.yml` — both pin literals
  (`PINNED_CORE_COMMIT` and the checkout `ref:`), plus the divergence note in
  the header, which named `3c35ca8b` and had been stale since 2026-08-28.
* `tests/review_lane_pin/test_review_lane_caller.py` — the lockstep assertion,
  and the `pinned_members` assertion.
* `specs/025-openxfactory-review-lane-caller/` — task 6.5's standing D2
  obligation and the spec paragraph that priced it.

LOCKSTEP IS `diverged` AGAIN, AND SAYING SO IS THE POINT. Measured on xFactory
`main`, 2026-09-01: both judging surfaces name `f4702f64`, where the 2026-08-28
ceremony (xFactory `eae4dc6`) left all three. At that commit the floor is four
entries and `post_merge_tree_paths`, `candidate_floor_drift` and
`parse_repository_floor_reporting` do not exist, so the converged commit cannot
evaluate the object this advance exists to make operative. Forced by the feature
for the second time; the obligation to re-converge stands and is restated with
the five sites a future ceremony must move together.

VENDORED BESIDE THE PIN: `contracts/review-lane-floor-snapshot.yaml`, a byte
copy of the floor document at `core_commit` (sha256 declared in the pin,
`entry_count: 57`), routed to a code owner. It is the offline witness CSC-C6's
required-check home reads; the check that reads it lands two commits later.

ITS `generated_at` IS DECLARED AS A NON-MEMBER, NOT AS A MEMBER, and the pin
file records why at length because the instinct runs the other way. The value is
a real openxFactory commit inside the derivation-pin sweep roots and it RESOLVES,
so the class must say something about it — `pin_class.py`'s coverage test
resolves every 40-hex token in every swept file. The MEMBER route was tried and
is wrong twice, measured:

* the generator writes the value into a YAML COMMENT. The sweep's commit-shaped
  pass reads every line and FINDS it; the non-commit pass skips comment lines by
  design and does NOT. One member therefore classifies the file TWICE — a
  resolved pin site AND an `absent_key` — and the "no site is classified twice"
  pin fails, correctly;
* `PIN_KEY_VOCABULARY` is the UNION of declared field keys, so the declaration
  widens the sweep repo-wide over 21 files inside the scan roots whose
  `generated_at` is an ISO TIMESTAMP, moving the sentinel accounting 67 -> 68
  sites and 3 -> 4 recognized absences.

And the file may not be edited to suit either pass: it is a WITNESS, and an
edited witness proves nothing. So the exclusion is DECLARED with its
measurement, exactly as the `NON_MEMBERS` examples row is — "an exclusion nobody
can read is indistinguishable from a coverage gap". The claim this file makes is
codexFactory's, not this repository's about itself, which is the line every row
there draws. The provenance is bound by the `sha256` and the byte-for-byte
freshness comparison instead, which is the stronger guarantee.

Discharges nothing on its own. `tests/review_lane_pin`: 33 passed, 0 skipped.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2
…e report precedes the refusal, and the enumeration must be complete

The second commit of the openxFactory half. The pin now names a core that
carries `post_merge_tree_paths`, `candidate_floor_drift` and
`parse_repository_floor_reporting` — three mechanisms codexFactory PR #162
landed with their red cases executed, and which are INERT until a caller invokes
them. This is the caller.

LA-A2 and CPL-C1 (both BLOCKING) — THE DELETION DIRECTION. Step 7's gather now
proves a string `status` on every changed-file entry and emits
`changed_entries.json`; step 8 parses the floor against
`post_merge_tree_paths(base tree, this candidate's changed files)` instead of
against the base tree alone. That is CPL-C1's first sufficient discharge in its
own words — "the base tree adjusted by the candidate's own changed paths" — and
it inverts the failure LA-A2 filed: the pull request that deletes a floored path
was green and the NEXT, innocent one was red. `candidate_floor_drift` then keeps
"this candidate did it" apart from "already dead on the base branch", because
failing an innocent author for someone else's deletion is the shape LS-A1 calls
fail-dark. A missing or unrecognized `status` PARKS rather than guessing, in the
same class as a listing that arrives short: the core refuses to reconstruct a
tree "from incomplete facts without risking either a silent deletion or a false
accusation."

LS-A1 (BLOCKING) — REPORT BEFORE YOU REFUSE. On an unreachable floor step 8 no
longer prints one string and stops. It names the unreachable entries, attributes
them, and prints `matched_paths` over the REACHABLE subset — the four
constitutional chokepoints survive every scenario the seat probed — at an
explicit `floor_partially_unreachable` stage, and only then exits non-zero.
FAIL-CLOSED IS PRESERVED IN FULL: every refusal path still ends in `exit 1`, and
the report block runs on the clean path too, so a reviewer of a red run learns
what the candidate touched and not only what died.

LQ-A7 (BLOCKING) — THE COMPLETENESS DIRECTION, the opposite defect. A set
difference over data the lane already had on hand: every tracked path under
`openspec/specs` the floor does not name, computed over the post-merge tree so
the pull request that ADDS the uncovered spec is the one that sees it. The
prefix is a CODE CONSTANT (`FLOORED_PREFIX`) and deliberately not read from the
floor: the generated block declares its prefix in a COMMENT, and a prefix read
out of prose narrows silently when the prose changes. Ruled BOTH, LAYERED at
record §6.1 — this half here; the required-check half lands next.

The anti-vacuity step gains three positive assertions, one per guard, because a
guard that silently stopped computing is indistinguishable from a guard that
found nothing.

RED-PROVED, by extracting step 8's python heredoc VERBATIM from the shipped file
and running it against the real tree with the pinned core:

  innocent PR                     -> ok, 57 entries, 53 tracked, 0 uncovered
  deletes openspec/specs/doc-health/spec.md
                                  -> REFUSED floor_drift_caused_by_candidate,
                                     caused_by_candidate names it
  renames that path away          -> REFUSED, both limbs (drift + incomplete)
  adds a spec off the floor       -> REFUSED floor_incomplete, names the path
  entry already dead on base      -> REFUSED floor_partially_unreachable,
                                     caused_by_candidate EMPTY, and
                                     matched_paths still reported
  unknown/absent `status`         -> REFUSED changed_entries_unusable
  the SAME tree at the OLD pin    -> REFUSED floor_incomplete, 53 uncovered

That last line is the pair, proven: at `f4702f64` this lane cannot pass, and at
the new pin it passes with nothing uncovered.

The report block guards every lookup with `// []` / `// "-"`, and that is not
defensive noise: the four EARLY refusal stages emit a document carrying `stage`
and `reason` and nothing else, and `.matched_paths[]` over an absent key is a jq
ERROR rather than an empty list. Without the defaults the report would abort at
its first line exactly when the run has gone wrong, which is the one time a
reader needs it. Exercised against a minimal `governance_load` document: all
eight lines print, rc 0.

`tests/review_lane_pin`: 36 passed, 0 skipped.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2
…t, and make a failed fetch loud

The third commit: CSC-C6's required-check half, ruled BOTH, LAYERED at the (b′)
record §6.1 and commissioned there as the feasibility question CSC itself named.
It is feasible, and this is the build.

CSC-C6 (BLOCKING) requires the coverage assertion to run "on a check somebody is
required to look at — not on the openxFactory advisory lane alone, which blocks
nobody", failing red "on the commit that adds a spec off the floor".
`pytest-suite` is REQUIRED on this repository by organization ruleset
`21538893`; the advisory lane is required by nothing. So the assertion runs in
both places, which is the layering CSC's own letter asks for: not the advisory
lane ALONE.

THE HYBRID, AND WHY IT IS NOT JUST A CHECKOUT.

* The LOAD-BEARING assertion is offline. `tests/review_lane_pin/
  test_floor_snapshot.py` reads `git ls-files openspec/specs` and the vendored
  `contracts/review-lane-floor-snapshot.yaml`, and asserts `surface ⊆ entries`.
  No network, no credential, no ruleset act. Coverage therefore holds whether or
  not codexFactory is reachable — a codexFactory outage never wedges this
  repository.
* A COPY IS NOT TRUSTED ON ITS OWN. A snapshot missing entries reds
  conservatively; a snapshot carrying an entry the real floor lacks is a SILENT
  FALSE GREEN, the CSC-F16 defect species. So `pytest-suite.yml` also checks out
  the pinned core (`continue-on-error`, using the App token this job already
  mints) and the same module compares the two byte for byte.
* AND THE FETCH CANNOT DEGRADE IN SILENCE, which is the whole trick and is built
  out of machinery already here. The freshness comparison SKIPS when the core is
  absent. `EXPECT_SKIPPED: "21"` is pinned EXACTLY and fails the job on any
  drift. On the normal path the checkout succeeds, the comparison RUNS, and the
  count does not move; when the fetch stops working the count becomes 22 and this
  REQUIRED check goes red with a named cause. `MIN_SELECTED` / `MIN_PASSED` are
  floors and need no edit — the new module only widens their margin.

VERIFIED BOTH WAYS, locally: with a codexFactory checkout on disk
`tests/review_lane_pin` is 53 passed / 0 skipped; without one it is 52 passed /
1 skipped. The skip count moves by exactly the amount the pin would catch.

RED-PROVED, each guard by its own case:

  a fabricated `openspec/specs/<new>/spec.md` added to a tmp copy of the real
    tree -> test_every_tracked_openspec_spec_path_is_on_the_floor FAILS, naming
    the path (LQ-A7's own falsification, on a REQUIRED check)
  one byte appended to the snapshot -> SNAPSHOT DIGEST MISMATCH
  one byte appended to the core's floor document -> SNAPSHOT IS STALE
  a locator pointed at a directory with no floor -> returns None, i.e. the skip
    is legitimate only when the core really is absent

The `ref:` in `pytest-suite.yml` is a FOURTH site the core commit is written, so
`test_the_required_suite_checks_out_the_pinned_core` ties it to the pin — without
that tie the freshness comparison could measure the snapshot against some
codexFactory tree rather than the one this repository consumes, which proves
nothing. The core is checked out BESIDE the repository tree, never inside it: a
foreign checkout under the repo root is visible to every test that scans the
real tree.

THE COST, STATED. From here, adding a path under `openspec/specs` requires the
two-repository repair before this required check is green. The assertion does not
create that tax — the exact enumeration does; the assertion only stops it being
paid silently, which is what CSC asked for. The ordered repair is in the pinned
core's `docs/repository-gate-floor-repair-runbook.md` and is quoted in both
refusal messages.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2
Copilot AI lite review requested due to automatic review settings September 2, 2026 00:18

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

It materially changes merge gating semantics across workflows/tests (including cross-repo pinning and required-check behavior), so it warrants careful human validation beyond automated review.

Pull request overview

Advances the codexFactory decision-core pin and makes the expanded openspec/specs floor operative in openxFactory by wiring new drift/completeness guards into the advisory lane and adding a required-check completeness/freshness assertion backed by a vendored floor snapshot.

Changes:

  • Advance contracts/review-lane-pin.yaml core_commit to db157dbb…, add a declared floor_snapshot (path, sha256, entry_count) and vendor the snapshot bytes.
  • Update merge-master-approval.yml to evaluate the floor against a post-merge tree, attribute unreachable entries to the causing candidate, and add a completeness set-difference over openspec/specs.
  • Add tests/review_lane_pin/test_floor_snapshot.py and extend existing pin/caller tests; update pytest-suite.yml to optionally check out the pinned core for snapshot freshness verification.
File summaries
File Description
tests/review_lane_pin/test_review_lane_caller.py Updates pin-member and lockstep assertions; adds caller wiring assertions for new core functions and post-merge evaluation.
tests/review_lane_pin/test_floor_snapshot.py New required-check test module asserting floor completeness from a vendored snapshot and snapshot freshness when the pinned core is available.
specs/025-openxfactory-review-lane-caller/tasks.md Records an updated dated measurement about lockstep convergence/divergence.
specs/025-openxfactory-review-lane-caller/spec.md Appends a dated update clarifying the earlier divergence statement is superseded “as of today”.
scripts/doc_health/pin_class.py Declares the new snapshot file as a NON_MEMBER with a documented reason/measurement.
contracts/review-lane-pin.yaml Advances core_commit, expands pinned_members, and introduces the floor_snapshot declaration (sha256 + entry_count + rationale).
contracts/review-lane-floor-snapshot.yaml Adds the vendored byte copy of the floored paths list (4 hand-reasoned + generated 53 block).
.github/workflows/pytest-suite.yml Adds pinned-core checkout (continue-on-error) and exports PINNED_CORE_CHECKOUT for the freshness verifier while keeping the job hermetic for completeness.
.github/workflows/merge-master-approval.yml Updates pin literals and step logic: collects status, emits changed_entries.json, evaluates floor against post-merge tree, reports reachability partitions, and checks completeness.
.github/CODEOWNERS Routes the new snapshot file to an owner to match its “required-check asserted bytes” role.
Review details
  • Files reviewed: 10/10 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.

Comment on lines +634 to 638
# THE TARGET'S OWN DOCUMENT, located by content rather than by name.
floor_path, document = None, None
for name in sorted(os.listdir(governance_dir)):
if not name.endswith((".yaml", ".yml")):
continue
…ave verified the snapshot against the wrong tree

FOUND BY CI ON THE FIRST RUNNER EXECUTION, and recorded rather than quietly
squashed, because the defect is more interesting than the fix.

`pytest-suite` on `ec88f35b` failed exactly one test — this pull request's own
negative control:

  FAILED tests/review_lane_pin/test_floor_snapshot.py::NegativeControls::
    test_the_core_locator_refuses_a_directory_without_the_floor
    AssertionError: PosixPath('.../openxFactory/.merge-master-core') is not None

The locator tried the declared `PINNED_CORE_CHECKOUT` and THEN two fallbacks. On
a runner the second fallback — `REPO_ROOT.parent/.merge-master-core` — is a real
codexFactory checkout, because `GITHUB_WORKSPACE` is the PARENT of the repository
checkout and that is exactly where the new step puts the core. Locally the
fallbacks are empty, so the defect was invisible in every local run.

WHAT IT WOULD HAVE COST IS WORSE THAN A RED CONTROL. A run whose NAMED core was
missing would have fallen back to whatever tree happened to be lying beside the
repository, compared the snapshot against it, and reported a PASS — the exact
silent-degradation shape the exact skip pin exists to make impossible. The bug
was in the half of the design that is supposed to be the alarm.

THE RULE, NOW WRITTEN DOWN: `PINNED_CORE_CHECKOUT` is AUTHORITATIVE when set. A
named core that is absent yields None, therefore a skip, therefore a moved skip
count, therefore a red REQUIRED check with a named cause. The fallbacks survive
only for the unnamed developer case, where nothing was claimed. Both branches now
carry a control, and the failing one carries the story so the next reader
inherits the finding rather than the fix.

Verified in all four shapes, including a local reproduction of the runner's
layout (a real core at `REPO_ROOT.parent` with the variable naming a missing
path -> SKIPS, does not fall back):

  named + present   -> 55 passed, 0 skipped
  unnamed + absent  -> 54 passed, 1 skipped
  named + missing, real core beside the repo -> 1 skipped, 0 failed
  named + present (that same core)           -> 0 skipped

The rest of that CI run is the evidence this change does not touch: the
cross-repository checkout step SUCCEEDED, the freshness verifier RAN, and the
suite reported 21 skipped — exactly `EXPECT_SKIPPED`.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2
Copilot AI review requested due to automatic review settings September 2, 2026 00:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The updated merge-master-approval.yml floor-evaluation script can dereference a missing document/floor_path without a structured refusal, so it should explicitly handle the “floor doc not found on disk” case.

Review details

Suppressed comments (1)

.github/workflows/merge-master-approval.yml:638

  • After scanning governance_dir for the target's repository_gate_floor, floor_path/document are used without verifying the loop found a match. If load_governance_paths() ever returns a floor for TARGET_REPOSITORY but the on-disk scan fails (e.g., loader behavior changes, different directory contents, or YAML parse differences), this will crash later with a non-actionable error instead of producing a structured stage/reason JSON payload.
          # THE TARGET'S OWN DOCUMENT, located by content rather than by name.
          floor_path, document = None, None
          for name in sorted(os.listdir(governance_dir)):
              if not name.endswith((".yaml", ".yml")):
                  continue
  • Files reviewed: 10/10 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 493fdac18e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/pytest-suite.yml Outdated
Comment on lines +458 to +460
# cross-repository fetch fails, the verifier skips, this count becomes
# 22, and the comparison below fails the job — which is precisely how
# a silently degraded fetch is turned into a red REQUIRED check with a

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Track the freshness skip by testcase, not aggregate count

If the core checkout fails on a run where any existing conditional skip starts passing—for example, a PR fixes or removes one of the 21 currently skipped tests—the freshness verifier adds one skip while the other test removes one, leaving the aggregate at 21 and allowing this required check to stay green. The selected/passed floors do not detect a one-test change because their current margins are much larger, so the byte-freshness check can silently disappear; inspect the named freshness testcase in the JUnit report or give it a dedicated failure signal instead.

Useful? React with 👍 / 👎.

Codex read the (b') activation's failure signal and found it was an AGGREGATE
(P2, PR #569, .github/workflows/pytest-suite.yml:460). The design said: the
pinned-core checkout is `continue-on-error`, so when it fails the snapshot
freshness verifier SKIPS, the run's skipped count becomes 22, and
`EXPECT_SKIPPED: "21"` — pinned exactly — reds the REQUIRED check. True on a
run where nothing else moves. But a sum cannot tell "the core checkout failed"
(+1 skip) from "the core checkout failed AND some other conditional skip
started running" (+1 -1 = 0). On that second run — a pull request that fixes or
deletes one of the 21 — the count is 21 again, the required check is GREEN, and
the byte-for-byte comparison the vendored snapshot's fidelity rests on has
silently disappeared. The floors cannot cover for it: they are floors with
slack and a one-test change never approaches them.

That is CSC-F16's silent-false-green, found inside the guard built against
CSC-F16.

SO THE ONE TEST THAT DEPENDS ON A CROSS-REPOSITORY CHECKOUT IS NOW WATCHED AS
ITSELF. The pin step's JUnit parser — same step, same stdlib `xml.etree`, one
more printed field — looks the verifier's own `<testcase>` up by classname and
name and requires the verdict `passed`. Absent, skipped, failed and errored
each fail the job with the named message

  ::error::snapshot freshness verifier did not run — pinned core checkout
  unavailable or test removed (<classname>::<name> is '<verdict>' in
  pytest-report.xml, wanted 'passed'). contracts/review-lane-floor-snapshot.yaml
  was NOT compared byte for byte against the pinned decision core on this run,
  so a stale copy could assert coverage the real floor does not give. ...
  Do not delete this assertion — the skipped-count pin CANNOT cover for it,
  which is the Codex P2 finding on PR #569

and nothing happening elsewhere in the suite can cancel it. `EXPECT_SKIPPED`
is UNCHANGED at 21 and keeps the job it was always for: the general skip
discipline, "a directory that silently turned into skips", which the named
verdict says nothing about. Two signals, split, both kept — the name first.

THE NODE ID IS ASSERTED AGAINST THE LIVE OBJECTS, because a watcher pointed at
a name that no longer exists is the same defect one level up. A rename that
forgets the workflow makes the verdict `absent`, which reds — fail-safe — but
it would red as a mystery, so `TheRealFiles::
test_the_required_suite_watches_the_verifier_by_name` compares
`FRESHNESS_CLASSNAME`/`FRESHNESS_TESTNAME` to the class and method objects and
fails on the developer's machine first, naming the two strings to move.
(pytest's JUnit `classname` is the rootdir-relative node id folded to dots, not
`__module__` — `tests/` carries no `__init__.py` — so the test rebuilds it the
way the report does.) The skip reason also now opens with the greppable marker
`FRESHNESS-VERIFIER-DID-NOT-RUN:` so the log names the cause without the XML.

RED-PROVED against the SHIPPED bytes, not a reimplementation: the step's `run:`
and `env:` were extracted from `pytest-suite.yml` with PyYAML and executed
under bash against JUnit fixtures shaped like a CI report — testsuite
tests="7100" skipped="21" failures="0" errors="0", so every AGGREGATE assertion
passes and only the named one can speak.

  fixture                                     aggregate   new step        old step
  freshness testcase <skipped/>  (the Codex   all GREEN   exit 1, named   exit 0
    scenario: core failed, another skip                     message         GREEN
    started passing, sum still 21)
  freshness testcase ABSENT (renamed/deleted) all GREEN   exit 1, named   exit 0
  freshness testcase <failure>                all GREEN   exit 1, named   exit 0
  freshness testcase <error>                  all GREEN   exit 1, named   exit 0
  freshness testcase passed                   all GREEN   exit 0          exit 0

The "old step" column is the same extraction from HEAD~1: it exits 0 — GREEN —
on all four, which is the finding, reproduced against the bytes that shipped.
Two REAL pytest-emitted reports confirm the shape the fixtures imitate: with a
core on disk the verdict reads `passed` (exit 0), without one it reads
`skipped` and reds with the named message.

Also run: actionlint on the workflow (exit 0, clean);
`pytest tests/review_lane_pin -q` → 55 passed, 1 skipped, 18 subtests (was 54
passed, 1 skipped — the one added guard, no new skip, so `EXPECT_SKIPPED` does
not move and the floors only widen). The workflow change itself is exercised by
CI, which is the only place the real report exists; the full suite runs there.

Docstrings and `contracts/review-lane-pin.yaml`'s prose restated in the new
order — the name is the signal, the count is the backstop — with the finding
cited at each site, so the next reader does not re-derive the aggregate
argument and delete the assertion that answers it.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2
Copilot AI review requested due to automatic review settings September 2, 2026 01:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

It changes required CI behavior and governance-floor enforcement semantics across workflows, pins, and tests, warranting final human verification of the end-to-end gating behavior.

Review details
  • Files reviewed: 10/10 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment on lines +329 to +333
# `continue-on-error` FOR THE REASON THIS FILE ALREADY GIVES ITSELF at
# :67-69 — "a required check that fails for reasons the candidate cannot
# fix blocks everything". A codexFactory outage, a revoked App grant or a
# rewritten history must not wedge every openxFactory pull request.
#
Comment on lines +306 to +310
step.get("continue-on-error"), True,
"the core checkout must NOT be able to fail this required job "
"directly: a required check that fails for reasons the candidate "
"cannot fix blocks everything (pytest-suite.yml's own rule). Its "
"failure is surfaced by the exact skip pin instead.")
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: a1280f26f8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI review requested due to automatic review settings September 2, 2026 16:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The updated merge-master-approval.yml floor evaluation can crash with an unhandled exception if the floor document scan fails to find a match (missing explicit refusal path), risking a non-diagnostic workflow failure.

Review details

Suppressed comments (1)

.github/workflows/merge-master-approval.yml:638

  • If the floor document for TARGET_REPOSITORY is not found by the directory scan, document remains None and the subsequent parse_repository_floor_reporting(document, ...) call will raise a non-GovernanceDocumentError (e.g., TypeError), bypassing the intended refuse(...) path and producing an unstructured failure instead of a stage/reason JSON payload.
          # THE TARGET'S OWN DOCUMENT, located by content rather than by name.
          floor_path, document = None, None
          for name in sorted(os.listdir(governance_dir)):
              if not name.endswith((".yaml", ".yml")):
                  continue
  • Files reviewed: 10/10 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

Provenance: merging on Brett's in-session authorization (session openxfactory-13, 2026-09-02: "merge 570 and 569 when clear"; his (b′) ruling made this activating PR Codex-gated). Clear is measured: two Codex rounds — round 1's P2 (aggregate skip count could mask a silent freshness skip) fixed at a1280f2 by the named-JUnit-testcase assertion, red-proved against skipped/absent/failed/errored fixtures; round 2 clean at that exact tip — and all four checks pass on the tip refreshed onto green main (3fa222f), with the snapshot freshness verifier confirmed RUNNING and the exact skip pin at 21. Lands the second half of the (b′) extension pair: core_commit → db157dbb (contains #162's 53-entry floor), LQ-A7 completeness assertion, LA-A2/CPL-C1 deletion guard and LS-A1 report-before-refuse wired into merge-master-approval, CSC-C6 hybrid snapshot in the REQUIRED suite; D-2 re-discharged at the landing pin (57 accepted, 53 per-entry assertions). The floor is now OPERATIVE. reviewDecision REVIEW_REQUIRED per the standing browser-approve pattern; admin squash per the recorded lane.

@brettheap
brettheap merged commit 47f9008 into main Sep 2, 2026
5 checks passed
@brettheap
brettheap deleted the change/activate-openspec-floor branch September 2, 2026 18:54
brettheap added a commit that referenced this pull request Sep 3, 2026
…e floor now enumerates project-repo-schema (57 → 58)

codexFactory PR #183 merged as 605d48acd129d25e5dd5dac48201f53c11de08ae
(codexFactory main tip), regenerating
scripts/merge_master/openxfactory-review-authority-floor.yaml's
machine-generated block at openxFactory 6f80e67 — this pull request's own
branch tip, where add-project-repo-schema was archived, realized at
contract-v3.1, promoted — to carry openspec/specs/project-repo-schema/spec.md
onto the floor. Generated block: 53 -> 54 tracked paths. Floor total
(four hand-reasoned chokepoints + the generated block): 57 -> 58
never-clearable paths.

Per codexFactory docs/repository-gate-floor-repair-runbook.md and
openxFactory PR #569 (47f9008), every site that names the core commit moves
together, in one commit:

* contracts/review-lane-pin.yaml: core_commit db157dbb -> 605d48ac;
  declared_at/declared_from restated; the floor_snapshot sha256
  bf7a6b69... -> 6ab79400..., entry_count 57 -> 58; prose restated to 58
  entries and the PR #183 regeneration.
* .github/workflows/merge-master-approval.yml: PINNED_CORE_COMMIT and the
  core checkout ref: literals advance to 605d48ac; a dated note records the
  advance beside the existing divergence note.
* .github/workflows/pytest-suite.yml: the pinned-core checkout ref: (the
  fourth site the core commit is written, per
  tests/review_lane_pin/test_floor_snapshot.py::
  test_the_required_suite_checks_out_the_pinned_core) advances to 605d48ac.
* contracts/review-lane-floor-snapshot.yaml: re-copied byte-for-byte from
  codexFactory's floor document at 605d48a (sha256
  6ab7940009e0d15117bf749266beb29bfbe4bf10be3c93cd5c6a0ea8362ea819),
  never hand-edited.

Verified: `tests/review_lane_pin` 55 passed / 1 skipped locally (legitimate
skip, no core checkout on disk), 56 passed / 0 skipped with a real
codexFactory checkout at 605d48a supplied via PINNED_CORE_COMMIT (the
byte-identity and freshness-verifier-by-name tests both ran and passed for
real). `doc-health.py --single-repo .` run before and after this edit is
identical modulo repo-identity naming and one run's transient
release-tag-publication network skip (reproduced clean on re-run) — no
family gains or loses a finding because of this change. `pytest
tests/doc-health -q -m "not postgres"` and `openspec validate --all --strict`
(86/86) both pass.

Lane: repo-shape
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HGKwdQsmvRZx4fGQESdFGZ
brettheap added a commit that referenced this pull request Sep 3, 2026
* Cut contract-v3.1: add-project-repo-schema's project-register election is realized

Realizes add-project-repo-schema tasks.md 9.3 -- the archive blocker that
packet's own realization left to the cutting session. contract-v3.0 is the
declared+tagged bundle and contracts/releases/ holds inventories through it
with no member for this family, so the next additive number is contract-v3.1,
taken here.

Change class: ADDITIVE (minor). git diff --name-status contract-v3.0 HEAD --
contracts/schemas/project-register.schema.yaml
scripts/validate-ideation-dashboard-contracts.py shows the schema gaining
three OPTIONAL fields (schema, reference, repository_roles) and the validator
gaining four new rules over those fields alone, with repositories unchanged
as strings and every existing rule's behaviour untouched -- no consumer
pinned at contract-v3.0 is made non-conformant.

contracts/manifest.yaml: contract_bundle_version contract-v3.0 -> contract-v3.1.
contracts/CHANGELOG.md: the contract-v3.1 entry, naming the four realized
artifacts (docs/project-repo-schema.md, contracts/openreposhape-pin.yaml,
scripts/validate-openreposhape-pin.py + its gate workflow, and the ONE
registered row that actually moves -- scripts/validate-ideation-dashboard-
contracts.py, row 1417 of the v3.0 inventory), and disclosing an unrelated
re-baseline: docs/contract-versioning-policy.md drifted since v3.0 via PR
#577 (the contract-v2.6 Instance Six recording), carried forward unchanged.
contracts/README.md: the project-register.schema.yaml row's editorial
description grown to name the new fields and add-project-repo-schema.
contracts/releases/contract-v3.1.digests.yaml: built LAST via
scripts/validate-contract-release.py build --tag contract-v3.1, 283 entries
in, 283 out -- the closed release surface gains and loses no member; only the
two named files' bytes moved.

NOT HERE, deliberately: the contract-v3.1 annotated tag. Policy step 5
publishes it against the commit that actually lands on main; the post-merge
commands are in the pull request body.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HGKwdQsmvRZx4fGQESdFGZ

* Tick add-project-repo-schema 9.2-9.4: archive preflight complete

9.2: re-verified contracts/openreposhape-pin.yaml against the real
opensoft/openRepoShape bytes at deacbdcce4f52af427bcb4edd075fcc992e3dabe via
scripts/validate-openreposhape-pin.py --from-gh (16 digests recomputed, 18
members present, 34 files declared, none undeclared, exit 0), and re-ran the
four validator lines slices 4 and 5 recorded -- all green.

9.3: DONE, AS contract-v3.1, in the prior commit of this pull request.

9.4: python3 scripts/proposal-support.py . package add-project-repo-schema
--date 2026-09-03 --apply converts supporting-docs/ into
supporting-docs.tar.gz + supporting-docs.manifest.yaml, a verified
deterministic bundle (proposal-support.py . verify -> "proposal support
verification ok"), satisfying release-realization's proposal-support archive
gate ahead of openspec archive.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HGKwdQsmvRZx4fGQESdFGZ

* Archive add-project-repo-schema: realized at contract-v3.1, promoted

openspec archive add-project-repo-schema --yes: merged-plus-green realization
evidence exists (contract-v3.1, cut in this pull request), so the
release-realization archive gate opens. Moved to
openspec/changes/archive/2026-09-03-add-project-repo-schema/. Promotes:
project-repo-schema (11 ADDED requirements, new capability) and
ideation-dashboard's "Project grouping hierarchy" (1 MODIFIED requirement --
the register's optional schema/reference/repository_roles election, carried
verbatim with every original scenario retained).

openspec/specs/project-repo-schema/spec.md: Purpose set from the proposal
(elective, confers nothing, the double pin, the manifest-is-the-source rule,
the ownership split with openRepoShape) rather than left TBD.

README.md: moved the OpenSpec Records entry from Active to Archived, per the
README's own convention, with the realization evidence (contract-v3.1,
the MedxScribe pilot, and the real MedxEHR/MedxGlass adoptions) and the
sequenced-after pin's movement recorded.

ideation/README.md: the promoted-from-staging pointer now names the archive
path; docs/project-repo-schema.md's own inline references to the pre-archive
proposal.md path are left as originally written, mirroring this repository's
own precedent (docs/contract-versioning-policy.md:341 still cites
openspec/changes/add-release-inventory-drift-check/proposal.md, archived
2026-08-25, uncorrected) -- a record is not rewritten to match today's state.

tests/sequenced_after/test_sweep.py: the live corpus pin moves in this same
commit, its own protocol. Archiving this co-modified ACTIVE change moves
active_co_modified alone, 20 -> 19 (measured: origin/main at 7af2725 reads
33 active + 125 archived = 158, 108, 50, 20/13; this commit reads
32 active + 126 archived = 158, 108, 50, 19/13) -- co_modified, sole_modifiers
and active_sole are untouched, exactly the shape #563's, #571's and
declare-spent-bundle-state's own archives moved.

NOTE: this branch was authored against origin/main at 7af2725 while PRs
#608 and #609 were landing separately per the coordinating session's
instruction not to rebase repeatedly. The README OpenSpec Records block and
this sequenced-after pin are the expected conflict points and must be
re-measured against main's post-#608/#609 state before merge.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HGKwdQsmvRZx4fGQESdFGZ

* Floor pin: advance the merge-master core to codexFactory 605d48a — the floor now enumerates project-repo-schema (57 → 58)

codexFactory PR #183 merged as 605d48acd129d25e5dd5dac48201f53c11de08ae
(codexFactory main tip), regenerating
scripts/merge_master/openxfactory-review-authority-floor.yaml's
machine-generated block at openxFactory 6f80e67 — this pull request's own
branch tip, where add-project-repo-schema was archived, realized at
contract-v3.1, promoted — to carry openspec/specs/project-repo-schema/spec.md
onto the floor. Generated block: 53 -> 54 tracked paths. Floor total
(four hand-reasoned chokepoints + the generated block): 57 -> 58
never-clearable paths.

Per codexFactory docs/repository-gate-floor-repair-runbook.md and
openxFactory PR #569 (47f9008), every site that names the core commit moves
together, in one commit:

* contracts/review-lane-pin.yaml: core_commit db157dbb -> 605d48ac;
  declared_at/declared_from restated; the floor_snapshot sha256
  bf7a6b69... -> 6ab79400..., entry_count 57 -> 58; prose restated to 58
  entries and the PR #183 regeneration.
* .github/workflows/merge-master-approval.yml: PINNED_CORE_COMMIT and the
  core checkout ref: literals advance to 605d48ac; a dated note records the
  advance beside the existing divergence note.
* .github/workflows/pytest-suite.yml: the pinned-core checkout ref: (the
  fourth site the core commit is written, per
  tests/review_lane_pin/test_floor_snapshot.py::
  test_the_required_suite_checks_out_the_pinned_core) advances to 605d48ac.
* contracts/review-lane-floor-snapshot.yaml: re-copied byte-for-byte from
  codexFactory's floor document at 605d48a (sha256
  6ab7940009e0d15117bf749266beb29bfbe4bf10be3c93cd5c6a0ea8362ea819),
  never hand-edited.

Verified: `tests/review_lane_pin` 55 passed / 1 skipped locally (legitimate
skip, no core checkout on disk), 56 passed / 0 skipped with a real
codexFactory checkout at 605d48a supplied via PINNED_CORE_COMMIT (the
byte-identity and freshness-verifier-by-name tests both ran and passed for
real). `doc-health.py --single-repo .` run before and after this edit is
identical modulo repo-identity naming and one run's transient
release-tag-publication network skip (reproduced clean on re-run) — no
family gains or loses a finding because of this change. `pytest
tests/doc-health -q -m "not postgres"` and `openspec validate --all --strict`
(86/86) both pass.

Lane: repo-shape
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HGKwdQsmvRZx4fGQESdFGZ

* Define the SPENT state in the pinned policy: declare-spent-bundle-state's 3.1, owed at this cut

The obligation-side half of declare-spent-bundle-state task 3.1, deliberately
left owed to the next contract cut under OD-6's shape argument and affirmed
there by Brett Heap on PR #587 (2026-09-03T02:49:08Z). This is that cut.

WHAT #577 ALREADY DISCHARGED AND IS NOT RE-AUTHORED HERE: the consumer-facing
record that contract-v2.6 is superseded and not dischargeable. That lives in
this same document as Instance Six and is cross-referenced, not restated --
"two records of one measurement is how they drift apart". Instance Six RECORDS
the supersession; the new subsection DEFINES the state, which is precisely what
#577 declined to do ("No sentinel is invented ... Building one here would be
exactly the failure that check exists to catch").

Placed as a ### subsection of ## Immutable Tag Correction, LAST in that section
-- after ### contract-v1.36 Was Moved, whose opening sentence says "the rule
immediately above" and would have been broken by an insertion between it and
its parent. It sits beside Immutable Tag Correction because the SPENT remedy IS
that section's remedy for a defective release applied one step earlier in the
lifecycle, and because its "its version number is never reused" is the sentence
the v2.6 disposition leans on.

The paragraph states, quoting openspec/specs/doc-health/spec.md
### Requirement: Release-tag publication rather than paraphrasing it where the
wording carries weight: the third state between published and owes-a-tag;
entry ONLY by explicit declaration, never by silence, age or any absence; the
declaration's home in contracts/CHANGELOG.md inside the SUPERSEDING bundle's
own entry, in the reserved single-line form, with the opener reserved and an
incomplete line malformed rather than prose; that a bundle cannot declare
itself spent; the successor guard in all three of its conjuncts (cut,
published, strictly later); the three severities -- info accepted, warning
provisional, error refused with the superseded error standing beside it; and
that the number is never reused while the manifest, the inventory and the
spent bundle's own entry are left exactly as written.

The reserved form is shown as a 4-space indented code block, per the
requirement's own reason for doing so. Measured, not assumed: zero lines of
this document begin with the reserved opener, and the family reads only
contracts/CHANGELOG.md in any case (line.startswith, no lstrip).

doc-health --single-repo vs the pre-edit tree at the same origin/main
(0f1edc0): 6 critical / 4 error / 29 warning / 13 info on both, no family
gains or loses a finding, release-tag-publication included.

Lane: repo-shape
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HGKwdQsmvRZx4fGQESdFGZ

* Advance the intent-compliance release boundary to contract-v3.1, by hand as the tripwire requires

The contract-v3.1 cut moved contracts/manifest.yaml and left this file behind:
ValueError: 'contract-v3.1' is not a valid ReleaseState, failing
test_release_membership_when_registration_changes_then_transition_is_atomic
and test_release_inventory_when_registration_changes_then_schema_pins_are_atomic
(2 failed, 286 passed, reproduced before the edit).

That failure is the tripwire working, not a bug. The enum's own docstring says
why it must be a HAND act: INTENT_RELEASE_FLOOR is an at-or-after comparison,
so nothing here notices a bump on its own, and every cut past the floor states
on the record which side of the boundary its bundle falls on.

FEATURE_SUCCESSOR_5 = "contract-v3.1" added, mirroring the four successors
above it, and wired into both match statements' successor arm exactly as
v2.5, v2.6 and v3.0 are wired -- the arms are exhaustive over the enum and
guarded by assert_never, so a value added without wiring would fail there
instead.

The docstring gains the paragraph the tripwire exists to collect: the v3.1 cut
is add-project-repo-schema's project-register election and its openRepoShape
consumption pin; the ONE registered row it moves is
scripts/validate-ideation-dashboard-contracts.py; it touches NO
intent-compliance member; so the membership this file asserts is UNCHANGED --
said by hand, because "unchanged" is the one thing the library cannot tell
from "unnoticed".

python3 -m pytest tests/intent-compliance -q: 288 passed.

This file is itself a member of the intent-compliance release surface, so its
new bytes are part of what the v3.1 inventory rebuild in the next commit
records.

Lane: repo-shape
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HGKwdQsmvRZx4fGQESdFGZ

* Record the SPENT-state carry in the contract-v3.1 entry, and rebuild the inventory over the bytes as cut

The changelog half first, then the inventory LAST, because the inventory
digests the changelog.

contracts/CHANGELOG.md, inside the existing ## contract-v3.1 entry and
immediately after the paragraph disclosing #577's between-cuts drift: three
paragraphs saying that docs/contract-versioning-policy.md moves a SECOND time
at this cut and why. The first movement is #577's bytes carried forward
unaltered (that paragraph is not edited); the second is
declare-spent-bundle-state task 3.1's SPENT-state definition, routed by OD-6 to
"the next contract cut" and affirmed there by Brett Heap on PR #587
(2026-09-03T02:49:08Z). One rebuilt inventory re-baselines both, which is what
discharges that packet's § 3.2 -- this changelog's editorial drift info and the
policy document's release-inventory-drift ERROR "both clear on their own when
the inventory re-baselines".

NOTHING IS DECLARED SPENT BY THIS CUT and the entry says so in terms.
contract-v2.6's declaration stands exactly where it was written, in
§ contract-v3.0's own entry; no declaration is added or edited. Measured, not
asserted: contracts/CHANGELOG.md still carries EXACTLY ONE line beginning with
the reserved opener, the v2.6 declaration at what is now line 538, and this
commit introduces no new ## heading that could move an entry boundary under it.

contracts/releases/contract-v3.1.digests.yaml rebuilt with the command the cut
itself used (01489fc): scripts/validate-contract-release.py build --tag
contract-v3.1 --output contracts/releases/contract-v3.1.digests.yaml. 283
entries in, 283 out -- the closed release surface gains and loses no member.
THREE digests move, and all three are this ruling's own edits, each of which is
a registered member:

  contracts/CHANGELOG.md                        6f89cc40 -> 8be8bc65
  docs/contract-versioning-policy.md            094bd83b -> 280691a5
  tests/intent-compliance/test_release_boundary.py  2d600127 -> 6c9dd003

So the inventory DOES digest the policy document -- artifact_id
docs-contract-versioning-policy.md, a NORMATIVE_DOCS member -- and the v3.1
inventory now records the tree as cut rather than as contract-v3.0 recorded it.

Lane: repo-shape
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HGKwdQsmvRZx4fGQESdFGZ

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 5, 2026
…anchoring)

Archiving `add-chain-anchoring` promotes
`openspec/specs/chain-anchoring/spec.md`. codexFactory's
`repository_gate_floor` for this repository is an EXACT ENUMERATION of that
surface, so the new spec arrived OFF the floor for the same structural reason
as the three promotions before it on this same day. The fourth advance of the
day, eight hours after the prior note called itself the last of the family —
which was accurate when written, and this is exactly the "whichever future
archive first does" it named.

Five sites move in this one commit, per the runbook and openxFactory PR #569:

  1. contracts/review-lane-pin.yaml            core_commit
  2. .github/workflows/merge-master-approval.yml PINNED_CORE_COMMIT
  3. .github/workflows/merge-master-approval.yml core checkout `ref:`
  4. .github/workflows/pytest-suite.yml          core checkout `ref:`
  5. contracts/review-lane-floor-snapshot.yaml   byte copy at the new commit

`6d35c4fecaa4af7a23134678f9239e409ff5215f` (codexFactory PR #198) ->
`76fa501cd1c846ca9676d901e41e33ae1e730733` (codexFactory PR #204, MERGE
COMMIT, 2026-09-04T23:47:59Z, verified an ancestor of codexFactory
origin/main immediately before this advance). entry_count 66 -> 67;
sha256 b890cf1d... -> c4a386dbbfff3b35c0ef0afd1b36932e181effb551a69434cb02b25332a59e78.

SNAPSHOT BYTE IDENTITY, measured three independent ways: (a) sha256 over
the 12809-byte file matches; (b) `git hash-object` on the vendored copy
equals the blob id codexFactory's own tree carries for that path at
76fa501c (`4dffee49`); (c) the pin suite's freshness comparison ran with the
pinned core checked out beside it: 56 passed, ZERO skipped.

THE FLOOR GREW BY EXACTLY ONE, AND IT IS THE SPEC. Whole diff against
6d35c4fe: one added entry line, the generated block's three regeneration
fields (generated_at / --ref 0ae7408 -> 3afd8a8, entry_count 58 -> 59),
and the document's two "8 + 1" self-descriptions moving 66 -> 67. PR #204
regenerated at openxFactory 3afd8a8 — THIS branch's own pushed head,
EXACTLY, the ledger commit that closes the archive — so the snapshot's
`generated_at` non-member value is the immediate parent of this commit.

NO COLLISION, measured directly: `git merge-base --is-ancestor origin/main
HEAD` holds on this branch (main 9420472 is an ancestor of 3afd8a8), so
no commit main gained after the branch was cut needed reconciling. main
carries 58 tracked paths under openspec/specs, this branch 59; the one
addition is this packet's own promotion. One regeneration at one tree
suffices; the second-lander remedy is not engaged.

HISTORY PRESERVED, LIVE CLAIMS RE-MEASURED: every remaining `6d35c4fe` in
the pin file and the caller header is prose describing the 16:02 advance,
retained as history. Live counts moved with the pin: pinned_members
SIXTY-SIX -> SIXTY-SEVEN and FIFTY-EIGHT -> FIFTY-NINE, "ALL THREE" -> "ALL
FOUR 2026-09-04 ADVANCES", the caller header's sixty-six / fifty-eight, the
snapshot generated_at note 0ae7408 -> 3afd8a8, and a seventh regeneration
appended to the block's provenance list.

LOCKSTEP RE-MEASURED, STILL DIVERGED: both xFactory judging surfaces were
read directly off xFactory main (f0ca0365, 2026-09-04T23:09:53Z) —
merge-master-approval.yml line 146 and council-convening-lane.yml line 302
— and both still name f4702f64 verbatim. Cause unchanged since 2026-09-01
and forced by the feature; the convergence obligation stands undischarged,
now owed against a floor moved SEVEN times, four of them this one day.

Validated on this tree:
  pytest tests/review_lane_pin          55 passed, 1 skipped, 18 subtests
  ... with PINNED_CORE_CHECKOUT present  56 passed, ZERO skipped
  pytest tests/doc-health               1552 passed
  pytest tests/sequenced_after          162 passed
  openspec validate --all --strict      89 passed, 0 failed
  validate-sequenced-after.py --ledger-diff  consistent, 165 rows
  all four YAML files re-parse

Refs #669
Lane: openxfactory-1d

Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 5, 2026
…, published at contract-v3.4 — tranche three is canon (#669)

* Archive add-chain-anchoring: ratified (#513), realized (#629 11feff7), published at contract-v3.4 — tranche three is canon

Brett Heap ordered the archive 2026-09-04 in session, verbatim "archive
chain-anchoring", and ordered it as a PAIR: this packet FIRST because its
archive CREATES the capability the amendment's archive writes into. Every leg of
the evidence chain is read off `main` and none is assumed.

- RATIFIED 2026-08-30 by Brett Heap, repository owner, ruling item 2 of six,
  verbatim "2 yes with note". PR #513. Record
  `review/ratification-2026-08-30.md`, archived with the packet.
- REALIZED: PR #629, squash `11feff75` — twelve schemas, the canonical refusing
  reader, and twelve manifest rows registered AT REALIZATION on the owner's
  overruling of task 4.11's own timing ("merge 629, register now").
- COMPLETED BEFORE PUBLICATION: PR #657, squash `e65dcc48`, the amendment's
  realization the owner ordered to land before these schemas shipped in a
  tagged bundle.
- PUBLISHED: `contract-v3.4`, PR #653, squash `807a4f47`, annotated tag object
  `a3309921` — verified here by `git rev-list -n1 contract-v3.4` peeling to
  `807a4f47` rather than by reading the release note.

## Archive method — the recorded escape, disclosed in the packet

`python3 scripts/proposal-support.py . archive add-chain-anchoring` was tried
FIRST and REFUSED: exit 1, "change has incomplete tasks". Its gate is

    tasks.is_file() and re.search(r"^- \[ \]", tasks.read_text(), re.M)
    (scripts/proposal-support.py:1079-1081)

read off those three lines rather than remembered — UNCONDITIONAL on WHICH box.
`OPENSPEC_TELEMETRY=0 openspec archive add-chain-anchoring --yes` was run
instead, following `declare-spent-bundle-state` § 5.1 (PR #611, `7af2725c`) as
most recently applied by `add-subject-establishment` (PR #647, `e4ff4fb3`). It
reported `Task status: 24/40 tasks`,
`Warning: 16 incomplete task(s) found. Continuing due to --yes flag.`, created
the spec (`+ 9 added, ~ 0, - 0`), and moved the packet.

THE SIXTEEN OPEN BOXES ARE DISCLOSED AND CLASSIFIED in the archived tasks.md's
new closing section, because they span four sections rather than one § Open and
a reader should not have to reconstruct which class each falls in:

  (a) OPERATOR INFRASTRUCTURE — 4.5, 4.6, 4.7, 4.9, 4.10. Four carry `[OPERATOR]`
      in their own first words and `proposal.md`'s `code_surface` declares the
      anchoring RUNTIME NOT THIS CHANGE'S SURFACE. Ticked box 4.8 already says
      so in the packet's voice, and `contract-v3.4`'s own contract-index row
      says it in canon: no witness is configured, nothing is on any chain.
  (b) SETTLEMENTS THE RATIFIED REQUIREMENTS DELIBERATELY LEAVE OPEN — 5.1, 5.2,
      5.4, 5.5. Requirement 1 fixes the receipt SHAPE and not the unit;
      requirement 3 requires horizons be DECLARED and names no numbers;
      requirement 8 fixes the shape and the refusals and not the construction.
  (c) DISCHARGED ELSEWHERE, DELIBERATELY NOT TICKED HERE — 3.2 and 4.12. 4.12
      says of itself "The CUTTING SESSION's act ... and not this realization's",
      and the cutting session performed it: `contracts/README.md`'s own row reads
      "PUBLISHED at contract-v3.4, the cut that discharged task 4.12's half".
      An archive act is not the place to close another lane's boxes, and ticking
      them moves this gate not at all — fourteen would remain.
  (d) SUCCESSORS AND DEPENDENCIES — 6.1 … 6.5, under a heading that already
      reads NAMED, NOT DRAFTED.

Not one is undone realization of this change, and ticking any to satisfy the
wrapper would be writing a false completion past a gate that cannot tell "open
by omission" from "open by design" apart.

## The promotion was byte-checked, not trusted

`openspec/specs/chain-anchoring/spec.md` NEW. Both sides extracted from their
first `### Requirement:` line and diffed: IDENTICAL but for one trailing blank
line the archiver emits — 95509 bytes against 95510. NINE requirements / 89
SCENARIOS on both sides, the count `proposal.md` and the README record have
declared since the 2026-08-30 fix round. `git status --porcelain -uall
openspec/specs/` names that one file and nothing else, so no promoted
requirement in any other capability moved a word. The packet-side move is R100
on fourteen of fifteen files; tasks.md is R087 and its whole delta is the
disclosure above.

`openspec validate --all --strict`: 89 passed, 0 failed — and the TOTAL IS
UNCHANGED, measured on both sides rather than assumed: `origin/main` is 31
active + 58 specs, this tree is 30 active + 59 specs. An archive trades an
active change for a promoted capability and the item count does not move.

## Bookkeeping

- README "OpenSpec Records": the active entry (101 lines) removed, an archived
  entry added at the head of `Archived changes:`.
- `docs/domain-neutralization-candidate-register.md`: NO EDIT OWED — verified by
  enumeration, the packet names no DTN candidate and the register names no
  `chain-anchoring` row.
- `ideation/README.md`: NO EDIT OWED — verified, it carries no pointer to this
  packet.
- `ideation/staging/INDEX.md`: three path references to the active packet
  (lines 1996-2025) go stale with this move and are repointed in the follow-on
  commit alongside the ledger row, so this commit is the archive act and
  nothing else.

The corpus-ledger row follows in the next commit, the ledger's `moved_by`
needing this pull request's own number.

Lane: openxfactory-1d

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Move the one ledger row the archive moves, and follow the four ideation paths to the packet's new home

Both halves are consequences of the move in the previous commit. Neither is a
re-baseline to make a check pass.

## The corpus-ledger row — moved by the tool, never by hand

`python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#669'
--moved-on 2026-09-04` → `wrote tests/sequenced_after/corpus-ledger.yaml (165
rows, 1 moved by #669)`, and the row it names is `add-chain-anchoring`.

    -  add-chain-anchoring: {state: active,   ... moved_by: "#623", ...}
    +  add-chain-anchoring: {state: archived, ... moved_by: "#669", ...}

ONE LINE. `class: sole`, `declares: absent` and `prose: false` are unchanged and
NO PARTNER FLIPPED, so **no MOVEMENT LOG entry is owed** —
`add-per-change-sweep-ledger`'s restated rule reserves an entry for a move the
row diff does NOT state, and this move is entirely stated by the row diff.
`--ledger-diff` had reported the staleness in advance and named its whole
extent: one stale row plus the three derived totals that follow from it (active
31→30, archived 134→135, active_sole 12→11). It now reads `per-change sweep
ledger consistent with the corpus (165 rows)`, exit 0, and
`pytest tests/sequenced_after` is 162 passed where it was 3 failed.

## The four ideation paths, repointed — three stale, one that was ALREADY a declared dead reference

`ideation/staging/INDEX.md` (three sites, the staged topic's Exit-3 record) and
`ideation/brainstorm/medxchain-blockchain-medical-records.md` (one site) named
`openspec/changes/add-chain-anchoring/…`, which the move dissolved. Each now
names the archive path. The brainstorm site is the interesting one: its own
sentence already declared the reference dead — *"That path resolves once #513
lands and is a dead reference before then"* — so this repoint DISCHARGES a
disclosure the source made about itself rather than repairing an oversight, and
the sentence's historical framing is left exactly as written.

The INDEX also carried a claim the archive falsifies: **EXIT 3 IS THEREFORE
RATIFIED AND NOT REALIZED**; the contract family and its validator are a later
commission. That sentence was true when written and is not now. It is KEPT and
answered rather than rewritten — the lifecycle's rule for a superseded
statement — with the closing act named: realized #629 `11feff75`, completed
#657 `e65dcc48`, published `contract-v3.4` `807a4f47` / tag `a3309921`,
archived 2026-09-04.

## The sentinel pin — 70 -> 70, and the equality is why nothing else moved

RE-ENUMERATED WITH `pin_class.verify()` ON BOTH TREES rather than reasoned
about: `origin/main` and this branch each report **70 sites / 24 members**,
verdicts `pass` 53 / `not-applicable` 16 / `lost` 1, with
`lost_awaiting_record` 0, `uncovered` `()` and `clean` true — IDENTICAL. Unlike
PR #647, whose `supporting-docs/manifest.yaml` travelled into the archive and
so moved a pin site under a new path, this packet has NO `supporting-docs/`
directory at all, so no site travelled and no comment in
`tests/doc-health/test_sentinel_vocabulary.py` goes stale. The measurement is
recorded because "nothing moved" is a claim like any other.

## Gates at this head

`openspec validate --all --strict` 89 passed / 0 failed (unchanged from
`origin/main`'s 89 — 31 active + 58 specs becomes 30 active + 59 specs);
`proposal-support.py . verify` ok; `validate-sequenced-after.py . --ledger-diff`
consistent, 165 rows; `pytest tests/sequenced_after` 162 passed;
`pytest tests/doc-health` **1552 passed**; and `doc-health.py --single-repo`
taken at `origin/main` (`9420472e`, a detached worktree) and at this branch's
head gives a finding set that is IDENTICAL LINE FOR LINE once the
directory-derived repo identity is normalized — 6 critical / 4 error / 27
warning / 13 info on both sides, `diff` exit 0. The one headline number that
moves is the canon share, 35.4% → 36.6%, which is the promotion doing exactly
what a promotion does.

EXPECTED AND NOT THIS BRANCH'S DEFECT: `pytest tests/review_lane_pin` is 3
failed / 52 passed / 1 skipped, the three being
`test_floor_snapshot.py`'s `test_every_tracked_openspec_spec_path_is_on_the_floor`
and its two negative controls, each naming exactly one path —
`openspec/specs/chain-anchoring/spec.md`. The remedy is the two-repository act
the runbook fixes the order of, and it lands as a companion codexFactory pull
request before this pin advances onto it.

Lane: openxfactory-1d

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Re-pin merge-master core 6d35c4fe -> 76fa501c; floor 66 -> 67 (chain-anchoring)

Archiving `add-chain-anchoring` promotes
`openspec/specs/chain-anchoring/spec.md`. codexFactory's
`repository_gate_floor` for this repository is an EXACT ENUMERATION of that
surface, so the new spec arrived OFF the floor for the same structural reason
as the three promotions before it on this same day. The fourth advance of the
day, eight hours after the prior note called itself the last of the family —
which was accurate when written, and this is exactly the "whichever future
archive first does" it named.

Five sites move in this one commit, per the runbook and openxFactory PR #569:

  1. contracts/review-lane-pin.yaml            core_commit
  2. .github/workflows/merge-master-approval.yml PINNED_CORE_COMMIT
  3. .github/workflows/merge-master-approval.yml core checkout `ref:`
  4. .github/workflows/pytest-suite.yml          core checkout `ref:`
  5. contracts/review-lane-floor-snapshot.yaml   byte copy at the new commit

`6d35c4fecaa4af7a23134678f9239e409ff5215f` (codexFactory PR #198) ->
`76fa501cd1c846ca9676d901e41e33ae1e730733` (codexFactory PR #204, MERGE
COMMIT, 2026-09-04T23:47:59Z, verified an ancestor of codexFactory
origin/main immediately before this advance). entry_count 66 -> 67;
sha256 b890cf1d... -> c4a386dbbfff3b35c0ef0afd1b36932e181effb551a69434cb02b25332a59e78.

SNAPSHOT BYTE IDENTITY, measured three independent ways: (a) sha256 over
the 12809-byte file matches; (b) `git hash-object` on the vendored copy
equals the blob id codexFactory's own tree carries for that path at
76fa501c (`4dffee49`); (c) the pin suite's freshness comparison ran with the
pinned core checked out beside it: 56 passed, ZERO skipped.

THE FLOOR GREW BY EXACTLY ONE, AND IT IS THE SPEC. Whole diff against
6d35c4fe: one added entry line, the generated block's three regeneration
fields (generated_at / --ref 0ae7408 -> 3afd8a8, entry_count 58 -> 59),
and the document's two "8 + 1" self-descriptions moving 66 -> 67. PR #204
regenerated at openxFactory 3afd8a8 — THIS branch's own pushed head,
EXACTLY, the ledger commit that closes the archive — so the snapshot's
`generated_at` non-member value is the immediate parent of this commit.

NO COLLISION, measured directly: `git merge-base --is-ancestor origin/main
HEAD` holds on this branch (main 9420472 is an ancestor of 3afd8a8), so
no commit main gained after the branch was cut needed reconciling. main
carries 58 tracked paths under openspec/specs, this branch 59; the one
addition is this packet's own promotion. One regeneration at one tree
suffices; the second-lander remedy is not engaged.

HISTORY PRESERVED, LIVE CLAIMS RE-MEASURED: every remaining `6d35c4fe` in
the pin file and the caller header is prose describing the 16:02 advance,
retained as history. Live counts moved with the pin: pinned_members
SIXTY-SIX -> SIXTY-SEVEN and FIFTY-EIGHT -> FIFTY-NINE, "ALL THREE" -> "ALL
FOUR 2026-09-04 ADVANCES", the caller header's sixty-six / fifty-eight, the
snapshot generated_at note 0ae7408 -> 3afd8a8, and a seventh regeneration
appended to the block's provenance list.

LOCKSTEP RE-MEASURED, STILL DIVERGED: both xFactory judging surfaces were
read directly off xFactory main (f0ca0365, 2026-09-04T23:09:53Z) —
merge-master-approval.yml line 146 and council-convening-lane.yml line 302
— and both still name f4702f64 verbatim. Cause unchanged since 2026-09-01
and forced by the feature; the convergence obligation stands undischarged,
now owed against a floor moved SEVEN times, four of them this one day.

Validated on this tree:
  pytest tests/review_lane_pin          55 passed, 1 skipped, 18 subtests
  ... with PINNED_CORE_CHECKOUT present  56 passed, ZERO skipped
  pytest tests/doc-health               1552 passed
  pytest tests/sequenced_after          162 passed
  openspec validate --all --strict      89 passed, 0 failed
  validate-sequenced-after.py --ledger-diff  consistent, 165 rows
  all four YAML files re-parse

Refs #669
Lane: openxfactory-1d

Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 10, 2026
…one commit (as d118bc7 did)

Second commit on this branch, performing the flip the first commit named
as its own follow-up. contracts/review-lane-pin.yaml's lockstep.status
moves diverged -> converged, and a short append-only paragraph records
the flip. tests/review_lane_pin/test_review_lane_caller.py's
test_the_pin_records_its_lockstep_state_with_the_aggregation_pin moves
its asserted literal diverged -> converged in the same commit, and its
docstring gains one sentence narrating the 2026-09-10 convergence -
mirroring exactly how PR #483 (d118bc7) converged it and PR #569
(47f9008) diverged it again, both as two-file, one-commit acts.

No other assertion in that test needed to move: the reason/obligation
checks are already state-agnostic generic messages, and the
converged_with key (not diverged_from) has named the two xFactory
surfaces since d118bc7.

python3 -m pytest tests/review_lane_pin -q: 198 passed, 2 skipped (same
count as both commits before this one). scripts/review_lane_repin.py
no-op check re-run against the same freshly fetched
floor/openxfactory-review-authority-floor.yaml at
codeXfactory/codeXfactory@1f131a23: {"action": "noop", ...}, unchanged.

Lane: provenance-autonomous-merge

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Sonnet 5 <[email protected]>
brettheap pushed a commit that referenced this pull request Sep 11, 2026
…he reason

pytest itself is green post-shed: run 34607968174 printed `6876 passed, 6
skipped, 338 deselected, 171 subtests passed` and `selected=7053 passed=7047
skipped=6 failures=0 errors=0`, both named verdicts `passed`. The job still
redded, on all three pins, because they were cut on 2026-08-27 against a
repository that had not yet shed 319 paths.

WHAT MOVED AND WHY IT IS NOT WHAT THE PINS GUARD AGAINST. 111 of the shed's
paths are `test_*.py` files -- 71 to openXdox-code, 40 to openDox-code -- and
they now run in those repositories' own suites at the commits this one pins.
The tests did not stop being collected, which is the failure the floors exist to
catch; they stopped being THIS suite's tests, by a declared act whose every path
is a manifest row. `git diff --name-only origin/main...HEAD` carries no test
deletion that is not one of those rows.

  * MIN_SELECTED 7090 -> 7053 and MIN_PASSED 7070 -> 7047, pinned AT the
    measured runner numbers, the same discipline as the 2026-08-27 cut: a
    number this suite has actually met, subtest arithmetic included
    (6876 + 6 + 171 = 7053). They may only rise from here.
  * EXPECT_SKIPPED 21 -> 6. Of main's 21 runner skips, 15 lived in the moved
    test files -- including the "no aggregation checkout reachable from this
    tree" guard in tests/ideation-dashboard/test_session_harness.py, one of the
    two files carrying the guard strings the header names. The other,
    tests/domain_pin_setter/test_set_domain_openxfactory_pin.py ("no sibling
    LedgerxFactory checkout"), STAYS and still skips, which is why the number
    falls rather than going to zero. Nothing turned into a skip: the shed's own
    27 conditional skips, measured at dd0f307, were re-pointed at the pinned
    legs by 20cfd0b rather than left standing down.

Four statements that named 21 as a live number are moved with it (the header's
runner measurement, the pin's own first line, and the codexFactory-transfer
entry's two readings, which are pin-plus-two and pin-exactly rather than 23 and
21). The historical references -- the #569 design note and the 2026-08-27
measurement -- are left as history and said to be history.

tests/review_lane_pin: 198 passed, 2 skipped, 54 subtests.

Refs #656

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 19, 2026
…est literal move together, plus the stale refresh: path (#1123)

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

**The residue of Phase 0** — the two things the repin lane is deliberately too narrow to carry. **No pin value moves in this diff.**

RULED on openxFactory #656 comments **`5735889836`** (Q-D1 (a)+(c): arc F's de-floor waits for the split packet's archive; *this* is the routine additive cycle) and **`5738024711`** (Q-D3 (a)). Taken under the § 5.6 claim — #656 **`5728856032`**, codeXfactory/codexFactory #232 **`5728856293`**.

## What already landed, and what it left behind

codexFactory's hourly floor-regeneration lane acted on #1103's archive of the ratified `repromote-engineering-vocabulary` — an **addition with no removal** (`openspec/specs/openxfactory-engineering-adapter/spec.md`), so the lane regenerated rather than firing its additions-only refusal — opening codeXfactory/codexFactory **#491**, merged **`b21f0100`**. This repository's own repin lane then advanced the five pin sites in **#1122**, merged **`38f826c2`**.

Verified on `main` at `38f826c2` before writing this:

| site | reads |
| --- | --- |
| `contracts/review-lane-pin.yaml` `core_commit` | `b21f010013fa51960c77377a8582943435b6db32` |
| `merge-master-approval.yml` (`PINNED_CORE_COMMIT` + checkout `ref:`) | 2 hits on `b21f0100` |
| `pytest-suite.yml` core checkout `ref:` | 1 hit on `b21f0100` |
| `contracts/review-lane-floor-snapshot.yaml` | sha256 `b77b4e55…`, 71 paths, block `generated_at fc837df…`, `entry_count` 63 |
| `floor_snapshot.sha256` / `.entry_count` | `b77b4e55…` / `71` |

`scripts/review_lane_repin.py` writes `WRITABLE_PATHS` and nothing else, **by design**. So two things are owed by hand.

## 1. `lockstep.status` is now a false statement, and no test catches it

`converged` asserted that this file's `core_commit`, `opensoft/xFactory`'s `merge-master-approval.yml` and `council-convening-lane.yml`, and that repository's `MIGRATION_PIN` test constant all name `1f131a23`. **Measured at this edit on `opensoft/xFactory` `main`: all three still read `1f131a23` verbatim**, while `core_commit` here now reads `b21f0100`.

`MIGRATION_PIN` **does not move on a routine advance** — it advances only at a recorded re-point ceremony, gated on the golden characterization suite, the envelope re-validation and the live lane re-prove — so an advance between ceremonies necessarily re-diverges the pair. Left standing, `converged` is false **and green**: the assertion reads this file's own value, not the cross-repository fact.

So `status` and `tests/review_lane_pin/test_review_lane_caller.py`'s `test_the_pin_records_its_lockstep_state_with_the_aggregation_pin` literal move **in the same commit** — this field's own written convention, and what PR #483 (`d118bc79`), PR #569 (`47f90080`) and the 2026-09-10 flip each did, never the data alone.

`diverged` also **restores agreement with the header comment already standing above `lockstep:`**, which says the divergence is *"FORCED BY THE FEATURE, not chosen for freshness"* and that re-convergence is *"an act in ANOTHER repository"* — the R-5 aggregation re-sync, which still needs Brett Heap's word and is **not** taken here.

## 2. The `refresh:` string named a path that has not existed since 2026-09-09

It told the next operator to re-copy from `scripts/merge_master/openxfactory-review-authority-floor.yaml`. codexFactory's `relocate-review-authority-floor` D-1 moved the document to `floor/`. **#1122 is the first advance since that relocation which actually re-copied the witness**, so an operator following the instruction verbatim would have copied nothing. Corrected to `floor/openxfactory-review-authority-floor.yaml`.

## One tension recorded rather than edited away

`obligation:` reads *"Advance this pin only at such a ceremony"* — written 2026-09-05, when the advance was a hand act. `.github/workflows/review-lane-repin.yml` (`mirror-floor-regeneration-automation`, realized) now sweeps hourly and proposes exactly this advance, **with auto-merge armed**, whenever the pinned core's floor document moves — which a floor regeneration makes routine. Its substance still holds (five sites, one reviewed diff, the tests fail if any disagree); its *"only at a ceremony"* clause describes a world with no repin lane in it. Narrowing it is the ratifier's act, so the contradiction is named in `reason:` for the next reader rather than quietly rewritten.

## Scope and proof

* **Two files.** `contracts/review-lane-pin.yaml` (+47/−3) and one test literal. The vendored snapshot and both workflows are **not in the diff at all**.
* **No pin value moves:** `core_commit`, `floor_snapshot.sha256` and `floor_snapshot.entry_count` have **0 changed lines** between them.
* `pytest -q tests/review_lane_pin` → **198 passed / 2 skipped**, the `origin/main` baseline, with the assertion now reading `diverged` against the file's `diverged`.
* Touches no `openspec/changes/` path and no README OpenSpec Records block — **plain gate**. `contracts/review-lane-pin.yaml` is a floor chokepoint and CODEOWNERS-gated, so a human approves it (CSC-C10).


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 22, 2026
…literal, and the specs/025 row (#1136)

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

**`lockstep.status: diverged → converged`, with its test literal, in one commit — the fourth re-point ceremony discharged the obligation.** Plus the `specs/025` ledger row, which is two transitions stale and is caught up here.

## The act in the other repository

This file's `lockstep` block has said, since it was written, that re-converging is *"an act in ANOTHER repository and this pull request does not take it."* That act has now been taken. **`opensoft/xFactory#475` → merge commit `c88d1fdd`, 2026-09-21T21:55:36Z**, the FOURTH `MIGRATION_PIN` re-point ceremony, advanced `1f131a23 → b21f0100` at its three surfaces in one commit (`96d0b91b`, 3 files / 3 insertions / 3 deletions) on Brett Heap's explicit ceremony word of 2026-09-21 — *"(a) for all four, (i) for the tag, keep going"*, item 2, recorded at [#656 comment 5767804734](#656 (comment)).

**The direction matters and is the reason this convergence is a discharge rather than another advance.** The ceremony's target was not negotiated: `b21f0100` is the commit `core_commit` here has named since PR #1122 (merge `38f826c2`, 2026-09-18). The aggregation moved **to** this file. That is exactly what `obligation:` asks for — *"A future re-point ceremony should converge all three surfaces onto one commit"*.

**And the ORDER is the part that is genuinely first** — stated precisely, because a looser version of this claim was wrong and Copilot caught it (below). Every earlier convergence was a **paired window**: at the third, `opensoft/xFactory` PR #423 merged 2026-09-10T19:15:29Z and this file's `core_commit` followed the same evening at PR #922 (merge `6f95ff57`, 21:55:20Z) — two halves of one ruled pairing (OQ-1 option C, *"paired with openxFactory's five-site advance"*). This time the two moves are **three days apart** and were never a pairing: `core_commit` advanced on 2026-09-18 by an hourly lane that proposes such advances on its own, and the ceremony caught the aggregation up to where this file had been sitting since. That is the first time the aggregation has converged onto a commit this file was **already** pinned to.

## Measured, not assumed

Taken the way every measurement in this field has been taken, and deliberately taken **two commits past the ceremony merge**, at xFactory `main` `cfe27de3`, so the reading survives a routine submodule-pointer sync (PR #476) instead of resting on the merge commit alone:

| site | value |
| --- | --- |
| xFactory `.github/workflows/merge-master-approval.yml:152` | `b21f0100…` |
| xFactory `.github/workflows/council-convening-lane.yml:308` | `b21f0100…` |
| xFactory `tests/test_merge_master_workflows.py:66` `MIGRATION_PIN` | `b21f0100…` |
| openxFactory `contracts/review-lane-pin.yaml:60` `core_commit` (main `6b298a1e`) | `b21f0100…` |

Four sites, one commit. That a **routine** sync ran in between and left all three xFactory surfaces alone is itself the aggregation's working rule 2 holding: `MIGRATION_PIN` moves at a ceremony and at nothing else.

**And the ceremony's after-check passed**, which is what makes `converged` a claim about behaviour rather than only about text. Gates G1–G4 are recorded in `96d0b91b`'s own commit message; **G5** — the live lane re-proved at the NEW pin — is recorded at [xFactory#475 comment 5769610282](opensoft/xFactory#475 (comment)): three post-landing runs (`35660330263`, `35660933433`, `35661430301`) each concluded `success`, each with `b21f0100` read out of its own checkout log and **zero** occurrences of the superseded pin, each judging the **same candidate object** as the pre-act baseline run `35658107765`, and each emitting a decision whose canonical sha256 is identical to that baseline's. The pin moved and the verdict did not.

## What moves here, and why it is one commit

| file | change |
| --- | --- |
| `contracts/review-lane-pin.yaml` | `lockstep.status` `diverged` → `converged`; an appended `reason:` paragraph recording the convergence |
| `tests/review_lane_pin/test_review_lane_caller.py` | `test_the_pin_records_its_lockstep_state_with_the_aggregation_pin`'s asserted literal `diverged` → `converged`; one appended docstring paragraph |
| `specs/025-openxfactory-review-lane-caller/tasks.md` | task 6.5 gains a dated append; **stays unticked** |

The first two move **together, in one commit**, because that is this field's own written convention and what every prior transition did — PR #483 / `d118bc79` (converge), PR #569 / `47f90080` (diverge), the 2026-09-10 flip `d8bdc58a`, the 2026-09-18 re-divergence `7fd8fa5f`. The assertion is a literal `assertEqual`, not a membership test, so flipping the data alone turns a green `pytest-suite` red.

**No pin value moves in this diff.** `core_commit`, `floor_snapshot.sha256` and `floor_snapshot.entry_count` are untouched; the vendored snapshot and both workflows are not in the diff at all. Nothing here touches `MIGRATION_PIN` itself — that is the ceremony's act and it has already landed.

## Four decisions worth naming rather than leaving to be found

**1. `reason:` is APPENDED, not rewritten.** The field's own text states the convention (*"an appended fix, not an edit of it, per this field's own append-only convention"*), and all four prior transitions appended. The appended paragraph ends the field, so `reason:` now reads as the converged narrative — without deleting the dated measurements the ceremony trail is built on.

**2. Every SHA in the contract is written SHORT.** `test_the_pin_carries_exactly_one_commit_shaped_value` permits exactly ONE 40-hex token in the whole file, and that one is `core_commit`. Verified after the edit: the only 40-hex token in the file is `b21f010013fa51960c77377a8582943435b6db32`.

**3. `converged_with:` keeps TWO entries and gains no third.** The test at line 636 asserts `len == 2` with the message *"both xFactory merge-master surfaces must be named"*. Those two are the **judging** surfaces — where a core is actually checked out and run — while `MIGRATION_PIN` is the aggregation's own test holding them identical to each other. It is named in the measurement without being promoted to a member, as through both prior cycles. Adding a third would change a shape no transition has touched since `d118bc79`.

**4. The header comment above `lockstep:` is left exactly as written.** It still narrates the 2026-09-01/09-04 forced divergence and still ends *"written down as diverged"*. It is a **dated measurement**; the 2026-09-10 convergence left it standing for the same reason. Rewriting a dated measurement is how a record stops being one, and `lockstep.status` — not that comment — is where the live state is declared. The appended paragraph names this tension explicitly so the next reader finds it already seen.

## The `specs/025` row, and why it stays unticked

Task 6.5 was last written on **2026-09-02** (`47f90080`). Measured rather than remembered — `git log -- specs/025-openxfactory-review-lane-caller/tasks.md` records no commit after it — so **neither** lockstep transition since wrote there: `d8bdc58a` and `7fd8fa5f` each moved the contract and its test literal and stopped. The row was two transitions stale, and the append says so rather than quietly filling the gap. It now records all three: the 2026-09-10 convergence, the 2026-09-18 **routine** re-divergence, and this ceremony.

**It stays `- [ ]`, and the reason is new.** Its own criterion — *"BOTH halves true at once"* — is satisfied for the first time. What withholds the tick is not a missing act but the **durability** a tick asserts: since `mirror-floor-regeneration-automation` was realized, the hourly `review-lane-repin` lane can advance `core_commit` between ceremonies with auto-merge armed, and the 2026-09-18 re-divergence is precisely that happening. Convergence is therefore falsifiable by this repository's own automation within the hour, while a ticked box claims a standing state. The live state is `lockstep.status`; this row carries history — the same idiom as 6.3's *"STAYS UNTICKED, and the reason has changed"*. Ticking it, or narrowing the `obligation:` clause that still assumes only ceremonies advance this pin, is the ratifier's act.

## Proven

- `python3 -m pytest tests/review_lane_pin -q` → **198 passed, 2 skipped, 54 subtests** — the same counts `d8bdc58a` and `7fd8fa5f` each recorded, with the assertion now reading `converged` against the file's `converged`.
- `python3 openXwallet/scripts/wallet-yaml-syntax-gate.py .` (the pinned gate the required `wallet-validation` check runs) → **exit 0**.
- `scripts/validate-pin-registrations.py`, `scripts/validate-manifest-digests.py`, `scripts/validate-workflow-contracts.py` → **exit 0** each. No validator names this contract; `tests/review_lane_pin/` is what stops it drifting, by its own CODEOWNERS note.
- `yaml.safe_load` of the edited contract: `status: converged`, `len(converged_with) == 2`, exactly one 40-hex token in the file.

## Review round 1 — three findings, all fixed rather than argued

Copilot reviewed at `fe7ca396` and raised three Low findings. **All three were factual errors in text this branch added**, so all three were fixed (`587fdc40`), replied to with the measurement, and resolved — none was argued down.

1. **`contracts/review-lane-pin.yaml` — the "first convergence" claim was false.** The appended paragraph said this was the first convergence closing a re-divergence this repository caused; the 2026-09-10 flip already did that, closing the 2026-09-01 re-divergence the (b′) activation caused here by hand. The paragraph now says it closes the **2026-09-18** re-divergence, explicitly declines the broader claim, and states what is actually first — the unpaired order described above.
2. **`specs/025` — the count was wrong.** *"discharged and re-incurred TWICE MORE"* distributed "twice more" over both verbs. Measured from the paragraph above: **discharged twice more** (2026-09-10, 2026-09-21), **re-incurred once more** (2026-09-18). Fixed, and the ambiguous *"this row missed both"* became *"this row recorded none of the three movements"*.
3. **The test docstring carried an unqualified present tense.** *"THE CURRENT CONTRACT IS `diverged`; … is not taken here"* sat in the same docstring as the new paragraph and directly above the assertion, contradicting both. It moves to the past tense of its own dated measurement. **This is deliberately not done to the contract's header comment** one file over: that header is a dated narrative standing *above* the field, and `lockstep.status` is where the live state is declared, so the appended paragraph records that tension instead. A sentence inside the same docstring as its own contradiction is a different thing from a dated narrative elsewhere in the file.

A fourth correction was **self-caught** on a read-back and is not Copilot's (`ac764dbd`): the parenthetical pointed *"two paragraphs down"* at a paragraph one down.

## Review round 2 — one High finding, answered by measurement and **recorded in the file**

Copilot's review at `ac764dbd` carries exactly one finding, severity High: *routine `review-lane-repin` advances can leave `lockstep.status` and the test literal stale, so the next advance would have the contract reporting `converged` while xFactory sits on the old pin.*

**The premise is correct, and it was already in this diff** — appended `reason:` item (3) says this convergence *"IS FALSIFIABLE BY THIS REPOSITORY'S OWN AUTOMATION WITHIN THE HOUR"*. Measured at the source: `review_lane_repin.WRITABLE_PATHS` is `(PIN_FILE, SNAPSHOT_FILE, MERGE_MASTER_WORKFLOW, PYTEST_SUITE_WORKFLOW)`, within `PIN_FILE` it rewrites only regex-anchored pin sites, and **the string `lockstep` does not occur in that file at all** — so the lane cannot move this field even in principle.

**It does not argue for withholding `converged`, for three measured reasons.**

1. **The hazard is symmetric.** `diverged` is falsifiable by the same lane in the same way, and caught by nothing either — *"the assertion reads this file's own value, not the cross-repository fact"* (`7fd8fa5f`). Picking the value that is false today to guard against tomorrow is strictly worse.
2. **Today `diverged` is the false one.** Four measured sites name `b21f0100`, read at `cfe27de3`, two commits past the ceremony merge.
3. **The estate has already declared `converged` under exactly this regime.** `.github/workflows/review-lane-repin.yml` landed **2026-09-06** (`1897f282`, PR #715); the last `converged` declaration, `d8bdc58a`, is **2026-09-10** — four days later, lane live and auto-merge armed.

**And rather than leave the answer in a review thread, `016d055c` records the REMEDY SHAPE in the field itself**, because this file is where this repository keeps records: (a) widen the lane's writable set to this field and its test literal so an advance leaving the aggregation behind writes `diverged` in the same proposed diff; or **(b) make the cross-repository fact assertable at all** — nothing today reads xFactory's three surfaces and compares them to this value, which is why a false `status` survives in *either* direction until a human notices, and why 2026-09-18's survived eleven days. **(b) is the better fix**, because (a) still leaves this file's truth depending on a lane remembering to write it. Both are behaviour changes to a realized capability (`mirror-floor-regeneration-automation`) and go through OpenSpec — which is exactly why neither rides here, and is the same disposition `7fd8fa5f` recorded in this same field: *"Narrowing that clause is the ratifier's act, not this diff's."*

## Path class and landing

**No `openspec/changes/` path is touched, and the README "OpenSpec Records" block is not touched** — `specs/` is the Speckit feature tree. Rule 6's landing window therefore does not apply and this is a **plain gate**. `/contracts/review-lane-pin.yaml` is routed to @brettheap by CODEOWNERS and is a never-clearable floor member, so the merge-master lane will park it by design; the human gate is the landing act. **The holder lands this, not this actor.**


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants