Skip to content

Bring roster-device's lifecycle header into the window every reader scans - #271

Merged
brettheap merged 2 commits into
mainfrom
change/roster-device-header-window
Aug 23, 2026
Merged

brettheap merged 2 commits into
mainfrom
change/roster-device-header-window

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Closes the last parked item from sanction-ratified-record-spelling's authoring measurement. archive/2026-08-22-add-roster-device-admission-surface/proposal.md carried Status: ratified at real line 41 and its Ratified: citation at 42 — outside the 15-real-line window (corpus.STATUS_SCAN_LINES) every lifecycle reader scans, so the document's status (not merely its citation) was invisible: parse_status returned None and censuses counted it headerless.

  • Pure reorder, proven: the header block and the archive banner exchanged places; line multiset and sorted whole-file bytes equal before/after, --numstat 13/13. The Ratified: line itself is untouched — valid where it stood (2-of-3 floor axes), just unreadable.
  • The naive fix was a trap, avoided: pushing code_surface/target_release below the header would have blanked the dashboard's release-realization tile — generator.py reads both through the same window (HEADER_SCAN_LINES = corpus.STATUS_SCAN_LINES). Both stay in the window; _header_value verified for both.
  • Corpus-wide sweep: roster-device was the ONLY proposal (of 107) with an out-of-window Status line; the 47 headerless ones are the known pre-convention class, enumerated not swept.
  • After: parse_status → ratified; census 44 archived ratified, all 44 carrying exactly one in-window citation. Box 5.2 in the sanction archive is now fully discharged and ticked (phase-b half PR Give phase-b's archived proposal the ratification citation its header owed #270, this half here), original wording left standing.

Gates, exit codes direct: openspec validate --all --strict 68/68; tests/doc-health 724 passed; -k workbench 140 passed; full doc-health report byte-identical before/after (openspec/ ungoverned, confirmed in practice).

🤖 Generated with Claude Code

The archived proposal add-roster-device-admission-surface carried
Status: ratified at real line 41 and its Ratified: citation at 42, pushed
there by the release front matter, the H1 and a thirty-three-line archive
banner standing between them. Every lifecycle reader scans only the first
fifteen real lines - corpus.STATUS_SCAN_LINES, read by parse_status,
parse_kind, families._header_lines (which fam_ratified_provenance counts
citations with) and generator._header_value - so parse_status returned None
and the archived census counted the document as headerless rather than as a
ratified record. The citation was never the defect; its invisibility was.

The fix is a pure reorder. The header block and the banner block exchange
places, the three blank separator lines stay put, and Status now reads at
line 7, Ratified at 8, Proposed at 13. Nothing is reworded: the file's line
multiset and its sorted bytes are identical before and after, 130 lines on
both sides. The Ratified: line's text is untouched, which the sanctioning
change's own 5.3 requires; verified after the move, parse_status returns
ratified, exactly one citation is found, and the record-citing floor passes
on two of its three axes, date and resolvable record.

code_surface and target_release stay at lines 2 and 3 rather than moving
below the header, because generator.HEADER_SCAN_LINES is the same fifteen
lines and pushing them down would have blanked the dashboard's
release-realization read for this change.

A sweep of all 107 openspec/changes proposals compared a raw whole-file
Status match against the window parse. Roster-device was the only file with
an out-of-window Status line, and it is now zero. Forty-seven proposals
carry no Status line anywhere; that is an older, different class and is
left alone. Archived proposals parsing Status: ratified go 43 to 44, all 44
carrying exactly one in-window citation.

This discharges the roster-device half of sanction-ratified-record-spelling
tasks.md 5.2. With phase-b's half landed 2026-08-23 as PR #270, the box is
ticked, its original wording left standing word for word beneath an appended
dated suffix that states both discharges.

Gates: openspec validate --all --strict 68 passed, exit 0; pytest
tests/doc-health 724 passed; pytest tests/ideation-dashboard -k workbench
140 passed; a full doc-health --single-repo run before and after is
byte-identical at 4 critical, 6 error, 68 warning, 4 info and 31.3% canon
share, as openspec/ sits outside GOVERNED_ROOTS.

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

@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

Moves the archived roster-device lifecycle header into the 15-line reader window and records completion of sanction item 5.2.

Changes:

  • Reorders the existing proposal header without changing content.
  • Documents measurements and validation results.
  • Updates bookkeeping for the resolved lifecycle-header issue.

Reviewed changes

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

File Summary
openspec/changes/archive/2026-08-22-sanction-ratified-record-spelling/tasks.md Records completion of item 5.2.
openspec/changes/archive/2026-08-22-add-roster-device-admission-surface/tasks.md Documents the reorder and verification details.
openspec/changes/archive/2026-08-22-add-roster-device-admission-surface/proposal.md Moves lifecycle headers into the reader window.

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

Comment on lines +406 to +407
places, with the three blank separator lines at 6, 40 and 53 left standing
where they were. The lifecycle lines now read at real line 7 (`Status:`), 8
…d the note now says where it landed

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 23, 2026 17:34
@brettheap
brettheap merged commit 20f3e7e into main Aug 23, 2026
@brettheap
brettheap deleted the change/roster-device-header-window branch August 23, 2026 17:35

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

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