Skip to content

Archive add-unclassified-finding-class: realized by Speckit 026, promoted as a pure append (+1 requirement, +6 scenarios) - #469

Merged
brettheap merged 1 commit into
mainfrom
change/archive-add-unclassified-finding-class
Aug 28, 2026
Merged

brettheap merged 1 commit into
mainfrom
change/archive-add-unclassified-finding-class

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Archives add-unclassified-finding-class on the merge-plus-green rule its § 5.1 declared. Do not merge without review — this is the archive act, not the realization.

Lineage — two merges, not one

This packet was amended mid-flight, so the archive rests on two ancestors of origin/main, both re-verified here with git merge-base --is-ancestor (exit 0 on each) rather than read off a pull-request page:

merge what
1 #461 → 6d100e51 the delta amendment — "a drift shape is the arm's template with every interpolated field masked" (Brett, 2026-08-28, verbatim "Amend: shape = arm template, all interpolations masked"). It lands first by construction: the realization's spec cites the amended text.
2 #466 → db2442ce the realization, Speckit 026-unplaced-finding-drift — the fifth FindingClass, its anchored pattern, the per-shape emit through registered _ArmTemplates, four test files, a behavioural fixture tree, and the amended byte-level report contract.

Gate numbers (base db2442ce, before → after the act)

gate before after
python3 -m pytest tests/doc-health -q 1270 passed, 0 failed 1270 passed, 0 failed
OPENSPEC_TELEMETRY=0 openspec validate --all --strict 76 passed, 0 failed (24 active + 52 specs) 75 passed, 0 failed (23 active + 52 specs) — −1, exactly as promotion of one change predicts
doc-health --single-repo . 5 critical, 11 error, 41 warning, 11 info, 0 new regressions byte-identical
… --skip-family modified-block-currency 5 critical, 11 error, 41 warning, 4 info same
movement +0 warning / +7 info same — equal to the family's own counts (--family modified-block-currency → 0/0/0/7)

The fifth class read zero on the day it shipped, and that is the whole of its evidence. The family's block renders scenario-title completeness: 0 / carriage ledger: 7 / title resolution and ordering: 0 / marker defects: 0 / unplaced-finding drift: 0, and the residual row does not render. The packet predicted the fifth class would move nothing; the only change in that section is the zero row, which the realization's own before/after evidence pair also shows as a one-line diff over a full twenty-two-family report. § 3.4 re-measured and holds: zero findings name any path under the packet.

Per-requirement promotion, verified BEFORE archiving

The delta is ADDED-only — grepped, not recalled: exactly one ## section header (## ADDED Requirements), no ## MODIFIED, ## REMOVED or ## RENAMED block anywhere.

requirement canon before delta canon after verdict
A modified-block-currency finding its own class map cannot place is itself a finding (ADDED) absent 6 scenarios 6 scenarios pure append; the title collides with none of canon's 38
the other 38 requirements — untouched unchanged bytes identical, order preserved
FILE 38 requirements, 173 scenarios — 39 requirements, 179 scenarios +1 requirement, +6 scenarios

git diff --stat openspec/specs/doc-health/spec.md → 1 file changed, 73 insertions(+), 0 deletions(−). The requirement lands last in the file; the three preceding headings are unmoved.

Remainder figures

Remainder = the whole document minus the appended requirement, each requirement running from its ### Requirement: line to the next such line or to EOF. Every ### heading in this file is a requirement heading (38 before, 39 after, 0 non-requirement), so the definition is exact. Measured two ways, per the resolved precedent in 2026-08-27-add-modified-block-currency-check § 8.2:

construction raw normalized
slice (cut the chunk out by heading offsets) 139505 == 139505 139503 == 139503
split('\n### ') + drop + '\n### '.join (the mbc construction) 139505 vs 139504 139503 == 139503

The one-byte gap is that precedent's own N2 artifact reproducing exactly: the join is lossless except when the dropped chunk is the file's last heading — true only of an appended requirement — and it costs one join newline on after alone. No EOF blank line is truly consumed.

The strongest reading, which only an append admits: canon before is a strict byte prefix of canon after (after.startswith(before) → True), 139505 → 144975 bytes, the whole difference being the 5470-byte appended chunk. Nothing before that offset moved by one byte.

No test fell due

1270 → 1270, no re-aim, no retirement, no module changed — and that is a consequence of D1 rather than luck. An ADDED-only packet drew no self-finding and is named by no self-gate subject, so the F3 self-gate and F5's own tests read the same corpus after the act as before. Contrast add-modified-block-currency-check's archive, which re-aimed five tests and retired one because its own MODIFIED block was a live subject the act moved out of the active set.

The whole report diff is three lines, and none is a finding

Canon words 218169 → 219088 (+919), governance words 690954 → 691873 (the same +919, moving from active-change prose into promoted prose), canon share 31.6% → 31.7%, and the promoted-specs row 160586 → 161505.

Records

