Skip to content

Realize adopt-entry-grain-dispositions-form § 3: the shape adapter judges dispositions: at the entry grain as the verifier's pure guard does - #1094

Merged
brettheap merged 6 commits into
mainfrom
change/adopt-entry-grain-dispositions-form-realization
Sep 18, 2026
Merged

brettheap merged 6 commits into
mainfrom
change/adopt-entry-grain-dispositions-form-realization

Conversation

@brettheap

@brettheap brettheap commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-2 (openXfactory-2)

THE WORD. "Realize now, land when green" — Brett Heap, openxFactory repository owner, first-hand in session to this lane, 2026-09-17T12:34:52Z. THE CITATION: #1045 (comment). This is § 3 of the ratified packet adopt-entry-grain-dispositions-form and nothing else: § 4 stays open, the archive being a further act on a further word.

THE SCOPE, RULED THE SAME DAY. The partition is DEFINED BY THE GUARD, so it reaches only an optional member that HAS a pure, source-free one — today dispositions:, via pinned_dispositions (#1045 (comment)). This pull request implements the entry-grain arm for dispositions: ONLY.

The arm, per D-1 row — the guard CALLED and judge() called on the SAME record

scripts/doc_health/pin_shapes.py gains _disposition_entry_failure, which transcribes D-1 rows 2-6 in the guard's own order, and _is_disposition_list becomes its boolean face, so the two readings cannot drift. Measured side by side over D-1's TEN counted gap records plus null, [], "", [{}] and both transcription traps — all sixteen AGREE:

D-1 row record guard adapter
2 (:813-817) [null] REFUSES pin-disposition-malformed dispositions[1] not-a-mapping (None)
2 ["a"] REFUSES dispositions[1] not-a-mapping ('a')
3 (:818-827) [{}] REFUSES dispositions[1] missing (repo, item, path, finding, why, cited_to)
3 entry without cited_to REFUSES dispositions[1] missing (cited_to)
3 cited_to: [] REFUSES dispositions[1] missing (cited_to) — the trap: :818 tests FALSEY, so this is the MISSING key and never reaches row 4's citation-shape refusal
3 why: "" REFUSES dispositions[1] missing (why)
4 (:828-836) cited_to: "x" REFUSES dispositions[1] malformed (cited_to 'x' is not a non-empty list)
5 (:837-848) level: "WARNING" REFUSES dispositions[1] malformed (level 'WARNING' is outside ERROR)
5 level: "" REFUSES dispositions[1] malformed — the trap: is not None, not truthy, so "" is refused
6 (:849-855) entry naming no authority REFUSES dispositions[1] missing (ratified_by or recorded_by)
0 (:801-803) null · [] ACCEPTS ACCEPTS — the member stays absent-is-empty and OPTIONAL
1 (:804-809) "" REFUSES dispositions malformed — the MEMBER grain, bare spelling, unchanged
5 level: "error" ACCEPTS ACCEPTS — case-folded (str(level).upper())
— valid first entry, refused second REFUSES dispositions[2] dispositions[2] — the trap: the where is the guard's own ONE-BASED index

Failure gains one field, detail, defaulting to empty, so every member-grain finding renders BYTE-IDENTICALLY; EntryFailure carries the guard's own where always and the key or raw value the refusal turned on. The member stays in SHAPE_C.optional, out of SHAPE_C.required, and the measured (29, 27, 2) table split does not move.

pinned_by_commit_only: is deliberately UNTOUCHED

It has no pure guard: both shape-(a) verifiers judge it inside a source-dependent verify(), and they DIFFER at the file boundary — validate-openreposhape-pin.read_pin() keeps top-level scalars as strings, so null/false/0 are refused there as truthy strings, while the YAML-loaded wallet verifier sees Python falsey values (#1045 comment 5715775376). _is_path_only_list and the SHAPE_A.optional entry are byte-identical to origin/main (verified), and no test added here asserts verifier parity for that member. The last commit removes the _PATH_ONLY_FALSEY table, test_pinned_by_commit_only_is_empty_for_every_falsey_value, and the three pinned_by_commit_only assertions the partition test carried; that test is now test_the_partition_reaches_only_the_optional_member_with_a_pure_guard and asserts the dispositions: half alone. The boundary is kept as a NOTE in _is_disposition_list's docstring and in that test's own, each citing the ruling.

Failing-then-passing

With scripts/doc_health/pin_shapes.py replaced by origin/main's and the two test files exactly as this pull request leaves them: 27 failed, 105 passed. With the adapter as this pull request leaves it: 132 passed. The two files collect 82 at origin/main and 132 here — 50 added, 27 of which are the closing of D-1's measured gap; the other 23 are the ACCEPTING and NEGATIVE cases, which pass in both states by design and are the no-WIDER half of the equivalence.

doc-health, before and after

python3 scripts/doc-health.py --single-repo . --as-of 2026-09-17 --family tag-hygiene

before (persisted, main a93d2682) after (this branch)
findings 0 critical, 5 error, 0 warning, 0 info 0 critical, 5 error, 0 warning, 0 info
the five 1 malformed xspec: marker + 4 openxwallet-pin.yaml no-capabilities: the same five, every finding line byte-identical once the clone's own directory name is normalized
dispositions: findings 0 0
findings on contracts/ 0 0

The only other lines that move between the two reports are the corpus word counts (draft 160013 → 164218), which main's own new documents moved.

Validation

command result
pytest -q -p no:cacheprovider tests/doc-health/test_pin_shape_adapter.py tests/doc-health/test_tag_hygiene_pinned_targets.py 132 passed
pytest -q -p no:cacheprovider tests/doc-health 1876 passed, 7 warnings (origin/main collects 1826)
pytest -q -p no:cacheprovider tests/openspec_cli_pin 154 passed
pytest -q -p no:cacheprovider tests/proposal-support 199 passed, 296 subtests passed
OPENSPEC_TELEMETRY=0 openspec validate --all --strict 109 passed, 2 failed (111 items) — the two pre-existing add-chain-attestation and add-composed-view-authoring, identical to the persisted baseline
OPENSPEC_TELEMETRY=0 openspec validate adopt-entry-grain-dispositions-form --strict valid
python3 scripts/proposal-support.py . verify proposal support verification ok
python3 scripts/validate-sequenced-after.py . --ledger-diff per-change sweep ledger consistent with the corpus (218 rows)

origin/main at 4b53ea99 is merged in. Four files move and no other: scripts/doc_health/pin_shapes.py, tests/doc-health/test_pin_shape_adapter.py, tests/doc-health/test_tag_hygiene_pinned_targets.py and the packet's tasks.md (§ 3's eleven boxes ticked with REALIZED annotations citing the word). No byte of the ## MODIFIED spec delta, proposal.md, design.md, .openspec.yaml, any pin verifier, any record under contracts/ or any file under openspec/specs/ moves here.

Lands under Rule 6 when six required checks are green and Copilot is clean, AFTER the partition amendment PR #1088 has landed.

Merged origin/main 3e32d987 (f7732b11). ONE conflicted file,
scripts/doc_health/pin_shapes.py, in two hunks — _is_disposition_list and the
six-citation SHAPE_C.optional entry — BOTH RESOLVED TO THIS BRANCH'S
REALIZATION. Main's own edit to that file was a RE-POINT and nothing else:
#1056's re-homing HAPPENED, so validate-openspec-cli-pin.py's doctrine
paragraph was rewritten into the past tense, adding SEVEN lines at :139 and
shifting every guard below by +7. The resolution is therefore this branch's text
with that shift applied and re-measured line by line against the merged
verifier
: pinned_dispositions 787 → 794, the absent-is-empty line 801 → 808,
and D-1's five entry-grain conditions 813/818/829/838/849 →
820/825/836/845/856. tests/doc-health/test_pin_shape_adapter.py auto-merged and
carries the same re-point, three of its citations being ASSERTED rather than
prose. ONE MAIN-SIDE FACT, not merely a number, is integrated: #1056 deleted the
add-composed-view-authoring disposition from contracts/openspec-cli-pin.yaml,
so test_the_real_record_still_resolves_at_both_the_guard_and_the_adapter moves
6 → 5 and says why. #1088's partition clause is UNTOUCHED — the packet's
specs/document-lifecycle/spec.md, its review/ratification-2026-09-16.md,
tests/doc-health/test_modified_block_currency_self_gate.py, the pin record and
the verifier are byte-identical to origin/main in this tree, and tasks.md is
byte-identical to c82d31bf. Post-merge: 132 passed (the two files),
1893 passed (tests/doc-health, 0 failed), tests/sequenced_after
3 failed / 283 passed — IDENTICAL to pristine origin/main at 3e32d987
(archive-date-disposition STALE: 2026-09-16-gate-code-surface-declarations,
inherited, not ours), openspec validate --all --strict 109 passed, 1 failed
(110 items)
— add-chain-attestation alone, the second pre-existing failure
having left with #1056 — proposal-support verify ok, and doc-health
tag-hygiene 5 errors, all pre-existing, 0 on dispositions: and 0 on
contracts/
.

refs #1045

🤖 Generated with Claude Code

Summary by Sourcery

Make the dispositions shape adapter judge entries at the same grain and with the same rules as the verifier’s pure guard.

New Features:

  • Extend the dispositions shape adapter to validate individual entries against the verifier’s pure guard and report the failing entry, defect, and relevant detail.

Bug Fixes:

  • Align adapter acceptance and rendered findings with the verifier for malformed dispositions entries, including required-field, citation, level, authority, and one-based index handling.

Enhancements:

  • Preserve dispositions as an optional, absent-is-empty member while keeping existing shape partitions and member-grain failure rendering unchanged.
  • Document and test the boundary that excludes pinned_by_commit_only because it lacks a pure source-free guard.

Documentation:

  • Record the realization of section 3 in the change tasks with its scope, evidence, and validation results.

Tests:

  • Add comprehensive guard-versus-adapter parity tests for malformed and accepted dispositions entries.
  • Add family-level tag-hygiene tests verifying findings name the malformed dispositions entry without introducing new unrelated findings.

brettheap and others added 3 commits September 17, 2026 14:01
…dges dispositions: at the entry grain as the verifier's pure guard does

REALIZED 2026-09-17 on Brett Heap's word "Realize now, land when green" —
openxFactory #1045, comment
#1045 (comment).

THE ARM. `_disposition_entry_failure` transcribes design D-1 rows 2-6 in the
guard's own order and `_is_disposition_list` is its boolean face, so the two
readings cannot drift: an entry that is not a mapping (`:813-817`), an entry
missing any of `DISPOSITION_REQUIRED` where missing is FALSEY and not merely
absent (`:818-827`), a truthy `cited_to` that is not a non-empty list
(`:828-836`), a `level` that is not None and, upper-cased, is outside
`BLOCKING_LEVELS` (`:837-848`), and an entry naming neither authority
(`:849-855`). The three constants are carried BY TRANSCRIPTION with the line
each was measured at; the adapter still imports no verifier.

WHAT DOES NOT MOVE. The member stays in `SHAPE_C.optional` and out of
`SHAPE_C.required`; absent, `null` and `[]` stay accepted; the measured
`(29, 27, 2)` table split is untouched, the entry-grain citations sitting on the
OPTIONAL entry the guard leg does not range over. `Failure` gains one field,
`detail`, defaulting to empty, so every member-grain finding renders
byte-identically; `EntryFailure` carries the guard's own ONE-BASED
`dispositions[N]` always and the key or raw value the refusal turned on.

EVIDENCE. 55 tests added under `tests/doc-health/`; 27 of them FAIL on the
unmodified adapter and all pass with it. `tests/doc-health` 1826 -> 1881
passed; `tests/openspec_cli_pin` 154 passed; `doc-health --family tag-hygiene`
byte-identical to the same run on the same clone with the adapter unmodified —
0 critical, 5 error (all unrelated), 0 warning, zero `dispositions:` findings.

§ 4 stays open: the archive is a further act on a further word. No byte of the
spec delta, proposal.md, design.md, .openspec.yaml, any pin verifier, any
record under contracts/ or any file under openspec/specs/ moves here.

Lane: openxfactory-2
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…only) — remove the pinned_by_commit_only parity cases; verify against the guard

THE SCOPE, RULED. The partition is DEFINED BY THE GUARD, so it reaches only an
optional member that HAS a pure, source-free one — today `dispositions:`, via
`pinned_dispositions` — openxFactory #1045 comment 5715775376, the ratifier's
own precision on his word "Realize now, land when green" (comment 5714433011).
`pinned_by_commit_only:` has NO pure guard: both shape-(a) verifiers judge it
inside a source-dependent `verify()`, and they DIFFER at the file boundary
(`validate-openreposhape-pin.read_pin()` keeps top-level scalars as strings, so
`null`/`false`/`0` are refused there as truthy strings, while the YAML-loaded
wallet verifier sees Python falsey values).

WHAT THIS COMMIT REMOVES, from the realization as first authored: the
`_PATH_ONLY_FALSEY` table and
`test_pinned_by_commit_only_is_empty_for_every_falsey_value` (a verifier-parity
assertion for a member with no pure guard), and the three
`pinned_by_commit_only` assertions from the partition test, which is now
`test_the_partition_reaches_only_the_optional_member_with_a_pure_guard` and
asserts the `dispositions:` half ALONE. `_is_path_only_list` IS UNTOUCHED —
BYTE-IDENTICAL to `origin/main` — and no test added here asserts verifier
parity for that member; the boundary is carried as a NOTE in
`_is_disposition_list`'s docstring and in the narrowed test's own, each citing
5715775376.

THE ARM, VERIFIED AGAINST THE GUARD ROW BY ROW. `pinned_dispositions` CALLED
and `judge(record, "openspec-cli")` called on the same record, for D-1's TEN
gap records plus `null`, `[]`, `""` and `[{}]` and both transcription traps:
all sixteen AGREE. Row 2 `[null]` / `["a"]` -> `dispositions[1]`
not-a-mapping; row 3 `[{}]` -> missing (repo, item, path, finding, why,
cited_to), no `cited_to` -> missing (cited_to), `cited_to: []` -> missing
(cited_to) NOT the citation-shape refusal, `why: ""` -> missing (why); row 4
`cited_to: "x"` -> malformed; row 5 `"WARNING"` and `""` -> malformed, while
`level: "error"` is ADMITTED by both, case-folded; row 6 -> missing
(ratified_by or recorded_by). `null` and `[]` accepted at both, `""` refused
at the MEMBER grain naming the bare `dispositions`, and a valid first entry
with a refused second reports `dispositions[2]` — the guard's own ONE-BASED
`where`.

EVIDENCE. 50 tests added over `origin/main` (the two files 82 -> 132); 27 of
them FAIL against `origin/main`'s `pin_shapes.py` with these test files
(105 passed, 27 failed) and all 132 pass with the adapter this commit leaves.
`tests/doc-health` 1876 passed (main collects 1826); `tests/openspec_cli_pin`
154; `tests/proposal-support` 199 + 296 subtests; `proposal-support verify` ok;
`openspec validate --all --strict` 109 passed / 2 failed, the two pre-existing;
`doc-health --family tag-hygiene` 0 critical, 5 error, 0 warning, 0 info, every
finding line byte-identical to the persisted `a93d2682` run, ZERO
`dispositions:` findings, no new finding on `contracts/`.

§ 4 stays open: the archive is a further act on a further word.

Lane: openxfactory-2
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings September 17, 2026 15:09
@sourcery-ai

sourcery-ai Bot commented Sep 17, 2026

Copy link
Copy Markdown

Reviewer's Guide

The PR realizes § 3 by making the dispositions: adapter mirror the verifier’s pure entry-grain guard, report precise one-based entry failures, and validate parity through focused adapter and family-level tests, while preserving optional-member behavior, shape counts, unrelated members, and the existing specification boundaries.

Sequence diagram for disposition entry validation parity

sequenceDiagram
    participant Record
    participant Adapter as pin_shapes.judge
    participant EntryCheck as _disposition_entry_failure
    participant Guard as pinned_dispositions

    Record->>Adapter: judge(record, openspec-cli)
    Adapter->>EntryCheck: _disposition_entry_failure(dispositions)
    EntryCheck-->>Adapter: EntryFailure or None
    Adapter->>Guard: pinned_dispositions(record)
    Guard-->>Adapter: accept or PinRefusal
    alt malformed entry
        Adapter-->>Record: Failure(dispositions[N], defect, detail)
        Guard-->>Record: pin-disposition-malformed at dispositions[N]
    else valid, absent, null, or empty list
        Adapter-->>Record: accepted
        Guard-->>Record: accepted
    end
Loading

Flow diagram for disposition entry failure classification

flowchart TD
    A["dispositions member"] --> B{"Value is null?"}
    B -->|yes| OK["Accept as empty"]
    B -->|no| C{"Value is a list?"}
    C -->|no| M["Member failure: dispositions malformed"]
    C -->|yes| D["Check entries in one-based order"]
    D --> E{"Entry is a mapping?"}
    E -->|no| F["EntryFailure: dispositions[N] not-a-mapping"]
    E -->|yes| G{"Required values all truthy?"}
    G -->|no| H["EntryFailure: missing key"]
    G -->|yes| I{"cited_to is non-empty list?"}
    I -->|no| J["EntryFailure: malformed cited_to"]
    I -->|yes| K{"level is None or ERROR case-folded?"}
    K -->|no| L["EntryFailure: malformed level"]
    K -->|yes| N{"ratified_by or recorded_by present?"}
    N -->|no| O["EntryFailure: missing authority"]
    N -->|yes| P["Accept entry; continue"]
    P --> Q{"More entries?"}
    Q -->|yes| D
    Q -->|no| OK
Loading

File-Level Changes

Change Details Files
Extend the dispositions: shape adapter from member-level validation to entry-level validation using a pure transcription of the verifier’s guard.
  • Add transcribed required keys, authority spellings, and blocking levels.
  • Validate entries in the verifier’s order, preserving falsey-key, citation, level, and one-based-index semantics.
  • Keep dispositions optional and preserve the existing shape partition.
scripts/doc_health/pin_shapes.py
Add entry-aware failure reporting while preserving existing member-level findings.
  • Introduce EntryFailure and optional Failure.detail data.
  • Render the failing entry, defect, and relevant key or raw value.
  • Route only dispositions entry failures through the new entry-grain hook; leave required-member handling unchanged.
scripts/doc_health/pin_shapes.py
Build comprehensive parity and regression coverage against the pure verifier and adapter.
  • Test all measured malformed-entry cases, corrected falsey/case-folding traps, valid entries, empty values, and one-based indexing.
  • Compare adapter constants with the verifier without importing the verifier into production code.
  • Verify citations, purity, unchanged shape counts, and unchanged behavior for pinned_by_commit_only.
tests/doc-health/test_pin_shape_adapter.py
Verify family-level findings identify malformed disposition entries without introducing unrelated findings.
  • Exercise malformed entries through tag-hygiene processing using complete temporary records.
  • Assert rendered findings name both dispositions and the exact failing entry.
  • Cover absent, null, empty, valid, and case-folded disposition members as resolving cases.
tests/doc-health/test_tag_hygiene_pinned_targets.py
Record completion of § 3 while explicitly keeping § 4 and unrelated specification changes open.
  • Mark all eleven § 3 tasks realized with implementation and evidence notes.
  • Document the scoped exclusion of pinned_by_commit_only and the unchanged spec/archive boundaries.
openspec/changes/adopt-entry-grain-dispositions-form/tasks.md

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The adapter’s new entry-grain behavior is narrowly scoped to dispositions:, preserves prior semantics, and is backed by focused parity and rendering tests.

Pull request overview

This PR updates the doc-health pin shape adapter for shape (c) to validate dispositions: at the entry grain (not just the member grain), matching the openspec-cli verifier’s pure guard behavior while keeping dispositions: optional and preserving existing member-grain findings.

Changes:

  • Add entry-grain disposition checking (dispositions[N]) with a structured failure representation that can carry per-entry defect detail.
  • Extend the shape (c) optional-member citations to include the verifier guard’s entry-grain conditions, and wire optional-member judging to report the failing entry when applicable.
  • Add/extend tests to assert verifier/adapter parity for dispositions: entry handling and to assert family-level rendered finding text names the member and the failing entry.
File summaries
File Description
scripts/doc_health/pin_shapes.py Implements entry-grain disposition validation and augments failure rendering to include per-entry detail.
tests/doc-health/test_pin_shape_adapter.py Adds verifier-call parity tests and asserts correct one-based dispositions[N] reporting and rendering behavior.
tests/doc-health/test_tag_hygiene_pinned_targets.py Adds family-level regression tests ensuring findings name the failing dispositions[N] entry in Finding.rule.
openspec/changes/adopt-entry-grain-dispositions-form/tasks.md Marks §3 realization tasks as completed with detailed realization/validation evidence.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-2 (openXfactory-2)

LANDING word — Brett Heap, 2026-09-17T15:59:46Z, verbatim: "merge 1094 when green after 1089" (citation #1045 comment 5717398099). Lands under Rule 6 after PR #1089; head c82d31bf twelve green, Copilot approval recommended.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-2 (openXfactory-2)

LANDING word reaffirmed — Brett Heap, 2026-09-18T12:39:12Z, verbatim: "merge 1094 when green after 1089" (citation #1045 comment 5730105844). Lands under Rule 6 after PR #1089, on green.

…wording kept; § 3 ticks kept

ONE conflicted file, `scripts/doc_health/pin_shapes.py`, in two hunks: this
branch's `_is_disposition_list` (entry grain) against main's (member grain),
and this branch's six-citation `SHAPE_C.optional` entry against main's one.
BOTH TAKE THIS BRANCH'S REALIZATION. Main's own change to the file was a
RE-POINT and nothing else: #1088's era rewrote a `validate-openspec-cli-pin.py`
docstring paragraph into the past tense (PR #1056's re-homing HAPPENED), adding
SEVEN lines at :139 and shifting every guard below it by +7. So the resolution
is this branch's text with main's shift applied — verified line by line against
the merged verifier, not assumed: `pinned_dispositions` 787 -> 794, the
absent-is-empty line 801 -> 808, and D-1's five entry-grain conditions
813/818/829/838/849 -> 820/825/836/845/856, each re-read at its new line.

`tests/doc-health/test_pin_shape_adapter.py` auto-merged and carries the same
re-point: its citations are THIS branch's additions, and three of them are
ASSERTED, not prose (`== [808]`, `lines[807]`, `== [820, 825, 836, 845, 856]`).

ONE main-side FACT integrated, not merely a line number. PR #1056 deleted the
`add-composed-view-authoring` disposition from `contracts/openspec-cli-pin.yaml`
when the packet re-homed, so the live record carries FIVE entries, not six;
`test_the_real_record_still_resolves_at_both_the_guard_and_the_adapter` moves
6 -> 5 and says why in its docstring. The reading it exists for — every entry
the guard admits, the adapter admits — is the same at five as at six.

NOT TOUCHED. The packet's `specs/document-lifecycle/spec.md` (#1088's partition
clause), its `review/ratification-2026-09-16.md`, `contracts/openspec-cli-pin.yaml`,
`scripts/validate-openspec-cli-pin.py` and
`tests/doc-health/test_modified_block_currency_self_gate.py` are BYTE-IDENTICAL
to `origin/main` in this tree. `tasks.md` is byte-identical to this branch's
`c82d31bf`: § 3's ticks and REALIZED annotations are kept whole, and their
verifier line citations are left as MEASURED — they pair with the ratified task
text above them, which cites the same lines, and main re-pointed live code and
tests while leaving ratified packet prose alone. Re-pointing only this branch's
half would break that pair and would edit a ratified packet in a merge.

Lane: openxfactory-2
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings September 18, 2026 12:53
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-2 (openXfactory-2)

Back to MERGEABLE at f7732b11 — origin/main 3e32d987 merged in. gh pr view 1094 --json mergeable → MERGEABLE.

The one conflict, and why it resolved the way it did

scripts/doc_health/pin_shapes.py, two hunks: this branch's entry-grain _is_disposition_list against main's member-grain one, and this branch's six-citation SHAPE_C.optional entry against main's single citation. Both take this branch's realization.

Main's own change to that file was a RE-POINT and nothing else. The illustration the verifier's doctrine paragraph was written around happened: #1056 re-homed add-composed-view-authoring to opensoft/openDox under RULING Q6, so scripts/validate-openspec-cli-pin.py's paragraph was rewritten into the past tense — seven lines added at :139, shifting every guard below it by +7. So the resolution is this branch's text with main's shift applied, and the shift was re-measured against the merged verifier line by line, not assumed:

claim was now line now reads
pinned_dispositions def :787 :794 def pinned_dispositions(pin: dict) -> list[dict]:
absent-is-empty :801 :808 raw = pin.get("dispositions")
D-1 row 2 :813 :820 if not isinstance(entry, dict):
D-1 row 3 :818 :825 missing = [key for key in DISPOSITION_REQUIRED if not entry.get(key)]
D-1 row 4 :829 :836 if not isinstance(citations, list) or not citations:
D-1 row 5 :838 :845 if level is not None and str(level).upper() not in BLOCKING_LEVELS:
D-1 row 6 :849 :856 if not any(entry.get(key) for key in DISPOSITION_AUTHORITY):

tests/doc-health/test_pin_shape_adapter.py auto-merged and carries the same re-point. Three of those citations are ASSERTED, not prose — == [808], lines[807], == [820, 825, 836, 845, 856] — and the quote/quote_line pairs are re-read against the file by the optional arm's own helper, so a stale number is a red test, which is the whole design.

The one main-side FACT integrated

#1056 did not only move a packet: it deleted the add-composed-view-authoring disposition from contracts/openspec-cli-pin.yaml in the same pull request, the pin having refused pin-disposition-stale on it. The live record therefore carries FIVE entries, not six, and test_the_real_record_still_resolves_at_both_the_guard_and_the_adapter moves 6 → 5 with the reason in its docstring. The reading that test exists for — every entry the guard admits, the adapter admits — is the same at five as at six, and this branch still deletes no entry and adds none.

What the merge did NOT touch

Byte-identical to origin/main in this tree: the packet's specs/document-lifecycle/spec.md (#1088's partition clause), its review/ratification-2026-09-16.md, tests/doc-health/test_modified_block_currency_self_gate.py, contracts/openspec-cli-pin.yaml and scripts/validate-openspec-cli-pin.py. git diff --name-only origin/main returns exactly this branch's four files and nothing else.

openspec/changes/.../tasks.md is byte-identical to c82d31bf: § 3's ticks and REALIZED annotations are kept whole, and their verifier line citations are deliberately left as measured. They pair with the ratified task text directly above them, which cites the same lines; main itself re-pointed live code and tests and left ratified packet prose alone, and re-pointing only this branch's half would break the pair and edit a ratified packet inside a merge commit. Raising it here rather than deciding it silently.

Validation, post-merge, in a fresh clone at f7732b11

command result
pytest -q tests/doc-health/test_pin_shape_adapter.py tests/doc-health/test_tag_hygiene_pinned_targets.py 132 passed — the same count this PR recorded
pytest -q tests/doc-health 1893 passed, 0 failed (1876 before the merge; main's own new tests account for the rise)
pytest -q tests/sequenced_after 3 failed, 283 passed — and pristine origin/main at 3e32d987, cloned separately, gives exactly 3 failed, 283 passed. Inherited, not ours.
OPENSPEC_TELEMETRY=0 openspec validate --all --strict 109 passed, 1 failed (110 items) — add-chain-attestation alone; the second pre-existing failure, add-composed-view-authoring, left the corpus with #1056
OPENSPEC_TELEMETRY=0 openspec validate adopt-entry-grain-dispositions-form --strict valid
python3 scripts/proposal-support.py . verify proposal support verification ok
python3 scripts/doc-health.py --single-repo . --family tag-hygiene 5 errors — all pre-existing (1 malformed xspec: marker + 4 openxwallet-pin.yaml no-capabilities:); 0 dispositions: findings, 0 findings on contracts/

The inherited failure, named

archive-date-disposition STALE: 2026-09-16-gate-code-surface-declarations: no commit in this history added it — tests/sequenced_after/archive-date-dispositions.yaml cites an adding commit that this history does not carry. It reds test_THE_LIVE_RECORD_DISPOSITIONS_ONLY_REAL_DISAGREEMENTS_and_NAMES_FACTS, test_THE_LIVE_PLAIN_RUN_IS_GREEN_WITH_ZERO_UNDISPOSITIONED and test_corpus_sequenced_after_all_validate. It is main's, reproduced on a pristine origin/main clone before this branch was compared to it, and it is not the 2026-09-16-add-composed-view-authoring undispositioned failure the merge was briefed to expect — the shape is the same, the named directory is not.

One note for whoever runs this locally: a fourth tests/sequenced_after failure (test_THE_BATCH_WALK_AGREES_WITH_A_PER_DIRECTORY_LOG_on_every_DISPOSITION, IndexError) appears while the merge is staged but uncommitted — that walk reads git log --diff-filter=A, so main's newly added archive directories have no adding commit until the merge commit exists. It disappears the moment the merge is committed. Not a finding.

Lane: openxfactory-2

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The adapter’s new entry-grain behavior is narrowly scoped to dispositions: and is backed by direct guard-call parity tests plus family-level rendering assertions, with no observed regressions to existing member-grain output.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-2 (openXfactory-2)

RULED STAND (lane) on the tasks.md citations flagged above. The § 3 ticks' verifier line numbers stay as MEASURED at the realization's base (4b53ea99): they pair with the ratified task text directly above them, which cites the same lines, and a packet's tasks.md is record text — history is history and every citation stands (the same principle docs/document-lifecycle.md:556 applies to archive names). Main's +7 re-point (#1056, 3e32d987) is a fact about the live verifier, already carried where it is asserted (test_pin_shape_adapter.py). The archive of this packet (on the word, after the #1070 fix) records the re-point in its ARCHIVED note. No further push for this; the head moves once more only when main is merged after #1089 lands.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-2 (openXfactory-2)

LANDING word reaffirmed — Brett Heap, 2026-09-18T14:25:53Z, verbatim: "merge 1094 when green after 1089" (citation #1045 comment 5731426328). Lands under Rule 6 after PR #1089, on green.

Copilot AI review requested due to automatic review settings September 18, 2026 14:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Several newly added/updated doc comments in scripts/doc_health/pin_shapes.py contain stale verifier line references (post-merge shift), which undermines the PR’s “measured citation” intent and should be corrected.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (3)

scripts/doc_health/pin_shapes.py:123

  • The comment citation for where DISPOSITION_AUTHORITY is read is out of date. In scripts/validate-openspec-cli-pin.py, the DISPOSITION_AUTHORITY check is currently at line 856 (not 849).
#: (`validate-openspec-cli-pin.py:361`, read by `:849`).

scripts/doc_health/pin_shapes.py:127

  • The comment citation for where BLOCKING_LEVELS is read is out of date. In scripts/validate-openspec-cli-pin.py, the BLOCKING_LEVELS membership check is currently at line 845 (not 838).
#: (`validate-openspec-cli-pin.py:366`, read by `:838`).

scripts/doc_health/pin_shapes.py:283

  • The _disposition_entry_failure docstring still cites the pre-shift pinned_dispositions line ranges (e.g. :813-817, :818-827, etc.). In the current verifier, these checks are at :820-824, :825-834, :836-843, :845-855, and :856-862 (and the member-grain rules are :808-810 / :811-816). Updating these keeps the docstring aligned with the measured source.
    - `:813-817` an entry that is NOT A MAPPING, a bare value being unable to
      carry the identity keys a disposition is required to carry;
    - `:818-827` an entry MISSING any of `DISPOSITION_REQUIRED`, where "missing"
      is FALSEY and not merely absent (`not entry.get(key)`), so `cited_to: []`
      and `why: ""` are reported HERE as the missing key and never reach the
  • Files reviewed: 4/4 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread scripts/doc_health/pin_shapes.py Resolved
Comment thread scripts/doc_health/pin_shapes.py Resolved
…against the merged verifier (Copilot)

Lane: openxfactory-2
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 18, 2026 15:34
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-2 (openXfactory-2)

Fix round on 3e653f5 → 47e1dc4: re-measured every validate-openspec-cli-pin.py citation in scripts/doc_health/pin_shapes.py against the verifier as it stands on this branch now (merged with main 7d60f12+), rather than trusting suggested numbers verbatim. tests/doc-health/test_pin_shape_adapter.py and test_tag_hygiene_pinned_targets.py were also checked: they already cite the current lines correctly, so no changes were needed there. openspec/changes/adopt-entry-grain-dispositions-form/tasks.md cites the same pre-shift numbers but is covered by the lane's prior STAND ruling ("citations stay as MEASURED at 4b53ea9") and is left byte-identical.

Old → new, by pin_shapes.py line:

  • :118 DISPOSITION_REQUIRED definition: 353-354 → 360-361
  • :118 DISPOSITION_REQUIRED read-by (unresolved thread): 818 → 825
  • :123 DISPOSITION_AUTHORITY definition: 361 → 368
  • :123 DISPOSITION_AUTHORITY read-by (suppressed comment): 849 → 856
  • :127 BLOCKING_LEVELS definition: 366 → 373
  • :127 BLOCKING_LEVELS read-by (suppressed comment): 838 → 845
  • :259 EntryFailure docstring, enumerate(raw, start=1) (unresolved thread): 812 → 818
  • :265 EntryFailure docstring, non-mapping refusal (unresolved thread): 813-817 → 820-824
  • :279 _disposition_entry_failure docstring, row 2 — not a mapping (suppressed comment): 813-817 → 820-824
  • :281 row 3 — missing DISPOSITION_REQUIRED (suppressed comment): 818-827 → 825-834
  • :285 row 4 — cited_to malformed (suppressed comment): 828-836 → 835-843
  • :287 row 5 — level malformed (suppressed comment): 837-848 → 844-855
  • :290 row 6 — authority missing (suppressed comment): 849-855 → 856-862
  • :293 member-grain row 0 — absent/null: 801-803 → 808-810
  • :293 member-grain row 1 — present, not a list: 804-809 → 811-816

Note on rows 4 and 5: this lands one line earlier than the suggested text (836-843/845-855). Direct re-measurement puts each row's start at its value-read line (citations = entry.get("cited_to") at :835; level = entry.get("level") at :844), matching the convention tests/doc-health/test_pin_shape_adapter.py already uses for the same two rows (:835-843, :844-855 — added in this same PR, and its entry_grain line-list assertion passes against the current verifier).

Validation (foreground): pytest -q -p no:cacheprovider tests/doc-health/test_pin_shape_adapter.py tests/doc-health/test_tag_hygiene_pinned_targets.py → 132 passed. python3 -c "import ast; ast.parse(open('scripts/doc_health/pin_shapes.py').read())" → OK.

@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

openspec/changes/adopt-entry-grain-dispositions-form/tasks.md contains several verifier line-number citations that no longer match the current scripts/validate-openspec-cli-pin.py layout and should be corrected before merge.

Review details

Suppressed comments (3)

Previously missed (3) — in code that hasn't changed since the last review.

openspec/changes/adopt-entry-grain-dispositions-form/tasks.md:188

  • In §3.3 the citation numbers and the “:813 onwards” references still reflect the pre-merge layout of scripts/validate-openspec-cli-pin.py. The implementation and tests in this PR cite 808 (absent-is-empty) and the entry-grain sites 820/825/836/845/856, so the tasks.md narrative should match those to avoid future confusion when re-checking evidence.
- [x] 3.3 **Move the member's guard-leg citation with it.** The entry today
      carries `Citation(_OPENSPEC_CLI, 801)` (`pin_shapes.py:421-422`) — the
      absent-is-empty line. Give the entry-grain reading its own measured
      citation(s) at the lines D-1 names, and note in code why the optional
      entry's citation now CAN name an importable guard

openspec/changes/adopt-entry-grain-dispositions-form/tasks.md:155

  • In §3.1 the cited line ranges for the verifier’s required-keys check and level check still use pre-merge numbers (:818-827, :837-848). In the current scripts/validate-openspec-cli-pin.py, the corresponding entry-grain conditions are at :825-834 (missing keys) and :844-855 (level check).
    openspec/changes/adopt-entry-grain-dispositions-form/tasks.md:172
  • In §3.2 the measured citations for DISPOSITION_REQUIRED, DISPOSITION_AUTHORITY, and BLOCKING_LEVELS are off by +7 lines relative to the current verifier (they’re now at 360-361/368/373). Keeping these line numbers accurate matters because later tests and narrative rely on them as anchored evidence.
  • Files reviewed: 4/4 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap
brettheap marked this pull request as ready for review September 18, 2026 15:56

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 4 days and 14 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap
brettheap merged commit 8f93cbc into main Sep 18, 2026
14 checks passed
brettheap added a commit that referenced this pull request Sep 18, 2026
Lane: openxfactory-4
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 18, 2026
…st half on #1110, and names the second as still owed

#1110 -> 313b2665, merged 2026-09-18T16:47:05Z, takes all four of the suppressed
findings Copilot's review carried at #1105's landed head 9ed3def, as a plain
gate over the SAME TWO FILES #1105 landed and no other path.

A second follow-up is still owed and is NOT this box's condition: RULED Q-P5 (a)
(#656 comment 5731951297) scoped #1110 to those four alone, sending the remaining
eight registered items and runbook section 2.3 to a second act, held because the
runbook's section 2 family is contended until #1086 lands.

The clause read "floor55b takes them as a follow-up act" until that act landed.
Corrected rather than left in the future tense -- the same stale forward
reference this amendment already had to repair once at section 6.4, where a list
of "remaining" closures still named one that had landed. A ledger's forward
references are the part of it that rots fastest, which is why this amendment now
fixes them on sight rather than at the end.

Also recorded from the landing: a 0-unresolved-threads count is not evidence
about a suppressed block, which is the landing gate's own rule and the reason the
debt existed at all.

origin/main merged in at 313b2665 (#1108, #1094, #1110 since the last merge).
#1060 (section 6.1) and #1086 (floor part 3 transposition) are still OPEN, so
their ticks go to amendment #7.

Ledger unchanged at 54 [x] / 17 [ ] / 1 [~] of 72; one file; five marker changes
against main (5.2a, 5.5, 6.3, 6.4, 8.3). All four validators exit 0.

Refs #656 (stays OPEN). CLAIM 5728937703.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 18, 2026
…ed_aware and the catalog site refuse as a dependency (exit 2), not a finding (exit 1) (#1117)

Lane: openxfactory-2 (openXfactory-2)

**THE WORDS.** Brett Heap, 2026-09-17T16:03:46Z, verbatim: *"after 1094 lands, do 1070 fix"* (#1070 comment [5717454392](#1070 (comment))) — PR #1094 landed, and this is that fix. Brett Heap, 2026-09-17T16:05:19Z, verbatim: *"merge 1070 fix when green, then archive 1045"* (comment [5717476433](#1070 (comment))), REAFFIRMED 2026-09-18T12:41:38Z, verbatim: *"after 1094 lands, do 1070 fix, merge when green, then archive 1045"* (comment [5730133468](#1070 (comment))). Both reaffirm the standing ruling of 2026-09-17T12:34:52Z, verbatim: *"Merge when green"* (comment [5714433303](#1070 (comment)), THE CITATION).

## What this does, in the finding's own terms

An unreadable pinned leg is a **fact about the machine**, not a verdict about the release. `#1070` measured the same one fault — `git submodule deinit -f openDox` — answered two ways at the same head: the COMMIT direction refused as a dependency (**exit 2**, one line carrying the leg's own remedy, since PR #1051 taught `_shed_aware_commit` to translate), while the WORKING-TREE direction escaped as a **25-line traceback and exit 1** — and 1 is the code that MEANS the release has findings (`docs/contract-versioning-policy.md:271-272`: "0 pass, 1 findings, 2 dependency/harness failure"). `build` is the FIRST act of a release cut, so the cut operator is who met it. A THIRD site of the same shape, `catalog._shed_destination`, did the same to `validate-hermes-runtime-contracts.py`.

`CarveReachUnavailable` is now translated at both remaining sites, so the refusal is a **dependency refusal, exit 2, never a per-member finding and never a traceback** — and the leg's own remedy travels in the message. The translation stays OUTSIDE the lazy-import `try`, because `CarveReachUnavailable` IS an `ImportError` subclass and folding it in would answer this repository's PRE-shed `target` — the phantom absence `#1048` is about, manufactured inside the release builder.

- `scripts/hermes_runtime_validation/release.py` — `_shed_aware` catches `CarveReachUnavailable` around `shed_destination(target)` and raises `ReleaseDependencyError` *from* it, exactly as `_shed_aware_commit` does; the `except` sits beside the `CarveRowRetired` one, outside the import guard.
- `scripts/hermes_runtime_validation/catalog.py` — new `CatalogDependencyError` (`exit_code = 2`), deliberately **not** a `CatalogError` subclass: `CatalogError` is this family's FINDING (`HRC-CATALOG-INVALID`, exit 1) and a subclass would have been swallowed by the existing `except CatalogError` and published as a verdict nothing measured. `_shed_destination` raises it.
- `scripts/validate-hermes-runtime-contracts.py` — `_validate_repository` catches `CatalogDependencyError` BEFORE `except CatalogError`, records `HRC-HARNESS-CATALOG-DEPENDENCY` and returns the `dependency_error` flag `classify_exit_code` turns into exit 2.
- `scripts/doc_health/release_inventory.py` — one word: the taxonomy summary counts **six** arms, not five (provenance below).
- `tests/hermes_runtime_contracts/test_release_inventory.py` — two regressions over a REAL pinned submodule and a real `git submodule deinit -f`, mirroring `test_a_leg_store_without_the_pinned_commit_refuses_as_a_dependency`.

**The taxonomy count** is Copilot's first thread on PR #1051's landed head `ecd6237a` (`release_inventory.py:34`/`:308`: the summary's "five arms" is stale against the sixth arm that PR added), RULED **STAND-AS-FOLLOW-UP** and carried by "the next code PR on this reader" — comment [5717518184](#1051 (comment)). Documentation only; `grep` proves the file had exactly one such count.

## Failing, then passing

The two new tests were run against the UNMODIFIED code first — the three fixed scripts restored from `origin/main` (verified `git rev-parse origin/main` == `git rev-parse HEAD~1` == `8f93cbc0`), the tests left as this branch writes them:

| run | selection | result |
| --- | --- | --- |
| **before** — fix reverted | the two new tests | **2 failed**, 74 deselected in 3.26s |
| **after** — `git checkout -- scripts/` | the two new tests | **2 passed**, 74 deselected in 2.60s |
| **after** — whole file | `tests/hermes_runtime_contracts/test_release_inventory.py` | **76 passed** in 65.31s |

The two failures are the defect itself. `test_an_unreadable_leg_in_the_working_tree_refuses_as_a_dependency` fails at `test_release_inventory.py:2470` inside `with pytest.raises(release.ReleaseDependencyError)`, through `release.py:185, in _shed_aware` → `carved_reach.py:783, in shed_destination` → `:656, in source`, with `E carved_reach.CarveReachUnavailable: the pinned leg_spec leg is not materialized: leg is empty, so contracts/moved.schema.yaml cannot be read …`. `test_an_unreadable_leg_refuses_as_a_dependency_at_the_catalog_too` fails at `:2579` with `E AttributeError: module 'scripts.hermes_runtime_validation.catalog' has no attribute 'CatalogDependencyError'`.

## The finding's reproduction recipe, end to end

Two throwaway worktrees — one at `origin/main` `8f93cbc0`, one at this fix — each with `git submodule update --init --recursive openDox openXdox`, green first, then ONE fault: `git submodule deinit -f openDox` ("Cleared directory 'openDox'", the module store under `.git/modules/openDox` left intact). Green baseline on both sides: `build --tag contract-v4.1` → **exit 0, `entries=283`**, the same count `#1070` measured.

**BEFORE — main `8f93cbc0`, at the fault:** `python3 scripts/validate-contract-release.py build --tag contract-v4.1 --output <path>` → **exit 1**, 25 lines, 1 traceback, last line verbatim:

```
carved_reach.CarveReachUnavailable: the pinned opendox_spec leg is not materialized: openDox/spec is empty, so contracts/schemas/xfactory-workbench-chat-turn.schema.yaml cannot be read from the destination the carve manifest declares for it. Run `git submodule update --init --recursive openDox openXdox` from the repository root.
```

**AFTER — this fix, the SAME one fault:** same command → **exit 2**, **one line**, no traceback, the whole output verbatim:

```
validate-contract-release: the pinned leg holding xfactory-workbench-chat-turn.schema.yaml could not be consulted in the working tree: the pinned opendox_spec leg is not materialized: openDox/spec is empty, so contracts/schemas/xfactory-workbench-chat-turn.schema.yaml cannot be read from the destination the carve manifest declares for it. Run `git submodule update --init --recursive openDox openXdox` from the repository root.
```

The third site, measured with the PLAIN `validate-hermes-runtime-contracts.py` (bare `--require-candidate` already exits 2 on a green tree for want of `--domain-repo`, so it cannot carry this proof alone): control on a green tree → **exit 0**, `Hermes runtime contracts: pass (51 contracts, 32 schemas, 110 fixtures, 17 requirements, 85 scenarios, 439 tests collected)`; BEFORE at the fault → **exit 1**, 31 lines, 1 traceback ending in the same `CarveReachUnavailable` (for `xfactory-workbench-model-catalog.schema.yaml`); AFTER at the fault → **exit 2**, **one line**, no traceback:

```
HRC-HARNESS-CATALOG-DEPENDENCY error path=contracts/hermes-runtime/contract-index.yaml: contracts[0]: the pinned leg holding xfactory-workbench-model-catalog.schema.yaml could not be consulted: the pinned opendox_spec leg is not materialized: openDox/spec is empty, so contracts/schemas/xfactory-workbench-model-catalog.schema.yaml cannot be read from the destination the carve manifest declares for it. Run `git submodule update --init --recursive openDox openXdox` from the repository root.
```

## Validation

| command | result |
| --- | --- |
| `pytest -q -p no:cacheprovider tests/hermes_runtime_contracts` | **976 passed (36:08)** — measured on this diff before the banking commit |
| `pytest -q -p no:cacheprovider tests/hermes_runtime_contracts/test_release_inventory.py` | 76 passed (61.23s on the pushed head) |
| the two new tests, fix reverted → restored | 2 failed → 2 passed |
| `pytest -q -p no:cacheprovider tests/doc-health/test_release_inventory.py` | 57 passed (8.40s) |
| `OPENSPEC_TELEMETRY=0 openspec validate --all --strict` | 107 passed, **1 failed** — the known pre-existing `change/add-chain-attestation`; this PR is code-only and carries no packet |
| `python3 scripts/proposal-support.py . verify` | exit 0, `proposal support verification ok` |
| `python3 scripts/doc-health.py --single-repo . --family release-inventory-drift`, main vs this head | see below |

**The one doc-health delta, stated rather than buried.** Run in same-kind checkouts (two worktrees) at main `4401e1aa` vs this head, the `release-inventory-drift` reports differ by exactly ONE added line — `severity=error … path=scripts/validate-hermes-runtime-contracts.py rule="bytes differ from the digest 'contract-v4.0' records" … class="auto-fixable"` — taking the family from `0 critical, 2 error, 0 warning, 3 info` to `0 critical, 3 error, 0 warning, 3 info`, with `New regressions vs previous report: 0` on both sides. Main already carries the same error for `release.py` and `catalog.py`, the two sibling release members earlier merged work edited after the `contract-v4.0` cut; this adds the third member of that same already-drifting set, which the next cut clears. The family is report-only on pull requests: `.github/workflows/doc-health-reusable.yml` is `workflow_call` with `fail-on` defaulting to empty.

Main was merged in plainly at `4401e1aa` (38 commits, no conflicts); `git diff --stat 8f93cbc 4401e1a` over the five files and `scripts/carved_reach.py` is empty, so the merge is orthogonal to the fix and every number above was re-measured on the pushed head.

Lands under Rule 6 when the eight required checks are green and Copilot is clean, on the word.

refs #1070
refs #1048

🤖 Generated with [Claude Code](https://claude.com/claude-code)
brettheap added a commit that referenced this pull request Sep 18, 2026
…lized at 8f93cbc, promoted as amended, ledger row retired (#1114)

Lane: openxfactory-2 (openXfactory-2)

**THE ARCHIVE OF `adopt-entry-grain-dispositions-form`, ON BRETT HEAP'S OWN ARCHIVE WORD AND ON MERGED-PLUS-GREEN REALIZATION EVIDENCE.** `code_surface:` is NON-EMPTY, so under *release-realization* this packet could never archive on landing: it archives only on its realization being MERGED AND GREEN, and only then on a further word. Both conditions are now met and both are cited below. Every word is Brett Heap's, first-hand, in session to lane `openxfactory-2`.

## THE WORDS, IN ORDER — ALL FIVE VERBATIM

1. [#1045 comment 5714433011](#1045 (comment)), 2026-09-17T12:34:52Z, an interactive multi-choice selection, TWO words: ***"Apply the partition"*** — the ratifier amending his OWN ratified `## MODIFIED` block, the positive-resolution scenario's WHEN gaining the entry-grain clause and its disjointness bullet the matching exclusion — and ***"Realize now, land when green"*** — the § 3 realization authored as ONE pull request, *"archive (§ 4) remains a later word on merged-plus-green evidence"*.
2. [#1045 comment 5716521100](#1045 (comment)), 2026-09-17T14:59:21Z: ***"merge 1051 when green, then 1088, then archive 1047"*** — the landing word that let the partition amendment (PR #1088 → `893abe97e0b0ad6166cf59408daabd812a933bc1`) merge.
3. [#1045 comment 5717398099](#1045 (comment)), 2026-09-17T15:59:46Z: ***"merge 1094 when green after 1089"*** — the landing word for the realization.
4. [#1045 comment 5717476696](#1045 (comment)), 2026-09-17T16:05:19Z — **THE ARCHIVE WORD**: ***"merge 1070 fix when green, then archive 1045"***, naming its own precondition chain, verbatim: *"Prerequisite chain: #1088 (amend) → #1089 → #1094 (realize; the code surface's merged + green evidence) → #1070 fix → archive."*
5. [#1045 comment 5730133649](#1045 (comment)), 2026-09-18T12:41:38Z — **THE ARCHIVE WORD REAFFIRMED**: ***"after 1094 lands, do 1070 fix, merge when green, then archive 1045"***, which also states the landing route — *"the archive PR lands by MERGE COMMIT under Rule 6 on green (so the directory's adding commit stays the wrapper's act)"*.

## THE EVIDENCE CHAIN, EVERY LINK MEASURED

| act | pull request | merge sha | when |
|---|---|---|---|
| FILED + RATIFIED | [#1050](#1050) | `fa39141cec2b` | 2026-09-16, on *"ratify 1052 when green, then 1050"* (5698480736) |
| AMENDED by the ratifier | [#1088](#1088) | `893abe97e0b0ad6166cf59408daabd812a933bc1` | 2026-09-17T16:09:55Z, on *"Apply the partition"* |
| predecessor archived (Rule 6 order) | [#1089](#1089) | `7d60f128d65d9c47b8ea1f58863c337d21d6104c` | 2026-09-18T14:57:04Z |
| **REALIZED — the code surface's merged + green evidence** | [#1094](#1094) | **`8f93cbc02597f149a9987ce8da5f1c227e66662d`** | **2026-09-18T15:56:55Z, `main` green at that commit** |
| the #1070 fix | to land first | ``0a5c1310` (PR #1117)` (the #1070 fix PR, to land first) | — |
| **ARCHIVED** | **this pull request** | — | 2026-09-18 |

## WHAT THE ARCHIVE DID

`python3 scripts/proposal-support.py . archive adopt-entry-grain-dispositions-form --yes` — **never bare `openspec`** — which printed **`ORIGIN RETAINED adopt-entry-grain-dispositions-form (declaration unchanged since the ratifying commit fa39141)`**.

- **Packet moved** to `openspec/changes/archive/2026-09-18-adopt-entry-grain-dispositions-form/` — all six files, git-detected as renames.
- **PROMOTION MEASURED BYTE-IDENTICAL, not asserted.** After the archive, canon's *Prose tagging marker hygiene* in `openspec/specs/document-lifecycle/spec.md` and this packet's `## MODIFIED` block are both **45,963 bytes, sha256 `2099a22f69cb23b0d333603996512f4daab6bb7bc3fa8518e7b75e4d23388f19`** (the requirement text from its `### Requirement:` line, the trailing blank separator before the next `### Requirement:` excluded on both sides — PR #1042's convention, which PR #1089 used). Canon's `git diff --numstat` reads **+11 −2**; the requirement's scenarios go **24 → 25**.
- **WHAT PROMOTED IS EXACTLY TWO THINGS.** (a) The RATIFIER'S partition amendment of the positive-resolution scenario *A marker names a capability of a pinned neutral product* — its WHEN's entry-grain clause and its disjointness bullet's matching exclusion (#1088, *"Apply the partition"*). (b) This packet's OWN new scenario *A pin record's optional dispositions member carries a malformed entry* — its title and its seven bullets. The **two units the carriage-ledger arm reported as UNCARRIED** against the ACTIVE block on `main` were that same amendment; the promotion is what discharges them, which is why the arm now names nothing.
- **`tasks.md` § 4.1–4.3 TICKED** with ARCHIVED annotations citing the word. § 4.1 records the merged-plus-green gate, § 4.2 the byte measurement, § 4.3 the row retirement. The `- [ ]` → `- [x]` flips, the § 4 heading and one § 3 preamble sentence are the ONLY five lines removed from that file; every other change is an appended annotation, and the RATIFIED task text of § 4.3 keeps its own `'#<archive PR>'` placeholder unedited.
- **THE SELF-GATE ROW RETIRED.** `("adopt-entry-grain-dispositions-form", "document-lifecycle", "Prose tagging marker hygiene")` in `_LEDGER_SUBJECTS` (`tests/doc-health/test_modified_block_currency_self_gate.py`), opened 2026-09-17 by the partition amendment under the condition *"Retires when the packet archives and its block is promoted"* — the condition this archive discharges. A note stands in its place. `len(_LEDGER_SUBJECTS)` **MEASURED at this head reads TWELVE** (13 literal entries, 12 unique, the pre-existing `add-chain-attestation` duplicate collapsing as it always has), down from THIRTEEN. The docstring gains a **dated re-measurement paragraph** rather than subtracting from another lane's numeral, and the failure-message chronology is EXTENDED, not edited.
- **README** — the `adopt-entry-grain-dispositions-form` bullet retired from *Active changes*; an archived-ledger entry added at the head of *Archived changes* in the house style.
- **`tests/sequenced_after/corpus-ledger.yaml`** re-seeded by the tool, never by hand: `python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#1114'` → **221 rows, ONE moved** — `active` → `archived`, `#1050` → `#1114`, `2026-09-15` → `2026-09-18`.
- **`Status:` headers unchanged** — `ratified` on `proposal.md`, `design.md`, `tasks.md` and the ratification record, exactly as PR #1089's archived packet carries them.

## THE ARCHIVE DATE, AND WHY THE LANDING MUST BE A MERGE COMMIT

The wrapper owns the clock (#797): it ran at **2026-09-18T17:19:50Z** and named the directory `2026-09-18-adopt-entry-grain-dispositions-form`. The archive-act commit is **`2cb6145b6c87af0b4500a1e2da038c4053cec5f9`**, committer-dated **2026-09-18T17:24:01Z UTC**, and `scripts/validate-sequenced-after.py`'s `archive-date-vs-commit` arm attributes the directory to exactly that commit — **the name and the adding commit AGREE**, so nothing is owed and no disposition may be written (`tests/sequenced_after/archive-date-dispositions.yaml`'s own header: *"ENTRIES ARE ADDED ONLY FOR A MEASURED DISAGREEMENT, AND NEVER IN ADVANCE"*).

**BOTH LANDINGS WERE SIMULATED IN A SCRATCH WORKTREE OFF `origin/main` (`049d54a9`), and the worktree removed afterwards.**

| route | sim commit | our directory attributed to | validator | `pytest tests/sequenced_after` |
|---|---|---|---|---|
| pristine `origin/main` (baseline) | `049d54a9` | not landed | **passed, 0 findings** | — |
| **MERGE COMMIT** (`git merge --no-ff`) | `eb5d0993` | **`2cb6145b…` — 2026-09-18** | **passed, 0 findings** | **286 passed** |
| SQUASH (`git merge --squash`) | `353e2c40` | the squash commit — 2026-09-18 | passed, 0 findings | 286 passed |

Both routes are clean **only while the landing falls on 2026-09-18 UTC**. A squash discards this branch's commits, so the squash commit becomes the only add of the directory — and a squash that lands after `2026-09-19T00:00Z` would name 2026-09-19 against a directory named 2026-09-18 and add exactly one `archive-date-vs-commit` finding. **A merge commit is immune to that slip**: the walk is `git log --diff-filter=A --reverse --no-renames` with no `--first-parent` and keeps the FIRST add, so `2cb6145b`/2026-09-18 stays the adder however long the landing is held. This pull request is held behind the #1070 fix, so the slip is live — **LAND IT WITH `gh pr merge --merge`**, which is also what the reaffirmed word says. And **RENAMING IS NOT THE REMEDY** if it ever slipped anyway (`docs/document-lifecycle.md:556`, issue #812): a date one day early is dispositioned in place, names untouched.

## THE `tasks.md` § 3 CITATIONS STAND — THE RE-POINT IS RECORDED, NOT APPLIED

§ 3's ticks cite `scripts/validate-openspec-cli-pin.py`'s `pinned_dispositions` at **`:787`**, as MEASURED at the realization's base `4b53ea99`. On `main` it now begins at **`:794`** — PR [#1056](#1056) → `3e32d987` moved that file by **+7 lines**. **RULED STAND by the lane at PR #1094** (comment 5729231240, 2026-09-18T12:57:01Z): a packet's `tasks.md` is RECORD TEXT, the ticks pair with the ratified task text directly above them which cites the same lines, and history is history — the principle `docs/document-lifecycle.md:556` states for archive directory names. The live fact is already carried where it is ASSERTED, in `tests/doc-health/test_pin_shape_adapter.py`. **The re-point is recorded in this archive's own note** — the archived `tasks.md` § 4.1 and the README archived-ledger entry — and NO byte of § 3 moves.

## VALIDATION — at head `baf695f0`, beside pristine `origin/main` `049d54a9`

| command | this branch | pristine `origin/main` |
|---|---|---|
| `OPENSPEC_TELEMETRY=0 openspec validate --all --strict` | **108 passed, 1 failed (109 items)** | 109 passed, 1 failed (110 items) |
| `python3 scripts/proposal-support.py . verify` | **ok** (rc 0) | ok |
| `python3 scripts/validate-sequenced-after.py .` | **passed** — 47 active, 17 declaring; archive-date agreement passed; archive-date-vs-commit passed, 13 dispositions in force | passed — 48 active, 18 declaring |
| `python3 scripts/validate-sequenced-after.py . --ledger-diff` | **consistent (221 rows)** | consistent (221 rows) |
| `python3 scripts/doc-health.py --single-repo . --family modified-block-currency` | **0 critical / 0 error / 0 warning / 12 info** — none naming this packet, none unnamed | 13 info (one of them this packet's) |
| `python3 scripts/doc-health.py --single-repo . --family promotion-fidelity` | **0 critical / 6 error / 0 warning / 0 info** — row-for-row identical to main, none naming this packet | 6 error |
| `pytest -q -p no:cacheprovider tests/doc-health/test_modified_block_currency_self_gate.py` | **20 passed** | 20 passed |
| `pytest -q -p no:cacheprovider tests/sequenced_after` | **286 passed** | 286 passed |

The ONE `openspec validate` failure is the pre-existing `add-chain-attestation`, identical on both sides; the one-item difference is this archive leaving the active corpus, and **no failure is added**. The six `promotion-fidelity` errors are `main`'s own, belonging to the `add-composed-view-authoring` and `add-doxchat-model-intake` closures of other lanes. The single `modified-block-currency` difference is this packet's own row retiring.

**THE WIDER LOCAL SUITE, AND ITS SEVEN FAILURES ARE NOT THIS BRANCH'S.** `pytest -q -p no:cacheprovider tests/doc-health tests/proposal-support` at `baf695f0` → **7 failed, 2089 passed, 1 skipped, 297 subtests passed**. The same four files run against **pristine `origin/main` `049d54a9`** fail the **BYTE-IDENTICAL SET OF SEVEN** — `test_ideation_readiness.py` (3), `test_readiness_dispatch.py` (1), `test_sentinel_vocabulary.py` (2), `test_status_reader_real_lines.py` (1). Every one is INHERITED and none touches this archive's surface — and **CI settles it**: `pytest-suite` is GREEN on this head (21m28s), so all seven are local to this container's environment and not repository failures at all.

**CI AT `baf695f0` — ALL GREEN.** The eight required checks (`signed-execution-chain-gate`, `lane-line`, `former-id-arrival-gate`, `openspec-cli-pin`, `wallet-validation`, `pytest-suite`, `release-tag-gate`, `openxdox-consumer-gate`) all pass, as do `clearing-dispatch-gate`, `merge-master-approval`, `openreposhape-pin` and SonarCloud. **Copilot: 🟢 Approval recommended** at the final head; its two earlier threads — both against the pre-reseed head, both about the `{PR}` / `#<ARCHIVE_PR>` placeholders this branch's own reseed commit filled — are RESOLVED, **0 open**.

**Lands under Rule 6 by MERGE COMMIT AFTER the #1070 fix PR has landed**, when the eight required checks are green and Copilot is clean. This pull request touches `openspec/changes/`, so it takes a LANDING/LANDED window. openxFactory #1045 closes by the lane's hand after the ARCHIVED record, not by a keyword.

refs #1045

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants