Skip to content

Ratify extend-prose-tagging-target-to-pinned-capabilities on Brett Heap's word - #1019

Merged
brettheap merged 13 commits into
mainfrom
change/ratify-extend-prose-tagging-target-to-pinned-capabilities
Sep 14, 2026
Merged

brettheap merged 13 commits into
mainfrom
change/ratify-extend-prose-tagging-target-to-pinned-capabilities

Conversation

@brettheap

@brettheap brettheap commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-2 (openXfactory-2)

RULING. Brett Heap, openxFactory repository owner, first-hand, in session —
RATIFIED: 1.1, 1.3 and 1.4 AS FILED; 1.2 WITH TIGHTENING (D-2 FAILS CLOSED).
FIVE SELECTIONS, not typed sentences, all by interactive multi-choice, across
two sittings. NO VETO, and ONE AMENDMENT — act 5 itself.

Acts 1-4 — 2026-09-12 at approximately 23:20Z, one question per tasks.md § 1 task:

"Ratify 1.1 as filed (Recommended) / Ratify 1.2 as filed / Ratify 1.3 as filed (Recommended) / Confirm 1.4 as filed (Recommended)"

On 1.4 the option "Confirm, and give the realization word now" was offered and NOT taken, so no realization word exists.

Act 5 — 2026-09-13T01:25:07Z (±3 min), a RE-RULING ON TASK 1.2 ALONE, put to him over Copilot review thread PRRT_kwDOTAvnrs6h1H-H on this pull request (filed against review/ratification-2026-09-12.md:80: ratifying D-2 as filed leaves the capability segment open — pinned:openxwallet/typo resolves until a pin record enumerates capabilities — and "merely recording this as a live constitutional question does not create an exception or amend the constitution"). He selected:

"Tighten to fail-closed after all"

whose description read VERBATIM: "Reopens 1.2: D-2 refuses a pinned target whose record carries no capabilities enumeration; the four markers stay unresolvable until openXwallet's pin publishes one. Reverts your 23:20Z selection; a fix round re-encodes and the record changes." NOT taken: "Record my as-filed ruling as the explicit justification (Recommended)", "Same, PLUS name a Principle VII clarification as an owed successor", "Hold #1019 — I will read the thread myself". Act 5 supersedes act 2 on task 1.2 and on nothing else; 1.1, 1.3 and 1.4 stand exactly as ruled at 23:20Z.

THE ONE CITATION — the consolidated record carrying all five acts, which supersedes and restates the 23:20Z record (comment 5649359053): openxFactory #992, comment https://github.com/opensoft/openxFactory/issues/992#issuecomment-5649935136; copied for the lane's status thread to #745, comment https://github.com/opensoft/openxFactory/issues/745#issuecomment-5649935244.
Recorded in
openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/review/ratification-2026-09-12.md.

WHAT IS RATIFIED. The packet's text at the head acts 1-4 were given over, landed by PR #994 —
dafe8877e4c8f2d3a52cbe94307904b639b7bece (2026-09-12T23:16:13Z) — for D-1, D-1.1, D-3 and D-5; and the FAIL-CLOSED D-2 that act 5 tightened, which this pull request re-encodes on that word:

  • D-1 — the FORM. An xspec:candidate marker's target= may be
    pinned:<pin-id>/<capability>, where <pin-id> is the stem of a
    contracts/<pin-id>-pin.yaml record; the value is EXACTLY TWO
    [a-z0-9]+(-[a-z0-9]+)* components separated by EXACTLY ONE /, and a value
    failing that grammar is refused BEFORE any path is built or any file read.
    D-1.1: xspec:supersedes's spec= is OUT OF SCOPE and CLOSED.
  • D-2 — the RESOLUTION RULE, AS TIGHTENED BY ACT 5: IT FAILS CLOSED. A
    pinned:<pin-id>/<capability> target resolves only where ALL THREE
    prerequisites hold. (a) UNCHANGED FROM THE FILING — the pin id must
    resolve to a pin record this
    repository carries of kind: pinned_contract_manifest (pinned_workflow
    excluded; five of the six pin records qualify today), COMPLETE for its
    RECORD SHAPE against that shape's SHAPE-GUARD-REQUIRED SET — the top-level
    members its in-tree verifier refuses-when-absent in its pure, source-free
    guards, pinned to those guards by a two-leg equivalence test and
    NECESSARY, by design, without being SUFFICIENT for the record's full
    verifier — judged through a CODE-FIXED route (one shared, pure,
    non-executing adapter) that never executes, imports or opens a path
    the record selects (verify_pin: is data it may compare, never a
    resolution prerequisite), and resolved under the in-tree arm's own root
    precedence, whose contracts directory must itself be real and
    non-redirecting before any candidate path is read. (b) THE TIGHTENING —
    that record must ALSO carry a well-formed, non-empty top-level
    capabilities: enumeration, and (c) <capability> must be a MEMBER of
    it. An ABSENT enumeration is an UNRESOLVED PINNED TARGET — a controlled
    finding naming the record path and the remedy, "the publisher adds
    capabilities: through a neutral-product-pin change" — exactly as a
    MALFORMED one already was. There is no dormant arm and nothing self-arms.
    capabilities: stays RESERVED here and is added to no record and no schema.
    PRINCIPLE VII IS SATISFIED BY CONSTRUCTION: the capability segment is
    checked against a closed registry and a deferred or absent enumeration fails
    closed rather than degrading open, so no Complexity-Tracking justification
    and no constitution amendment is owed. design.md KEEPS the constitutional
    objection in full, as the record of the tension, and closes it with a dated
    RULED paragraph naming both acts and thread PRRT_kwDOTAvnrs6h1H-H.
  • D-3 — the STALE-TARGET RULE. When a target capability exits the corpus
    the marker either takes the pinned form or the block is unfenced; never
    silently retargeted, never silently deleted.
  • D-5 — the REALIZATION SPLIT. ONE later pull request, not four.

WHAT IS NOT RATIFIED / NOT AUTHORIZED BY THIS WORD.

  • NO REALIZATION. No byte of scripts/doc_health/families.py moves; no
    module is added under scripts/doc_health/; no byte of
    scripts/validate-pin-registrations.py or of any per-product pin
    verifier moves; no marker is retargeted or deleted;
    docs/document-lifecycle.md and ideation/staging/INDEX.md are not
    touched; no pin record gains a capabilities: member and no schema
    admits one. The four error-band tag-hygiene findings stand at FOUR,
    unchanged.
  • NO CLOSURE OF THE FOUR FINDINGS, EVEN AT REALIZATION. Under the
    fail-closed D-2, no pin record in this tree enumerates capabilities, so when
    the resolver and the four retargeted markers land together the four findings
    CHANGE FORM rather than close — to "unresolved pinned target —
    contracts/openxwallet-pin.yaml carries no capabilities: enumeration;
    remedy: the publisher adds one through a neutral-product-pin change" —
    still FOUR and still error-band. They reach ZERO only on openXwallet's
    publisher's act through neutral-product-pin, which is no part of this
    packet or of its realization.
  • NO ARCHIVE. code_surface is non-empty, so under release-realization
    this packet archives only on merged-plus-green realization evidence.
  • NO TICK OF ITEM (7) of the split-openxwallet-repo archived-ledger
    entry — that owed successor discharges on ARCHIVE. The archived packet is not
    edited at all.
  • NO MERGE by this pull request's author — landing is a separate act under
    this repository's Rule 6 landing-window protocol.

WHAT MOVED, IN ONE COMMIT.

  • proposal.md: Status: draft → Status: ratified; a Ratified: paragraph
    added beneath it, inside the 15-real-line header window; Proposed: kept
    verbatim.
  • design.md: Status: draft → Status: ratified; one Ratified by: line.
  • tasks.md: Status: draft → Status: ratified; one Ratified by: line;
    boxes 1.1, 1.2, 1.3 and 1.4 ticked by this commit and no others, with RULED
    annotations. This commit ticks NO box in § 2, § 3 or § 4: § 2's boxes stand
    exactly as the filing left them (§ 2.1–2.7, all already [x]), and § 3 and
    § 4 stay open.
  • .openspec.yaml: origin.approved_by / origin.approved_on ADDED beside
    the existing drafting-only proposed_by / proposed_on; kind, id,
    reason, proposed_by, proposed_on and related unmoved — approval is a
    pure ADDITION (document-lifecycle, Proposal origin declaration).
  • README.md: the OpenSpec Records "Active changes" bullet's status phrase
    moved Status: draft → Status: ratified, its drafting-shape clause
    replaced, and one ratification sentence appended. The bullet's continuation
    lines were re-flowed by the kit (lossless; single hunk), which is why the
    diff shows the whole bullet.
  • New: review/ratification-2026-09-12.md — Status: ratified, Kind: report,
    EXACTLY ONE citation line.
  • The per-change sweep ledger is NOT moved: a ratification changes no row
    (state stays active; class, declares and prose unchanged), and
    --ledger-diff exits 0 without a re-seed.

TIGHTENING ROUND (act 5), ccc719fd and b18e08b4. No box moved: 1.2 stays
[x] and only its RULED annotation changed; § 3 gains a paragraph, recorded
as prose and not as a task line, naming the publisher's enumeration as the
closure prerequisite — not filed, not claimed, no issue opened — and it CAN
gate no archive, being no box.

  • design.md: D-2's DECISION becomes three prerequisites; the "constitutional
    objection" section and its three-point argument are KEPT as the record of the
    tension and closed with a dated RULED paragraph naming both acts, the option
    text verbatim and thread PRRT_kwDOTAvnrs6h1H-H; a Principle VII sentence is
    added. Every "arm 1 / dormant arm 2 / self-arming / degrades open" sentence is
    levelled. D-4, D-5's test list and D-5's archive gate follow the changed-form
    consequence.
  • specs/document-lifecycle/spec.md and specs/doc-health/spec.md: both
    ## MODIFIED blocks restate canon and move only the deliberate delta — the
    enumeration becomes a prerequisite, absent and malformed are two findings with
    one outcome, and one new scenario apiece.
  • tasks.md: 1.2's RULED annotation; 1.1/1.3/1.4 re-cited to the consolidated
    record; § 3.2, 3.3(a)(c)(d)(g), 3.3(l)'s shape-(b) positive case, 3.5 and 3.7.
  • proposal.md, .openspec.yaml (approved_by carries all five acts;
    approved_on → 2026-09-13), README.md bullet, and
    review/ratification-2026-09-12.md, which keeps EXACTLY ONE citation line —
    now the consolidated comment.

EVIDENCE (re-measured at b18e08b4, 2026-09-13, in the branch's own clone).

  • openspec validate extend-prose-tagging-target-to-pinned-capabilities --strict → valid.
  • openspec validate --all --strict → Totals: 104 passed, 3 failed (107 items); the FAILURE SET
    EQUALS main's, measured the same day in a fresh worktree of origin/main
    (3cf8b0bb, Totals: 102 passed, 3 failed (105 items); the item counts
    differ because main has archived two changes since the merge-base) — that
    set is the same three on both sides:
    disposition-codexfactory-declared-renames,
    disposition-codexfactory-floor-relocation-retitle,
    disposition-codexfactory-regular-pr-council-clearance-archive.
  • scripts/proposal-support.py . verify … → proposal support verification ok.
  • doc-health --single-repo .: New regressions vs previous report: 0, and
    the base (6da66703) and head (b18e08b4) reports are BYTE-IDENTICAL once the
    worktree's own repo slug is normalized (diff → 0 lines). The raw finding
    count is --as-of-date-dependent (scripts/doc_health/runner.py defaults
    --as-of to today UTC; the aging families compute (as_of − commit_date).days
    against fixed thresholds) — measured --as-of 2026-09-13 (the default at
    01:50Z): 87 before, 87 after (31 critical, 9 error, 26 warning, 21 info on
    both sides). proposal-origin, ratified-provenance and status-validity
    each name this packet on 0 lines.
  • scripts/validate-sequenced-after.py . --ledger-diff → exit 0, ledger
    consistent (210 rows) — a ratification and its tightening move no row.
  • pytest tests/doc-health/test_modified_block_currency_self_gate.py tests/proposal-support tests/header_contract_oracle.py tests/sequenced_after → 434 passed, 72 subtests passed in 80.50s. The
    modified-block-currency SELF-GATE is included deliberately: both ## MODIFIED
    blocks moved, and its named-subject carriage ledger is what proves the two
    rows this packet carries are still exactly the two it should.
  • Second independent verification, read-only, own clone, at head b18e08b4:
    every figure above reproduced; currency clean, boxes clean, one citation line
    per document, scope clean. TWO wording defects found, both ruled ACCEPT and
    encoded in 1b4946eb — V1 specs/document-lifecycle/spec.md's resolution
    paragraph opened "A PINNED target resolves when its <pin-id> resolves to a
    NEUTRAL-PRODUCT pin record …", which read alone states pin-record resolution
    as SUFFICIENT (the reading act 5 refused) and promotes verbatim at archive; it
    now opens "A PINNED target resolves ONLY WHERE ALL THREE of the following
    hold. FIRST, …" and names the enumeration and membership prerequisites up
    front, with the requirement title and every canon scenario unchanged. V2
    tasks.md's 1.2 at-filing qualifier sat below two as-filed sentences it
    therefore did not scope; it moves to the head of the ask and reads "everything
    below in this ask", the displaced sentence returning to the ask's own word. No
    rule changed and no box moved; openspec validate … --strict,
    proposal-support verify, the header-contract oracle and the
    modified-block-currency self-gate were re-run green on 1b4946eb.
  • Independent verification: ratify992/verify/report.md (read-only, own
    clone) — heads 045602df and b5e9cab2 both clean in every governed
    document; three PR-body-only findings (V1-V3, encoded and corrected in
    this section).

Fix round 1 (b5e9cab)
Copilot's suppressed comment on proposal.md:28 (no visible PR thread) found
that the packet's Proposed: block still asserted, unqualified, that no
ratification is claimed and that the lifecycle documents carry
Status: draft, contradicting the Status: ratified header now standing
above it. RULING: ACCEPT — the lane's known lesson that a ratification
follow-up must revise the draft prose too, not just flip the header.
Added one at-filing/history qualifier paragraph in proposal.md,
immediately before Proposed:, mirroring
amend-kill-switch-to-declared-test-companion/proposal.md's established
form: it names the block's filing timestamp (2026-09-12 ~01:55Z), quotes and
supersedes its 2 flagged present-tense claims — "no ratification, no
realization and no archive is claimed by this packet"
and "carry
Status: draft"
— and restates that realization and archive remain
separate later acts with no word given.
Swept the rest of the packet (design.md, tasks.md, .openspec.yaml,
both spec deltas, the review record, the README bullet) for the same shape
of claim: 6 further hits (2 in tasks.md, 4 in .openspec.yaml), all
judged already correctly historical and left unedited — tasks.md's own
ratification header already labels its preface as at-filing history and
attributes its § 2 boxes to "what the filing pull request did"; and
.openspec.yaml's proposed_by ("NO APPROVAL PAIR IS DECLARED AND NONE IS
IMPLIED") is left exactly as filed beside the sibling approved_by/
approved_on addition, matching the unedited pattern measured in the cited
precedent's own .openspec.yaml and in two of today's sibling ratifications
(report-stale-grandfather-dispositions, gate-realization-axis-vocabulary).

Fix round 1, follow-up (6da6670)
Copilot's re-review of b5e9cab2 (still suppressed, no visible thread)
found one more wording nit: README.md:576's at-filing sentence "no box is
ticked here" reads as a blanket claim once the same bullet's later
ratification paragraph reports boxes 1.1-1.4 ticked (lines 602-603) —
internally inconsistent read literally. Reworded the clause to name what it
always scoped to: item (7) of the split-openxwallet-repo archived-ledger
entry and the realization/archive boxes, which do stay untouched here.

Fix round 2 (1a81e905)
Copilot review 5189139206
on 1b4946eb, two SUPPRESSED comments, no visible thread — RULED ACCEPT,
same defect class as V1 above: a sentence stating record-shape completeness
as sufficient. Comment 1, anchored at
specs/document-lifecycle/spec.md:351 (the already-conditioned positive
scenario), pointing forward at "the existing verify_pin: positive scenario
(later at lines 414-418)": that scenario's last AND-bullet still read "a
record complete for its record shape still resolves while the disagreement
is reported", reintroducing the shape-only path fail-closed D-2 refuses.
Comment 2, anchored at tasks.md:381 (the already-conditioned shape-(b)
fixture), pointing forward at "§3.3(n)'s later verify_pin: positive and
disagreement cases": those SECOND and THIRD cases said the same of a
record's fixture and of the target's resolution. Both sites now make the
outcome conditional on all three prerequisites — a valid, complete record
for its shape, a well-formed, non-empty capabilities: enumeration, and
<capability> a member of it — while keeping verify_pin: itself NOT a
prerequisite and its disagreement finding standing BESIDE the verdict,
never in place of it; where a prerequisite fails, the target is unresolved
for that reason and the disagreement finding is still reported beside it.
A packet-wide sweep (design.md, both spec deltas, proposal.md, the
README bullet, the ratification record) for the same implication found
only two unrelated hits — design.md and proposal.md each call the five
per-product pin verifiers "not a shape-only API to extract from", a
different sense of "shape" (code reuse, not record completeness) — and one
out-of-packet false positive in an unrelated, already-archived README
paragraph citing a different capability's line range as "still resolving".
No rule changed, no requirement title moved, no box ticked.

Fix round 3 (3d209599)
The lane's Copilot review (03:06Z on 1a81e905) raised three findings, ALL
RULED ACCEPT. Finding 1, thread PRRT_kwDOTAvnrs6h15E_ at
tasks.md:623: the claim that § 3.8's checkbox "does not gate this packet's
archive" is false under scripts/proposal-support.py:3115-3117, which
rejects any tasks.md matching ^- \[ \] with no exception for external
prerequisites — once § 3.1–3.7 close, the still-unticked 3.8 would continue
to fail archive_change. Finding 2, a suppressed comment (no visible PR
thread) on specs/doc-health/spec.md:44-47's new scenario "A pinned target
fails on the pin record's capability enumeration": without the
valid-complete-record precondition, a record of an excluded kind or one
incomplete for its shape could be read as reaching this scenario and the
publisher remedy, when it must be reported by the kind/shape finding
instead. Finding 3, the same defect on
specs/document-lifecycle/spec.md:355-360's sibling scenario "A pin record
named by a pinned target carries no capability enumeration".
What moved: § 3.8's checkbox is now a non-checklist paragraph directly after
§ 3.7 (same content), opening "CLOSURE PREREQUISITE — RECORDED HERE AS
PROSE, NOT AS A TASK, AND NOT FILED.", with the false archive-gate clause
replaced by the true one — it is prose and not a task line PRECISELY so it
cannot gate the archive, since proposal-support.py refuses any unticked
box, and the archive turns on § 3.7's realization evidence and nothing the
publisher does; every "3.8" / "ONE UNTICKED line" mention is levelled to
match, in tasks.md's own header, the README ledger bullet,
review/ratification-2026-09-12.md, and the TIGHTENING ROUND paragraph
above. Both new doc-health/document-lifecycle scenarios' WHEN clauses now
require the pin record resolve, through the code-fixed route, to a valid,
COMPLETE kind: pinned_contract_manifest record for its record shape before
judging the enumeration, and each gained one AND bullet routing kind/shape
defects to their own findings instead. No rule changed, no requirement
title moved, no box ticked.
EVIDENCE (re-measured at 3d209599, 2026-09-13, in the branch's own clone).
openspec validate extend-prose-tagging-target-to-pinned-capabilities --strict → valid. openspec validate --all --strict →
Totals: 105 passed, 2 failed (107 items); the failure set EQUALS
origin/main 9378eca5's and the untouched head 1a81e905's, measured the
same way in fresh worktrees with openspec 1.13.0 — the same two,
add-chain-attestation and add-composed-view-authoring, both
MODIFIED-scenario-omission errors in unrelated packets; an earlier window's
104/3 with the three disposition-codexfactory-* changes reflected a
different CLI build, not this tree. scripts/proposal-support.py . verify extend-prose-tagging-target-to-pinned-capabilities → proposal support verification ok. scripts/validate-sequenced-after.py . --ledger-diff →
exit 0, ledger consistent (210 rows), no row moves. pytest -q tests/doc-health/test_modified_block_currency_self_gate.py tests/proposal-support tests/header_contract_oracle.py tests/sequenced_after
→ 434 passed, 72 subtests passed in 106.47s. The doc-health self-gate ran
through the sanctioned wrapper scripts/doc-health.py --single-repo . --as-of 2026-09-13 (base worktree recreated under a directory whose basename is
apply-live so the Repo-Identity guard passes): 87 findings before and
after
(31 critical, 9 error, 26 warning, 21 info), New regressions vs previous report: 0. Unticked boxes in tasks.md: 11 → 10 (3.8 gone;
3.1–3.7 and § 4 stay open).

Fix round 4 (ab40f935)
Copilot's ready-event pass on 3d209599 (review 5192471559) opened ONE thread,
PRRT_kwDOTAvnrs6h8a62 at .openspec.yaml:145: the archive gate's
origin-retention arm (scripts/proposal-support.py, release-realization
§ "Origin retention at archive") compares the origin declaration against the
FIRST ratified commit, 9c829d48 (acts 1-4), and b18e08b4 rewrote
origin.approved_by / approved_on for act 5 — so the packet would be
REFUSED at archive. Reproduced locally: changed keys approved_by,
approved_on, every other origin key unmoved. RULING: ACCEPT, by the
disposition route and not by history rewrite — the mutation is the ratifier's
own act 5, whose option text said "a fix round re-encodes and the record
changes". This round writes the FIRST entry of
openspec/origin-dispositions.yaml (ratified_at 9c829d4…, mutation_at
b18e08b…, changed_keys: [approved_by, approved_on], disposition: accept,
disposed by Brett Heap on 2026-09-13, the verbatim word, cited_to #992
5649935136 / #745 5649935244 / this thread, plus a fact), and records the
disposition in review/ratification-2026-09-12.md. The gate now prints
ORIGIN DISPOSITION ACCEPTED and returns no error. The two suppressed
precondition comments from the 03:06Z pass were NOT re-raised on 3d209599.
No rule changed, no requirement title moved, no box ticked.
EVIDENCE at ab40f935: proposal-support.py . verify ok; openspec validate … --strict valid; pytest tests/proposal-support → 129 passed, 72 subtests
passed.

Fix round 5 (e68cf02b)
Copilot review 5192522199 on ab40f935 opened two SUPPRESSED comments — no
visible PR thread formed, so there is nothing to reply to. Both RULED ACCEPT by
the lane. First, specs/document-lifecycle/spec.md's scenario "A pinned
capability is absent from the pin record's enumeration" judged the enumeration
without first requiring the pin record resolve, through the code-fixed route,
to a valid, complete kind: pinned_contract_manifest record for its record
shape — the precondition its two sibling scenarios directly above it already
carry (round 3 added it to the other two enumeration scenarios; this third one
was missed). Without it, a pinned_workflow value or a record incomplete for
its shape could be reported by this scenario instead of by the kind/shape
findings. Second, tasks.md task 3.3 called (a)/(c)/(d) "the three states
of the prerequisite" while (g) MALFORMED is a distinct required state of the
same prerequisite. What moved: the scenario's WHEN now carries the precondition
and gained one trailing AND bullet routing kind/shape defects away from it,
exactly like its siblings; the task-list sentence now calls (a)/(c)/(d) "the
three NON-MALFORMED states" and names (g) as the fourth required state, since
absent and malformed are two findings with one outcome and a matrix that treats
(g) as optional leaves a branch untested. Swept the packet for the same "three
states" phrasing; this was the only hit. No rule changed, no requirement title
moved, no box ticked.
EVIDENCE at e68cf02b: openspec validate extend-prose-tagging-target-to-pinned-capabilities --strict → valid. openspec validate --all --strict → Totals: 105 passed, 2 failed (107 items), the same
two failures as origin/main under this CLI (add-chain-attestation,
add-composed-view-authoring). python3 scripts/proposal-support.py . verify extend-prose-tagging-target-to-pinned-capabilities → proposal support verification ok. pytest -q tests/doc-health/test_modified_block_currency_self_gate.py tests/proposal-support tests/header_contract_oracle.py tests/sequenced_after →
434 passed, 72 subtests passed in 127.62s (0:02:07).

Fix round 6 (4d58e80d)
CI pytest-suite at ab40f935 FAILED (run 34786705599: 1 failed, 7152 passed):
tests/doc-health/test_pin_reachability.py::test_every_committed_commit_shaped_value_that_resolves_is_covered
— the round-4 file openspec/origin-dispositions.yaml carries the full commit
names 9c829d48… (ratified_at) and b18e08b4… (mutation_at) and no
declared member of the derivation-pin class covered it. RULING: declare the
file a NON-MEMBER with a reason in scripts/doc_health/pin_class.py
(NON_MEMBERS, beside the pin-loss supersession records, which are the
precedent): both values are CITATIONS of packet history whose subject is an
origin declaration, re-read by the archive gate on every run (rev-parse,
is-ancestor, REFUSE on failure) — not the record's own derivation claim, and
nothing re-derives the file from a revision. The trade is stated in the row.
No rule changed, no requirement title moved, no box ticked.
EVIDENCE at 4d58e80d: pytest -q tests/doc-health/test_pin_reachability.py →
71 passed (was 1 failed, 70 passed at e68cf02).

Fix round 7 (fdfeb38f)
Copilot's pass on 4d58e80d (0 new threads, 3 SUPPRESSED comments — no thread
to reply to) RULED ACCEPT by the lane, the class round 5 ruled the same way:
(1) specs/document-lifecycle/spec.md A pin record's capability enumeration
is malformed
— WHEN gains the valid, complete kind: pinned_contract_manifest
precondition its siblings carry (through the code-fixed route) and the closing
AND routes other-kind / incomplete records to the kind and shape findings, so
the tree-digest scenario's "no marker falls under two scenarios" exclusion holds
for every scenario it names; (2) tasks.md 3.3(g) — the malformed-enumeration
fixture is a record otherwise VALID AND COMPLETE for its shape, as (a)'s is, and
kind/shape defects are judged by (f) and the shape findings before (g); (3)
proposal.md code_surface: — "This pull request carries the PACKET ONLY" was
filing-time text (#994 → dafe8877); it now names the filing PR and lists the
ratification bookkeeping (review/ratification-2026-09-12.md, the first
openspec/origin-dispositions.yaml entry, its pin_class.py NON-MEMBER row) as
bookkeeping, not arm surface. No rule changed, no requirement title moved, no
box ticked; canon-restated scenarios untouched.
EVIDENCE at fdfeb38f (fresh clone, unshallowed): openspec validate extend-prose-tagging-target-to-pinned-capabilities --strict valid; --all --strict Totals: 105 passed, 2 failed (107 items) (the same two unrelated
MODIFIED-scenario omissions as origin/main); proposal-support.py . verify
ok; validate-scope-globs.py passed; pytest over the modified-block-currency
self-gate, tests/proposal-support, tests/sequenced_after and the
header-value readers ``434 passed, 72 subtests passed(the first run, on a shallow clone, failed 4tests/sequenced_after/test_archive_commit_dates.py` cases that read archive HISTORY, not the packet; on the unshallowed clone that file is `40 passed`)`; doc-health `--single-repo . --as-of
2026-09-14` `Findings: 31 critical, 9 error, 28 warning, 21 info. New regressions vs previous report: 0.` — IDENTICAL to the same run on a `4d58e80d` worktree (89 findings before and after; the four findings naming the packet unchanged).

refs #992

🤖 Generated with Claude Code

(The Sourcery summary below was generated before the 2026-09-13 re-ruling and
describes the as-filed state of task 1.2. The RULING section at the top of this
body is current.)

Summary by Sourcery

Ratify the pinned-capability tagging proposal while tightening resolution to fail closed when the pin record lacks or does not contain the requested capability.

Enhancements:

  • Ratify the pinned-capability tagging proposal, including a fail-closed resolution rule that requires a valid pin record, a well-formed capability enumeration, and membership of the requested capability.
  • Record the ratification decision, review evidence, origin disposition, and resulting task and specification state across the OpenSpec change documentation.

Documentation:

  • Update the active-changes documentation and proposal records to reflect ratified status, the tightened D-2 rule, and the separation of ratification from realization and archive.

Chores:

  • Add an origin-disposition record and classify it as non-member for pin reachability checks.

…ap's word

Brett Heap, openxFactory repository owner, gave the ratifying word first-hand,
in session to lane openxfactory-2, on 2026-09-12 at approximately 23:20Z, as
FOUR SELECTIONS by interactive multi-choice — one question per tasks.md § 1
task: "Ratify 1.1 as filed (Recommended) / Ratify 1.2 as filed / Ratify 1.3 as
filed (Recommended) / Confirm 1.4 as filed (Recommended)". The word is over the
packet AS FILED at the head PR #994 landed on main,
dafe887 (2026-09-12T23:16:13Z), and is
recorded on openxFactory #992, comment
#992 (comment)
(recorded a second time, verbatim, for the lane's status thread on #745,
comment #745 (comment)).

This commit applies the ratification and nothing else: Status: ratified on
proposal.md, design.md and tasks.md each with exactly one citation line, the
new review/ratification-2026-09-12.md record, the approved_by/approved_on pair
ADDED beside the untouched drafting pair in .openspec.yaml, boxes 1.1-1.4
ticked with RULED annotations, and the README "Active changes" bullet's status
phrase. NO REALIZATION and NO ARCHIVE: no byte of scripts/doc_health/ or
scripts/validate-pin-registrations.py moves, no marker is retargeted,
docs/document-lifecycle.md and ideation/staging/INDEX.md are untouched, no pin
record gains a capabilities member, no box in § 2, § 3 or § 4 moves, and item
(7) of the split-openxwallet-repo archived-ledger entry stays UNTICKED — it
discharges on archive.

refs #992

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 12, 2026 23:56
@sourcery-ai

sourcery-ai Bot commented Sep 12, 2026

Copy link
Copy Markdown

Reviewer's Guide

This ratification-only change records Brett Heap’s approval of the existing proposal as filed, including D-1, D-2, D-3, and D-5, while deliberately making no realization, marker-retargeting, schema/pin-record, archive, or merge changes.

Flow diagram for proposal ratification without realization

flowchart LR
    Filed[Existing proposal filed] --> Word[Brett Heap selects 1.1 1.2 1.3 and 1.4]
    Word --> Ratified[Packet marked ratified as filed]
    Ratified --> Recorded[Ratification record and approval metadata added]
    Ratified --> Deferred[Realization remains a later pull request]
    Ratified --> Unchanged[Archive merge markers pins schemas and findings unchanged]
Loading

File-Level Changes

Change Details Files
Recorded the proposal’s ratification and provenance across the OpenSpec documents.
  • Changed proposal, design, and task statuses from draft to ratified.
  • Added ratifier details, decision timestamp, cited issue records, and the ratification head commit.
  • Marked tasks 1.1–1.4 complete with annotations while leaving realization and archive tasks untouched.
  • Added the dedicated ratification report with the single governing citation.
openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/proposal.md
openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/design.md
openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/tasks.md
openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/review/ratification-2026-09-12.md
Added approval provenance to the change origin metadata without altering its drafting provenance.
  • Added approved_by and approved_on beside proposed_by and proposed_on.
  • Preserved the existing change identity, reason, related changes, and proposal-origin fields.
openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/.openspec.yaml
Updated the active-changes index to reflect ratified status and explicitly separate ratification from implementation and archival work.
  • Replaced the draft-status description with ratification details and the recorded decision.
  • Clarified that no resolver, marker, documentation, schema, pin-record, or archive changes are included.
  • Reflowed the affected bullet to the repository’s line-width convention.
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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Four documentation consistency issues remain in the final review comments.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This pull request ratifies the OpenSpec proposal while leaving realization and archival for future acts.

Changes:

  • Updates packet statuses and approval provenance.
  • Records the ratification decision and task outcomes.
  • Updates the README and adds a ratification report.
File summaries
File Summary
README.md Updates the active change to ratified; clarify the archived-ledger item reference.
openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/tasks.md Records ratification tasks; distinguish newly ticked tasks from existing § 2 items and extend the disclaimer.
openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/review/ratification-2026-09-12.md Adds the ratification report; clearly state that no § 1 boxes remain open.
openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/proposal.md Marks the proposal ratified and records its scope.
openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/design.md Records the ratified design decisions.
openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/.openspec.yaml Adds approval provenance metadata.
Review details

Suppressed comments (2)

README.md:576

  • This claim conflicts with the same bullet's later statement that the ratifying commit ticks tasks 1.1–1.4 (lines 602–603). The surrounding sentence is about archived-ledger item (7), so name that item explicitly instead of saying that no box is ticked at all.
  ARCHIVE, not on filing — no box is ticked here.** The four `error`-band

openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/tasks.md:14

  • The new disclaimer says only the paragraph immediately below is historical, but § 2.1 and § 2.2 still state that the lifecycle documents are draft and that no approval pair exists, even though this ratification changes both facts. Extend the disclaimer to the § 2 filing checklist (or restate those entries) so the current packet is not described as unapproved.
discharges on ARCHIVE. The paragraph immediately below records the AT-FILING
state and is kept verbatim as history.
  • Files reviewed: 6/6 changed files
  • Comments generated: 2
  • Review effort level: Lite

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

…filing's

Two review threads on the ratifying commit's own prose, both factual:

- `review/ratification-2026-09-12.md` read "Boxes none in `tasks.md` § 1 stay
  OPEN", which is ungrammatical and reads as though boxes were left open. All
  four § 1 boxes are ticked by this ratification, so the sentence now says so:
  "NO box in `tasks.md` § 1 stays open — the word answers all four".
- `tasks.md`'s ratification header said "NO box in § 2, § 3 or § 4 is ticked",
  which is false as written: § 2.1-2.7 have been `[x]` since the filing pull
  request, as the paragraph below it says. It now says what is true of THIS
  commit — it ticks 1.1-1.4 and no others, § 2's boxes stand exactly as the
  filing left them, and § 3 and § 4 stay open.

No decision, no citation, no box state and no other surface moves.

refs #992

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 00:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The remaining documentation feedback is a non-blocking nit.

Review details

Suppressed comments (1)

openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/proposal.md:28

  • The new ratification header says the text below is ratified exactly as landed, but the unchanged Proposed: block at lines 32–43 still says that no ratification is claimed and that the lifecycle documents carry Status: draft. Unlike tasks.md and the established ratification pattern in amend-kill-switch-to-declared-test-companion/proposal.md:79-85, this file never labels that block as historical, leaving contradictory current-state claims in the packet. Add an explicit at-filing/history qualifier before Proposed:.
AS FILED, WITH NO AMENDMENT AND NO VETO. The word carries no condition on
any later act and reopens no decision. REALIZATION AND ARCHIVE ARE NOT
AUTHORIZED BY THIS WORD and remain separate later acts on Brett Heap's word:
no byte of `scripts/doc_health/families.py` moves, no module is added under
`scripts/doc_health/`, no byte of `scripts/validate-pin-registrations.py` or
  • Files reviewed: 6/6 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…tion stands

Copilot (suppressed comment, proposal.md:28) found the unchanged `Proposed:`
block still saying no ratification is claimed and that the lifecycle
documents carry `Status: draft`, contradicting the new ratification header
above it. Add the at-filing/history qualifier paragraph before `Proposed:`,
mirroring the form `amend-kill-switch-to-declared-test-companion/proposal.md`
already established for this exact situation.

refs #992

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 00:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The only finding is a non-blocking README wording nit.

Review details

Suppressed comments (1)

README.md:576

  • After this ratifying commit, tasks.md § 1.1–§ 1.4 are ticked, and the same bullet immediately records those ticks at lines 602–605. The unqualified “no box is ticked here” at this line therefore makes the active-change index internally inconsistent; limit the statement to the archived-ledger item and realization/archive boxes, which remain open.
  ARCHIVE, not on filing — no box is ticked here.** The four `error`-band
  • Files reviewed: 6/6 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…alization/archive

Copilot's new pass on the round-1 commit found a suppressed wording nit on
README.md:576 (no visible PR thread): the packet's at-filing sentence "no
box is ticked here" reads as a blanket claim, but the same bullet's later
ratification paragraph correctly reports boxes 1.1-1.4 ticked by the
ratifying commit, making the unqualified sentence read as inconsistent.
Reworded to scope the claim to what it always meant: item (7) of the
split-openxwallet-repo archived ledger and the realization/archive boxes,
which do stay untouched here.

refs #992

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 01: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.

🟡 Changes recommended

D-2 permits undeclared capabilities, conflicting with the required fail-closed constitutional behavior.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 6/6 changed files
  • Comments generated: 1
  • Review effort level: Lite

…deltas

Brett Heap re-ruled task 1.2 on 2026-09-13T01:25:07Z over Copilot thread
PRRT_kwDOTAvnrs6h1H-H on this pull request, selecting "Tighten to
fail-closed after all" and superseding his 23:20Z "Ratify 1.2 as filed"
on that box alone. D-2 now FAILS CLOSED: a pinned target resolves only
where the pin id resolves to a valid, complete pinned_contract_manifest
record (unchanged), AND that record carries a well-formed capabilities:
enumeration, AND the named capability is a member of it. An absent
enumeration is an unresolved pinned target naming the record and the
publisher's remedy, exactly as a malformed one already was. There is no
longer a dormant arm and nothing self-arms.

design.md: the D-2 decision becomes three prerequisites; the
constitutional objection is KEPT as the record of the tension and closed
with a dated RULED paragraph naming both acts; Principle VII is satisfied
by construction, so no Complexity-Tracking justification and no
constitution amendment is owed. D-4, D-5's test list and D-5's archive
gate follow: realization CHANGES THE FORM of the four target=openxwallet
findings rather than taking them to zero.

Both MODIFIED blocks restate canon and move only the deliberate delta:
document-lifecycle gains the prerequisite wording, the absent-versus-
malformed rule and one new scenario for a record carrying no enumeration;
doc-health gains the enumeration remedy, the changed-form reporting rule
and one new scenario.

capabilities: stays RESERVED and is added to no pin record and no schema.

refs #992

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 01:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

One or more issues must be addressed before approval.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (3)

openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/review/ratification-2026-09-12.md:80

  • The ratification report is the packet's cited decision record, but this D-2 text still says capability resolution is conditional and leaves the constitutional question open. That contradicts the fail-closed D-2 now asserted in design.md and the spec deltas, so the record no longer describes the effective contract. Update it to the consolidated ruling (including its 2026-09-13 date/citation), or revert the tightening.
  capability segment is checked for shape and resolved further ONLY where
  the pin record enumerates capabilities, through the ONE reserved member
  `capabilities:` — reserved by this change and ADDED TO NO RECORD AND NO
  SCHEMA BY IT. This is the packet's one live constitutional question
  (Principle VII) and `design.md` states the tension in full.

openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/specs/doc-health/spec.md:27

  • This adds the fail-closed reporting contract for absent, malformed, and unlisted capabilities, which depends on the unrecorded D-2 re-ruling. The current PR description and ratification artifacts still document D-2 as filed, so this spec would make the published doc-health contract disagree with the approved packet. Synchronize the ruling and all affected artifacts, or revert this tightening.
AND A PINNED TARGET THAT FAILS ON THE RECORD'S CAPABILITY ENUMERATION SHALL BE
REMEDIED WHERE THAT DEFECT LIVES. The finding SHALL name the pin record, SHALL
say which of the three defects it is — the `capabilities:` enumeration is
ABSENT, it is MALFORMED, or it is well formed and does not carry the named
capability — and, where it is ABSENT, SHALL name the PUBLISHER's act as the

openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/specs/document-lifecycle/spec.md:286

  • This normative delta changes an absent capabilities: member from an allowed pin-only resolution to an unresolved target, but the packet's approved decision is still recorded elsewhere as D-2 ratified as filed with no tightening. Until the later ruling is consistently recorded, this is an unauthorized contract change under the PR's stated scope.
exception that takes the run down with it. THE `<capability>` SEGMENT MUST BE WELL FORMED AND MUST APPEAR IN THE PIN
RECORD'S OWN CAPABILITY ENUMERATION, THE ENUMERATION BEING A PREREQUISITE OF
RESOLUTION RATHER THAN A CONDITION ON IT. A pinned target resolves only where
the record carries a well-formed enumeration AND `<capability>` is a member of
it. Where the record carries NO such enumeration the target MUST NOT resolve,
  • Files reviewed: 8/8 changed files
  • Comments generated: 5
  • Review effort level: Lite

Comment thread README.md Resolved
…d and the README

The five acts, their two timestamps and the one citation now read the same
way in every surface of the packet.

tasks.md: 1.2 stays [x] and its RULED annotation becomes RATIFIED WITH
TIGHTENING (fail-closed) — both acts, both timestamps, the re-ruling's
option text verbatim, the three options not taken, and the sentence that
act 5 supersedes the 23:20Z as-filed selection on that box and on no other.
1.1, 1.3 and 1.4 keep their 23:20Z rulings and now cite the consolidated
record. Section 3 follows the rule it realizes: 3.2 gains one finding text
per enumeration defect, 3.3(a) flips from "emits nothing" to refused with
the named finding, (c) and (d) are relabelled present-and-names and
present-and-does-not-name, (g) asserts both texts, shape (b)'s positive case
requires the enumeration, 3.5 states the post-realization form of the four
findings and 3.7 forbids an evidence claim of zero. One unticked line, 3.8,
records the closure prerequisite: the publisher's enumeration through a
neutral-product-pin change. It is not filed, not claimed, opens no issue and
gates no archive. No other box moves.

proposal.md: the header records five acts; What Changes item 2 states the
three prerequisites and the changed form of the four findings; Impact says
they reach zero only on the publisher's act. The at-filing qualifier stays.

.openspec.yaml: approved_by carries all five acts, the verbatim option text,
the effect and the consequence; approved_on moves to 2026-09-13.

review/ratification-2026-09-12.md: the ruling is now "1.1, 1.3, 1.4 as
filed; 1.2 with tightening (fail closed)", act 5's trigger thread is named,
the D-2 bullet is rewritten, Principle VII is recorded as satisfied by
construction, and the record keeps exactly one citation line, now the
consolidated comment.

README bullet: status phrase, D-2 sentence, the four-findings consequence
and the boxes clause.

refs #992

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 01:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

One or more issues must be addressed before approval.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (1)

README.md:541

  • This packet now records a fifth 2026-09-13 selection and an explicit D-2 amendment (fail-closed), but the PR description still opens with “RATIFIED AS FILED, with no amendment, no tightening” and cites only the four 2026-09-12 selections. That contradicts both this changed README entry and the consolidated #992 record (comment 5649935136); please update the PR description and its citation before landing so the review/landing record has one authoritative ruling.
  **`Status: ratified`** — **1.1, 1.3 and 1.4 AS FILED; 1.2 WITH TIGHTENING
  (D-2 FAILS CLOSED)** — by Brett Heap, openxFactory repository owner,
  first-hand, in session, FIVE SELECTIONS across two sittings: FOUR on
  2026-09-12 at approximately 23:20Z (***"Ratify 1.1 as filed (Recommended) /
  Ratify 1.2 as filed / Ratify 1.3 as filed (Recommended) / Confirm 1.4 as
  filed (Recommended)"***), then a FIFTH on 2026-09-13T01:25:07Z RE-RULING
  • Files reviewed: 8/8 changed files
  • Comments generated: 1
  • Review effort level: Lite

….2 ask's at-filing qualifier to the whole ask

Two wording defects found by the second independent verification of b18e08b,
both ruled ACCEPT. Neither changes a rule; both stop a sentence from reading
against the rule it belongs to.

V1, specs/document-lifecycle/spec.md. The MODIFIED block's resolution
paragraph still opened "A PINNED target resolves when its `<pin-id>` resolves
to a NEUTRAL-PRODUCT pin record ...", which read alone states pin-record
resolution as SUFFICIENT — the reading act 5 refused — and this sentence
promotes verbatim at archive. It now opens "A PINNED target resolves ONLY
WHERE ALL THREE of the following hold. FIRST, its `<pin-id>` resolves to a
NEUTRAL-PRODUCT pin record ...", names the enumeration and membership
prerequisites as SECOND and THIRD, says the first is not sufficient alone, and
points at the capability-segment rule that states them in full. The
requirement title is unchanged and every canon scenario stands as it was.

V2, tasks.md. The 1.2 ask's bold at-filing qualifier sat two-thirds of the way
down, so by its own wording ("the rest of this ask") it governed only what
followed it, leaving the two as-filed sentences above it unscoped. The
qualifier moves to the head of the ask, immediately after the bold lead-in,
and reads "everything below in this ask"; the sentence it displaced returns to
the ask's own word, "THIS IS THE PACKET'S ONE LIVE CONSTITUTIONAL QUESTION."
No other word of the ask changes; the only other character is the capital on
"The pin id must", which now begins a sentence.

`.openspec.yaml`'s `proposed_by` is deliberately left as filed. It is the
DRAFTING provenance, frozen at filing beside an `approved_by` that carries all
five acts, and the sibling precedents leave it unqualified — the same
disposition this pull request's fix round 1 already recorded for it.

No box moves.

refs #992

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 21:59
@brettheap
brettheap marked this pull request as ready for review September 13, 2026 22:03

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The approval pair in .openspec.yaml was rewritten after ratification, so archive validation will reject the packet until the provenance is corrected or explicitly accepted.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 8/8 changed files
  • Comments generated: 1
  • Review effort level: Lite

Copilot's ready-event pass on 3d20959 (thread PRRT_kwDOTAvnrs6h8a62,
.openspec.yaml:145) found that the archive gate's origin-retention arm
compares the origin declaration against the FIRST ratified commit
(9c829d4, acts 1-4) and that b18e08b rewrote `approved_by` /
`approved_on` for act 5, so the packet would be refused at archive.
Reproduced with `origin_retention_errors`: changed keys approved_by,
approved_on.

RULED ACCEPT. The mutation is the ratifier's own later word — act 5's
option text said "a fix round re-encodes and the record changes" — so
the sanctioned remedy is the `accept` disposition `release-realization`
§ "Origin retention at archive" names, not a history rewrite. This
commit writes the first entry of openspec/origin-dispositions.yaml
(ratified_at 9c829d4…, mutation_at b18e08b…, changed_keys
[approved_by, approved_on], disposed_by Brett Heap, word verbatim,
cited to #992 5649935136 / #745 5649935244 / this thread) and records
the disposition in review/ratification-2026-09-12.md. The gate now
prints ORIGIN DISPOSITION ACCEPTED and returns no error; verify ok;
strict valid; tests/proposal-support 129 passed, 72 subtests.

No rule changed, no box moved, no requirement title moved.

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 22:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

A moderate scenario-precondition issue and a checklist wording nit remain unresolved.

Review details

Suppressed comments (2)

openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/specs/document-lifecycle/spec.md:364

  • This scenario does not require the pin to resolve to a valid, complete kind: pinned_contract_manifest record. A pinned_workflow or shape-incomplete record that happens to carry a well-formed capabilities: list would therefore also match this WHEN clause and be reported as a missing capability, even though D-2 assigns those records to the kind/shape findings (and the preceding scenario explicitly excludes them). Add the same valid-record precondition here so an enumeration finding cannot mask the primary pin defect.
- **WHEN** a marker names `target=pinned:<pin-id>/<capability>`, the record for `<pin-id>` carries a well-formed non-empty `capabilities:` member, and `<capability>` does not appear in it

openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/tasks.md:309

  • The new enumeration test matrix is described as having only three states, but the same matrix separately requires the malformed-enumeration case (g) and says absent and malformed are distinct findings. Calling (a), (c), and (d) the exhaustive states can mislead the realization checklist into treating malformed input as optional; qualify this as the three non-malformed states and explicitly include (g) as the fourth required state.
  member to any schema — (a), (c) and (d) are the three states of the
  prerequisite (ABSENT, PRESENT-AND-NAMES, PRESENT-AND-DOES-NOT-NAME) and
  without all three a branch can be absent with this list still satisfied; **(e)** an `xspec:supersedes` marker
  • Files reviewed: 9/9 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…and count malformed enumeration as the fourth matrix state

Copilot review 5192522199 on ab40f93 raised two SUPPRESSED comments (no
visible PR thread, so there is nothing to reply to), both RULED ACCEPT by
the lane:

1. specs/document-lifecycle/spec.md's scenario "A pinned capability is
   absent from the pin record's enumeration" judged the enumeration
   without first requiring the pin record resolve, through the
   code-fixed route, to a valid, complete `kind: pinned_contract_manifest`
   record for its record shape — the same precondition its two sibling
   scenarios above it already carry. Without it, a `pinned_workflow` or a
   record incomplete for its shape could be reported here instead of by
   the kind/shape findings. Added the precondition to the WHEN and one
   trailing AND bullet routing kind/shape defects away from this
   scenario, matching the siblings' pattern.

2. tasks.md's task 3.3 called (a)/(c)/(d) "the three states of the
   prerequisite" while (g) MALFORMED is a distinct required state of the
   same prerequisite — reworded to "the three NON-MALFORMED states" and
   named (g) as the fourth required state, since absent and malformed are
   two findings with one outcome and a matrix that treats (g) as optional
   leaves a branch untested. Swept the packet for the same "three states"
   phrasing; this was the only hit.

No rule changed, no requirement title moved, no box ticked.

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 22:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Add the valid/complete pin-record precondition to the malformed-enumeration scenario and align task 3.3(g).

Review details

Suppressed comments (1)

openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/specs/document-lifecycle/spec.md:360

  • The new absent-enumeration scenario explicitly requires a valid, complete pinned_contract_manifest and says incomplete records never reach this class. The sibling malformed-enumeration scenario at lines 379-384 has no equivalent precondition, so a record that is shape-incomplete and also has malformed capabilities: can match both the invalid-pin and enumeration scenarios, contradicting the doc-health delta's same routing rule. Add the valid/complete precondition to the malformed scenario and align task 3.3(g) so enumeration findings are evaluated only after kind/shape validation.
- **WHEN** a live marker names a lexically well-formed `target=pinned:<pin-id>/<capability>`, the record for `<pin-id>` resolves, through the code-fixed route, to a valid, complete `kind: pinned_contract_manifest` record for its record shape, and it carries NO top-level `capabilities:` member
- **THEN** the target MUST NOT resolve, the enumeration being a prerequisite of resolution rather than a condition on it
- **AND** the deterministic health pass MUST report an unresolved pinned target naming that pin record and the root it resolved against
- **AND** the remedy MUST name the PUBLISHER's act — the pinned product's publisher adds `capabilities:` through a `neutral-product-pin` change — rather than `openspec/specs/`, an active change, or an invented list written into this repository's own copy of the pin
- **AND** the pass MUST NOT read the absent member as a licence to take the capability name as declared
  • Files reviewed: 9/9 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…ts reason

CI pytest-suite at ab40f93 (run 34786705599) failed
tests/doc-health/test_pin_reachability.py::
test_every_committed_commit_shaped_value_that_resolves_is_covered:
openspec/origin-dispositions.yaml, new in round 4, carries the full
commit names 9c829d4... (ratified_at) and b18e08b... (mutation_at) and
no declared member of the derivation-pin class covered the file.

RULED: a NON-MEMBER with a reason, not a member. The two values are
citations of packet history whose subject is an origin declaration, and
the archive gate re-reads both on every run (rev-parse, is-ancestor,
REFUSE when either fails); neither is the record's own derivation claim
and nothing re-derives the file from a revision. Same reasoning and same
route as the pin-loss supersession records already declared beside it;
the trade is stated in the row.

tests/doc-health/test_pin_reachability.py: 71 passed (was 1 failed,
70 passed). No rule changed, no box moved.

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 22:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Two moderate specification/task-matrix findings remain unresolved, along with a proposal-header nit.

Review details

Suppressed comments (3)

openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/proposal.md:2

  • The front-matter still says “This pull request carries the PACKET ONLY,” but this ratification PR also changes scripts/doc_health/pin_class.py and adds openspec/origin-dispositions.yaml (the disposition record is described in the ratification report). Because this header is not marked as filing-time history, it misstates the contents of the PR under review; qualify it as referring to the filing PR or list these ratification bookkeeping files.
code_surface: openxFactory — `scripts/doc_health/families.py`, whose `_resolve_capability` (line 1317) and `fam_tag_hygiene` (line 1331) gain a second resolution arm for a pinned target, plus that arm's tests under `tests/doc-health/` (hyphen: the tests directory is `tests/doc-health/`, while the package under test is `scripts/doc_health/`), plus AT MOST THREE FURTHER FILES THE ARM'S OWN RULES REQUIRE and which are named here rather than discovered at realization: (i) ONE module under `scripts/doc_health/` holding the shared, PURE, NON-EXECUTING `pinned_contract_manifest` SHAPE ADAPTER — design D-2's single code-fixed route, which holds the per-shape table and reads the record and nothing else — and this file exists ONLY where the realization gives that adapter a module of its own; where the adapter lives inside `scripts/doc_health/families.py`, already named above, (i) ADDS NO FILE. Under EITHER placement the adapter NEITHER EDITS NOR CALLS any of the five per-product pin verifiers, which are product-specific, shell out, and in one case reach the network, so they are not a shape-only API to extract from; the only place any of them is imported at all is the GUARD LEG of the equivalence test (task 3.3(p)), which lives in that arm's tests under `tests/doc-health/` — already named above, so it adds no file either — and imports them at fixed, authored paths; and (ii) the containment helper of D-2 and task 3.3(m), EITHER as a parameter added to `resolve_in_tree` in `scripts/validate-pin-registrations.py` — that file's own edit, no further file — OR as one shared helper both callers use, which is a NEW file AND requires `scripts/validate-pin-registrations.py` itself to be edited to become the shared helper's second caller. THE BOUND IS EXACTLY THREE AND THE THREE ARE ENUMERATED: (1) the shape-adapter module under `scripts/doc_health/`, (2) the new shared containment helper, (3) `scripts/validate-pin-registrations.py` as that helper's second caller. THREE is reached only where (i) gives the adapter a module of its own AND (ii) takes the shared-helper branch; where the adapter lives in `scripts/doc_health/families.py` and (ii) takes the parameter branch the further-file count is ZERO, and the two intermediate combinations give ONE or TWO. No fourth file is admitted under any combination, and the five pin verifiers are in none of them. NO BYTE OF ANY OF THEM MOVES IN THIS PULL REQUEST. This pull request carries the PACKET ONLY — `proposal.md`, `design.md`, `tasks.md`, `.openspec.yaml`, two `## MODIFIED` spec deltas, one README "Active changes" bullet, the machine-seeded per-change sweep-ledger row in `tests/sequenced_after/corpus-ledger.yaml`, and the two `_LEDGER_SUBJECTS` rows the two `## MODIFIED` deltas above require of `tests/doc-health/test_modified_block_currency_self_gate.py`'s own carriage-ledger self-gate (all three are bookkeeping the self-gates require of ANY filing that touches a promoted block, not test implementation for the pinned-target arm the realization proposes). THE REALIZATION IS A LATER PULL REQUEST in this same repository, authored after ratification, and it is FOUR surfaces and not more: (1) the resolver arm and its tests, together with the at-most-three further files named above that the arm's code-fixed-route and containment rules require; (2) the four affected markers retargeted from `target=openxwallet` to the pinned form; (3) `docs/document-lifecycle.md`'s Prose Tagging Markers section carrying the new form and the stale-target rule; (4) the stale sentence at `ideation/staging/INDEX.md:2262-2265`, which still calls three `openxwallet` blocks "all resolving" and has been false since 2026-08-28. NOT THIS PACKET'S SURFACE, each for a stated reason: no marker regex changes, because the existing `_CAND_OPEN` and `_ATTR` patterns already accept the proposed value unchanged (design D-1, measured); no pin record is edited and no pin schema member is added — D-2 RESERVES the member name `capabilities:` as the spelling of its enumeration PREREQUISITE, so that the prerequisite has a deterministic input contract rather than an intention, but it NAMES it and does not add it: no pin record gains that member here, no schema admits it here, and whether a real pin record may carry it is a `neutral-product-pin` question with the publisher (design D-2); no capability is created, deleted or renamed; no `openspec/specs/` directory moves; no contract byte, pin byte or digest moves; no contract bundle is cut.

openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/specs/document-lifecycle/spec.md:407

  • This new exclusion claims that malformed enumeration cases are handled by their own scenario so no marker can fall under two conflicting scenarios, but that scenario currently lacks the valid, complete kind: pinned_contract_manifest precondition present in its siblings. A pinned_workflow or shape-incomplete record with a malformed member can therefore satisfy both the kind/shape scenario and the malformed-enumeration scenario; tighten that scenario and its task-matrix counterpart so kind/shape defects are routed away before this exclusion is relied on.
- **WHEN** a live marker names a lexically well-formed `target=pinned:<pin-id>/<capability>` and the record for `<pin-id>` declares `kind: pinned_contract_manifest` with a `revision_kind: commit`, a `commit`, a `submodule_path`, a `digest_algorithm`, a `digest_definition` and a `digests` mapping carrying a `tree_sha256` — each of those six members PRESENT AND OF THE FORM ITS SHAPE GUARD REQUIRES rather than merely present — and carries neither `files:` nor `pinned_by_commit_only:`, AND carries a well-formed, NON-EMPTY `capabilities:` member in which `<capability>` appears
- **THEN** the record MUST be judged COMPLETE against that shape and the target MUST resolve on it, one digest over the whole tree leaving no member undeclared
- **AND** the pass MUST NOT report the absent per-file lists as missing members, the enumeration those lists provide being supplied here by the tree digest
- **AND** a record carrying both that tree digest and a `files:` list MUST be reported as an invalid pin naming both shapes tried, no ratified text admitting the mixture
- **AND** a record of this shape carrying any of those six members MALFORMED, and one whose `capabilities:` member is ABSENT, malformed, or well-formed without `<capability>` in it, are OUTSIDE this scenario and are judged by their own scenarios above, so no marker falls under two scenarios prescribing different outcomes for it

openspec/changes/extend-prose-tagging-target-to-pinned-capabilities/tasks.md:324

  • Task 3.3(g) can classify a malformed capabilities: value on a pinned_workflow or shape-incomplete record as the enumeration case, even though D-2 requires kind/shape validation first. This conflicts with the matrix's explicit separation and can make one fixture require both malformed-enumeration and invalid-pin outcomes; constrain (g) to a valid, complete kind: pinned_contract_manifest record before asserting the malformed-enumeration finding, as the other enumeration cases do.
  pin record NAMED BY A LIVE MARKER whose `capabilities:` member is present but
  malformed — a scalar, a mapping, a null value, an EMPTY sequence, or a
  sequence carrying a non-capability-shaped item — emits a
  malformed-enumeration finding AND the pinned target naming it does not
  resolve, the record being read because the marker names it and not by any
  • Files reviewed: 10/10 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…o and 3.3(g) on a valid, complete record; date the PACKET ONLY header to the filing PR

Copilot's pass on 4d58e80 generated no thread and left three suppressed
comments, all RULED ACCEPT by the lane (fix1019-round7.md), the class round 5
ruled the same way:

- specs/document-lifecycle/spec.md, scenario "A pin record's capability
  enumeration is malformed": the WHEN gains the precondition its siblings
  carry — the record resolves, through the code-fixed route, to a valid,
  complete `kind: pinned_contract_manifest` record for its shape — and the
  closing AND routes records of another kind or incomplete for their shape
  to the kind and shape findings, so the tree-digest scenario's "no marker
  falls under two scenarios" exclusion is true of every scenario it names.
- tasks.md 3.3(g): the malformed-enumeration fixture is a record otherwise
  VALID AND COMPLETE for its shape, as (a)'s is; kind and shape defects are
  judged by (f) and the shape findings before (g), so no fixture is asked
  for both the malformed-enumeration and the invalid-pin outcome.
- proposal.md `code_surface:`: "This pull request carries the PACKET ONLY"
  was filing-time text (#994 → dafe887) and is false of the ratification
  PR, which also carries review/ratification-2026-09-12.md, the first entry
  of openspec/origin-dispositions.yaml and that file's NON-MEMBER row in
  scripts/doc_health/pin_class.py. It now names the filing PR and lists the
  ratification bookkeeping as bookkeeping, not arm surface. No member of the
  enumerated code surface moved in either PR.

No rule changed, no requirement title moved, no box ticked; the canon-restated
scenarios are untouched. The doc-health delta's mirror scenario already
carried the precondition and is unchanged.

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 14, 2026 00:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No unresolved blocking issues are identified, and the supplied assessments find it ready.

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

@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap merged commit e6e1c96 into main Sep 14, 2026
14 checks passed
brettheap added a commit that referenced this pull request Sep 14, 2026
…PR): pinned-target resolution arm, tests, four markers, docs, INDEX (#1040)

Lane: openxfactory-2 (openXfactory-2)

**REALIZATION of `extend-prose-tagging-target-to-pinned-capabilities` — design D-5's ONE pull request**, on Brett Heap's word "realize it" (2026-09-14; #992 comment 5662218844; realization CLAIMED on #992, comment 5662204807), after the packet was RATIFIED with the fail-closed tightening of task 1.2 by PR #1019 → `e6e1c968` (RATIFIED record #992 5659201929). Opened as DRAFT; its merge is a separate word. Authored on a fresh clone by the lane's Opus author (three commits, each carrying the packet's own reasoning); reviewed and completed by the lane after the author was stopped twice by the account session limit.

## What this realizes — the four surfaces, in the packet's words

1. **The resolver arm** (`scripts/doc_health/families.py`, § 3.1–3.2). A candidate marker's `target=` may name `pinned:<pin-id>/<capability>`. THE REGEXES DO NOT MOVE (D-1: `_CAND_OPEN` and `_ATTR` already admit `:` and `/`); the LEXICAL GRAMMAR — exactly two `[a-z0-9]+(-[a-z0-9]+)*` components joined by one `/` — is checked BEFORE any pin-record path is built. The arm FAILS CLOSED (D-2 as re-ruled 2026-09-13): a pinned target resolves only where the pin id resolves — under the in-tree arm's own root precedence, document root then `openxFactory` root — to a `kind: pinned_contract_manifest` record COMPLETE FOR ITS RECORD SHAPE, that record carries a well-formed non-empty top-level `capabilities:` enumeration, and `<capability>` is a member of it. Every finding names the root it resolved against or failed to; ABSENT and MALFORMED enumerations are two findings (publisher's act vs. repair the member) with one outcome; the in-tree arm never judges a pinned value; `xspec:supersedes spec=pinned:…` is refused with the scenario's sentence (D-1.1). `verify_pin:` is compared against the verifier the adapter tracks and never followed; a differing value is a finding BESIDE the resolution.
2. **The tests** (`tests/doc-health/`, § 3.3 (a)–(p), every lettered case). `test_tag_hygiene_pinned_targets.py` drives (a)–(o) over a new committed corpus `fixtures/tag-hygiene-pinned/` plus `tmp_path` trees for the cases no repository should carry (a corrupt record per shape; the four containment escapes and their positive; the three `verify_pin:` non-use cases; the two-root aggregate and the single-root negative), asserting (h) and (m) on the READ SURFACE. `test_pin_shape_adapter.py` is (p): the RECORD leg over each real record in `contracts/` (accepted as it stands; refused NAMING each table member removed; still accepted with each of the 38 non-table, non-`kind` members removed) and the GUARD leg importing each verifier at its FIXED, AUTHORED path — 29 member entries, 27 on the guard leg, 2 (`files` under shape (a)) on the citation route, re-READ at the cited line. Neither leg asserts sufficiency. `EXPECTED_ACTIONS` gains the arm's TWELVE action strings (j), and both derivations widen to reach them.
3. **The four markers + the docs** (§ 3.4–3.5). `openxwallet-neutral-home.md` lines 222, 242, 280 and `notebook-access-wallet-governance.md` line 107 now read `target=pinned:openxwallet/openxwallet`; `docs/document-lifecycle.md`'s Prose Tagging Markers section carries the form, its scope (candidate `target=` only) and D-3's stale-target sentence verbatim.
4. **The stale INDEX line** (§ 3.6): `ideation/staging/INDEX.md`'s "all targeting `openxwallet`, all resolving" is made TRUE rather than deleted.

`tasks.md` boxes 3.1–3.6 are ticked and no other byte of that file moves; **3.7 (evidence) is TICKED** (refreshed in round 7, `c111fec0`) citing the final code tree `da54bed4` and its green run 34897473169; § 4 stays open.

## The file bound (`proposal.md:2` `code_surface:`) — all three admitted further files used, none beyond
- (1) the shape-adapter module: **`scripts/doc_health/pin_shapes.py`** — the ONE code-fixed route; pure, non-executing; holds the per-shape table with each entry's measured script:line citation; imports no verifier.
- (2) the shared containment helper: **`scripts/pin_containment.py`** — neutral, top of `scripts/` beside `output_boundary.py`/`path_slug.py`, standard library only; receives the RESOLVING ROOT AS A PARAMETER; `boundary_dir` checks `<root>/contracts` is a real, non-symlink, non-redirecting directory BEFORE any candidate.
- (3) **`scripts/validate-pin-registrations.py`** as the helper's second caller — `resolve_in_tree` keeps its name, signature and refusal TEXT and delegates.
- No pin record, schema, verifier, `contracts/` byte, `openspec/specs/` file, spec delta, `.openspec.yaml` or README byte moves (`git diff --stat origin/main -- <those>` is empty).

## THE HONEST OUTCOME: the four findings CHANGE FORM and stay FOUR
Under fail-closed D-2, retargeting does NOT clear the four `error`-band `tag-hygiene` findings, because `contracts/openxwallet-pin.yaml` carries no `capabilities:` enumeration. They change from `unresolved target=openxwallet — name a capability under openspec/specs/ or an active change` to `unresolved pinned target=pinned:openxwallet/openxwallet at line N: contracts/openxwallet-pin.yaml in root <root> carries no capabilities: enumeration — the publisher adds capabilities: to the pin record through a neutral-product-pin change`. Still four, still `error`, and for the first time naming the act that clears them — the PUBLISHER's, no part of this packet.

## Evidence at `16ce87d9` (fresh full clone)
- doc-health `scripts/doc-health.py --single-repo . --as-of 2026-09-14`: `Findings: 31 critical, 6 error, 28 warning, 24 info. New regressions vs previous report: 0.` Finding-by-finding diff against a worktree at the base `dd073746` (same clone): the ONLY content difference is the four `tag-hygiene` findings changing form — the four `unresolved target=openxwallet at line 107/222/242/280` findings are GONE and four `unresolved pinned target=pinned:openxwallet/openxwallet at line 107/222/242/280: contracts/openxwallet-pin.yaml in root <root> carries no capabilities: enumeration` findings appear at the same four paths and lines; totals 31/10/28/24 → 31/6/28/24 because four `release-inventory-drift` errors that appear in ANY git-worktree checkout regardless of commit (measured: this same head shows 1 such error in the branch checkout and 5 in a `git worktree` of it) are counted in the worktree base and not in the branch checkout — a quirk of how that family reads a worktree, unrelated to this change and noted for the lane, not fixed here
- pytest (targeted, the suites the change touches): `pytest -q tests/doc-health tests/pin_registrations tests/openxwallet_pin tests/openreposhape_pin tests/opendox_pin tests/openxdox_pin tests/proposal-support tests/sequenced_after -p no:cacheprovider` → `2460 passed, 7 warnings, 74 subtests passed in 400.41s` — the CI `pytest-suite` at this head is the tree-grain evidence § 3.7 cites.
- `python3 scripts/proposal-support.py . verify` → `proposal support verification ok`; `python3 scripts/validate-sequenced-after.py . --ledger-diff` → `per-change sweep ledger consistent with the corpus (214 rows)`; `python3 scripts/validate-scope-globs.py .` → passed; `python3 scripts/validate-pin-registrations.py` → `OK openxwallet-pin … OK contracts/manifest.yaml: 2 pin registration(s) cohere`; `OPENSPEC_TELEMETRY=0 openspec validate --all --strict` → `Totals: 107 passed, 2 failed (109 items)` — the same two pre-existing, unrelated MODIFIED-scenario omissions (`add-chain-attestation`, `add-composed-view-authoring`) as `origin/main`.
- A local run of the WHOLE suite in the lane's container stopped at collection on 11 unrelated `tests/ideation-dashboard` errors (`openxdox.domain_profile.AlreadyRegistered`, an environment condition of that container); the required CI `pytest-suite` is the arbiter for the full suite.

## Not done by this PR — separate later words, none given
Merge (Brett's word); tick of 3.7 (lane, after green CI); archive (§ 4, on merged-plus-green realization evidence via `scripts/proposal-support.py`); the publisher's `capabilities:` enumeration (openXwallet, `neutral-product-pin` — recorded as prose, not filed, not owed).

**Fix round 1 (`9e40d749`)**
Copilot's review of `16ce87d9` (three threads, four suppressed comments), all RULED ACCEPT by the lane (`fix1040-round1.md`) except the 3.7 nit: (R1) a missing PyYAML no longer returns silently — it is a controlled ERROR finding with its own action string, so the fail-closed check cannot pass open (`EXPECTED_ACTIONS` → thirteen); (R2) `_pin_record_text` catches `UnicodeError` beside `OSError` — a non-UTF-8 record is the unreadable-record finding, run completes; (R3) every `Path.resolve()` in the containment helper is guarded (`RuntimeError` on a symlink loop, `OSError` on an unreadable link) and maps to a new refusal code `unresolvable`; the arm branches on the code, never the reason text, and reuses the containment action; (R4) `pinned_by_commit_only`: MEASURED `verify-openxwallet-pin.py:443` / `validate-openreposhape-pin.py:487` read `pin.get(...) or []`, so every falsey value is empty and admitted — the adapter refusing `null` was WIDER than the guard; (R5) `dispositions: null`: MEASURED `validate-openspec-cli-pin.py:801-803` `if raw is None: return []` — accepted; (R6) `fullmatch` for capability names and the pinned value (a YAML block scalar can carry a trailing newline). Tests added for each. **3.7 (the suppressed nit): that box is the EVIDENCE box the lane ticks after THIS round's CI is green, citing the run — as stated above; it was not "claimed ticked".** Threads replied and resolved.
EVIDENCE at `9e40d749`: `pytest -q tests/doc-health tests/pin_registrations -p no:cacheprovider` → `1881 passed, 7 warnings`; `--family tag-hygiene` doc-health still shows exactly the four `unresolved pinned target` errors naming `contracts/openxwallet-pin.yaml`; verifiers/contracts/specs untouched (`git diff --stat origin/main -- …` empty).

**Fix round 2 (`62bc53e1`)**
Copilot's pass on `9e40d749` (0 threads, ONE suppressed comment, `pin_shapes.py:303`) RULED ACCEPT by the lane (`fix1040-round2.md`): the product-identity entry admitted either spelling for EVERY shape-(a) record, so `contracts/openxwallet-pin.yaml` minus `submodule_path` was still ACCEPTED (it also carries `source_repository`) although `verify-openxwallet-pin.py:194` refuses it — the adapter was NARROWER than the guard for a known record, and the record leg had removed both spellings. D-2 resolves that entry AT THE RECORD GRAIN to the record's own verifier's set, and tasks 3.3(p) counts `source_repository` among openxwallet-pin.yaml's nine NON-table members. Now: a code-fixed `PRODUCT_IDENTITY_BY_PIN` beside `TRACKED_VERIFIERS` (keyed by the PIN ID from the marker, never by the record's `verify_pin:`) makes `judge(record, pin_id)` require `submodule_path` for `openxwallet` and `source_repository` for `openreposhape`, the other spelling being a non-table member of that record; an UNKNOWN pin id keeps the either-spelling reading and still refuses a record naming no product. The record leg now removes the ONE spelling each record's verifier reads (openxwallet minus `submodule_path` → REFUSED naming it; minus `source_repository` → accepted), and the 38-member test asserts the per-record LISTS by name. No action string, verifier, pin record, spec or delta byte moves; the file bound is unchanged. (No thread to reply to — suppressed.)
EVIDENCE at `62bc53e1`: `pytest -q tests/doc-health tests/pin_registrations -p no:cacheprovider` → `1881 passed, 7 warnings`; `--family tag-hygiene` doc-health still exactly the four `unresolved pinned target` errors; forbidden-surface diff empty.

**Fix round 3 (`0138384f`)**
Copilot's pass on `62bc53e1` (one thread, one suppressed comment), both RULED ACCEPT by the lane (`fix1040-round3.md`): (R1) `Path.resolve()` raises `ValueError` on a claimed path carrying an embedded NUL — which a YAML registration can supply — so the containment helper now maps `ValueError` (beside `OSError`/`RuntimeError`) to the `unresolvable` refusal and `resolve_in_tree` refuses instead of tracing back; helper-level test added (a marker cannot carry NUL; the lexical grammar refuses it first). (R2, suppressed) the resolver's module-level bare `from pin_containment import …` works only with `scripts/` on `sys.path`, while this repository's own tests reach the package as `scripts.doc_health.*`; it now falls back to the package-relative spelling (`scripts` is a namespace package; the neutral helper is its sibling), proven by a fresh-interpreter test from the repository root with no `PYTHONPATH`. Thread replied and resolved. No action string, verifier, pin record, spec or delta byte moves.
EVIDENCE at `0138384f`: `pytest -q tests/doc-health/test_tag_hygiene_pinned_targets.py tests/doc-health/test_pin_shape_adapter.py tests/pin_registrations tests/doc-health/test_import_direction.py -p no:cacheprovider` → `145 passed`; the CI `pytest-suite` at this head is the tree-grain run § 3.7 cites.

**Round 4 (`f4198a57`, tests only) — RULED STANDS; and 3.7 TICKED (`0b1496ef`)**
Copilot's suppressed comment on `0138384f` (`pin_shapes.py:517`: "an unknown pin carrying both `submodule_path` and `source_repository` resolves, though the shape is exactly one product-identity member and the union must be refused") is RULED STANDS by the lane (`fix1040-round4.md`): D-2's "EXACTLY ONE product-identity member" describes the TABLE ENTRY, resolved per record — not a prohibition on a record CARRYING the other spelling as an extra top-level member; "the UNION would refuse openxwallet-pin.yaml" is about REQUIRING both, and the real openxwallet record carries BOTH spellings today. Neither shape-(a) verifier refuses a record for carrying the spelling it does not read, so an adapter refusing co-presence would be WIDER than the guards — the defect the two-leg test forbids. Pinned by a test (unknown pin with both → accepted; with neither → refused naming both); no adapter byte moves.
**Task 3.7 is now ticked** (`0b1496ef`, tasks.md only) at the tree grain: code tree `0138384f`, required `pytest-suite` GREEN there (run 34875251402, all six required green); doc-health `--single-repo` 0 new regressions, and finding-by-finding against `dd073746` the only content change is the four `tag-hygiene` findings changed in form (re-measured with `--family tag-hygiene` at `9e40d749`, `62bc53e1`, `0138384f`: exactly four, still `error`). **The four do not reach zero.** § 3 carries no unticked box; § 4 (archive) stays open for a separate word. The two commits after `0138384f` are tests-only and the tick; CI re-runs on them.
**MERGE WORD GIVEN** (see Round 6 below); the lane lands on green at `da54bed4`. Merge as SQUASH (the lane's Rule 6 landing), a separate word from Brett Heap; none given.

**Round 5 (`e1138d8d`, docstrings + one assertion; no code byte)**
Copilot's two suppressed comments on `0b1496ef` read the docstrings ("satisfied by either … refuses only NEITHER"; "no record must carry both") against the loop and found the WORDS wrong. RULED by the lane (`fix1040-round5.md`): the BEHAVIOUR stands — for an unknown pin the product-identity entry is MISSING only when neither spelling is present, a record may carry both (the real openxwallet record does), and a spelling that IS present is judged by its own form, a present-but-malformed one being MALFORMED exactly as an optional member present in the wrong form is (a broken byte is never a silent pass). `required_spellings`'s docstring, the `_PRODUCT_IDENTITY` comment and the round-4 test now say exactly that, and one more assertion pins it (unknown pin, valid `submodule_path` + malformed `source_repository` → MALFORMED naming `source_repository`).

**Round 6 (`da54bed4`)**
Copilot's three suppressed comments on `e1138d8d`, all RULED ACCEPT (`fix1040-round6.md`): (R1) a DANGLING `contracts` symlink was classified missing because `exists()` follows the link — the symlink test now comes first and the boundary is REDIRECTING (test added); (R2) a document whose repository has NO resolution root in the run passed silently (nothing to search, nothing emitted) where the in-tree arm reports an unresolved target — it is now one controlled finding naming the repository, with its own action (`EXPECTED_ACTIONS` → fourteen; test added); (R3) the boundary refusal's action was reused for four refusal codes with words that fit one — replaced by one neutral sentence (present, a directory, not a symlink or a redirection), the rule text carrying the specific reason. No verifier, pin record, spec or delta byte moves.
EVIDENCE at `da54bed4`: `pytest -q tests/doc-health/test_tag_hygiene_pinned_targets.py tests/doc-health/test_pin_shape_adapter.py tests/doc-health/test_families.py tests/pin_registrations -p no:cacheprovider` → `191 passed`.
**Brett Heap's MERGE WORD stands** (#992 5670841396, "merge 1040 when green, then post the records"): the lane lands this PR under Rule 6 once the six required checks are green at `da54bed4`, ruling any further Lite-effort suppressed nit STANDS unless substantive.

**Round 7 (`c111fec0`, no code byte) — the 3.7 evidence refreshed**
Copilot's two suppressed comments on `da54bed4` ("Approval recommended"), both RULED ACCEPT (`fix1040-round7.md`): the ticked 3.7 evidence cited the `0138384f` tree and called the later commits tests-only, which round 6 made untrue — it now cites the FINAL code tree `da54bed4` and its green required `pytest-suite` run 34897473169, with the `--family tag-hygiene` re-measure at that tree (exactly four findings, changed in form, still `error`); and the test name `repositorys` → `repositories`. The one commit after `da54bed4` is this refresh plus that rename.
**Landing on green at `c111fec0`** under Brett Heap's standing word (#992 5670841396).

refs #992

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

## Summary by Sourcery

Extend prose candidate tagging to resolve capabilities from validated pinned product records while failing closed on malformed, unsafe, or unsupported references.

New Features:
- Support resolving prose candidate markers against pinned capabilities using validated pin records and capability enumerations.
- Add fail-closed validation for pinned target grammar, pin record shapes, capability membership, containment boundaries, verifier metadata, and unsupported supersedes usage.

Bug Fixes:
- Prevent pinned target resolution from following path escapes, redirected contract registries, malformed records, or verifier paths supplied by pin data.
- Correct documentation and index descriptions for capabilities that have moved out of the repository.

Enhancements:
- Introduce shared pin containment utilities and a pure adapter for validating supported pinned contract manifest shapes.
- Retarget four prose markers to the pinned capability form and preserve distinct diagnostics for publisher, record, and marker defects.

Documentation:
- Document the pinned candidate target form, its resolution rules, scope restrictions, and stale-target handling.

Tests:
- Add comprehensive coverage for pinned target resolution, malformed and incomplete pin records, containment escapes, multi-root precedence, verifier non-use, and shape-adapter consistency.

Chores:
- Mark realization tasks 3.1–3.6 complete and update the staging index to reflect unresolved pinned targets.
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