Group 2's fifteen boxes are ticked against #466 with a dated discharge pointer at the group head. Eight carry a RECONCILED clause rather than a silent tick:

  • by the amendment (Amend add-unclassified-finding-class: a drift shape is the arm's template with every interpolated field masked #461) — § 2.4 (the lexical mask is now the fail-closed fallback only; each arm renders through one registered _ArmTemplate), § 2.6 (scenario 3's two halves discharged against the amended rule), § 2.14 (mutant (f) is the amendment's).
  • by defects in the packet that realization found — § 2.15 three-vs-four test files (O7); § 2.7 the function rename the pin roster did not ask for (O8) and § 3.6's eight predicted reds that were five; § 2.8 F2's provenance checker, which would not have covered the new tree (O5); § 2.14(e) the mutant no value comparison can kill, whose owed pin is a simulated flip over the module's own source (O6); § 2.10 an unforeseen allowlist pin. § 2.3 and § 2.4 also carry O3 (the class's opening phrase is deliberately not the residual row's wording) and O4 (the rule text is quoted plain, not repr-wrapped, so "verbatim" stays literally true).

§ 4 is left OPEN as authored — § 4.2's first nightly with this emit present is the measurement no archive act can supply, the population being empty on this tree and unmeasured everywhere else. § 1.2's veto flag stays open with it: the three orchestrator decisions were never vetoed and never affirmatively ruled, and not-vetoed is neither. Status: ratified is unchanged in the archived proposal, and the three moved files are byte-identical to their active originals (tasks.md carries the record).

add-modified-block-currency-check § 7.2's flip of the scenario-title arm to error is untouched and still owed; _DRIFT_SEVERITY exists so that flip cannot drag this class with it.

Scope

openspec/ (the move plus the canon append) and README.md only — no test re-aim was needed. Six files: four renames, openspec/specs/doc-health/spec.md, and the README entry moved active → archived into the 2026-08-28 group.

Refs #357 — deliberately not Closes. #357 stays open until § 7.2's flip, which this change does not advance.

🤖 Generated with Claude Code

…ent #461; promoted as one ADDED requirement, 6 scenarios)

Archived on the merge-plus-green rule the packet's § 5.1 declared, and on TWO
merges rather than one because this packet was amended mid-flight. Both are
ancestors of origin/main, re-verified here with `git merge-base --is-ancestor`
rather than read off a pull-request page:

  PR #461 -> 6d100e5  the DELTA AMENDMENT, "a drift shape is the arm's template
                       with every interpolated field masked" (Brett, 2026-08-28,
                       verbatim "Amend: shape = arm template, all interpolations
                       masked"). It lands FIRST by construction — the
                       realization's spec cites the amended text.
  PR #466 -> db2442c  the realization, Speckit 026-unplaced-finding-drift: the
                       fifth FindingClass, its anchored pattern, the per-shape
                       emit through registered _ArmTemplates, four test files, a
                       behavioural fixture tree, and the amended byte-level
                       report contract.

GATE NUMBERS, base db2442c, before -> after the act:

  pytest tests/doc-health -q         1270 -> 1270 passed, 0 failed
  openspec validate --all --strict     76 ->   75 passed, 0 failed
                                     (24 active + 52 specs -> 23 + 52; -1
                                      exactly as promotion of one change
                                      predicts)
  doc-health --single-repo .         5 critical, 11 error, 41 warning, 11 info,
                                     0 new regressions — BYTE-IDENTICAL either
                                     side of the act
  ... --skip-family modified-block-currency
                                     5 critical, 11 error, 41 warning, 4 info

Movement +0 warning / +7 info in both readings, equal to the family's own
per-severity counts (--family modified-block-currency -> 0/0/0/7). The family's
report block reads scenario-title 0 / carriage ledger 7 / title resolution and
ordering 0 / marker defects 0 / unplaced-finding drift 0, and the residual row
does not render — the packet predicted the fifth class would move nothing, and
the only change in that section is the zero row. Zero findings name any path
under the packet, re-measuring § 3.4.

PER-REQUIREMENT PROMOTION, verified BEFORE archiving. The delta is ADDED-only:
one `## ` section header, no MODIFIED/REMOVED/RENAMED block anywhere, and its
one title collides with none of canon's 38.

  requirement                                     | before | delta | after
  ------------------------------------------------|--------|-------|-------
  "A modified-block-currency finding its own class |        |       |
   map cannot place is itself a finding" (ADDED)   | absent | 6 sc. | 6 sc.
  the other 38 requirements                        |   —    | none  | unchanged
  FILE                                             | 38 req,| —     | 39 req,
                                                   | 173 sc.|       | 179 sc.

+1 requirement, +6 scenarios. `git diff --stat openspec/specs/doc-health/spec.md`
= 73 insertions(+), 0 deletions(-). REMAINDER — the whole document minus the
appended requirement, each requirement running from its `### Requirement:` line
to the next or to EOF; every `### ` heading in this file is a requirement
heading (38 before, 39 after, 0 non-requirement). Slice construction: 139505 ==
139505 raw, 139503 == 139503 normalized. The mbc § 8.2 split/join construction:
139505 vs 139504 raw, 139503 == 139503 normalized — that precedent's own N2
artifact reproducing exactly, the join losing one newline only when the dropped
chunk is the file's LAST heading. Strongest reading, which only an append
admits: canon before is a strict byte PREFIX of canon after, 139505 -> 144975,
the whole difference being the 5470-byte appended chunk.

NO TEST FELL DUE, and that is a consequence of D1 rather than luck: an
ADDED-only packet drew no self-finding and is named by no self-gate subject, so
the F3 self-gate and F5's tests read the same corpus after the act as before.
Contrast add-modified-block-currency-check's archive, which re-aimed five tests
and retired one.

The whole report diff across the act is THREE lines and none is a finding:
canon words 218169 -> 219088 (+919), governance words 690954 -> 691873 (the same
+919 moving from active-change prose into promoted prose), canon share
31.6% -> 31.7%, and the promoted-specs row 160586 -> 161505.

RECORDS. Group 2's fifteen boxes are ticked against #466 with a dated discharge
pointer at the group head; EIGHT carry a RECONCILED clause rather than a silent
tick — § 2.4, § 2.6 and § 2.14 moved by the amendment, and § 2.3, § 2.7, § 2.8,
§ 2.10 and § 2.15 by defects in the packet that realization found (three-vs-four
test files, eight predicted reds that were five, the function rename the roster
did not ask for, F2's provenance checker that would not have covered the new
tree, the mutant no value comparison can kill, and an unforeseen allowlist pin).
§ 4 is left OPEN as authored — § 4.2's first nightly with this emit present is
the measurement no archive act can supply. § 1.2's veto flag stays open,
not-vetoed being neither vetoed nor ruled. `Status: ratified` is unchanged in the
archived proposal, and the three moved files are byte-identical to their active
originals.

add-modified-block-currency-check § 7.2's flip of the scenario-title arm to
`error` is untouched and still owed; _DRIFT_SEVERITY exists so that flip cannot
drag this class with it.

Refs #357

Co-Authored-By: Claude Opus 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 28, 2026 08:47

@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.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

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.

Pull request overview

This pull request archives the add-unclassified-finding-class OpenSpec change packet after its realization merged, and promotes its ADDED-only doc-health requirement into canon while updating the repository’s OpenSpec records index.

Changes:

  • Move the add-unclassified-finding-class entry from Active changes to Archived changes in README.md, with an archive record and gate evidence.
  • Append the realized requirement to openspec/specs/doc-health/spec.md (pure ADDED requirement promotion).
  • Add the archived packet artifacts under openspec/changes/archive/2026-08-28-add-unclassified-finding-class/ (proposal.md, tasks.md, delta spec.md, .openspec.yaml).

Reviewed changes

Copilot reviewed 3 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
README.md Moves the change record from Active → Archived and records the archive act details.
openspec/specs/doc-health/spec.md Promotes the new ADDED requirement into canon as an append-only change.
openspec/changes/archive/2026-08-28-add-unclassified-finding-class/tasks.md Records the work plan as discharged and preserves realization evidence references.
openspec/changes/archive/2026-08-28-add-unclassified-finding-class/specs/doc-health/spec.md Adds the archived delta copy of the ADDED requirement.
openspec/changes/archive/2026-08-28-add-unclassified-finding-class/proposal.md Adds the archived proposal packet content and decisions record.
openspec/changes/archive/2026-08-28-add-unclassified-finding-class/.openspec.yaml Adds the archived packet metadata and machine-readable origin.
Suppressed comments (1)

openspec/changes/archive/2026-08-28-add-unclassified-finding-class/tasks.md:79

  • This archive record now states the Speckit feature is DISCHARGED, but the earlier paragraph still says the feature "is ... IN FLIGHT", which makes the record internally contradictory. Update the earlier wording so it matches the discharged state.

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


The pattern that places that class SHALL be anchored at the start of the rule
text, this finding carrying a quoted rule text that may itself begin in the shape
of an arm's.
@brettheap
brettheap merged commit 600c177 into main Aug 28, 2026
4 checks passed
@brettheap
brettheap deleted the change/archive-add-unclassified-finding-class branch August 28, 2026 09:10
brettheap pushed a commit that referenced this pull request Aug 28, 2026
Re-measured after origin/main was merged a second time: main landed #463 (the
measured-latents filing), #466/#469 (add-unclassified-finding-class realized and
archived) and a nightly token fix, adding twenty-one tests between them.
tests/doc-health reads 1272 passed / 0 failed on the merged head against 1251
before it — grown by main's twenty-one and by none of this packet's. validate
--all --strict moved 77 to 78 for the same reason. The floor is UNMOVED at 5
critical / 7 error / 41 warning / 12 info.

Task 4.2b records the conflict and its resolution: #463 added two active-change
entries at the head of the OpenSpec Records block where this packet had added
one — a pure both-sides-inserted-at-the-head conflict in README.md alone, the
self-gate ledger auto-merging cleanly around this packet's row. Resolved by
keeping BOTH sides, this entry at the head as the newest arrival and main's two
blocks verbatim beneath it. Nothing of main's was dropped, reworded or
reordered, and each of the three entries appears exactly once.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants