Repository navigation
contract-v4.0: BREAKING — the five ideation-dashboard schemas are REMOVED, consumed at the openDox/openXdox spec legs (split-opendox § 5.7) - #983
Conversation
…hemas are REMOVED and consumed at the openDox/openXdox spec legs The whole release surface moves in ONE candidate commit over one integration point, per docs/contract-versioning-policy.md § Bundle Realization Order step 2: manifest, changelog, realized digest inventory, the normative policy document and the editorial README together. contracts/manifest.yaml: contract_bundle_version contract-v3.7 -> contract-v4.0; the five rows carrying contract-v3.7's `relocating:` blocks are deleted (gate-action-record, ideation-dashboard-snapshot-index, ideation-dashboard-snapshot, xfactory-workbench-chat-turn, xfactory-workbench-model-catalog), each replaced by a tombstone comment naming its canonical home, leg commit and unchanged sha256 — the contract-v2.0 pattern. No other row moves. contracts/CHANGELOG.md: the BREAKING migration note. All three § Change Classes requirements discharged and checkable, including the conformance-validator question contract-v3.7 left open for this cut to answer: the same validator, read at the pinned openXdox-code leg, still validates the three retained rows that name it. docs/contract-versioning-policy.md: the shed's entry moves to § Deprecations Executed as REMOVED at contract-v4.0, citing contract-v3.7 as the minor that served the warning. Three UNRELATED entries that named contract-v4.0 as their removal target are RESTATED to contract-v5.0 with the recorded reason, none of them executed — the restatement each of those entries pre-authorized. contracts/releases/contract-v4.0.digests.yaml: 283 entries, member set identical to contract-v3.7's. It also REPAIRS the two release members #940 edited after the v3.7 inventory was built — scripts/hermes_runtime_validation/catalog.py and release.py — which is the OWED bundle cut recorded in PR-2's landing note. tests/intent-compliance/test_release_boundary.py: the hand-stated advance this boundary tripwire requires at every cut past the intent floor, measured ZERO moved family paths between contract-v3.7 and this candidate. Lane: openxfactory-4-opendox-extraction Refs #656 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…review of this branch found Review of the candidate against the carve manifest and the repository's own live `contract-v4.0` references found three places where the prose was not at record precision. No contract byte, manifest row, digest or version moves here. 1. `contracts/CHANGELOG.md` § What did NOT move said "`demotion-execution-receipt` is in no carve row at all". Its SCHEMA is in no carve row; its three packaged examples under `examples/ideation-dashboard/` ARE carve rows, `moved_verbatim`, and left with the family at the shed. `contract-v3.7`'s own entry carried that parenthetical and this one now does too. 2. The restated-deprecations table called the consumer-block entry "(nine acts)" where the entry's own heading in `docs/contract-versioning-policy.md` says EIGHT acts and names the ninth (`identity_namespace`) as a row declared beside them with its own window. The table now says exactly that, so the two documents cannot be read as disagreeing about a count. 3. Two packaged credential-contracts warning examples made the SAME live claim the restated policy entries did — "the refusal lands at `contract-v4.0`" — which this cut would publish as a promise it does not keep. Both are restated to `contract-v5.0` with the second restatement's provenance. Neither is a release member (no digest in any inventory), so the correction spends nothing. The CHANGELOG records the correction and records what is deliberately LEFT: this repository's `README.md` states what the `contract-v3.0` cut WROTE (history, not a live target), and the active `openspec/changes/retire-hermes-flat-keys-and-openworkflow-tokens` packet names `contract-v4.0` as its ratified target — restating a ratified packet is its own change, and this cut touches no `openspec/changes/` path. Lane: openxfactory-4-opendox-extraction Refs #656 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
… from main `contracts/releases/contract-v4.0.digests.yaml` is a digest of the tree it is cut from, so it is rebuilt after every commit that moves a release member. Rebuilt here after two events: the fix round on this branch (which edited `contracts/CHANGELOG.md`, an EDITORIAL member whose own digest the inventory carries) and the merge of `origin/main` at `c521504c`. ONE entry moved — `contracts/CHANGELOG.md`'s digest — and that is the measurement, not an assumption: the merge from main brought `README.md` and the `amend-kill-switch-to-declared-test-companion` packet, none of which is a release member, so no other digest could move and none did. 283 entries, `release build: pass`. Lane: openxfactory-4-opendox-extraction Refs #656 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…e inventory, where contracts/manifest.yaml no longer carries the row The local pre-flight run of the full suite against the candidate found 44 failures and 12 errors, ALL of them one defect with two faces, and both are in scope for this cut: removing the five manifest rows removes the record a fail-closed digest chain was reading. `scripts/ideation_dashboard/doxbench_contracts.py::_verified_bytes` verifies a pinned schema against TWO independent records — the module's own hard-pinned `SCHEMA_DIGESTS` literal, and the checkout's `contracts/manifest.yaml` row for the same path. The § 5.2 shed moved the bytes and the chain survived it (`_shed_aware` resolves the path at the pinned leg; the digest is unchanged, so both records still agreed). The § 5.7 removal is different in kind: it deletes the ROW. The bytes still verify against the literal, but the second record is gone, and the loader refuses `xfactory-workbench-chat-turn` and `xfactory-workbench-model-catalog` with "the checkout's contracts/manifest.yaml carries no entry ... so the release does not describe this schema" — taking 43 tests in `test_doxbench_contracts.py`, `test_doxbench_routes.py`, `test_doxbench_model.py` and `test_doxbench_bound_buffer.py` with it. THE ANSWER IS NOT TO DROP THE SECOND RECORD. The removal changed the PUBLISHER, not the bytes, and the checkout's release still describes these schemas: `gate-action-record`, `xfactory-workbench-chat-turn` and `xfactory-workbench-model-catalog` are catalog release members, they STAY members across the removal (`contracts/hermes-runtime/contract-index.yaml` is untouched by this cut, deliberately), and the published inventory digests them at the pinned legs through `scripts/carved_reach.py` — at the same declared path and the same sha256 the deleted rows carried. So `_release_records` now reads BOTH: the manifest's rows first, and — only for a path the manifest does not carry — the entry in the inventory for the bundle that manifest DECLARES. The manifest still wins wherever it has the path, so a consumer pinned at or before `contract-v3.7` reads exactly as it did and every existing refusal stands: a disagreeing row, an absent manifest, a drifted byte after a cached resolution, publisher mode. A path in NEITHER record is still refused, with a message that now names both documents. An absent inventory contributes nothing (a pinned checkout may predate it); a present one that cannot be read refuses, exactly as an unreadable manifest does. `tests/ideation-dashboard/test_intent_apply_lane.py` carried the same assumption for `gate-action-record` and is advanced the same way: it asserts the digest from the register that still records it, pinned to the bundle the manifest declares rather than to a literal version, AND asserts the manifest no longer carries the row — because a removal that left the row behind would be no removal. Renamed to say what it now checks. Verified: `test_doxbench_contracts.py` 106 passed, the three sibling doxBench suites 398 passed, `test_intent_apply_lane.py` 40 passed. Neither edited file is a release member, so the inventory is unchanged (rebuilt and re-measured: 283 entries, no digest moved). Lane: openxfactory-4-opendox-extraction Refs #656 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Critical doxBench inventory validation and historical fail-closed safeguards remain unresolved.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
This breaking PR introduces contract-v4.0, transferring ownership of five ideation-dashboard schemas to pinned openDox/openXdox specification legs while preserving their digests.
Changes:
- Removes five manifest registrations and documents their migration.
- Adds the release digest inventory and updates policy, changelog, README, and examples.
- Adds inventory-backed doxBench verification and updates release-boundary tests.
File summaries
| File | Reviewed changes / findings |
|---|---|
tests/intent-compliance/test_release_boundary.py |
Advances the release boundary; chronology reference requires a minor correction. |
tests/ideation-dashboard/test_intent_apply_lane.py |
Updates digest-preservation assertions. |
scripts/ideation_dashboard/doxbench_contracts.py |
Adds inventory fallback verification; critical validation and historical fail-closed safeguards remain unresolved, with additional coverage needed. |
examples/credential-contracts/warning/requirement-ref-unresolved.yaml |
Restates the target release. |
examples/credential-contracts/warning/requirement-ref-ambiguous.yaml |
Restates the target release. |
docs/contract-versioning-policy.md |
Documents the removal and restated deprecations. |
contracts/releases/contract-v4.0.digests.yaml |
Adds the generated release digest inventory. |
contracts/README.md |
Documents relocated schema ownership. |
contracts/manifest.yaml |
Advances the bundle and removes five ownership rows. |
contracts/CHANGELOG.md |
Records the breaking release and migration details. |
Review details
Suppressed comments (2)
scripts/ideation_dashboard/doxbench_contracts.py:778
- The new inventory-only path is not covered by the hermetic doxBench tests: the existing missing-manifest-row test has no release inventory, so it never exercises the merge. Add cases for a valid post-v4 inventory-only record, a mismatched bundle tag, and a pre-v4 missing manifest row that must remain a refusal; these would lock down both the new success path and its fail-closed boundary.
for relpath, digest in _inventory_digests(root, bundle).items():
records.setdefault(relpath, (digest, inventory_relpath))
tests/intent-compliance/test_release_boundary.py:162
- This chronology is inconsistent with the preceding entry:
contract-v3.0is the first major sincecontract-v2.0, socontract-v4.0is the second major sincecontract-v2.0(and merely the next major aftercontract-v3.0). Please correct the reference so the release-boundary history is internally consistent.
Advanced again at the ``contract-v4.0`` cut, the second MAJOR since
``contract-v3.0`` and the BREAKING half of
``split-opendox-two-layer-product`` § 5.7: it removes the five
- Files reviewed: 10/10 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
🟡 Changes recommended
Release-integrity validation, duplicate/path safeguards, fallback coverage, and documentation wording findings remain.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (4)
scripts/ideation_dashboard/doxbench_contracts.py:747
- This parser treats any YAML file at the computed path with an
entrieslist as the inventory for the declared bundle; it never checksbundle_tag,kind,repository, or the declared digest algorithm. A stale/foreign or otherwise malformed inventory can therefore satisfy the fallback records for the removed manifest rows, even though the code claims to verify the inventory for exactly this release. Validate the inventory identity metadata before extracting digests so the fallback remains fail-closed.
doc = _parsed_yaml(path, raw, what="release inventory")
entries = doc.get("entries") if isinstance(doc, dict) else None
if not isinstance(entries, list):
raise ContractPinError(
f"{path}: release inventory declares no entries list")
scripts/ideation_dashboard/doxbench_contracts.py:758
- This loop silently collapses duplicate inventory paths because the later digest overwrites the earlier one. A malformed inventory containing one incorrect entry followed by a matching entry would therefore pass
_verified_bytes, despite the release inventory contract requiring unique paths and the loader's fail-closed purpose. Track seen paths and reject duplicates before storing a digest.
digests: dict[str, str] = {}
for entry in entries:
if not isinstance(entry, dict):
continue
relpath = entry.get("path")
digest = entry.get("digest")
if not isinstance(relpath, str) or not isinstance(digest, str):
continue
algorithm, _, hexdigest = digest.partition(":")
if algorithm == "sha256" and hexdigest:
digests[relpath] = hexdigest
scripts/ideation_dashboard/doxbench_contracts.py:779
- The inventory fallback is a new integrity boundary, but the focused doxBench tests only cover manifest-backed mismatches; the real-checkout happy path does not exercise malformed fallback records. Add hermetic coverage that removes the manifest row and verifies a matching inventory succeeds while a missing, wrong-digest, or duplicate inventory entry is refused, so this release-critical path cannot regress silently.
def _release_records(root: Path) -> dict[str, tuple[Any, str]]:
"""Every digest the checkout's release records for a path, paired with the
document that recorded it — so a refusal names the file a reader must open.
The manifest WINS wherever it carries the path: it is the ownership
register, it is what a pre-`contract-v4.0` checkout carries for every schema
here, and a row that disagrees with the bytes must still refuse rather than
be talked out of it by a second document."""
manifest, bundle = _manifest_digests(root)
records: dict[str, tuple[Any, str]] = {
relpath: (digest, MANIFEST_RELPATH.as_posix())
for relpath, digest in manifest.items()}
inventory_relpath = (
(RELEASES_RELDIR / f"{bundle}.digests.yaml").as_posix()
if isinstance(bundle, str) and bundle else "the release inventory")
for relpath, digest in _inventory_digests(root, bundle).items():
records.setdefault(relpath, (digest, inventory_relpath))
return records
tests/intent-compliance/test_release_boundary.py:161
- This release-history sentence miscounts the major cuts: with
contract-v3.0as the baseline,contract-v4.0is the first MAJOR after it, not the second MAJOR since it. The preceding paragraph already callscontract-v3.0the first major sincecontract-v2.0, so please correct this wording to keep the boundary history consistent.
Advanced again at the ``contract-v4.0`` cut, the second MAJOR since
``contract-v3.0`` and the BREAKING half of
- Files reviewed: 10/10 changed files
- Comments generated: 2
- Review effort level: Lite
There was a problem hiding this comment.
Sorry @brettheap, your pull request is larger than the review limit of 150,000 diff characters
…paths, contract-v4.0 forward, an inventory that declares this bundle
Copilot's review of this PR opened four threads on the loader change, all on
`scripts/ideation_dashboard/doxbench_contracts.py`, and all four are right. The
inventory fallback answered the missing-row question correctly but was wider
than the question: it was merged for EVERY bundle and EVERY path, it trusted any
file with an `entries` list that happened to sit at the declared bundle's name,
and it interpolated a manifest-supplied token straight into a filesystem path.
Each is closed here, with the bound named in the code and pinned by a test that
FAILS without it (each one checked by removing the bound and watching exactly
its own test go red).
* CONFINED TO THE FIVE REMOVED PATHS. `REMOVED_MANIFEST_ROWS` is the record of
what `contract-v4.0` removed, and `_release_records` consults the inventory
only for those paths. Any other path missing from the manifest is still a
path in NO record and still refuses, so a row deleted by accident elsewhere
is not rescued by a second document.
* CONFINED TO `contract-v4.0` AND LATER. `contract-v3.7` and every bundle
before it CARRIED these rows, so their absence there is a defect rather than
a removal. A pre-removal checkout now reads exactly as it did before this
PR, missing row and all: the fallback contributes nothing.
* THE INVENTORY MUST DECLARE THIS BUNDLE. A file saved as
`contract-v4.0.digests.yaml` whose `bundle_tag` says otherwise is the
mismatch `validate-contract-release.py verify-tag` rejects (release.py's own
`inventory.get("bundle_tag") != tag`). Reading it here would let a stale
inventory from another bundle supply a digest this checkout's release never
published, so it REFUSES, naming both tags.
* THE BUNDLE TOKEN IS PARSED BEFORE IT IS JOINED TO A PATH. It comes from the
manifest and is interpolated into `contracts/releases/<bundle>.digests.yaml`;
`Path("a/b") / "/tmp/x"` DISCARDS the base and `..` walks out of the
checkout, so an absolute or traversing value could have made the loader read
an inventory from outside the tree and accept it as the release record. The
token must now match the release-tag grammar the canonical builder writes
(`scripts/hermes_runtime_validation/release.py`); anything else contributes
nothing. Both escape shapes are pinned, each planting a VALID inventory
exactly where the unguarded join would land.
The module docstring carried the fourth finding: its numbered list said record
number two is always `contracts/manifest.yaml` and that manifest parity is
always required, which this change makes false for exactly five paths. Check 2
now says what the record is, names the removal that moved it, and says plainly
that inferring the removed rows must still be present is the wrong reading —
because a maintainer who infers that would "repair" the manifest by restoring
rows the cut deliberately deleted.
Tests: `test_doxbench_contracts.py` 114 passed (106 before this PR, 113 before
this commit); the three sibling doxBench suites and `test_intent_apply_lane.py`
green with it, 552 passed across the five. No release member is edited, so the
inventory is unchanged and `verify-commit` still passes.
Lane: openxfactory-4-opendox-extraction
Refs #656
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…rd notes The contract-v4.0 cut PR (opensoft/openxFactory #983, cut/contract-v4.0) now exists, so the thirty appended "Bookkeeping correction (2026-09-11, split-opendox-two-layer-product § 5.9) — carry-forward" sections across the archived changes under openspec/changes/archive/ have their `TBD-CUT-PR` placeholder replaced with the real reference, "cut PR #983", leaving every other word of the annotation unchanged. Lane: openxfactory-4-opendox-extraction Refs #656 Co-Authored-By: Claude Sonnet 5 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical and moderate findings affect inventory validation and duplicate-path handling.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (3)
contracts/CHANGELOG.md:38
- This wording extends the warning beyond the bundle that actually carries the five
relocating:rows.relocation_notice()reads the manifest at the pinned commit and returns no notice oncecontract-v4.0removes those rows, so a consumer pinned tocontract-v4.0or later will not see this warning. Limit the claim to consumers running the checker against thecontract-v3.7bundle.
unconditional on consumer shape — it fires on the BUNDLE for every consumer
that runs the checker at a pin at or after `contract-v3.7`. **This cut could
docs/contract-versioning-policy.md:1063
- This says the relocation warning fires for any pin at or after
contract-v3.7, but the checker only readsrelocating:markers from the pinned manifest. Those markers are removed incontract-v4.0, so the notice is emitted for thecontract-v3.7bundle, not forcontract-v4.0and later. Please narrow this statement to the deprecating bundle.
shape — it fires on the BUNDLE for every consumer that runs the checker at a
pin at or after `contract-v3.7` — so the `hermes` flat-key entry's "a warning
scripts/ideation_dashboard/doxbench_contracts.py:821
- Duplicate inventory paths are silently overwritten by this assignment, so an inventory containing the same removed schema twice can put a bad digest first and a valid digest last and still pass this fallback. The canonical verifier rejects this as
HGR-RELEASE-PATH-DUPLICATE; track seen paths and refuse duplicates before building the digest map.
digests[relpath] = hexdigest
- Files reviewed: 11/11 changed files
- Comments generated: 1
- Review effort level: Lite
… reader does
Copilot's fifth thread, and it is right: `Path.is_file()` FOLLOWS symlinks, so a
link planted at `contracts/releases/<bundle>.digests.yaml` would have let bytes
from anywhere at all answer the release-record question this PR routes through
that file. `scripts/hermes_runtime_validation/release.py::read_member` refuses
any non-regular file before it digests anything — "release member is not a
regular file" — and `exists`, `list_files` and `list_release_inventories` all
carry the same `and not target.is_symlink()`. The new reader now matches it.
It REFUSES rather than contributing nothing, and the asymmetry is deliberate: an
ABSENT inventory is an old checkout, which is why that case returns `{}`, while a
LINKED one is a tampered checkout, which is a fail-closed condition.
The other half of `read_member`'s pair — a path that escapes the repository root
— cannot arise on this line and is not restated as dead code: the token reaching
it has already matched `contract-v(\d+)\.(\d+)`, so it carries neither a leading
separator nor a `..` segment, which is what `46d5eed6` closed and pinned.
Pinned by `test_a_symlinked_inventory_refuses`, parametrized over a link to a
VALID inventory outside the checkout (the bypass) and one to a valid inventory
inside it (which shows the rule is "not a regular file", not "not contained").
Each asserts the planted link RESOLVES before asserting the refusal, so the test
proves bytes were reachable and refused rather than merely absent; both go red
with the check removed.
Tests: `test_doxbench_contracts.py` 116 passed, `test_intent_apply_lane.py` and
`test_doxbench_routes.py` 208 passed with it. No release member is edited.
Lane: openxfactory-4-opendox-extraction
Refs #656
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Two unresolved critical integrity issues remain in the inventory loader; the documentation nit also remains.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (1)
scripts/ideation_dashboard/doxbench_contracts.py:989
- The cache invariant above still says every call checks
manifest parity, but this new call now supplies_release_records, which intentionally uses the bundle inventory for the five v4-removed paths. The same stale wording remains inverify_stack_pinand the shed-aware comment above_verified_bytes; update these descriptions to say release-record parity (manifest or inventory), otherwise they document a fail-closed invariant the code no longer has.
records = _release_records(checkout)
for name in sorted(SCHEMA_DIGESTS):
_verified_bytes(checkout, name, records)
- Files reviewed: 11/11 changed files
- Comments generated: 2
- Review effort level: Lite
… and a duplicate entry that picks a winner Copilot's sixth and seventh threads, and both are right — the second of them CORRECTS something 797c028 asserted in its own commit message and in its reply on the thread, so the correction is recorded here rather than quietly patched. THE SYMLINKED PARENT. 797c028 said the escaping-path half of `release.py::read_member`'s pair "cannot arise" because the bundle token has already matched the release-tag grammar. That is true of the TOKEN and not of the PATH: `is_symlink()` answers for the final component only, while `is_file()` follows symlinked PARENTS, so a `contracts/releases` — or a whole `contracts` — linked out of the tree puts a real, regular inventory file at exactly the expected path and the grammar never sees it. The resolved path must therefore be required to stay under the root, which is the canonical reader's own defense in depth (`HGR-RELEASE-MEMBER-ESCAPES`) and closes every spelling of "outside" at once, the token and the parents together. THE DUPLICATE ENTRY. `digests[relpath] = hexdigest` silently made the LAST entry for a path authoritative — a winner picked from a file whose two entries disagree, which is precisely the shape a tampered inventory takes. The canonical verifier refuses it as `HGR-RELEASE-PATH-DUPLICATE` rather than choosing, and so does this now. `seen` is deliberately kept separate from `digests`: the canonical rule reads EVERY declared entry path, so a first occurrence carrying an unusable digest must still make the second a duplicate rather than letting it through. Tests, each mutation-checked by removing its bound and watching exactly its own case go red: * `test_an_inventory_under_a_symlinked_parent_refuses`, parametrized over a linked `contracts/releases` and a linked `contracts`. Both assert the planted file `is_file() and not is_symlink()` first — a REGULAR file at the expected path — so the test proves containment refused it rather than the symlink rule catching it by accident. * `test_a_symlinked_inventory_refuses` now pins the two refusals separately: a link OUT of the tree takes the containment message, a link back INSIDE still takes the regular-file one. * `test_an_inventory_with_a_duplicate_path_refuses`, whose conflicting entry is SECOND and carries the digest that would satisfy the record — so a last-wins loader would accept the file the test refuses. `test_doxbench_contracts.py` 119 passed (106 before this PR); `test_doxbench_routes.py` and `test_intent_apply_lane.py` 208 passed with it. No release member is edited. Lane: openxfactory-4-opendox-extraction Refs #656 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Fix duplicate-path tracking so invalid earlier entries cannot allow later duplicates.
Get a fresh assessment by requesting another Copilot review.
Review details
- Files reviewed: 11/11 changed files
- Comments generated: 1
- Review effort level: Lite
There was a problem hiding this comment.
🔵 Needs a closer look
Fix duplicate-path handling so malformed earlier inventory entries cannot be bypassed.
Review details
Suppressed comments (1)
scripts/ideation_dashboard/doxbench_contracts.py:852
- The type check runs before
seen.add, so a malformed first entry for a string path (for example,digest: null) is skipped and a second entry for the same path with the correct digest becomes authoritative. The canonical verifier rejects duplicate paths regardless of whether the first digest is usable, so this loader can accept a tampered inventory despite the fail-closed rule described above; record every string path inseenbefore validating its digest (or reject malformed entries).
if not isinstance(relpath, str) or not isinstance(digest, str):
continue
- Files reviewed: 11/11 changed files
- Comments generated: 0 new
- Review effort level: Lite
…-checked
`_inventory_digests` folded the relpath-type check and the digest-type
check into one `or`, so an entry whose `digest` was not a string fell
through its `continue` WITHOUT joining `seen`. A second, well-formed
entry for that same path then found `relpath in seen` false and
slipped through as if it were the only entry, silently returning a
digest computed from a file that in fact declared the path twice -
in either order (bad-then-good or good-then-bad).
`seen` is now joined as soon as `relpath` is confirmed to be a string,
before `digest`'s type is examined at all, so a duplicate declaration
is caught regardless of which entry (or both) carries a malformed
digest - matching the documented intent immediately above this loop
and the canonical verifier's HGR-RELEASE-PATH-DUPLICATE.
Pinned by two new tests, one per ordering:
test_a_duplicate_path_refuses_even_when_the_first_entry_has_a_bad_digest
and its _second_entry_ sibling. Both mutation-checked: reverting this
fix makes both fail ("DID NOT RAISE ContractPinError"); with the fix,
both pass, and so do the full doxbench_contracts + ideation-dashboard
suites (121 passed; 1121 passed, 13 skipped, 0 failed).
Lane: openxfactory-4-opendox-extraction
Refs #656
Co-Authored-By: Claude Sonnet 5 <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
Inventory fallback must validate the canonical release-inventory schema before extracting digests.
Review details
Suppressed comments (1)
Previously missed (1) — in code that hasn't changed since the last review.
scripts/ideation_dashboard/doxbench_contracts.py:835
- This reader accepts any mapping with the right
bundle_tagand anentrieslist, but the canonical release inventory contract requires the complete top-level metadata and structurally valid entries (contracts/releases/release-digest-inventory.schema.yaml:19-27,99-127), andrelease.pyrejects malformed inventories withHGR-RELEASE-INVENTORY-SHAPE. As a result, a partial/non-canonical inventory can become the second release record and make a post-v4 checkout pass even though it is not a valid published inventory. Validate this document with the canonical inventory schema before extracting digests (and update the reduced test fixtures accordingly).
- Files reviewed: 11/11 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
… tagged The cut landed as opensoft/openxFactory #983 -> ce5c054 (2026-09-11 23:52Z, #656 comment 5641952070), and the annotated contract-v4.0 tag (object 9e6c0ae -> ce5c054) is published and verify-tag clean from an independently refreshed checkout (#656 comment 5642131117, RULED + EXECUTED 2026-09-12 00:21Z, amending ruling 9c for this one tag). Both of 5.7's own owed clauses -- the contracts/releases/<tag>.digests.yaml under release-surface-integrity, and a published annotated tag verified from an independently refreshed checkout -- are discharged; contracts/manifest.yaml on main reads contract_bundle_version: contract-v4.0. 4.3, 4.4 and 5.9 are unchanged: their PRs (#984, #982) have not landed. Merges origin/main (now at ce5c054 via #983) into this branch; no conflict. Nothing else in tasks.md changes. Lane: openxfactory-4-opendox-extraction Refs #656 Co-Authored-By: Claude Sonnet 5 <[email protected]>
…nges with an ideation-dashboard delta (bookkeeping, RULED) (#982) Lane: openxfactory-4-opendox-extraction Refs #656 (stays OPEN). split-opendox-two-layer-product § 5.9: the thirty archived changes whose tree carries specs/ideation-dashboard/ are ANNOTATED with the carry-forward, never edited into agreement — the wallet arc's treatment and the highest-volume bookkeeping in the realization. Under document-lifecycle's "An archived record is edited only as a bookkeeping correction under a recorded ruling", on Brett Heap's rulings by interactive multi-choice (#656 comments 5640246046 and 5640938010, recorded BEFORE the edit), each packet's tasks.md gains one dated "Bookkeeping correction (2026-09-11, split-opendox-two-layer-product § 5.9) — carry-forward" section stating that its specs/ideation-dashboard/spec.md delta stays the record; that the capability's artifacts were SHED from openxFactory by § 5.2 (#940 → cc4ae9d) and are consumed at a pin from the openDox/openXdox legs per docs/opendox-carve-manifest.yaml; and that the five contract schemas, deprecated at contract-v3.7 (#970 → 45bd9ee, tag ec3c172), leave the bundle at contract-v4.0 (§ 5.7, PR #983 → ce5c054, tag 9e6c0ae). The rule's neutral-minimum line "Edited (bookkeeping): 2026-09-11 by split-opendox-two-layer-product — carry-forward annotation" sits inside the existing lifecycle-header block of the two packets that carry one (add-model-capability-vocabulary, add-project-repo-schema) and, as ruled, as the first line of the appended section in the twenty-eight that carry none. Nothing any packet asserts changed (git diff -U0 shows only the appended hunks and, in two files, one header line). doc-health does not scan tasks.md, so no record-immutability finding fires; the thirty dispositions in opensoft/xFactory #445 stand as the governance record regardless, with that correction stated. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ested `#983` (the v4.0 BREAKING cut) landed at 23:5xZ and REMOVES the five ideation-dashboard schema rows from `contracts/manifest.yaml` and moves their deprecation entry to § Deprecations Executed. Two of those rows are the ones this branch re-recorded `sha256:` for, so main's removal and this branch's re-record are an add/add conflict over the same lines, in three files. RESOLVED BY TAKING MAIN'S TEXT WHEREVER v4.0 SPOKE LAST, because in every conflicting hunk this branch's edit is SUPERSEDED rather than contradicted: * `contracts/manifest.yaml` — main's removal of both rows, verbatim. The two `sha256:` values this branch moved (`054259fe…`, `7fd9b797…`) existed to keep `validate-manifest-digests.py` green while the rows stood; the rows are gone, so there is nothing left to record. `OK contracts/manifest.yaml: 184 per-file digest(s) verify` — 184 and not 189, which is the five removals. * `docs/contract-versioning-policy.md` — main's version entirely. The sentence this branch corrected in tense ("the `spec` gitlinks of the assembly-root commits this repository's own pins ALREADY NAME") no longer exists: #983 rewrote the whole entry when it executed the deprecation, and its replacement NAMES the leg commits and the digests inline, which is the dated form the correction was reaching for. * `contracts/CHANGELOG.md` — auto-merged; this branch's `contract-v3.7` tense correction stands, because that entry is a CUT RECORD that v4.0 did not rewrite and the sentence is still present tense about pins this branch moves. ONE CORRECTION IS OWED TO MAIN'S NEW TEXT, AND IT IS THIS BRANCH'S TO MAKE. The `ideation-dashboard-snapshot-index` removal comment #983 landed says the artifact is "byte-identical at sha256 43acf0bb… and read at THE COMMIT `contracts/openxdox-pin.yaml` NAMES". That is true at the `spec` leg `481a07f9` the pin named at the v4.0 cut and FALSE the moment this branch's bump lands: at `spec` `ae59dfa5` the same artifact hashes to `7fd9b797…`, because openXdox-spec #7 corrected one comment line in it. The claim is dated rather than deleted — it now names `481a07f9` and says what the new pin carries and why that is a declared correction arriving inside the row's RULING Q-L1 lines rather than drift. Its sibling row's comment needed nothing: that one already names `84056415…` and `44679fa7…` inline, so it dates itself. OK contracts/manifest.yaml: 184 per-file digest(s) verify OK docs/opendox-carve-manifest.yaml: 456 row(s), none undeclared tests/domain_profile — 21 passed Lane: openxfactory-4-opendox-extraction Refs #656 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
….3/4.4/5.7/5.9 status (2026-09-11) (#991) Lane: openxfactory-4-opendox-extraction Refs #656 (stays OPEN). split-opendox-two-layer-product tasks.md amendment recording the 2026-09-11/12 landings (CLAIM 5641679012): six boxes tick — 4.2 (openXdox root eca0b597's contracts/opendox-pin.yaml carries every § 4.2 field), 4.3 and 4.4 (code halves openDox-code #11 → a99eba03 and openXdox-code #14 → 3840c167; the openxFactory half + pin lockstep #984 → a1ef886), 4.5 (three features at openXdox-code #10/#11/#12; requirement row ratified, archived, corrected and erratum'd at openXdox-spec #9–#12; RECOUNT 5638391057), 5.7 (the MAJOR cut #983 → ce5c054, tag contract-v4.0 9e6c0ae verified), 5.9 (#982 → db1f0cf + xF #445 → c81b957b). 4.1 stays open on evidence: 13 § D3 modules present but only 12 of the 23 doc_health imports moved (10 are § 3.4/3.5/3.6 residue, 1 is DQ-1). Before 31 ticked / 40 open; after 37 / 34 of 71. Only tasks.md changes; proposal-support verify ok; strict validate valid; pytest-suite 34701125454 SUCCESS at 935d403; 2 threads / 0 unresolved. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…tag, and register two byte-drifted bundle validators as section 8.9 residue Section 8.3 names three clauses and the tick is decided by reading its own text, not the evidence's summary of it. Each clause is met: the shed merged (#940, MERGED 2026-09-11T17:33:38Z, cc4ae9d); the MAJOR cut merged and TAGGED (#983, 2026-09-11T23:51:05Z, ce5c054; annotated tag contract-v4.0, object 9e6c0ae, peeling to ce5c054 exactly); and the tag verified from an independently refreshed checkout. Clause 3 is re-derived in this lane's own clone rather than transcribed from the cited comment: verify-tag and verify-commit each return {"findings":[],"status":"pass"} at exit 0, the second against inventory contracts/releases/contract-v4.0.digests.yaml. Two independent checkouts now agree, which is what the clause asks for. Three readings that could be mistaken for defects are disposed of on the page rather than passed over. (a) The tag is unsigned -- but it is a genuine annotated tag, and all 56 contract-v* tags are the same unsigned annotated form, so it matches standing practice; the box asks for verified, not signed. (b) verify-promotion returns 4 findings, but it is a PRE-CUT gate read after the cut, per its own docstring at scripts/hermes_runtime_validation/ release.py:1197; once the tag exists HGR-RELEASE-TAG-EXISTS is guaranteed by construction, so it answers a question this box does not ask. (c) A harness error can impersonate a tag finding: with shallow or partial openDox/openXdox legs, verify-tag raises ReleaseDependencyError and exits non-zero emitting NO finding. Reproduced here, then cleared with git submodule update --init --recursive. The failure shape is the tell -- a tag defect is a findings entry, a leg defect is a traceback -- and a plain gh repo clone does not init submodules, so the next person to re-run clause 3 meets this first. One cited figure is clock-bound and is restated as measured rather than copied: the comment records ce5c054 as 438 commits behind origin/main; here it is 452. The ancestry is the durable fact (merge-base --is-ancestor exits 0); the distance moves whenever anyone lands anything. Section 8.9 gains residue row (iv), REGISTERED AND NOT RESOLVED: the BEFORE baseline flags two of the release bundle's own validator files as byte-drifted against the digest set they belong to (hermes_runtime_validation/catalog.py and release.py), because the bundle froze their digests at the cut and their sources kept moving. It is not a finding against 8.3 -- clause 3 reads the HISTORICAL commit ce5c054, this drift is measured against today's working tree, and both are true. It is also not the three HGR-RELEASE-SURFACE-DRIFT paths disposed of at 8.3(b), so the two drift reports must not be collapsed into one. No merge from main is taken: main is still red on the archive-date finding. Ledger 52 [x] / 19 [ ] / 1 [~] of 72; one file; exactly three marker changes against main (5.2a, 6.4, 8.3). openspec validate --strict valid, proposal-support verify ok, --ledger-diff clean (219 rows), verify-opendox-pin OK. Refs #656 (stays OPEN). CLAIM 5728937703. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…5, § 6.1, § 6.3, § 6.4, § 6.5, § 8.3), two landing-form INCIDENTS, and six residue rows (#1104) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Refs #656 (stays OPEN). CLAIM [`5728937703`](#656 (comment)). **`split-opendox-two-layer-product` `tasks.md` AMENDMENT #6 — EIGHT ticks, the rulings of 2026-09-18 encoded, two INCIDENTS registered, and six residue rows booked.** Claimed after a clean sibling search. Branch off `main`; amendment #5 landed at `cb0f8544`. `origin/main` is merged in. **Rule 6 applies.** **Ledger 49 `[x]` / 22 `[ ]` / 1 `[~]` of 72 → 57 / 14 / 1 of 72.** One file. **Exactly EIGHT marker changes — § 3.5, § 5.2a, § 5.5, § 6.1, § 6.3, § 6.4, § 6.5, § 8.3.** Both gitlinks untouched. > **This description has been rewritten as the amendment grew.** It previously declared *one* tick, then *two*; each figure was superseded by evidence that landed after it was written. Copilot correctly flagged the mismatch against heads `d323b9b5` and `fe9e5e6f` — the ledger was right and the description was stale, and this is the repair. The counts above are measured at head `7ac75a4e`. ## Eight ticks **§ 5.2a — on RULED R-A** ([`5728607038`](#656 (comment))). `repromote-engineering-vocabulary` is **RATIFIED**, filed by **#1071 → `e83f8cd7`**. The box owed an **authored id**, and `openxfactory-engineering-adapter` is authored, filed and ratified. **Its archive is not this box's condition and is not claimed as one.** > **The ratification is on the word; its ENCODING is owed and is now registered at the box.** Copilot raised across three heads that the successor packet still reads `draft`. **Measured true**: `Status: draft` in `proposal.md`, `design.md` *and* `tasks.md`, ratification tasks **1.1–1.6 all `[ ]`**, no `review/ratification-<date>.md`. **The tick stands** — what ratifies a change here is Brett Heap's word, and a packet's headers *record* a ratification rather than perform one — **but the encoding belongs to that packet's owner under its own claim**, and this amendment must not edit a neighbouring packet's lifecycle headers on its way past. **§ 6.4 — on #1056's closure.** **#1056 → `3e32d987`**, merged **2026-09-18T10:50:06Z**, closing `add-composed-view-authoring` as re-homed to openDox under **RULING Q6**. Its destination half, `openDox-spec` **#12 → `edeed08c`**, was byte-identity verified at both ends by amendment #5. **§ 6.3 — on #1057's closure.** **#1057 → `4ccab7b9`**, merged **2026-09-18T13:31:51Z**, closing `add-doxchat-model-intake` as re-homed to openDox under **RULING Q6**. Recorded Rule 6 window 13:31:44Z → 13:32:00Z, and **the measured merge time falls inside it** — the check worth making on a window rather than reading it back. **§ 8.3 — on Brett Heap's word and the live evidence** at [`5729935756`](#656 (comment)). The box names **three clauses** and the tick is decided by reading its own text, each clause on its own artifact: the shed merged (**#940 → `cc4ae9d3`**); the MAJOR cut merged and **TAGGED** (**#983 → `ce5c054e`**; annotated tag `contract-v4.0`, object **`9e6c0ae4`**, peeling to `ce5c054e` **exactly**); and the tag verified from an independently refreshed checkout — **re-derived in this lane's own clone rather than transcribed**, `verify-tag` and `verify-commit` each returning `{"findings":[],"status":"pass"}` at exit 0. **Two independent checkouts agree**, which is what the clause asks for. > **Three readings that could pass for defects are disposed of on the page**: the tag is **unsigned**, but it is a genuine annotated tag and **all 56 `contract-v*` tags are the same unsigned annotated form**, and the box asks for *verified*, not *signed*; **`verify-promotion`'s 4 findings** are a **pre-cut gate read after the cut** per its own docstring at `release.py:1197`, so `HGR-RELEASE-TAG-EXISTS` fires by construction; and **a harness error can impersonate a tag finding** — with shallow legs `verify-tag` raises `ReleaseDependencyError` and emits **no** finding. *The failure shape is the tell: a tag defect is a `findings` entry, a leg defect is a traceback.* **§ 5.5 — FLOOR PART 4, on the runner the ruling asked for.** **#1105 → `02967478`**, merged **2026-09-18T14:59:28Z**. The box's condition was a **gated runner, not a recorded run**, and both halves are measured present: `scripts/verify-snapshot-equivalence.py` and `tests/snapshot_equivalence/test_snapshot_equivalence.py` are the two files the commit adds, `pytest-suite` runs `python3 -m pytest tests/ -q` (`pytest-suite.yml:599`) so the suite is inside the gate **by construction** rather than by a wiring entry that could be dropped, and it **collects 60 tests** in this branch's own tree (48 before `#1110` added its watchdog suite — the figure is bound to this head, not carried). *That is exactly why Q-P1 (a) refused a one-shot run: the post-split side is a pin that moves, so what holds the equality is a gate that re-proves it every time.* > **One STATUS clause is owed, and it is a REVIEW DEBT rather than a runner defect.** Copilot's review at the landed head `9ed3def3` (review `5249196044`) carries **four suppressed findings** the holder's gate script did not surface before landing; **`floor55b` takes them as a follow-up act**. The tick is not held on that — this box asked for a gated runner and the gated runner is on `main`, and conflating an owed review act with the box's stated condition would leave the floor's fourth part unticked for a reason the box never stated. **Second occurrence in this packet of a per-push review body going unread**, which is why the clause names the review ID. **§ 8.2 stays `[ ]` and gains part 4's referent** — it owes one evidence line *per part* and is discharged by all four, not by the fourth. **§ 6.1 — on #1060's closure, and it is the landing rule's first clean pass end to end.** **#1060 → `e3647b6d`**, merged **2026-09-18T17:30:27Z**, closing `add-nightly-dashboard-refresh` as re-homed to openXdox, destination `openXdox-spec` **#15 → `f088b097`**. **Both clauses of the amended rule were exercised and both held**: clause 1 — two parents, and the `2026-09-16-` directory keeps a `2026-09-16T01:28:33Z` adding commit; clause 2 — the archive-date arm re-run on **`origin/main` merged with the candidate** exits **0**, so INCIDENT 2's stacked-history trap is measured absent rather than assumed absent. > **One item registered for the successor, not booked as residue**: the self-gate `_REHOMED_AND_STILL_WHOLE` **cannot carry a row for a PARTIAL carriage** — this closure re-authored the proposal at the destination while the `doc-health` delta deliberately did not travel. A partial-carriage pin is owed (`#1060` comment `5733632291`). It sits at § 6.1 because it is a property of *this closure's shape*, and § 6.1 is where the next partial carriage will be read from. **§ 6.5 — on #1065's closure, the awkward one.** **#1065 → `81903286`**, merged **2026-09-18T17:54:08Z**, RULINGS **Q6 + DQ-1**. The landing rule held on both clauses again (two parents; the `2026-09-16-` directory keeps a `2026-09-16T13:29:40Z` adding commit; the arm on main-plus-candidate exits 0). **The SPLIT is what makes this box awkward and the closure names it rather than eliding it** — the set-builder half re-homes while the `doc_health.staging_seed` drafter and route stay in `openxFactory`'s own adapter, so the requirement is divided *within itself*. A re-home that moved the whole requirement would have been the easier record and the false one. **§ 3.5 and § 3.6 take a STATUS and deliberately do NOT tick** (RULED 2026-09-18 17:55Z, `#656` comment `5734029578`): `openDox-code` **#25** and **#26** take a third mini-batch for three security items and then land on that word. The word authorizes the **landing**, and the box ticks on the landing — the same two-act ordering § 6 uses for a disposition. **Item (4), the `OPENDOX_SERVED_DATABASE` declaration, is a follow-up act under the same claim and is not in batch 3**, written into both sentences so its absence from #25/#26 is not read as an omission. ## Two INCIDENTS registered **INCIDENT 1 — the squash (§ 6.4).** #1056 landed by **squash**, so the archive directory named `2026-09-16` took a **2026-09-18** adding commit and reddened `main`. **Measured, not taken on report**: `3e32d987` has exactly one parent. **The rule this packet now carries: archive closures land by `gh pr merge --merge`, never squash** — written into the ledger because the ledger is what the next closure's author reads. **INCIDENT 2 — the merge (§ 6.3), and it is why the rule gained a second clause.** #1057's branch was stacked on #1056's **pre-squash** tip, so landing it by merge commit carried #1056's original archive commit **`d8ff2ec2`** (2026-09-16) into `main`'s history. The checker then reads `d8ff2ec2` rather than the squash, the directory name agrees, and **#1106's disposition row — correct when it landed — is reported STALE**. `main` went red again at `4ccab7b9`. > **Measured**: `d8ff2ec2` is not an ancestor of `bbd1cca8` (13:28Z) but is an ancestor of `main` after `4ccab7b9` (13:32Z); it arrives through #1057's **second parent**, **not** the first-parent line. The row was correct for about four minutes, then became wrong **with no edit to it and none to the directory**. > > **The lesson is not that the squash was fine.** A disposition row is a statement about **which commits are reachable from `main`**, not about a directory. Squash caused INCIDENT 1 by **mis-dating**; merge caused INCIDENT 2 by **re-parenting**. So the rule **gains a second clause** rather than being withdrawn: land stacked archive closures by merge commit, **and re-run the archive-date arm on `origin/main` merged with the candidate before opening the window**. The clauses answer the incidents **one each** — clause one would not have caught INCIDENT 2, and clause two could not have caught INCIDENT 1, since the squash commit does not exist until the landing happens. ## Three rulings encoded, moving no box **§ 5.5 — RULED Q-P1..Q-P4** ([`5728856581`](#656 (comment))), over helper actor `floor55`'s read-only measurement. **The fourth floor part already holds**, so what is owed is a **RUNNER, gated in `pytest-suite`**, not a recorded run — *because the post-split side is a pin that moves, and an equality proved once is not an equality held.* The pre-split tree is the published annotated tag **`opendox-carve-0` → `b075fd91`**, `git archive`d into a temp tree. The snapshot **validator is not part 4's** (§ D6 (4) asks for equal digests; `canonical_bytes` reaches no validator). § 4.4's profile fidelity earns **one sentence** here and one in § 8.2's line, **and moves no box**. **§ 5.6 — RULED R-B, R-C, R-D** ([`5728607038`](#656 (comment))), over helper actor `defloor56`'s measurement, spot-checked at codexFactory `main` `22d44b09`. **R-B, the ORDER EXCEPTION**: the order this box writes is **jointly unsatisfiable** with `assert_landed_pin` for a removal, and has never been exercised because no floored path has ever been removed. **The measured cost decides it** — de-floor-first reds `openxFactory`'s **REQUIRED** `pytest-suite` repo-wide; archive-first reds only codexFactory's **ADVISORY** merge-master lane, which that spec's own design intends (*"the deleting PR carries the failure"*). **No REQUIRED check goes red at any step of the ruled order.** **R-C** reads the `SPECS_FLOOR_PATHS` clause as satisfied by the regeneration, since codexFactory #232 made the constant computed at import — **the reading is recorded, the clause is not edited**, in this packet's no-deletion style. **R-D** records the additions-only test fixed inside the de-floor PR as a test-scope correction: it asserts `removed == set()` over the live document, was **proven RED on the dry run**, and is **broader than its own canon**. **§ 4.5a — RULED [`5728368325`](#656 (comment) `xdoxbuild`'s **seven bot commits are ACCEPTED AS DISPOSITIONED and the episode is registered as a process breach**, with the verdict-at-HEAD table (one content-reverted — it deleted the listing cache and took 801 documents from 0.07 s to 58.85 s; one finding-kept-implementation-replaced; five kept) and **the relay lag named as the cause, not the actor's judgment**. **Q-A, the dirty-work-tree reader: LEAVE AS IS** — both readers resolve HEAD over a dirty tree consistently, and a refusal would make an editor's swap file render the corpus unreadable. ## Four records * **§ 3.4** books `openXdox-code` **#22 → `fa792cbb`** (09:53:32Z), completing the **Q7 trio**. The box is already `[x]`; the record does not move it. * **§ 4.5a** takes its exit sentence from `openXdox-code`#23's own body **with `--dest-root` ADDED, and not as offered**. This lane measured twice — amendment #5's rounds 15 and 25 — that the runner refuses `conformance-unreadable — --dest-root is required` and **exits 2** without it. **The sentence as offered would record a passing run of a command that cannot run**, which is the defect § 4.5a spent two rounds removing. * **§ 8.9** books the snapshot validator's **three** defects as residue rows on Q-P3: `SCHEMAS_DIR` resolving to an absent directory; `VALIDATOR_RELPATH` naming a path `openxFactory` shed at `cc4ae9d3`; and `find_validator`'s parent walk adopting an enclosing pre-shed checkout — **`floor37` § 6's defect class for the second time in this packet**, which is why it is named as a class. * **§ 3.7** registers **Q-T1** rather than performing it: the correction is owed as one append **when that box ticks**. ## A correction that corrected itself Q-T1 named **two** stale figures in § 3.7, and this amendment answered twice — the second answer overturning the first. **At this branch's base** only ONE had moved: **35** `def test_` against the recorded 34, with *"five refusal codes"* still five. **At the immutable sha `83a055a6`, BOTH have moved, and one moved while the amendment was being written**: the suite carries **79** `def test_`, and the refusal codes are **SIX** — `#1086` added **`conformance-corpus-unfaithful`**, the refusal carrying FLOOR PART 3's transposition contract. The corpus is **still 17 checks**. *The registered paragraph predicted precisely this* — it says a test count *"is exactly the kind of figure that moves under acts with nothing to do with it"* — and was then overtaken by it inside a single amendment. **Re-measure all three at YOUR head; a count in this row is a reading, never a fact.** **Q-T2** (list-versus-tuple `list_documents`, `5716870896`) is recorded as RULED (a): **no change, the seventeen stay closed.** ## Records that move no box * **§ 3.4** books the **Q7 trio** (`openXdox-code` **#22 → `fa792cbb`**) and the **S7 residue pair** — **#1085 → `1da7ea6e`** (13:29:34Z) with `openDox-code` **#28 → `52b237e8`** (13:30:20Z). **Guarded explicitly**: Q-L1's annotation-first rule holds again in form, 46 s apart, but **the holding count stays SEVEN** — it counts one holding per *annotated slice*, and this is residue to S7, already counted. Counting it would restate a figure this packet has already had to correct once. * **§ 4.5a** takes its exit sentence from `openXdox-code`#23's own body **with `--dest-root` ADDED, and not as offered**. The sentence as offered would record a passing run of a command that **cannot run**. * **§ 3.7** registers **Q-T1** rather than performing it, owed as one append **when that box ticks**. ## Six residue rows booked, none resolved * **(i)–(iii)** the snapshot validator's three defects on Q-P3 — `SCHEMAS_DIR` absent; `VALIDATOR_RELPATH` naming a path shed at `cc4ae9d3`; `find_validator` adopting an enclosing pre-shed checkout, **`floor37` § 6's class for the second time in this packet**. * **(iv)** two of the **release bundle's own validators** byte-drifted against their digest set. **Not a finding against § 8.3** — clause 3 reads the *historical* commit `ce5c054e`, this drift is measured against *today's working tree*, and both are true. Also **not** the three `HGR-RELEASE-SURFACE-DRIFT` paths, so the two reports must not be collapsed. * **(v)** `validate-sequenced-after.py` claims **"124 of the 143"**; measured at merged head `c2d5ce92` it is **128 of 172**. **The live claim lives at THREE sites** — `:42`/`:402` the pair and `:739`, an **argparse help string** and so user-visible CLI text. *This row first "corrected" three to five by adding `:36`/`:396`; that was wrong and is retracted in the ledger — both read "before it was made a gate" and are **historical evidence**, which renumbering would destroy.* **A dated claim is not a stale claim.** **A bare renumber is the wrong repair**: the denominator moved **three times in one afternoon** (170 → 171 → 172) while the numerator held at 128, because a closure archived on its own directory's date lands in the *equal* bucket. **The denominator rots by construction.** * **(vi)** the `archive-date-vs-commit` arm is **history-shape sensitive** (INCIDENT 2 is the demonstration), owed to the owner of `tests/sequenced_after`. Two candidates, neither chosen: a **first-parent walk**, or dispositioning by the **(directory, adding commit) pair** so a displaced row reads **SUPERSEDED** rather than STALE. **Candidate (1) is measured to work on this case** — `d8ff2ec2` is not reachable along main's first-parent line — **but that is one case and not a proof of the general rule.** ## What this amendment deliberately does not do § 3.5, § 3.6 and § 4.5a keep their `[ ]` and wait for their own landings. **#1060, #1065 and #1066 (§ 6.1 / § 6.5 / § 6.2) are not ticked here**; their ticks are left to a later amendment unless they land before this one's window opens. ## Gates `OPENSPEC_TELEMETRY=0 openspec validate split-opendox-two-layer-product --strict` **valid** · `proposal-support.py verify` **ok** · `validate-sequenced-after.py --ledger-diff` **clean (219 rows)** · `verify-opendox-pin.py` **OK, lockstep confirmed**. **The gate is GREEN.** The `add-composed-view-authoring` STALE finding that reddened `main` was INCIDENT 2's, and it is retired: **#1109 → `dc242f3a`** (merged 14:26:58Z). Verified in this branch's own merged tree, not taken on report — `validate-sequenced-after.py` exits **0** with *"archive-date-vs-commit agreement passed … 13 disposition(s) in force"*, and the retired key is genuinely absent (13 live keys, none of them that one; the four remaining name-hits are all comments recording why). The corpus reconciles at **172 archived / 13 dispositioned / 159 agreeing**. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>



Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)
Refs #656 (stays OPEN).
split-opendox-two-layer-product§ 5.7 — the BREAKING majorcontract-v4.0. The five ideation-dashboard contract schemas are REMOVED fromcontracts/manifest.yamland consumed at the openDox / openXdox spec legs. No contract byte changes: every one of the five carries at its destination exactly thesha256this manifest recorded for it atcontract-v3.7, re-measured at the pinned legs while writing this PR rather than assumed. What is removed is openxFactory's OWNERSHIP of them.The record this cut stands on
5635150678contracts/releases/<tag>.digests.yaml, version) on the plain gate; the annotated tag is Brett's act"5635524078contract-v3.7first, from pre-shed main — the order this cut waited forcontract-v3.7tag record5639092895ec3c1729→45bd9ee2(#970's squash),verify-tagreportingrelease verify-tag: pass— the "preceding full minor of deprecation warnings" § Change Classes requires now EXISTS56391357345638315691cc4ae9d3, and the OWED "release-inventory bundle cut" this bundle dischargesThe tag is NOT taken here (ASK-9c). The exact block is handed over at the end of this body.
What is removed — the five manifest rows
Each left with the
relocating:blockcontract-v3.7put on it; the shape has now actually left. The destination digests were re-measured against the pinned legs for this PR and all five match the row byte for byte:idsha256, unchangedgate-action-recordopensoft/openXdox-spec481a07f96a6cf13c…ideation-dashboard-snapshot-indexopensoft/openXdox-spec481a07f943acf0bb…ideation-dashboard-snapshotopensoft/openXdox-spec481a07f99c44da23…xfactory-workbench-chat-turnopensoft/openDox-spec1a216ea4350bfedc…xfactory-workbench-model-catalogopensoft/openDox-spec1a216ea4e563cc9f…The FILES were already gone — § 5.2's shed deleted all five paths at
cc4ae9d3, and between that commit and this one the rows stood over files this repository no longer carried. That is the state this cut closes.dox-v1.0/xdox-v1.0DO NOT EXIST at this cut (Phase 6, held by ASK-9c), so the migration path pins COMMITS, throughcontracts/openxdox-pin.yaml(84056415…) andcontracts/opendox-pin.yaml(44679fa7…); no consumer-facing pin file for this family is owed by this release and none is added.The verify-commit finding on main, and its repair
PR-2's OWED item, discharged by cutting this bundle. On
origin/main(measured at8015d45fwhen the candidate was written and again atc521504cbefore the merge)verify-commitreported exactly two findings and nothing else:Both are the shed-awareness those two release members gained at
cc4ae9d3, after thecontract-v3.7inventory was built. This cut's regenerated inventory carries their current digests and the findings are gone at this head (output below).Three unrelated deprecations are RESTATED to
contract-v5.0— LISTED FOR BRETT HEAP'S VETONone of their removals is taken here. Each entry pre-authorized its own restatement if its target arrived with its acts unauthored;
contract-v4.0arrives today carrying a removal in a different family entirely, so all three move by exactly one major with the reason, which is whatcontract-deprecation-executionrequires of an entry that reaches its target unexecuted.hermesflat KEYS — the twelve, by path (retire-hermes-flat-keys-and-openworkflow-tokens)contract-v4.0contract-v5.0consumer:block on a credential binding — and EIGHT acts that land together with it (add-binding-consumer-identity, extended byadd-consumer-identity-namespace; the ninthidentity_namespacegrammar row rides with them)contract-v4.0contract-v5.0requirement_refthat RESOLVES TO NOTHING, or to more than one requirement of the document it names (add-requirement-ref-resolution-integrity)contract-v4.0contract-v5.0The second and third move TOGETHER because the policy states they share ONE deprecation window and ONE major;
tests/credential_contracts/test_major_release_matches_policy.pyfails if a restatement splits them or breaks the "next major" pattern.scripts/validate-credential-contracts.pyneeds no edit: it DERIVESMAJOR_RELEASEas one major past the bundle the manifest declares (openxFactory#634), so the bump moves every message it emits tocontract-v5.0on its own.Two packaged examples restate with them (
examples/credential-contracts/warning/requirement-ref-unresolved.yaml,requirement-ref-ambiguous.yaml) — their prose made the same live claim, "the refusal lands atcontract-v4.0", which this cut would otherwise publish as a promise it does not keep. Neither is a release member, so the correction spends no digest.Two classes of
contract-v4.0mention are deliberately LEFT, and named here rather than left to be found: this repository'sREADME.mdrecords what thecontract-v3.0cut WROTE (history, not a live target), and the ACTIVEopenspec/changes/retire-hermes-flat-keys-and-openworkflow-tokenspacket namescontract-v4.0as its ratified target — restating a ratified packet is its own change, and this PR touches noopenspec/changes/path (which is also what keeps it on the plain gate).The number
contract-v4.0is allocated AT THE CUT by merge order and was never reserved (§ Version Identity;tasks.md§ 5.7 says the same).git ls-remote --tags origin | grep -E 'refs/tags/contract-v4\.0$'was EMPTY when this PR was opened and is re-checked before it is marked ready. If another major-class bundle takescontract-v4.0first, this one is re-cut at the next available major — exactly ascontract-v3.6was re-cut after a sibling lane tookcontract-v3.5.Pre-flight, run locally before this PR was opened
verify-commitat this head — CLEAN, which is main's two findings repaired. Re-run at the head this PR now carries (1eae7172, the second merge fromorigin/main):origin/mainmoved twice while this branch was open and was merged both times (b077f908←c521504c,1eae7172←0805c3bb). The first merge moved release members and the inventory was REBUILT against the merged tree (54f7d77e). The second merge moved six files —docs/doc-health.md,scripts/doc_health/modified_block_currency.py,scripts/validate-carve-manifest.pyand three of their tests — none of them acontract-v4.0release member, which is whyverify-commitstill passes against the inventory as built and no rebuild is taken for it. Neither merge touched a removed row, the restated entries, or any file in this cut's diff.contract-v4.0unused onorigin:git ls-remote --tags origin | grep -E 'refs/tags/contract-v4\.0$'→ empty (re-checked before this PR was opened, again before it was marked ready, and again at 2026-09-11T23:45Z at the head below — still empty each time).The full suite, CI's exact invocation (
python3 -m pytest tests/ -q -m "not postgres" --junitxml=…, a venv on the workflow'srequirements/hermes-runtime-contracts.lock, the pinned OpenSpec CLI on PATH, node 22, theopenXwallet/openXdox/openDoxgitlinks initialized recursively). The first run FAILED, it found a real defect of this cut, and that is what a pre-flight is for:All 44 + 12 were ONE defect with two faces: removing the five rows removes the second record a fail-closed digest chain reads.
doxbench_contracts.py::_verified_bytesverifies a pinned schema against the module's hard-pinned literal AND the checkout'scontracts/manifest.yamlrow for the same path; the § 5.2 shed left that chain intact (the digest never moved), but the § 5.7 removal deletes the ROW, and the loader refusedxfactory-workbench-chat-turnandxfactory-workbench-model-catalog— "the checkout's contracts/manifest.yaml carries no entry for … so the release does not describe this schema" — taking 43 tests across four doxBench suites with it, plustest_intent_apply_lane.py's digest assertion forgate-action-record.The fix does NOT drop the second record: the removal changed the PUBLISHER, not the bytes, and the bundle's own published inventory still describes all three (they are catalog release members, they STAY members, and the inventory digests them at the pinned legs through
carved_reach)._release_recordsnow reads the manifest first and the declared bundle's inventory only for a path the manifest does not carry, so every existing refusal stands and a pre-contract-v4.0pin reads exactly as before. Targeted re-runs after the fix:test_doxbench_contracts.py106 passed, the three sibling doxBench suites 398 passed,test_intent_apply_lane.py40 passed. The full re-run, same invocation, after the fix — GREEN, and no test was silenced to get there:Read from the two JUnit reports rather than the summary lines: SELECTED is 7033 in both runs — identical, so nothing stopped being collected — with failures
44 → 0and errors12 → 0. The skip count falls23 → 21, and the two are named:tests/ideation-dashboard/test_doxbench_routes.py::test_the_released_floor_itself_names_the_causeand::test_a_second_violation_beside_the_buffers_floor_keeps_the_generic_message, which in run 1 took a guarded skip carrying THIS defect as its reason — “the pinned doxBench release is unreadable here: xfactory-workbench-chat-turn.schema.yaml: the checkout's contracts/manifest.yaml carries no entry for …” — and in run 2 RUN AND PASS. So the fall is two tests recovered, not two lost.pytest-suiteon this PR is the check that decides, and it is reported below.Domain-factory conformance,
python3 scripts/validate-domain-factory.py <repo> --strictover fresh shallow clones of all five supported consumers:None of this is caused by the cut, and that is measured rather than asserted.
scripts/validate-domain-factory.pyis UNCHANGED by this PR, and it references neithercontracts/manifest.yamlnor any of the five removed ids — it reads the DOMAIN repository's ownstack.yaml, profiles, tenants and workflows. The four FAILs are each repo's own standing state under--strict: three are the singlememory_gateway block missingwarning, and OpsxFactory's errors are its own (tenancy.isolation.subject_context='per_subject'outside the recognized vocabulary, two profiles with noprofile.id, secret-scan hits in its tenant case files, and the rest).codexFactory— the one supported consumer that actually pins two of the removed schemas by digest in itsstack.yaml— is clean.Post-READY: four Copilot review rounds, and a third
origin/mainmergeThe PR went READY at
1eae7172(2026-09-11 21:48Z). Copilot then reviewed four times, always against the same removed-row substitution inscripts/ideation_dashboard/doxbench_contracts.py(_release_records/_inventory_digests); every one of the 8 threads it opened was VALID, none was replied-and-refused, and each round's fix is its own greenpytest-suiterun plus new parametrized tests that are MUTATION-CHECKED (each fails if its own fix is reverted, confirmed by hand for every round):pytest-suite46d5eed6bundle_tagnames a different bundle, (b) answers only forREMOVED_MANIFEST_ROWSand only fromREMOVAL_BUNDLE(contract-v4.0) forward — a pre-contract-v4.0checkout still requires its manifest row, (c) parses the bundle token against the release-tag grammar BEFORE joining it to a path (closing an absolute-path /../-traversal read), and (d) corrects the module docstring's claim that manifest parity is always required797c0289Path.is_file()follows symlinks, the canonical reader'sread_memberdoes not — matchingscripts/hermes_runtime_validation/release.py54b56e78is_symlink()answers for the FINAL path component only, so a symlinkedcontracts/releases(orcontracts) PARENT still put a real file at the expected path — now requirespath.resolve().relative_to(root.resolve())before anything is read; and refuses a duplicatepathentry instead of letting the last one silently win (HGR-RELEASE-PATH-DUPLICATE). The reply RETRACTS round 2's "cannot arise" claim about the escaping-path case rather than quietly patching around it219bb357seenin the samecontinueas the digest type-check, so an entry with a non-stringdigestskippedseen.add()— a second, well-formed entry for the SAME path then foundrelpath in seenfalse and slipped through unflagged, in EITHER order.seenis now joined as soon asrelpathis confirmed a string, beforedigest's type is examined at alltest_doxbench_contracts.py's collected count grew106 → 121across the four rounds. Per the lane's contemporaneous ledger:106 → 114at round 1 (+8) and106 → 119cumulative through round 3 (+13 total, rounds 1-3). This session directly re-measured the tail of that chain rather than trusting it forward:54b56e78(the round-3 head) plus this session's two round-4 tests collect as121(confirmed both by running the full file —121 passed— and by-k-filtering to just the two new tests —2 passed, 119 deselected, i.e. 119 untouched tests plus the 2 new ones), so round 3's own end-state was 119 collected, matching the ledger exactly, and round 4 is a clean119 → 121(+2, one test per ordering — first entry bad/second good and its mirror, both mutation-checked). The fulltests/ideation-dashboard/suite is green throughout (1121 passed, 13 skipped after round 4, no regressions).Between rounds 3 and 4,
origin/mainmoved a third time (972b484a,opensoft/openxFactory#979— the carve-arrival admissions file, five non-release files:README.md,docs/opendox-carve-admissions.yaml,docs/opendox-cutover-runbook.md,scripts/verify-carve-arrival.py,tests/carve_arrival/test_verify_carve_arrival.py) and was merged (6e0a69db);verify-commitstayed CLEAN and no inventory rebuild was needed (no release member touched — confirmed by grep againstcontracts/releases/contract-v4.0.digests.yamlbefore merging, then byverify-commitafter). All 8 review threads are resolved (0 unresolved) and every required check is SUCCESS at the PR's current head, confirmed together after the round-4 push and again after a further wait for Copilot's re-review to land.The gate, at this head (
219bb357) — every required check greenlane-lineopenspec-cli-pinpytest-suiterelease-tag-gatesigned-execution-chain-gatewallet-validationclearing-dispatch-gateopenreposhape-pinmerge-master-approval(advisory)pytest-suitereported6914 passed, 6 skipped, 338 deselected, 9 warnings, 172 subtests passed in 1058.99s (0:17:38), and its pinned triple — read from the JUnit attributes, not the summary — cleared with room:The EXACT skipped pin is the one this cut could plausibly have moved, and it did not:
skipped==6holds, same as at every earlier head measured in this PR (11baa638,1eae7172).verify-commitat this head:What is in the diff
contracts/manifest.yaml—contract_bundle_version: contract-v4.0; the five rows DELETED with theirrelocating:blocks; in their place, comments that say what stood there, where it went and at which digest. Nothing else in the file moves. Theconsumption_ruleruling (issue Posture family follow-up: whitespace-only reduced_reason passes all five gates (fresh-eyes F1) #263) that lived inside the removed chat-turn row is KEPT as a general precedent, because a ruling deleted alongside its example reads like one that was never made.contracts/CHANGELOG.md— the BREAKING entry: the three § Change Classes requirements each discharged and checkable, what is removed, the migration path, the conformance-validator questioncontract-v3.7left open ANSWERED, what did NOT move, the release surface and the two digests this bundle repairs, the restatements, rollback posture, sequencing.docs/contract-versioning-policy.md— the shed's entry MOVED into § Deprecations Executed as REMOVED atcontract-v4.0citingcontract-v3.7; the three unrelated entries restated as above.contracts/README.md— the five schemas' rows (and the relocated validator's row) narrate the removal in the style row 88 already used for the chat-turn v1 retirement.contracts/releases/contract-v4.0.digests.yaml— built byvalidate-contract-release.py build, 283 entries, rebuilt after the FIRST merge from main (54f7d77e); the second merge moved no release member, so it stands unchanged andverify-commitpasses at the head.tests/intent-compliance/test_release_boundary.py— the release-boundary enum advances tocontract-v4.0with the measurement that no intent-compliance member moved between the two cuts.examples/credential-contracts/warning/{requirement-ref-unresolved,requirement-ref-ambiguous}.yaml— the restated target, as above.scripts/ideation_dashboard/doxbench_contracts.pyandtests/ideation-dashboard/test_intent_apply_lane.py— the second release record the removal leaves standing, found by the local pre-flight and described under Pre-flight above. Neither is a release member, so no digest moves for them.doxbench_contracts.pywas further hardened across the four Copilot review rounds described above (bundle-tag parity, the removed-row/bundle-floor bound, the release-tag grammar guard, resolved-path containment, and the duplicate-path refusal in both its own faces) — none of it changes what is verified, all of it changes what a TAMPERED inventory can get past the loader.The tag block, for Brett Heap AFTER this lands (ASK-9a / ASK-9c; Bundle Realization Order step 5)
$LANDEDis left for the lane to fill from the merge commit; ifverify-commitreports a finding at it, STOP and do not tag — the landed commit is a new candidate.🤖 Generated with Claude Code