Repository navigation
The ledger names its eighth subject: add-chain-attestation's block joined the population when #510 landed - #557
Conversation
…ined the population when #510 landed `add-chain-attestation`'s proposal merged to `main` on 2026-09-01 via PR #510 and this ledger did not move with it, so `test_every_carriage_ledger_finding_over_the_real_tree_is_named` has read one unnamed subject on every openxFactory pull request since — the estate's `pytest-suite` job red on work that touched nothing near it. Proven pre-existing on an untouched `origin/main` checkout at `b7dc5909`: 1 failed, 14 passed, the failure naming exactly `('add-chain-attestation', 'signed-execution-chain', 'A gate validates the short chain as a hash-linked chain')` and nothing else. THE GATE'S OWN WHAT-TO-DO IS THE AUTHORITY HERE, and it was followed in order: `quickstart.md` § WHEN THE GATE FAILS read before editing anything, then the re-measurement, then the named set. The quickstart's fourth case — "A new active change landed a lossy MODIFIED block. Add its triple. Read the finding first: if the block genuinely dropped an obligation, the right fix is in *that change*, not here." — is the one that applies, and the finding was read before the row was written. It is NOT a dropped obligation. Canon states this requirement in TRANCHE-ONE terms and tranche two cannot restate that sentence without falsifying its own delta; all nine uncarried units have a successor in the block that says more, never less, and the row's comment names each one. The count is not zero, so the movement-pin re-aim clause does not apply and those guards are untouched. Re-measured with the command the failure message prints: `python3 scripts/doc-health.py --single-repo . --family modified-block-currency` reads carriage ledger: 8 (`info`), every other arm of the family 0 — the seven subjects already named plus this one. One test file, three touches: the row and its comment, the movement-history line the ledger narrates each movement in, and the live "seven"/"eight" numeral in the arm's own docstring. Every numeral the module marks HISTORY is kept as written. Gates: `tests/doc-health` 1347 passed, 0 failed (the previously failing test now passes, nothing else moves); `OPENSPEC_TELEMETRY=0 openspec validate --all --strict` 81 passed, 0 failed, untouched; same-clock doc-health against an `origin/main` baseline in an identically named directory is BYTE-IDENTICAL — zero new findings, as a test-file edit changes no document. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
Pull request overview
Updates the doc-health “modified-block-currency” self-gate test ledger to recognize the newly landed add-chain-attestation MODIFIED-block finding, restoring green CI by ensuring all carriage-ledger subjects observed on the real tree are explicitly named.
Changes:
- Add
add-chain-attestation/signed-execution-chain/ “A gate validates the short chain as a hash-linked chain” to_LEDGER_SUBJECTSwith an explanatory movement note. - Update the test docstring to reflect the ledger’s current population (“seven” → “eight”).
- Extend the movement-history string in the failure message to include the new 2026-09-01 landing via PR #510.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Provenance: merging on Brett's standing in-session authorization (session openxfactory-f5, 2026-09-01, keep-going/merge-on-clear). The estate-unblock class: #510 landed without moving the carriage-ledger self-gate, reddening every openxFactory PR's pytest-suite; this one-file fix follows the gate's own printed WHAT-TO-DO and the quickstart's deliberate-generalization case, and CI is fully green on it (pytest-suite pass — the local env-timeout proven WSL2-only). CODEX: PROVIDER-REFUSED on continuing org limits (recorded, not read as clean); the edit is a named-subject ledger row per the gate's own instruction. reviewDecision per the standing browser-approve pattern; admin squash per the recorded lane. |
…claim moved Merge `origin/main` (`5383e72c`) into the packet branch so PR #542 stops conflicting and the ratified packet is read against the tree as it now stands. `gh pr update-branch` refused; this is that merge taken by hand. ONE CONFLICTED FILE, resolved on the same principles as this branch's earlier catch-up (`edab9bdd`): | file | conflict | resolution | | --- | --- | --- | | `README.md` | both sides inserted a new bullet at the HEAD of "Active changes:" — this branch's `add-requirement-ref-resolution-integrity` entry (80 lines) vs `main`'s `retire-hermes-flat-keys-and-openworkflow-tokens` entry (51 lines) | UNION, this packet's entry FIRST and `main`'s after it, **both texts byte-unchanged** (verified by diffing each block against `0f2aa71b:README.md` and `origin/main:README.md` respectively). The merged file is `origin/main`'s README plus exactly this packet's 80-line bullet and nothing else — 80 added lines, 0 removed, measured. | Everything else merged clean: `main`'s two new change directories and its `tests/doc-health/test_modified_block_currency_self_gate.py` edit applied untouched, and `retire-doxbench-chat-turn-v1`'s README bullet — appended near the tail of the list rather than at its head — never conflicted. WHAT LANDED ON `main` SINCE `1c1dcbbe`, one line each: - `59eb913e` (#551) ratify `retire-hermes-flat-keys-and-openworkflow-tokens` — entries 1 and 2 of issue #522 at `contract-v3.0`, proposal only. - `b7dc5909` (#552) ratify `retire-doxbench-chat-turn-v1` — entry 3 of #522 at `contract-v3.0`, proposal only. - `5383e72c` (#557) the carriage-ledger fix: the MODIFIED-block-currency self-gate names its eighth subject, `main`'s inherited `pytest-suite` red from #510 now green. **NO PACKET FILE MOVES IN THIS COMMIT.** `proposal.md`, `tasks.md`, `.openspec.yaml`, `specs/credential-contracts/spec.md` and `review/ratification-2026-09-01.md` are byte-identical to `0f2aa71b`, the ratified-plus-amended tip (`git diff 0f2aa71 -- <packet dir>` is empty), so the record and the consented per-document amendment stand exactly as ruled. **NO MEASURED CLAIM MOVED, MEASURED RATHER THAN ASSUMED.** The three landings touch `README.md`, two new `openspec/changes/` directories and one test file — `git diff --name-only 1c1dcbb origin/main` matches nothing under `docs/`, `contracts/` or `openspec/specs/`. So: `openspec/specs/credential-contracts/spec.md` is byte-unchanged and still holds TWELVE requirement titles (tasks § 1.2's re-measurement stands); `contracts/manifest.yaml:3` still declares `contract-v2.5` (tasks § 6.1 stands); the `add-binding-consumer-identity` deprecation entry naming "all seven acts" at `contract-v3.0` is untouched, so § 5 and AD-2's shared-window claim stand. The two landings that DO target `contract-v3.0` are proposals that execute nothing and move no deprecation row. This packet carries no `## MODIFIED Requirements` block, so #557's ledger population is none of its business. Gates, all run on this merged tree before pushing: - `openspec validate add-requirement-ref-resolution-integrity --strict` — valid. - `openspec validate --all --strict` — 82 passed, 0 failed (82 items), the two newly-landed changes included. - `python3 -m pytest tests/doc-health -q` — **1347 passed**, fully green, #557's fix carried in by this merge. - Same-clock doc-health (`--as-of 2026-09-01`) against a baseline checkout of `origin/main` `5383e72c`, both directories named `openxFactory`: the two reports are BYTE-IDENTICAL — 5 critical, 4 error, 39 warning, 14 info on each side — and `--new-findings-out` wrote `[]`. Zero new findings. The full suite is left to CI. Refs #523, #542, #553 Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc
… which landed the identical subject first
Both sides named ('add-chain-attestation', 'signed-execution-chain', 'A gate
validates the short chain as a hash-linked chain') — main's version is the one
in force, so this branch takes it wholesale and drops its duplicate wording.
The family suite is green over the resolution (15 passed).
Co-Authored-By: Claude Fable 5 <[email protected]>
…s gone Copilot's second round, against the fixed head f259ca0, generated no new comments -- converged on the same shape #551's sixth round ended in. Recorded against tasks.md 1.6 beside the two findings it took and the seven Codex refusals it did not get a verdict from. Also recorded there: the inherited `main` pytest red that the ratification record's section 4 discloses -- PR #510's carriage-ledger subject -- is FIXED on main by #557, merged 2026-09-01T06:59Z, which is after that record was written. The full local suite on this branch passes that test and does not list it, so this realization inherits no red and attributes none. Without the note, section 4 of the record reads as a current state rather than as the state at ratification. Co-Authored-By: Claude Fable 5 <[email protected]>
… the fallback read is REPLACED, the openworkflow branch is gone, and the keys stay In Force with the reason recorded — DO NOT MERGE, and NOT the cut (#562) * Realize retire-hermes-flat-keys-and-openworkflow-tokens: the fallback read is REPLACED, the openworkflow branch is gone, and the keys stay In Force with the reason recorded Realization of the RATIFIED packet (#551, squash 59eb913; ratified 2026-09-01 by Brett Heap, record at review/ratification-2026-09-01.md), carrying entries 1 and 2 of openxFactory issue #522. tasks.md §§ 2, 3 and 6 only. § 4 (the contract-v3.0 cut), § 5 and § 7 are untouched and remain open: no tag, no manifest bump, no digest inventory, and no contract-v3.0 CHANGELOG entry. THE FALLBACK RETIREMENT IS A REPLACEMENT AND NOT A DELETION. The `hermes.layers missing required role` errors sit INSIDE the layers-declared branch, so deleting the else arm alone would let a layers-less stack fall through to an empty layer map and produce no finding at all -- a silent widening at a major. In its place, one explicit error naming the missing or non-list hermes.layers. Measured on the same probe against both validators: PASS with a warning became FAIL with an error, not silence. THE openworkflow REMOVAL MOVES TWO CASES IN OPPOSITE DIRECTIONS, and both were measured rather than assumed. The branch was an `if` preceding the general rule and shadowed it: a resolvable prefixed token was warned and now validates silently (the widening), while an unresolvable one was warned and is now an error (the narrowing). The Executed row carries both. The declared shape is corrected to the prefix the code matched -- `openworkflow`, one character short of the `openworkflow_` the entry and the docstring wrote. The generator stops emitting the deprecated keys. It named them in THREE places, not the one the task's line range covers: the stack.yaml template, the generated schemas/stack.schema.yaml required_paths, and the generated local validator's overlay reads. Moving only the template would have shipped a generated repository that requires paths its own stack.yaml no longer carries. omnigent.domain_overlay is untouched throughout -- same key name, different block, not deprecated, and read by the validator. The KEYS are not refused. All five supported consumers carry them alongside hermes.layers, and that co-resident shape has never produced a warning against any of them, so refusing it would be an unphased narrowing. The In Force entry is rewritten from the refusal list -- twelve keys BY PATH, five of which it previously named -- with the measurement, the deprecating minor it owes, and the target RESTATED to contract-v4.0. Verified: the validator run against all five supported consumers moves no line (codexFactory 8152686, MedxFactory fcafcc0, AdxFactory 79f85b7, LedgerxFactory 38743cf, OpsxFactory ef60375), and not one of them emitted a legacy-flat-key warning on either side. New coverage where there was none: 20 tests in tests/hermes_runtime_contracts/test_domain_factory_deprecation_retirements.py. The D4 canon/code severity divergence is filed as issue #561 (§ 6.1). Co-Authored-By: Claude Fable 5 <[email protected]> * Take both Copilot findings, and record seven Codex refusals and zero verdicts Round one on the realization pull request #562 returned two findings from Copilot and both are taken. 1. The domain-starter subprocess ran with no deterministic environment and no timeout, inheriting the ambient one while the rest of this package uses `deterministic_environment()`. It now uses it, with an explicit timeout. 2. `assert list(hermes) == ["layers"]` was order-dependent and stricter than the box it serves: it would fail the day the starter grew a new, NON-deprecated hermes key, which is not a retirement regression. It now asserts what the box is about -- `layers` present, every deprecated key absent -- and the reason is written beside it. Codex refused again, three more times: the automatic request on open plus two explicit `@codex review` comments, each returning "You have reached your Codex usage limits for code reviews" and no review. That is SEVEN refusals across #551 and #562 and still ZERO verdicts. The refusal is the provider's ceiling, not a finding and not a silence basis, so tasks.md 1.6 stays OPEN with the three new timestamps recorded beside the four from ratification. Co-Authored-By: Claude Fable 5 <[email protected]> * Record the review convergence, and that the disclosed inherited red is gone Copilot's second round, against the fixed head f259ca0, generated no new comments -- converged on the same shape #551's sixth round ended in. Recorded against tasks.md 1.6 beside the two findings it took and the seven Codex refusals it did not get a verdict from. Also recorded there: the inherited `main` pytest red that the ratification record's section 4 discloses -- PR #510's carriage-ledger subject -- is FIXED on main by #557, merged 2026-09-01T06:59Z, which is after that record was written. The full local suite on this branch passes that test and does not list it, so this realization inherits no red and attributes none. Without the note, section 4 of the record reads as a current state rather than as the state at ratification. Co-Authored-By: Claude Fable 5 <[email protected]> * Take Copilot round 3: `layers or []` was section 2.1's own hazard, one file over The generated validator resolved overlay directories from `stack.get("hermes", {}).get("layers") or []`. Correct for a list, and SILENT for a non-list: `{}`, a string or an int iterates nothing, skips every overlay-path check, and reports OK on a scaffold the CANONICAL validator refuses. That is exactly the silent widening this packet's section 2.1 spends four paragraphs forbidding, reproduced by the fix for it, in a file section 2.1 does not name. The generated validator now ERRORS on the type before iterating, and `test_the_generated_validator_REFUSES_a_non_list_hermes_layers` drives all four non-list shapes -- absent, `{}`, a string, an int -- through BOTH validators and asserts each refuses, so the generated one can never again pass what the canonical one fails. Copilot on PR #562, round 3 of 3. Three rounds, three findings, three taken, none refuted. Codex still owes a pass and has now returned seven usage-limit refusals across #551 and #562 with zero verdicts. Co-Authored-By: Claude Fable 5 <[email protected]> * Nine Codex refusals, not seven, and four Copilot rounds converged Correcting an understatement in this packet's own review record, which is the last place an understatement belongs. Codex refused TWICE MORE after the previous note was written -- 13:49:59 and 13:51:15 UTC, on head 5b026e4 -- so #562 has FIVE refusals and the arc has NINE across #551 and #562, still with zero verdicts and no Codex review naming any head of either branch. tasks.md 1.6 now tables all five of #562's with the head each was requested against. Copilot's fourth round, against 5b026e4, generated no new comments. Four rounds, three findings, three taken, none refuted, converged. Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: Claude Fable 5 <[email protected]>
… stale (§9.2 style) (#592) * add-clearing-dispatch-boundary: file forward what #555's landing made stale (§9.2 style) #555 (this packet) merged as squash ab0bb2d on 2026-09-02, and PR #191 (xFactory realization), PR #557 and PR #568 (the two inherited-red fixes) have all landed since the packet's own text was last written. File forward dated CORRECTION entries beside each now-stale statement, per this repo's convention (no deletion or rewording of retained text): - proposal.md Ratification section: "#555's own merge stays gated on..." corrected — #555 has merged. - tasks.md §9.2: the "CONSEQUENCE FOR THIS PULL REQUEST... MERGE WAITS..." clause corrected — the wait ended; #555 merged. Also notes the later, unrelated release-tag-publication red (#575) and its fix (PR #587) so a reader does not conflate it with this packet's own already-resolved reds. - tasks.md §3 heading: "authored IN PARALLEL... is being authored beside this one" corrected — it landed as xFactory#191, verified against the provider API. - design.md OQ3 heading: "PENDING RATIFICATION" corrected — ratification landed 2026-09-01 and confirmed OQ3 (tasks.md §2.1). Ticks §9.1 and §9.2 with evidence produced in this same commit: OPENSPEC_TELEMETRY=0 openspec validate add-clearing-dispatch-boundary --strict and --all --strict both green (84/84); python3 -m pytest -q tests/doc-health tests/sequenced_after: 1529 passed. §9.3 (release- realization archiving) is left untouched and not claimed. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNxTJoaJQkcDi2ybmLCZgW * Address bot review: fix leftover-fragment wording, add whole-suite CI evidence for 9.2 Copilot (thread on tasks.md:562/566): the §9.1/§9.2 DONE annotations I added interrupted the original retained sentences mid-thought, reading as duplicated/leftover fragments. Fix: reordered so each original sentence stays intact and contiguous (no deletion or rewording of retained text, per this repo's file-forward rule), with my own DONE evidence now following rather than interrupting it — this only reorders text this PR itself introduced, not yet part of any landed record. Codex (P2 on tasks.md:567): the local `tests/doc-health tests/sequenced_after` run alone doesn't speak for the required `pytest-suite` check, which runs the whole `tests/` tree. Fix: added the required check's own result on this head as evidence — opensoft/openxFactory run 33693230302 passed (`8671 passed, 21 skipped, ... failures=0 errors=0`, freshness verifier passed) — so §9.2's tick is now backed by both the targeted suites and the full required suite, not the targeted suites alone. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNxTJoaJQkcDi2ybmLCZgW --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
The estate impact, first
add-chain-attestation's proposal merged tomainon 2026-09-01 via #510and the named-subject ledger in
tests/doc-health/test_modified_block_currency_self_gate.pydid not move withit. Since that landing,
test_every_carriage_ledger_finding_over_the_real_tree_is_namedreads oneunnamed subject over the real tree, so
pytest-suiteis red on everyopenxFactory pull request — including work that touches nothing near
doc-health. This PR is one file, one commit, and it removes that red.
Proven pre-existing, not introduced here. An untouched
origin/maincheckout at
b7dc5909:The gate's own WHAT-TO-DO is the authority
The failure message routes through
_moved(), which prints this and namesquickstart.mdbefore any edit:That order was followed: quickstart first, re-measurement second, named set
third. The quickstart's fourth case is the one that applies —
— and the finding was read before the row was written. It is not a dropped
obligation. Canon states this requirement in TRANCHE-ONE terms ("the gate
validates links 1–3"), and a packet that puts links 4–6 in force cannot restate
that sentence without falsifying its own delta. All nine uncarried units have a
successor in the block that says MORE and never less — five body sentences
(the gate's operating sentence, now "EVERY LINK THE RATIFIED TRANCHES OF THIS
CAPABILITY HAVE PUT IN FORCE — links 1–3 at tranche one, and LINKS 1–6 from
tranche two"; the DERIVATION AND COMPARISON sentence; THE LIST IS CLOSED; the
enforcement table; and the out-of-scope sentence) and four scenario bullets
(the
WHEN any of links 1–3 is absentbullet ofa link is missing, plus allthree bullets of
a tranche-two link does not exist yet, which the blockre-titles
a link no ratified tranche has yet put in force is absent). The rowcomment records each one, so the INFO finding is the audit trail for the
restatement and retires when the packet archives and its block is promoted.
The count is 8, not 0, so the movement-pin re-aim clause does not apply and
test_the_report_moves_only_in_this_family_s_lines' two vacuity guards areuntouched.
The re-measurement
python3 scripts/doc-health.py --single-repo . --family modified-block-currencyThe eight named subjects — the seven already in the ledger, plus the new one:
The new finding in full:
What changed
One file, three touches, in the house style the module already uses:
which subject moved, why, which units, and the condition it retires on.
…; 8 since add-chain-attestation's proposal merged 2026-09-01 via #510's landing, its MODIFIED block resolving canon).seven→eightnamedsubjects.
Every numeral the module marks HISTORY — the module docstring's measured
tables, the dated PR #541 note, the 2026-08-27 movement-pin measurement — is
kept exactly as written.
Gates
python3 -m pytest tests/doc-health/test_modified_block_currency_self_gate.py -q→ 15 passed
python3 -m pytest tests/doc-health -q→ 1347 passed, 0 failed — thepreviously failing test passes and nothing else moves
python3 -m pytest tests/ -q -m "not postgres"→ 1 failed, 8363 passed,21 skipped, 338 deselected, 46 subtests passed in 24:27.
skippedis21 — exactly the
EXPECT_SKIPPEDpinpytest-suite.ymlcarries, so nodirectory silently turned into skips. The one failure is
tests/hermes_runtime_contracts/test_validator_cli.py::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization],a
subprocess.TimeoutExpiredon that test's hard 30-second cap aroundvalidate-hermes-runtime-contracts.py --require-realizationover a tmpdirfixture — a WALL-CLOCK artifact of this developer environment, not a
verdict. ISOLATED AND PROVEN PRE-EXISTING: the same test, run alone,
fails identically on an untouched
origin/mainbaseline clone(
1 failed, 1 passed in 47.31s) as it does here(
1 failed, 1 passed in 49.75s). It touches nothing this change touches,and CI runs it green.
tests/doc-health— the directory this change isin — is fully green.
OPENSPEC_TELEMETRY=0 openspec validate --all --strict→ 81 passed, 0failed, untouched by this change
origin/mainbaseline in anidentically named
openxFactorydirectory → reports BYTE-IDENTICAL, zeronew findings. A test-file edit changes no document, and this measures it
rather than assuming it.
🤖 Generated with Claude Code
https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc