Skip to content

Propose add-citation-remainder-report: a packet_reference report CLI for the citation remainder (#1053, option (b)) - #1069

Merged
brettheap merged 71 commits into
mainfrom
change/add-citation-remainder-report
Sep 17, 2026
Merged

brettheap merged 71 commits into
mainfrom
change/add-citation-remainder-report

Conversation

@brettheap

@brettheap brettheap commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-1 (openXfactory-1)
Claim: #1053 (comment)

PROPOSAL — add-citation-remainder-report, Status: ratified. RATIFIED by Brett Heap, 2026-09-17T12:12:06Z, in session to lane openxfactory-1, verbatim "ratify #1069" (bare: D1–D7 at their RECOMMENDED options; record); the ratification is recorded in the packet at 96f66fe9 (Status: ratified ×3, Ratified: line, § 1.17, .openspec.yaml approved_by/approved_on, README bullet). On his further word "fold it in before landing" (record) D3(c)'s three-line window and five cross-repository signals were promoted into the spec at c6ef48b1 (scenarios 22 → 29). On his second fold-in word "fold them in before landing" (record) the five held normative spec.md threads — the remainder-entry unit, the truncated/punctuation-stripped precedence, the tracked-tree declaration beside HEAD, the promoted refinement semantics, and fixture-path's measured predicate — were folded into the spec at b332a518 (scenarios 29 → 37). Round-nine clarifications of those rules (resolve-first before stripping any grammar-admitted trailing character; the filtered count defined in tokens with its labelled identity count) were applied at 9064fd4c under the same word (scenarios 37 → 43). Landing word: "land it when green, then start realization". Lands under Rule 6 on green checks. (This paragraph replaced the pre-ratification lead on 2026-09-17; the original read: "Status: draft, awaiting Brett Heap's ratification word.") It answers openxFactory #1053 (the § 6.1 successor add-declared-former-id commissioned and its archive #1064 → c7daca4f filed) under the issue's own recommended option (b): a packet_reference report CLI that prints the corpus-wide openspec/changes/… citation remainder, run nightly outside doc-health, with (a) the twenty-fourth doc-health family sized and SEQUENCED as the later step once the remainder is measured stable. Claimed before authoring, on Brett Heap's word 2026-09-16T13:3xZ "claim #1053 and #1013, fan out wide" (#1013 was not claimed: lane openXfactory-5 holds it). refs #1053 — no closing keyword: #1053 closes at realization or archive, on a word.

NOTHING IS PROMOTED, NOTHING IS REALIZED. No file under openspec/specs/, scripts/ or .github/ moves; the one file under tests/ that moves is the machine-seeded sweep-ledger row (--seed-ledger, +1 line). The realization is a LATER pull request after ratification, per tasks.md § 2. THIS PULL REQUEST TOUCHES openspec/changes/, SO ITS LANDING IS A RULE 6 ACT — the orchestrator posts LANDING/LANDED, on the ratification word.

The seven decisions (each RECOMMENDED with its alternatives in design.md; a bare "ratify" takes all seven as recommended — veto any by name)

  • D1 HOME — (b), the report CLI outside doc-health. (a) is costed from promoted text: a ## MODIFIED block restating the whole twenty-three-family enumeration, the families.py registry edit, the numeral, and a severity decision canon says must FOLLOW a population measurement; it is sequenced, not rejected. (c) nothing is the posture that hid Nothing validates that a disposition's cited_to path resolves: three cited_to paths in contracts/openspec-cli-pin.yaml dangle after the #834 rename and the pin validator exits 0 either way #840's danglers.
  • D2 SURFACE — a sibling scripts/report-citation-remainder.py importing the library, so packet_reference.py stays what its docstring says ("a library, no CLI"). Exit code ALWAYS 0; no --fail-on (reserved for (a)); identity-grouped by default; one argument surface [--json] [--all] [--tokens] [--history] [--include] [--exclude]; --history opt-in because the git-history probe is 17.0 s of a 19.0 s run and decides one class.
  • D3 RECIPE — stated IN the requirement so it reproduces: the file population, the token grammar, the four normalizations add-declared-former-id § 6.1 successor: the citation remainder has no reporting sweep (unclaimed) #1053's prose left unstated (trailing .// stripped; NOT_A_PACKET_REFERENCE held out of the raw-absent population; the archive history glob spelled archive/*-<id>/*; the cross-repository qualifier count is taken over the WHOLE token population (22 at b1df95ee, of which 21 are raw-path-absent, so the this-tree population is 153 − 21 = 132 — the packet's and add-declared-former-id § 6.1 successor: the citation remainder has no reporting sweep (unclaimed) #1053's own recipe, corrected here from an earlier misstatement in this description), and a suspected cross-repository citation flagged possibly-cross-repo and left IN the count, never dropped.
  • D4 CLASSES — THREE asserted mechanical classes with measured precision (synthetic-by-location 17/18 zero false positives; tokenization artifact 4/4; never-existed-by-history), beside possibly-cross-repo as an ADVISORY FLAG (never a class) and file-half as resolver-outcome metadata, plus an honest unclassified for what needs intent (corrected here from "four mechanical classes" to the ratified class/flag contract in tasks.md § 1.13 and design.md D4); nothing is repaired — the parent's D4 posture inherited whole.
  • D5 NIGHTLY WIRING — artifact-only, one step in doc-health-reusable.yml (openxFactory has no schedule trigger of its own; scheduling belongs to the aggregation repo's thin nightly, per that workflow's header); a committed rolling report is refused by name because health/ is inside the population and would count its own output.
  • D6 "STABLE" — three conditions over N = 14 nightly runs (unclassified identities not growing; ≤ 3 new identities, each attributable; mechanical classes at zero net). N = 14 and the 3 are the most vetoable figures in the packet; meeting them is a trigger to PUT the (a) question, not authorization.
  • D7 FENCES — no citation edited; nothing cross-repository resolved (only suspected); check_citations in validate-pin-registrations.py untouched; no doc-health file moves. Each proven as a git diff reading 0 against the merge-base.

Evidence (measured, not quoted)

evidence/measurement-b1df95ee.md — the deep re-measurement at main b1df95ee through the landed resolver: INCLUSIVE remainder 78 (#1053: 80), THIS-TREE-ONLY 57 (59), true in-tree by manual read 39 (~48), AMBIGUOUS 0; all 57 classified. The method is not a variable: run at #1053's own commit 8944758c it reproduces all twelve of the issue's published figures exactly, so every delta is corpus movement — the whole −2 is PR #1064's archive moving two fixture citations under the excluded archive/. design.md D0 measures this packet's own effect on the population it characterizes (its fourteen tokens; final head 2,979 files / 594 tokens / 504 RESOLVED / remainder 82, re-measured after the fix round — identical).

Authoring record

Authored by the lane's writers in fresh clones; independently VERIFIED against a 90-item acceptance checklist written from the sources of obligation BEFORE the packet existed (brett-wip:handoffs/xFactory/attachments/openxfactory-1-2026-09-13/1053/checklist-1053.md, verify-1053.md): 86 PASS / 4 FAIL at b07a4885; all 13 findings (4 blocking, 5 non-blocking, 4 nits) taken one commit each — none moved a D1–D7 recommendation (tasks.md § 1.10–1.16 byte-unchanged). The code_surface: head is the bare identifier openxFactory with an em-dash gloss, the shape PR #1029's reader admits (probed at its branch: exit 0, 0 outside the grammar, register unmoved — head-verify.md).

Validation at the final head (fresh clone; verbatim tails in encode-1053-final.md)

command verdict
openspec validate add-citation-remainder-report --strict PASS
openspec validate --all --strict PASS — 106 passed / 2 failed (108 items); the two pre-existing, dispositioned: add-chain-attestation, add-composed-view-authoring
validate-openspec-cli-pin.py --all --strict (pinned 1.12.0, content-addressed) PASS — 0 undispositioned
proposal-support.py . verify PASS
validate-sequenced-after.py . PASS — 46 active, 15 declaring
validate-former-id-arrival.py . --base origin/main --head HEAD PASS — 0 moves
validate-target-release.py . / validate-scope-globs.py . PASS / PASS
pytest tests/proposal-support tests/sequenced_after tests/doc-health -q PASS — 2311 passed
pytest tests/ -q -m "not postgres" (the pytest-suite gate) PASS — 7463 passed, 21 skipped
doc-health vs same-kind control at main, both --as-of 2026-09-16 PASS — diff EMPTY (88 = 88)

refs #1053

🤖 Generated with Claude Code

brettheap and others added 22 commits September 16, 2026 14:23
…ion remainder report

`add-declared-former-id` shipped the RESOLUTION RULE
(`scripts/packet_reference.py`) and deliberately did not ship the report of
what that rule still cannot resolve; its `design.md` D4 ruled the sweep out on
COST and its `tasks.md` § 6.1 commissioned the successor, which the
orchestrator filed as openxFactory #1053. This packet is that successor's
answer, authored under the issue's OWN recommended option (b) — a report CLI
outside doc-health — with option (a), the twenty-fourth doc-health family,
SIZED rather than feared.

RE-MEASURED AT `b1df95ee`, NOT QUOTED, and run through the LANDED resolver
rather than a hand-rolled raw-path check: 2,973 files in scope of 5,466
tracked, 586 distinct `openspec/changes/…` tokens, 498 RESOLVED (76 of them
RELOCATED, which is the rule earning its keep), 74 DANGLING(identity-half), 7
DANGLING(file-half), 0 AMBIGUOUS, 7 NOT_A_PACKET_REFERENCE — an INCLUSIVE
REMAINDER OF 81 TOKENS carried by 65 citing files. #1053's own reading at
`8944758c` was 80; both are reported, because they are taken at different
commits several merges apart and are approximately, not exactly, comparable.
The CLASSIFIED figures stay #1053's and are cited to it; `design.md` D0 holds
the named slot `evidence/measurement-<sha8>.md` for the deep re-measurement a
sibling writer is taking.

THREE FACTS #1053 DOES NOT CARRY, each of which moved a decision. (i) The 74
identity-half tokens collapse onto 48 DISTINCT IDENTITIES — 18 identities
cited more than once, one of them six times — so D3 prints both counts,
because a reader repairs identities. That this 48 meets #1053's hand-read
"about 48" by a different route is recorded as a COINCIDENCE OF TWO DIFFERENT
QUANTITIES, never as a confirmation. (ii) The token grammar manufactures
remainder in FOUR shapes, not the one #1053 names: 15 trailing `/`, 2 trailing
`-` (a path severed across source lines), 1 trailing `.` (a sentence-terminal
full stop the regex ate, in `contracts/openspec-cli-pin.yaml`), 1 `/./`. (iii)
`openspec/changes/README.md` — the canonical NOT_A_PACKET_REFERENCE example in
`packet_reference.py`'s own docstring — resolves DANGLING(identity-half) here,
because the file does not exist in this tree: the class of a citation is a
function of the tree.

THE DELTA IS ALL-`ADDED` IN A NEW CAPABILITY, `specs/packet-citation-report/`,
and that is measured rather than stylistic: doc-health's family enumeration and
proposal-origin's SEVEN finding classes are each closed by a promoted sentence,
so either home costs a `## MODIFIED` block that replaces wholesale. Five ADDED
requirements over titles that appear nowhere else in the corpus, so no promoted
byte moves and `sequenced_after: []` is the POSITIVE root claim.

SEVEN DECISIONS ARE PUT FOR A WORD, each with its RECOMMENDED option first and
the alternatives costed: D1 the HOME, D2 the SURFACE (a sibling script, so the
library's contract stays a library's), D3 the RECIPE (a suspected
cross-repository citation is FLAGGED, never silently dropped), D4 the CLASSES
(four mechanical, an honest `unclassified`, and nothing repaired), D5 the
NIGHTLY WIRING (artifact-only — `health/` is INSIDE the measured population and
carries 0 citation tokens today, so a committed report would be counted by the
next run), D6 what STABLE means before (a) is takeable, D7 the SCOPE FENCES.

`Status: draft` throughout and drafting provenance only: #1053 was filed AS A
ROUTING RECORD and NOT CLAIMED, and no word of Brett Heap's ratifies any
wording here. Nothing is promoted, nothing is realized: no script, no workflow
and no test is added by this pull request.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…s machine-seeded ledger row

Two records a new active change owes, and neither is hand-written where a
machine can write it.

THE README *OpenSpec Records* ACTIVE BULLET, in the house form the neighbouring
bullets use and marked **DRAFT and HELD for Brett Heap's ratification** — it
carries the re-measured figures (2,973 files in scope, 586 tokens, 81 inclusive
remainder over 48 identities), #1053's own 80 beside them, the recommended
option (b) with option (a) sized from doc-health's promoted text, and the seven
decisions D1 through D7 put for a word.

THE PER-CHANGE SWEEP-LEDGER ROW, seeded by
`scripts/validate-sequenced-after.py --seed-ledger` rather than typed. Exactly
ONE row moved and it is this change's:
`{state: active, class: sole, declares: [], depth: 0, prose: false}` — which is
the machine confirming what the packet asserts, that an all-`ADDED` delta over
novel titles shares no requirement key with any other change and therefore
makes the POSITIVE root claim rather than declaring a parent.

THE `moved_by` VALUE IS A DELIBERATE, DOCUMENTED PLACEHOLDER. The seeder
requires `#<digits>` and this writer opens no pull request and invents no
number, so the row carries the GOVERNING ISSUE's `#1053` — traceable to the
record that commissioned the work rather than to a pull request that may never
bear that number. The ledger's own contract is what makes this safe rather than
false: the field is *"AUTHOR-SUPPLIED AND UNVERIFIED: only its SHAPE is
checked… a pointer for a human reading the history, not evidence."*
`tasks.md` § 3.1 owes whoever opens the pull request the one-command re-seed
with the real number, and § 1.6 says the placeholder is one.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…after it existed

A packet that measures a corpus is part of the corpus it measures, and this one
could not state that until it was written. The recipe from D0 re-run on this
branch: 2,978 files in scope (+5, this packet's own), 587 distinct tokens (+1),
499 RESOLVED (+1), and the REMAINDER UNCHANGED at 81 — 74 identity-half, 7
file-half, 0 ambiguous. The single token it adds to the corpus is
`…/add-citation-remainder-report/proposal.md`, cited from `README.md`, and it
resolves.

BUT IT JOINS THE CITING SET OF THREE REMAINDER ENTRIES, and it joins all three
by QUOTING them as examples: `openspec/changes/README.md` from four of this
packet's own files, and `…/add-composition-drift-cascade/` and
`…/foo/./proposal.md` from `design.md`. A DOCUMENT THAT DISCUSSES A DANGLING
CITATION BECOMES A RECORD THAT CARRIES ONE — which is #1053's own
"self-referential illustrative example" class being created, live, by the
packet that characterizes it.

WHY THIS IS RECORDED RATHER THAN QUIETLY ACCEPTED. It is the same mechanism
`design.md` D5 refuses at a serious size. Here it is three citing-file counts
and no new remainder; in a nightly report committed into the tree it is one
such quotation per remainder line, every night, and `health/` is INSIDE the
measured population and carries 0 citation tokens today. D5's argument for
artifact-only stops being a prediction and becomes a demonstration, and D0(iv)
is the demonstration.

`design.md` D0 gains fact (iv) and D5 the cross-reference; `proposal.md` gains
the paragraph; `tasks.md` § 1.1 records the second reading beside the first.
No decision moves and no requirement changes.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…on does not make

The `code_surface:` declaration listed "the one-line docstring correction
`scripts/packet_reference.py` is owed by D2" among the files the realization
touches. It is not owed under D2's RECOMMENDED option and `tasks.md` § 2.1
already said so: the sentence *"this module is a library and has no CLI"* stays
TRUE when the report is a sibling script, so the module is not edited at all.
The edit becomes owed only if D2 is VETOED in favour of giving the library a
`__main__`.

A code-surface declaration that names a file the recommended design never
touches is a declaration that mis-states the surface, and this field is exactly
the one `gate-code-surface-declarations` exists to make readable. Corrected to
name the surface under the option this packet encodes, with the conditional
stated rather than implied. The declared HEAD does not move: it is still the
bare identifier `openxFactory` followed by a whitespace-preceded em dash.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…ing's run probes

D7 asserted that this packet conforms to `gate-code-surface-declarations` by
construction and argued it from the grammar. The argument was right and the
evidence was second-hand. A sibling writer in this lane has since RUN the real
reader — `scripts/validate-code-surface.py` on that packet's realization branch
at `48bc7de7`, which carries `scripts/code_surface.py` and the eight-entry
closed register — over five probes on a throwaway packet, one `code_surface:`
value at a time. Four shapes are admitted (bare identifier; em dash; opening
parenthesis; colon) and ONE is refused (a bare comma, exit 1, because a comma
is a LIST separator and the reader then tries to read the following word as a
second repository name before running into prose with no opener).

THIS PACKET'S DECLARATION IS PROBE (b) EXACTLY, and the reader answered exit 0
with "0 outside the grammar". So the conformance claim is now a measurement
rather than a reading: head `openxFactory`, gloss opened by a
whitespace-preceded em dash, head parse stopping AT the opener so the gloss's
own semicolon, colon and full stops are never judged. NO REGISTER ENTRY IS
OWED AND NONE IS REQUESTED; the closed register does not move.

The probe table and the refused shape are both recorded, because the refused
one is the more useful half: a comma is the punctuation an author reaches for
first, and nothing in this tree would have told them.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…t raised the remainder by one

`design.md` D0 held a NAMED SLOT for the deep re-measurement and cited #1053
for every classified figure until it arrived. It has arrived — taken by a
sibling writer in this lane at the same head — and is committed as
`evidence/measurement-b1df95ee.md`. The run record, the instrument, the 1.5 MB
per-token JSON and the classification JSON stay in this lane's handoff
attachments and are cited by path: a packet needs the reading, not the dump.

WHAT IT MEASURES. INCLUSIVE remainder 78 (#1053: 80), THIS-TREE-ONLY 57 (59),
TRUE in-tree remainder by a manual read of every token 39 ("about 48"),
AMBIGUOUS still 0. ALL 57 CLASSIFIED AND NONE LEFT `unclassified` —
cross-repository 14, tokenization artifact 4, self-referential 10, synthetic
fixture 18, never-existed 6, pre-tracking rename 1, file-half fixture 2,
file-half stale draft 2 — so #1053's two unclassified tokens are both resolved
on quoted evidence and its "≥10" cross-repository lower bound becomes a
complete enumeration of 14.

AND IT PROVES THE METHODOLOGY IS NOT THE VARIABLE, which is the part that
matters: run against a control clone at `8944758c`, the same instrument
reproduces ALL TWELVE of #1053's published figures exactly. Every delta is
therefore corpus movement, and the whole −2 is one act — PR #1064's archive of
`add-declared-former-id`, which moved its design.md M1/M2 fixture citations
under the excluded `archive/` path.

THREE HONEST READINGS OF ONE CORPUS GIVE 78, 81 AND 86, and D0 now carries all
three side by side. They differ only in whether trailing punctuation is
stripped before dedup and whether NOT_A_PACKET_REFERENCE sits inside the
raw-absent population — the 81-to-86 gap re-derived here as exactly the five
NOT_A_PACKET_REFERENCE tokens that are also raw-absent. None is wrong; they
answer three different questions, and #1053's prose does not say which it
asked. THAT is the argument for D3 stating the recipe IN THE REQUIREMENT, and
it is now evidence rather than a worry.

WHAT MOVED IN THE DESIGN, ON MEASUREMENT RATHER THAN OPINION. D2 gains the
runtime split that makes the git-history probe OPT-IN — 17.0 of a 19.0-second
run, 90%, returning empty for 51 of 57, deciding exactly one class the resolver
cannot; without it the sweep is 2.0 seconds over 2,973 files — and the
by-IDENTITY default (57 tokens are 38 identities). D3 gains the three unstated
steps worth eight points of remainder between them, the ANY-vs-ALL qualifier
choice (22 set aside versus 16), the 22-over-all-tokens versus 21-of-raw-absent
arithmetic that makes #1053's own table sum, and the correction that
`archive/*-<id>` matches NOTHING under wildmatch WM_PATHNAME and must be
spelled `archive/*-<id>/*`. D4's mechanical/human split becomes a measured
precision table: synthetic-by-location 17/18 with zero false positives and
tokenization-artifact 4/4 with zero ship as CLASSES, while possibly-cross-repo
13/14 with 2 false positives and self-referential 10/12 with 2 ship as ADVISORY
FLAGS and never verdicts.

AND D5 STOPPED BEING A PREDICTION. Committing this one evidence report took the
measured remainder from 81 to 82: the new entry is `openspec/changes/foo/`,
minted by the report's own enumeration of the resolver's docstring examples.
One report, committed once, +1 remainder — which is precisely the self-counting
mechanism D5 refuses at nightly scale. D0(iv) carries the four readings as the
packet was assembled, including the third move, caused by `tasks.md`'s fence
proof coming to list the evidence file itself.

`tasks.md` § 1.9 records the evidence as landed and § 2.3 is narrowed to what is
still owed: the first reading the SHIPPED CLI produces, checked against § 1.9's
figures at the same commit, a disagreement being a defect in the CLI rather
than a new fact about the corpus.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
CLEAN AUTO-MERGE, NO CONFLICT. The one incoming commit is `d5dd1ca5`
("Carve floor: the retired: row form (RULED 5656343213)", #1032), and the only
file both sides touch is `README.md`. The two edits are in different sections
and do not overlap: the incoming side rewrites two doc-index bullets near
line 77 (`docs/opendox-carve-manifest.yaml` and `docs/opendox-cutover-runbook.md`,
both gaining the `retired:` row form), and this branch's side inserts the
`add-citation-remainder-report` active bullet at the head of the OpenSpec
Records "Active changes" list near line 531. `git merge` resolved README.md by
the `ort` strategy with both edits kept and reported no conflict; the remaining
twelve incoming files (`docs/`, `scripts/`, `tests/carve_*`) this branch never
touches, so they fast-forward in unchanged.

BOTH EDITS ARE PRESENT AFTER THE MERGE, verified rather than assumed: the
merged README carries the incoming `retired:` sentence in the carve-manifest
bullet and this branch's active bullet in full.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…reproduce at no commit

The verifier re-implemented #1053's recipe and ran it at every commit on this
branch; I re-implemented it a third time, independently of both the packet's
instrument and the verifier's, and got the verifier's numbers to the token:

  b1df95e  2973 files  586 tokens  498 RESOLVED  remainder 81
  e87afeb  2978 files  586 tokens  498 RESOLVED  remainder 81
  daea4c3  2978 files  587 tokens  499 RESOLVED  remainder 81
  3b4f1e1  2978 files  587 tokens  499 RESOLVED  remainder 81
  759c032  2978 files  587 tokens  499 RESOLVED  remainder 81
  1dd7b37  2978 files  587 tokens  499 RESOLVED  remainder 81
  b07a488  2979 files  594 tokens  504 RESOLVED  remainder 82

NO STATE OF THIS BRANCH EVER READ 591 TOKENS OR 503 `RESOLVED`. Rows 2 and 3 of
D0's table claimed both, with deltas of +5/+5 where the measured deltas are
+0/+0 and +1/+1; they read like a working-tree reading taken before the prose
settled, which is the exact drift D0's own opening sentence — "NOTHING BELOW
RESTS ON A NUMBER ANYBODY TYPED" — exists to refuse. The table is now FIVE rows,
each naming the commit it was taken at, so the claim is re-runnable rather than
merely stated.

AND PARAGRAPH (iv) WAS FALSE OF THE TREE THAT WOULD MERGE. It asserted in bold
that the remainder is "UNCHANGED at 81 tokens" on this branch, with 74
identity-half. The branch's final state is 82 — 75 identity-half, 7 file-half, 0
ambiguous — which row 4, `tasks.md` and `proposal.md` all already said, and which
is the whole of D5's committed-report evidence. (iv) now states the final
committed figures (2,979 / 594 / 504 / 82, +6/+8/+6/+1) and the pre-evidence
reading (2,978 / 587 / 499 / 81) side by side, and records that the merge of
`origin/main` `d5dd1ca5` moved none of them — measured, not assumed.

NO DECISION MOVES. D5's recommendation rests on the +1 the evidence report
caused, which is unchanged and now arrives at the row that actually carries it.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…der one heading that forbids drift

The block is headed "THE ARGUMENT SURFACE, STATED SO THE REALIZATION CANNOT
DRIFT" and `tasks.md` § 2.1 says "Argument surface exactly as D2 fixes it" — and
the two halves of D2 named different flags:

  synopsis (design.md)     [--json] [--all] [--identities] [--include] [--exclude]
  option list (design.md)  --tokens  "group by TOKEN; the DEFAULT groups by IDENTITY"
                           --history "OPT-IN … OFF by default, on a MEASURED 8.5x cost"

`--identities` and `--tokens` are opposite spellings of the same switch with
opposite defaults, and `--history` — the ONE flag in the surface with a
measurement behind it (17.0 of a 19.0-second run, returning empty for 51 of 57
tokens) — was in neither the synopsis nor the task line. `tasks.md` § 2.1 had
copied the synopsis, so the spelling the realization would have been built from
was the one the design's own prose denies.

BOTH NOW READ ONE SURFACE, and it is the option list's, because that is the half
the measurement and the "GROUPING IS BY IDENTITY BY DEFAULT" paragraph argue
for: `[REPO_ROOT] [--json] [--all] [--tokens] [--history] [--include PREFIX ...]
[--exclude PREFIX ...]`. § 2.1 additionally states the default and the opt-in in
words, so the task line does not depend on a reader following the cross-
reference.

NO DECISION MOVES. D2's recommended option — the sibling script, the library's
contract left a library's, exit code always 0, no `--fail-on` — is untouched;
this fixes how that option was spelled, not which option it is.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…BIGUOUS had no requirement behind it

`grep -oE "RESOLVED|DANGLING|AMBIGUOUS|NOT_A_PACKET_REFERENCE"` over the delta
returned NOTHING. The delta required the report to print "the citation, its
half, its identity and its citing files" and never said what the four outcomes
are, never said `DANGLING` is itemized split by half, never said `RESOLVED` and
`NOT_A_PACKET_REFERENCE` are counted rather than listed, and never required the
`AMBIGUOUS` row at all.

WHY THAT IS BLOCKING RATHER THAN COSMETIC: PROMOTION PROMOTES THE SPEC. D3(d)
and D2's output rule 4 both make the zero-`AMBIGUOUS` row load-bearing — "the
only outcome that indicts a `former_ids:` DECLARATION rather than a citation,
and a report that omits its zero teaches readers not to look for it" — and
`design.md` is a working file that archives. As drafted, a realization that
never printed the row would have violated no promoted requirement, and the one
number in the report that indicts a DECLARATION instead of a record would have
been optional.

The requirement *The citation remainder is reported* now carries two paragraphs:
the four outcomes named as the rule names them, with which are ITEMIZED (both
halves of DANGLING, separately; AMBIGUOUS) and which are COUNTED (RESOLVED, with
the relocation count inside it; NOT A PACKET REFERENCE); and the rule that the
AMBIGUOUS count is printed at zero, so its absence and its zero cannot be
confused. One scenario is added for it.

ADDED ONLY — no `## MODIFIED` block, so `sequenced_after: []` still stands as the
positive root claim. The delta is now 5 requirements and 14 scenarios;
`openspec validate add-citation-remainder-report --strict` is clean.

NO DECISION MOVES. This promotes what D3(d) already decided; it decides nothing
new.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…ing an unbroken recent convention

MEASURED RATHER THAN ASSERTED, in this tree: of the 46 active changes with an
`.openspec.yaml`, 14 were created on or after 2026-09-07 and THIRTEEN OF THE 14
CARRY A `related:` BLOCK. The fourteenth was this packet. (Corpus-wide the key
is younger than most of the corpus — 24 of 46 active changes carry it — which is
why the recent window is the one that shows a convention rather than a habit.)

NO TOOL READS THE KEY — `grep -rn "'related'|\"related\"" scripts/` returns
nothing — and that is exactly why its absence fails nothing and is caught only by
a reader. The edges this packet depends on existed in prose alone.

SIX ENTRIES, each in the house form the shape twin uses (one id, a hash comment
stating what it is and what it does for this packet), and each target verified to
exist rather than typed: the governing issue #1053; the archived parent
`archive/2026-09-15-add-declared-former-id` whose § 6.1 commissioned this and
whose `scripts/packet_reference.py` this report consumes; issue #840, the
near-miss D1 option (c) is weighed against; the shape twin
`gate-code-surface-declarations`, whose in-flight `validate-code-surface.py` this
packet's own `code_surface:` head was probed against; `add-sequenced-after-
substrate`, which ships the strict front-matter loader that reads the
`sequenced_after: []` root claim; and `archive/2026-09-04-add-per-change-sweep-
ledger`, which owns the ledger file this packet seeds a row in.

The last entry is the one correction to the verifier's proposed block: it
credited the sweep ledger to `add-sequenced-after-substrate`, which does not own
it. The two are separated rather than merged, because a `related:` comment that
misattributes a file is worse than no comment.

`proposal-support.py . verify` and `openspec validate … --strict` both stay
clean; the top-level key order is now `schema, created, origin, related`, the
twin's.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…gitlinks, and no in-scope file is binary

`design.md` D0 and `.openspec.yaml`'s `reason:` both said "Four of the 2,973
in-scope files are binary and are read with character replacement rather than
skipped". Re-measured here on both trees: ZERO in-scope files carry a NUL byte
and ZERO fail a strict UTF-8 decode. The four `git ls-files` entries that cannot
be read as text are mode-160000 SUBMODULE GITLINKS — `installs/omnigent-install`,
`openDox`, `openXdox`, `openXwallet` — confirmed by `git ls-files -s | awk
'$1==160000'`. They are directories, not files.

IT MATTERS BECAUSE D3(a) IS A RECIPE THE SPEC PROMOTES BY REFERENCE AND § 2.1
BUILDS FIXTURES FOR. "Read binary with character replacement" and "skip a
tracked entry that is not a file" are different code and different fixtures, and
the first would have had § 2.1 exercising a path the corpus never takes.

Corrected in all four places, and the real question the gitlink raises is now
answered rather than left implicit: whether another repository's tracked content
belongs in this repository's citation population at all — NO, by D7 fence 2,
which is also why skipping is the population's half of "nothing cross-repository
is resolved". The spec's population requirement gains one paragraph saying a
tracked entry that is not a file is skipped and contributes no token (ADDED
only).

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…e evidence report a token the design also mints

D5's headline evidence said committing "ONE measurement report … a single file,
once" took the remainder from 81 to 82, the new entry being
`openspec/changes/foo/`. MEASURED BY TOKEN-SET DIFF between `1dd7b37d` and
`b07a4885`, seven tokens are new at that commit: five name the packet's own files
(carried by `tasks.md`'s fence proof, all RESOLVED), `…/archive/2026-09-15-`
lands NOT_A_PACKET_REFERENCE, and `openspec/changes/foo/` is the +1. Its citing
set at that commit is FOUR files — the evidence report AND `design.md`,
`proposal.md` and `tasks.md`'s own paragraphs about the +1, which quote the token
in order to name it.

THE MECHANISM IS UNCHANGED AND THE ARGUMENT IS UNCHANGED; the attribution was
narrower than the branch supports, and a ratifier who greps `foo/` finds
`design.md` first. All four passages now say so, which makes D5's point stronger
rather than weaker: the design named the mechanism ("A DOCUMENT THAT DISCUSSES A
DANGLING CITATION BECOMES A RECORD THAT CARRIES ONE") and then performed it.

Also corrected while here: D0(iv)'s table is five rows since FINDING 1, so the
two places that called it "four readings" now say five, each at the commit it
was taken at.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…al that carries OpsxFactory's citations

D3(c) listed #1053's automated qualifier check as "four adjacency heuristics" and
named a path-joined prefix, a forge URL, a bare adjacent qualifier and a trailing
`(RepoName)`. #1053's four are path-prefix-OR-forge-URL, bare adjacent qualifier,
**the `opsx:opensoft/…` custody-locator scheme**, and the trailing parenthetical:
the design split one of them in two and lost the scheme. `grep -rn "opsx"` over
the four authored documents and the spec returned NOTHING — it survived only in
the vendored `evidence/measurement-b1df95ee.md` § 3, which names all four
correctly.

THE DROPPED SIGNAL IS NOT A SPARE ONE. `opsx:opensoft/` occurs 25 times in this
tree, it is the scheme this corpus writes OpsxFactory citations in, and SIX of
the evidence's fourteen hand-found cross-repository tokens are that register's.
D3's own claim is "the recipe, made exact so it reproduces"; a recipe missing the
signal that carries a sixth of the class does not.

D3(c) now says FIVE signals and names the scheme with its measured count. The
spec's signals sentence gains the general form — a locator scheme whose own
prefix names another repository — and one sentence requiring the signal SET to
be stated alongside the window, because the set is as much a part of a
reproducible reading as the window is.

NO DECISION MOVES. FLAG-never-drop, the three-line window and the advisory
verdict are untouched; this adds a signal the recommended rule was always meant
to include.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…eep measurement had not arrived

The section's first bullet read "**The nine manual classes are not re-derived.**
D0's named slot carries that work; until `evidence/measurement-<sha8>.md` exists,
#1053's classification is quoted and attributed, never restated." The file
EXISTS — `evidence/measurement-b1df95ee.md`, committed at `b07a4885` — D0 says
so in bold ("THE DEEP RE-MEASUREMENT IS IN, AND THE SLOT IS FILLED") and D4
restates the classification at length with a measured precision table.

It is a leftover from before the last commit folded the evidence in, and it sits
in the section a ratifier reads LAST, contradicting D0 and D4 head-on. The
bullet now says what is true — the 57 ARE re-derived, with § 5's per-token
evidence lines — and names the thing that genuinely is not re-derived: #1053's
own classification of its own 59 at its own revision, which the evidence's § 5.2
explains the divergence from rather than overwrites.

The placeholder token `evidence/measurement-<sha8>.md` is gone with it, which
also removes the last spelling of a filename that no longer describes anything in
the tree.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…rement titles it presents as verbatim

Both were given inside `### Requirement:` markup, which reads as a quotation of
the delta, and neither matched it:

  proposal said  "… flagged and never SILENTLY dropped"
  delta says     "… flagged and never dropped"
  proposal said  "THE REPORT is advisory and gates nothing"
  delta says     "THE CITATION REMAINDER REPORT is advisory and gates nothing"

A reader who greps either string finds nothing, which is the whole cost: the
proposal's list is the map a ratifier uses to find the requirement in the delta.
Both are now byte-for-byte, and a scripted check confirms all five titles in the
proposal match the five `### Requirement:` headings in
`specs/packet-citation-report/spec.md` exactly.

The third instance of this class — item 1's claim that the report prints the
remainder "by resolver outcome", which the requirement did not say — was fixed
from the other end by FINDING 3, which promotes the four outcomes into the
requirement itself. The proposal's sentence is now true as written.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…is the governing issue number

`tests/sequenced_after/corpus-ledger.yaml` carries `moved_by: "#1053"` for this
row, and `tasks.md` § 1.6 and § 3.1 described it as a placeholder. It is not: it
is a live reference that resolves to the ISSUE this packet answers. And the
`#TBD-<what>` form this lane's brief prescribes for an unknown number is
INADMISSIBLE here — the ledger's grammar is `MOVED_BY = re.compile(r"^#[0-9]+$")`
(`scripts/sequenced_after.py:1211`) and `validate-sequenced-after.py` refuses
anything else — so there is no spelling that could mark the gap.

Both passages now say what the value is and why it is what it is, and § 3.1's
closing clause says what is actually lost by leaving it: a reader pointed at the
commission rather than at the act, which is a weaker record than a wrong one and
is what the re-seed at open repairs.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…s seven independent decisions

The header said "BRETT HEAP RATIFIES OR VETOES BY NAME" and that each decision
"stands whichever way the others go", and then never said whether one word takes
all seven or whether each must be named. With seven veto points that is the first
question a ratifier has, and the packet's whole framing — that a veto should cost
one section rather than the packet — depends on the answer.

Stated now, in the form the shape twin records Brett Heap giving on 2026-09-13
("the bare word 'ratify' takes the packet as encoded"): a bare ratifying word
takes the RECOMMENDED option at all seven, and a veto NAMES the decision and
costs that section alone. It is cited as the house READING this packet asks for
and explicitly NOT as a ruling already given over this packet — which is the same
distinction `proposal.md` draws between the word that commissioned the claim and
a word that ratifies wording.

NO RECOMMENDATION MOVES. This says how to read a word, not which option any
decision takes.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…e sentence

It read: "importing `scripts/packet_reference.py` unchanged EXCEPT FOR the
one-line docstring correction D2 owes it — the sentence … stays TRUE under the
recommended option, so under D2 option 1 that line does NOT change and the
correction is owed only if D2 is vetoed." The clause after the dash withdraws the
exception the clause before it granted, so the task line says both that the
module changes and that it does not.

The front matter already states it cleanly (`proposal.md:2`: "`scripts/packet_
reference.py` itself is NOT edited under D2's recommended option … the one-line
correction is owed only if D2 is vetoed"), and § 2.1 now says it the same way:
UNCHANGED under option 1, the correction owed only under option 2.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…n/main, a ref that moves under it

§ 0's fence block quoted six `git diff … origin/main..HEAD` commands and an
eight-file list. `origin/main` was `b1df95ee` when the block was written and is
`d5dd1ca5` now; run against the moved ref BEFORE this branch took its merge, the
file-list command printed twenty paths — the eight plus twelve of main's own
newer files — and then printed eight again the moment the merge landed. The five
targeted fence diffs read `0` throughout, so the FENCES never moved; only the
proof's base did.

The base is now `$(git merge-base origin/main HEAD)`, which names the same tree
whichever side of a merge the branch is on, and the block says why in one
sentence so the next reader does not "fix" it back. Re-measured at this head:
BASE `d5dd1ca5`, all five fence diffs 0, and the same EIGHT files.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…ther than assumed

D0(iv)'s figures were taken at `b07a4885`, before the merge of `origin/main`
`d5dd1ca5` and before the thirteen fix commits. A ratifier's first question about
a corrected self-measurement is whether the correction invalidated it, so it is
answered by re-running the recipe at the fixed head rather than by reasoning:
2,979 files in scope, 594 distinct tokens, 504 `RESOLVED`, remainder 82 — 75
identity-half, 7 file-half, 0 ambiguous, 8 `NOT_A_PACKET_REFERENCE`, 70 citing
files, 48 identities. Identical to the reading at `b07a4885`.

AND THE REASON IT IS IDENTITY RATHER THAN LUCK IS WORTH ONE SENTENCE: the tokens
a packet adds to the population are the ones it QUOTES, and a correction that
re-words a sentence about a token quotes a token the branch already carried. It
is the same mechanism D5 rests on, observed from the other side.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings September 16, 2026 17:11

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry @brettheap, your pull request is larger than the review limit of 150,000 diff characters

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

Opened at head 78c93e3d = the verified packet at 660a8259 (21 commits: six authoring, one merge, thirteen verifier findings taken one each, one closing re-measurement) plus one more clean merge of origin/main. Status: draft — this PR lands only on Brett Heap's ratification word, as a Rule 6 act. Codex requested above; Copilot's auto-review and the six required checks decide the freeze. Bench replies and fixes will be posted here with their commit shas.

@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

One critical and multiple moderate specification, reproducibility, and consistency issues remain unresolved.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This PR adds a draft OpenSpec packet for a corpus-wide citation-remainder report CLI, with implementation deferred pending ratification.

Changes:

  • Adds proposal, design, specification, evidence, metadata, and implementation tasks.
  • Defines future reporting, classification, nightly artifact, and stability behavior.
  • Updates the README and sequenced-after ledger.
File summaries
File Review summary
tests/sequenced_after/corpus-ledger.yaml Nit (1 vote): reseed moved_by with PR #1069, not governing issue #1053.
README.md Moderate (2 votes): reconcile the figures by including seven NOT_A_PACKET_REFERENCE outcomes and label 48 as the deduplicated identity-half count.
openspec/changes/add-citation-remainder-report/tasks.md Four moderate findings: resolve class-versus-flag treatment, replace the ellipsis command with the actual #1053 invocation, reconcile the 81 versus 78 baseline, and clarify exit-code behavior.
openspec/changes/add-citation-remainder-report/specs/packet-citation-report/spec.md One critical and three moderate findings: define symlink containment, normative extraction rules, binary/invalid-UTF-8 handling, and cross-repository heuristic signals and window.
openspec/changes/add-citation-remainder-report/proposal.md Documents the proposal scope and rationale.
openspec/changes/add-citation-remainder-report/evidence/measurement-b1df95ee.md Moderate (3 votes and 1 vote): address the absent reproducibility instrument and label issue-native measurements clearly.
openspec/changes/add-citation-remainder-report/design.md Four moderate findings: remove the host-absolute path, define include/exclude semantics, qualify the identity count, and specify D6 identity-level aggregation.
openspec/changes/add-citation-remainder-report/.openspec.yaml Nit (2 votes): update stale provenance describing committed evidence as future work.
Review details

Suppressed comments (8)

openspec/changes/add-citation-remainder-report/design.md:739

  • D6 counts identities carrying unclassified, but D4/JSON assign class per remainder token and the packet explicitly has multiple tokens per identity. No rule says how an identity with both a classified and unclassified token contributes, or what unit zero net uses. Define identity-level aggregation and whether class deltas count tokens, occurrences, or identities before using this as a trigger.
1. **THE UNCLASSIFIED COUNT IS NOT GROWING.** Over the last N runs, the count of
   remainder IDENTITIES carrying class `unclassified` has no upward trend — its
   value on the last run is less than or equal to its value N runs earlier.

openspec/changes/add-citation-remainder-report/evidence/measurement-b1df95ee.md:103

  • Section 2.1 labels these as generic distinct tokens, but 571/151/78 are the normalized issue-native readings; §1.1 and §2.3 show the literal extraction at this head as 586/162/86. Without labeling the table, it contradicts the stated token population and makes the “across all four measurements” comparison ambiguous. Mark the table as issue-native or include both readings.
| | M4 @ `9378eca5` | PR #1041 @ `701c8fde` | #1053 @ `8944758c` | **this @ `b1df95ee`** |
| --- | --- | --- | --- | --- |
| distinct tokens | not published | not published | 578 | **571** |
| distinct references, raw path absent | 94 | 104 | 153 | **151** |
| of which resolve BY IDENTITY (repaired) | 58 | 64 | 73 | **73** |
| **remainder, unresolved** | **36** | **40** | **80** | **78** |

openspec/changes/add-citation-remainder-report/specs/packet-citation-report/spec.md:116

  • The capability-wide recipe includes all tracked files but only defines behavior for tracked entries that are not files; it does not say how binary or invalid-UTF-8 files are handled. The zero-binary result at this particular revision is not a contract for other adopters, so implementations can produce different counts or exit behavior. Specify deterministic skip/report, decoding, or failure behavior.
THE FILE POPULATION SHALL BE the repository's tracked files, less three
exclusions, each excluded for a stated reason: the ARCHIVED corpus
(`openspec/changes/archive/`), because an archived packet is frozen record whose
citations may not be repaired; the TEST corpus (`tests/`), because fixtures
deliberately carry synthetic ids and deliberately-absent files; and SPEC KIT
FEATS (`specs/`), because they are another tool's artifacts citing packets
illustratively. An implementation MAY let a caller override the population, and
the report SHALL then state the population it actually used.

openspec/changes/add-citation-remainder-report/specs/packet-citation-report/spec.md:166

  • The cross-repository heuristic is part of the reported series, but this requirement leaves both its signal set and search window to each implementation (shall be stated). D3 recommends five signals and the citing line plus three preceding lines; without making that contract normative, different nightly implementations can report different filtered counts at the same head. Pin the signal set and window here, or explicitly version the reading.
THE SUSPICION IS A HEURISTIC AND SHALL BE REPORTED AS ONE. The signals are
adjacency signals — a path-joined prefix naming another repository, a forge URL
naming another repository, a qualifier word near the token, a locator scheme
whose own prefix names another repository, a trailing parenthetical naming a
repository — and the window in which they are looked for SHALL be stated. The

openspec/changes/add-citation-remainder-report/tasks.md:124

  • The checked-off step records a non-runnable command: --moved-by …. The validator requires ^#[0-9]+$ (scripts/sequenced_after.py:1211), and this task's tick rule says checked measurements must be reproducible. Record the actual #1053 invocation instead of an ellipsis.
      `python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by …`

openspec/changes/add-citation-remainder-report/tasks.md:80

  • This checked-off baseline uses 81, while D3's recommended issue-native reading and evidence's primary table use 78 after the stated normalizations/exclusion; task 2.3 then requires CLI output to match the evidence. Label 81 as alternate/literal and choose 78 (or revise D3/spec) as the canonical acceptance baseline.
      `AMBIGUOUS`, **7** `NOT_A_PACKET_REFERENCE` — **inclusive remainder 81
      tokens**, carried by **65** distinct citing files. `design.md` D0 carries
      the table and the commands. **AND THE SAME RECIPE WAS RE-RUN ON THIS
      BRANCH, AFTER THE PACKET EXISTED**: 2,979 files in scope, 594 tokens, 504
      RESOLVED, **remainder 82 — UP BY ONE**, and the one is

openspec/changes/add-citation-remainder-report/tasks.md:184

  • D2 says the exit code is always 0, but the added requirement explicitly requires non-zero when the tree cannot be read or the root is not a repository (spec.md:237-256). This leaves the realization API contradictory; state 0 for findings and non-zero only when the report cannot run, or remove the failure case.
      (`validate-pin-registrations.py`) imports it. Exit code **always 0** and
      **no `--fail-on`**, which is reserved for D1 option (a).

tests/sequenced_after/corpus-ledger.yaml:78

  • This row still records #1053, but that is the governing issue, not the pull request that moved the row. The ledger contract says moved_by points to the PR, and §3.1 requires reseeding when the PR opens; this change is PR #1069. Please reseed the row with the real PR number so its provenance points to this landing act.
  add-citation-remainder-report: {state: active, class: sole, declares: [], depth: 0, prose: false, moved_by: "#1053", moved_on: "2026-09-16"}
  • Files reviewed: 8/8 changed files
  • Comments generated: 9
  • 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 README.md Resolved
@brettheap

Copy link
Copy Markdown
Contributor Author

RULED — Brett Heap, 2026-09-17T13:33Z, verbatim: "fold them in before landing"

Scope of the word: the FIVE held normative Copilot threads on this PR are folded into the ratified packet before it lands, as the drafted amendment rather than a follow-up PR:

  1. spec.md:385 — the unit of entry (token vs identity) made normative (PRRT_kwDOTAvnrs6jWmQn)
  2. spec.md:392 — precedence between two normalization classes (PRRT_kwDOTAvnrs6jWmRM)
  3. spec.md:80 — read blobs at the printed HEAD / clean-tree or dirty-state rule (PRRT_kwDOTAvnrs6jXaN3)
  4. spec.md:162 — --include/--exclude semantics promoted from D2 (PRRT_kwDOTAvnrs6jX4Yv)
  5. spec.md:376 — fixture-path exact location and occurrence rules promoted from D4 (PRRT_kwDOTAvnrs6jX4Zh)

Sequence: round-seven non-normative commit pushes first; the amendment patch is applied on top; validators; push; the five threads are replied and resolved against that commit; the ratification record in proposal.md gains this word; landing follows under Rule 6 when the checks are green. This is the second fold-in word on this PR (the first, 2026-09-17 "fold it in before landing", covered D3(c)).

Lane: openxfactory-1

@brettheap

Copy link
Copy Markdown
Contributor Author

Round seven: four non-normative Copilot threads taken at 82aa40da, five threads held for Brett Heap's word.

Taken (4):

  1. openspec/changes/add-citation-remainder-report/tasks.md:313 — argument-surface line now spells --include/--exclude as D2's value-bearing forms ([--include PREFIX ...] [--exclude PREFIX ...])
  2. openspec/changes/add-citation-remainder-report/tasks.md:97 — stray tokens' apostrophe removed (plural subject, not possessive)
  3. openspec/changes/add-citation-remainder-report/proposal.md:132 — the identical stray apostrophe removed
  4. README.md:559 — the same misuse removed twice on one line

Held (5), unchanged, awaiting Brett Heap's word:

  • specs/packet-citation-report/spec.md:385 (entry unit)
  • specs/packet-citation-report/spec.md:392 (normalization precedence)
  • specs/packet-citation-report/spec.md:80 (clean-worktree/HEAD reading)
  • specs/packet-citation-report/spec.md:162 (include/exclude semantics — new this round)
  • specs/packet-citation-report/spec.md:376 (fixture-path location rules — new this round)

All five house validators clean at 82aa40da: openspec validate add-citation-remainder-report --strict valid; openspec validate --all --strict shows only the two pre-existing failures unrelated to this packet (add-chain-attestation, add-composed-view-authoring); validate-openspec-cli-pin.py --change add-citation-remainder-report --strict clean; proposal-support.py . verify ok; validate-code-surface.py . passed.

Lane: openxfactory-1

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The packet contains contradictory realization instructions and an ambiguously labeled measurement/classification contract.

Review details

Suppressed comments (4)

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

openspec/changes/add-citation-remainder-report/specs/packet-citation-report/spec.md:375

  • The normative vocabulary names fixture-path but does not define its mechanical path predicate. D4's measured rule is concrete (examples/, ideation/dashboard/gate-records/, contracts/**/examples/, and nested tests/ fixtures); leaving those roots only in design.md lets two realizations classify different entries and produce incomparable class/D6 series.
    openspec/changes/add-citation-remainder-report/tasks.md:315
  • The realization task still says the CLI has an "exit code always 0", but §1.11 and the normative spec require a non-zero exit when the report cannot run. An implementation following §2.1 could therefore swallow an unreadable/non-repository root as success, violating the public exit contract; state the two cases here as well.
    openspec/changes/add-citation-remainder-report/evidence/measurement-b1df95ee.md:150
  • This table silently uses the issue-native reading (571 tokens, 151 raw-absent, 78 remainder), while D0 and the packet summary publish the literal reading for the same b1df95ee tree (586, 162, 81). Because the heading does not identify the normalization choices, the measurement record appears internally inconsistent and the comparison cannot be reproduced unambiguously; label this table as issue-native.
    openspec/changes/add-citation-remainder-report/tasks.md:331
  • This task calls the artifact wiring a single step that both runs the script and uploads the artifact, but the prescribed command is a run shell command and the next sentence refers to a separate upload step; the existing reusable workflow likewise uses a separate actions/upload-artifact step. Clarify that realization adds one report step plus its upload-artifact step (or otherwise specify the actual mechanism), so the task is implementable.
  • Files reviewed: 8/8 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Brett Heap, 2026-09-17T13:33:12Z, verbatim "fold them in before landing"
(PR #1069, comment 5715211687). Each rule is text this packet already
carried in design.md, written where a realization is measured against it;
no decision moves and the delta stays ALL-ADDED over one new capability.

  PRRT_kwDOTAvnrs6jWmQn (spec.md:385) a REMAINDER ENTRY is a TOKEN: one
    record per token, class and flags properties of that token, identity
    grouping nesting and never merging, class totals counted in TOKENS.
    D2's output model and D4's one-class-per-entry.
  PRRT_kwDOTAvnrs6jWmRM (spec.md:392) `truncated` WINS over
    `punctuation-stripped` where both fit, which is D3(b)'s own order:
    strip, resolve, class truncated only where the token does not resolve.
  PRRT_kwDOTAvnrs6jXaN3 (spec.md:80) the report DECLARES the tree state
    beside the head, and a reading over modified content is refused a
    place in the series. The word's other two halves each cost a decision
    (HEAD blobs strand the promoted symlink containment test and move
    D3(a)'s enumeration verb; refusing a dirty tree mints a third non-zero
    exit against the promoted two-case contract), so neither is taken.
  PRRT_kwDOTAvnrs6jX4Yv (spec.md:162) the refinement semantics from D2:
    segment-boundary matching, admission re-admitting rather than
    replacing, removal applied last and winning. The fourth rule, the
    output path no refinement may reach, already stood.
  PRRT_kwDOTAvnrs6jX4Zh (spec.md:376) `fixture-path` gains D4's measured
    predicate in place of a description: EVERY occurrence under the
    top-level examples/ tree, ideation/dashboard/gate-records/, an
    examples/ directory below contracts/, or a tests/ directory nested
    beneath the population's top-level tests/ exclusion.

Scenarios 29 -> 37; requirements 5, unchanged; one ADDED block, no
MODIFIED. proposal.md records the second fold-in word beside the
ratification, design.md D2/D3/D4 each record the rule that left them,
tasks.md 1.11 and 1.13 qualify the boxes that quoted the moved text and
2.1 names the five as realization fixture cases.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 17, 2026
…Manifest provisioning shape, as a credential-contracts MODIFIED delta (RULED 5704187317) (#1073)

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

Refs #656 (stays OPEN).
CLAIM: #656 (comment)
RULED: **5704187317** (2026-09-16, option (1) SPLIT AND NARROW — clause (E) is this act, clauses (B) and (D) are what it refuses); **Q3** (2026-09-04T15:32Z, one instance and one database per tenant, always, in both cases); **5700622683** (the class in which § 7.4's delta-text defects are RECORDED rather than silently fixed — this packet opens a second one and fixes neither).

## What

Proposes the OpenSpec change `add-per-tenant-app-manifest-provisioning`: **ONE `## MODIFIED` block, on ONE requirement of `credential-contracts`, over CANON.** Packet only — no schema, no validator arm, no contract cut, no code.

It **takes the FIRST HALF of the declared exit path** of the staged topic `openxdox-install-app-provisioning` (staged 2026-08-14, gate met 2026-08-15, **exit unraised for thirty-three days**) by taking that topic's own OQ-1 **option (a)** — a MODIFIED `credential-contracts` delta — which is what RULED `5704187317` (E) chose over the new `install-app-provisioning` capability the topic offered beside it. **It does NOT close that topic**, and the claim is kept narrow on purpose: the topic's Exit path names Q1 (**RULED**), Q2 the managed-versus-self-hosted flow (**unruled, and neither decided nor waived here**), a named `Omnigent-Install` realization change (**owed, authored nowhere here**) and a further gate on the opensoft QA dispatch migration (**not asserted met**). What authorizes authoring with those open is clause (E) DIRECTING the authoring in the operator's own words, not a finding by this author that Q2 is dispensable — an author does not amend another document's gate from inside a packet. The fragment STAYS STAGED.

## Why

The dispatch/content separation is **already canon** and this packet does not restate it as new. `openspec/specs/credential-contracts/spec.md:169` has said since `add-dispatch-credential-contract` archived on 2026-08-25 that the two credentials are DISTINCT bindings and that a zero-write-authority serving surface *"MUST NOT hold — nor hold key material capable of minting — a content-write credential."*

**That requirement governs a credential that already exists. It says nothing about where the credential came from.** RULING Q3 makes that a gap: the pair is provisioned ONCE PER TENANT, N times, in N organizations this estate does not own. The two cheapest ways to lose the invariant at provisioning time both pass every check the promoted requirement makes, because it is not looking there — have an OPERATOR identity create the Apps inside the tenant's org, or create ONE App and widen it.

## Measured, not asserted

| read | result |
|---|---|
| Base | branched off `origin/main` `4cef77af`; merged up to `a93d2682` at `5e84904b`, which carries `main`'s own repair of the inherited self-gate failure and no packet text |
| Active changes carrying a `credential-contracts` delta | **2** — `add-credential-escrow-checkout` (MODIFIED *Canonical credential record shapes* + 9 ADDED), `add-requirement-ref-resolution-integrity` (2 ADDED) |
| …of which write *Dispatch-only credential least privilege and serving-tier separation* | **0** → block is over CANON, **no `Modified over` marker owed** (stated in the delta's own preamble) |
| Open openxFactory PRs read for their file lists | **13** (#1071 #1069 #1068 #1066 #1065 #1060 #1058 #1057 #1056 #1051 #1043 #594 #518) — **not one** touches `credential-contracts` or the staged topic |
| `openspec validate add-per-tenant-app-manifest-provisioning --strict` | **valid** |
| `openspec validate --all --strict` | 108 passed, **2 failed — both pre-existing** (`add-chain-attestation`, `add-composed-view-authoring`, each omitting a canon scenario); this change is not among them, which is the tool confirming the block carries every promoted scenario |
| `"App Manifest"` in `opensoft/Omnigent-Install` | **0** occurrences — the mechanism is contracted nowhere today |
| `"provisioning manifest"` under `contracts/ examples/ templates/ requirements/` | **0**, exit 0 over four roots that all EXIST — the record kind these clauses constrain exists in no corpus this repository validates, which is why `code_surface: none` and no validator arm is authored. (An earlier spelling of this command named a root `schemas/` that this repository does not have, so it warned on a missing path instead of proving the zero; schemas live at `contracts/schemas/`, inside the first root. Same conclusion, now actually measured.) |

## What the block adds

Canon's body paragraph and all three promoted scenarios are restated **VERBATIM**; five clauses and ten scenarios are added — the first two being the provisioning rule and the scoping rider that keeps it case-neutral.

1. **Where the pair is provisioned THROUGH A MANIFEST, creation is in the tenant's OWN SEAT AT THE PROVIDER — their organization where they are organization-backed, their own account where canon's self-hosted individual applies — and the identity is never an operator-owned one installed into it**, and never one provisioned identity creating the other (which the promoted sentence already forbids the serving tier to be capable of). The clause binds WHERE the identity lives — not who drives the flow, and not who holds its material.
2. **One pair per tenant, never shared**, under a pattern-discoverable naming convention of the form `<product> — <tenant>` whose TENANT COMPONENT is an identifier unique in the provider's own namespace, canonicalized to what that provider's names admit — a display name two tenants may share is not one, and which grain carries the uniqueness (slug, handle, issued id) stays the install's choice. The convention is load-bearing twice: the provider's App name is a GLOBAL slug, so it is the only way the flow completes for the second tenant; and it makes "never shared" auditable from a binding without reading the tenant's organization.
3. **The dispatch identity's one named target is a repository that holds no governed content**, and that repository is part of the provisioning. The refusal is on the TARGET'S PROPERTY and never on a count: the identity still names exactly one repository, and what is wrong is that a trigger on a content-bearing one leaves the serving tier one workflow away from content-write authority it must not hold.
4. **Capture is time-bound, lands in the DECLARED custody by reference, and leaves whoever drives the flow not an UNDECLARED custodian** — the custody's operator being the per-install execution binding this capability already fixes rather than a party this contract names — and no manifest, record or template carries a secret value, private key or installation token.

### What the block does NOT repeal, asserted in two of the eight scenarios rather than argued in prose

Canon keeps both operating models legitimate — *"Both cases SHALL remain legitimate. Self-hosted operation by an individual or a client is not a degraded form of operator-hosted operation"* (`openspec/specs/credential-contracts/spec.md:141`, scenario at `:164-167`) — `docs/openxdox-dispatch-credential-binding.md:31-37` records a **live** operator-hosted Case A in which the operator creates the dispatch App and holds its key in the OPERATOR's vault, and *An operated identity's credential is held in governed custody and reached only by reference* puts the custody party in the BINDING and forbids a contract artifact from naming one (`:216`). The added clauses are therefore scoped to the shape they introduce: they name no custody party, they leave who OPERATES the install to the per-install execution binding, and they do not retroactively refuse a pair already in service. Two added scenarios assert exactly that — *An operator-executed install drives the manifest flow* CONFORMS, and *A pair already in service was created without a manifest* is NOT refused. Whether Case A migrates to the manifest shape is the installer's act and the topic's unruled Q2. (This is round 3's correction: the first draft's clauses were unconditional and repealed both references in passing.)

## What this does NOT do

- **It touches not one byte of `opensoft/OpsxFactory` or `opensoft/Omnigent-Install`**, the two repositories § 7.4 of `split-opendox-two-layer-product` tags. RULED `5704187317` **(B)**: § 7.4's `openxdox` DNS sentence is discharged by **NAMING**, per that packet's own `design.md` § Non-goals (*"…or the `openxdox` DNS record's ungoverned status, **beyond naming them**"*), leaving the ceremony-reach widening inside `opensoft/OpsxFactory`'s active `add-governed-dns-administration` on Brett Heap's OQ-E word (OpsxFactory #207 comment `5649809425`). RULED **(D)**: the `dox` workload set's per-tenant declaration waits for § 3.5 — there is one tenant and one plane subject today — and its requirement stands under lane opsXfactory-3's claim `5638511222`.
- **It does not author the installer.** `Omnigent-Install` owns the flow under its own change and its own code surface; tasks § 3.1 names it as owed. That repository's README forbids the alternative in its own words — it *"should not contain … canonical shared contracts that belong in `openxFactory/contracts`"* — which is CLAUDE.md working rule 1 from the other side.
- **It reserves no contract bundle number** and adds no schema field, warning code or validator arm. Both active siblings on this capability already owe an additive minor on the same schema file; a number written here is a number one of them is spending.
- **It edits `split-opendox-two-layer-product/tasks.md` by not one byte.** § 7.4's tick, and the **second delta-text defect this packet RECORDS** — `design.md:133-134`'s *"beyond naming them"* against `tasks.md:1979`'s *"is governed here"*, in the class of `5700622683` — are the bookkeeper's amendment #5.

## Open questions carried, neither blocking

- **OQ-1 (the topic's Q2, unruled): the managed `opsxfactory_executed` flow** — operator-driven or tenant click-through. The delta is written **CASE-NEUTRAL** *in its wording as well as its intent* after round 3: it binds WHERE the identity is created and WHOSE it is, and RULING Q3's *"in both cases"* plus the topic's claim 3 make both true either way. Q2 decides who clicks, which is the installer's sequence.
- **OQ-2: the apply-workflow repository's provenance** — fresh per install or a forked template. The requirement binds the PROPERTY (the one named target holds no governed content), not the provenance.

## Gate note

`tests/doc-health/test_modified_block_currency_self_gate.py` was **RED on `main` itself** over two carriage-ledger subjects opened by another lane — the one failure in this PR's run at `b383098d` (`35159631088`: `1 failed, 7715 passed, 6 skipped, 338 deselected`). It was **INHERITED and never this packet's**: this block carries every promoted unit of the requirement it modifies, so the carriage-ledger arm has nothing to report about it — which `openspec validate --all --strict` independently confirms by not listing this change among the two scenario-omission failures.

**It is resolved at `5e84904b`.** `main` was repaired by #1075 → `a93d2682` and this branch merges it; the merge carries `main`'s two commits (`c6997f12`, `a93d2682`) and no packet text, and its tree `27b00694` is byte-identical to the tree of GitHub's own merge ref `4e479a48`. Locally on that exact tree, `pytest tests/doc-health/test_modified_block_currency_self_gate.py tests/carve_manifest tests/sequenced_after -q` reads **486 passed, 0 failed**.

A re-run of the red suite would not have shown this: run `35159631088` fetched the PINNED merge commit `+9782db6aefa1d9d9a2be7b5d0af0782ec47d65cb:refs/remotes/pull/1073/merge` — `b383098d` merged with the OLD `main` `4cef77af` — and a re-run replays the same event SHA, so only a push makes CI read the current merge ref.

## Review rounds

**Fifteen Copilot rounds, 38 findings — 8 arrived as inline threads and 30 as SUPPRESSED comments**, every one of which was read out of the review BODY. A gate reading "0 unresolved threads" alone would have seen a fifth of this PR's review. Threads: **9 total, 0 unresolved**. Each round's disposition is a comment on this PR: [rounds 1-2](#1073 (comment)) · [round 4](#1073 (comment)) · [round 5](#1073 (comment)) · [round 6](#1073 (comment)) · [round 7](#1073 (comment)) · [round 8](#1073 (comment)) · [round 9](#1073 (comment)) · [round 10](#1073 (comment)) · [round 11](#1073 (comment)) · [round 12](#1073 (comment)) · [round 13](#1073 (comment)) · [round 14](#1073 (comment)) · [round 15](#1073 (comment)).

The findings worth the rounds were structural, not prose: the added clauses silently repealing canon's two operating models and the ratified operator-hosted Case A (round 2); a conformance scenario that read as a licence for the identity the clause above refuses (round 4); the self-hosted individual left with **no** conforming identity, against canon's *"Both cases SHALL remain legitimate"* (round 10); and a naming convention that bound the manifest but not the identity it names, whose check sat in an unreachable branch (round 11). Round 12's one suppressed finding — `declared custodian` used for an actor the sentence defines as *the operator the per-install execution binding declares* — is neither a canon contradiction nor a false statement, so under the severity gate declared at `1ea066ad` it is answered by measurement and **registered for the ratification read (`tasks.md` § 2.1)**, where this `Status: draft` packet's requirement wording is decided in any case.

**Round 13, at the merge head `5e84904b`, raised two inline findings and both were factual errors in the landed text — the class the gate admits — so both are fixed at `a642a3c5`:** `design.md` D3 still counted TWO scenarios asserting the case-neutral reconciliation where the other three places in the packet read THREE, and the one it omitted was the self-hosted individual canon's *"Both cases SHALL remain legitimate"* rule turns on; and the `code_surface` evidence recorded a zero-occurrence `grep` as `exit 0`, where a clean zero is **exit 1** and **exit 2** is the error status the earlier `schemas/` spelling actually produced (both measured at this head, GNU grep and ugrep alike). **Nothing normative moved in either fix** — no clause, no scenario and no count in the delta block changed. Both threads are answered by measurement and resolved.

**Round 14, at `a642a3c5`, suppressed two.** One is fixed at `00685387`: § 1.7's gate box still recorded the inherited failure and a repair *"in flight"* that had landed — corrected, and its FORM corrected with it, by recording each head with its own run id (`b383098d`/`35159631088` red-inherited; `5e84904b`/`35221707064` SUCCESS; `a642a3c5`/`35223896296` SUCCESS) and stating that the box is ticked at the ratification read against the head then current, which is the only way a head measurement is still true when it is read. The other — whether the added clauses are provider-neutral — is answered by measurement and **registered for the ratification read**: the added clauses name no provider at all (*the provider*, *the tenant's own seat*, *organization or account*, *the provider's namespace*), the block's single `GitHub` is canon's own promoted paragraph carried verbatim as a MODIFIED block must (`openspec/specs/credential-contracts/spec.md:170`), and the canon sentence cited governs the naming of a FIELD — `realm` versus `identity_namespace` at `:346-353` — not a clause describing a flow. Neither fix touched the delta block.

**Round 15, at `00685387`, suppressed two of one class, and the head did not move for them.** The naming clause's rationale claims the identities of one tenant *"can be enumerated without reading that tenant's own account"*; a pattern makes a name RECOGNIZABLE, not LISTABLE, and the inventory source is the staged topic's own open question 5 (*"how does opensoft support enumerate them across tenant orgs it may not directly see?"*). The uniqueness half is untouched — a tenant component unique in the provider's namespace needs no inventory — and over the estate's own bindings and manifests the pattern does what the clause says; what it cannot reach is an identity in no binding at all. That is requirement wording, so it is [answered by measurement and registered for the ratification read](#1073 (comment)) with a recommended narrowing. **The stopping rule in force from `00685387`: the head moves only for a canon contradiction in the delta block** — rounds 13 and 14 moved it because each found a false statement in the landed text, and both classes are now closed by construction (counts are grepped; the gate box records heads and runs, so it cannot stale).

**Rule 6 applies** (this PR touches `openspec/changes/` and the README **OpenSpec Records** block). Brought to READY, **not landed**; this lane never merges.

Lane: openxfactory-4
Author opus-max, actor `ops74`, session `openxfactory-4` f3c8d406.

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


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
README OpenSpec Records block: both bullets kept (add-citation-remainder-report from this branch; add-per-tenant-app-manifest-provisioning from #1073 on main). tests/sequenced_after/corpus-ledger.yaml auto-merged.

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

The packet retains conflicting or underspecified contracts for exit behavior, output grouping, truncation detection, and history results.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (3)

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

openspec/changes/add-citation-remainder-report/design.md:461

  • --history is part of the fixed realization surface and is required to run a costly history probe, but the output model never defines what that probe returns. The JSON fields listed immediately below have no history/evidence member, and D4 keeps the related intent classes unclassified; therefore one implementation could emit no result while another emits a rename/never-existed flag, leaving the option non-interoperable. Define the human/JSON result and whether it is evidence, a flag, or diagnostic-only before realization.
    openspec/changes/add-citation-remainder-report/specs/packet-citation-report/spec.md:268
  • The normative truncation rule resolves first and then classifies every unresolved token ending in - as truncated, but a valid change id is allowed to end in - and can also be absent. In that case the resolver cannot distinguish a genuinely dangling citation from a path severed by line/string boundaries, so two realizations can assign different classes while claiming the same contract. Promote the concrete evidence probes described in D4 (longer path, <, or rejoined literal) or define the unresolved fallback as unclassified.
    openspec/changes/add-citation-remainder-report/tasks.md:347
  • This realization task still says the CLI's exit code is always 0, but the promoted contract requires a non-zero exit when the report cannot run (for example, an unreadable tree or invalid repository root). An implementation following this task would violate spec.md's two-case exit contract; describe success for findings and non-zero only for an unable-to-run report.
  • Files reviewed: 8/8 changed files
  • Comments generated: 1
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

FOLDED IN — b332a51

The five held normative Copilot spec threads are folded into the ratified delta on Brett Heap's word, 2026-09-17T13:33:12Z, verbatim "fold them in before landing" (comment 5715211687), commit b332a518 "Fold the five held Copilot spec threads into the ratified delta". All five threads replied to and resolved:

  • PRRT_kwDOTAvnrs6jWmQn — spec.md:69 — a remainder entry is a token; class totals count tokens; identity grouping nests, never merges.
  • PRRT_kwDOTAvnrs6jWmRM — spec.md:497 — truncated wins over punctuation-stripped where both fit one entry.
  • PRRT_kwDOTAvnrs6jXaN3 — spec.md:41 — report declares whether tracked content stood unmodified at the printed HEAD; dirty-state taken.
  • PRRT_kwDOTAvnrs6jX4Yv — spec.md:209 — refinement semantics promoted: segment-boundary matching, admission re-admits, removal applied last and wins.
  • PRRT_kwDOTAvnrs6jX4Zh — spec.md:463 — fixture-path gets D4's measured predicate: four closed locations, occurrence rule ALL not ANY.

Counts (git show --stat b332a518)

 design.md   |  79 +++++++++++++
 proposal.md |   2 +
 spec.md     | 131 +++++++++++++++++++++
 tasks.md    |  43 ++++++-
 4 files changed, 254 insertions(+), 1 deletion(-)

Scenarios in the delta: 37 (was 29, grep -c '^#### Scenario:' on spec.md at b332a51). Requirements: 5, unchanged. One ## ADDED Requirements block, no MODIFIED.

Validators

  • OPENSPEC_TELEMETRY=0 openspec validate add-citation-remainder-report --strict — re-run myself in the clone at b332a51: Change 'add-citation-remainder-report' is valid.
  • openspec validate --all --strict — Totals: 108 passed, 2 failed (110 items), the two pre-existing (add-chain-attestation, add-composed-view-authoring), unchanged.
  • validate-openspec-cli-pin.py --change add-citation-remainder-report --strict — @fission-ai/[email protected] verified against its content address; target validated --strict clean.
  • proposal-support.py . verify — proposal support verification ok.
  • validate-code-surface.py . — code_surface validation passed (every active declaration's head is admitted).
  • validate-sequenced-after.py . — sequenced_after validation passed (48 active changes, 17 declaring the field).

The two judgment calls

  1. Of the three remedies thread 3's comment admitted (clean-tree refusal / HEAD-blob reads / dirty-state reporting), dirty-state reporting is taken — the other two each strand something already ratified (HEAD-blob reads strand the symlink-containment test and move D3(a)'s enumeration verb; refusing a dirty tree mints a third non-zero exit against the promoted two-case contract).
  2. D6's identity-series projection is left to § 2's realization, not settled here: class totals are fixed at TOKENS (thread 1), but how a per-token class projects onto an identity for D6's stability series would contradict ratified D6 text if decided now, so it stays named residue rather than a new decision.

The freeze line moves to 4ecdb593 (merge of origin/main into the branch, clearing a README OpenSpec-Records conflict with #1073; packet content is unchanged and still equals b332a518). Landing under Rule 6 when the six required checks and main's newest decided suite are green.

Lane: openxfactory-1

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Several ratified reporting semantics remain contradictory or under-specified for a deterministic realization.

Get a fresh assessment by requesting another Copilot review.

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

brettheap and others added 2 commits September 17, 2026 14:56
… defined, stale hyphen and exit-code sentences aligned

Four non-normative Copilot review threads on PR #1069's round nine, plus
two small additions, all in design.md and tasks.md:

  PRRT_kwDOTAvnrs6jYaL1 (design.md:545) the human report's two-part order
    is now stated once, unambiguously: the COUNTS block (population
    figures and arithmetic rows, then class totals counted in TOKENS, then
    the labelled identity count), then the remainder ITEMIZED (by IDENTITY
    default, by TOKEN under --tokens; CLASS IS NEVER A GROUPING LEVEL in
    either mode). Matches the normative nesting rule already at spec.md:69.
  PRRT_kwDOTAvnrs6jYkvL (design.md:701) the stale sentence claiming every
    trailing-hyphen token is marked truncated unconditionally is removed;
    only the resolve-first rule (D3(b)/spec.md:261-268) remains.
  PRRT_kwDOTAvnrs6jYkuX (design.md:464) --history's output is now defined
    in D2 as its own numbered rule: a per-identity `history` object
    (`probed`, `ever_tracked`, `first_commit`, `last_commit`), repeated
    identically per token under --tokens, ABSENT (not null) when --history
    is not given, and never changing a class or a flag.
  PRRT_kwDOTAvnrs6jYkxL (tasks.md:347) "exit code always 0" restated as
    the two-case contract in D2's exact quoted words; no third case.

  Addition: a per-token `raw` field (the token before normalization) is
    defined beside `token` in D2's JSON model, so a token that is both
    stripped and severed still shows the stripping.
  Addition: tasks.md's fixture-list tail ("AND one three lines above") is
    fixed to match spec.md's window sentence exactly.

The three normative spec.md threads (PRRT_kwDOTAvnrs6jYkv_,
PRRT_kwDOTAvnrs6jYkwR, PRRT_kwDOTAvnrs6jYkwi) are untouched here, being
drafted by another writer in this lane.

Predecessor bench-1069f died on a usage limit mid-edit, having already
correctly rewritten the two-part table order for thread 1 (verified
against spec.md:69 and kept as-is); this round completes the other three
threads and the two additions.

Validators: openspec validate add-citation-remainder-report --strict
(valid); openspec validate --all --strict (109 passed, 2 pre-existing
failures unrelated to this change: add-chain-attestation,
add-composed-view-authoring); validate-openspec-cli-pin.py --strict (OK);
proposal-support.py verify (ok); validate-code-surface.py (passed).

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
main advanced to 4b53ea9 (#1080, "FLOOR PART 2 (§ 5.4...)") while this
round's commit was being prepared. Resolved:

  README.md — content conflict in the OpenSpec Records active-changes
    block: both sides added a bullet at the same spot. Kept every bullet,
    ours (add-citation-remainder-report) first, then main's
    (repromote-engineering-vocabulary), then the unchanged remainder of
    the list. No conflict markers remain (verified by grep).
  tests/sequenced_after/corpus-ledger.yaml — auto-merged cleanly (main's
    new repromote-engineering-vocabulary row, one insertion; this
    branch's add-citation-remainder-report row untouched).

Everything else main carried in this window (docs/opendox-cutover-runbook.md,
the new repromote-engineering-vocabulary packet, scripts/carve_test_mapping.py
and its sibling verify script and test) merged with no conflict.

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

Copy link
Copy Markdown
Contributor Author

Round nine closed at 8aedc9b (content commit 9c2be22, then a merge of main 4b53ea9 for a README conflict — see below).

Four non-normative threads taken, each replied and resolved:

  • PRRT_kwDOTAvnrs6jYaL1 (design.md:545) — the human report's grouping was restated as one canonical order instead of two conflicting ones.
  • PRRT_kwDOTAvnrs6jYkvL (design.md:701) — the stale "every trailing-hyphen token is truncated unconditionally" sentence is removed; only the resolve-first rule remains.
  • PRRT_kwDOTAvnrs6jYkuX (design.md:464) — --history's output is now defined in D2 as its own numbered rule (a per-identity history JSON object, absent-not-null when the flag isn't given).
  • PRRT_kwDOTAvnrs6jYkxL (tasks.md:347) — "exit code always 0" restated as the two-case contract in D2's exact words.

Two small additions in the same commit:

  • a per-token raw field (the token before normalization) defined beside token in D2's JSON model, so a stripped-and-severed token still shows the stripping.
  • tasks.md's fixture-list tail ("AND one three lines above") fixed to match spec.md's window sentence exactly.

The canonical order (design.md, D2): the human report is COUNTS first (population figures, arithmetic rows, class totals in TOKENS, labelled identity count), then the remainder ITEMIZED. The itemized part groups by IDENTITY by default (each identity heading listing its tokens beneath it) or by TOKEN under --tokens; CLASS IS NEVER A GROUPING LEVEL in either mode — matching spec.md:69's nesting rule, which was already canonical.

Validators, all clean on the merged tree:

  • openspec validate add-citation-remainder-report --strict — valid.
  • openspec validate --all --strict — 110 passed, 2 failed (both pre-existing and unrelated: add-chain-attestation, add-composed-view-authoring).
  • validate-openspec-cli-pin.py --change add-citation-remainder-report --strict — OK.
  • proposal-support.py . verify — ok.
  • validate-code-surface.py . — passed.
  • validate-sequenced-after.py . — passed.
  • validate-former-id-arrival.py . --base origin/main --head HEAD — passed.

The three normative spec.md threads (PRRT_kwDOTAvnrs6jYkv_ :253, PRRT_kwDOTAvnrs6jYkwR :375, PRRT_kwDOTAvnrs6jYkwi :397) are untouched here — still drafting, by another writer in this lane.

Also folded in this round, at the coordinator's word: main had advanced to 4b53ea99 (#1080) while this round was in flight, so the round-nine content commit is followed by a merge commit resolving a one-spot README.md conflict (both sides added an OpenSpec Records bullet at the same place; kept every bullet, ours first) — tests/sequenced_after/corpus-ledger.yaml auto-merged clean.

Freeze line moves to 8aedc9b6; landing under Rule 6 when the six required checks and main's newest decided suite are green.

Lane: openxfactory-1

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The packet contains contradictory measurements and unresolved output and normalization contracts that would make the future CLI non-deterministic.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (7)

openspec/changes/add-citation-remainder-report/specs/packet-citation-report/spec.md:502

  • This precedence requires stripping a trailing full stop before resolution, but the repository's CHANGE_ID_RE admits an identifier ending in . (scripts/proposal-support.py:281) and the resolver validates it with fullmatch. A legitimate citation such as openspec/changes/foo. could therefore be normalized to foo and mis-resolved or reported dangling; unlike the hyphen case, the full-stop case has no raw-resolution-first guard. Define how sentence punctuation is distinguished from a valid trailing-dot id before fixing this order.
already strips a token's trailing prose punctuation BEFORE resolution is tried,
and already classes a token `truncated` ONLY WHERE IT DOES NOT RESOLVE — so a
token spelled `…-.` is stripped, tried, and, where the stripped token still
resolves to nothing, SEVERED, which is the later verdict and the stronger

openspec/changes/add-citation-remainder-report/tasks.md:256

  • The PR description says D4's three asserted mechanical classes include never-existed-by-history, but this task/spec makes never-existed intent-based and unclassified; the asserted vocabulary here is truncated, punctuation-stripped, fixture-path, plus unclassified. Please align the PR description with the ratified packet so the later realization does not implement a different class contract.
- [ ] 1.13 **`design.md` D4 — THE CLASSES.** RECOMMENDED: the classes the report
      ASSERTS are the three the tool can evidence from a path or from its own
      normalization — `truncated`, `punctuation-stripped`, `fixture-path` — and
      the vocabulary is CLOSED at those three plus `unclassified`. A DANGLING

openspec/changes/add-citation-remainder-report/evidence/measurement-b1df95ee.md:475

  • This output model lists synthetic-location and tokenization-artifact as flags, but D4's closed contract says possibly-cross-repo is the only flag and treats the other evidence as classes (fixture-path or truncated/punctuation-stripped). The realization would otherwise have two incompatible flag vocabularies. Keep only possibly-cross-repo here or promote the extra flags consistently into the normative output schema.
* **Columns:** identity · outcome (`DANGLING identity` / `DANGLING file` /
  `AMBIGUOUS`) · citing `path:line` (first, plus a count) · flags
  (`possibly-cross-repo=<repo>`, `synthetic-location`, `tokenization-artifact`)

openspec/changes/add-citation-remainder-report/evidence/measurement-b1df95ee.md:482

  • The recommended arithmetic here still omits not-a-reference-with-no-raw-path, even though the correction immediately below and D2 require that fifth term; the measured case is 162 = 76 + 74 + 7 + 0 + 5. Leaving this recommendation unchanged gives the future CLI an equation that cannot reconcile its own published population.
* **Print the counted rows AND their arithmetic**, so a reader can check
  `raw-missing = by-identity + identity-half + file-half + ambiguous` without
  re-deriving it. A remainder that does not sum is the first sign a reading

openspec/changes/add-citation-remainder-report/design.md:1146

  • D4 makes class a per-token property and explicitly forbids merging token classes by identity, but this stability rule counts identities "carrying class unclassified" without defining the projection. An identity can have one unclassified token and another token with a mechanical class, so counting it when any token, all tokens, or a selected token is unclassified produces different N=14 results. Fix the identity-level aggregation rule before this trigger is used.
1. **THE UNCLASSIFIED COUNT IS NOT GROWING.** Over the last N runs, the count of
   remainder IDENTITIES carrying class `unclassified` has no upward trend — its
   value on the last run is less than or equal to its value N runs earlier.

openspec/changes/add-citation-remainder-report/evidence/measurement-b1df95ee.md:472

  • This bullet says to group output by CLASS and then IDENTITY, but the later D2 output contract says CLASS IS NEVER A GROUPING LEVEL and the default is grouped by identity. Those instructions produce different human reports for the same reading. Remove the class grouping here or revise the later contract and the spec together.
* **Group by CLASS, then by IDENTITY, not by token.** Five of the 57 rows are
  one packet spelled five ways (`add-council-clearance-rule-template`), four are
  one questionnaire's sketch, three are one OpsxFactory register spelled active
  and archived. A flat token list makes one act look like five findings; the 57
  tokens are **38 identities**, twelve of which carry more than one spelling.

openspec/changes/add-citation-remainder-report/specs/packet-citation-report/spec.md:403

  • The capability requires both token and identity counts, but this scenario asks for a singular filtered count. Since filtering flagged entries can produce different token and identity totals, the realization cannot know which value to emit or compare nightly. Require both filtered remainder-token and filtered remainder-identity counts, or explicitly define the one intended.
#### Scenario: A citation carries a repository qualifier nearby
- **WHEN** a remainder citation has a cross-repository signal within the stated window
- **THEN** the report MUST flag the entry as suspected cross-repository
- **AND** the entry MUST still be counted in the inclusive remainder
- **AND** the report MUST print the filtered count beside the inclusive one, never instead of it
  • Files reviewed: 8/8 changed files
  • Comments generated: 3
  • Review effort level: Lite

…le labelled; README exit sentence qualified

PRRT_kwDOTAvnrs6jafwv (design.md:553, also ~1144): normalization runs
before dedup, so a slash-terminated citation and its unslashed sibling
can collapse into one token, and the output contract left `raw`
singular on the token with no rule for which spelling wins. Fixed:
`raw` is now per-occurrence — every `{path:line, raw}` occurrence
carries its own exactly-as-extracted spelling, the token object carries
only `token` (the normalized form), and the human table shows an
occurrence's `raw` only where it differs from `token`. The D7 vendoring
example (measure.py's unslashed `foo` spelling) is corrected to read as
a new occurrence of the identity already counted, not a fresh one; and
tasks.md's R1 argument-surface task now says the field lives on the
occurrence, matching D2.

PRRT_kwDOTAvnrs6jafyB (evidence/measurement-b1df95ee.md:155, also
~468, ~473): § 2.1's table and § 6.3's two restated bullets gave
571/151/78 and 57/38 with no reading named, reading as a contradiction
beside design.md's own 586/162/81 and the literal 586/162/86. Two
dated correction notes, in this file's own established form, label both
spots as the NORMALIZED `issue-native` reading and point to § 2.3's
reconciliation of all three readings. No measured number changes.
Checked proposal.md, design.md and README's active bullet for the same
gap: all three already state the three-reading reconciliation beside
their own 78, so none needed the same note.

Addition: README's active bullet gains the two-case qualifier on the
exit-code sentence, in D2's own words — a non-zero exit means the
report could not run, never that it found something.

The four spec.md threads (PRRT_kwDOTAvnrs6jYkv_:253,
PRRT_kwDOTAvnrs6jYkwR:375, PRRT_kwDOTAvnrs6jYkwi:397,
PRRT_kwDOTAvnrs6jafy6:189) are untouched: normative, another writer's.

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

Copy link
Copy Markdown
Contributor Author

Round ten closed at c979c515 (branch change/add-citation-remainder-report, was 8aedc9b6).

Two non-normative threads resolved:

  • PRRT_kwDOTAvnrs6jafwv (design.md:553, also ~1144) — raw is now a per-occurrence value ({path:line, raw}), never a singular field on the token; token is the normalized form carried once. The D7 vendoring example and tasks.md's R1 note are aligned to match.
  • PRRT_kwDOTAvnrs6jafyB (evidence/measurement-b1df95ee.md:155, also ~468/~473) — § 2.1's table and § 6.3's two restatements now carry a dated correction note (2026-09-17, this file's own established form) labelling 571/151/78 as the NORMALIZED issue-native reading, reconciled to design.md's own 586/162/81 and the literal 586/162/86. No measured number changed.

Plus one small addition: README's active bullet gains the two-case qualifier on the exit-code sentence, in D2's own words — a non-zero exit means the report could not run, never that it found something.

Validated in the clone root:

  • OPENSPEC_TELEMETRY=0 openspec validate add-citation-remainder-report --strict — valid
  • OPENSPEC_TELEMETRY=0 openspec validate --all --strict — 110 passed, 2 failed (112 items); the 2 are add-chain-attestation and add-composed-view-authoring, both pre-existing and unrelated to this change
  • python3 scripts/validate-openspec-cli-pin.py --change add-citation-remainder-report --strict — verified, 1 passed / 0 failed
  • python3 scripts/proposal-support.py . verify — ok
  • python3 scripts/validate-code-surface.py . — passed (every active declaration's head is admitted)

The four specs/packet-citation-report/spec.md threads (PRRT_kwDOTAvnrs6jYkv_:253, PRRT_kwDOTAvnrs6jYkwR:375, PRRT_kwDOTAvnrs6jYkwi:397, PRRT_kwDOTAvnrs6jafy6:189) are untouched — normative, drafting/held for another writer.

Freeze line moves to c979c515.

Lane: openxfactory-1

Brett Heap, 2026-09-17T13:33:12Z, verbatim "fold them in before landing"
(PR #1069, comment 5715211687) — the same word the five threads landed
under at b332a51, these two being clarifications OF those rules and not
new ones. Both are text this packet already carried in design.md D3; no
decision moves and the delta stays ALL-ADDED over one new capability.

  PRRT_kwDOTAvnrs6jYkv_ (spec.md:253) RESOLVE-FIRST IS THE GRAMMAR'S
    PREDICATE, not one character's. The canonical change-id grammar is
    `[A-Za-z0-9][A-Za-z0-9._-]*` (scripts/proposal-support.py's
    CHANGE_ID_RE, the one spelling all three readers share) and it ADMITS
    a trailing `.` — checked rather than assumed: fullmatch("add-foo.")
    is TRUE, fullmatch("add-foo_") is TRUE, fullmatch("add-foo/") is
    FALSE. The b332a51 safeguard covered `-` alone, so the full-stop
    strip beside it could rewrite a VALID id and report the citing record
    dangling. Resolution is now tried before ANY trailing character the
    grammar admits is stripped, and a token that resolves as extracted
    takes neither a normalization record nor a normalization class. The
    trailing PATH SEPARATOR is the one exception and the grammar is what
    makes it one: no identity may carry `/`, so its strip can suppress
    nothing and stays unconditional, which D3(b)'s dedup choice depends
    on. The promoted sentence-punctuation scenario is unaffected.
  PRRT_kwDOTAvnrs6jYkwi (spec.md:397) THE FILTERED COUNT IS DEFINED: the
    remainder with every entry carrying the cross-repository flag
    REMOVED, counted in TOKENS, with its identity count printed beside it
    and an identity leaving that count only where EVERY one of its tokens
    is flagged. The arithmetic row is printed in TOKENS and its flagged
    term is the count of REMAINDER ENTRIES carrying the flag — never the
    corpus-wide figure, which is D3(c)'s own arithmetic point: 22 tokens
    carry the flag and only 21 stand in the remainder, the twenty-second
    being a flagged citation whose raw path exists here. The identity
    pair does NOT sum, because a mixed identity is counted in both.

CROSS-CHECKED AGAINST evidence/measurement-b1df95ee.md, AND THE CHECK
MOVED THE WORDING. The definition reproduces that file's filtered reading
exactly — 57 tokens (78 − 21) and 38 identities, twelve of which carry
more than one spelling — and it does NOT reproduce its third figure, the
"true in-tree remainder" of 39, which is 57 − 14 − 4 where the 14 are
cross-repository citations the automated window MISSES and the 4 are
tokenization artifacts, both found by a HAND read. The requirement names
the reading the flag produces and asserts nothing about the other.

Scenarios 37 -> 43; requirements 5, unchanged; one ADDED block, no
MODIFIED. proposal.md records the round-nine clarifications beside the
second fold-in word, design.md D3 records the generalisation and the
arithmetic point and D4 records what the two do and do not do to the
closed vocabulary, tasks.md 2.1 names the three new fixture cases.

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.

🔵 Needs a closer look

Several realization-critical rules remain ambiguous or internally inconsistent, including qualifier vocabulary, output exclusion, symlink accounting, and classification semantics.

Review details

Suppressed comments (8)

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

openspec/changes/add-citation-remainder-report/design.md:495

  • This output model lists synthetic-location and tokenization-artifact as flags, but the D4 contract elsewhere closes the class/flag split at fixture-path/truncated/punctuation-stripped plus the single possibly-cross-repo flag. Leaving these labels as flags conflicts with the class totals and JSON shape the spec now requires. If they are only evidence descriptions, label them as evidence rather than flags and align the realization task.
    openspec/changes/add-citation-remainder-report/design.md:1172
  • D4 makes class totals token-based, while D6 explicitly measures its first two conditions over identities; the mechanical-class condition only says 'do not grow' and leaves its unit and reclassification behavior unstated. A nightly series can keep identity counts flat while token/class counts change, so the stability trigger is not reproducible. Specify whether this compares token counts, identity sets, or per-class sets and how entries changing class are counted.
    openspec/changes/add-citation-remainder-report/specs/packet-citation-report/spec.md:244
  • The requirement makes the report's own committed output un-re-admittable, but the fixed CLI surface has no output-path argument and the realization writes JSON by redirecting stdout (tasks.md:393-410). When a caller redirects into an arbitrary path under REPO_ROOT, the report cannot know which path to protect or refuse. Define a fixed in-repository output path, make the output path an explicit input, or constrain this requirement to outputs that are structurally outside the scanned root.
    openspec/changes/add-citation-remainder-report/specs/packet-citation-report/spec.md:459
  • truncated is defined by the unobservable cause that extraction 'severed mid-path', but the normative requirement does not give the mechanical predicate that detects that cause. The realization task can consequently classify unresolved hyphen-ending tokens differently while still satisfying this text, even though the change-id grammar accepts a trailing -. Promote the concrete probes from the design/evidence (or another deterministic rule) into the requirement.
    openspec/changes/add-citation-remainder-report/tasks.md:383
  • This says the nightly integration is ONE workflow step, but the specified command is a run step and the next paragraph explicitly refers to a separate upload step. The existing reusable workflow uses the same two-step pattern (.github/workflows/doc-health-reusable.yml:583-590, 612-620), so the task should describe one report step plus one upload-artifact step rather than an impossible single step that both runs and uploads.

openspec/changes/add-citation-remainder-report/specs/packet-citation-report/spec.md:375

  • The bare qualifier word signal is not deterministic for this corpus-wide report because the packet never defines the repository-name vocabulary to match. The existing read_citation can do this only because each pin supplies its allowed repo: values (scripts/validate-pin-registrations.py:512-532); this CLI has no equivalent source in its stated surface. Two realizations could therefore flag different tokens while satisfying this requirement, so the vocabulary and matching rule need to be specified.
looked for inside that window:
**(1) A PATH-JOINED PREFIX** (`xFactories/LedgerxFactory/…`);
**(2) A GITHUB BLOB OR TREE URL**;
**(3) A BARE QUALIFIER WORD IMMEDIATELY BEFORE THE TOKEN** (`codexFactory
openspec/changes/…`);

openspec/changes/add-citation-remainder-report/specs/packet-citation-report/spec.md:189

  • The population explicitly skips symlinks whose resolved targets leave the repository root (lines 164-176), but the required closing arithmetic only has terms for non-files and undecodable files. An out-of-tree symlink can resolve to a regular file, so it fits neither term; a realization cannot both skip it and satisfy this equality. Add an explicit out-of-tree-target skip category (and include it in the reported population totals), or define precisely which existing category owns it.
SKIPPED total. The population arithmetic SHALL therefore close: the tracked
ENTRIES in scope equal the FILES read, plus the entries skipped as non-files,
plus the files skipped as undecodable.

openspec/changes/add-citation-remainder-report/specs/packet-citation-report/spec.md:255

  • The grammar permits . in both the extracted token and the repository's change-id grammar, but this text requires a terminal . to be stripped before resolution without defining a mechanical way to distinguish sentence punctuation from a legitimate path or id ending in .. A valid citation can therefore be rewritten into a different token and reported as dangling. Define an unambiguous boundary/predicate or apply a raw-resolution-first rule for this normalization too.
carries the punctuation of the prose around it: a trailing `/` on a directory
citation, a trailing full stop that ended a sentence, a trailing `-` where a
source line or an implicit string concatenation split the path across two lines.
A report that silently repaired these would be reporting its own grammar as a
property of the corpus; a report that silently kept them would report a record
  • Files reviewed: 8/8 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

PATCH A APPLIED — 9064fd4 (under the standing word, comment 5715211687)

  • PRRT_kwDOTAvnrs6jYkv_ (spec.md:253) — resolve-first generalised to every grammar-admitted trailing character, not - alone; trailing path separator carved out as the one exception.
  • PRRT_kwDOTAvnrs6jYkwi (spec.md:397) — filtered count defined: the remainder with every flagged entry removed, counted in tokens, identity count printed beside it; the printed arithmetic's flagged term is remainder entries carrying the flag, never the corpus-wide figure.

Scenarios 37 → 43. Requirements 5 (unchanged). One ## ADDED Requirements block, no MODIFIED.

Validators:

  • openspec validate add-citation-remainder-report --strict — valid
  • openspec validate --all --strict — 110 passed, 2 failed (112 items); the 2 are the known pre-existing add-chain-attestation / add-composed-view-authoring, nothing else
  • validate-openspec-cli-pin.py --change add-citation-remainder-report --strict — 1 passed, 0 failed, verified --strict clean
  • proposal-support.py . verify — proposal support verification ok
  • validate-code-surface.py . — code_surface validation passed
  • validate-sequenced-after.py . — sequenced_after validation passed

HELD for Brett Heap's word: Patch B (spec.md:375 five-signal grammar; spec.md:189 out-of-root-link skip term), drafted at brett-wip 1053/amend2b-signal-grammar-4ecdb593.patch.

Freeze line moves to 9064fd4; landing under Rule 6 when the six required checks and main's newest decided suite are green.

Lane: openxfactory-1

@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

The specification has contradictory normalization wording and an under-specified class predicate, while the population arithmetic omits out-of-root symlink skips.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (2)

openspec/changes/add-citation-remainder-report/specs/packet-citation-report/spec.md:586

  • The resolve order is contradictory here: the recipe above requires trying the extracted token before stripping any trailing grammar-admitted character (including .), but this paragraph says punctuation is stripped before resolution. For a token such as …-., implementations can therefore disagree on which token is resolved and which class wins; make this explanation follow the resolve-first rule.
already strips a token's trailing prose punctuation BEFORE resolution is tried,
and already classes a token `truncated` ONLY WHERE IT DOES NOT RESOLVE — so a
token spelled `…-.` is stripped, tried, and, where the stripped token still
resolves to nothing, SEVERED, which is the later verdict and the stronger

openspec/changes/add-citation-remainder-report/specs/packet-citation-report/spec.md:545

  • The PR description's D4 summary says never-existed-by-history is one of the three asserted mechanical classes, but this ratified delta closes the class vocabulary at truncated, punctuation-stripped, fixture-path, and unclassified, and explicitly treats whether an id ever existed as an intent judgment. Please align the PR description with this contract before realization; otherwise the packet and its stated summary prescribe different class sets.
THE CLASS VOCABULARY SHALL BE CLOSED AND NAMED IN THIS SPECIFICATION, and an
implementation SHALL NOT add a member to it or rename one. It is `truncated` —
a token the extraction severed mid-path; `punctuation-stripped` — a token whose
trailing prose punctuation the report removed; `fixture-path` — an entry every
occurrence of which stands where this corpus keeps fixtures and worked examples;
and `unclassified`. Labels are what two readings are compared by, so a report
whose labels differ from another's cannot be a later point in its series, and
the series is the whole reason a class is asserted at all.
  • Files reviewed: 8/8 changed files
  • Comments generated: 1
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

FREEZE — lane openxfactory-1, 2026-09-17T15:54Z, head 9064fd4c. No further pushes to this branch. The six required checks are green at this head, main's newest decided pytest-suite is green, and every review thread is resolved: the three Patch B threads (spec.md:415, :189, :545) are HELD and deferred to the drafted amendment (brett-wip 1053/amend2b-signal-grammar-9064fd4c.patch), which lands as a named follow-up PR on Brett Heap's word before R1. The packet lands RATIFIED with both fold-ins on his words: D3(c) at c6ef48b1 ("fold it in before landing"), the five spec clarifications at b332a518 and their round-nine clarifications at 9064fd4c ("fold them in before landing", comment 5715211687). Landing under Rule 6 follows ("land it when green").

Lane: openxfactory-1

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

LANDING — lane openxfactory-1, session 393ade52-a921-4dd9-9dc5-224ebc056651@Eagle, 2026-09-17T15:57:31Z, PR #1069 into opensoft/openxFactory main

Guard at 2026-09-17T15:57:36Z on head 9064fd4caf64843121da60cbfe999bbc8710be9d: six required checks SUCCESS (lane-line, openspec-cli-pin, pytest-suite, release-tag-gate, signed-execution-chain-gate, wallet-validation); closingIssuesReferences = []; 0 unresolved threads; main's newest decided pytest-suite = success; no other-lane open LANDING into opensoft/openxFactory main (who --landing). mergeStateStatus BLOCKED = the code-owner-review ruleset that never clears on the author's own account; admin merge on Brett Heap's recorded word (RATIFIED add-citation-remainder-report; Brett Heap 2026-09-17 ratify #1069; fold it in before landing (D3(c) c6ef48b); fold them in before landing (b332a51 + Patch A 9064fd4); land it when green). Merge = merge commit.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

LANDED — lane openxfactory-1, session 393ade52-a921-4dd9-9dc5-224ebc056651@Eagle, 2026-09-17T15:57:43Z, PR #1069 into opensoft/openxFactory main → ef2b873

@brettheap

Copy link
Copy Markdown
Contributor Author

RULED — Brett Heap, 2026-09-17T16:04Z, verbatim: "fold B as drafted"

Scope of the word: Patch B — the three normative Copilot threads HELD at landing — folds into the ratified packet add-citation-remainder-report exactly as drafted at brett-wip handoffs/xFactory/attachments/openxfactory-1-2026-09-13/1053/amend2b-signal-grammar-9064fd4c.patch (note: 1053/amend2-round-nine.md, Patch B section), as a named follow-up PR from main ef2b8734:

  1. spec.md:415 — the five cross-repository signals' exact matching grammar, with the CLOSED case-insensitive repository vocabulary the drafter measured (codexFactory, OpsxFactory, LedgerxFactory, openXwallet, hermes-install / xFactory-Hermes-Install) — widened only by a ruling (PRRT_kwDOTAvnrs6jYkwR)
  2. spec.md:189 — a separate SKIPPED-OUT-OF-ROOT-LINK term in the population closure, printed even where zero (PRRT_kwDOTAvnrs6jafy6)
  3. spec.md:545 — the exact truncated predicate (D4's three measured probes, ALL-occurrence rule, union with the trailing-hyphen arm) and punctuation-stripped's firing condition, the class kept in the closed set with zero members in the measured tree (PRRT_kwDOTAvnrs6jbfFz)

43 → 63 scenarios, 5 requirements unchanged, ADDED only. "As drafted" takes the drafter's judgment calls as written (vocabulary = the five estates the evidence found; case-insensitive on the repository segment; punctuation-stripped stays). Sequence: branch from main, git am -3, fill the three placeholders with this date, this word and this comment, validators, Copilot bench, Rule 6 landing; realization R1 (in progress) implements the three rules in its predicate module.

Lane: openxfactory-1

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