Skip to content

Pin one --as-of clock across the self-gate's two report renderings - #614

Merged
brettheap merged 1 commit into
mainfrom
fix/613-self-gate-shared-as-of
Sep 3, 2026
Merged

brettheap merged 1 commit into
mainfrom
fix/613-self-gate-shared-as-of

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Lane: openxfactory-smalls

test_the_report_moves_only_in_this_family_s_lines renders the doc-health report of this checkout twice (with and without --skip-family modified-block-currency) and asserts every section but three is byte-identical, without ever passing --as-of. The runner defaults --as-of to datetime.now(timezone.utc).date() per invocation, so a run straddling midnight UTC gets two different aging dates and the staged-candidate-aging section legitimately differs between the two renderings, failing the assertion for a reason the family under test never touched.

What changed. tests/doc-health/test_modified_block_currency_self_gate.py: added a module-level _AS_OF computed once (before either rendering runs) and passed it as --as-of to both invocations inside _report(); added a paragraph to _report()'s docstring naming the flake and #613, matching the file's existing WHY-first style. No other test in tests/doc-health/ needed the same fix — the 8 sibling files that render through runner.main() directly (test_duplicate_packet.py, test_ideation_readiness.py, test_ideation_routing.py, test_derive_possibles_dispatch.py, test_promotion_fidelity.py, test_readiness_dispatch.py, test_document_catalog.py, test_suite.py) already pass a shared --as-of on every comparison call site, and test_modified_block_currency_reporting.py calls report.render(AS_OF, ...) in-process with conftest's fixed constant rather than shelling out to the CLI, so it never hits the per-invocation default at all. No product code changed — the runner's today-UTC default is correct for operators.

Proof. python3 -m pytest tests/doc-health/test_modified_block_currency_self_gate.py::test_the_report_moves_only_in_this_family_s_lines -v passes with the fix (229s). A throwaway script reran the real CLI twice with two explicit, different --as-of dates (today vs. yesterday, standing in for a midnight straddle) and applied the test's own _sections()/differing <= permitted logic: ### staged-candidate-aging moved outside the permitted set (e.g. staged topic untouched 46 days vs 45 days), confirming the assertion would fail exactly as #613 describes when the two renderings do not share one clock. python3 -m pytest tests/doc-health -q -x passes: 1500 passed, 7 warnings, 490.63s.

Closes #613

🤖 Generated with Claude Code

https://claude.ai/code/session_019SkomVcCsRnrwizM9DYUny

)

test_the_report_moves_only_in_this_family_s_lines renders the doc-health
report twice, and the runner defaults --as-of to today UTC per invocation —
a run straddling midnight gets two aging dates and staged-candidate-aging
legitimately differs, failing a byte-identity assertion the family under
test never touched. _report() now passes a date computed once at import
(_AS_OF) to both renderings, so they share their clock by construction.

Swept the other tests/doc-health files for the same double-rendering
comparison shape: the 8 files calling runner.main directly already pass a
shared --as-of on every call site, and test_modified_block_currency_
reporting.py calls report.render(AS_OF, ...) in-process with conftest's
fixed constant, so neither had the per-invocation-default exposure this
file's subprocess-based _report() had.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_019SkomVcCsRnrwizM9DYUny
Copilot AI lite review requested due to automatic review settings September 3, 2026 13:15

@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 ✨

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

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.

🟢 Approval recommended

The change is tightly scoped to a test-only flake fix and consistently applies a single --as-of value across both report renderings without affecting product code.

Pull request overview

This PR fixes a midnight-UTC flake in the doc-health modified-block-currency self-gate test by ensuring both CLI report renderings share a single --as-of date, so time-based “aging” sections don’t legitimately diverge between invocations.

Changes:

  • Introduces a module-level _AS_OF computed once in tests/doc-health/test_modified_block_currency_self_gate.py.
  • Passes --as-of _AS_OF to both invocations within _report() so the two report renderings are comparable even if the run crosses midnight UTC.
  • Expands _report()’s docstring to document the flake mechanism and reference #613.
File summaries
File Description
tests/doc-health/test_modified_block_currency_self_gate.py Pins a single --as-of date across the test’s two CLI report renders to prevent midnight-UTC drift in aging sections.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

@brettheap

Copy link
Copy Markdown
Contributor Author

RULING for lane openxfactory-smalls PR #614 (head dc838e8f): Brett Heap, 2026-09-03T13:45Z, "merge all six". Admin-merged on that word — PRs opened as brettheap cannot be self-approved, so the review gate is cleared by his recorded word rather than a click. CI: all checks green on this head. Codex: quota-refused, never reviewed. Copilot: approval recommended.

Lane: openxfactory-smalls

@brettheap
brettheap merged commit ac88a7e into main Sep 3, 2026
6 checks passed
@brettheap
brettheap deleted the fix/613-self-gate-shared-as-of branch September 3, 2026 13:45
brettheap added a commit that referenced this pull request Sep 3, 2026
…611/#614/#602/#604: README both sides; corpus pin re-derived a third time

`main` moved seven merges past this branch's base `6da1e1f5` while PR #608
sat awaiting the convener's merge word — #611 (archived
`declare-spent-bundle-state`: realized #587 `3fa222f3`, `main` green run
`33654163291`, four orchestrator decisions affirmed, promoted), #614 (pins
one `--as-of` clock across the self-gate's two report renderings), #602
(re-points a stale workspace record instead of returning "reconcile by
hand"), #604 (closes the oversized-upload duplicate-minting hole), plus
three more (#601, #599, #603) that touch neither conflicted file. GitHub
could no longer build the test-merge commit. Force-pushing is forbidden
here, so this is a CATCH-UP MERGE and not a second rebase.

TWO FILES CONFLICTED. `README.md` auto-merged cleanly — main removed the
`declare-spent-bundle-state` active row and added its archive entry, and
this branch's `create-medxchart-overlay-boundary` row stands exactly as
this branch wrote it; the diff against `origin/main` is that one row and
nothing else.

`tests/sequenced_after/test_sweep.py` conflicted. MAIN'S PIN BLOCK AND
MOVEMENT LOG ARE THE BASE (`git checkout --theirs`, keeping every entry
main has, #611's included), and the pin is then RE-DERIVED ON THE MERGED
TREE rather than netted out of arithmetic:

  main at 2b0615d                  33 active + 125 archived = 158 change
                                    ids, 108 co-modified, 50 sole
                                    modifiers, 20 / 13 active
                                    co-modified/sole
  merged tree                       158, 109, 49, 21 / 12
  merged tree, with only
  .../create-medxchart-overlay-boundary/specs/domain-descendant-boundary/
  moved aside                       158, 108, 50, 20 / 13
  origin/main at 2b0615d           158, 108, 50, 20 / 13

The exclusion reproduces main's own reading EXACTLY, and main's own tree
confirms that reading independently, so this branch's single `## MODIFIED
Requirements` delta over `domain-descendant-boundary` is the whole of the
difference between the two trees a third time: +1 `co_modified`, +1
`active_co_modified`, -1 `sole_modifiers`, -1 `active_sole`, and
`change_ids` and `active` not at all. No fourth change moved in the
window; #614/#602/#604 touch no `openspec/changes/**/specs/**` delta
(confirmed via `git diff --stat 6da1e1f..2b0615d -- openspec/changes/`,
which shows only #611's own rename).

The five pinned values become, all measured and none inferred:

  sweep.co_modified          == 109
  sweep.active_co_modified   == 21
  sweep.change_ids - 1       == 157   (held through #611's archive and this
                                      ratification alike)
  sweep.sole_modifiers - 1   == 48    (was 49 on main after #611)
  sweep.active_sole - 1      == 11    (was 12 on main after #611)

The pin moves in the SAME COMMIT as the corpus, which is that test's own
protocol.

VALIDATION ON THE MERGED TREE:

  openspec validate create-medxchart-overlay-boundary --strict   valid
  openspec validate --all --strict                               86 passed,
                                                                 0 failed
                                                                 (86 items)
  python3 -m pytest tests/sequenced_after -q                     118 passed
  scripts/doc-health.py --single-repo .                          6 critical,
                                                                 6 error,
                                                                 29 warning,
                                                                 14 info,
                                                                 0 new
                                                                 regressions

The `--all --strict` total moved 87 → 86 because #611 ARCHIVED an active
change (`declare-spent-bundle-state`) without adding a replacement; this
packet adds none and moves it not at all. The doc-health report is
IDENTICAL to the same run on `origin/main` at `2b0615da` in every finding
and count once the checkout directory name is normalised — the two runs
differ only in one `staged-candidate-aging` trend line's `min=` day count
(0 vs 1, both `class="contested"`, no action required), a clock artifact
of the two runs' wall time and not a corpus difference. `grep -c
create-medxchart-overlay-boundary` on this branch's report is 0.

The two `review/` records still state the pre-merge readings and are
corrected in the commit that follows this one, before capture — capture
is the merge of PR #608, which has not merged.

Lane: openxfactory-max001

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012RQo21NbWtnTVsb6JU67at
brettheap added a commit that referenced this pull request Sep 3, 2026
… a third time pre-capture (main at 2b0615d)

CAPTURE IS MERGE, AND NOTHING IS MERGED. `record-immutability` forbids editing a
`Status: record` document AFTER capture; capture is the merge of the pull
request that establishes it, and PR #608 has not merged. These two records have
therefore never been captured, and correcting them on the branch is lawful. No
capture happened before this merge and none is claimed.

WHAT MOVED, AND WHY. `main` moved seven merges past this branch's previous
catch-up point `6da1e1f5` — #611 (archived `declare-spent-bundle-state`:
realized #587 `3fa222f3`, `main` green run `33654163291`, four orchestrator
decisions affirmed, promoted), #614, #602, #604, plus #601/#599/#603, which
touch neither this file nor the corpus pin — and this branch took the second
catch-up merge at `5cf9a67b` in the commit directly below. Of the seven, only
#611 moves the live corpus pin, and it moves exactly one of its five readings:
archiving a co-modified ACTIVE change lowers `active_co_modified` alone,
leaving the corpus-wide `co_modified`, `sole_modifiers`, `active_sole` and
`change_ids` untouched.

COUNTS MOVED, AND ONLY COUNTS:

  openspec validate --all --strict        87/87 -> 86/86
                                          (#611 ARCHIVED one ACTIVE change
                                          without adding a replacement; this
                                          packet adds none and moves this
                                          total not at all)

  this branch's own sweep                 158 / 109 / 49 / 22 / 12
                                          -> 158 / 109 / 49 / 21 / 12
                                          (change ids / co-modified / sole
                                          modifiers / active co-modified /
                                          active sole)

  measured-by-exclusion baseline,         158 / 108 / 50 / 21 / 13
  which is main's own reading             -> 158 / 108 / 50 / 20 / 13

so this packet's contribution, restated from main's newer baseline, still
reads `co_modified` 108 -> 109, `active_co_modified` 20 -> 21, `sole_modifiers`
50 -> 49 and `active_sole` 13 -> 12 — the same +1 / +1 / -1 / -1 shape it has
carried through every re-derivation, with `change_ids` and `active` still
moving not at all.

MEASURED BY EXCLUSION, NOT INFERRED. The baseline above was proved by moving
`openspec/changes/create-medxchart-overlay-boundary/specs/domain-descendant-boundary/`
aside on the merged tree and re-running
`python3 scripts/validate-sequenced-after.py . --sweep`, and independently
confirmed by running the same sweep on `origin/main` at `2b0615da` itself,
which prints the same 158 / 108 / 50 / 20 / 13.

NOTHING ELSE IN THE RECORDS CHANGED. Beyond those counts and the `Captured:`
header naming the third tree, no governance statement, no evidence block, no
console output, no finding and no citation moved. The full account is
`verification-2026-09-03.md` § 9's "RE-DERIVED A THIRD TIME" paragraph and the
matching line added to `ratification-2026-09-03.md`'s corrected-pre-capture
paragraph.

Lane: openxfactory-max001

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012RQo21NbWtnTVsb6JU67at
brettheap added a commit that referenced this pull request Sep 3, 2026
This branch was authored against `origin/main` at `7af2725c`, which is the
real merge base — not `2b0615da`, which is itself a later `main` commit. Main
moved on by the ratifications of `create-medxchart-overlay-boundary` (#608)
and `create-medxpractice-overlay-boundary` (#609) — BOTH RATIFIED AND STILL
ACTIVE, neither archived — and by #614, #602, #604, #601, #599 and #603.

TWO CONFLICT POINTS, both named in advance by this branch's own README block
and sweep docstring, and both resolved by KEEPING BOTH SIDES rather than by
taking either wholesale.

README.md — the "OpenSpec Records" block auto-merged, the two sides having
touched disjoint regions, and the result was checked rather than assumed:
main's expanded RATIFIED entries for both overlay-boundary packets stand under
"Active changes", and this branch's move of `add-project-repo-schema` out of
that list and into "Archived changes" stands as well. This branch's "NOTE FOR
THE NEXT REBASE" paragraph is rewritten to RECORD its own discharge instead of
still demanding it.

tests/sequenced_after/test_sweep.py — the corpus pin, the one textual
conflict. `active_co_modified` resolves to 20, WHICH IS NEITHER SIDE'S NUMBER:
#608's ratification made an already-active change a co-modifier and raised it
20 -> 21, this branch's archive of `add-project-repo-schema` moved a
co-modified active change out of the active corpus and lowered it 20 -> 19,
and on the merged tree both are true at once so the two moves cancel at 20.
MEASURED, not netted by arithmetic, on both trees via
`python3 scripts/validate-sequenced-after.py . --sweep`: `origin/main` at
`0bf37d14` reads 33 active + 125 archived = 158 change ids, 109 co-modified,
49 sole modifiers, 21 / 12 active co-modified/sole; the merged tree reads
32 active + 126 archived = 158, 109, 49, 20 / 12. EXACTLY ONE READING DIFFERS,
main's own reading being the by-exclusion control since this archive is the
only difference between the two trees. Every other pin therefore keeps MAIN'S
post-#608/#609 value — `co_modified` 109, `sole_modifiers - 1` 48,
`active_sole - 1` 11, `change_ids - 1` 157 — and BOTH movement-log bullets are
kept, main's and this branch's, with a third recording the merged reading.
#609 moves no pin at all: its delta carries no `## MODIFIED Requirements`
block, so it was and remains a sole modifier.

NO `contract-v3.1` INVENTORY MEMBER MOVED. The 283 registered paths were
intersected with everything `main` touched across `7af2725c..0bf37d1`: main's
only edits under `contracts/`, `scripts/` or `docs/` are
`scripts/nlm_auth.py`, `scripts/sync-notebooklm-books.py`,
`scripts/validate-manifest-digests.py` and four `docs/notebook*` /
`docs/lifecycle-notebook-projection.md` files, and NONE of the seven is a
registered row. The inventory therefore stands as cut and is not rebuilt.

Lane: repo-shape
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_015WekBEXf55Xv64psGe5t3T
brettheap added a commit that referenced this pull request Sep 3, 2026
…n evidence

`tasks.md` § 6 and the ratification record carried "(recorded at the
ratification commit)" placeholders for the two suite gates. They now carry the
measurements: `openspec validate --all --strict` 87 passed / 0 failed, and
`pytest tests/doc-health` 1528 passed / 0 failed on the landed tree against
1500 at the merge-base — this change adds 28 test items.

AND THE ONE FLAKE IS WRITTEN DOWN RATHER THAN SWALLOWED. An intermediate run of
the identical tree failed `test_the_report_moves_only_in_this_family_s_lines`
with an `info` movement of 11 against the family's 10 — one NON-FAMILY `info`
finding absent from one of that test's two report renderings. It did not
reproduce in that run's predecessor or its successor over the same tree, and it
cannot be this change's: the missing finding belongs to another family, and
every finding this change can emit has an empty population here. The class is
the one #613/#614 narrowed by pinning `--as-of` across both renderings.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD
brettheap added a commit that referenced this pull request Sep 3, 2026
… second baseline

The evidence table was measured against merge-base 2b0615d. After merging
origin/main twice (for #614's clock pin, then for #621), it is re-measured
against 995c0ad: base 6/8/29/14, head 6/8/29/16 — the same +2 info and
nothing else, against a newer baseline whose own error band had moved 6 -> 8
by main's landings.

CI on the merged head b74c846 passes all five required checks, pytest-suite
included. The local full-suite run's 95 failures are environmental — no
initialized openXwallet submodule in the scratch worktree, identical on the
untouched origin/main worktree beside it.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD
brettheap added a commit that referenced this pull request Sep 3, 2026
…03, realized by #593 (3c237cd), green on main (run 33717394896) (#615)

* Archive update-standards-body-current-publications: ratified 2026-09-03, realized by #593 (3c237cd), green on main (run 33717394896)

Brett's word: "archive it". Finishes work an Opus agent left on disk,
uncommitted, after being killed twice by provider errors — verified
rather than redone: the 8-file move to
openspec/changes/archive/2026-09-03-update-standards-body-current-publications/,
the byte-identical promotion to
openspec/specs/standards-body-registry/spec.md (real Purpose section,
requirements diff-clean against the delta), and the README "OpenSpec
Records" entry.

Took a catch-up merge of origin/main first: declare-spent-bundle-state's
own archive (PR #611, squash 7af2725) landed on main after this
branch was cut from 6da1e1f, so every gate and pin below is
re-measured against 7af2725 rather than the stale base. Corrected the
sequenced_after live pin accordingly in the same commit as the corpus
move (its own protocol): active_sole - 1 falls 12 -> 11 (this archive,
a SOLE modifier); active_co_modified already held at 20 from the
sibling archive this branch merged, not from this one. Ran
`python3 scripts/validate-sequenced-after.py . --sweep` on both trees
to confirm: 32 active + 126 archived = 158, 108, 50, 20 / 12.

Also added tasks.md 5.7 naming this PR as the landing act for the
archive that ran uncommitted in the isolated clone.

Gate evidence: PR #593 squash 3c237cd
on main; pytest-suite run 33717394896 (2026-09-03T05:26Z) and
signed-execution-chain-gate both success on that commit.

Validated: openspec validate --all --strict 86 -> 86 passed (33
active + 53 specs -> 32 active + 54 specs); pytest tests/doc-health
1500 passed either side; pytest tests/test_standards_body_registry.py
17 passed; pytest tests/sequenced_after 118 passed;
scripts/validate-omnigent-contracts.py all checks passed; doc-health.py
--single-repo . 6 critical / 6 error / 29 warning / 13 info either
side, 0 new regressions, and --family promotion-fidelity /
duplicate-packet / status-validity all zero findings either side.

Lane: openxfactory-f2

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

* README: re-measure the archive entry's gates against the second catch-up merge

origin/main moved 5 more commits (#603 #599 #601 #614 #602, tip
1c3e744) while this PR was being finished. None touch this packet's
files, so the archive act itself is unaffected, but the doc-health.py
--single-repo info count and the base commit cited in the entry were
stale. Re-measured back-to-back on 1c3e744 (before) and the merged
tree (after): 6 critical, 6 error, 29 warning, 14 info, 0 new
regressions, unchanged by this act. Also records the one transient
pytest tests/doc-health network-read failure
(test_this_repository_can_consult_the_retention_namespace) that a
clean rerun did not reproduce.

Lane: openxfactory-f2

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

* tasks.md: name PR #615 as the landing act

Fills the placeholder §5.7 left after PR creation.

Lane: openxfactory-f2

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

* tasks.md: stop claiming PR #615 already landed on main

Copilot review round 1, taken: 5.7 said "LANDED ON main" while the PR
is still open. Corrected to state the PR exists and is open, not
merged; a follow-up line records the squash SHA once it actually
merges.

Lane: openxfactory-f2

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

* tasks.md: name the third catch-up merge (#604)

A fourth commit landed on origin/main after the round-1 fix; §5.7 said
"TWO catch-up merges" when a third had since happened.

Lane: openxfactory-f2

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

* Fix two Markdown rendering defects Copilot flagged

Round 2/3: an inline-code span split across two lines in tasks.md
(inline spans can't contain a newline) and a stray line break in
README.md that orphaned "with" on its own line. Cosmetic only, no
claims changed.

Lane: openxfactory-f2

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

* Advance the review-lane pin onto codexFactory's regenerated 58-entry floor

THE OPENXFACTORY HALF OF A TWO-REPOSITORY REPAIR THIS PR'S OWN PROMOTION
FORCED. Promoting `standards-body-registry` adds a path under
`openspec/specs/`, and codexFactory's `repository_gate_floor` for this
repository ENUMERATES that surface exactly — so the new spec arrived OFF the
floor and `tests/review_lane_pin/test_floor_snapshot.py`'s LQ-A7 coverage
assertion reddened the REQUIRED `pytest-suite`. That is the guard working: a
spec the floor does not carry is a spec the floor does not protect.

THE ORDER IS FORCED AND IS THE RUNBOOK'S
(`docs/repository-gate-floor-repair-runbook.md` in the pinned core, and the
ordered repair the assertion prints on failure): codexFactory regenerates the
block at an openxFactory commit that ALREADY carries the new path, and only
then may this pin advance onto it — a pin cannot name a document that does
not yet exist.

CODEXFACTORY'S HALF LANDED FIRST: PR #184, merge
`8cb173738ebecd773eadd1b77b11d29029b37382` (2026-09-03T19:53:55Z),
regenerated by `scripts/merge_master/generate_specs_floor_block.py` at
openxFactory `c9928846` — this branch's own head, the only tree carrying the
new path.

FIVE SITES MOVE, IN ONE LOGICAL CHANGE, because the tests fail if any of them
disagree:

  contracts/review-lane-pin.yaml          core_commit  db157dbb -> 8cb17373
  .github/workflows/merge-master-approval.yml  PINNED_CORE_COMMIT (same)
  .github/workflows/merge-master-approval.yml  core checkout ref: (same)
  .github/workflows/pytest-suite.yml           core checkout ref: (same)
  contracts/review-lane-floor-snapshot.yaml    re-copied at the new commit

and the snapshot's declared witnesses move with it:
`entry_count` 57 -> 58, `sha256` bf7a6b69… ->
22993960b31ff7853df719a701b0f53cd62c420ed7fe25b2da1ba6646bf16f7b.

THE SNAPSHOT IS A WITNESS AND WAS NOT HAND-EDITED. It is a byte copy fetched
from the pinned core at `8cb17373` and verified two independent ways: sha256
as above over 9219 bytes, and GIT'S OWN content addressing —
`git hash-object` of the vendored file equals the blob sha codexFactory's
tree carries at that path and commit, `cdb08cd603a0d10c44f3c843e024d73bd1d6e1ce`.
The freshness comparison in `test_floor_snapshot.py` — which SKIPS when the
core is absent — was additionally run WITH the core on disk
(`PINNED_CORE_CHECKOUT=…`): 56 passed, ZERO skipped, so the byte-for-byte
assertion CI performs actually ran and passed here.

MEASURED, NOT ASSUMED. The new floor is the old floor plus exactly
`openspec/specs/standards-body-registry/spec.md` — nothing removed, no dead
entry introduced. 58 entries = the same 4 hand-reasoned chokepoints + 54 spec
paths (was 53). Coverage over the merged tree: all 54 tracked paths under
`openspec/specs/` are floored, 0 uncovered, and 0 floored spec paths are dead.
`project-repo-schema` has NOT landed, so 54 is the correct surface.

LOCKSTEP RE-MEASURED RATHER THAN CARRIED OVER: xFactory's two judging surfaces
still name `f4702f64` (read from xFactory main 2026-09-03), so
`lockstep.status` stays `diverged` and the obligation to converge at a future
re-point ceremony stands. The gap widened by ONE ENTRY, not by a new kind of
divergence — the cause is unchanged from 2026-09-01 and still forced by the
feature.

Also files forward the archived packet's tasks.md §5.7 with the floor repair.
The squash SHA is deliberately NOT invented there: it is filled in at landing
by the merge-provenance comment.

Validated: tests/review_lane_pin + tests/sequenced_after +
tests/test_standards_body_registry.py = 190 passed, 1 skipped (that skip being
the freshness comparison, separately exercised green with the core present);
tests/doc-health = 1500 passed; `openspec validate --all --strict` = 86 passed
0 failed; `scripts/validate-omnigent-contracts.py` = all checks passed.

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

* Anchor §5.7's not-yet-merged claim to its writing instant, not the present tense

TAKEN FROM COPILOT's review of `0d17d1be` ("Needs a closer look"): the §5.7
prose asserts landed state in the PRESENT TENSE — "still not merged", "`main`
does not carry this archive" — and this packet is ARCHIVED, so that wording
goes FALSE the instant the pull request merges and leaves a permanent stale
claim inside a record.

The finding is right about the shape and this commit takes it FOR THE HALF THIS
LANE AUTHORED. The claim is now ANCHORED TO AN INSTANT — "as of this note's
writing, 2026-09-03, branch head `0d17d1be`, this packet had not merged" — so
it stays TRUE after the merge instead of decaying, and it points a reader
wanting the LANDED state at the merge-provenance comment rather than at a line
that speaks only for the moment it was written. No fact changes; the tense
does.

WHAT THIS COMMIT DOES NOT TOUCH, AND WHY. Copilot also flagged lines 172 and
184-189 — the PRIOR session's §5.7 prose, not this lane's. Those are left
alone on two grounds: this lane's scope is to APPEND a dated note to §5.7, not
to rewrite another lane's record text; and the phrasing there is the
repository's deliberate doctrine, stated in its own voice ("NOT YET TRUE, AND
NAMED SO IT STAYS FALSE UNTIL IT ISN'T"), which exists to stop a packet
claiming landed state before it lands — the archive-gate rule in
`docs/release-realization-flow.md` § The Archive Gate, and the
claim-outrunning-machinery lesson family. Rewriting it as a bare "TBD" would
weaken a guard rather than fix a defect. That text also already commits to
completing the provenance at landing, which is the act that retires the
staleness.

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

* Advance the review-lane pin onto the 63-entry floor: second lander of the two-packet collision

THE OPENXFACTORY HALF OF THE FLOOR REPAIR THIS PACKET'S OWN PROMOTION FORCED,
TAKEN A SECOND TIME AND FOR A REASON THAT IS NOT A CORRECTION OF THE FIRST.

TWO openxFactory packets each promoted a NEW capability on 2026-09-03, and
codexFactory's `repository_gate_floor` for this repository is REGENERATED BY
ENUMERATING A TREE rather than by editing a list. `add-project-repo-schema`
(PR #616, merged 20:49Z as `19d00872`) landed first and codexFactory PR #183
(`605d48ac`) regenerated for it. codexFactory PR #184 (`8cb17373`) then
regenerated for THIS packet at `c9928846` — PR #615's PRE-MERGE branch head,
which did not yet carry #616's promotion — so its block went 54 -> 54 rather
than 54 -> 55 and SILENTLY DROPPED `openspec/specs/project-repo-schema/spec.md`,
the entry #183 had just landed.

NEITHER EARLIER PULL REQUEST IS DEFECTIVE. Each regenerated at a real tree,
exactly as CSC-C7 requires. This is the failure mode a two-lander collision
HAS, and the pinned core's `docs/repository-gate-floor-repair-runbook.md`
already answers it by making the SECOND LANDER regenerate once at its OWN
POST-MAIN-MERGE head.

AND `main` WAS NEVER BROKEN IN THE INTERVAL — stated so nobody hunts an
incident that did not happen. `main`'s pin named `605d48ac`, whose 58-entry
floor covers `main`'s 54-spec tree INCLUDING `project-repo-schema`. The gap
becomes reachable only when THIS packet's fifty-fifth spec lands, which is the
moment this advance exists to serve.

CODEXFACTORY'S HALF LANDED: PR #186, MERGE COMMIT (not squash)
`8f770afbf86043ee0f5494ded0f12f51c2a9b45e`, 2026-09-03T21:55:35Z, regenerated
at openxFactory `8d893a0f` — this branch's merge of `main` `19d00872`, and the
FIRST COMMIT ANYWHERE carrying fifty-five tracked paths under
`openspec/specs` — restoring `project-repo-schema` BESIDE
`standards-body-registry`. codexFactory `main` was re-verified at that same
commit by `git ls-remote` immediately before this advance rather than assumed.

FIVE SITES MOVE, IN ONE LOGICAL CHANGE, because the tests fail if any of them
disagree:

  contracts/review-lane-pin.yaml               core_commit  605d48ac -> 8f770afb
  .github/workflows/merge-master-approval.yml  PINNED_CORE_COMMIT (same)
  .github/workflows/merge-master-approval.yml  core checkout ref: (same)
  .github/workflows/pytest-suite.yml           core checkout ref: (same)
  contracts/review-lane-floor-snapshot.yaml    re-copied at the new commit

and the snapshot's declared witnesses move with it: `entry_count` 58 -> 63,
`sha256` 6ab79400… -> b8f95136916fc58d297a8319408bebbffaf327790fd2885a677e22de193f41f8.

THIS PIN NEVER NAMED `8cb17373`, AND THAT IS RECORDED RATHER THAN TIDIED AWAY.
Commit `0d17d1be` on this branch DID advance onto it at 16:24, and the later
catch-up merge of `main` — which carried PR #616's own advance to `605d48ac` —
resolved the pin sites to `main`'s side, so the intermediate 58-entry state
`8cb17373` describes was never the state this branch shipped. A reader
comparing this file's history to codexFactory's will see #184 land and this pin
skip it; that is the collision, not a lost edit.

THE SNAPSHOT IS A WITNESS AND WAS NOT HAND-EDITED (CSC-C7). It is a byte copy
fetched from the pinned core at `8f770afb` and verified THREE independent ways:
sha256 as above over 12492 bytes; GIT'S OWN CONTENT ADDRESSING —
`git hash-object` of the vendored file equals the blob sha codexFactory's tree
carries at that path and commit, `351c47fb5bfad13697dc6c777b9bb17a147e8e45`;
and `cmp` against a REAL shallow checkout of codexFactory at that commit. The
freshness comparison in `test_floor_snapshot.py` — which SKIPS when the core is
absent — was additionally run WITH that core on disk
(`PINNED_CORE_CHECKOUT=…`): 56 passed, ZERO skipped, so the byte-for-byte
assertion CI performs actually ran and passed here.

THE FLOOR GREW BY FIVE, AND ONLY ONE OF THEM IS A SPEC. Measured on the merged
tree, not inferred from the proposal.

  * THE SPEC: `openspec/specs/standards-body-registry/spec.md`. The generated
    block goes 54 -> 55 tracked paths. Coverage over this branch's merged tree:
    all 55 tracked paths under `openspec/specs` are floored, 0 uncovered, and 0
    floored spec paths are dead. Both `project-repo-schema` and
    `standards-body-registry` are present.
  * THE OTHER FOUR ARE CHOKEPOINTS, NOT SPECS, and they arrive here for the
    first time: codexFactory PR #182 (merge `e5534552`, 20:51:52Z — AUTHORED
    BEFORE #183/#184 BUT MERGED AFTER BOTH, which is why they surface at an
    advance whose stated object is a spec) floored the sibling
    FACTORY-IDENTITY REGISTER FAMILY BY NAME —
    `governance/factory-identity/register.yaml` and the wallet, grant and
    custody attestation beside it — realizing THIS repository's own ratified
    `add-cpc-clearing-boundary` task 2.7. By name is FORCED, not preferred:
    `_parse_exact_path` refuses wildcards and trailing slashes, so the
    directory cannot be floored as a prefix. All four exist on this tree,
    verified path by path, so the advisory lane gains four reachable floor
    paths and no dead entry. The document's hand-reasoned chokepoints go
    4 -> 8, and its own self-description moves with it: 4 + 1 becomes 8 + 1.

LOCKSTEP RE-MEASURED RATHER THAN CARRIED OVER: both xFactory judging surfaces
still name `f4702f64` (read directly off xFactory `main` 2026-09-03 — the two
`ref:` literals in `merge-master-approval.yml` and
`council-convening-lane.yml`), so `lockstep.status` stays `diverged` and the
obligation to converge at a future re-point ceremony stands. THE GAP WIDENED BY
FIVE ENTRIES, NOT BY A NEW KIND OF DIVERGENCE: the cause is unchanged from
2026-09-01 and is still forced by the feature.

Also takes a FIFTH catch-up merge of `origin/main` (`9a773a31`, the
`contract-v3.2` cut) — merged, never rebased — and files the archived packet's
tasks.md §5.7 forward with the completed repair. The squash SHA is deliberately
NOT invented there: it is filled in at landing by the merge-provenance comment.

Validated: tests/review_lane_pin + tests/sequenced_after +
tests/test_standards_body_registry.py = 190 passed, 1 skipped, 18 subtests
passed (that one skip being the freshness comparison, separately exercised
green with the core present); tests/doc-health = 1500 passed;
`openspec validate --all --strict` = 86 passed, 0 failed;
`scripts/validate-omnigent-contracts.py` = all checks passed;
`import cryptography` = 41.0.7.

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

---------

Co-authored-by: openRepoShape CI <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
Co-authored-by: Brett Heap <[email protected]>
brettheap added a commit that referenced this pull request Sep 4, 2026
… origin may declare proposed_by/proposed_on, and approval becomes an addition (#318) (#619)

* Give a drafted-but-unapproved packet a lawful origin shape (#318)

An `ad_hoc` origin may now declare `proposed_by` + `proposed_on` in place of
`approved_by` + `approved_on`. Before this, a drafted-but-unapproved packet had
NO lawful shape: `ad_hoc` without `approved_on` was an error and no origin block
was an error, so the only mechanical remedies were to approve the change, delete
the draft, or write a date nobody gave — the last being the defect the field
exists to catch. Two medx boundary packets carried the finding long enough to
join the standing error baseline.

RULED 2026-09-03 by Brett Heap in session, verbatim "implement your
recommendations on all these"; the resolution for this issue is the RULING
comment on #318, which chose shape 1 and named the vehicle.

THE ENCODING, and it is the decision the ruling deliberately left open: `kind`
and `id` are fields the SUPPORT MANIFEST REPEATS, and this family reports a
manifest/packet disagreement as post-ratification mutation at `error` +
`contested`. A `kind: drafted` must become `ad_hoc` at approval, so that
spelling writes a contested-class mutation into the happy path of every packet
that gets approved. Under this one the identity never moves and approval is two
ADDED lines.

Two new finding classes, both with an empty population by construction:
`drafting-provenance-incomplete` (ERROR, mechanical) and
`unapproved-origin-at-ratification` (ERROR, `contested`) — a proposal whose own
`Status:` claims `ratified` or beyond over an unapproved origin, read through
`corpus.parse_status` + `promotion_fidelity.declared_standing` against the
existing `RATIFIED_OR_BEYOND`, fired only where the state is POSITIVELY
declared and never on the fact of archival.

`approved_on` is still required in full wherever approval is claimed, so
nothing already lawful changes shape. Measured: 109 ad-hoc origins in this
corpus, all with a complete approval pair, 0 with neither, 0 with half of one.

Proposal and realization land together, by the ruling. doc-health moves by +2
`info` and nothing else — this packet's own two MODIFIED blocks in the carriage
ledger. `_LEDGER_SUBJECTS` gains those two rows; the self-gate failed first, by
name, naming both, which is that assertion working.

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

* Record the landed gate numbers, and the one flake, in the packet's own evidence

`tasks.md` § 6 and the ratification record carried "(recorded at the
ratification commit)" placeholders for the two suite gates. They now carry the
measurements: `openspec validate --all --strict` 87 passed / 0 failed, and
`pytest tests/doc-health` 1528 passed / 0 failed on the landed tree against
1500 at the merge-base — this change adds 28 test items.

AND THE ONE FLAKE IS WRITTEN DOWN RATHER THAN SWALLOWED. An intermediate run of
the identical tree failed `test_the_report_moves_only_in_this_family_s_lines`
with an `info` movement of 11 against the family's 10 — one NON-FAMILY `info`
finding absent from one of that test's two report renderings. It did not
reproduce in that run's predecessor or its successor over the same tree, and it
cannot be this change's: the missing finding belongs to another family, and
every finding this change can emit has an empty population here. The class is
the one #613/#614 narrowed by pinning `--as-of` across both renderings.

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

* Refuse a half-given provenance pair in write_origin_block instead of dropping it

FOUND BY COPILOT ON PR #619, and it was a silent drop. The writer wrote only
pairs it found COMPLETE, so a caller handing it a full approval pair and a lone
`proposed_by` got a block with the stray field discarded and no word said — a
record that looks complete, produced by the writer whose own gate and nightly
family both report a half-declared pair as a defect.

It now raises `SupportError` naming what was given and what is missing. Four
parametrized tests pin it at either field of either pair, including the exact
shape Copilot named, and assert no packet file is written.

No spec text moves: the delta already says a provenance pair is declared in
full or not at all. The writer was not saying it.

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

* Re-measure the suite after the bot-round fix: 1532 / 0, 32 items added

Task 2.10's four parametrized tests landed after the Executed table was
written, so its number and the ratification record's said 1528 / 28. Measured
again on the landed tree rather than adjusted on paper.

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

* Move the live corpus-sweep pins this packet's two MODIFIED blocks move

CI caught what the local `pytest tests/doc-health` gate could not see:
`tests/sequenced_after/test_sweep.py`'s live sweep reads the WHOLE corpus for
changes sharing a (capability, requirement) key, so a packet carrying MODIFIED
blocks moves it. Measured on the merged tree: change_ids 158 -> 159,
co_modified 109 -> 110, active_co_modified 21 -> 22, sole_modifiers and
active_sole UNMOVED at 49 and 12.

THE RISE IS ONE, NOT TWO, and the file's own rule says a rise of one never
comes with the sole set falling. Co-modified membership is boolean, so this
packet enters once; and both its keys have the SAME single earlier owner, the
archived add-proposal-origin-contract that ADDED both requirements, already
co-modified through two other keys — doc-health's 'Deterministic check
families' (fifteen changes) and document-lifecycle's 'Proposal-owned
supporting documents' (two). Measured, not reasoned from the totals.

All three pins carry their dated narrative and the movement log gains a
bullet, in that file's own convention.

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

* Record the merged-tree gates: CI green on all five, +2 info against a second baseline

The evidence table was measured against merge-base 2b0615d. After merging
origin/main twice (for #614's clock pin, then for #621), it is re-measured
against 995c0ad: base 6/8/29/14, head 6/8/29/16 — the same +2 info and
nothing else, against a newer baseline whose own error band had moved 6 -> 8
by main's landings.

CI on the merged head b74c846 passes all five required checks, pytest-suite
included. The local full-suite run's 95 failures are environmental — no
initialized openXwallet submodule in the scratch worktree, identical on the
untouched origin/main worktree beside it.

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

---------

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

2 participants