Skip to content

Amend the source-tree clause to admit a whole-tree digest as an equivalent discharge - #1140

Merged
brettheap merged 10 commits into
mainfrom
change/amend-neutral-product-pin-source-tree-digest
Sep 22, 2026
Merged

brettheap merged 10 commits into
mainfrom
change/amend-neutral-product-pin-source-tree-digest

Conversation

@brettheap

@brettheap brettheap commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

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

RATIFIED — 2026-09-22T15:45:54Z by Brett Heap (openxFactory operator authority), interactive in the lane session, verbatim "ratify #1140 and #1141", recorded at #656 comment 5779511063. Record: review/ratification-2026-09-22.md. Ratification authorizes realization and does not perform it — nothing is promoted until the archive, a separate act on a separate word.

⚠️ THE RATIFIED BASELINE IS ca47e2cb AND THE HEAD IS NOT — RULING NEEDED

9f82caeb was committed at 15:45:53Z, ONE SECOND before the word, and pushed around it, so it was in flight at ratification and Brett Heap cannot have read it. It is not cosmetic: it reverses the runtime exclusion ca47e2cb carried, on Copilot r4073495698's measurement that the exclusion would have made contracts/opendox-pin.yaml — which carries a migration: block at :190 and a whole-tree digest with no per-file list — non-conformant, the opposite of what RULED 5768144952 settled.

The correction runs in the ratified direction, but it is requirement text moved after a ratify word, and the estate admits only NON-NORMATIVE folding after the word. So it is raised, not absorbed — tasks.md § 1.3: (a) re-ratify at the current head (REC — the text is more correct than the ratified baseline and its defect is measured); (b) revert to the exclusion and accept that contracts/opendox-pin.yaml reads non-conformant against it; (c) something else. On the word a Re-ratified: line joins the Ratified: one in all three files, the instrument add-chain-attestation already carries.

No line anywhere claims the word covered text it could not have. Every Ratified: line names ca47e2cb explicitly.
ONE ## MODIFIED requirement. One added paragraph, five added scenarios, and not one character of any unit the requirement already carries. Status: ratified — the word that COMMISSIONED the amendment (5777949892) and the word that RATIFIES the packet (5779511063) are two separate acts, and both are Brett Heap's. See the baseline caveat above.

The ruling this encodes

RULED — 2026-09-22T14:04:00Z by Brett Heap, interactive in the lane session, by multi-choice, verbatim "(b) — AMEND THE CLAUSE" — opensoft/openxFactory#656 comment 5777949892. The ruling names this packet's form in so many words: "it becomes its own small OpenSpec change against neutral-product-pin, citing 5768144952, this ruling, and Copilot r4067623184."

Why

The requirement An external neutral product is pinned by commit and digest, never by tag opens by obliging a consuming pin to carry a per-file sha256 for every artifact the product digests per file, plus pinned_by_commit_only: for the rest. Three paragraphs later, for a product distributed as a published artifact, the same requirement reasons the obligation away in its stronger form: the lists exist only because "a commit is not a digest a consumer can compare a single file against, so the surface must be ENUMERATED for completeness to be checkable at all", whereas "ONE digest addresses EVERY byte inside it, so no member can be undeclared and none can be added or altered without changing the referent" — "DISCHARGED MORE STRONGLY here rather than waived".

That reasoning does not depend on the medium, and the estate's pins had already applied it to a source tree. contracts/openxdox-pin.yaml and contracts/opendox-pin.yaml each pin an assembly root by commit plus a whole-tree sorted-ls-tree-r-v1 digest, carry neither list, and quote that paragraph as their reason. On 2026-09-21 the deferral's own trigger fired — openDox dc7aa08f carried a non-empty entries: for the first time — and Brett Heap ruled "(b) for the pin shape, keep going" (5768144952).

That settled the PIN FILES, not the NORMATIVE TEXT. Copilot r4067623184 found the residue on the #1139 archive pre-stage and the lane's bookkeeper verified it: a rule, and an unwritten exception. This packet closes that.

What the block says

The equivalence A source-tree pin declaring a whole-tree digest definition and recording a digest over the ENTIRE tree of the commit it names discharges the per-file obligation, and such a pin carries NEITHER list.
The forms are alternatives Not a menu to combine. scripts/doc_health/pin_shapes.py:763-775 already refuses a record carrying both a whole-tree digests.tree_sha256 and a files: list, naming both shapes tried — so text admitting the mixture would disagree with a guard that is already running.
Its ground, stated not asserted A whole-tree digest covers every file in the tree and therefore SUBSUMES any list of them — the published-artifact paragraph's own reasoning, reaching a source tree unchanged.
Boundary 1 An enumeration stays lawful and stays owed where no whole-tree digest is recorded. This admits a second form and retires neither the first nor any pin carrying it — contracts/openxwallet-pin.yaml's eight files: digests stay conformant, unedited.
Boundary 2 The equivalence is about WHICH FORM the digest obligation takes and never about WHETHER digests are owed. It authorizes skipping no digest anywhere.
Boundary 3 The runtime-deployment clause is untouched, and untouched means its obligations stand in full. A runtime product's pin still declares the migration range, the reversibility and the runbook, and its prohibition on reading a deployment declaration as permission to skip the digests is preserved exactly — while the equivalence DOES reach a source-tree pin whether or not its product is a runtime, because that clause governs what a bump must DECLARE and this one governs which FORM the completeness obligation takes. (Round 1 excluded runtime pins; round 2 overturned that — see below. The clause itself is carried verbatim, unedited.)
Boundary 4 A pin recording NEITHER form has discharged nothing.

Five scenarios: the conformant whole-tree pin; the pin carrying both forms, refused; the pin recording neither, refused; the runtime product's pin, which the equivalence does not reach; and the misreading that cites the equivalence as permission to skip a digest, refused.

The block is written over split-opendox-two-layer-product's outcome

That packet holds an active ## MODIFIED block on this same requirement (ratified 2026-09-05) contributing the runtime-deployment clause and two scenarios. A block written over canon-as-promoted would carry five scenarios and would omit two the moment the basis archived — the exact finding class contracts/openspec-cli-pin.yaml records as "canon moved under an un-re-derived delta". Writing over the outcome makes the block correct in both orders.

The form is the basis's own, one link up this chain: split-opendox wrote its block over add-openspec-cli-pin's outcome in a dated per-requirement paragraph, explicitly not the reserved pairing marker. This packet follows it exactly and adds sequenced_after: [split-opendox-two-layer-product].

Seven scenarios carried, five added — twelve in the block.

Measurements

code_surface: none is MEASURED, not assumed (at ac50d70d, the commit this was authored on):

  1. grep -n "pinned_by_commit_only" scripts/verify-opendox-pin.py scripts/verify-openxdox-pin.py → two lines, both module-docstring prose about the openXwallet pin (verify-openxdox-pin.py:19, :75). Neither verifier READS the key; files is read by neither.
  2. Both verifiers key the whole surface on digest_definition: sorted-ls-tree-r-v1 + digests.tree_sha256, with closed refusal vocabularies containing no code for a missing per-file list — verify-opendox-pin.py:137-143 (six codes), verify-openxdox-pin.py:158-163 (five).
  3. The two verifiers that DO read the key read it absent-is-empty — pin.get("pinned_by_commit_only") or [] at verify-openxwallet-pin.py:443-452 and validate-openreposhape-pin.py:487-495, transcribed by scripts/doc_health/pin_shapes.py:187-201.
  4. python3 -m pytest tests/opendox_pin tests/openxdox_pin -q → 105 passed, over fixtures built from digest_definition + digests.tree_sha256 with no per-file key at all.

So the amendment is doctrine-only: a pin conformant before this lands is conformant after it.

Validation ran through the PINNED CONSUMER ENTRYPOINT, python3 scripts/validate-openspec-cli-pin.py, at @fission-ai/[email protected] verified against its content address — not the openspec on PATH, which at this workstation is 1.13.1. Counts in a comment below at the final head.

What this packet does NOT do

  • It edits no pin file, in any repository. What the pins carry was settled and executed by 5768144952. The openXdox-side header amendment that ruling registered is a different repository's act, named as residue in tasks.md § 5.1.
  • It answers one of three pre-stage findings and says so. #1139 review 5273796676 registered three; 5777949892 answers the neutral-product-pin per-file one. corpus-adapter-seam and domain-mapping-declaration stay as ratified, registered for a successor.
  • It ratifies nothing. tasks.md § 1 is open.

Copilot round 1 — three fixes, one registered, at ca47e2cb

Every finding was measured against running code before it was taken.

finding disposition
r4073364832 the two forms are exclusive FIXED. MAY then be absent left a both-forms pin apparently conformant while pin_shapes.py:763-775 already refuses it as MIXED. Text now says NEITHER list, plus a scenario refusing the mixture. Side effect: that guard records the ratified text is "SILENT on the whole-tree shape" and falls back to fail-closed for want of text — this amendment is the first promoted text to name the form the guard has been judging.
r4073177274 the equivalence reached runtime pins FIXED, and the reviewer was right about why. The first draft granted it to ANY source-tree pin and then asserted the runtime clause was "untouched" — those contradict rather than compose. Scope now excludes runtime-clause-governed pins outright, with its own scenario. design.md D3 records the correction.
r4073364921 the ledger claim said two rows FIXED. § 2.5 predicted a partner flip from the rule instead of reading the diff; the basis row was already co-modifier, so nothing flipped. Corrected with the seeder's own output quoted.
r4073110728 the required-check scenario is keyed to an enumerated pin REGISTERED, not fixed (tasks.md § 5.3). The fact is right, but the gap predates this packet — both pins have carried the whole-tree form since filing — and amending a SECOND requirement exceeds a commission that names one clause.
r4073110643, r4073110783 True when written, false at the head they were raised against: the .openspec.yaml origin landed at 4f786903 and the ledger row at b2ec9e87.

All threads answered and resolved. Re-validated after the fixes: pinned entrypoint 1 passed, 0 failed; code_surface / target_release / sequenced_after green; doc-health names this packet in zero findings, and its ## MODIFIED block raises no modified-block-currency finding while nine other active changes do.

Note for the lander

This PR and #1141 (the sibling encoding of 5778397686) both touch the README OpenSpec Records block and tests/sequenced_after/corpus-ledger.yaml, so they will conflict with one another. Expected: land one, then the second takes a merge-from-main and re-seeds its ledger row.

Copilot round 2 — the runtime exclusion was wrong, and a live pin proves it

finding disposition
r4073495698 runtime pins are excluded by round 1's repair FIXED, and it overturns round 1. contracts/opendox-pin.yaml:190 carries a real migration: block (range: "0001..0002", reversible: false, a named runbook) and a whole-tree digest with no per-file list. So the runtime clause GOVERNS that pin, and the exclusion would have made the very pin this amendment was ruled for non-conformant. The resolution is the reading available all along: the two clauses govern DIFFERENT obligations — the runtime clause governs what a bump must DECLARE, this equivalence governs which FORM the completeness obligation takes — so the equivalence reaches a source-tree pin whether or not its product is a runtime, and every obligation that clause imposes stays owed in full. design.md D3 records BOTH rounds.
r4073495753 the mixture guard covers one half REGISTERED with a measurement (tasks.md § 5.4). pin_shapes.py:772-775 detects the mixture only when files is present. Every contracts/*-pin.yaml was read — opendox/openxdox carry a tree digest and NEITHER list; openreposhape/openxwallet carry both lists and NO tree digest; openspec-cli/review-lane carry none — so no pin in the estate is in the uncaught state, no code is owed, and code_surface: none stands.
r4073495808, r4073495848 two stale scenario counts FIXED. README.md:540 and tasks.md § 2.1 still said "three added" where the same files already said five and twelve. Counts re-derived from grep -n "^#### Scenario:" — twelve headings, seven carried — rather than from the previous sentence.

What "do not touch the runtime clause" actually meant, now written into design.md D3 so the next reader does not repeat round 1: do not weaken the deployment obligation. It did not mean carve runtime products out of the equivalence — and conflating those two is what produced a repair that broke a live pin.

All threads on this PR are answered and resolved. Re-validated at the ratified head: pinned entrypoint 1 passed, 0 failed; code_surface / target_release / sequenced_after green; doc-health names this packet in zero findings.

Copilot round 3 — a cross-reference whose target never landed

finding disposition
r4073610119 § 5.4 is referenced and does not exist FIXED, and the cause is recorded in the item. The round-2 edit that wrote § 5.4 aborted on an unrelated failed assertion before reaching the append, so proposal.md shipped a cross-reference to a task that was not there. A cross-reference is not evidence that its target landed — the target is.
r4073704501 a stale gloss survived round 2 FIXED. The proposal's scenario list still called the runtime pin one "which the equivalence does not reach" — the reading round 2 overturned. The normative text, the scenarios, design.md D3 and the ratification record all carried the corrected reading; this one summary did not.
r4073704461 the description contradicted the index FIXED in the description — it still carried Status: draft and the round-1 Boundary 3.
r4073704409 the current head is not covered by the recorded approval NOT A DEFECT TO FIX — it is this packet's own disclosure, and the reviewer is reading it back. tasks.md § 1.3, the ratification record § 3, .openspec.yaml, the README row and this description all say exactly that, and it is registered as RULING NEEDED for Brett Heap rather than resolved by this lane.

Copilot round 4 — and the tally that was itself wrong

finding disposition
r4073991713 the first summary outlived its own correction FIXED. The round that introduced the exclusivity rule corrected the delta and the summary bullet below it, leaving the bullet above it permitting the mixed pin both forbid. Swept rather than spot-fixed: grep -rn "MAY then be absent" over the packet now returns exactly one hit — the ratification record's citation of the old wording while explaining what changed.
r4073991767 the ratification record's review tally was wrong FIXED STRUCTURALLY. It under-counted the REGISTERED findings and called four stale where two were. But correcting the arithmetic alone would have left the real defect: a tally frozen into a ratification record goes stale the moment review continues — and review DID continue after the ratifying word, which is the whole reason this record exists. The record now states its tally as of a named head and says this pull request carries the running one, in a table naming every finding by id.

(Round-4 tally as of 52f8067d: four rounds, sixteen findings. Superseded by the round-5 tally below, which is stated as of the landing head.)

Copilot round 5 — a PREVIOUSLY-MISSED finding, in text nothing had changed

finding disposition
Align boundary summary with final runtime pin scope — raised at 52f8067d in the review's Previously missed block, proposal.md:115 FIXED at 4a6458f6, and it is the LAST survivor of the round-2 reversal. Item 3 of the proposal still said the equivalence "does not reach a pin the runtime-deployment clause governs" and that the whole-tree question there was "left unopened" — the round-1 reading r4073495698 overturned. The normative block, the scenarios, design.md D3, the ratification record and the README all carried the corrected reading; this one bullet did not, and a proposal implemented from it would have taken the discarded scope.

Two causes, both recorded in the commit because both will recur. First, the round-2 edit that should have fixed this bullet was in the same script that aborted on an unrelated failed assertion — the script that also lost tasks.md § 5.4 (r4073610119). One aborted script silently dropped two edits and a later reader found each separately: an edit is not applied because a script containing it ran. Second, and worse: an earlier grep for this exact phrase returned a FALSE NEGATIVE — the text wraps as a pin the / runtime-deployment clause governs, so a line-oriented search matched nothing and the packet was recorded clean. The sweep is now whitespace-normalized before matching (re.sub(r"\s+", " ", text)) across every packet file and the README, and reports clean on all three discarded-reading phrases.

Running tally, as of the landing head 4a6458f6: five rounds, SEVENTEEN findings — 12 FIXED, 2 REGISTERED (tasks.md §§ 5.3, 5.4), 2 true when written and already false at the head they were raised against, and 1 that is not a defect at all but this packet's own baseline disclosure read back to it (r4073704409). All 16 threads resolved. The reviews at 52f8067d and at the head 4a6458f6 both report Findings: None, and the head's review carries no Previously-missed block.

Summary by Sourcery

Amend the neutral-product pin requirement to make whole-tree source digests an explicit equivalent to per-file digest lists without changing pin files or verifier code.

New Features:

  • Amend the neutral-product pin requirement to recognize a whole-tree source digest as an equivalent way to satisfy the per-file digest obligation, while requiring the two forms to remain alternatives.

Bug Fixes:

  • Align the normative pin requirement with the whole-tree source-tree pin shape already used by the repository, including runtime products without weakening their deployment obligations.

Enhancements:

  • Add explicit boundaries and scenarios covering valid enumerations, mixed or missing digest forms, runtime pins, and attempts to use the equivalence to skip digest verification.
  • Record the change's ratification, sequencing, review findings, measurements, and outstanding re-ratification and archive actions.

Documentation:

  • Document the ratified OpenSpec change in the README and add the proposal, design, task, review, and specification delta records.

Tests:

  • Validate the new change metadata and sequencing ledger entry, and record existing pin verification coverage showing 105 tests passing without code changes.

🤖 Generated with Claude Code

…alent

RULED by Brett Heap 2026-09-22T14:04:00Z, opensoft/openxFactory issue #656
comment 5777949892, by multi-choice, verbatim "(b) - AMEND THE CLAUSE".

The requirement obliges a source-tree pin to carry a per-file sha256 list and
pinned_by_commit_only, then three paragraphs later reasons that obligation away
in its stronger form for a published artifact: one digest addresses every byte,
so no member can be undeclared. That reasoning does not depend on the medium,
and the estate's own pins already applied it to a source tree - which left the
corpus a rule and an unwritten exception. Copilot r4067623184 found it on the
#1139 archive pre-stage and the lane's bookkeeper verified it.

ONE ## MODIFIED block: one amendment paragraph and three scenarios, with no
unit the requirement already carries edited. The boundary is normative text and
not only proposal prose - an enumeration stays lawful and stays owed where no
whole-tree digest is recorded, the equivalence reaches WHICH FORM the digest
obligation takes and never WHETHER digests are owed, the runtime-deployment
clause is narrowed in no respect, and a pin recording NEITHER form has
discharged nothing.

The block is written over split-opendox-two-layer-product's OUTCOME, declared by
sequenced_after and by a dated per-requirement record - the form that basis
itself used over add-openspec-cli-pin. Seven scenarios carried, three added.

code_surface: none, MEASURED: neither verify-opendox-pin.py nor
verify-openxdox-pin.py reads files: or pinned_by_commit_only:, neither closed
refusal vocabulary carries a code for a missing per-file list, and
pytest tests/opendox_pin tests/openxdox_pin reads 105 passed over fixtures
already in the admitted shape. This packet edits no pin file.

Validated through the pinned consumer entrypoint at @fission-ai/[email protected]:
1 passed, 0 failed.

Lane: openxfactory-4

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings September 22, 2026 14:53
@sourcery-ai

sourcery-ai Bot commented Sep 22, 2026

Copy link
Copy Markdown

Reviewer's Guide

This draft, documentation-only OpenSpec change reconciles the normative neutral-product-pin requirement with existing source-tree pin shapes by recognizing a whole-tree digest as an equivalent discharge of the per-file obligation, while preserving all existing forms and runtime safeguards. It adds the change metadata, design rationale, task and sequencing records, and README registration; no code, tests, contracts, or pin files are modified.

Flow diagram for whole-tree digest equivalence

flowchart TD
    A[Source-tree pin names a commit] --> B{Whole-tree digest recorded?}
    B -->|Yes| C[Digest covers every file in the commit tree]
    C --> D[Per-file obligation discharged]
    B -->|No| E{Per-file enumeration recorded?}
    E -->|Yes| F[Enumeration remains lawful and owed]
    E -->|No| G[Nothing discharged]
    D --> H[Digests are still required]
    F --> H
    G --> H
Loading

File-Level Changes

Change Details Files
Adds a normative OpenSpec delta admitting whole-tree source-tree digests as an equivalent way to satisfy the existing per-file digest obligation.
  • Adds the sorted-ls-tree-r-v1 plus digests.tree_sha256 equivalence and its completeness rationale.
  • Preserves per-file enumeration as valid and required when no whole-tree digest exists.
  • Explicitly rejects pins with neither digest form and interpretations that skip digest verification.
  • Leaves the runtime-deployment clause and all pre-existing requirement units unchanged.
  • Carries the predecessor modification and appends three scenarios to the resulting ten-scenario block.
openspec/changes/amend-neutral-product-pin-source-tree-digest/specs/neutral-product-pin/spec.md
Documents the proposal’s design, sequencing, scope, and measured absence of implementation impact.
  • Records the ruling, rationale, boundary decisions, predecessor outcome, and non-goals.
  • Declares code_surface: none, target_release: implemented, and sequenced_after metadata.
  • Leaves ratification and archive tasks explicitly open while marking proposal, measurement, and delta work complete.
openspec/changes/amend-neutral-product-pin-source-tree-digest/proposal.md
openspec/changes/amend-neutral-product-pin-source-tree-digest/design.md
openspec/changes/amend-neutral-product-pin-source-tree-digest/tasks.md
Registers the draft change in the repository’s active OpenSpec changes index.
  • Adds a detailed Active changes entry describing the amendment, provenance, boundaries, and validation evidence.
README.md

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

Written by the sanctioned `scripts/validate-sequenced-after.py . --seed-ledger
--moved-by '#1140'` and by no hand. ONE row moved: this change's own, read
`co-modifier` because its `## MODIFIED` block writes a requirement key
`split-opendox-two-layer-product` also writes, with `depth: 1` from the
`sequenced_after:` declaration on that basis.

Lane: openxfactory-4

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

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.

Copilot review overview

🟡 Changes recommended

Critical issues remain with the missing origin declaration, stale corpus-ledger rows, and required-check wording for whole-tree pins.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 3 High severity

Open (3)
What changed in this PR

This draft OpenSpec amendment allows a complete whole-tree digest to replace per-file source-tree enumeration while preserving existing digest and deployment safeguards.

Changes:

  • Adds the normative amendment and three scenarios.
  • Documents rationale, design decisions, sequencing, and validation.
  • Registers the active change in the README.
File Reviewed change
README.md Adds the active amendment to the index.
openspec/​changes/​amend-neutral-product-pin-source-tree-digest/​tasks.md Tracks ratification, validation, sequencing, and archive work.
openspec/​changes/​amend-neutral-product-pin-source-tree-digest/​specs/​neutral-product-pin/​spec.md Defines whole-tree digest equivalence and related scenarios.
openspec/​changes/​amend-neutral-product-pin-source-tree-digest/​proposal.md Explains scope, rationale, and measured impact.
openspec/​changes/​amend-neutral-product-pin-source-tree-digest/​design.md Records design boundaries and code-surface analysis.

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

Copilot AI review requested due to automatic review settings September 22, 2026 15:00

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.

Copilot review overview

🟡 Changes recommended

Unresolved specification contradictions and a missing required origin declaration block approval.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 4 High severity

Open (4)
Previously missed (1)

In code that hasn't changed since last review

Medium severity Require mutually exclusive source-tree pin shapes

openspec/​changes/​amend-neutral-product-pin-source-tree-digest/​specs/​neutral-product-pin/​spec.md:69

MAY then be absent makes the two lists optional, so this text does not prohibit a source-tree pin carrying both digests.tree_sha256 and files:. The existing scripts/doc_health/pin_shapes.py explicitly refuses that combination as a mixed shape, so the prose can admit a pin that the current gate rejects. State that the two forms are mutually exclusive, or update the adapter and its tests; the current code_surface: none claim cannot cover both behaviors.

`scripts/doc-health.py --single-repo .` reported this packet under the
`proposal-origin` family — "proposal carries no origin declaration",
class auto-fixable — so the declaration is written rather than left for the
nightly to carry. `kind: ad_hoc`, in the DRAFTING provenance state the checker
admits for an unapproved packet (`proposed_by` + `proposed_on`, no approval
asserted), which is what `Status: draft` claims.

`ad_hoc` is CHECKED, not assumed: `ideation/staging/` was enumerated and
grepped, three topics name `neutral-product-pin` and none proposes this rule -
`opendox-two-layer-product` is the source of the runtime clause this block
carries, `openxwallet-neutral-home` is the source of the ORIGINAL per-file
clause being amended rather than of the amendment, and
`wallet-carried-work-authority` is about wallet authority.

doc-health now names this packet in ZERO findings, and its `## MODIFIED` block
raises no `modified-block-currency` finding while nine other active changes do.

Lane: openxfactory-4

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings September 22, 2026 15:16

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.

Copilot review overview

🟡 Changes recommended

Unresolved findings affect runtime applicability, required-check consistency, pin-form exclusivity, canonical references, and task reproducibility.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 4 High severity · 1 Medium severity · 1 Low severity

Open (6)

…laim

Three FACT findings taken as fixes, each measured against running code rather
than accepted on the reviewer's word.

r4073364832 - THE TWO FORMS ARE ALTERNATIVES, NOT A MENU. The amendment said the
two lists "MAY then be absent", which left a pin carrying BOTH a whole-tree
digest and a per-file list apparently conformant. Measured:
scripts/doc_health/pin_shapes.py:763-775 already REFUSES that record, naming both
shapes tried, because the ratified text was silent on the whole-tree shape and
the capability's fail-closed rule governed. The text now says such a pin carries
NEITHER list, in the published-artifact clause's own words, and a new scenario
refuses the mixture. Side effect worth naming: this is the first promoted text to
name the form that guard has been judging, so the silence pin_shapes.py records
ends here.

r4073177274 - THE EQUIVALENCE NO LONGER REACHES A RUNTIME PIN. The first draft
granted it to any source-tree pin, which includes a runtime product pinned as a
source tree, and then said the runtime-deployment clause was "untouched". Those
two statements contradict rather than compose: a rule that reaches a pin cannot
leave the clause governing that pin untouched. The scope now EXCLUDES
runtime-clause-governed pins outright, with its own scenario, so the clause is
untouched in fact and not merely in assertion - and whether a whole-tree digest
may discharge the obligation there is left UNOPENED rather than answered by
implication. design.md D3 records the correction.

r4073364921 - THE LEDGER CLAIM SAID TWO ROWS AND THE SEEDER MOVED ONE. tasks.md
2.5 predicted a partner flip from the rule instead of reading the generated diff;
the basis row at corpus-ledger.yaml:291 was ALREADY co-modifier, so there was no
`sole` to flip. Corrected, with the seeder's own output quoted.

r4073110728 - REGISTERED, NOT FIXED, and the reason is scope. The required-check
scenario at openspec/specs/neutral-product-pin/spec.md:147-149 conditions on the
per-file digests and the pinned_by_commit_only set, which a whole-tree pin does
not carry. The gap PREDATES this packet - both pins have carried the whole-tree
form since they were filed - and amending a SECOND requirement is beyond a
commission that names one clause. tasks.md 5.3 registers it for a successor.

r4073110643 and r4073110783 were true when written and are false at this head:
the .openspec.yaml origin landed at 4f78690 and the ledger row at b2ec9e8.

Section 5 residue now carries the reserved [~] DEFERRED marker with holders
named, on the mechanism Copilot r4073184032 named against the sibling packet:
archive_change() refuses on any literal "- [ ]" anywhere in tasks.md
(proposal-support.py:4633). Sections 1 and 4 keep "- [ ]" deliberately - those
will be ticked, by the ratifying and archiving acts.

Seven scenarios carried, five added, twelve in the block. Re-validated: pinned
entrypoint 1 passed / 0 failed; code_surface, target_release and sequenced_after
green; doc-health names this packet in ZERO findings.

Lane: openxfactory-4

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings September 22, 2026 15:34

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.

Copilot review overview

🟡 Changes recommended

Unresolved specification and enforcement inconsistencies remain around runtime pins, mixed forms, and required checks.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 Medium severity · 2 Low severity

Open (4)
Resolved since last review (6)

Comment thread README.md Resolved
…es it

THE ROUND-1 REPAIR OVER-CORRECTED AND ROUND 2 OVERTURNS IT. Copilot r4073495698
measured what round 1 did not: contracts/opendox-pin.yaml:190 carries a real
`migration:` block (range "0001..0002", reversible: false, a named runbook) AND a
whole-tree digests.tree_sha256 with no per-file list. So the runtime-deployment
clause GOVERNS that pin, and round 1's exclusion of runtime-clause-governed pins
would have made THE VERY PIN THIS AMENDMENT WAS RULED FOR non-conformant - the
exact opposite of RULED 5768144952, which settled that this is the shape it
keeps. A reading that breaks the pin the ruling was about is refused by that fact
alone.

THE RESOLUTION IS THE READING AVAILABLE ALL ALONG: the two clauses govern
DIFFERENT obligations. The runtime clause governs what a bump must DECLARE - the
migration range, the reversibility, the runbook - and this equivalence governs
which FORM the completeness obligation takes. The equivalence therefore reaches a
source-tree pin whether or not its product is a runtime, and every obligation
that clause imposes stays owed in full, its prohibition on reading a deployment
declaration as permission to skip the digests preserved exactly. Where it names
"commit and per-file sha256" it names the referent a FILE-READ pin carries; a
whole-tree pin's referent is its commit and its tree digest, which is not less
verified and not less trusted.

WHAT "DO NOT TOUCH THE RUNTIME CLAUSE" MEANT, now written down so the next reader
does not repeat round 1: do not weaken the deployment obligation. It did NOT mean
carve runtime products out of the equivalence, and conflating those two is what
produced a repair that broke a live pin. design.md D3 records BOTH rounds,
because the discarded reading is the instructive one.

r4073495808 and r4073495848 - TWO STALE SCENARIO COUNTS, fixed. README:540 and
tasks.md 2.1 still said "three added scenarios" where the delta adds five; the
same files already said five and twelve elsewhere, so the packet contradicted
itself. Every count across README, proposal, tasks, design and the delta now
reads five added / twelve in the block.

r4073495753 - THE MIXTURE GUARD COVERS ONE HALF, registered rather than papered
over. pin_shapes.py:772-775 detects the mixture only when `files` is present, so
a tree pin carrying pinned_by_commit_only alone is not caught, and neither tree
verifier reads either key. MEASURED across every contracts/*-pin.yaml: opendox
and openxdox carry a tree_sha256 and NEITHER list; openreposhape and openxwallet
carry both lists and NO tree digest; openspec-cli and review-lane carry none. No
pin in the estate is in the uncaught state, so NO CODE IS OWED and
code_surface: none stands. The scenario states the rule for both halves, which is
what a requirement is for; the unreached half is registered at tasks.md 5.4.

Re-validated: pinned entrypoint 1 passed / 0 failed; code_surface,
target_release and sequenced_after green; doc-health names this packet in ZERO
findings.

Lane: openxfactory-4

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

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.

Copilot review overview

🟡 Changes recommended

Resolve the scenario-count inconsistencies and the runtime-pin scope contradiction.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Low severity

Open (1)
Resolved since last review (4)

RATIFIED - 2026-09-22T15:45:54Z by Brett Heap (openxFactory operator authority),
interactive in the lane session, verbatim "ratify #1140 and #1141", recorded at
opensoft/openxFactory issue #656 comment 5779511063.

Status: ratified in proposal.md, design.md and tasks.md; approval provenance in
.openspec.yaml; record at review/ratification-2026-09-22.md; README OpenSpec
Records row moved with it. Ratification authorizes realization and does not
perform it - nothing is promoted until the archive, which is a separate act on a
separate word.

THE RATIFIED BASELINE IS ca47e2c AND THE CURRENT HEAD IS NOT. This is disclosed
in every place the ratification is recorded rather than smoothed over. 9f82cae
was committed at 15:45:53Z - ONE SECOND before the word - and pushed around it,
so it was in flight at ratification and cannot have been read. It is not
cosmetic: it REVERSES the runtime exclusion ca47e2c carried, on Copilot
r4073495698's measurement that the exclusion would have made
contracts/opendox-pin.yaml non-conformant (it carries a migration: block at :190
AND a whole-tree digest with no per-file list) - the opposite of what RULED
5768144952 settled.

The correction runs in the ratified direction, but it is REQUIREMENT TEXT MOVED
AFTER A RATIFY WORD, and the estate admits only non-normative folding after the
word. So it is RAISED, not absorbed: tasks.md 1.3 carries RULING NEEDED with
(a) re-ratify at 9f82cae, REC, (b) revert to the exclusion and accept that
contracts/opendox-pin.yaml reads non-conformant, (c) something else. On the word
a Re-ratified: line joins the Ratified: one in all three files, the instrument
add-chain-attestation already carries.

No council sitting was held and none was owed - no convening packet, no ballot,
no seat returns, no council review - and the record says so plainly rather than
inflating a direct word into a proceeding.

Validated after the change: pinned entrypoint 1 passed / 0 failed; code_surface,
target_release and sequenced_after green; doc-health names this packet in ZERO
findings (the proposal-origin error the ratified status first raised is answered
by the approval pair, not suppressed).

Lane: openxfactory-4

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap pushed a commit that referenced this pull request Sep 22, 2026
RATIFIED - 2026-09-22T15:45:54Z by Brett Heap (openxFactory operator authority),
interactive in the lane session, verbatim "ratify #1140 and #1141", recorded at
opensoft/openxFactory issue #656 comment 5779511063.

Status: ratified in proposal.md, design.md and tasks.md; approval provenance in
.openspec.yaml; record at review/ratification-2026-09-22.md; README OpenSpec
Records row moved with it. Ratification authorizes realization and does not
perform it - nothing is promoted until the archive, a separate act on a separate
word.

WHAT THE WORD RATIFIES HERE IS THE GENERAL RULE STATED FROM A PARTICULAR RULING,
which is the only thing this packet adds and the reason it needed a word of its
own. 5778300335 is the accepted read-only measurement; 5778397686 ruled the
particular box. That ruling disposed of ONE box, and nothing in the corpus forbade
the next box being written the same way.

THE HEAD DID NOT MOVE between the word and this record: c36ff08 is both the head
the word names and the head the packet stood at when it was given, and the
ratification front-matter, the record and the README line are the first changes
after it - none of them requirement text. The sibling #1140 is NOT in that
position and says so in its own record; the two are separate acts and this one
inherits nothing from that.

No council sitting was held and none was owed - no convening packet, no ballot,
no seat returns, no council review - and the record says so plainly rather than
inflating a direct word into a proceeding.

Validated: pinned entrypoint 1 passed / 0 failed; code_surface, target_release
and sequenced_after green; doc-health names this packet in ZERO findings.

Lane: openxfactory-4

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@brettheap
brettheap requested a lite review from Copilot September 22, 2026 15:54

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.

Copilot review overview

🟡 Changes recommended

The current normative delta lacks recorded re-ratification, and lifecycle and scope summaries remain inconsistent.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity · 3 Low severity

Open (4)

Comment thread README.md Resolved
…a stale gloss

r4073610119 - SECTION 5.4 WAS REFERENCED AND DID NOT EXIST. proposal.md's Impact
block pointed at a tasks.md 5.4 registering the mixture-guard asymmetry, and the
task list ended at 5.3. The cause is recorded in the item itself rather than
quietly repaired: the round-2 edit that wrote it ABORTED on an unrelated failed
assertion before reaching the append, so the cross-reference shipped without its
target. A cross-reference is not evidence that its target landed - the target is.

r4073704501 - A STALE GLOSS SURVIVED ROUND 2. The proposal's scenario list still
described the runtime product's pin as one "which the equivalence does not
reach", which is the reading round 2 OVERTURNED after Copilot r4073495698
measured that it would make contracts/opendox-pin.yaml non-conformant. It now
reads as the normative block does: the whole-tree digest DOES discharge the
obligation there, while every deployment obligation stays owed in full. The
normative text, the scenarios, design.md D3 and the ratification record already
carried the corrected reading; this one summary did not.

r4073704409 - NOT A DEFECT TO FIX, AND IT IS THIS PACKET'S OWN DISCLOSURE. The
review says the current head is not covered by the recorded approval. That is
exactly what tasks.md 1.3, the ratification record section 3, .openspec.yaml,
the README row and the pull request body all say, in those terms, and it is
registered as RULING NEEDED for Brett Heap rather than resolved by this lane.

r4073704461 - the pull request DESCRIPTION carried the stale "Status: draft"
sentence and the stale boundary; corrected there, not here.

Re-validated: pinned entrypoint 1 passed / 0 failed; doc-health names this
packet in ZERO findings.

Lane: openxfactory-4

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings September 22, 2026 16:13

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.

Copilot review overview

🔵 Needs a closer look

Unresolved proposal contradictions and a stale ratification summary require updates before approval.

Review effort: Lite
Findings: None

Previously missed (1)

In code that hasn't changed since last review

Low severity Clarify whole-tree form exclusively replaces per-file lists

openspec/​changes/​amend-neutral-product-pin-source-tree-digest/​proposal.md:91

This summary still says the per-file lists “MAY then be absent,” which leaves the mixed shape optional, while the delta immediately below and the normative block require the whole-tree form to carry neither list. Align this description with the exclusive shape enforced by the existing guard so the packet does not present two different admissibility rules.

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.

Copilot review overview

🟡 Changes recommended

Unresolved proposal scope contradictions and documentation consistency issues remain.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 Low severity

Open (2)

…lly that was wrong

r4073991713 - THE PROPOSAL'S FIRST SUMMARY STILL SAID THE LISTS "MAY then be
absent", which permits exactly the mixed whole-tree-plus-list pin that the
NEXT BULLET and the normative amendment both forbid and that
pin_shapes.py:763-775 already refuses. The round that introduced the exclusivity
rule corrected the delta and the summary below it and left the summary above it
standing. Now reads "such a pin carries NEITHER list".

r4073991767 - THE RATIFICATION RECORD'S TALLY WAS WRONG IN BOTH DIRECTIONS. It
said "ten findings, six fixes, one registered, four stale": it under-counted the
REGISTERED findings by omitting r4073495753, and called four findings stale where
only two were. A review finding about this record's own accounting of review
findings, which is the correct place for it to be caught.

THE FIX IS STRUCTURAL, NOT ARITHMETIC. A tally frozen into a ratification record
goes stale the moment review continues - and review DID continue after the
ratifying word, which is the whole reason this record exists. So the record now
states its tally AS OF A NAMED HEAD and says the pull request carries the running
one, in a table naming every finding by id under four dispositions: 11 FIXED,
2 REGISTERED, 2 true-when-written, and 1 that is not a defect at all but this
packet's own disclosure read back to it. Sixteen findings across four rounds.

Section 4's "one finding is registered" prose is likewise expanded to the two
that actually are, each with its scope reason.

Re-validated: pinned entrypoint 1 passed / 0 failed.

Lane: openxfactory-4

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings September 22, 2026 16:34
brettheap pushed a commit that referenced this pull request Sep 22, 2026
The record said "one Copilot review round, five findings". True when written;
three rounds and thirteen further findings have happened since, because review
continued after the ratifying word - which is the whole reason this record
exists.

THE FIX IS STRUCTURAL, NOT ARITHMETIC, and it is the same one the sibling #1140
took for the same defect: a tally frozen into a ratification record goes stale
the moment review continues, so the record now states its count AS OF A NAMED
HEAD and says the pull request carries the running one. As of 691a7df: four
rounds, EIGHTEEN findings, 16 FIXED and 2 true-when-written-and-already-false.

Section 4 now names the THREE findings that changed the requirement's MEANING
rather than one - the PATH-mode hole r4073721220, which let the rule be satisfied
by exactly the invocation the capability forbids, and the stale-disposition
inversion taken twice, r4073721379 then r4073925702 - and lists the rest as the
sharpening they were.

This is the same class of finding the packet kept catching in its own summaries,
caught this time in the record that summarizes the catching.

Re-validated: pinned entrypoint 1 passed / 0 failed.

Lane: openxfactory-4

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

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.

Copilot review overview

🔵 Needs a closer look

Moderate inconsistencies remain in the proposal scope, design evidence, specification scenario, and task completion status.

Review effort: Lite
Findings: None

Resolved since last review (2)
Previously missed (1)

In code that hasn't changed since last review

Medium severity Align boundary summary with final runtime pin scope

openspec/​changes/​amend-neutral-product-pin-source-tree-digest/​proposal.md:115

The proposal's boundary summary still says the equivalence does not reach runtime-governed pins and that their whole-tree behavior is left open, but the current normative block, README, design, and runtime scenario all resolve the round-2 decision the other way: runtime source-tree pins may use the whole-tree form while their migration obligations remain owed. This stale summary can cause the proposal to be implemented with the discarded scope; update it to match the final rule.

@brettheap
brettheap requested a lite review from Copilot September 22, 2026 16:42
Copilot's "previously missed" finding at 52f8067, and it is the LAST survivor of
the round-2 reversal: proposal.md item 3 still said the equivalence "does not
reach a pin the runtime-deployment clause governs" and that the whole-tree
question there was "left unopened" - the round-1 reading that r4073495698
overturned by measuring that it would make contracts/opendox-pin.yaml itself
non-conformant. The normative block, the scenarios, design.md D3, the
ratification record and the README all carried the corrected reading; this one
bullet did not, and a proposal implemented from it would have taken the discarded
scope.

TWO CAUSES, BOTH RECORDED BECAUSE BOTH WILL RECUR.

First: the round-2 edit that should have fixed this bullet was in the SAME script
that aborted on an unrelated failed assertion - the script that also lost
tasks.md section 5.4 (r4073610119). One aborted script silently dropped two
edits, and a later reader found each separately. An edit is not applied because a
script containing it ran.

Second, and worse: I GREPPED FOR THIS EXACT PHRASE EARLIER AND GOT A FALSE
NEGATIVE. The text wraps as "does not reach a pin the\n   runtime-deployment
clause governs", so a line-oriented grep for the phrase matched nothing and I
recorded the packet as clean. The sweep is now whitespace-normalized before
matching - re.sub(r"\s+", " ", text) across every packet file and the README -
and reports clean on all three discarded-reading phrases.

Re-validated: pinned entrypoint 1 passed / 0 failed.

Lane: openxfactory-4

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@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.

Copilot review overview

🔵 Needs a closer look

Unresolved moderate findings remain, and the ratification and documentation state requires final human review.

Review effort: Lite
Findings: None

brettheap pushed a commit that referenced this pull request Sep 22, 2026
Copilot's "previously missed" finding at 8006bca. Task 2.5 documented the
seeding command as `validate-sequenced-after.py . --seed-ledger` with no
`--moved-by`, while the committed row carries `moved_by: "#1141"`. The validator
REFUSES that combination at argument parsing - "--seed-ledger requires
--moved-by '#<PR>'" - so the command as written could not have produced the row
the box claims it produced.

Corrected to the command actually run, with the row's own reading beside it:
ONE row moved, `sole` because the ADDED requirement title is written by no other
change in the corpus, `depth: 0` on the positive root claim
`sequenced_after: []`.

The sibling #1140 carries the argument already - it was corrected there in an
earlier round for a different reason - which is why only this one was left
stating a command that cannot run.

Lane: openxfactory-4

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@brettheap
brettheap marked this pull request as ready for review September 22, 2026 17:09

@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 2 days and 17 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap

Copy link
Copy Markdown
Contributor Author

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

LANDING — lane openxfactory-4, session faabad8b-8c31-4958-abd5-b35bdc9cd282@Eagle, 2026-09-22T18:15:23Z, PR #1140 into opensoft/openxFactory main

@brettheap
brettheap merged commit e90997b into main Sep 22, 2026
16 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

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

LANDED — lane openxfactory-4, 2026-09-22T18:15:38Z, PR #1140 → e90997b (opensoft/openxFactory main; squash)

brettheap pushed a commit that referenced this pull request Sep 22, 2026
…are kept

ONE CONFLICT, README.md, and it was an ADD/ADD at the same insertion point in the
OpenSpec Records "Active changes" list: #1140's
amend-neutral-product-pin-source-tree-digest entry (now canon on main) against
this packet's require-adjudicated-validation-entrypoint entry. BOTH ARE KEPT -
#1140's first, because it is already main's content and keeping it in place makes
this branch's diff against main a pure addition of the second entry. Neither
line was dropped, shortened or reworded.

tests/sequenced_after/corpus-ledger.yaml auto-merged cleanly and carries BOTH
rows: amend-neutral-product-pin-source-tree-digest moved_by "#1140" and
require-adjudicated-validation-entrypoint moved_by "#1141". Verified by reading
the merged file, not inferred from the absence of a conflict marker.

Submodules were restored with `git submodule update --init` rather than staged,
so openDox and openXdox stand at the gitlinks main pins.

Lane: openxfactory-4

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap pushed a commit that referenced this pull request Sep 22, 2026
…t is from

Three Copilot findings at 925d146, and they are ONE FACT: the merge-from-main
that #1140's landing required grew the corpus, so `--all` now reads 110 passed /
1 failed (111 items) where the ratified packet recorded 108 / 1 / 109. I updated
the PULL REQUEST body and left the PACKET behind - which made the two disagree at
the same head, with the README entry (the user-facing status record) asserting a
measurement this head does not produce.

WHAT ACTUALLY MOVED, AND WHAT DID NOT. The item count tracks the size of main's
corpus. THE VERDICTS ARE THE CLAIM and they did not move: same tree, same single
finding (add-chain-attestation), exit 0 through the adjudicated entrypoint
against exit 1 raw. So the repair is not to restate a number - it is to make
every copy say WHICH HEAD IT IS FROM, so the next merge cannot silently
invalidate it again.

CURRENT-EVIDENCE COPIES take the current head, with the baseline named beside
them: README.md's Records entry, proposal.md's table and its lead-in, tasks.md
section 3.1, and .openspec.yaml's origin reason.

THE RATIFICATION RECORD IS LABELLED, NOT REWRITTEN. Its table now says the
figures are as they read AT THE RATIFIED HEAD c36ff08, and a paragraph records
that the later re-take does not amend it. A ratification record's job is to
freeze what the ratifying word was given; updating its numbers would quietly
restate the evidence behind a word already spoken. The running measurement lives
in the pull request and in tasks.md section 3.1 instead - the same division #1140
adopted after a frozen tally went stale there, which is the precedent this
follows rather than a new rule.

NON-NORMATIVE, deliberately and by inspection: not one requirement, scenario or
boundary is touched. These are evidence counts in prose and front-matter. The
ratified normative text in specs/neutral-product-pin/spec.md is unchanged, so
this is the addendum class the estate admits after a ratify word and not a
re-ratification trigger.

RE-VALIDATED at this head: `openspec validate
require-adjudicated-validation-entrypoint --strict` exit 0 ("Change ... is
valid"); the adjudicated entrypoint exit 0 at Totals: 110 passed, 1 failed (111
items); doc-health --family proposal-origin exit 0 naming this packet in nothing;
code_surface exit 0; target_release exit 0; validate-sequenced-after exit 0 (45
active changes, 18 declaring the field).

Lane: openxfactory-4

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap pushed a commit that referenced this pull request Sep 22, 2026
Five Copilot "previously missed" findings at 44ca473, all ONE CLASS and all
MEASURED before they were taken: the merge-from-main that #1140's landing
required moved the canon files, and six citations in this packet kept pointing at
the lines those texts used to occupy.

MEASURED AT THIS HEAD, not accepted on assertion:

  openspec/specs/doc-health/spec.md:1770  = the `Removed from canon` bullet
  openspec/specs/doc-health/spec.md:1772  = the `Merged into` bullet  <- meant
  openspec/specs/neutral-product-pin/spec.md:602-604 = "Scenario: The target
      version fails on conditions that predate the bump"
  openspec/specs/neutral-product-pin/spec.md:663-668 = "A narrowed run SHALL
      still APPLY the dispositions it matches, and SHALL state that it checked
      none for staleness"  <- meant

Both stale pointers landed on REAL BUT WRONG TEXT, which is the dangerous kind: a
reader following :1770 finds a marker form and would not notice it is the other
one, and a reader following :602-604 finds a plausible scenario about the pinned
tool. Neither would look like a broken link.

SIX SITES CORRECTED, all mine: README.md's Records entry, proposal.md in three
places, .openspec.yaml's origin reason, and review/ratification-2026-09-22.md.

AND THE CITATIONS NOW CARRY THEIR OWN TEXT, which is the actual repair. This is
the second time on this branch that something pinned to a position went stale
under a merge - the item counts were the first - so the two load-bearing
citations now quote the sentence or name the form they point at. A number that
drifts alone is silent; a number beside its text is checkable by the next reader
without opening the file.

THE RATIFICATION RECORD IS CORRECTED, NOT FROZEN, AND THE DISTINCTION IS
DELIBERATE. Two commits ago I labelled its MEASUREMENT table as of the ratified
head and refused to update the numbers, because a record's job is to freeze what
the ratifying word was given. A CITATION is not that. It is a pointer to canon
that still exists unchanged; correcting it makes it reach the same sentence it
always named, where leaving it would make the record cite text it never relied
on. The record says so in place, quotes the sentence, and names the merge as the
cause.

TWO FURTHER SITES ARE NOT MINE AND ARE LEFT ALONE: README.md:1958 belongs to
disposition-codexfactory-declared-renames and README.md:2025 to
prepare-openspec-1-12-readiness. Both cite :1770 for the same marker and are
stale in the same way (confirmed by git blame: 9adcb05 and 552a3a7, neither
this branch). Another change's record is not this packet's to edit; it is
reported to the coordinator instead.

RE-VALIDATED at this head: openspec validate require-adjudicated-validation-entrypoint
--strict exit 0 ("Change ... is valid"); the adjudicated entrypoint exit 0 at
Totals: 110 passed, 1 failed (111 items); .openspec.yaml parses; doc-health
--family proposal-origin exit 0 naming this packet in nothing. Each corrected
pointer was re-read at its new line to confirm it lands on the quoted text.

Lane: openxfactory-4

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 22, 2026
…ass, preflight, ideation_readiness (#1128) (#1142)

Lane: openxfactory-2 (openXfactory-2)

**On Brett Heap's words.** *"do 1 and 2, claim 5"* (#745 comment 5767008640) and *"merge both when green, then fix 5 and merge when green"* (#745 comment 5767058861, recorded on #1128 as comment 5767206176). Both #745 PRs have landed, so finding 5 — #1128 — is next.

**What this binds.** The three call sites #1128 measured inside `scripts/doc_health/`: the last unbounded git subprocesses there after #1098 / PR #1102 bound `corpus.RealGit`'s pair. Each now binds a timeout and catches `subprocess.TimeoutExpired` beside `OSError`, mapped to the failure its caller **already** produces — never a new exception type for a caller to learn, never a silent success, never a hang. No contract, schema or policy text moves (#1128 declares `code_surface: openxFactory`, code-only), so no OpenSpec packet is owed.

## Per site: before → after

### 1. `scripts/doc_health/pin_class.py` — `_git` (`:1685`)

| | |
|---|---|
| **Before** | `subprocess.run(["git", "-C", str(repo), *args], capture_output=True, check=check, text=True, encoding="utf-8", errors="replace")` — no `timeout=`, and **no `try`/`except` at all**, not even a bare `OSError`. Nine call sites route through it, including `verify()`'s first act (`:2451`). |
| **What it caught** | Nothing. A missing `git` raised `FileNotFoundError` out of whatever reachability read was in progress; a hung `git` never returned at all. |
| **The caller's own handling** | Every one of the nine reads `.returncode` / `.stdout` / `.stderr`; not one checks for `None`. `verify()` raises `GitUnavailable` (a `RuntimeError` subclass whose docstring is *"Never silently a pass"*) when `_git(...).returncode != 0`. |
| **After** | `timeout=_GIT_TIMEOUT_SECONDS` (**30 s**, the sibling bound) and `except (OSError, subprocess.TimeoutExpired)` answering `CompletedProcess(args=argv, returncode=1, stdout="", stderr=<reason>)` — the only "failed" shape this module has, so all nine callers are untouched. On the hot path that is the designed failure: `verify()`'s `rev-parse` raises `GitUnavailable`, exactly as it does for a git that said no. `check=True` is **re-raised** rather than translated, because that caller never reads the returncode and handing it a non-zero `CompletedProcess` would be the silent success this bound exists to prevent (no caller passes `check=` today — measured across `scripts/` and `tests/`). |

### 2. `scripts/doc_health/preflight.py` — `run_preflight` (`:57`)

| | |
|---|---|
| **Before** | `subprocess.run(cmd, cwd=repo_path, capture_output=True, text=True, env={...})` — no `timeout=`; the whole 72-line file contained zero `try` and zero `except`. |
| **What it caught** | Nothing. And `cmd` is not fixed to `git`: `_entrypoints()` builds `python3 <validator>`, `bash scripts/validate-docs.sh` or `make validate` per discovered repository. |
| **The caller's own handling** | A non-zero exit becomes `Finding(ERROR, "preflight", repo, <path>, ...)`. But `run_preflight` is the **first** act of `run_suite` (`runner.py:227`) whenever no `--family` is passed — which is how the nightly invokes it — so a hang blocked every family before one ran, and never reached the `Finding`-producing branch at all. |
| **After** | `timeout=_ENTRYPOINT_TIMEOUT_SECONDS` and `except (OSError, subprocess.TimeoutExpired)` producing the **same** `Finding(ERROR, "preflight", ...)`, same family and same path so regression matching between two reports is unchanged, with the reason (`timed out after 120s` / `could not be run: …`) standing in for the output tail there is none of. |

**The 120 s here is a decision, not a slip, and the constant says so in the file.** It is deliberately **not** the 30 s the two git sites bind. Those are single git plumbing calls; a preflight entrypoint is a *whole repository's validator suite* (`make validate`, `bash scripts/validate-docs.sh`, or a python validator that spawns git subprocesses of its own — `validate-domain-openxfactory-pins.py` does). A bound tight enough to cut an honest slow validator would convert a green nightly into an ERROR finding, i.e. a defect this PR would have *introduced*. The number is measured: the slowest entrypoint this repository can run is `scripts/validate-memory-gateway.py` at **3.26 s** (the four openxFactory no-arg validators measured 0.12 / 0.49 / 0.77 / 3.26 s on 2026-09-21), so 120 s carries ~37x headroom over the slowest thing actually observed — while still being small enough that the whole preflight fits inside its own job: `.github/workflows/doc-health-reusable.yml` bounds that job at `timeout-minutes: 45`, and even if all ~13 entrypoints an aggregation run discovers timed out, 13 x 120 s = 26 min, so the timeouts surface as Findings rather than as a killed job with no report at all.

### 3. `scripts/doc_health/ideation_readiness.py` — `index_reproduces_at` (`:884`)

| | |
|---|---|
| **Before** | `subprocess.run(["git", "-C", str(root), "archive", pin, "ideation"], capture_output=True)` — no `timeout=`, no `try`/`except`. The third in-package site, which #1098's own 2026-09-17 sweep did not name. |
| **What it caught** | Nothing. |
| **The caller's own handling** | A non-zero return already answers `(None, "the corpus at <pin> could not be reconstructed, so reproduction was NOT ASKED rather than answered: …")` — the function's documented third outcome. |
| **After** | `timeout=_GIT_TIMEOUT_SECONDS` (**30 s**) and `except (OSError, subprocess.TimeoutExpired)` returning that **same** `(None, "NOT ASKED rather than answered")`. Never `False`: `False` would blame the committed body for a question nobody could put, which is the distinction `test_reproduction_that_cannot_be_asked_is_neither_pass_nor_fail` exists to keep. |

## Regression tests, failing → passing

Nine new tests: five appended to `tests/doc-health/test_pin_reachability.py` and a new `tests/doc-health/test_preflight.py` (#1128 measured that **nothing** tested that file). They assert the bound the call actually carries (`kwargs["timeout"] == 30` / `== 120`, and that it is the module's declared constant) and raise `TimeoutExpired`, rather than timing a sleeping shim — a shim that sleeps proves only that the shim exited. Each then compares the timed-out result against the one a **real** unrunnable git or unspawnable entrypoint already produces (an emptied `PATH`), which is #1098's second, separate gap.

With the three source files swapped for `origin/main`'s and the new tests present: **6 failed, 3 passed**.

```
FAILED test_preflight.py::test_an_entrypoint_that_never_returns_times_out_into_that_same_finding
FAILED test_preflight.py::test_an_unrunnable_entrypoint_is_a_finding_rather_than_a_raised_OSError
FAILED test_pin_reachability.py::test_git_binds_the_timeout_and_answers_the_failed_read_shape
FAILED test_pin_reachability.py::test_a_timed_out_git_is_the_same_failure_an_unrunnable_git_already_gave
FAILED test_pin_reachability.py::test_the_lower_readers_degrade_rather_than_raise_through_a_timeout
FAILED test_pin_reachability.py::test_the_reproduction_archive_is_NOT_ASKED_rather_than_a_hang
```

Restored: **9 passed**. The three that pass on `main` too are contract pins rather than defect pins, and are there so the bind cannot move the surrounding contract: the two preflight baselines (an ordinary validator failure is still the Finding it always was; a clean validator still reports none) and the `check=True` guard, which `main` satisfies by catching nothing at all.

## Validation

All foreground, private `--basetemp`, in a fresh clone.

| Check | Result |
|---|---|
| `pytest -q -p no:cacheprovider tests/doc-health` (whole) | **7 failed, 1909 passed, 1 skipped** (440.69 s) |
| …the same, on a **pristine `origin/main` clone** (@ `0f23341f`) | **7 failed, 1900 passed, 1 skipped** (452.08 s) — the **same seven names**, all container-local (`validate_index` / pinned-validator / real-lines cases). +9 passed on this branch = the nine new tests. |
| touched test files (`test_pin_reachability.py`, `test_preflight.py`, `test_ideation_readiness.py`) | 3 failed, 122 passed (151.02 s) — the three container-local `test_ideation_readiness.py` ones, which fail identically on the pristine clone (3 failed, 42 passed for that file alone) |
| `python3 scripts/doc-health.py --single-repo . --as-of 2026-09-22` (no `--family`, so `run_preflight` runs), before vs after | **byte-identical** — the whole 376-line report; `diff` empty; **113** `- severity=` finding lines unchanged |
| `verify_pin_reachability(".", allow_remote=False)` before vs after | **byte-identical**, 130 lines. (`families.py` names neither `pin_class` nor `ideation_readiness`, so these two sites feed no doc-health family — the pin-reachability probe is their surface, and it is compared directly instead.) |
| `OPENSPEC_TELEMETRY=0 openspec validate --all --strict` | **106 passed, 1 failed** (`add-chain-attestation`) — identical totals on the pristine main clone; that item carries a recorded disposition in `contracts/openspec-cli-pin.yaml` |
| `python3 scripts/proposal-support.py . verify` | `proposal support verification ok` |

Both before/after comparisons swap **only** the three source files inside this one clone (`git show origin/main:<path> > <path>`, run, restore), so the corpus and the checkout kind are identical and the only variable is the code.

## Out of scope

The **61** unbounded `subprocess.run` call sites #1128 mechanically scanned **outside** `scripts/doc_health/` — across 29 files, `scripts/proposal-support.py` alone holding 14, `scripts/sequenced_after.py` 6, `scripts/attest-openspec-cli-pin-lockfile.py` 4 — are **out of scope for this PR and untouched**. That scan is textual only (it cannot resolve kwargs-indirection such as `validate-openspec-cli-pin.py`'s `_run(argv, **kwargs)`), and #1128 names it as a separate finding if it is taken at all.

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

refs #1128
refs #1098

---

## Review round by lane `openxfactory-4` (openXfactory-4-openDox_extraction)

**Driven to the gate by a second lane on the holder's assignment, with Brett Heap's landing word of 2026-09-22 — verbatim *"land #1142 too when green"*, recorded at `#656` comment `5779648105`.** The original authorship above is lane `openxfactory-2`'s and is left as written. **This PR is NOT ratified and needs no ratification**: code-only, no `openspec/changes/` path, no README OpenSpec Records edit — it lands on a **plain gate**, not in a Rule 6 window, and takes no place in the `#1140 → #1141` order.

Two Copilot findings at `d78efc7c`, **both correctness, both taken as fixes** at `9a6dd963`.

### `r4073457110` — the bound turned an unaskable question into a confident answer

`merge-base --is-ancestor` reports *"not an ancestor"* by **exiting non-zero**, which is the same shape the timeout translation produces. So a bound that fired became a confident `False`, and `verify()` published it as **ORPHAN or HISTORICAL** — a pin declared unreached by `main` on a question nobody got to ask. `is_truncated` was worse in kind: it fell through to *"`--is-shallow-repository` is false for `<repo>` and it declares no promisor remote"*, **asserting two observations that were never made**, under a docstring whose first line promises *"OBSERVED not conjectured"*.

**The module's own doctrine had already decided this**, which is what makes the finding decisive rather than arguable:

- `remote_retention_refs` refuses an empty dict for an unaskable namespace, because it *"would be indistinguishable from the namespace is empty, and would silently convert an unaskable question into an answer"*;
- `retention_holder`'s unconsultable remote is reported *"as INCONCLUSIVE rather than as an orphan"*;
- `verify()` already renders `could not be performed` as INCONCLUSIVE for the retention read.

**The fix.** `_git` returns an `_Unavailable` subclass of `CompletedProcess` — still non-zero, so the seven callers that only ever needed *"this did not succeed"* are unchanged, exactly as the translation intends. **A subclass rather than a sentinel returncode**: an exit code would collide the day a real `git` chose the same number, and `isinstance` cannot be spoofed. `reachable_from_main` and `is_truncated` answer `None` for *"could not be asked"*, and `verify()` renders both INCONCLUSIVE at three call sites.

**This reverses a scoping decision this branch had PINNED IN A TEST** — that a third state *"would change a caller contract this fix is not allowed to move"*. The cost the review measured is not payable: **the bound introduced the path, so the bound owns it.** The test is rewritten to pin the corrected behaviour and carries the reversal with its reason.

**The new regression test is proved, not asserted.** `test_an_unaskable_ancestry_is_INCONCLUSIVE_and_never_orphan_or_historical` lets the opening `rev-parse` succeed with **real git** and makes only `merge-base --is-ancestor` unaskable — the scenario the review named, and the only way to reach it, since `verify()` raises `GitUnavailable` on the first probe under a blanket timeout. **Run against the pre-fix reader it FAILS with `assert 'orphan' != 'orphan'`; with the fix it passes.** Both runs were performed.

`ideation_readiness` is **not** in this class and was checked: it handles its timeouts with named errors rather than translating them into a returncode.

### `r4073457175` — the fallback must not raise the race it is the fallback for

Every caller of `_terminate_group` sits inside `_run_entrypoint`'s `except subprocess.TimeoutExpired` handler, **whose whole job is to re-raise that timeout so `run_preflight` can turn it into a finding**. If the child exits between `communicate()` timing out and cleanup, `os.getpgid()` raises `ProcessLookupError` — which is why the fallback exists — and a bare `proc.kill()` can then raise the **same** `ProcessLookupError` from inside the `except` handling it. That second exception **replaces** the `TimeoutExpired`, escapes the handler, and takes the run down at the moment a preflight finding was owed.

`_kill_direct(proc)` swallows `OSError` **and nothing else**; every other exception still propagates and the original timeout is re-raised unchanged. Both call sites use it, including the non-POSIX branch, which carried the same exposure.

### Measurement

`python3 -m pytest tests/doc-health -q` → **1905 passed, 8 failed**. Those 8 are the **same 8 that fail on clean `main` `ac50d70d` in this clone** (`test_ideation_readiness` ×3, `test_readiness_dispatch` ×1, `test_sentinel_vocabulary` ×3, `test_status_reader_real_lines` ×1) — proven by running them on `main` in the same checkout. **Zero new failures.**

**Both threads answered and resolved.**

### Round 2 — the same defect in two more readers, found by the review of the fix

The first round corrected `reachable_from_main` and `is_truncated` and **left two more readers in the same state**. The review caught both; they are taken rather than argued, because the defect is identical and the argument was already made.

| finding | what it was |
| --- | --- |
| `r4073820387` `committed_text` | `git show` reports *"no such path in that revision"* by exiting NON-ZERO — the same shape the bound produces — so a fired bound **silently dropped pin sites from the sweep** and made `index_reproduces_at` report a committed index as uncommitted. **False negatives that look exactly like a clean answer.** Now raises `GitUnavailable`, whose docstring is the doctrine verbatim: *"The repository could not be asked. Never silently a pass."* `list_committed` already raises it for the identical condition **one call earlier in the same walk**, so the two readers now agree. |
| `r4073820387` `retention_holder` | `rev-parse --verify --quiet` reports absence by exiting non-zero, so an unavailable LOCAL read fell through, consulted the remote, and — where the namespace legitimately does not advertise the pin — **published ORPHAN on the strength of a local read that never happened**. Now returns the unavailability, with the detail carrying the exact phrase `verify()` matches to render it INCONCLUSIVE. |
| `r4073820457` `PinClassReport.truncated` | Annotated `bool` while `verify()` assigned the `None` the previous commit made possible — **an API that lied about itself**, introduced by that same commit. Now `bool | None`, with a test pinning the annotation beside the behaviour. |

**Three more regression tests, each failing against the pre-fix reader** — and the `committed_text` one also asserts that a genuinely uncommitted path still answers `None`, so the fix cannot over-reach.

**Measured:** `pytest tests/doc-health` → **1908 passed, 8 failed** — the same 8 that fail on clean `main` `ac50d70d` in this clone, and three more passing than before because of the tests added here. **Zero new failures.**

### Round 3 — the finding a zero-thread count would never have caught

The review at `bf90d87c` reported **"Findings: None"** with **zero unresolved threads**, and carried a **"previously missed"** item in its body — in code this branch had not touched — that was a real defect **this branch had introduced**:

> `is_truncated()` answers THREE states since this branch, and `None` is **FALSEY**. Two real-repository helpers tested `if truncated:`, so an unobservable truncation fell through to `verify()` and asserted `report.clean` — which **deliberately excludes `inconclusive`**. The required reachability proof could therefore pass over unanswered results whenever the remaining pins happened to be reachable.

Fixed at `18dd8158`: both helpers now test `is not False` / `is None` explicitly, and the second says **which** of the two conditions it hit, because *"could not observe"* and *"observed, and it is truncated"* send a reader to different remedies.

**The pattern is worth naming, because it appeared three times on one branch:** introducing a third state into a two-state reader leaves **every truth test on that reader silently wrong**, since the new state is falsey and reads as the old negative. The two production callers were corrected when the state was introduced; two test helpers were not.

**This is also why the review BODY gets read and not just the thread count** — a 0-unresolved count was true and told me nothing.

### Round 4 — the new failure mode had a caller nobody had walked to

`r4074075244`, **HIGH**, at `d78efc7c`: rounds 2–3 made `committed_text` **raise** `GitUnavailable` where it had returned `None`, and **did not walk its callers**. `ideation_readiness.index_reproduces_at` and `_committed_status` both call it, neither caught the new exception, so an unavailable git **took the readiness probe down** instead of answering the NOT-ASKED outcome each of them already has.

Fixed at `3c3deef2`. `index_reproduces_at` returns `(None, "…could not be read at…")` — its own unanswered shape, distinct in wording from *"is not committed"*, because an unreadable file and an absent one send a reader to different remedies. `_committed_status` returns `None`; its docstring now states **why the conflation is acceptable in that one place and nowhere else** — its single caller uses it only to choose a repair route to *print* for a pin already judged a defect.

**Named, because this branch has now produced it twice:** *changing a reader's failure shape is not finished until its callers are walked.* Round 2 caught it for the two production readers; this caught it for the two readiness probes.

### Round 5 — an unreadable ref is not an absent one, and `not None` is not a proof

Two findings at `3c3deef2`, **both correctness, both taken as fixes** at `c3fa4da6`. Both are the **same class this branch exists to remove**: an unaskable question silently converted into an answer.

| finding | disposition |
| --- | --- |
| `r4074256405` `resolve_main()` still treats an unavailable probe as an ordinary missing ref | **FIXED.** `MAIN_REF_ORDER` tries `refs/remotes/origin/main` first because it is the authoritative spelling; `refs/heads/main` is its stand-in **only in a clone that HAS no remote-tracking ref** — the one condition the fallback was written for. `--verify --quiet` spells *"not there"* with the same non-zero exit `_Unavailable` carries, so a probe that TIMED OUT on the authoritative ref promoted the local branch to the authority **for the whole run**, and `verify()` published every reachability verdict in the report against it. A pin that IS an ancestor of `origin/main` but not yet of a stale local `main` comes back **ORPHAN or HISTORICAL** from that. The loop now **stops** at an unavailable ref; `verify()` already answers a `None` `main` with INCONCLUSIVE at every site, so no new verdict was needed downstream. |
| `r4074256452` `not pc.reachable_from_main(...)` passes on the new `None` | **FIXED at both sites.** The reader returns `True`, `False` or `None` and nothing else, so `not X` and `X is False` differ on **exactly one value — `None`**, which is the value this branch introduced. `not None` is true, so **an ancestry read that never happened would have satisfied the very assertion written to prove one did.** Both now demand `is False`; the truthy sibling at the digest-collision fixture is spelled `is True` for the same reason, where it had been failing correctly only by accident. |

**The signature moves to `(value, detail)`** — this module's own shape, already carried by `is_truncated`, `remote_retention_refs` and `retention_holder` — because the two `None`s are **different facts and the report has to say which one it met**. A bare `None` would have left `verify()` printing `no \`main\` in this clone (looked for ...)` over a clone whose `main` may be sitting right there unread: one unmade observation traded for another. Nine call sites moved; measured, there are no others.

**Proved both ways.** `test_an_unreadable_origin_main_does_not_promote_the_local_branch` makes the WRONG answer **available** — `refs/heads/main` is real and readable, only the origin spelling times out — which is the only way to prove the right one is chosen. The module-wide timeout test cannot catch this, because it stops *every* probe: the case the old loop happened to get right. Against the pre-fix fall-through it fails with the defect in its own message:

```
AssertionError: the authoritative ref could not be READ, so the branch half of the
ref set is unknown — not ('refs/heads/main', '5e23da84...'), which is the stale
local branch answering a question that was put to origin
```

A second test pins that the fallback the ORDER exists for **still works**, so the narrowing did not swap one defect for another.

**Where round 5's second fix runs.** Those two assertions sit in `test_every_declared_repo_local_pin_in_this_repository_resolves`, which **skips in the authoring checkout** — a partial clone (`remote.origin.promisor true`), reported as such by the test's own skip reason — so **CI** is what exercises them. That is also why the change is safe there rather than merely intended: the return domain is three-valued, so `is False` can only fail where `not` passed on a `None`.

### Measurement at the head `c3fa4da6`

`pytest tests/doc-health/test_pin_reachability.py` → **77 passed, 8 skipped** (partial-clone skips, self-reported). `pytest tests/doc-health` → **1911 passed, 8 failed** — and those 8 were proved this round rather than recalled: the run was repeated **with these two files stashed**, and the two `FAILED` lists are **byte-identical** (`diff` clean, 8 vs 8). They are this environment's, not this commit's.

*(Round-5 tally as of `c3fa4da6`: five rounds, nine findings. Superseded by the round-6 tally below, stated as of the landing head.)*


### Round 6 — the same class again, and this time it predated the branch

One finding at `c3fa4da6`, **taken as a fix** at `77bc7ef9`. `verify_pin_reachability` called `pin_class.verify()` **with no handler for `GitUnavailable`**, which `verify()` raises from its opening `rev-parse` *and from every later inventory read*. A bound firing on the twentieth `git show` of a sweep therefore escaped as an **uncaught crash** and took down whatever surface called in — a pytest run, a preflight pass, a nightly — **at the moment a SKIP was owed and available**. The function's own contract already had the answer: a three-valued verdict whose third value is `PIN_PROBE_SKIP`, already returned for `report.inconclusive` one branch below.

**WIDENED, NOT CREATED — measured on `origin/main` rather than assumed.** `main` raises `GitUnavailable` in exactly two places: `committed_paths` (`main`:1834) and `verify()`'s opening `rev-parse` (`main`:2453). **`committed_paths` runs AFTER the opening probe**, so the later-read crash was **already reachable on `main`**. What this branch added was a second later raise site, `committed_text`. The regression test proves it **through the OLD site** — the pre-fix failure is raised at `pin_class.py:1976`, inside `committed_paths`, which is `main`'s line:

```
E  doc_health.pin_class.GitUnavailable: cannot list committed paths at bc92d20f...
   could not be performed: Command '[... ls-tree ...]' timed out after 30 seconds
scripts/doc_health/pin_class.py:1976: GitUnavailable
```

**SKIP and not FAIL, deliberately.** Every FAIL this function returns names a defect **in an artifact** and offers the repair route that artifact's class allows; there is no artifact defect here and no route to offer, only a question that could not be put. **The report is `None` because there is no report** — the inventory never completed, and a fabricated empty one would render as a clean sweep of zero sites, the silent pass this branch exists to prevent.

**The test arms the timeout for `ls-tree` ALONE** and asserts that `rev-parse` ran and succeeded first, because a test that stopped every probe would exercise the opening raise — the path that was never in doubt. A second test pins that the same surface still returns a real verdict and a real report when nothing is interfered with.

### Measurement at the head `77bc7ef9`

`pytest tests/doc-health` → **1913 passed, 8 failed**. The 8 `FAILED` lines are **byte-identical** to the list this clone produces with the branch's changes **stashed** (`diff` clean, 8 vs 8) — compared this round rather than recalled. Zero new failures.

*(Round-6 tally as of `77bc7ef9`: six rounds, ten findings. Superseded by the round-7 tally below, stated as of the landing head.)*

**Five of the six rounds found a defect introduced by the round before it**, and the sixth found one that predated the branch entirely. The pattern is worth stating once, since it is this branch's whole lesson: **changing a reader's failure shape is not finished until its callers are walked — and "the caller" includes the caller's caller.** Round 2 walked the two production readers, round 4 the two readiness probes, round 6 the surface above both.

### Round 7 — the group id was a lookup of a number the code already had

One **previously-missed** finding at `77bc7ef9`, `preflight.py:84`, **taken as a fix** at `91ffa6e6` — in code this branch had already touched once, which is the second time a previously-missed item has caught something a zero-thread count would not have.

`_run_entrypoint` spawns with `start_new_session=True` on exactly this path, so the child calls `setsid()` and **IS** the session and process-group leader: **the group id equals the child pid by construction.** `os.getpgid(proc.pid)` was therefore asking the kernel for a number the function already had — **and asking can FAIL where the answer stays valid.** If the leader has exited and been reaped while a descendant still holds the group and the inherited stdout/stderr pipe — which is *what made `communicate()` block into the bound in the first place* — the lookup raises `ProcessLookupError`, cleanup falls through to `_kill_direct`, and `proc.kill()` on an already-gone leader is a **no-op**. **The descendant then survives while the timeout finding is recorded**: precisely the accumulation `_terminate_group` exists to prevent, arriving by the one route the lookup opened. Signalling the group directly cannot meet that failure, because **a process group outlives its leader as long as any member remains**.

**PID reuse is not a risk, and the ordering is what makes that true rather than luck:** `_terminate_group` runs **before** the reaping `communicate()` in every caller, so the direct child is at worst a **zombie still holding its pid**, and an unreaped pid cannot be recycled. That is stated in the docstring, because a future kill-after-reap would *not* be safe and the next reader should not have to rediscover why.

**`_kill_direct`'s own docstring is corrected in the same commit** — it explained the fallback in terms of *"`os.getpgid()` raises `ProcessLookupError`"*, a call that no longer exists. A comment describing a line that is gone is a comment that will mislead.

**Proved both ways.** The test **builds the shape rather than approximating it**: the wrapper backgrounds a long sleep and **exits** rather than waiting, so the leader is gone within milliseconds while the descendant keeps the pipes open. `os.getpgid` is stubbed to raise the `ProcessLookupError` the premise names, since the reap it depends on is a race that cannot be scheduled. Against the pre-fix lookup:

```
E  AssertionError: the descendant (4045338) outlived the timeout: the leader had
   already exited, so a pgid LOOKUP failed and the direct kill hit a process that
   was gone — while the work this bound exists to stop kept running under a group
   nobody signalled
```

**Two assertions, because the behaviour and the design are different claims:** the descendant is dead (the outcome), and the lookup was never consulted (the reason it stays dead in *every* ordering, not only this one).

### Measurement at the landing head `91ffa6e6`

`pytest tests/doc-health/test_preflight.py` → **7 passed**. `pytest tests/doc-health` → **1913 passed, 8 failed**, and the 8 `FAILED` lines are **byte-identical** to the list this clone produces with the branch's changes stashed (`diff` clean, 8 vs 8) — compared again this round rather than carried forward. **Zero new failures.**

**Running tally, as of the landing head `91ffa6e6`: seven rounds, ELEVEN findings, all FIXED, all threads resolved.** The review at `91ffa6e6` reports **Findings: None** with **no Previously-missed block** and **no Suppressed block**, and all 12 checks pass.

**Six of the seven rounds found a defect introduced by the round before it**, and the seventh found one that predated the branch. Stated once, because it is this branch's whole lesson: **changing a reader's failure shape is not finished until its callers are walked — and "the caller" includes the caller's caller.** Round 2 walked the two production readers, round 4 the two readiness probes, round 6 the surface above both, and round 7 the one place that asked the kernel for something it already knew.

## Summary by Sourcery

Bound doc-health subprocesses and preserve honest inconclusive outcomes when git or validator operations cannot be completed.

New Features:
- Add timeout protection and failure handling for the remaining unbounded git and document-validation subprocesses in doc-health checks.

Bug Fixes:
- Prevent hung or unavailable subprocesses from blocking doc-health runs or producing misleading reachability, retention, reproduction, and readiness results.
- Preserve inconclusive or skipped outcomes when repository data cannot be consulted instead of reporting false passes, orphaned pins, or historical pins.
- Ensure timed-out validator process groups and descendants are terminated without masking the original timeout failure.

Enhancements:
- Propagate explicit unavailable states and diagnostic details through pin reachability and readiness checks while preserving existing caller contracts where appropriate.
- Treat authoritative main-ref and ancestry reads as unanswered when unavailable, and require explicit three-state handling in production and regression checks.

Tests:
- Add regression coverage for git and validator timeouts, spawn failures, unavailable repository reads, three-state reachability, readiness mapping, and descendant process cleanup.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
brettheap added a commit that referenced this pull request Sep 22, 2026
…oint (#1141)

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

> **RATIFIED — 2026-09-22T15:45:54Z by Brett Heap** (openxFactory operator authority), interactive in the lane session, verbatim **"ratify #1140 and #1141"**, recorded at [`#656` comment `5779511063`](#656 (comment)). Record: `review/ratification-2026-09-22.md`. **Ratification authorizes realization and does not perform it** — nothing is promoted until the archive.
>
> **The word named head `c36ff08c`, and no commit moved this packet between the word and the record.** The ratification front-matter, the record and the README status line are the first changes after it, and none of them is requirement text. *(The sibling **#1140** is NOT in that position and says so in its own record — its head moved one second before the word, normatively, and re-ratification is registered there as owed. The two packets are separate acts and this one inherits nothing from that.)*
>
> ### 🔒 HELD — this PR must land SECOND
>
> **#1140 lands first** (it encodes the earlier and more specific ruling, `5777949892`). The two deltas do **not** collide on content — #1140 is `## MODIFIED` on *An external neutral product is pinned by commit and digest, never by tag*, this one is `## ADDED` of *A claim of corpus-wide OpenSpec validation names the adjudicated entrypoint, never the raw tool*; different requirements, different operations, separate change directories. They **do** collide on two SHARED files both PRs touch: the README **OpenSpec Records** block and `tests/sequenced_after/corpus-ledger.yaml`. So after #1140 lands this branch takes `git merge origin/main` (never a rebase), re-seeds its ledger row, re-validates and re-gates before its window is opened.
**ONE `## ADDED` requirement, SEVEN scenarios. No existing requirement is modified, no code moves, and the disposition mechanism is NOT touched — it works, and the requirement leans on it.** **`Status: ratified`** — see the block above; the word that settled the BOX and the word that ratified the PACKET are two separate acts, both Brett Heap's.

## The measurement this encodes — reproduced at this PR's own head

**Two commands over one tree return opposite verdicts.**

| command | version that answered | verdict | exit |
| --- | --- | --- | ---: |
| `python3 scripts/validate-openspec-cli-pin.py --all` — the pin's `consumer_entrypoint:` | `@fission-ai/[email protected]`, **verified against its recorded content address** | `Totals: 110 passed, 1 failed (111 items)`, the 1 finding **DISPOSITIONED** and printed by name with its citation and granting authority | **0** |
| `OPENSPEC_TELEMETRY=0 openspec validate --all --strict` — the raw tool | **1.13.1** on `PATH` — **not the pinned version at all** | `Totals: 110 passed, 1 failed (111 items)` | **1** |

*(Counts **re-taken at the merged head `925d146b`**, not carried forward: `109` items became `111` because `origin/main` gained changes between the filing and the merge. **The verdicts did not move, which is the claim** — same tree, same single finding, exit 0 against exit 1.)*

**Same tree. Same finding. Opposite exit.** The finding is `add-chain-attestation` / `signed-execution-chain/spec.md`, carrying `ratified_by: 'Brett Heap, 2026-09-05, "take exit 2"'` in `contracts/openspec-cli-pin.yaml`, whose `retires_when:` is recorded there as expected to be **long-lived**.

**Why they differ, and why it is not a matter of strictness.** The pinned CLI is a foreign judgment about a local corpus. This corpus has a PROMOTED scenario-rename grammar — the reserved ``**Merged into `<title>` by `<change>` (<date>):**`` marker, canon at `openspec/specs/doc-health/spec.md`:1770 — and 1.12.0 **cannot read it**. The readiness evidence says so plainly (`prepare-openspec-1-12-readiness/evidence/openspec-1.12-readiness-2026-09-05.md` § *The two refusals*): *"1.12.0's scenario-currency check is marker-blind. It compares scenario title sets and cannot read the declaration this corpus requires."* `reconcile()` applies the dispositions and computes `verdict = 1 if undispositioned else 0`. **The raw tool has no access to the pin and cannot reach that verdict.** Its red is not a stricter reading of the same question; it is a different reader answering a question the repository did not ask it.

## The rulings

- [`5778300335`](#656 (comment)) — the read-only measurement, accepted.
- [`5778397686`](#656 (comment)) — **RULED 2026-09-22T14:33:02Z by Brett Heap, by multi-choice: *§ 8.9 clause (2) READS LITERALLY; the tick becomes `[~]`***.

**That ruling disposed of ONE box. The defect is a CLASS.** `split-opendox-two-layer-product` § 8.9 clause (2) named the raw command, so read literally it could never be ticked while the ratified disposition stood — while the adjudicated gate was green on every pull request throughout (`openspec-cli-pin-gate` SUCCESS at `df7b0ca7`, `c273cb39`, `8fa12dbc`). The box took the reserved `[~]` marker; **the same box written tomorrow would cost the same again.** Nothing in the corpus yet forbids it. This packet writes that rule down.

## What the requirement says

A gate step, task box, checklist item, **runbook step, review record, agent instruction or other** evidence record asserting **corpus-wide** OpenSpec validation SHALL name the repository's `consumer_entrypoint:` invocation **in its DEFAULT, PINNED-ARTIFACT form**, and SHALL NOT name the raw command — nor any mode of that entrypoint which resolves the tool from `PATH` or reads a foreign pin. **The flags are part of the name.** Five boundaries, all in the normative text:

1. **The obligation is on the ASSERTION, not only on the run.** A repository whose CI calls the entrypoint correctly while its task boxes name the raw command has a correct gate and an **undischargeable record** of it. § 8.9's defect needed nobody to run anything.
2. **A narrowed claim is not reached.** A record naming the validation of ONE change says something about that change; only a whole-corpus claim asserts the adjudicated verdict. A narrowed run **still applies** the dispositions it matches — canon says so at `openspec/specs/neutral-product-pin/spec.md`:602-604 — and what it cannot do is decide **staleness**.
3. **Ratified and archived text is not edited by this requirement.** The remedy for an existing box is the one its own packet provides — the reserved `[~]` marker naming the live disposition — and this requirement governs what is written **next**.
4. **The staleness property is why naming the entrypoint is safe**, carried as a scenario that **defers by name** rather than re-legislating: a finding no in-scope disposition covers FAILS the run, and a disposition matched by no finding in a whole-corpus scan REFUSES it as `pin-disposition-stale`. The adjudicated verdict is strictly **more informative** than the raw one, and more permissive in **exactly one respect and no other** — the findings this corpus has itself named, cited and ratified against, which is the purpose of the mechanism and not a leak in it.

## Which capability owns this — decided by reading

**`neutral-product-pin`, as `## ADDED`.** Every noun in the rule — the pinned CLI, the `consumer_entrypoint:`, the `dispositions:`, the adjudicated verdict — is this capability's own, and its `## Purpose` already claims the neighbouring ground: *"The capability makes which reader ran an auditable digest."* This extends that from **which reader ran** to **which verdict is the repository's**.

- **Not `doc-health`** — it owns the `Merged into` marker whose unreadability *causes* the finding, but neither the pin, nor the entrypoint, nor the dispositions. The remedy would sit in a different capability from the mechanism it depends on.
- **Not a new capability** — it would split *run through the entrypoint* from *name the entrypoint*. That is the same defect Brett Heap refused **on this very day** in the sibling ruling `5777949892`: *"It leaves ONE rule in the corpus rather than a rule and an exception."*
- **And it is not already written.** The nearest requirement, *A consuming repository runs OpenSpec validation only through the pinned entrypoint, so a PATH binary cannot affect the gate*, governs **which binary answers**, for PATH-determinism. A reader can satisfy it completely while believing the two commands return the same verdict by different routes. **They do not** — exit 0 against exit 1 on one tree — and that difference, not the binary's provenance, is what this requirement is about. `design.md` D1 writes the contrary reading out and tests it.

## The upstream fix — REGISTERED, never proposed

The marker-blindness class would be retired by an upstream CLI that reads the declared rename. **The CLI is CONSUMED, never vendored or patched** (`package: "@fission-ai/openspec"`, `source_repository: Fission-AI/OpenSpec`); the pin stands at **`1.12.0`** (`contracts/openspec-cli-pin.yaml`:318) and **`1.13.1` is published upstream**. This packet does **not** propose the bump: moving the pin is a ratified **human-only** act that must carry target-version evidence and **re-derive every disposition** in the same change, and whether `1.13.1` reads the marker is unmeasured here. **And retiring that class would not retire this requirement** — a second disposition class (*canon moved under an un-re-derived delta*) is live in the pin file today, and any future disposition re-creates the divergence.

## Measurements and scope

- **`code_surface: none`, MEASURED** — the one enforced corpus-wide gate already names the entrypoint: `.github/workflows/openspec-cli-pin-gate.yml`:101 is `python3 scripts/validate-openspec-cli-pin.py --all --no-cache`, the workflow's sole step. `scripts/validate-openspec-cli-pin.py`, its `reconcile()`, and `contracts/openspec-cli-pin.yaml` are **not edited**.
- **No checker is proposed, and that is a declared decision** (`design.md` D4, residue at `tasks.md` § 5.1): a mechanical reader would first have to tell an ASSERTION of a green corpus from a CITATION of this defect — this packet's own files contain the raw command as quoted text, and so would every future record about it. A checker that could not tell those apart would red the packet that defines it.
- **Existing occurrences are not swept** (`tasks.md` § 5.2). Archived records are frozen and ratified text is amended only by its own instrument.

## Note for the lander — the predicted conflict happened, and is resolved

This PR and **#1140** (the sibling encoding of `5777949892`) both touched the README **OpenSpec Records** block and `tests/sequenced_after/corpus-ledger.yaml`. **#1140 landed first** as `e90997bc` (squash, 2026-09-22T18:15:38Z), and this branch then took `git merge origin/main` — **a merge, never a rebase, because the branch is pushed.**

**One conflict, `README.md`, and it was an ADD/ADD** at the same insertion point in the Records *Active changes* list: #1140's entry against this packet's. **BOTH ARE KEPT**, #1140's first because it is already main's content — which makes this branch's diff against main a pure addition of the second entry. **Neither line was dropped, shortened or reworded.**

`tests/sequenced_after/corpus-ledger.yaml` **auto-merged cleanly and carries BOTH rows** — `amend-neutral-product-pin-source-tree-digest` `moved_by: "#1140"` and `require-adjudicated-validation-entrypoint` `moved_by: "#1141"`. Verified by **reading the merged file**, not inferred from the absence of a conflict marker. No re-seed was owed: the seeder had already written this packet's row, and the merge did not disturb it.

Submodules were restored with `git submodule update --init` rather than staged, so `openDox` and `openXdox` stand at the gitlinks main pins.

**Re-validated after the merge, at `925d146b`:** `openspec validate require-adjudicated-validation-entrypoint --strict` → **exit 0**, *"Change … is valid"*; the adjudicated entrypoint → **exit 0**; the raw tool → **exit 1**. The single red is the inherited `add-chain-attestation` disposition, which is this packet's own worked example and not a defect introduced here.

## Copilot round 1 — three fixes plus the task-marker mechanism, at `c36ff08c`

Every finding was measured against the ratified text before it was taken.

| finding | disposition |
| --- | --- |
| `r4073184083` the narrowed-run sentence contradicted canon | **FIXED — the most important catch on this packet.** The delta said only a whole-corpus run could be reconciled against dispositions *"at all"*; `openspec/specs/neutral-product-pin/spec.md`:602-604 says a narrowed run **SHALL still APPLY** the ones it matches and only may not decide staleness. Scoped to staleness. **A packet whose whole subject is deferring to the disposition mechanism could not afford to misstate it.** |
| `r4073391844` the subject did not carry what the packet claimed | **FIXED** by widening the SUBJECT rather than narrowing the claim — the wider set is what the packet means. The boundary was wider in the prose than in the rule. |
| `r4073391907` "never more permissive" was false on its face | **FIXED.** It contradicted this packet's own central measurement (exit 0 vs exit 1). Now exact: more permissive in exactly one respect — what the corpus has named, cited and ratified against — while an uncovered finding still fails and a stale exception still refuses. |
| `r4073184032` § 5 residue must carry `[~]` | **FIXED, and applied to the sibling `#1140` too.** `proposal-support.py`:4633 refuses an archive on any literal `- [ ]`, so work this packet will never do could only ever be ticked falsely. **§§ 1 and 4 keep `- [ ]` deliberately** — those will be ticked, by the ratifying and archiving acts. |
| `r4073183972` | True when written, **false at the head it was raised against**: the `.openspec.yaml` origin landed at `50ac2fc5`. |

**All threads answered and resolved.** Re-validated after the fixes: pinned entrypoint `1 passed, 0 failed`; `code_surface` / `target_release` / `sequenced_after` green; `doc-health` names this packet in **zero** findings.

## Copilot rounds 2 and 3 — two real holes in the rule, and a count that lagged twice

| finding | disposition |
| --- | --- |
| `r4073721220` **the flags are part of the name** | **FIXED — the sharpest finding on this packet.** The subject required only the script path plus `--all`, so `--path-mode` or an alternate `--pin` satisfied the letter of the rule **while resolving the tool from `PATH` or reading a foreign pin** — precisely the invocation the capability already forbids a required check to use. The subject now requires the DEFAULT, PINNED-ARTIFACT form and excludes both modes by name, with its own paragraph and scenario. |
| `r4073721379`, then `r4073925702` / `r4073925824` | **FIXED TWICE, and the second correction sharpened the rule.** Round 2 scoped the unsatisfiability claim to a disposition still matching a finding — once stale, the verdicts can invert and the box becomes *satisfiable and wrong*, which is worse. Round 3 added the condition that was still missing: **an unrelated ERROR keeps the raw run non-zero and no inversion arises.** That forced the text to say what the requirement is actually about — **WHICH READER a record names, never which exit code happens to result.** |
| `r4073925779`, `r4073925865`, `r4073925957` | **FIXED.** Adding two scenarios updated no count, so the README row, `tasks.md` § 2.1 and the Impact line all said five where the delta has **seven**. Re-derived from `grep -c "^#### Scenario:"` rather than carried forward — the discipline is now written into the task line. |
| `r4073925921` | **FIXED.** A scenario bullet ended *"…the default, pinned-artifact invocation is"* — grammatical as ellipsis, useless as an acceptance condition. It now states what the invocation must be. |
| `r4073721291`, `r4073721340` | **FIXED.** Two proposal summaries lagged the delta — the record-kind enumeration and "never more permissive". |
| `r4073798745`, `r4073798821` | **FIXED, and applied to the sibling #1140 in the same pass.** Two lifecycle claims ratification made false: `design.md` D6 said "It ratifies nothing" four lines below its own `Ratified by:` header, and the tasks preamble said "§ 1 is OPEN" with § 1.1 and § 1.2 ticked. |

**All threads answered and resolved.** Re-validated at the current head: pinned entrypoint `1 passed, 0 failed`; `code_surface` / `target_release` / `sequenced_after` green; `doc-health` names this packet in **zero** findings.

## Copilot round 4

| finding | disposition |
| --- | --- |
| `r4073991484` the Impact line said five scenarios | **True when raised and already false at the head** — corrected at `691a7dfc`, before the review naming it was posted. |
| *(proactive)* the ratification record's tally | **FIXED, same structural fix as the sibling.** The record said "one round, five findings"; four rounds and eighteen findings have happened. It is now **bound to a named head**, with this pull request carrying the running one, and § 4 names the **three** findings that changed the requirement's meaning rather than one — the PATH-mode hole and the stale-disposition inversion taken twice. |

**Running tally, as of `8006bcab`: four rounds, EIGHTEEN findings** — **16 FIXED**, **2 true when written and already false at the head they were raised against**. **All threads resolved.**

## Copilot rounds 5 and 6 — what a merge silently invalidates

`#1140` landed first, this branch took the merge-from-main it required, and **both rounds since are the same lesson twice: anything pinned to a POSITION goes stale under a merge, and nothing warns you.**

**Round 5 — three findings at `925d146b`, one fact.** The merge grew the corpus, so `--all` reads `110 passed / 1 failed (111 items)` where the ratified packet recorded `108 / 1 / 109`. I had updated this description and left the packet behind, so the two disagreed at the same head — with the README entry, the *user-facing status record*, asserting a measurement this head does not produce. **The item count tracks the size of `main`'s corpus; the VERDICTS are the claim and they did not move.** So every current-evidence copy (README Records entry, `proposal.md` table, `tasks.md` § 3.1, `.openspec.yaml` origin `reason:`) now names the head it is from, with `c36ff08c`'s figures beside it — while `review/ratification-2026-09-22.md` is **LABELLED, NOT REWRITTEN**, because a ratification record's job is to freeze what the ratifying word was given.

**Round 6 — five *previously-missed* findings at `44ca473f`, also one class.** The merge moved the canon files and six citations still pointed at the old lines. Measured at this head: `doc-health/spec.md`:**1770** is the `Removed from canon` bullet and the `Merged into` form is at **:1772**; `neutral-product-pin/spec.md`:**602-604** is *Scenario: The target version fails on conditions that predate the bump* and the narrowed-run rule is at **:663-668**. **Both stale pointers landed on REAL BUT WRONG TEXT — the dangerous kind, because neither looks like a broken link.** Six sites corrected, and **the two load-bearing citations now QUOTE the sentence or NAME the form they point at**, so the next drift is visible rather than silent. The ratification record *is* corrected here — a citation is a pointer to unchanged canon, not a record of the evidence behind the word, and the two are treated differently on purpose.

**`README.md`:1958 and `:2025` are stale the same way and are NOT touched** — they belong to `disposition-codexfactory-declared-renames` and `prepare-openspec-1-12-readiness` (`git blame`: `9adcb05d`, `552a3a76`). Another change's record is not this packet's to edit; they are reported instead.

**Running tally, as of the landing head `ba7d427b`: six rounds. All findings FIXED, all threads resolved.** Re-validated at this head: `openspec validate … --strict` → **exit 0**; the adjudicated entrypoint → **exit 0**, `110 passed, 1 failed (111 items)`; `doc-health --family proposal-origin` → **exit 0**, naming this packet in nothing; `code_surface`, `target_release`, `validate-sequenced-after` → **exit 0**. Each corrected pointer was re-read at its new line.


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 23, 2026
…d false: the seam's "every tool" and the mapping declaration's "exactly five axes" (#1143)

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

**The TWO REMAINING ratified-text findings of Copilot review [`5273796676`](#1139 (review)) on #1139** — the archive of `split-opendox-two-layer-product`, merge `e8fde27f` — registered as REAL by the archiving lane at [#1139 comment `5770749761`](#1139 (comment)). That review raised six findings: three were facts about text #1139 itself wrote and were fixed there (`dee01d9c`); three named RATIFIED requirement text promoted verbatim out of the delta Brett Heap ratified 2026-09-05. One of those three, `r4067852551` on `neutral-product-pin`, was ruled at [`#656` `5777949892`](#656 (comment)) and landed as #1140. **These are the other two. With this the set of four closes.**

**NOT RATIFIED BY THIS LANE.** Both amendments are requirement text after a ratify word, so both go to Brett Heap per the 2026-09-01 precedent. `Status: draft`.

**Each was re-measured against the LANDED text before a word was written**, on the standing that a finding wrong on the landed text is answered by measurement, not by an amendment. Both hold.

---

## Finding 1 — `corpus-adapter-seam` `r4067852518`: "every tool", and the tool the estate is required to keep

The promoted requirement carries TWO clauses and the home adapter fails both ways. Measured on `main` `4f92d651`:

| clause, as promoted | `scripts/corpus_adapter_openxfactory/`, measured |
| --- | --- |
| *"SHALL consume every tool that reads its governed corpus as an EXTERNAL NEUTRAL PRODUCT pinned under `neutral-product-pin`"* | in this repository's own tree; named in NO `contracts/*-pin.yaml` (`grep -rn "corpus_adapter" contracts/` → nothing). Neither external nor pinned. |
| *"no neutral product `openxFactory` pins SHALL import `openxFactory`'s own tooling"* | imports `doc_health` at **six** sites across four modules (`adapter.py:58`, `check.py:39-41`, `classify.py:38`, `home.py:59`) and `ideation_dashboard.intent_apply_lane` lazily at **two** (`write_path.py:134`, `:152`). |

**So the escape the first clause appears to offer is closed by the second** — pinning the adapter would relocate the tension, not resolve it, because RULING DQ-1 puts it *beside* `doc_health` on purpose: *"doc-health and OpenSpec stay in openxFactory, and a small adapter package beside them implements the corpus-adapter seam"*. The archived packet's own delta header says DQ-1 makes requirement 4 *"load-bearing rather than precautionary"*; it never went back and scoped requirement 1.

**And the estate has been reading it the amended way all along.** `grep -rIn "corpus-adapter-seam" scripts/ tests/ contracts/ .github/` returns ten lines and every one names requirement 3 or 4 — not one names requirement 1. The home adapter's own docstring (`shape.py:3-7`) names requirement 4 as the rule it is built to satisfy.

**The exception is NAMED and BOUNDED, not a class.** A general "externally consumed" scoping would make the requirement's own third scenario — *"a corpus reader is copied into `openxFactory` rather than pinned … the copy is refused"* — unreachable by construction: the next reader that ought to be pinned is simply authored here instead. So the block adds a scenario refusing a second in-repository reader that claims the exception.

## Finding 2 — `domain-mapping-declaration` `r4067955892`: "exactly five axes", and the sixth the corpus already declares

The estate's ONE realized declaration has already answered the question the promoted text leaves open. `contracts/domain-profiles/openxfactory-engineering.yaml`:

- `AXIS 1`..`AXIS 5` comment banners at :76, :146, :360, :395, :405 over `artifact_kinds:`, `lifecycle:`, `gates:`+`acts:`, `evidence_classes:`, `authorities:`;
- then **`truth_store:` at :415 — top level, sibling to all five, under NO axis banner**, with `external_enforcement_point:` nested at :417, and its own `description:` citing *"`domain-mapping-declaration`'s third requirement itself"*.

`DomainProfile` carries `truth_store` as its own field beside the five (`tests/test_engineering_profile_display_facet.py:300-303`). **The implementation treats it as a sixth axis; the requirement says there are exactly five; nothing in the corpus reconciles them.** The amendment states the count the corpus already keeps, and settles in normative text which of the finding's two readings — *forbidden sixth axis* or *nested data* — is right, and that the axis does not replace `governed-derived-model`'s `truth_store` dial but names the same store, beside the enforcement point that dial does not name (a *previously missed* item in review `5283370966`, answered at this head — `design.md` D2). **Requirement 3 is not edited: this packet adds no obligation, it names one the corpus already carries.**

---

## Carriage: six promoted scenarios carried BYTE-IDENTICALLY, four added

A `## MODIFIED` block REPLACES the requirement it names, so a dropped or retyped scenario is a requirement quietly narrowed at promotion — invisible in review, because the block reads complete. Both blocks were built by **extracting** the promoted scenarios programmatically rather than by retyping them, and `review/verify-carriage.py` re-extracts them on demand from the **IMMUTABLE BASIS** — the promoting deltas archived under `openspec/changes/archive/2026-09-22-split-opendox-two-layer-product/specs/` — and compares, reading the mutable `openspec/specs/` only for the currency check. Its output at this head, pasted from the run rather than retyped:

```
OK corpus-adapter-seam: all 3 promoted scenario blocks carried exactly and in order among the delta's 6 parsed blocks (a block is its heading through its last non-blank line; blank lines between blocks are outside every block and are not compared); canon still states the basis, body and scenarios both — nothing moved under this block
OK domain-mapping-declaration: all 3 promoted scenario blocks carried exactly and in order among the delta's 4 parsed blocks (a block is its heading through its last non-blank line; blank lines between blocks are outside every block and are not compared); canon still states the basis, body and scenarios both — nothing moved under this block
```

It is committed with the packet, so the proof survives every later edit — including edits made in response to this review. **A block is its `#### Scenario:` heading through its last non-blank line**; every byte in that span must match exactly and in the promoted ORDER, while blank lines BETWEEN blocks are outside every block and are deliberately not compared. That definition replaced an `rstrip` that quietly normalized while the script said *byte for byte* (`r4076352166`), and the order check replaced a set-membership test that would have passed a delta carrying every promoted scenario in a different sequence. Three controls prove it: two blocks swapped → FAIL naming the block out of sequence; a blank line inserted **inside** a block → FAIL; the blank runs **between** blocks doubled → OK, by the stated definition. **And the reference is the IMMUTABLE archived basis, not live canon** (`r4076557378`): reading `openspec/specs/` would have made this script FAIL from inside its own archived packet the moment the amendment landed. Canon is still checked, over the WHOLE requirement and against FOUR states — equal to the basis (review time), equal to this block (post-archive, historical), matching neither (**FAIL**), or absent (**FAIL**) — each proved by its own control; and the root is found by marker, so the same script runs from inside the archived packet. `design.md` D4g records how the prose describing all this went stale when the proof moved, and the sweep that followed.

## `code_surface: none` — MEASURED, not assumed

1. Nothing enforces the clause being scoped: every reference to `corpus-adapter-seam` in running code names requirement 3 or 4.
2. Nothing counts axes: no `scripts/` or `tests/` file enumerates the declaration's axes or asserts their number.
3. The realized profile already carries six, so an artifact conformant before this lands is conformant after it.

Both amendments are doctrine-only: they make the normative text agree with artifacts and readers that have behaved this way since they were written.

## Gate

- `OPENSPEC_TELEMETRY=0 openspec validate amend-home-adapter-scope-and-mapping-axis-count --strict` → **valid** — a narrowed claim, about this change alone.
- `validate-code-surface.py` / `validate-target-release.py` / `validate-sequenced-after.py` → **exit 0** each.
- **Corpus-wide, through the adjudicated entrypoint the gate itself runs** — `python3 scripts/validate-openspec-cli-pin.py --all --no-cache` (`.github/workflows/openspec-cli-pin-gate.yml`:101) → **exit 0**: `@fission-ai/[email protected]` verified against its content address, `110 passed, 1 failed (111 items)`, **0 undispositioned**. The one failure is `add-chain-attestation` / `signed-execution-chain/spec.md`, INHERITED from `main` and not this packet's, applied as the disposition `contracts/openspec-cli-pin.yaml` carries for it (Brett Heap, 2026-09-05, *"take exit 2"*). The raw `openspec validate --all --strict` reports that same finding as a blocking error because it cannot read the disposition — which is why, under the now-ratified `require-adjudicated-validation-entrypoint` (landed on `main` as `2e222d98`), a corpus-wide claim names the entrypoint and not the raw tool.

## Not done, and said so rather than folded in

- The archive is not edited. `openspec/changes/archive/2026-09-22-split-opendox-two-layer-product/` holds what Brett Heap ratified on 2026-09-05 and stays that way.
- Two stale strings met while measuring are **registered at `tasks.md` § 5, not fixed**: the realized profile's `basis:` entry cites the delta at its pre-archive path and calls it *"the five axes"* (a contract edit would give a doctrine-only packet a code surface for a citation this amendment did not make stale), and `README.md`:3270 is the ARCHIVE RECORD's narrative of what that packet promoted, accurate as a record.

## Sequencing with the lane's other open packet

This and its sibling, #1145, both add a row to the README "OpenSpec Records" block and to `tests/sequenced_after/corpus-ledger.yaml`. **Measured with `git merge-tree`, they no longer collide, in either order.** With both rows at the head of the list, #1145 conflicted in `README.md` once #1143 had landed. #1145's row now sits after the lane's other 2026-09-22 row, and both orders merge cleanly to the SAME tree; the ledger auto-merged throughout. On that fully merged tree, all of these pass: the three front-matter validators, both packets' strict validation, #1143's carriage proof, and the adjudicated entrypoint (`112 passed, 1 failed (113 items)`, the one failure the dispositioned `add-chain-attestation`). `main`'s required-check rules are not strict (`strict_required_status_checks_policy: false`), so neither needs a merge from `main` after the other lands. **This one should still land first**, because it is `code_surface: none` and archives on landing, while the sibling waits on realization evidence. That is now a preference, not a constraint.

## Review record — 19 Copilot reviews at 14 heads; 25 findings (21 as threads, 4 only in *Previously missed* blocks); 0 unresolved threads

**23 taken as fixes, 1 answered by measurement, 1 registered and not taken** — plus one summary-line mention with no finding behind it (*"invalid backtick fencing in the domain-mapping marker"*), answered by measurement in a PR comment. Answered: `r4075847966` (the ledger row — true when written, already false at the head it was raised against). Registered: `r4076010322` (the capability's `## Purpose` — right, but no delta can reach it, so the replacement sentence is written at `tasks.md` § 5.0 for the archiving actor). Every thread carries a reply and is resolved. The three deepest were all against **my own** work rather than against the amendment:

1. **`r4075847914` — the carriage proof could not tell carriage from quotation.** `carried in delta` searched the whole file, so promoted bytes surviving in prose or in a marker read as carriage while the real blocks were replaced — and this packet's mapping delta carries a promoted body unit verbatim inside its `Removed from canon by` marker, which is exactly that. **Proved both ways:** with the pristine region quoted into the header prose and one real bullet altered by a word's case, the pre-fix reader answers `True` *while the requirement is narrowed*; the post-fix reader FAILs naming the block. `r4075847837` was its twin — `read_text()` normalizes newlines, so the "byte for byte" claim was made over bytes already normalized.
2. **`r4076010204` — the exception was still false one clause over.** The first fix relaxed the external/pinned sentence; the next sentence still read *"never on the corpus's own check families"* and the home adapter imports `doc_health` at six sites. The exception now reaches that sentence on the same terms — the one-way rule governs the dependency **across the seam**, and a reader inside the repository whose corpus it reads is not across the seam from it — while what the rule protects stays owed and is measured today by `test_no_privileged_route.py`:155, whose failure message names *requirement 1* outright.
3. **`r4076105337` and `r4076204332` — two counts left behind by two head-moving fixes.** Neither statement was wrong on its face; each was caught by a reader comparing **two statements of one number**. Both repaired, every count claim in the packet swept, and the verifier transcript is now regenerated from the script rather than retyped.


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap pushed a commit that referenced this pull request Sep 24, 2026
…sentence becomes history, and 1.8 names both sanctioned citations

Two Low findings on 3f21c94, both taken. Neither touches requirement or
scenario text, and .openspec.yaml's origin block is unchanged, so origin
retention still reads the ratifying commit 3f21c94.

- r4094670415: proposal.md's target_release gloss still said "Until then it is
  Status: draft and approves nothing". It now says the packet was draft before
  its ratification and was RATIFIED on 2026-09-24 (#656 comment 5815412869).
- r4094670493: tasks.md 1.8's heading said Ratified by: on all three documents,
  but this record carries Ratified: on proposal.md. The heading now names one
  sanctioned citation per document and the split. A marked parenthesis keeps
  the as-filed wording and says why the two differ: document-lifecycle
  sanctions both spellings, and the lane's #1140 and #1141 carried this split.

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

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 24, 2026
#656 5815412869) (#1151)

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

**THE RATIFICATION RECORD for `add-neutral-product-standalone-operability`** (landed as a draft by #1144 → `94b6f7f1`). No requirement or scenario text moves. It lands through the holder's lander in a Rule 6 window; this actor merges nothing.

## The word

RULED by Brett Heap, 2026-09-24T13:51:09Z, interactive in the lane session, verbatim *"ratify #1144, land the follow-ons, (a) on C1–C5"*, recorded at #656 comment [`5815412869`](#656 (comment)).

**Only item 1 of that ruling is this PR's subject.** The ruling's other items are other acts:
- item 2, the archive follow-ons;
- item 3, the banked helper items C1–C5;
- item 4, C6, which stays open.

## What is ratified, and what the word authorizes

- **Ratified:** the packet's text at PR #1144's final head `19237b91`. That head landed as squash commit `94b6f7f1` with an identical tree, and the packet did not move between that landing and the word. The next commit on main, #1149 → `dd2466ad`, touched no byte of it.
- **Seventeen requirements and seventy-five scenarios.** The word strikes nothing, so requirement 3 stands. That answers the one question the packet reserved for the ratification read: whether RULED ASK-2 forecloses requirement 3 (`design.md` § D5, `tasks.md` 3.0).
- **Authorized:** per the ruling record, the realization of **release 1** (phases 1-3). None of it happens by the word itself. The ruling record names release 1 alone.
- **Nothing archives or promotes.** The change archives only on merged, green realization evidence for BOTH releases (RULED `5800995035`).

## What this PR changes

The spec delta is untouched, and none of the changes below is requirement or scenario text.

**`proposal.md`**
- `Status: ratified`, with a `Ratified:` citation.
- A qualifier above the filing's "FILING IS NOT RATIFYING" paragraph. That paragraph is kept verbatim as the filing's record.
- A `## Ratification record` section.
- A read-at-ratification note on the ASK-2 paragraph.

**`design.md` and `tasks.md`**
- `Status: ratified`, with a `Ratified by:` citation. This is the citation split the lane's #1140 and #1141 carried.
- The same read-at-ratification note in `design.md` § D5 and in its "What is still open" paragraph.
- `tasks.md` 1.8 (this act) and 3.0 (the ratification read) are ticked. Boxes go from 9 / 106 / 9 to **11 `[x]` / 104 `[ ]` / 9 `[~]`**.

**`.openspec.yaml`**
- `approved_by` / `approved_on` are ADDED after `proposed_on`.
- `kind`, `id`, `reason`, `proposed_by` and `proposed_on` do not move.
- The origin-retention walk resolves the ratifying commit to `3f21c945`: *"ORIGIN RETAINED … declaration unchanged since the ratifying commit"*.

**Also changed**
- **New record:** `review/ratification-2026-09-24.md` (`Status: ratified`, one citation).
- **README.md:** the *Active changes* entry's status, now linking the record.

The sequenced-after ledger row does not move.

## Copilot

- **Round 1 at `3f21c945`: two Low findings, both taken in `00602e31`.**
  - `r4094670415`: the `target_release:` gloss still said *"Until then it is `Status: draft` and approves nothing"*. It now says the packet was draft before its ratification.
  - `r4094670493`: 1.8's heading named `Ratified by:` on all three documents. It now names one sanctioned citation per document and the split, and a marked parenthesis keeps the as-filed wording.
- `.openspec.yaml` is untouched since the ratifying commit, so origin retention still reads `3f21c945`.
- **Copilot at `00602e31`: "Approval recommended"**, with Findings: None and 0 of 2 threads unresolved.

## Gate state at `00602e31`

The tree is main `dd2466ad` plus this PR's two commits.

```
openspec validate add-neutral-product-standalone-operability --strict → valid
openspec validate --all --strict             → 110 passed, 1 failed (111 items); main alone: the same
                                               (the 1 = add-chain-attestation's ratified disposition)
validate-openspec-cli-pin.py --all --no-cache → exit 0, 0 UNDISPOSITIONED failures
validate-code-surface.py .                   → passed
validate-target-release.py .                 → passed
validate-sequenced-after.py . / --ledger-diff → pass; ledger consistent (228 rows), this row unmoved
proposal-support.py . verify <change>        → ok; origin retention: ORIGIN RETAINED
doc-health.py --single-repo .                → report byte-identical to main alone; 0 findings name this packet
                                               (negative control: dropping the Ratified: line fires ratified-provenance)
pytest (doc-health citation/subject, sequenced_after, former_id_arrival,
        code_surface, estate_inventory, proposal-support) → 797 passed
```

**CI at `00602e31`: all 14 check runs are green.** `pytest-suite` reports 8440 passed, 6 skipped and 0 failed (junit: selected 8857, failures 0, errors 0). Main is still `dd2466ad`.

**Rule 6:** this PR touches `openspec/changes/` and the README OpenSpec Records block, so it lands in a declared window, and not by this actor.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants