Skip to content

Propose gate-realization-axis-vocabulary: keep the two-value target_release vocabulary and gate it (#956) - #963

Merged
brettheap merged 29 commits into
mainfrom
change/gate-realization-axis-vocabulary
Sep 12, 2026
Merged

brettheap merged 29 commits into
mainfrom
change/gate-realization-axis-vocabulary

Conversation

@brettheap

@brettheap brettheap commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-1 (openXfactory-1)

Status: RATIFIED — 2026-09-12

Ratified

Brett Heap (openxFactory operator authority) ruled on this packet on
2026-09-12 at 15:45Z
, verbatim:

do all as recomended

Three INDEPENDENT multiple-choice rulings over design.md's three declared
veto points, each put with its recommendation first, answered in one utterance
and recorded item by item on this pull request at 2026-09-12T15:45:19Z
(comment 5646922493):

  • D1 = "Keep and gate" — the tokens the packet admits stay admitted and are
    GATED. "Admit none" and "Rule none a synonym" NOT taken.
  • D2 = "Sweep in this PR" — the existing non-conforming spellings across the
    corpus are swept here. "Each owning lane sweeps" and "Register all 26"
    NOT taken.
  • D3 = "Resolve against the registry that exists" — the gate resolves a
    token against the registry as it stands. "Resolve literally" and "Accept
    any release-shaped token"
    NOT taken.

ALL THREE ARE THE RECOMMENDED AND ALREADY-ENCODED OPTIONS, SO THE WORDING
STANDS UNCHANGED.
git diff --name-only fb55c9e9..HEAD -- <change>/specs/
returns 0 files. D0 and D4–D7 were carried beside them and none was vetoed.

Encoded in d002f85d: Status: draft → Status: ratified on
proposal.md, design.md and tasks.md, each with exactly ONE citation line
naming all three labels verbatim; design.md D1/D2/D3 become RULED sections
keeping their alternatives as the record of what was put and declined;
.openspec.yaml gains approved_by/approved_on as a pure ADDITION beside a
byte-unmoved origin: block
(git diff --numstat reads 46 0; lines 1–94
hash to sha256 70da6366…82193 before and after); tasks.md § 1.1–1.5 ticked
and nothing else; the README ## OpenSpec Records row moves to the ratified
standing.

Records: review/ratification-2026-09-12.md
(Status: ratified, one Ratified: line naming all three labels) and
review/verification-2026-09-12.md
(Status: record, the gate set re-derived on the ratified tree).

D2'S RULED OPTION SWEEPS THE CORPUS AS IT STANDS, AND AT THIS HEAD THAT IS
SIX CARRIERS, NOT FIVE.
The branch was CONFLICTING against main at the
ruling; merging origin/main 1f068646 (merge fb55c9e9) brought in
amend-kill-switch-to-declared-test-companion, which landed with #959 on
2026-09-11T17:19:09Z declaring no leading token at all — a running sentence,
so the value token is the article a — and the gate refused it, reddening its
own live-corpus test. Swept in 3f7236f4 by the same one-token correction;
registering it instead was refused by D1's ruled closure of the register.
Re-measured after: 0 active declarations outside the vocabulary.
design.md D2a, tasks.md § 3.18.

THE ARCHIVE IS A SEPARATE ACT AND IT IS NOT PERFORMED HERE. code_surface
is NON-EMPTY, so under release-realization this packet archives on
merged-plus-green realization evidence at canon's grain, on its own later
pull request and on a separate word. No file under openspec/specs/ is
edited
, so nothing is promoted; tasks.md § 5 and § 6 stay ENTIRELY OPEN; and
openxFactory #956 closes at the ARCHIVE and at no earlier landing —
closingIssuesReferences on this pull request is [] and stays so.


D0 — the measurement, re-taken at authoring on origin/main 38c076d1

Method, so it reproduces: a ^target_release: / ^code_surface: line at the
start of a line in every openspec/changes/**/proposal.md, archived packets
included; the VALUE TOKEN is the first whitespace-delimited word with trailing
.,;: stripped.

measure #956 at filing (1d20edd4) re-measured (38c076d1)
proposal.md files 199 199
declaring target_release: 181 181
declaring none 33 32
of those, ACTIVE 6 5
of those, archived 27 27
code_surface: none declarers 20 20 — implemented 10, none 7, promotion-only 3

The two that moved are one fact: state-header-window-budget archived at
PR #953 between the filing and this authoring, taking one carrier out of the
ACTIVE set. The issue's "6 active" is stale by exactly that packet.

THE MEASUREMENT THE ISSUE DID NOT TAKE, AND THE ONE THAT SHAPED THE PACKET.
none is one fifth of the divergence. Of the 38 ACTIVE proposals — every
one declares the field — only 12 declare a value the ratified vocabulary
admits:

active
inside: implemented 9
inside: a release this estate defines 3 contract-v1.45, contract-v3.0 ×2
outside: none 5 add-composed-view-authoring, add-cpc-clearing-boundary, add-lens-document-selection, add-substantive-review-lane, register-gate-rules-council-seats
outside: deferred allocation 12 "THE NEXT ADDITIVE MINOR, DELIBERATELY NOT NUMBERED HERE", "next additive contract bundle", "contract-v<next minor>"
outside: realization state 4 implementation_pending
outside: repository bootstrap 2 repository-bootstrap
outside: answers another question 3 "a code surface, so per release-realization it archives only on merged + green"

TWELVE OF THE TWENTY-SIX ARE OUTSIDE THE VOCABULARY BECAUSE ANOTHER RATIFIED
RULE PUTS THEM THERE.
docs/contract-versioning-policy.md § Bundle
Realization Order, first line: "Contract-bundle realization is serialized and
allocates versions late"
. Naming a number at proposal time reserves one the
policy allocates at the cut — and the promoted two-value sentence has no
spelling for a release, not yet numbered. That is a canon gap, not sloppiness.

NO GATE READS THE VALUE, confirmed by the issue's own command:
grep -rn target_release scripts/ tests/ .github/ finds four lines in
scripts/ideation_dashboard/generator.py (410/416/571/576) plus
web/views/wheel.js:767-768 — display only — nothing in .github/, and fixture
text in tests/ in BOTH spellings. The snapshot schema types the field
{type: [string, "null"]}, no enum.

THE ARCHIVE: 161 archived proposal.md, 61 outside the vocabulary,
read and counted and judged never.


THE THREE DECISIONS AS THEY WERE PUT — ALL THREE RULED 2026-09-12, EACH TAKING ITS RECOMMENDATION

Kept verbatim below as the record of what was put and what was declined. The
ruled option of each is OPTION 1, the recommended one; the alternatives were
never encoded and are not work owed.

D1 — what canon does about a value outside its vocabulary

  • OPTION 1 — RECOMMENDED. Keep the two-value vocabulary exactly as ratified
    and GATE it.
    One ## ADDED Requirements block,
    Realization axis vocabulary is gated, plus a house validator and a CLOSED
    grandfather register. No ## MODIFIED block, so no collision and no
    sequencing hold. The five none carriers are corrected here (D2); the other
    21 are named in the register, reported and never refused, and the register
    can never be added to.
    Cost: the estate gains a 21-entry exception file, and each entry is
    archive-coupled — when its packet archives or corrects itself the gate
    refuses (exit 2) until the entry is deleted, which will occasionally red an
    unrelated lane's archive pull request. That is
    contracts/openspec-cli-pin.yaml's own accepted cost and is taken
    deliberately.
  • OPTION 2 — amend Realization axis declaration to ADMIT the divergence
    (the issue's option 2, widened by the measurement to the deferred allocation,
    which is the larger and better-founded class).
    Cost: a ## MODIFIED block over a title the ACTIVE ratified
    add-structured-scope-substrate already modifies. It would owe
    sequenced_after: [add-structured-scope-substrate], its pre-text taken from
    that change rather than from canon, and the archive-order hold Ordered
    deltas and branch vocabulary
    imposes — the basis change archives first or
    this one destroys review. It also decides the deferred-allocation question in
    the same act that installs the gate: two decisions in one word.
  • OPTION 3 — rule the value a synonym for implemented on an empty code
    surface (the issue's option 3, "the cheapest").
    Cost, and a MEASURED objection that is fatal as written: all five active
    none carriers declare a NON-EMPTY code_surface
    — four openxFactory,
    one xFactory. A synonym rule conditioned on an empty code surface reaches
    none of them and settles nothing; widened to reach them it becomes option 2,
    with option 2's sequencing hold.

D2 — the sweep

  • OPTION 1 — RECOMMENDED. This pull request corrects the five none
    carriers and nothing else
    : one value token per file, none →
    implemented, every prose gloss preserved verbatim; five files, five lines,
    no behaviour. For those five and only those, the declaration's own gloss says
    the packet cuts no bundle — "no contract-bundle involvement" — and a packet
    that cuts no bundle realizes on the affected repositories' main lines, which
    is what implemented MEANS. There is no judgment in it, which is why a lane
    that does not own those packets can take it. The other 21 are not like that:
    a deferred allocation rewritten to implemented would assert a realization
    on a line that is not where the change lands.
  • OPTION 2 — each owning lane corrects its own; the gate lands ADVISORY until
    the last is done.
    Cost: an advisory gate refuses nothing, which is the
    state the issue filed about.
  • OPTION 3 — correct nothing and register all 26. Cost: five standing
    exceptions for a defect that is a one-token edit with no judgment in it.

D3 — how the gate resolves "a named release" (forced open by the measurement)

Canon says "a named release defined in the aggregation repository". Measured:
opensoft/xFactory defines no releases and carries no tags at all; every
release the corpus names is defined HERE, in contracts/releases/ (53 digest
inventories) and this repository's own tags.

  • OPTION 1 — RECOMMENDED. Resolve against the registry that exists:
    contracts/releases/<token>.digests.yaml, matched against
    ^contract-v[0-9]+(?:\.[0-9]+){1,2}$ (TWO or THREE components — this
    estate's own release-digest-inventory.schema.yaml $defs.bundle_tag
    pattern, restated). Where a scanned tree carries no such registry — or the
    registry directory itself is a symlink (D8g) — the release SHAPE is accepted
    and the run says so.
    Cost: the gate resolves a phrase against a place the promoted sentence does
    not name; the wording divergence is recorded as a successor rather than
    repaired, because repairing it is another MODIFIED block over the contested
    title.
  • OPTION 2 — resolve it literally, against the aggregation repository.
    Cost: nothing resolves; three active packets are refused on day one.
  • OPTION 3 — accept any release-SHAPED token without resolving it.
    Cost: contract-v<next minor> and any invented version number pass.

The added requirement

### Requirement: Realization axis vocabulary is gated, first line verbatim:

An ACTIVE change proposal's target_release: declaration SHALL carry a value
the ratified vocabulary admits — implemented, or a release identifier that
resolves to a release this estate defines — and a house validator SHALL
REFUSE any other value on an active proposal, naming the proposal's path and
the value it carries.

TEN scenarios (three added by the bot bench — see The bench below):
An active proposal declares a value outside the vocabulary; An active
proposal declares the implemented target
; An active proposal names a release
the estate defines
; The scanned tree defines no release registry at all;
An archived proposal carries an off-vocabulary value; A standing declaration
is named by the register
; A proposal declares the target release twice;
An entry is appended to the closed register; A register entry matches
nothing
(part of the original seven, not bench-added); A proposal declares no
target release
.

The bench also added three paragraphs to the requirement body, all quoted in
The bench below: a repeated declaration SHALL be refused rather than read
from its first token; closure SHALL be enforced rather than merely declared;
and a release identifier SHALL resolve against the registry the SCANNED TREE
defines, with the weaker shape-only judgment on a tree that defines none (or
whose registry directory is a symlink, D8g) required to be LOUD rather than
silent.

The code, and its before/after

scripts/target_release.py (reader/judge, reading through the SHIPPED strict
loader frontmatter_strict.py — no second parser),
scripts/validate-target-release.py (CLI in validate-scope-globs.py's shape),
scripts/target-release-register.yaml (21 entries, 4 classes, CLOSED), and
tests/target_release/test_target_release_gate.py (86 tests, no existing
test flipped or deleted (one renamed for a typo, round 9);
python3 -m pytest tests/target_release -q — exit 0, "86 passed").

python3 scripts/validate-target-release.py .

tree exit active implemented named release registered refused
origin/main ac688c40, no gate present 1 40 11 3 21 5
THIS tree (fbe3ffac), after 0 41 17 3 21 0

Both rows are the SAME validator pointed at two trees, so the only difference
between them is the tree, and the after row is reproducible by running the
command above here. The +1 active is this packet's own proposal.md,
which declares target_release: implemented and is judged by its own gate
like every other file. The +6 implemented is that same +1 plus
+5: the five carriers this pull request corrects (D2) are still none
— and so still counted refused — on origin/main, which has not received
this packet's sweep and will not until this packet lands. On both sides:
"archive (read, never judged): 161 proposals, 61 of them outside the
vocabulary"
.

Three exit codes, the third borrowed from scripts/validate-openspec-cli-pin.py:
0 clean; 1 an off-vocabulary declaration the register does not name (a
statement about the PROPOSAL); 2 an unusable register, or an entry that
matched nothing (a statement about the REGISTER — the exception outlived its
condition, so the archive is the event that forces re-examination).

The sweep, with the token before and after — SIX carriers, measured at the ratified head

change before after
add-composed-view-authoring none implemented
add-cpc-clearing-boundary none (no contract-bundle involvement — … implemented (no contract-bundle involvement — …
add-lens-document-selection none implemented
add-substantive-review-lane none (no contract-bundle involvement — … implemented (no contract-bundle involvement — …
register-gate-rules-council-seats none — no contract bundle is cut by openxFactory. … implemented — no contract bundle is cut by openxFactory. …
amend-kill-switch-to-declared-test-companion a code surface (in codexFactory), so per … implemented — a code surface (in codexFactory), so per …

THE SIXTH ARRIVED WITH THE MERGE AND IS A DIFFERENT DEFECT. The other five
wrote a token canon does not admit; this one wrote NO token — the declaration
opens as a running sentence, so the value token is the article a. The
correction supplies no judgment, because the author's own gloss already says
what implemented means: "No contract bundle is cut, nothing under
contracts/ moves, no contract_bundle_version is spent, no openxFactory
CONTRACT digest set moves and NO RELEASE TAG IS OWED."
design.md D2a.

THE LIVE-CORPUS RACE IS DISCLOSED, NOT CLOSED: a proposal landing on main
before this packet merges can add a seventh, and the remedy is the same
one-token correction re-measured at that head. The gate is what makes the race
visible at all.

Custody check, taken rather than assumed: these are ACTIVE ratified packets,
not records. record-immutability binds Status: record documents only
(fam_record_immutability skips anything else by construction), and neither
Origin retention at archive nor Scope retention at archive reaches
target_release:. No archive gate of the five is broken.

Disclosure: none of the five names an openxFactory governing issue or pull
request in its .openspec.yaml origin: block — the two that name a tracker at
all name codeXfactory ruling sites for the ruling that produced them, not a
governing tracker for the packet. The disclosure is therefore made HERE, in this
table, and re-stated in the packet's design.md D2.

Gates re-run on head c38c20a7, after the second merge from main

gate result
openspec validate gate-realization-axis-vocabulary --strict (PATH 1.2.0) exit 0 — "is valid"
openspec validate --all --strict exit 1, 101 passed, 3 failed (104) — failure set IDENTICAL to origin/main 5972c8f3's own 100 passed, 3 failed (103) (disposition-codexfactory-declared-renames, disposition-codexfactory-floor-relocation-retitle, disposition-codexfactory-regular-pr-council-clearance-archive — the third arrived with the merge of 5972c8f3 and fails on main too). This change is in neither set and the item count moves by exactly one
validate-openspec-cli-pin.py --change … --no-cache (pinned 1.12.0) exit 0, 1 passed, 0 failed (1 items)
validate-openspec-cli-pin.py --all --no-cache exit 0, 102 passed, 2 failed (104), "0 UNDISPOSITIONED failures" — the two pre-existing accepted exceptions. The PINNED 1.12.0 passes one item the PATH 1.2.0 run fails: a CLI-VERSION difference, not a tree difference
proposal-support.py . verify exit 0
validate-sequenced-after.py . exit 0 — "42 active changes, 12 declaring the field"
validate-sequenced-after.py . --ledger-diff exit 0 — "per-change sweep ledger consistent with the corpus (205 rows)"
validate-scope-globs.py . exit 0
doc-health.py --single-repo . exit 0
validate-target-release.py . exit 0 on this tree (42 active, 18 implemented, 3 named release, 21 registered, 0 outside), exit 1 on an origin/main 5972c8f3 worktree (41 active, 11 implemented, 6 outside, the six named by path)
pytest tests/target_release -q exit 0, 86 passed (re-measured on the current head; the table above it is the PATH/pinned-CLI comparison as originally captured)

Both validate-target-release.py rows are the SAME validator pointed at two
live trees, so the only difference between them is the tree. The +1 active is
this packet's own proposal.md; the +7 implemented is that +1 plus the
+6 from the sweep, which origin/main has not received.

main MOVED TWICE UNDER THIS BRANCH AND BOTH MERGES ARE MEASURED, NOT
ASSUMED.
1f068646 brought the sixth carrier, which was swept (tasks.md
§ 3.18); 5972c8f3 (#1004) brought a change that declares implemented, so
D2's ruled sweep has no seventh carrier at this head (§ 3.20). The README
## OpenSpec Records conflict was resolved both times by keeping BOTH rows —
at the second merge main's row first and this packet's immediately after it —
with no other row touched and no reflow.

ONE HONEST NEGATIVE. pytest tests/doc-health -q fails 7 tests in this
lane's clone — and fails the IDENTICAL seven, with identical counts (7 failed,
1717 passed, 1 skipped), on an unmodified origin/main 1f068646 worktree in
the same shell. They are this environment's, not this branch's, and this packet
touches none of those modules. The authoritative full-suite figure is this pull
request's own required pytest-suite run, which is where tasks.md § 4.10 is
settled; no local full-suite pass is claimed here.

What this pull request does NOT do

  • It does not ratify anything, promote anything, or archive anything.
  • It edits no promoted byte and carries no ## MODIFIED block, so no
    marker is owed.
  • It does not touch the archive's 61 off-vocabulary records.
  • It does not answer the deferred-allocation question, or repair the
    "aggregation repository" wording, or gate code_surface: — three successors
    named in tasks.md § 6.
  • It does not close the origin issue. code_surface is non-empty, so the
    archive is a separate act on merged-plus-green realization evidence and a
    separate word, and openxFactory 956 is closed THERE — by a closing keyword
    written in the archive pull request and in no commit message on this branch.

The bench — TEN Copilot rounds since the draft opened, 29 threads, ALL 29 TAKEN, none refused

Every thread was a real defect, each was reproduced on a built tree before it
was fixed, and each fix is pinned by refusal tests that fail against the code
as it stood. Tests 32 → 79. Full reasoning in design.md D8 / D8b / D8c
/ D8d / D8e / D8f / D8g / D8h / D8i / D8j
and tasks.md § 3.7 / § 3.9 /
§ 3.10 / § 3.11 / § 3.12 / § 3.13 / § 3.14 / § 3.15 / § 3.16 / § 3.17 /
§ 3.19
.

ROUND 10 (9bd30e63, four threads, all four TAKEN, none reopening D1/D2/D3)
arrived one minute after the previous freeze and is answered on the ratified
head. Two were already answered by the ratification's own re-measurement and are
named rather than quietly ticked: tasks.md § 4.6's stale 39 active / 9 declaring now reads 41 / 11, and § 4.9's stale 200 ledger rows now
reads 204. The third is a REAL CODE ESCALATION and the third in its family:
_proposals found active declarations with a bare Path.is_file(), which
FOLLOWS SYMLINKS, so a committed proposal.md symlink — or an ordinary
proposal inside a symlinked CHANGE DIRECTORY, or under a symlinked openspec/ —
was read, judged and counted as the scanned tree's own, with declaration()
opening bytes outside repo_root, while a DANGLING link removed a proposal from
the corpus instead. D8g closed this for the registry's leaf and D8i at every
ancestor; the discovery walk was the same surface, untested. A new _unescaped
helper is D8i's test generalized — a path counts only when resolving every
symlink between repo_root and it lands where a symlink-free tree would have
put it, repo_root resolved on both sides — and _proposals takes every path,
active and archived, through it. Five tests (74 → 79), THREE measured
failing with the fix stashed and passing restored, TWO pinned as boundaries that
pass either way. On the real corpus the fix moves nothing (41 active, 163
archived, before and after), which is the point. The fourth is this description,
rebuilt here.

Round 1 — b88ea425 (two threads, both real code findings in this packet's
own new code):

  1. A value token reached a path before its shape was checked.
    resolves_as_release matched RELEASE_ID_RE on the no-registry branch
    ONLY, so with a registry present the author-controlled token went straight
    into the lookup. Measured: target_release: ../elsewhere resolved
    (True, True) against a planted contracts/elsewhere.digests.yaml and the
    scan reported 0 findings, 1 a named release; a planted
    contracts/releases/none.digests.yaml did the same for the bare word
    none — the value this gate exists to refuse. The shape is now the FIRST
    test in EVERY branch.
  2. A field the requirement names was enforced by a test and not by the
    loader.
    _REQUIRED_ENTRY_KEYS omitted cited_to. Measured:
    load_register accepted an entry with no citation at all. It is now a
    required key, shape-checked as a non-empty list of non-empty strings.
    Swept for both classes and two more found: a register entry's change:
    is resolved under openspec/changes/ and is now shape-checked as one
    directory segment; the CLOSED class set lived inside one corpus test and is
    now enforced by the loader for every tree.

Round 2 — 989c7059 (four threads):
3. A repeated declaration was half-read. target_release: is a PROSE
header, and the shared loader JOINS a repeat rather than refusing it as the
duplicate key a STRUCTURED field's repeat would be. Measured:
implemented then none came back as one joined string and tokenized as
implemented — two declarations shown, the first authorized. Refused by
name now, on the value the loader returned; the shared loader is not edited
and no second parser is written.
4. + 5. The CLOSED register was not closed (the requirement's text and the
loader's code, two threads, one defect). Every new (change, token) pair
was accepted, so a later pull request could have appended an exception and
kept the gate green with no change to this specification — the register
reproducing the defect it was built to close. CLOSED_REGISTER now records
the 21 pairs at this gate's landing and the loader refuses an entry the
baseline does not carry.
6. Two completed tasks were left unticked (§ 4.9 and § 4.11). Both ticked,
each on the output it was ticked for, each naming the commit that did the
work.

Round 3 — d980e04e (two threads):
7. The release-id shape was narrower than the estate's own — and round 1 is
what made that matter.
contracts/releases/release-digest-inventory.schema.yaml
$defs.bundle_tag admits two OR three components; RELEASE_ID_RE admitted
two. Measured: 47 inventories under contracts/releases/ at the time
(recounted in round 5 as 53), all two-component, so the defect was
latent, not standing. The pattern is now the schema's, RESTATED rather
than imported, with the equality asserted by a test that READS the schema.
8. The README row's test figure was stale (32 where the packet said 46).
Corrected, and re-measured again since. Now a rule rather than a habit: a
count moves in ALL of its sites in the SAME commit.

Round 4 — 5a25669c (five threads):
9. + 10. The shape-only fallback contradicted the requirement's own MUST.
ENCODED, not removed: the requirement gains a paragraph and a new
scenario, The scanned tree defines no release registry at all; loudness
is TESTED.
11. The repeat guard was over-broad and caught an INDENTED gloss line as a
duplicate. Pattern now anchored at column 0.
12. + 13. The inventories were stale (scenario count, test count) —
corrected.

Round 5 — 3a4ba5a2 (three threads, one a figure the bench itself
invented):
14. "47 inventories" was a number nobody counted. Recounted:
ls contracts/releases/*.digests.yaml | wc -l → 53.
15. The before/after table was not reproducible from its own command —
labelled by TREE instead of a static pair.
16. A missing newline hid a task — split into its own checklist item.

The merge, mid-bench: origin/main 34bb5c71 (PR #945) merged at
ed34af9b. Only conflict was the README ## OpenSpec Records block; both
rows kept.

FIRST FREEZE, ed34af9b: five rounds, 16 threads, all taken, 0 unresolved.

Round 6 (post-freeze) — e670cf30 / 378eb3c3 / 895f2569 (three formal
threads, plus one suppressed-comment correction, plus one reopened symlink
finding — five items, all TAKEN):
17. The description was stale — reported 59 tests / 32→59 while the tree
said 62. Rebuilt (repeatedly since).
18. design.md recorded a round tasks.md had not caught up to — a
ledger entry added mirroring the grammar.
19. A suppressed Copilot pass caught a real miscount: the bench was said
to have added FOUR scenarios; only THREE are bolded. Corrected in
378eb3c3.
20. The symlinked-FILE finding, disclosed and declined in 378eb3c3 as
outside that commit's ledger-only scope, reopened as a formal thread on the
very next push
(PRRT_kwDOTAvnrs6hgEM5) — a real finding does not stop
being real for having been named once already.
TAKEN in 895f2569:
resolves_as_release refuses a candidate inventory that is a symlink,
restating scripts/hermes_runtime_validation/release.py's own guard.
THREE tests (62 → 65): a symlinked inventory does not resolve; one planted
outside the tree does not resolve either; a REGULAR inventory beside a
symlinked one for a different token still resolves.

SECOND FREEZE, 895f2569: 19 threads, 0 unresolved.

Round 7 — merge + 08c4f5b9 (two threads, both TAKEN): origin/main
moved to ac688c40 (PR #960 landed); merged, keeping both README rows and
both corpus-ledger rows.
21. The DIRECTORY holding the release registry could itself be a symlink,
and only the candidate FILE was ever checked.
Path.is_dir() follows
symlinks the same way Path.is_file() does, so a committed
contracts/releases DIRECTORY symlink pointing outside the tree resolved
as a PRESENT registry, and a REGULAR file reached only through it was never
itself a symlink — round 6's file-level guard never saw anything to
refuse. TAKEN as design.md D8g: a shared _registry_present helper now
checks the directory too, treating a symlinked directory exactly as a
missing one (the existing, documented shape-only fallback). THREE tests
(65 → 68): a symlinked directory resolves on shape alone with
registry_present False; an empty symlinked directory and one holding a
genuine matching inventory resolve identically; the gate prints the same
shape-only note end to end. Measured with the fix stashed: all three fail;
restored, 68 passed.
22. This pull request's own description still told the ROUND 6 story as
"disclosed but left open," contradicting the ledger's own TAKEN record.

TAKEN: this description is that rebuild — every count re-measured, the
bench told as one continuous sequence through round 8.

Round 8 — 38cf0ec3, on round 7's own push (two threads, both TAKEN,
neither a re-litigation of D1–D3):
23. D3 still quoted the PRE-round-3 release-id shape
(^contract-v\d+\.\d+$, two components only), three rounds after round 3
widened RELEASE_ID_RE to two-or-three. TAKEN as design.md D8h (p): D3
now quotes the current pattern and cites round 3.
24. tasks.md § 4.1 and proposal.md's own before/after table had stopped
moving
— pinned to origin/main 38c076d1 and a count several rounds
stale, while origin/main itself had since moved twice more. TAKEN as
design.md D8h (q): re-recorded against a fresh origin/main ac688c40
(40 active / 11 implemented / 5 outside) versus this tree (41 active /
17 implemented / 0 outside), with the +1/+6 delta explained in full
this time — including catching and correcting an inaccuracy in round 6's
own explanatory prose (it named its own table's delta "+1/+1" while the
table read a +6).

Round 9 — fbe3ffac, on round 8's own push (two threads, both TAKEN):
25. THE LEAF-DIRECTORY GUARD ROUND 7 ADDED CLOSED THE ESCAPE AT ONE
COMPONENT AND LEFT EVERY ANCESTOR OPEN.
_registry_present checked
contracts/releases itself for symlink-ness, but a committed contracts/
symlink — one level further up — reaches the identical escape through a
contracts/releases that is a perfectly ordinary, unsymlinked path:
ordinariness is a property of the ONE component checked and says nothing
about what carried a reader there. TAKEN as design.md D8i (r):
_registry_present no longer asks "is the leaf a symlink" but "does
resolving every symlink between repo_root and the registry land you back
where a symlink-free tree would have put you"
(registry.resolve(strict=True) == repo_root.resolve(strict=True) / RELEASE_REGISTRY_DIR), which SUBSUMES the leaf case rather than sitting
beside it and catches a symlink at any component in between. repo_root
itself is resolved on both sides, so its own symlink-ness is NOT mistaken
for the escape — a test pins that boundary explicitly. Two tests (68 →
70): a symlinked contracts/ ancestor treated exactly as absent;
repo_root itself symlinked still resolves. Measured with the fix
stashed: the ancestor test fails against the code as it stood (the same
over-trusting result one level down); restored, 70 passed.
26. A round-7 test name carried a typo (a dropped possessive
apostrophe). TAKEN: renamed
(test_a_symlinked_registry_directorys_contents_grant_no_extra_trust →
test_a_symlinked_registry_directory_contents_grant_no_extra_trust); no
other file cited the old name.

Codex: requested once at 12:43Z; the reply at 12:43:36Z was a usage-limit
notice and therefore an ABSENCE, recorded as such. No second request was made,
on this round or any later one.
Sourcery: posted its guide/summary stub only.

Still owed on this pull request

  • tasks.md § 4.10 — the full pytest tests/ -q count, before and after. The
    authoritative figure is this pull request's own required pytest-suite run
    at the merge ref. The box stays open rather than ticked on an estimate.
  • tasks.md § 4.12 — the bot bench. Left open: ten rounds and 29 threads have
    been disposed as of 9bd30e63, but the box does not tick until a review
    round returns with nothing left to take or dispose.
  • § 5 (promotion and archive) and § 6 (the named successors) are owed by design
    and are Brett Heap's acts, not this lane's. § 1 IS NO LONGER OWED — it was
    ruled on 2026-09-12 and is ticked.

§ 4.9 (the sweep-ledger row) and § 4.11 (the README active row) were DISCHARGED
in 13ff6162 and are ticked with the output each was ticked on; § 4.11's row
moved to the ratified standing in d002f85d and § 4.9's figure was re-measured
to 204 rows at the ratified head.

refs #956, refs #931

🤖 Generated with Claude Code

brettheap and others added 2 commits September 11, 2026 08:28
…d register

`release-realization`'s *Realization axis declaration* admits two values for
`target_release:` and nothing reads the field. Measured on origin/main
38c076d: of 38 active proposals only 12 declare a value inside the ratified
vocabulary (9 `implemented`, 3 a release this estate defines); 26 are outside
it, 12 of those because `docs/contract-versioning-policy.md` § Bundle
Realization Order allocates bundle versions LATE.

So the gate is a ratchet rather than a sweep: `scripts/validate-target-release.py`
refuses every active declaration outside the vocabulary that
`scripts/target-release-register.yaml` does not name, the register is closed to
new entries, and a register entry that matches nothing REFUSES (exit 2) on the
`contracts/openspec-cli-pin.yaml` asymmetry. Archived proposals are read and
counted, never judged.

The five active `none` carriers are corrected in the same commit — one value
token each, every gloss preserved verbatim — because for those five the
declaration's own prose says the packet cuts no bundle, which is what
`implemented` means.

Before (this tree, pre-sweep): exit 1, five refusals.
After: exit 0 — 14 `implemented`, 3 a named release, 21 registered, 0 outside.
32 new tests in tests/target_release.

refs #956

Lane: openxfactory-1

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The packet for openxFactory #956: ONE `## ADDED Requirements` block in
`release-realization` — *Realization axis vocabulary is gated* — plus the
house validator, register and tests that realize it (landed in the previous
commit on this branch).

No `## MODIFIED` block, deliberately: `add-structured-scope-substrate` is
ACTIVE and already modifies *Realization axis declaration*, so a second
MODIFIED block over that title would owe `sequenced_after:` and its
archive-order hold. An ADDED requirement over a novel title owes neither and
edits no promoted byte.

`Status: draft` on every document, `.openspec.yaml` with NO approval pair.
D1 (gate vs amend vs synonym), D2 (the sweep) and D3 (how the gate resolves
"a named release") are put to Brett Heap as multiple-choice questions with
the recommendation first and the alternatives' costs written out.

refs #956

Lane: openxfactory-1

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

sourcery-ai Bot commented Sep 11, 2026

Copy link
Copy Markdown

Reviewer's Guide

This draft OpenSpec packet adds a strict, corpus-wide house validator for active target_release: values without modifying promoted canon, uses a closed register to grandfather 21 measured existing divergences, and corrects five unambiguous none declarations to implemented; it also supplies focused tests and records that broader vocabulary and archive-policy questions remain unresolved.

Sequence diagram for active proposal target_release validation

sequenceDiagram
    participant CLI as validate-target-release.py
    participant Judge as target_release.py
    participant Loader as frontmatter_strict.py
    participant Register as target-release-register.yaml
    participant Releases as contracts/releases
    participant Corpus as Active proposals
    CLI->>Judge: load_register()
    Judge->>Register: Read and shape-check register
    CLI->>Judge: scan(repo_root)
    Judge->>Corpus: Iterate active proposal.md files
    Judge->>Loader: read_front_matter(proposal)
    Loader-->>Judge: Front matter or refusal
    Judge->>Releases: Check named release inventory
    Releases-->>Judge: Resolved or unresolved
    Judge->>Register: Match unresolved declaration
    Register-->>Judge: Grandfathered or stale
    Judge-->>CLI: Report findings and exit status
Loading

Flow diagram for target_release vocabulary validation

flowchart TD
    A[Active proposal] --> B[frontmatter_strict.read_front_matter]
    B --> C{target_release declared?}
    C -- No --> D[Accept doc-only default]
    C -- Yes --> E[Extract value_token]
    E --> F{implemented?}
    F -- Yes --> G[Accept]
    F -- No --> H{Named release resolves?}
    H -- Yes --> G
    H -- No --> I{Closed register match?}
    I -- Yes --> J[Report grandfathered exception]
    I -- No --> K[Refuse with exit 1]
    L[Archived proposal] --> M[Read and count]
    M --> N[Never judge]
Loading

File-Level Changes

Change Details Files
Adds a house-enforced gate for active target_release: declarations while preserving the ratified two-value vocabulary.
  • Adds the gated vocabulary requirement with scenarios for valid values, absent declarations, archived records, register exceptions, and stale entries.
  • Implements a strict-loader-backed reader and CLI validator with release resolution, closed-register handling, archive counting, and distinct exit codes.
  • Adds 32 focused tests covering token parsing, release lookup, malformed inputs, register behavior, and live-corpus validation.
openspec/changes/gate-realization-axis-vocabulary/.openspec.yaml
openspec/changes/gate-realization-axis-vocabulary/design.md
openspec/changes/gate-realization-axis-vocabulary/proposal.md
openspec/changes/gate-realization-axis-vocabulary/specs/release-realization/spec.md
openspec/changes/gate-realization-axis-vocabulary/tasks.md
scripts/target_release.py
scripts/validate-target-release.py
tests/target_release/test_validate.py
Introduces a closed grandfather register for existing active declarations that remain outside the vocabulary.
  • Registers 21 measured divergences across deferred-allocation, realization-state, repository-bootstrap, and archive-rule classes.
  • Reports registered declarations without refusing them and refuses stale or malformed register entries so exceptions cannot silently persist.
scripts/target-release-register.yaml
Corrects the five active none declarations whose prose indicates an implemented, non-bundle change.
  • Changes only the value token from none to implemented while preserving each proposal's explanatory gloss.
  • Leaves archived off-vocabulary records untouched and explicitly outside the gate's judgment.
openspec/changes/add-composed-view-authoring/proposal.md
openspec/changes/add-cpc-clearing-boundary/proposal.md
openspec/changes/add-lens-document-selection/proposal.md
openspec/changes/add-substantive-review-lane/proposal.md
openspec/changes/register-gate-rules-council-seats/proposal.md

Possibly linked issues


Tips and commands

Interacting with Sourcery

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

Customizing Your Experience

Access your dashboard to:

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

Getting Help

…t standing

`validate-sequenced-after.py . --seed-ledger --moved-by '#963'` — one line,
200 rows, `--ledger-diff` now consistent. The README `## OpenSpec Records`
entry records the DRAFT standing, the commissioning word, the measured 38/12/26
figures and the three declared veto points.

refs #956

Lane: openxfactory-1

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
`tests/scope_globs/test_validate.py` already exists and the suite has no
`__init__.py` per directory, so a second `test_validate.py` collided at
collection ("import file mismatch") on the whole-suite run that the required
`pytest-suite` performs — green in isolation, red in the gate. Renamed to
`test_target_release_gate.py`; every reference in the packet and in the
validator docstring moved with it.

refs #956

Lane: openxfactory-1

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

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

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

Unresolved critical and moderate findings block safe approval.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR adds a gate for active target_release declarations while preserving the two-value vocabulary and grandfathering existing exceptions.

Changes:

  • Adds a validator, CLI, closed exception register, and 32 tests.
  • Corrects five active declarations from none to implemented.
  • Adds the OpenSpec packet, README record, sequencing ledger, and documentation.
File summaries
File Reviewed change
tests/target_release/test_validate.py Adds comprehensive validator and corpus coverage.
tests/sequenced_after/corpus-ledger.yaml Adds the packet’s sequencing ledger entry.
scripts/validate-target-release.py Adds the target-release validation CLI.
scripts/target-release-register.yaml Adds 21 grandfathered exceptions.
scripts/target_release.py Implements parsing, release resolution, and register scanning. Critical (3 votes): validate release identifiers before path construction. Moderate (3 votes): require valid non-empty citation lists on register entries, including the secondary validation path.
README.md Adds the active draft OpenSpec record.
openspec/changes/register-gate-rules-council-seats/proposal.md Changes target_release: none to implemented.
openspec/changes/gate-realization-axis-vocabulary/tasks.md Adds implementation and verification tasks. Moderate (1 vote): update inconsistent 38-versus-39 active-proposal measurements. Nit (1 vote): reconcile unchecked task 4.11 with the existing README row.
openspec/changes/gate-realization-axis-vocabulary/specs/release-realization/spec.md Defines the vocabulary gate. Moderate (1 vote): align the registryless release fallback with the requirement, or reject releases without a registry.
openspec/changes/gate-realization-axis-vocabulary/proposal.md Adds the change proposal and its gating rationale.
openspec/changes/gate-realization-axis-vocabulary/design.md Documents measurements, decisions, exceptions, and deferred work.
openspec/changes/gate-realization-axis-vocabulary/.openspec.yaml Adds packet metadata and drafting provenance.
openspec/changes/add-substantive-review-lane/proposal.md Corrects the active target_release declaration to implemented.
openspec/changes/add-lens-document-selection/proposal.md Corrects the active target_release declaration to implemented.
openspec/changes/add-cpc-clearing-boundary/proposal.md Corrects the active target_release declaration to implemented.
openspec/changes/add-composed-view-authoring/proposal.md Corrects the active target_release declaration to implemented.
Review details

Suppressed comments (4)

openspec/changes/gate-realization-axis-vocabulary/specs/release-realization/spec.md:37

  • When contracts/releases/ is absent, this accepts any contract-vN.N token on shape alone, even though the added requirement requires a release that the estate defines and Scenario 3 describes the registry carrying it. An invented version therefore passes in a registryless tree. Either reject without a registry or state this consuming-tree fallback explicitly in the requirement and scenario so the contract matches the implementation.
An ACTIVE change proposal's `target_release:` declaration SHALL carry a value
the ratified vocabulary admits — `implemented`, or a release identifier that
resolves to a release this estate defines — and a house validator SHALL REFUSE

openspec/changes/gate-realization-axis-vocabulary/tasks.md:204

  • The README active row for this packet is already present at README.md:533-559, but task 4.11 remains unchecked and the packet description still calls it outstanding. This leaves the packet's own completion ledger inconsistent; tick the task once that row is the intended final artifact, or state the additional missing work.
- [ ] 4.11 **README `## OpenSpec Records` ACTIVE ROW**, in house style, at the
      DRAFT standing.

openspec/changes/gate-realization-axis-vocabulary/tasks.md:161

  • The added scanner includes every top-level proposal, including this packet, so this branch has 39 active proposals (the 38 pre-existing changes plus gate-realization-axis-vocabulary), all declaring target_release. The recorded 38-active/38-declaring before/after output here is therefore not the output of the gate; after the five corrections it should include 15 implemented, 3 releases, 21 registered, and 0 findings. Please rerun and update the verification measurements consistently.
- [x] 4.1 **THE VALIDATOR, BEFORE AND AFTER, ON THE REAL CORPUS.** Before the
      correction: **exit 1** — *"38 active proposals, 38 declaring — 9
      `implemented`, 3 a named release, 21 named by the register, 5 outside the
      vocabulary"*, the five named by path. After: **exit 0** — *"14
      `implemented`, 3 a named release, 21 named by the register, 0 outside"*,
      with *"archive (read, never judged): 161 proposals, 61 of them outside

scripts/target_release.py:243

  • The closed register is not actually enforced: covered is built from whatever entries the current YAML contains, so a pull request can add a new (change, token) entry and make a new off-vocabulary declaration pass as grandfathered. That lets the exception set grow contrary to the added requirement; enforce an immutable baseline/allowlist (and test addition refusal) rather than relying on the file comment.
    covered = {(e["change"], e["token"]): e for e in register}
  • Files reviewed: 16/16 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.

Comment thread scripts/target_release.py Resolved
Comment thread scripts/target_release.py Resolved
Copilot AI review requested due to automatic review settings September 11, 2026 12:46

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.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (8)

openspec/changes/gate-realization-axis-vocabulary/proposal.md:125

  • The packet's own 'before and after' table has the same stale active-corpus total: this new packet adds one declaring active proposal, so the rows should be 39 active, with 15 implemented after the five corrections. Leaving 38/14 makes the recorded validator evidence and the later 39-change sweep disagree.
| before (this tree, pre-correction) | **1** | 38 | 9 | 3 | 21 | **5** |
| after | **0** | 38 | 14 | 3 | 21 | **0** |

openspec/changes/gate-realization-axis-vocabulary/specs/release-realization/spec.md:96

  • The implementation accepts any contract-vN.N shape when contracts/releases/ is absent (scripts/target_release.py:168-172), but this requirement says the identifier must resolve to a release this estate defines and this scenario only permits a release carried by the registry. In a tree without the registry, invented releases pass the code while violating the normative delta; either fail closed or specify and test the shape-only mode here.
#### Scenario: An active proposal names a release the estate defines
- **WHEN** an active change declares a release identifier and the estate's release registry carries that release
- **THEN** the validator passes
- **AND** a release-shaped name the registry does not carry MUST be refused, because a name that resolves to nothing is not a named release

openspec/changes/gate-realization-axis-vocabulary/tasks.md:160

  • These recorded counts cannot be from this tree: the new gate packet is itself an active proposal, and the later check in §4.6 already reports 39 active changes. Including this packet, the validator's before/after rows should be 39 active/declaring and 15 implemented after the five corrections, not 38 and 14; the current evidence is internally inconsistent with the code being reviewed.
      correction: **exit 1** — *"38 active proposals, 38 declaring — 9
      `implemented`, 3 a named release, 21 named by the register, 5 outside the
      vocabulary"*, the five named by path. After: **exit 0** — *"14
      `implemented`, 3 a named release, 21 named by the register, 0 outside"*,

openspec/changes/register-gate-rules-council-seats/proposal.md:3

  • This changes a ratified packet despite its own ratification record saying to change nothing in proposal.md beyond Status and Ratified, with the ratified text serving as the record (review/ratification-2026-09-06.md:164-167). The custody check in this packet covers archive gates, not that packet-specific ruling; keep this carrier registered or obtain and encode an amendment before changing the line.
target_release: implemented — no contract bundle is cut by openxFactory. Nothing under `contracts/openxwallet/` or `contracts/schemas/` is authored or edited here; the pin advance CONSUMES an openXwallet bundle (`wallet-v1.5` or later) rather than publishing one, and no `contracts/manifest.yaml` row or `contracts/CHANGELOG.md` line is owed on this side.

scripts/target_release.py:172

  • When contracts/releases/ exists, this branch never applies RELEASE_ID_RE; any token is used as a filename. A token such as typo or a path containing ../ can therefore be accepted when a matching file exists, even though it is not a release identifier and the path can escape the registry. Validate the token shape before joining it to the registry.
    return (registry / f"{token}.digests.yaml").is_file(), True

scripts/target_release.py:208

  • The register contract requires each standing exception to carry a citation, but load_register validates only five fields and accepts an entry with no cited_to. That lets the --register API grandfather an off-vocabulary declaration without the evidence required by the added requirement; the live-corpus test only protects this repository's current register. Validate cited_to as a non-empty list of non-empty strings here.
        for key in _REQUIRED_ENTRY_KEYS:
            value = entry.get(key)
            if not isinstance(value, str) or not value.strip():
                raise TargetReleaseError(
                    f"register entry {index} ({entry.get('change')!r}) is "
                    f"missing a non-empty `{key}:`")

scripts/target_release.py:171

  • This fallback admits any contract-vN.N token when contracts/releases/ is absent, even though the added requirement says a release must resolve to one the estate defines. In a registry-less tree, contract-v999.999 therefore passes without resolving anywhere; either fail closed or encode this shape-only exception explicitly in the normative requirement and its scenarios so the contract matches the implementation.
    if not present:
        return bool(RELEASE_ID_RE.match(token)), False

scripts/target_release.py:304

  • An archived proposal with a present but empty target_release: is skipped here because token is None, so it is not included in archived_off_vocabulary. The active path correctly treats that state as outside the vocabulary, and the requirement says the archive is read and counted; count this case as off-vocabulary without refusing it.
        if not present or token == IMPLEMENTED or token is None:
            continue
  • Files reviewed: 16/16 changed files
  • Comments generated: 4
  • Review effort level: Lite

Comment thread scripts/target_release.py Resolved
Comment thread scripts/target_release.py Resolved
…e release token before any path, require and shape-check cited_to

Both threads from the draft pull request's first automated review round are
REAL defects in this packet's own new code, both are TAKEN IN FULL, and each
was reproduced on a built tree before it was fixed.

(a) `resolves_as_release` matched `RELEASE_ID_RE` on the NO-REGISTRY branch
only, so where the registry exists the author-controlled value token went
straight into `contracts/releases/<token>.digests.yaml`. Measured before the
fix: with `contracts/elsewhere.digests.yaml` planted one level above the
registry, `target_release: ../elsewhere` resolved `(True, True)` and the scan
reported 0 findings, 1 a named release; a planted
`contracts/releases/none.digests.yaml` did the same for the bare word `none`,
the value this gate exists to refuse. The shape is now the FIRST test in EVERY
branch, so a token that fails it never becomes a path component.

(b) The ADDED requirement has every standing register entry carry "the value
token as it stands, the class of divergence, the reason, a citation, and the
event that retires the entry", but `_REQUIRED_ENTRY_KEYS` omitted `cited_to`
and only a test over this repository's own register asked for it. Measured:
`load_register` accepted an entry with no citation at all and `scan` used it to
grandfather a declaration. `cited_to` is now a required key, shape-checked as a
non-empty list of non-empty strings.

SWEPT FOR THE SAME TWO CLASSES — author-controlled text that reaches a path,
and a constraint the requirement states that only a corpus test enforces — and
two more found and fixed: a register entry's `change:` is resolved under
`openspec/changes/` by every consumer and is now shape-checked as one directory
segment (`CHANGE_ID_RE`); the CLOSED class set lived as a literal inside one
corpus test and is now `REGISTER_CLASSES` beside the loader, enforced for every
tree, with the corpus test reading the module's set rather than a second copy.
Measured and NOT taken: the register's own `schema_version:`/`kind:` are left
unenforced by the loader, because the requirement does not name them and
refusing a consuming tree's register for a field it never asks for would exceed
it.

Tests: 32 -> 46, fourteen added (six pinning the token-before-path guard in
both branches including `../elsewhere` and `/etc/passwd`, five pinning the
citation's shape, three pinning the swept classes), all fourteen failing
against the code as it stood. No existing test is renamed, flipped or deleted;
`_entry()` gains the citation the loader now requires and
`test_an_entry_missing_a_required_key_refuses` keeps its subject.

Draft records re-measured, never carried: `proposal.md` `code_surface:` and
tasks.md 3.5 carry 46 counted from a collected run; tasks.md 4.1's after-run is
re-taken on the tree as it now stands (39 active, 39 declaring, 15
`implemented`, 3 a named release, 21 registered, 0 outside; exit 0), against
the same validator pointed at origin/main 38c076d (38 active, 9
`implemented`, 5 outside; exit 1). `design.md` gains D8. The packet stays a
DRAFT with no approval pair; refs #956.

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

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

Unresolved validator correctness findings remain, along with a stale README test count.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (3)

scripts/target_release.py:375

  • This accepts any entry present in the current register, but nothing enforces the register's declared CLOSED set. A future pull request can add a new {change, token} entry with valid metadata and this branch will mark that otherwise-invalid declaration as grandfathered, allowing a new divergence without changing the specification. Please make register additions fail (for example by comparing against an immutable approved entry set) rather than relying on review discipline.
        if key in covered:
            matched.add(key)
            grandfathered.append(key)

scripts/target_release.py:204

  • read_front_matter merges repeated prose headers, so a proposal containing target_release: implemented followed by a second target_release: none is returned as one string and value_token() sees only implemented; the invalid duplicate is therefore accepted. Reject duplicate target_release: declarations before judging (or make the shared loader reject them) so a later value cannot be hidden behind the first.
        front = fm.read_front_matter(proposal)

scripts/target_release.py:235

  • This fallback admits every contract-vN.N token when contracts/releases/ is absent, so a consuming tree would accept an invented value such as contract-v999.999. That contradicts the added requirement/scenario, which requires a release carried by the estate registry and refuses a release-shaped name with no inventory; either fail closed here or explicitly encode the shape-only exception in the requirement.
    if not present:
        return True, False
  • Files reviewed: 16/16 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread scripts/target_release.py Resolved
Comment thread README.md Resolved
…se a repeated declaration, and close the register against a recorded baseline

Four threads, all four TAKEN. Two of them are one defect seen from both ends.

(a) A REPEATED DECLARATION WAS HALF-READ. `target_release:` is a PROSE header,
and the shared strict loader refuses a repeated STRUCTURED field as the
duplicate key it is while JOINING a repeated prose header into one raw string —
a deliberate, documented posture of that module. This reader then tokenized the
join. Measured against the code as it stood: a block declaring
`target_release: implemented (the main line)` and then `target_release: none`
came back as `'implemented (the main line)\ntarget_release: none'` and
tokenized as `implemented`, showing a reviewer two declarations and authorizing
the first. `declaration` now refuses the repeat by name, on the value the
loader returned, whose own leading header the loader has already stripped — so
the shared loader is NOT edited and no second front-matter parser is written.

(b) THE CLOSED REGISTER WAS NOT CLOSED (the requirement text and the loader,
two threads, one defect). The requirement SHALLs a register that is removable
and never addable and the register file's header says so, but every new
`(change, token)` pair was accepted: a later pull request could have appended
an exception and made any off-vocabulary declaration pass with the gate green
and no change to the specification — the register reproducing the very defect
it was built to close. `CLOSED_REGISTER` now records the 21 pairs the register
carries at this gate's landing and `load_register` refuses an entry the
baseline does not carry. A baseline may be a strict SUPERSET, because removal
is the one lawful direction. It binds the HOUSE register only: `--register
PATH` serves the tests and a consuming tree, whose closure is that
repository's own record, and a caller may pass its own baseline. It is not
tamper-proof and does not claim to be — what it buys is that an addition
cannot be made by appending a line to a data file, and must be written where
the refusal is written, beside the reason, in a diff that shows the act.

(c) TWO COMPLETED TASKS WERE LEFT UNTICKED. The README active row and the
sweep-ledger row both landed in `13ff6162` while tasks.md 4.11 and 4.9 still
read as owed — a completion ledger disagreeing with the diff, in a packet whose
method is that the task list is the record. Both are ticked, each on the
output it was ticked for, each naming the commit that did the work.

The requirement gains the two sentences and the two scenarios these refusals
answer to, because a gate that refuses something canon does not name is a gate
nobody can appeal. Tests 46 -> 54: three on the repeated declaration (the unit
refusal, the end-to-end finding with no traceback, and a multi-line gloss that
must still pass) and five on the baseline (an entry outside it, a token moved
off it, a wider baseline being lawful, a command-line register carrying no
house baseline, and the live register measured against its own). All eight
fail against the code as it stood.

Figures re-measured, never carried: proposal.md `code_surface:`, tasks.md 3.5
and the README active row all carry 54, counted from a collected run; the
per-section breakdown is a count of `def test_` under each banner in the file.
`python3 -m pytest tests/target_release -q` exit 0, 54 passed. The packet stays
a DRAFT with no approval pair; refs #956.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 11, 2026 13:14
…the release-id shape the estate's own, asserted against the inventory schema

Two threads, both TAKEN, and the first is a regression the round-1 fix
introduced.

(a) THE RELEASE-ID SHAPE WAS NARROWER THAN THE ESTATE'S OWN. `RELEASE_ID_RE`
admitted two components; `contracts/releases/release-digest-inventory.schema.yaml`
`$defs.bundle_tag` — where this estate DEFINES the shape of a release tag —
admits two or three. Before `b88ea425` the shape was consulted only on the
no-registry branch, so a three-component release resolved by finding its
inventory; making the shape the FIRST test in EVERY branch closed the traversal
and in the same stroke imposed a narrower vocabulary than the estate's own on
the branch that previously had none. Measured: 47 inventories under
`contracts/releases/`, all two-component, so nothing in the corpus was refused
and the defect was latent rather than standing — the next three-component cut
would have met it at the gate. The pattern is now the schema's, RESTATED rather
than imported (this module must judge a consuming tree that carries no
`contracts/`), with the equality asserted by a test that READS the schema, so a
drift is a test failure rather than a release refused. That is the device
`frontmatter_strict` already uses for the lifecycle window it restates from
`doc_health`.

(b) THE README ROW'S TEST FIGURE WAS STALE — 32 where `proposal.md` and
tasks.md 3.5 had been re-measured to 46. Already corrected in `989c7059`
before the thread was read, and re-measured again here. Stated now as a rule
rather than a habit: the figure moves in all three places in the same commit,
every time.

Tests 54 -> 59: the shape asserted equal to the schema's pattern, a
three-component release resolving against a registry, its shape accepted with
no registry, a FOUR-component name still refused, and a three-component
declaration passing end to end.

Figures re-measured, never carried: proposal.md `code_surface:`, tasks.md 3.5
and the README active row all carry 59, counted from a collected run.
`python3 -m pytest tests/target_release -q` exit 0, 59 passed;
`validate-target-release.py .` exit 0; `openspec validate
gate-realization-axis-vocabulary --strict` exit 0; `proposal-support.py .
verify`, `validate-sequenced-after.py .` (+ `--ledger-diff`) and
`validate-scope-globs.py .` all exit 0. The packet stays a DRAFT with no
approval pair; refs #956.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Critical release-resolution inconsistencies remain, along with parser, verification, and documentation issues.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (2)

openspec/changes/gate-realization-axis-vocabulary/proposal.md:2

  • The PR body still reports this module as 32 tests, while the changed file contains 54 test_ functions and the packet/README record 54. Update the body and gate evidence so the verification count is not contradictory.
code_surface: openxFactory — `scripts/target_release.py` (NEW, the reader and judge), `scripts/validate-target-release.py` (NEW, the house validator CLI), `scripts/target-release-register.yaml` (NEW, the closed grandfather register) and `tests/target_release/test_target_release_gate.py` (NEW, 59 tests) that pin them. NOTHING EXISTING IS EDITED IN THE CODE SURFACE: no arm of an existing validator moves, no existing test is edited, renamed, flipped or deleted, no workflow changes (the required `pytest-suite` already runs `tests/`), no contract member, no schema and no report field. The reader reaches the declaration through the SHIPPED strict loader `scripts/frontmatter_strict.py` and adds no second parser. Beside the code, the SAME pull request corrects FIVE active proposals' `target_release:` VALUE TOKEN (`none` → `implemented`, every prose gloss preserved verbatim, one line per file, five lines in all) — see `design.md` D2.

openspec/changes/gate-realization-axis-vocabulary/tasks.md:284

  • The required full-suite verification is still unchecked, and this packet records only the focused tests/target_release run. Because enforcement depends on collection by the full pytest-suite, run python3 -m pytest tests/ -q -m "not postgres" and record the before/after counts before treating verification as complete.
      failures"*, the two being the PRE-EXISTING accepted exceptions
      `add-chain-attestation` and `add-composed-view-authoring`, neither of
  • Files reviewed: 16/16 changed files
  • Comments generated: 5
  • Review effort level: Lite

Comment thread scripts/target_release.py Resolved
Comment thread scripts/target_release.py Resolved
Comment thread README.md Resolved
Copilot AI review requested due to automatic review settings September 11, 2026 13:21
…de the shape-only fallback in canon, and anchor the repeat guard at column 0

Five threads, all five TAKEN.

(a) THE SHAPE-ONLY FALLBACK CONTRADICTED THE REQUIREMENT'S OWN MUST (two
threads, the scenario and the code). The scenario said a release-shaped name
the registry does not carry MUST be refused; `resolves_as_release` accepts the
SHAPE where the scanned tree carries no registry at all, so by the letter of
the scenario `contract-v999.999` passed in a tree that defines no releases. The
fallback is not an accident — the module has documented it from the first
draft, and a gate that refused every release name in a tree that cannot define
one would be unusable in every consuming repository, which tasks.md 6.5 already
names as unswept by design. What was missing is that canon never said it, and a
behaviour a reader can only discover by reading the implementation is the same
defect as a vocabulary only prose asserts. So the fallback is ENCODED rather
than removed: the requirement gains a paragraph (resolution is against the
registry THE SCANNED TREE defines; where it defines none the shape is the whole
test; the weaker judgment SHALL NOT be silent; the shape SHALL be the one the
estate defines), the existing scenario's MUST is qualified to a tree that HAS a
registry, and a new scenario states the fallback. The loudness is TESTED rather
than intended: the run prints "accepted on its SHAPE alone" with no registry
and must not print it with one. Fail-closed was the alternative and is recorded
as refused with its reason.

(b) THE REPEAT GUARD WAS OVER-BROAD AND CAUGHT THE PROSE IT WAS WRITTEN TO
PROTECT. `_REPEATED_HEADER_RE` allowed leading whitespace, and an INDENTED line
in a front-matter block is a CONTINUATION of the gloss — so a gloss reading
`  target_release: the main line` was refused as a duplicate declaration.
Measured: it was. That contradicts the requirement's own rule to judge the
token and never the gloss. The pattern is now anchored at column 0, which is
the shared loader's own notion of a header line
(`frontmatter_strict._TOP_LEVEL`), so the guard and the loader agree on what a
declaration IS rather than each having a private idea. A guard added in one
round is new code and gets the next round's scrutiny like anything else.

(c) THE INVENTORIES WERE STALE (two threads). `proposal.md` still reported
seven scenarios and omitted the two the bench added; the pull-request
description still said 32 tests and seven scenarios. The description had been
rewritten before those threads were read. The proposal's inventory now names
all TEN scenarios and marks which four the bench added. Same lesson as round 3,
now paid for twice: a count or an inventory moves in ALL of its sites in the
SAME commit.

Tests 59 -> 62: the indented gloss that must pass, and the shape-only note
printed with no registry and absent with one. Scenarios 9 -> 10.

Figures re-measured, never carried: proposal.md `code_surface:`, tasks.md 3.5
and the README active row all carry 62. `pytest tests/target_release -q` exit
0, 62 passed; `validate-target-release.py .` exit 0; `openspec validate …
--strict` exit 0; `--all --strict` exit 1 with the same two pre-existing
`disposition-codexfactory-*` failures (99 passed, 2 failed, 101 items);
`proposal-support.py . verify`, `validate-sequenced-after.py .` (+
`--ledger-diff`, 200 rows), `validate-scope-globs.py .` and `doc-health.py
--single-repo .` all exit 0. The packet stays a DRAFT with no approval pair;
refs #956.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved moderate implementation/specification mismatches and stale documentation remain.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (6)

openspec/changes/gate-realization-axis-vocabulary/design.md:219

  • This D3 text still documents the old two-component release shape, but the implemented gate and its tests now intentionally admit two or three components. Leaving the old regex here makes the design record contradict both the code and the later D8c correction.
`^contract-v\d+\.\d+$` is accepted on its own and the run SAYS SO in its output,

openspec/changes/gate-realization-axis-vocabulary/proposal.md:97

  • This summary still says there are seven scenarios, but the delta now defines nine, including the repeated-declaration and closed-register-append scenarios at lines 118-130. The stale count makes the proposal summary inconsistent with the requirement it is asking the owner to ratify.
   TEN scenarios: the refusal, `implemented`, a resolving release, **a tree
   that defines no release registry at all**, an archived record, a registered
   declaration, **a repeated declaration**, **an entry appended to the closed

openspec/changes/gate-realization-axis-vocabulary/specs/release-realization/spec.md:108

  • The implementation's no-registry branch accepts any schema-shaped token as a release (resolves_as_release lines 325-335), even though this requirement says a named release must resolve to one the estate defines and only describes a registry-backed success. An invented contract-v9.9 therefore passes in a consuming tree with no registry; either encode this shape-only exception as a normative scenario/qualification or reject it when no registry exists.
blanket, and refusing makes the correction, or the archive, the event that
forces the re-examination.

#### Scenario: An active proposal declares a value outside the vocabulary

scripts/target_release.py:159

  • The leading [ \t]* makes this duplicate detector match an indented continuation line inside a legitimate multi-line prose gloss, because read_front_matter preserves those lines. A gloss such as target_release: implemented\n target_release: explanatory text is one declaration but is rejected as a repeat; detect only an unindented top-level target_release: line and add that negative case.
#:

scripts/target_release.py:335

  • When contracts/releases/ is absent, this branch accepts every schema-shaped token without resolving an inventory, so contract-v999.999 passes even though no release exists. That contradicts the added requirement/scenario, which requires a release to resolve; either refuse unresolved names or explicitly encode this no-registry exception in the requirement and its scenario.
    because refusing every release name in a tree that cannot define one would

scripts/validate-target-release.py:71

  • report.findings also contains unreadable/strict-loader failures added in scan with token <unreadable>, so this summary counts a malformed proposal as being outside the vocabulary even though no value was parsed. Track a separate outside-vocabulary count or change the wording so the CLI report remains accurate for read failures.
        f"{len(report.grandfathered)} named by the register, "
        f"{len(report.findings)} outside the vocabulary.")
  • Files reviewed: 16/16 changed files
  • Comments generated: 3
  • Review effort level: Lite

Copilot AI review requested due to automatic review settings September 11, 2026 13:26
brettheap and others added 2 commits September 11, 2026 09:30
… the inventories, label the before/after table by tree, and split the hidden task

Three threads, all three TAKEN, all three bookkeeping defects in records this
bench itself wrote.

(a) "47 INVENTORIES" WAS A NUMBER NOBODY COUNTED. D8c's account of the
release-id fix asserted 47 two-component inventories under
`contracts/releases/`. There are 53, which is what D3 and tasks.md 2 had said
from an actual count — so the bench's own evidence line contradicted the
packet's own measurement, in the paragraph arguing that a restatement nobody
checks is a defect. Counted, with the command on the record beside the figure:
`ls contracts/releases/*.digests.yaml | wc -l` -> 53. The conclusion is
unchanged (all 53 are two-component, so the narrow regex refused nothing
standing), which is why the error survived a read: a number that does not
change the conclusion is the easiest to get wrong and the least likely to be
re-derived.

(b) THE PROPOSAL'S BEFORE/AFTER TABLE WAS NOT REPRODUCIBLE FROM ITS OWN
COMMAND. It read `before (this tree, pre-correction) 38 / 9` and `after
38 / 14` under `validate-target-release.py .`, but running that command here
gives 39 / 15: this packet's own proposal.md is an active change declaring
`target_release: implemented` and is judged by its own gate. tasks.md 4.1 and
the pull-request description had both been re-taken; the proposal had not, so
the packet disagreed with itself on the figure a reader checks first. The rows
are now labelled by TREE, the +1/+1 is explained, and the table says the two
rows are the same validator pointed at two trees.

(c) A MISSING NEWLINE HID A TASK. `- [x] 3.10` ran on from the end of 3.9's
paragraph, so the third bench round rendered as prose inside the second rather
than as its own checklist item. In a packet whose method is that the task list
IS the record, a task that does not render as a task is not in the record.

Gates at this tree: `openspec validate … --strict` 0; `--all --strict` 1 with
the same two pre-existing `disposition-codexfactory-*` failures (99 passed, 2
failed, 101 items); `proposal-support.py . verify` 0;
`validate-sequenced-after.py .` 0 and `--ledger-diff` 0 (200 rows);
`validate-scope-globs.py .` 0; `doc-health.py --single-repo .` 0;
`validate-target-release.py .` 0 (39 active, 39 declaring, 15 `implemented`, 3
a named release, 21 registered, 0 outside); `pytest tests/target_release -q` 0,
62 passed. The packet stays a DRAFT with no approval pair; refs #956.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

One or more issues must be addressed before approval.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (2)

README.md:653

  • This current packet summary still says the new gate has 79 tests, but tests/target_release/test_target_release_gate.py contains 84 and the later task entry records the five-test increase. Please update this figure so the README does not report an obsolete test inventory.
  entries, CLOSED against a baseline the validator carries — and 79 tests),

openspec/changes/gate-realization-axis-vocabulary/tasks.md:178

  • This task's current test inventory is stale: the file now contains 84 test functions, while § 3.21 explicitly records the 79→84 addition. Leaving 79 here makes the task ledger internally contradictory; update the count to 84.
- [x] 3.5 `tests/target_release/test_target_release_gate.py` (NEW, **79 tests**,
  • Files reviewed: 19/19 changed files
  • Comments generated: 1
  • Review effort level: Lite

brettheap and others added 2 commits September 12, 2026 14:04
A Copilot thread opened on proposal.md at 17:25Z, after the D8k push
(343af52): the code_surface front-matter line still read "NEW, 79 tests"
for tests/target_release/test_target_release_gate.py, while D8k's own leaf
symlink-guard round had already grown the file from 79 to 84 (design.md D8k,
tasks.md 3.21). Measured on this head before any edit: `grep -c '^def test_'
tests/target_release/test_target_release_gate.py` = 84; `pytest
--collect-only -q tests/target_release/test_target_release_gate.py` collects
84 tests. The summary was one round behind the code it describes.

Two places stated the stale total as a current figure and are corrected to
84: proposal.md's `code_surface:` front-matter line (the line the thread
anchors on), and README.md's `## OpenSpec Records` row for this change,
which restates the same code-surface inventory ("... and 79 tests)").

Left unchanged, deliberately: tasks.md 3.5, 3.19, 3.20 and design.md's D8j/D8k
narrative all state test counts as dated checkpoints of what a specific round
measured at the time (74, 79, then 84 at D8k) — each is true of its own
moment and is not a claim about the file's current total. review/
verification-2026-09-12.md is the dated capture of the tree one merge
earlier; tasks.md 3.20 already records that it is deliberately not rewritten
for later rounds and points there instead.

Re-validated at this head: openspec validate gate-realization-axis-vocabulary
--strict exit 0; pytest tests/target_release -q 84 passed (unchanged, this is
a prose-only fix); validate-target-release.py . exit 0 (42 active, 18
implemented, 3 a named release, 21 registered, 0 outside, unchanged);
doc-health.py --single-repo . exit 0.

refs #956

Lane: openxfactory-1
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Bookkeeping only. `origin/main` moved 5972c8f -> a72f0a7 (#978
decide-disposition-reading-per-family, #998
repoint-chain-anchoring-medxchain-citation, #1005 split-opendox tasks.md
amendment). README `## OpenSpec Records` conflicted on the same one heading
as before: main's new `decide-disposition-reading-per-family` row kept FIRST,
verbatim, with this packet's row immediately after it; no other row touched
and no reflow. `tests/sequenced_after/corpus-ledger.yaml` auto-merged with
both sides' rows intact; `tests/doc-health/test_modified_block_currency_self_gate.py`
and `split-opendox-two-layer-product/tasks.md` came in from main unmodified
by this merge.

The packet's own gate re-run on the merged tree: exit 0 — 44 active
proposals, 44 declaring, 20 `implemented`, 3 a named release, 21 named by the
register, 0 outside the vocabulary. Both changes main brought in declare a
value inside the vocabulary, so D2's ruled sweep still has no further carrier
to take at this head. `pytest tests/target_release -q` 84 passed, unchanged.

refs #956

Lane: openxfactory-1
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 12, 2026 18:07
Bookkeeping only. `origin/main` moved a72f0a7 -> 177ba81 (#981
report-stale-grandfather-dispositions landed while this packet's own merge
of a72f0a7 was in flight). README `## OpenSpec Records` conflicted on the
same heading a third time: main's new `report-stale-grandfather-dispositions`
row kept FIRST, verbatim, with this packet's row immediately after it; the
earlier `decide-disposition-reading-per-family` row (already merged in
db20851) is untouched, and no other row is reflowed.
`tests/sequenced_after/corpus-ledger.yaml` auto-merged with both sides' rows
intact; `scripts/doc_health/families.py`,
`tests/doc-health/test_grandfather_dispositions.py` and the new
`report-stale-grandfather-dispositions` change directory came in from main
unmodified by this merge.

The packet's own gate re-run on the merged tree: exit 0 — 45 active
proposals, 45 declaring, 21 `implemented`, 3 a named release, 21 named by the
register, 0 outside the vocabulary. `pytest tests/target_release -q` 84
passed, unchanged.

refs #956

Lane: openxfactory-1
Co-Authored-By: Claude Sonnet 5 <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Critical and moderate validation findings remain, along with stale verification counts.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (4)

README.md:720

  • The current PR description is stale relative to this committed row and the test file: its code section still says 70 tests and its gate table says 79 passed, while test_target_release_gate.py collects 84 and this row records 84. Rebuild the PR description so its verification claims match the current tree before approval.
  membership and the lifecycle scan set* with one scenario appended, canon's

openspec/changes/gate-realization-axis-vocabulary/proposal.md:2

  • The PR description still advertises stale suite counts: its code summary says 70 tests and its later gate table says 79 passed, while this changed proposal and tests/target_release/test_target_release_gate.py now contain 84 tests (tasks.md § 3.21 records the 79→84 round). Please update the body’s test-count claims and dependent verification narrative to 84 so the review evidence matches this tree.
code_surface: openxFactory — `scripts/target_release.py` (NEW, the reader and judge), `scripts/validate-target-release.py` (NEW, the house validator CLI), `scripts/target-release-register.yaml` (NEW, the closed grandfather register) and `tests/target_release/test_target_release_gate.py` (NEW, 84 tests) that pin them. NOTHING EXISTING IS EDITED IN THE CODE SURFACE: no arm of an existing validator moves, no existing test is edited, renamed, flipped or deleted, no workflow changes (the required `pytest-suite` already runs `tests/`), no contract member, no schema and no report field. The reader reaches the declaration through the SHIPPED strict loader `scripts/frontmatter_strict.py` and adds no second parser. Beside the code, the SAME pull request corrects SIX active proposals' `target_release:` VALUE TOKEN (five `none` → `implemented`, and one declaration that carried no leading token at all — the running sentence whose first word is the article `a` → `implemented`; every prose gloss preserved verbatim, one line per file, six lines in all) — see `design.md` D2 and D2a.

scripts/target_release.py:168

  • This pattern does not quite match the loader's _TOP_LEVEL grammar: frontmatter_strict recognizes target_release: only when the colon is immediate, but this regex also treats target_release : ... as a repeat. The loader therefore keeps that line as continuation/gloss text, while this guard rejects an otherwise single declaration, contrary to the requirement to ignore the gloss. Match the loader's exact top-level form and add a regression for the whitespace-before-colon gloss.
_REPEATED_HEADER_RE = re.compile(rf"(?m)^{FIELD}[ \t]*:")

scripts/target_release.py:560

  • Path.resolve(strict=True) raises RuntimeError for a symlink loop, not OSError. A tracked loop in an active proposal.md path can therefore escape this handler and crash the validator instead of returning None and skipping the escaped path, despite _unescaped's documented refusal behavior. Catch the symlink-loop exception and add a regression test.
    except OSError:
  • Files reviewed: 19/19 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread scripts/target_release.py Resolved
Copilot AI review requested due to automatic review settings September 12, 2026 18:15

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

A moderate custom-register symlink issue remains, alongside unresolved test-count, round-label, and completion-ledger inconsistencies.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (5)

openspec/changes/gate-realization-axis-vocabulary/design.md:1040

  • This is labeled the “twelfth round,” but the packet records D8j as the tenth round and contains no eleventh-round record (the ratification snapshot also says there were ten). Please either renumber D8k to the eleventh round or add the missing round-11 record and reconcile the aggregate counts; the current label leaves a gap in the audit trail.
### D8k — the bench's twelfth round, on the FREEZE push (16:45Z): one thread, TAKEN

openspec/changes/gate-realization-axis-vocabulary/tasks.md:716

  • This completion item remains unchecked even though §3.7–§3.21 record the bench rounds as taken and the PR description says all 29 threads were taken. Either tick §4.12 or state which bench work is still outstanding; leaving it open contradicts the packet's own completion record.
- [ ] 4.12 **THE BOT BENCH**, taken and dispositioned item by item on the

openspec/changes/gate-realization-axis-vocabulary/tasks.md:583

  • This is labeled the “twelfth round,” but § 3.19/D8j is recorded as the tenth and no eleventh-round task appears in this packet. Please either renumber § 3.21 to the eleventh round or add the missing round-11 record and reconcile the aggregate counts; otherwise the completion ledger has an unexplained gap.
- [x] 3.21 **THE BENCH'S TWELFTH ROUND, ON THE FREEZE PUSH (16:45Z): ONE

scripts/target_release.py:448

  • Checking only path.is_symlink() protects the leaf, not a regular register reached through a symlinked parent: for link/register.yaml, the leaf check is false while is_file() and read_text() still follow link and consume bytes outside the checkout. This leaves the --register escape that _registry_present and _unescaped were added to close; resolve the full register path against its intended repository root (preserving the explicitly supported symlinked scan-root boundary) before reading, and add the ancestor case to the regression suite.
    if path.is_symlink():

tests/target_release/test_target_release_gate.py:1

  • The PR description still reports the target-release suite as 70 tests near the top and 79 in the later gate table, but this branch now contains 84 tests and the committed D8k/§3.21 evidence records 84 passing. Please update those current-state claims so the review description does not under-report the coverage added by this PR.
"""`gate-realization-axis-vocabulary` § 3: the `target_release:` vocabulary gate.
  • Files reviewed: 19/19 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread README.md Resolved
brettheap and others added 2 commits September 12, 2026 14:41
Copilot thread PRRT_kwDOTAvnrs6hyYeC: D8k's leaf-level `path.is_symlink()`
guard covers only load_register's own name. `linkdir/register.yaml`, where
`linkdir` is a symlink to an external directory, has an entirely ordinary
leaf, so the guard passed it and `read_text()` still followed `linkdir`,
consuming bytes from wherever it points.

A new `_has_symlinked_ancestor(path)` helper generalizes the same test
`_unescaped` uses for the proposal walk, without the `repo_root` anchor
`_unescaped` has: it climbs `path`'s own ancestors one directory at a time,
refusing on the first symlink, stopping at `/` for an absolute path or `.`
for a relative one. There is no repo_root to check "outside of" here,
because a register named on `--register` is deliberately allowed to live
anywhere a test tree or a consuming repository puts it. `load_register` now
refuses on `path.is_symlink() or _has_symlinked_ancestor(path)`, before
`is_file()` or `read_text()` runs, unconditional on `path`.

Two tests (84 -> 86), both measured failing with the fix stashed and
passing restored: the direct call and the CLI (--register) surface end to
end. On the real corpus the fix moves nothing.

Also folds in Copilot thread PRRT_kwDOTAvnrs6hybFv (PR description stale a
third time: 70/79 vs the committed 86 — rebuilt separately via `gh pr
edit`), and retroactively records design.md D8l / tasks.md 3.22 for the
prior round's code-surface stale-count fix (34bc8ca), which grew the
proposal.md/README.md test-count figures from 79 to 84 without its own
design/tasks narrative at the time. Both proposal.md's code_surface line
and README.md's OpenSpec Records row are bumped 84 -> 86 to match this
round's own addition.

design.md D8l/D8m and tasks.md 3.22/3.23 record both rounds. Re-validated:
openspec validate --strict exit 0; pytest tests/target_release -q 86
passed; validate-target-release.py . exit 0 (45 active, 45 declaring, 21
implemented, 3 a named release, 21 registered, 0 outside, unchanged);
validate-sequenced-after.py --ledger-diff exit 0 (208 rows);
validate-scope-globs.py exit 0; doc-health.py --single-repo exit 0;
proposal-support.py verify exit 0; validate-openspec-cli-pin.py --change
exit 0; --all --no-cache exit 0 (102/2/104, unchanged).

refs #956

Lane: openxfactory-1
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Bookkeeping only. `origin/main` moved 177ba81 -> f663b37: PR #1007 archived
`decide-disposition-reading-per-family` (its proposal directory moved to
`openspec/changes/archive/2026-09-12-decide-disposition-reading-per-family`,
promoting its `## MODIFIED` block into `openspec/specs/doc-health/spec.md`),
and #1001 (a split-opendox carve-manifest change) landed after it. This
merge auto-resolved with NO conflict: the archive REMOVED the active
`decide-disposition-reading-per-family` row this packet's earlier merges
(db20851, 32e57bd) had kept ahead of its own row, rather than inserting
another row beside it, so there was nothing left to reconcile on the same
heading this time. `tests/sequenced_after/corpus-ledger.yaml` auto-merged
with both sides' rows intact; the carve-manifest, carve-arrival and
carve-lines test/script changes from #1001 came in from main unmodified by
this merge.

The packet's own gate re-run on the merged tree: exit 0 — 44 active
proposals, 44 declaring, 20 `implemented`, 3 a named release, 21 named by
the register, 0 outside the vocabulary (down one active/`implemented` from
the pre-merge head, and archive up to 164: the #1007 archive moves
`decide-disposition-reading-per-family` out of the active population this
gate judges and into the archive it only reads). `pytest
tests/target_release -q` 86 passed, unchanged.

refs #956

Lane: openxfactory-1
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 12, 2026 18:43
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Three moderate validator issues remain, and the proposal contains stale test-count verification evidence.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (3)

scripts/target_release.py:663

  • This branch puts strict-loader failures (including repeated target_release: headers) into Report.findings, the same collection used for off-vocabulary tokens. _report() then labels every finding as “outside the vocabulary” and the CLI documentation defines exit 1 that way, so an unreadable proposal produces a false metric and misleading failure classification; distinguish these finding kinds or report a generic finding count.
        except TargetReleaseError as exc:
            findings.append(Finding(
                change, rel, "<unreadable>",
                f"its front matter cannot be read — {exc}"))

scripts/target_release.py:600

  • Path.resolve(strict=True) can raise RuntimeError for a symlink loop on the Python 3.12 runtime used by the test workflow, but this guard only catches OSError. A looped openspec/changes path or ancestor would therefore abort the validator with a traceback instead of being treated as an escaped path, defeating the symlink-boundary contract; catch this exception as well and add a regression case.
        resolved = candidate.resolve(strict=True)
        resolved_root = repo_root.resolve(strict=True)
    except OSError:
        return None

scripts/target_release.py:706

  • An archived target_release: with no value is skipped here, even though the active path above treats that same present-but-empty declaration as outside the vocabulary. This makes the reported archive count undercount frozen malformed declarations and contradicts the requirement to count what the archive carries. Count token is None as archived off-vocabulary without adding an active finding or refusing the archive.
        if not present or token == IMPLEMENTED or token is None:
            continue
  • Files reviewed: 19/19 changed files
  • Comments generated: 1
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

FREEZE — PR #963 (gate-realization-axis-vocabulary, refs #956)

  • Head: 1d08089ac9e178b58a7a5fd95c9889bdbfb9f587 (ready, not draft; origin/main unmoved at f663b379151a563aa2f07b53827d308679bf1b29 since this head was built)
  • Review threads: 36 total / 0 unresolved (last: round-15 Copilot comment on proposal.md, a re-flag of an already-fixed PR-description staleness item — disposed and resolved, Propose gate-realization-axis-vocabulary: keep the two-value target_release vocabulary and gate it (#956) #963 (comment))
  • closingIssuesReferences: []
  • Required checks, all SUCCESS on this head: SonarCloud Code Analysis, lane-line, release-tag-gate, clearing-dispatch-gate, merge-master-approval, openreposhape-pin, openspec-cli-pin, pytest-suite (run 34712087647, 16m19s), signed-execution-chain-gate, wallet-validation. (Sourcery review: skipping, not a required check.)
  • Bench closed: round 15 was a re-flag of an already-fixed item (disposed, verified above); no new round since.
  • mergeable: MERGEABLE

Lane: openxfactory-1

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

LANDING — lane openxfactory-1, session 48fc14@Eagle, 2026-09-12T19:03:37Z, PR #963 into openxFactory main (RATIFIED gate-realization-axis-vocabulary at 1d08089 — Brett Heap 2026-09-12T15:45Z verbatim 'do all as recomended' (PR #963 issuecomment-5646922493); CODE SURFACE — archives only on realization evidence; refs #956)

Guard at 2026-09-12T19:03:37Z on head 1d08089a: six required checks SUCCESS; closingIssuesReferences = []; 0 unresolved threads; no closing-keyword form in any branch commit message; main's newest decided pytest-suite = success; no other-lane unpaired LANDING into openxFactory main. mergeStateStatus BLOCKED = the code-owner-review ruleset that never clears on the author's own account; admin merge on Brett Heap's recorded words. Merge = merge commit.

@brettheap
brettheap merged commit 68ff88b into main Sep 12, 2026
13 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

LANDED — lane openxfactory-1, 2026-09-12T19:03:59Z, PR #963 → 68ff88b (openxFactory main; ratification of gate-realization-axis-vocabulary (#956) landed at head 1d08089; code surface: archive owed on realization evidence; #956 closes at the archive, not here; admin merge commit on 'land each when green'; Rule 6 window closed)

brettheap added a commit that referenced this pull request Sep 12, 2026
… (seventh)

origin/main moved to 68ff88b via PR #963 (gate-realization-axis-vocabulary,
ratified and landed) -- an ADDED requirement in release-realization plus its
own code surface (scripts/target_release.py, scripts/target-release-
register.yaml, scripts/validate-target-release.py, tests/target_release/),
and a mechanical front-matter sweep normalizing several active packets'
proposal.md target_release: lines to the newly-gated vocabulary. Verified
disjoint from this packet: touches neither this packet's own change
directory, openspec/specs/doc-health/spec.md, nor
scripts/doc_health/modified_block_currency.py; the self-gate test file
(tests/doc-health/test_modified_block_currency_self_gate.py) is untouched
by the f663b37..68ff88b range specifically (confirmed by range-diff),
so it neither conflicted nor auto-merged.

ONE conflict, README.md's ## OpenSpec Records block: resolved keeping BOTH
rows, main's new gate-realization-axis-vocabulary row FIRST, this packet's
own row SECOND immediately after (no reflow), matching every prior merge's
resolution rule. tests/sequenced_after/corpus-ledger.yaml auto-merged clean
(PR #963's own ledger row, +1 line). The other proposal.md files git staged
as modified are #963's own mechanical target_release: normalization sweep,
untouched by us. Zero stray conflict markers repo-wide after resolution
(grepped).

refs #955

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 12, 2026
… (eighth)

origin/main moved to 468371d via PR #1009 (carve manifest: declare the S6
/source re-home lines on serve.py and serve_projection.py, Lane
openxfactory-4-opendox-extraction) -- the same carve-manifest declared-edit
pattern as the two prior merges (#1001, #963's own follow-on), touching
docs/opendox-carve-*, three carve/verify scripts and their tests, and the
same single README.md bullet (the cutover-runbook declared-edit total,
910 -> 1042). Verified disjoint from this packet via the commit's own
--stat: touches neither this packet's own change directory, the self-gate
test, tests/sequenced_after/corpus-ledger.yaml, nor
openspec/specs/doc-health/spec.md or scripts/doc_health/
modified_block_currency.py.

README.md auto-merged clean (git "Auto-merging", zero conflict markers) --
the same single-line edit as the prior two carve-manifest merges, nowhere
near this packet's own OpenSpec Records row.

refs #955

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

ARCHIVE WORD for gate-realization-axis-vocabulary — recorded by the orchestrator (window openxfactory-ab [fc32d4]), 2026-09-12T22:25:43Z.

Brett Heap, 2026-09-12T22:25:43Z (given in the lane's window, first-hand, in answer to the orchestrator's statement that the two remaining code-surface packets — report-stale-grandfather-dispositions (#965) and gate-realization-axis-vocabulary (#956) — each require a separate archive word under their own tasks.md (§ 5 — "a separate act on merged-plus-green realization evidence and a separate word"), with the invitation "Say 'archive both' or name one"), verbatim:

archive both

Scope, as the words were put: this is the separate post-ratification ARCHIVE word for BOTH packets, and this comment records it for gate-realization-axis-vocabulary (issue #956). It is not the merge of any pull request. Realization evidence (release-realization's archive gate for a non-empty code surface): this packet's ratification PR #963 merged into main as 68ff88b4091ece46f0ad269643aa316924aa8c65 at 2026-09-12T19:03:47Z, and main's OWN pytest-suite run on that merge commit — run 34713047890 — completed SUCCESS (a decided run at the tree the merge carries; no tree-equality argument is needed). The archive pull request encodes this word and that evidence (tasks.md archive section ticks, the ratification record, the README OpenSpec Records row) citing this comment's URL and UTC and the run id. The ratification word itself was Brett Heap 2026-09-12T15:45Z "do all as recomended".

refs #956 (closes at the archive pull request, not here).

brettheap added a commit that referenced this pull request Sep 12, 2026
…rpus ledger

The prior commit's message described a README.md row move and a
ratification-record addendum as part of that commit, but `git add`'s first
pathspec that round (the already-fully-staged, no-longer-existing old change
directory) made the whole invocation abort silently before it reached the
later pathspecs — so neither file was actually staged, and the prior commit
carried only the packet renames and the spec.md promotion. Caught by
re-verifying `git show <sha> --stat` against the commit message rather than
trusting the pre-commit `git diff --cached` output alone. This commit lands
the two files that were meant to land last time, unchanged from what was
verified then, plus the ledger seed that depends on this archive already
being visible on the branch:

- README.md: the OpenSpec Records row move, Active -> the top of Archived
  (newest-first).
- review/ratification-2026-09-12.md: the "## 9. Addendum" section.
- tests/sequenced_after/corpus-ledger.yaml, seeded with
  `python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by
  '#1014'`: exactly one row changed, gate-realization-axis-vocabulary from
  `state: active, moved_by: "#963"` to `state: archived, moved_by: "#1014"`.
  `--ledger-diff` before the seed reported 4 findings (1 stale row + 3
  derived-total mismatches); after, "per-change sweep ledger consistent with
  the corpus (209 rows)", exit 0.

refs #956

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 13, 2026
…h README rows and both ledger rows

openxFactory PR #1014 archived `gate-realization-axis-vocabulary` and promoted
its ADDED requirement *Realization axis vocabulary is gated* into
`openspec/specs/release-realization/spec.md`, merging to `main` at
2026-09-12T20:49Z as `a1429885` — after this branch was cut. Merged in rather
than rebased: this repository refuses non-fast-forward pushes, so history is
final and a merge is the only lawful way to take it.

ONE FILE CONFLICTED AND THE RESOLUTION IS THE UNION.
`tests/sequenced_after/corpus-ledger.yaml`, one hunk, two rows against one: this
branch carried `gate-code-surface-declarations` (active, `#1018`) beside
`gate-realization-axis-vocabulary` (active, `#963`), and main carried the latter
alone at `archived`, `#1014`. Resolved by keeping BOTH rows, ours ACTIVE and the
sibling's at MAIN'S ARCHIVED STATE — never our stale `active` for it, and never
main's row alone. **VERIFIED BY THE TOOL RATHER THAN ARGUED**: `python3
scripts/validate-sequenced-after.py . --ledger-diff` — exit 0, *"per-change sweep
ledger consistent with the corpus (211 rows)"* — so no re-seed was needed, which
is the better outcome: `--seed-ledger` would have restamped `moved_by` on rows
this branch never moved.

THE README BLOCK AUTO-MERGED AND BOTH EDITS SURVIVED, checked rather than
assumed: our ratified `gate-code-surface-declarations` row stands under *Active
changes*, and the sibling now appears at its ARCHIVED standing at
`openspec/changes/archive/2026-09-12-gate-realization-axis-vocabulary/`.

ONE CITATION REPOINTED, AND ONLY ONE.
`.openspec.yaml`'s `related:` entry moved from the sibling's ACTIVE id to
`openxFactory:change:archive/2026-09-12-gate-realization-axis-vocabulary`, the
form this block already uses for archived entries. Every other reference in this
packet names the change IN PROSE, which an archive does not invalidate; there is
no path-shaped citation of the sibling anywhere under
`openspec/changes/gate-code-surface-declarations/` (grepped). `design.md` D7
gains a paragraph recording that the predicted landing happened, what moved, and
that its pasted sibling-search capture is a DATED reading of a tree that has
since moved — left as the dated capture it is rather than rewritten.

NOTHING IN THIS PACKET'S CANON MOVED, AND THAT IS CHECKED. All three ADDED
titles are still novel against the promoted specification the archive produced
(0 other files carry any of them), `sequenced_after: []` still holds because no
active change modifies a title this delta writes, and the ADDED-only reasoning
is unchanged — the `## MODIFIED` block over *Realization axis declaration* it
turns on belongs to `add-structured-scope-substrate`, which is still ACTIVE.

VERIFIED ON THE MERGED TREE: `openspec validate gate-code-surface-declarations
--strict` exit 0; `--all --strict` exit 1, `Totals: 104 passed, 3 failed (107
items)` — the SAME three pre-existing `disposition-codexfactory-*` failures, and
the item count down by one from this branch's pre-merge 108 because #1014's
archive removes one `change/` item while its promotion adds no new `spec/` one;
`proposal-support.py . verify` exit 0; `validate-target-release.py` exit 0 ("45
active proposals, 45 declaring … 0 outside the vocabulary"),
`validate-scope-globs.py` exit 0, `validate-sequenced-after.py` exit 0 and
`--ledger-diff` exit 0.

Refs #1013.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants