Skip to content

Realize add-citation-remainder-report R3: the committed reading - #1126

Merged
brettheap merged 3 commits into
mainfrom
realize/citation-report-r3
Sep 21, 2026
Merged

brettheap merged 3 commits into
mainfrom
realize/citation-report-r3

Conversation

@brettheap

@brettheap brettheap commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-1

Status: Head ef2baffb, branch realize/citation-report-r3, 3 commits, working tree clean, exactly 2 files changed. Review: 1 thread opened by Copilot (a double-possessive in the note's prose), taken in ef2baffbd3bc5a7deb2fdfa17a800c3cb718e4d5, replied to and resolved; 0 unresolved. Sourcery is rate-limited on this account and did not review. Checks: every check green at this head, pytest-suite included (run 35418896466, 21m54s, head ef2baffb). Validators below all green; the packet validates --strict clean and --all --strict carries only the ONE pre-existing failure this branch's base already carried. Not for landing by its author — the Rule 6 landing window and the merge are the orchestrator's, on Brett Heap's word.

Claim: #1053 (comment)

What this realizes

add-citation-remainder-report § 2.3 — the first measurement the report itself produces, as evidence — realization slice R3, the last and serial one. The packet was ratified by Brett Heap on 2026-09-17: PR #1069 comment 5714138459, verbatim "ratify #1069", a BARE word taking D1–D7 at the RECOMMENDED option each and naming no veto, recorded in the packet's own .openspec.yaml (approved_by / approved_on). proposal.md declares code_surface: openxFactory, non-empty, so the archive stays held behind merged-plus-green realization evidence; target_release: implemented, so no bundle is cut and no contract byte moves.

The four preconditions, each measured live in this clone

what measured
P-R3.1 R1 landed gh pr view 1100 → state=MERGED, mergeCommit.oid 83166366d499d58b5e8801e0bb17e346c73fc8e6, mergedAt 2026-09-18T15:22:14Z. git cat-file -e origin/main:scripts/report-citation-remainder.py → CLI-PRESENT; …:tests/citation_remainder/test_report_citation_remainder.py → R1-TESTS-PRESENT
P-R3.2 R2 landed gh pr view 1111 → state=MERGED, mergeCommit.oid 89d7975d9e042ae6987131633bc0dd91226ea6f2, mergedAt 2026-09-18T20:03:40Z. On origin/main, .github/workflows/doc-health-reusable.yml:2256 id: citation-remainder and :2359 - name: Upload citation remainder report. Both merge shas are ancestors of this branch head (git merge-base --is-ancestor → true for each)
P-R3.4 the aggregation gitlink moved opensoft/xFactory #467 "Sync submodule pointers: openxFactory → 89d7975 (citation-report R2 nightly wiring)" → state=MERGED, merge d9a0c2b6e4fa82911af443d463cb167e35797bac, mergedAt 2026-09-18T20:19:14Z, two paths: the openxFactory gitlink and .github/clearing/openxfactory/PIN.yaml. gh api repos/opensoft/xFactory/contents/openxFactory → type=submodule sha=89d7975d…, and at the nightly's own checkout e7af336fcf0256d21688fe26e341a4781a9f4f50 it reads the same
P-R3.3 the first producing nightly doc-health-nightly run 35415908738 (event schedule, started 2026-09-19T02:31:31Z) uploaded citation-remainder-2026-09-19, artifact id 10575838648, 10,682 bytes zipped, expires_at 2026-12-18T02:31:31Z. Fetched with gh run download 35415908738 -R opensoft/xFactory -n citation-remainder-2026-09-19

The reading is clean and the step took its SUCCESS branch — measured, not inferred. Step 23 Citation remainder report (advisory — add-citation-remainder-report § 2.2) → success; step 24 Upload citation remainder report → success. Every ::warning:: string in the job log stands inside the runner's echo of the step's own script, between its ##[group] and ##[endgroup] markers; between that ##[endgroup] (02:52:02.7798Z) and the upload step's own group (02:52:03.8661Z) the step emitted nothing, so none of its three failure paths was taken. The artifact's own header reads head: 89d7975d9e042ae6987131633bc0dd91226ea6f2 — the gitlink, not main — with tree_unmodified_at_head: true and tree_state: the tracked content read stands UNMODIFIED at this head.

The run's overall conclusion is failure, and it is not about this artifact. It died 75 seconds after the upload, at step 52 Open regression issue, on GraphQL: Body is too long (maximum is 65536 characters) (createIssue) — openxFactory #1118, whose repair is drafted at #1121. The reading step is if: always() precisely so a reading survives such a night. Nothing in that step's path touches the citation artifact.

What landed before this, in order

PR merged merge sha
Patch B (the 29 added scenarios) #1097 2026-09-18 c32749c3
R1 — the report CLI and its tests #1100 2026-09-18T15:22:14Z 83166366d499d58b5e8801e0bb17e346c73fc8e6
R2 — the nightly wiring #1111 2026-09-18T20:03:40Z 89d7975d9e042ae6987131633bc0dd91226ea6f2
the aggregation pin-sync (opensoft/xFactory) #467 2026-09-18T20:19:14Z d9a0c2b6e4fa82911af443d463cb167e35797bac

What this pull request does, and what it deliberately does not

Two files. No third.

$ git diff --name-only $(git merge-base origin/main HEAD)..HEAD
openspec/changes/add-citation-remainder-report/evidence/first-report-89d7975d.md
openspec/changes/add-citation-remainder-report/tasks.md
  • NEW evidence/first-report-89d7975d.md (347 lines) — the committed reading, in the convention evidence/measurement-b1df95ee.md set: no Status: header (an evidence/ reading is not a lifecycle document and the sibling carries none), a bold Subject / Tree measured / Instrument / Control block at the top, everything bulky cited to opensoft/brett-wip by repository and repo-relative path and never by a host-absolute checkout path.
  • tasks.md — § 2.3 ticked with the record beneath it, and an addendum appended beneath the already-ticked § 2.2. §§ 2.1 and 2.2 are R1's and R2's records: neither is re-ticked, re-worded or re-figured, and the addendum sits beside R2's text rather than inside it.
  • NOT § 2.4. Its fact is "the realization pull request merged into main, and a pytest-suite run at the tree that merge carries GREEN" — a merge that has not happened and a run at a tree that does not yet exist. The tick rule forbids the box here ("nothing is ticked against an intention"), and the realization plan § 5.2 item 5 puts every remaining box in the ARCHIVE pull request, which carries "EVERY BOX IN §§ 2–4 TICKED IN PLACE, WITH THE FACT BENEATH IT." Decided, not forgotten.
  • NOT § 3. §§ 3.2 and 3.3 are comments on add-declared-former-id § 6.1 successor: the citation remainder has no reporting sweep (unclaimed) #1053 and the orchestrator's acts; §§ 3.4/3.5 and §§ 4.1–4.4 are the archive pull request's, on a further word. Everything § 3.3's comment needs — the three realization PR numbers, their merge shas, the first nightly's run id and artifact name — is now recorded and named in the packet.
  • NOT README.md. Reasons, since this was a bounded decision: neither R1 nor R2 touched it, so the packet set no precedent; the neighbouring house convention (README.md:3718, "THE MERGED HALF, IN HAND: the realization pull request …") writes merged realization pull requests, and this one is not merged as it is written; the README OpenSpec Records block is precisely what lane-collision Rule 6's landing window now covers, so touching it widens the collision surface for nothing; and the archive pull request moves this bullet out of Active regardless (plan § 5.3 item 4). Nothing is lost by deferring.
  • NO TEST, NO CODE, NO WORKFLOW, NO PROMOTED BYTE. R3 adds none by design (plan § R3.1 lands two paths and names no test); the Δ = 0 check and the reproduction gate are run-and-record, not committed tests.

The reading

Taken at 89d7975d9e042ae6987131633bc0dd91226ea6f2 — § 2.2's own merge commit, the commit at which both earlier slices stand landed and the one the aggregation's openxFactory gitlink pins — in a dedicated detached worktree, python3 scripts/report-citation-remainder.py . --json, exit 0, no --include, no --exclude, no --all, no --tokens, and no --history (opt-in on a measured cost; § 2.3 asks for a reading of a tree, not of a history). tree_unmodified_at_head: true, tree_state: the tracked content read stands UNMODIFIED at this head.

tracked entries / in scope / FILES read 5,536 / 2,993 / 2,989
skipped: not a file / link leaving the root / undecodable 4 / 0 / 0
distinct tokens 620
RESOLVED (of which relocated) 528 (79)
DANGLING identity half / file half 80 / 6
AMBIGUOUS 0
NOT A PACKET REFERENCE 6
raw-path-absent, total / under choice (2) 169 / 165
INCLUSIVE remainder 86 TOKENS / 57 IDENTITIES
FILTERED remainder 47 TOKENS / 30 IDENTITIES
flagged remainder entries / flagged tokens corpus-wide 39 / 83
classes: truncated / punctuation-stripped / fixture-path / unclassified 5 / 0 / 19 / 62

Both arithmetic rows close in the report's own output: 2,993 = 2,989 + 4 + 0 + 0, and 86 inclusive = 47 filtered + 39 remainder entries carrying the flag (83 is the corpus-wide figure, a larger and different quantity, never the arithmetic row's term). 620 = 528 + 80 + 6 + 0 + 6; 169 = 79 + 80 + 6 + 0 + 4; 165 − 79 = 86; 5 + 0 + 19 + 62 = 86.

The three readings of this one tree — the 86-against-82 answer, before the question

reading distinct tokens INCLUSIVE remainder who takes it
issue-native — normalization before dedup, NOT-A-PACKET-REFERENCE outside the remainder, the cross-repository flag set by ANY qualified occurrence 620 (619 by § 1.9's instrument) 86 the SHIPPED REPORT — these are the delta's three FIXED choices
the prose regex as written, DANGLING + AMBIGUOUS only 636 90 design.md D0(iv) and tasks.md § 1.1's tick
literal — the prose regex, remainder = raw-absent minus repaired 636 96 measure.py's carried alternative

Two identities re-derived at this head rather than quoted from the plan: 636 − 619 = 17 raw spellings absorbed by normalize-before-dedup, and 96 − 6 = 90, the six NOT-A-PACKET-REFERENCE tokens the literal reading holds inside its remainder. So the gap to weigh is 86 against 90 AT ONE COMMIT — four tokens, the three fixed choices — and not 86 against the published 82, which was measured at an earlier head; the remaining distance is corpus movement, and § 1.9's control at 8944758c already proved the methodology is not the variable.

The reproduction gate, field by field, at the same commit

measure.py . --no-history (§ 1.9's hand instrument) and the shipped report, same worktree, same commit, minutes apart:

figure § 1.9's instrument the shipped report
tracked entries 5,536 5,536 ✓
tracked ENTRIES in scope 2,993 2,993 ✓
distinct tokens 619 620 +1, recorded
tokens with no raw path, choice (2) applied 165 165 ✓
repaired by the identity rule 79 79 ✓
DANGLING identity half 80 80 ✓
DANGLING file half 6 6 ✓
AMBIGUOUS 0 0 ✓
INCLUSIVE remainder, TOKENS 86 86 ✓
NOT A PACKET REFERENCE 5 6 +1, the same one token

The one moving figure-pair is a single token, differenced rather than estimated. The two token sets were compared: the report holds exactly one token the hand instrument does not — openspec/changes/archive/.., normalized from openspec/changes/archive/... by the unconditional trailing-full-stop strip — and the hand instrument holds none the report does not. The hand instrument folds that spelling onto the archive prefix by stripping a dot off a .. segment; the report refuses to, because rewriting a path that walks UP into a citation OF what it walks up from is inventing the citation. Its raw path is PRESENT and its outcome is NOT-A-PACKET-REFERENCE, so it stands outside the remainder population twice over and the remainder is unmoved at 86 either way. This is precisely the divergence R1's § 2.1 record already carries (Copilot PRRT_kwDOTAvnrs6jsy7w on #1100), re-found here independently at a different head and in the same direction. Nothing else disagrees, so § 2.3's defect clause is not reached.

Two rows are NOT compared, deliberately and with the packet's own reason. The hand instrument's this-tree-only reading sets aside 23 tokens over all tokens (22 of the raw-absent) and leaves 64; the report's FILTERED reading removes 39 flagged remainder entries and leaves 47. Those are two different rules, not two answers to one question: the report's is D3(c)'s FIXED rule (the citing line plus the three lines above it, five named signals), the hand instrument's is § 1.3's wide decoration reading, and D3(c) already measured the distance between them (13 of 14 hand-found cross-repository tokens caught, 2 false positives among the other 43). § 2.3 gates on the INCLUSIVE reading, which holds every flagged entry in and so does not depend on that rule at all.

The instrument is § 1.9's own, proved at § 1.9's own head

The shipped report run over a detached worktree at b1df95ee80633339907c9e661164a783885a5d30 — whose scripts/packet_reference.py is byte-identical to this head's (git diff --stat b1df95ee HEAD -- scripts/packet_reference.py is empty), so the resolver is not a variable:

figure § 1.9 published the shipped report
distinct tokens 571 572 +1, the same one token
raw path absent 151 151 ✓
resolve by identity 73 73 ✓
remainder 78 78 (72 identity half, 6 file half) ✓
AMBIGUOUS 0 0 ✓
NOT A PACKET REFERENCE 4 5 +1, the same one token
entries in scope / files read — 2,973 / 2,969 as R1's record also found

So the movement from 78 at b1df95ee to 86 here is CORPUS movement read by one unchanged instrument, and not a change of instrument.

The nightly's own reading, and the local reproduction of it

The artifact of run 35415908738 was fetched and compared block by block against the local run at the same commit. head, tree_unmodified_at_head, tree_state, reading, population, counts, grouping, listed and all 57 listed identities are EQUAL. The single field that differs is root — /home/runner/work/xFactory/xFactory/openxFactory there, the worktree path here — a fact about where the tree stood, not about the tree. D6's series has its first point, taken twice on two machines and agreeing.

Δ = 0 — the committed note minted no remainder

Run in two clean detached worktrees rather than by restoring a dirty tree, so both readings declare tree_unmodified_at_head: true:

figure merge base b0329d65 this head Δ
distinct tokens 619 619 0
INCLUSIVE remainder, TOKENS 86 86 0
remainder IDENTITIES 57 57 0
FILTERED remainder, TOKENS 47 47 0
flagged remainder entries 39 39 0
outcomes block identical identical 0
classes block identical identical 0
FILES read 2,978 2,979 +1

Only FILES read moves, by exactly one file, and that file is the note this pull request adds — which is the whole claim. Measured at 60b2a135 and re-measured after the review round at ef2baffb: identical on every row, the prose correction having moved no token. The hand instrument agrees: its issue-native block at the merge base and at this head is byte-identical (diff of the two blocks → empty), which is R1's own form of the same check.

The tick table — every box, its fact or its owner

box state after this PR fact, or who it waits on
§§ 1.10–1.16 (D1–D7) [ ], untouched the ratification record's, not R3's. Still open on origin/main; raised here and not taken
§ 1.17 [x], untouched already ticked, dated 2026-09-17
§ 2.1 [x], untouched R1's record in #1100. Not re-ticked, not re-worded
§ 2.2 [x], untouched, addendum appended beneath it R2's record in #1111 claims the DIFF. The addendum discharges the half that record named as owed: run 35415908738, artifact citation-remainder-2026-09-19 (id 10575838648, expiring 2026-12-18), the gitlink the run read from and how it got there, and the headline the artifact carries. It moves no decision of R2's
§ 2.3 [x] — THIS PULL REQUEST evidence/first-report-89d7975d.md, commit 42735d3a; the reading at 89d7975d; the reproduction gate; the three readings; Δ = 0
§ 2.4 [ ], left open the last realization merge and a pytest-suite run at the tree that merge carries. Neither exists inside this PR. The ARCHIVE pull request ticks it (plan § 5.2 item 5)
§ 3.1 [x], untouched tests/sequenced_after/corpus-ledger.yaml still reads moved_by: "#1069"; not re-seeded, no --seed-ledger run
§ 3.2 [ ] the ratification comment on #1053 — the orchestrator's act
§ 3.3 [ ] the realization comment on #1053 — the orchestrator's act. Everything it needs is now recorded: #1100 → 83166366…, #1111 → 89d7975d…, this PR, and run 35415908738 + citation-remainder-2026-09-19
§§ 3.4, 3.5 [ ] the ARCHIVE pull request, on a further word. #1053 is shut there and nowhere earlier
§§ 4.1–4.4 (residue) [ ] the ARCHIVE pull request, as records of things NOT taken

Scenario coverage — six by name, none claimed as realized

R3 realizes no requirement of its own; all five are R1's, and the delta stands at 5 requirements / 72 #### Scenario: blocks (grep -c in this tree). What R3 adds is a different KIND of evidence — a live reading of the real corpus where R1's is a fixture corpus in a temporary tree:

  1. The report is taken over a corpus — the committed note carries the head, the tracked ENTRIES in scope and the FILES read, the distinct tokens, and the remainder in TOKENS and in IDENTITIES, over the real corpus. (The third THEN, "every remainder entry MUST name the files that cite it", is exercised by the run and held in the brett-wip dump, not in the committed note.)
  2. The tree read is not clean at the head printed — the CLEAN half only: the reading declares its tree state beside its head and it reads UNMODIFIED, which is what makes it a valid first point in D6's series. The modified branch is R1's fixtures and R2's step; not claimed here.
  3. No identity in the corpus is claimed by two packets — the AMBIGUOUS row printed as 0 rather than omitted, beside both DANGLING halves, RESOLVED and NOT-A-PACKET-REFERENCE, in one reading, at corpus scale.
  4. A reading is compared against an earlier reading — R3's strongest: § 2.3 IS such a comparison, and each reading states its extraction pattern and its three fixed choices, which is what the three-readings table discharges at the moment the comparison is made.
  5. The report's own output is committed into the corpus — satisfied by construction, not made to pass: this PR commits figures and prose, never the report's output, so the antecedent never fires — and the Δ = 0 check is the proof that it did not, because a fired antecedent would have moved the remainder.
  6. The report finds a remainder — a non-empty remainder (86) and exit 0, pasted above. Live evidence for "it MUST exit successfully".

Not claimed: A caller's refinement names the report's own output (no --include/--exclude passed here — R1's fixtures alone) and The report cannot run (this run succeeds, by construction).

Decisions taken, each with its reason

  1. Q3 — counts-only committed evidence, the itemized list and the --json dump in opensoft/brett-wip. Reason: this packet's evidence/ directory is inside the scanned population and the itemized table writes one citation token per remainder line plus a cited at <path>:<line> line per occurrence, so committing it is the self-counting act D5 exists to refuse — and it would FIRE the delta's own The report's own output is committed into the corpus antecedent, whose THENs require the output-path exclusion to go live in the same change, pulling code into a slice sized as documents. The realization plan § 6 Q3 authorizes R3's author to proceed on this recommendation; taken, with confirmation outstanding. The files stand in opensoft/brett-wip at handoffs/xFactory/attachments/openxfactory-1-2026-09-13/1053/, commit df0dae75f97c41a4d01f5dc29770356ac1d0b5a4: first-report-89d7975d.json, first-report-89d7975d.txt, first-report-89d7975d-all-tokens.json, measure-89d7975d.{txt,json}, recount-89d7975d.txt, nightly-citation-remainder-2026-09-19.json, first-report-control-b1df95ee.json, and the four Δ-check files.
  2. The § 2.2 addendum was appended, because a producing run exists to name. Reason: R2's own record names that half as owed and separately citable; the alternative (leave it to the archive PR) would leave the packet unable to say, at § 2.2, that the wiring ever produced anything.
  3. § 2.4 left open. Reason in the tick table above: its fact cannot exist inside the pull request that would claim it.
  4. README.md left untouched. Four reasons above; the archive PR edits the bullet regardless.
  5. <sha8> = the R2 merge sha (89d7975d), under the ratified D5 option 1 — not R1's 83166366, which the brief reserves for a D5 veto to option 3/"(c)" that did not happen. It is also, usefully, the exact commit the nightly read.
  6. --history left off. Reason: D2 made it opt-in on a measured cost and § 2.3 asks for a reading of a tree.
  7. The reading was taken at 89d7975d rather than at this branch head. Reason: that is the REALIZATION head — the commit at which R1 and R2 both stand landed and the one the aggregation's gitlink pins — so the committed reading and the nightly's first series point are the SAME reading, comparable field for field. The branch head is measured too, as the Δ = 0 pair, and its figures are in the note.

Decisions RAISED, not taken

  1. §§ 1.10–1.16 (D1–D7) are still [ ] on main although the bare ratifying word took all seven at the RECOMMENDED option. The tick table calls them the ratification record's, not R3's. Raised, untouched.
  2. Rule 6's LANDING/LANDED lines and any LANES.md edit are the orchestrator's acts, not this writer's — and the window IS owed on this pull request, which edits openspec/changes/. Note that R1 and R2 took no window although both edited tasks.md; the plan § R3.4 names R3 as the slice that takes it. Not resolved by skipping.
  3. §§ 3.2 and 3.3's comments on add-declared-former-id § 6.1 successor: the citation remainder has no reporting sweep (unclaimed) #1053 — the orchestrator's acts.
  4. The archive pull request (§§ 3.4, 3.5, §§ 4.1–4.4, the promotion of the five ## ADDED requirements into openspec/specs/packet-citation-report/, still absent, and the sweep-ledger row) — a further act on a further word.
  5. openxFactory doc-health nightly: "Open regression issue" fails every night (issue body > 65536 chars), red since 2026-09-05 #1118, the nightly's regression-issue body exceeding GitHub's 65,536-character limit, which is why run 35415908738 concluded failure. Draft Cap the doc-health nightly's regression-issue body (fixes the red finalize since 2026-09-05) #1121 carries the repair; outside this packet's scope and named here only because this PR's evidence cites that run.

Validators

command result
OPENSPEC_TELEMETRY=0 openspec validate add-citation-remainder-report --strict Change 'add-citation-remainder-report' is valid — exit 0
OPENSPEC_TELEMETRY=0 openspec validate --all --strict Totals: 106 passed, 1 failed (107 items) — exit 1, the ONE failure being the pre-existing add-chain-attestation (a MODIFIED block omitting a scenario the current spec still has). No new failure: the same command at the merge base reports the same one
python3 scripts/validate-openspec-cli-pin.py --change add-citation-remainder-report --strict OK openspec-cli-pin: @fission-ai/[email protected] verified against its content address and every target validated --strict clean — exit 0
scripts/proposal-support.py . verify proposal support verification ok — exit 0
python3 scripts/validate-code-surface.py . code_surface validation passed (every active declaration's head is admitted). — exit 0
python3 scripts/validate-sequenced-after.py . sequenced_after validation passed (44 active changes, 17 declaring the field). + archive-date agreement passed + archive-date-vs-commit agreement passed (… 13 disposition(s) in force, enforcement error) — exit 0. Plain form only; no --seed-ledger
python3 scripts/validate-former-id-arrival.py . --base origin/main --head HEAD former-id arrival gate passed (every packet-directory move in range is a draft's, an archive relocation, or declared). — exit 0
python3 scripts/doc-health.py --single-repo . exit 0. 107 severity lines, byte-identical to a same-kind control clone at the merge base with submodules materialized in both, once the clone's own directory name is normalized out of four tag-hygiene rule strings that embed it (in root <clone>). Counts on both sides: 31 critical, 28 error, 28 warning, 20 info. Zero new findings
python3 -m pytest tests/citation_remainder -q 152 passed in 10.38s — exit 0
python3 -m pytest tests/ -q -m "not postgres" 8261 passed, 21 skipped, 338 deselected, 9 warnings, 383 subtests passed in 1312.79s (0:21:52) — exit 0, run locally at this head; the required pytest-suite gate runs the same invocation on this pull request

D7 scope fences, base pinned to the merge base

$ BASE=$(git merge-base origin/main HEAD)     # b0329d65831d181e4aab74ce2ec8e26663c4ddb2
$ git diff $BASE..HEAD -- scripts/packet_reference.py          | wc -l   0
$ git diff $BASE..HEAD -- scripts/report-citation-remainder.py | wc -l   0
$ git diff $BASE..HEAD -- scripts/validate-pin-registrations.py| wc -l   0
$ git diff $BASE..HEAD -- scripts/doc_health                   | wc -l   0
$ git diff $BASE..HEAD -- scripts                              | wc -l   0
$ git diff $BASE..HEAD -- openspec/specs                       | wc -l   0
$ git diff $BASE..HEAD -- .github/workflows                    | wc -l   0
$ git diff $BASE..HEAD -- tests                                | wc -l   0
$ git status --porcelain | wc -l                                         0

Diffstat: 2 files changed, 467 insertions(+), 1 deletion(-).

What is owed, and to whom

Refs #1053.

Lane: openxfactory-1

🤖 Generated with Claude Code

brettheap and others added 2 commits September 19, 2026 03:07
The realization head is § 2.2's own merge commit
89d7975, which is also the openxFactory
gitlink the aggregation's first producing nightly read the report from. The
reading is taken there, in a clean detached worktree, exit 0, no refinement
passed: 620 distinct tokens over 2,989 files read, INCLUSIVE remainder 86
tokens / 57 identities, FILTERED 47 / 30, AMBIGUOUS 0.

The note carries COUNTS, the comparison tables and prose. The --json dump and
the itemized per-identity table are NOT committed and stand in the repository
opensoft/brett-wip at
handoffs/xFactory/attachments/openxfactory-1-2026-09-13/1053/: this directory
is inside the scanned population, the itemized table writes one citation token
per remainder line, and committing it would fire the delta's own scenario for a
committed report and pull the output-path exclusion into a slice sized as
documents. That is the realization plan's Q3 recommendation, taken under the
authorization it gives, with confirmation outstanding.

The reproduction gate passes on the inclusive reading field by field against
§ 1.9's hand instrument at the same commit, with the single recorded
`openspec/changes/archive/..` divergence re-found independently and the
remainder unmoved at 86 either way; the same report run over a worktree at
b1df95e reproduces § 1.9's published 78. The three readings of this tree are
stated so the 86-against-90 gap is answered before it is asked.

Refs #1053.

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…g nightly beside § 2.2

§ 2.3 closes on a fact: the reading the shipped report produced at the
realization head 89d7975, committed as evidence by 42735d3 in this pull
request, with the reproduction gate against § 1.9's hand instrument passing
field by field on the inclusive reading, the one recorded
`openspec/changes/archive/..` divergence re-found and classified, the three
readings of this tree stated, and Δ = 0 for the note's own commit.

§ 2.2 is NOT re-ticked and NOT re-worded. R2's record named one half as owed
separately — the first doc-health-nightly run that produces the artifact, by
run id and artifact name — and this appends an addendum that discharges exactly
that half: opensoft/xFactory run 35415908738, artifact
citation-remainder-2026-09-19 (id 10575838648, expiring 2026-12-18), the
reading and upload steps both success with no warning emitted, the run's own
overall failure at a later unrelated step named for what it is, and the
openxFactory gitlink the run read the report from, moved there by
opensoft/xFactory PR #467 — a fact invisible from the artifact alone and named
by no earlier document in this packet.

§ 2.4 stays open on the tick rule's own first clause: the fact it asserts is a
merge that has not happened and a run at a tree that does not yet exist, so it
belongs to the pull request that can state it.

Refs #1053.

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

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

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

@sourcery-ai

sourcery-ai Bot commented Sep 19, 2026

Copy link
Copy Markdown

Reviewer's Guide

This two-file documentation-only PR realizes R3 by committing a reproducible first reading of the shipped citation-remainder report at the R2 head, validating it against the hand instrument and nightly artifact, and recording the producing run while deliberately leaving merge-dependent § 2.4 and archive actions open.

Sequence diagram for the citation remainder report evidence flow

sequenceDiagram
    participant Aggregation as xFactory nightly
    participant Report as report-citation-remainder.py
    participant Artifact as Citation artifact
    participant Evidence as Committed evidence

    Aggregation->>Report: run at gitlink 89d7975d
    Report-->>Aggregation: exit 0 and report JSON
    Aggregation->>Artifact: upload citation-remainder-2026-09-19
    Evidence->>Report: reproduce reading at 89d7975d
    Evidence->>Artifact: compare report blocks and identities
    Artifact-->>Evidence: matching reading, root differs only by checkout path
Loading

Flow diagram for the citation remainder reproduction gate

flowchart LR
    HEAD[Realization head 89d7975d]
    SHIPPED[Shipped report]
    HAND[Hand instrument measure.py]
    COMPARE{Inclusive reading agrees?}
    RECORD[Commit evidence and tick § 2.3]
    OPEN[Leave defect clause open]

    HEAD --> SHIPPED
    HEAD --> HAND
    SHIPPED --> COMPARE
    HAND --> COMPARE
    COMPARE -->|86 tokens / 57 identities| RECORD
    COMPARE -->|disagreement| OPEN
Loading

File-Level Changes

Change Details Files
Adds committed evidence for the first production reading of the citation-remainder report at the R2 realization head.
  • Records the report invocation, clean-tree state, population counts, remainder figures, classifications, arithmetic checks, and comparison readings.
  • Reproduces the hand-instrument reading at both the current realization head and the earlier control head, documenting the single known token discrepancy while confirming the inclusive remainder remains 86.
  • Matches the first nightly artifact field-by-field and explains the unrelated overall nightly failure.
  • Documents that the committed note does not include itemized report output and verifies that adding it minted no remainder tokens.
openspec/changes/add-citation-remainder-report/evidence/first-report-89d7975d.md
Marks realization task § 2.3 complete and appends evidence for the first producing nightly without changing prior slice records or claiming post-merge work.
  • Ticks § 2.3 and records commit, measured head, command, headline results, reproduction gate, control-head validation, nightly agreement, and Δ = 0 check.
  • Adds an addendum beneath § 2.2 identifying the producing run, artifact, aggregation gitlink pin, successful report/upload steps, and unrelated failure cause.
  • Leaves § 2.4 and orchestration/archive responsibilities open.
openspec/changes/add-citation-remainder-report/tasks.md

Possibly linked issues


Tips and commands

Interacting with Sourcery

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

Customizing Your Experience

Access your dashboard to:

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

Getting Help

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

Only minor documentation nits remain, with no approval-blocking issues.

Review effort: Lite
Findings: 1 Low severity

Open (1)
What changed in this PR

This PR records the first production citation-remainder report reading and updates the realization task evidence.

Changes:

  • Adds measured report, nightly artifact, reproduction, and zero-delta evidence.
  • Marks task §2.3 complete and records the §2.2 nightly addendum.
File Summary
openspec/​changes/​add-citation-remainder-report/​tasks.md Records R3 realization evidence and nightly results.
openspec/​changes/​add-citation-remainder-report/​evidence/​first-report-89d7975d.md Adds the first production measurement and supporting validation evidence.

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

"in R1's own words' spirit" -> "in the spirit of R1's own words". Prose only:
no figure, no citation and no token moves, and the reading the file records is
untouched. (Copilot PRRT_kwDOTAvnrs6j8qNG on PR #1126.)

Refs #1053.

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

The mint-check conclusion must be revised to accurately describe the non-remainder citation-shaped spelling.

Review effort: Lite
Findings: None

Resolved since last review (1)

@sonarqubecloud

Copy link
Copy Markdown

@brettheap

Copy link
Copy Markdown
Contributor Author

Brett Heap, 2026-09-21T20:23Z, in the lane session (verbatim): "land #1126 when green" — the landing word for this pull request (R3, the committed reading). Recorded here so the Rule 6 LANDING line can cite it. The decisions recorded in the body (counts-only evidence, § 2.2 addendum, § 2.4 left for the archive PR, README untouched, sha8 = the R2 merge sha, --history off, the reading taken at 89d7975) stand as written unless ruled otherwise on #1053.

Lane: openxfactory-1

@brettheap

Copy link
Copy Markdown
Contributor Author

FREEZE — lane openxfactory-1, session 393ade52-a921-4dd9-9dc5-224ebc056651, 2026-09-21T20:24Z: head ef2baffb is the landing candidate; no further pushes to realize/citation-report-r3. Gates read: six required checks GREEN at this head, main's newest decided pytest-suite (b0329d65, this PR's base) GREEN, 0 open review threads, no closing keyword. Word: Brett Heap "land #1126 when green" (comment 5766996007). Rule 6 LANDING follows.

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-21T20:24:54Z, PR #1126 into opensoft/openxFactory main

Guard at 2026-09-21T20:24:59Z on head ef2baffbd3bc5a7deb2fdfa17a800c3cb718e4d5: 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 (REALIZE add-citation-remainder-report R3 (committed reading); Brett Heap 2026-09-21 land #1126 when green (comment 5766996007)). Merge = merge commit.

@brettheap
brettheap merged commit 93a5ce2 into main Sep 21, 2026
17 checks passed
@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-21T20:25:07Z, PR #1126 into opensoft/openxFactory main → 93a5ce2

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