Repository navigation
Archive refine-demote-round-trip-mechanics and align-status-reader-to-real-lines with realization evidence - #225
Conversation
…ap green) The release-realization archive gate is satisfied: the code is merged on the implemented target as PR #221 (merged 2026-08-20T01:23:54Z, rebase-merge, so the branch's five commits landed on main directly) and green there. Re-verified at `7312c25` rather than taken from the PR run: `openspec validate --all --strict` exit 0 at 64/64, `tests/ideation-dashboard` + `tests/proposal-support` exit 0 at 3729 passed / 14 skipped, `tests/doc-health` clean over 691 items. The realization proof is the one this thread has earned twice over — a full LAP on a scratch tree, forward then demote then forward again, with the origin resolved from the change's own `.openspec.yaml` origin block and no operator workaround. MECHANICS, following `align-demote-to-round-trip-rule`'s archive precedent: * `OPENSPEC_TELEMETRY=0 openspec archive refine-demote-round-trip-mechanics --yes` from the openxFactory root — the bare CLI, not `proposal-support.py archive`. The wrapper packages `supporting-docs.tar.gz` + manifest, and this change owns no `supporting-docs/` (ad_hoc origin, born from driving both gates), so the wrapper would add a synthetic empty bundle for no benefit. * Folder moved to `openspec/changes/archive/2026-08-21-refine-demote-round-trip-mechanics/`. * Deltas promoted: one MODIFIED and two ADDED on `ideation-dashboard`, one ADDED on `document-lifecycle`. The returned-artifact carve-out text landed intact — the EXACTLY-ONE-addition paragraph carved out of the refresh's byte bound. * `--all --strict` reads 62 items at the end of this branch where it read 64 at its base: the two changes leave the active set and their requirements land inside capabilities already counted, so the total drops by exactly two. * No test broke on the archive MOVES, and that was checked rather than hoped: `tests/ideation-dashboard` reads 3700 passed / 14 skipped and `tests/proposal-support` 29 passed after both archives — 3729, the same total as the combined pre-archive run. Nothing in the suite is pinned to the active-changes count, so nothing needed updating. * The origin-retention gate checked, not assumed: the archived `.openspec.yaml` diffs clean against its pre-archive bytes. * Task 7.2 ticked with the evidence inline. 33 of 35 ticked; §8's two stay open BY RULING rather than as gaps, precedented by `add-client-identity-roster` archiving with fifteen. THE BANNER is rewritten to state realization rather than carried through the rename. That is now precedent rather than deviation — `align-demote-to-round-trip-rule` established it 2026-08-19 for the same reason: archiving a record whose first paragraph says "none of it is built" states something false about realized code. ONE RECORDED CORRECTION, and it contradicts what this gate was told. Task 6.2 instructed its executor to enumerate "four known pre-existing `test_client_identity_composition.py` failures" and assert the set unchanged. Those four were never a defect. They fail from any checkout whose absolute path carries a `.git` directory segment, because `validate-client-identity-roster.py`'s `sweep_files` filters `.git` by path PART and so sweeps out every fixture YAML, leaving no consent instrument to resolve. Three measurements settle it: the same fixture bytes through the same validator exit 0 from a clean path; the whole suite from a clean-path mirror exits 0 at 684 passed / 7 skipped, the skips being sibling-checkout-dependent tests a mirror cannot reach; and decisively, the tree at `78f8e01~1` — before the only commit since 2026-08-19 to touch the validator, the fixtures or the test, and that commit edits one prose string — passes all 21 cases from a clean path. So no commit fixed them and none had to. The gate instruction encoded a location artifact as a property of the corpus, which would have excused a genuine regression; it is recorded as WRONG in task 7.2 rather than as satisfied. Not a defect claim against the validator: filtering `.git` is correct for a corpus sweep, and a validator may assume it is not run from inside a git internal directory. Co-Authored-By: Claude Fable 5 <[email protected]>
…ndings moved) The release-realization archive gate is satisfied: the code is merged on the implemented target as PR #222 (merged 2026-08-20T01:24:14Z, rebase-merge, so the branch's six commits landed on main directly) and green there. Re-verified at `7312c25` rather than taken from the PR run: `openspec validate --all --strict` exit 0 at 64/64, `tests/doc-health` clean over 691 items, `tests/ideation-dashboard` + `tests/proposal-support` exit 0 at 3729 passed / 14 skipped. THE GATE THAT CARRIES THIS CHANGE'S REAL INFORMATION is task 5.3, not the test counts: a doc-health report IDENTICAL to its baseline, because this change rewrites the reader behind sixteen check families and a MOVED finding would mean the zero-exotic-separator measurement had gone stale. Discharged on the branch at all three re-run points and confirmed byte-identical across every branch tip by the adversarial review; that claim is cited here rather than re-derived, because reproducing it needs a checkout predating both merged PRs. What IS measured here is this archive branch against its own base: two `--single-repo` doc-health runs from identically-named clean-path checkouts of `7312c25` and of this branch tip, diffed raw. ZERO findings move — every finding line, family, severity and class identical. The report differs in exactly two lines, both the promotion doing its job: canon share by words 29.6% -> 29.8% and the promoted-specs word total 102125 -> 103788, the 1663 words being the requirements these two archives promoted. Recorded as measured rather than as "byte-identical", because it is not byte-identical and claiming so would be the overclaim this change's own §2c.5 exists to correct. MECHANICS, same precedent as the sibling archive in the commit before this one: * `OPENSPEC_TELEMETRY=0 openspec archive align-status-reader-to-real-lines --yes` from the openxFactory root — bare CLI; ad_hoc origin, no `supporting-docs/`. * Folder moved to `openspec/changes/archive/2026-08-21-align-status-reader-to-real-lines/`. * One ADDED requirement promoted into `openspec/specs/doc-health/spec.md`: the deterministic pass reads a lifecycle header by REAL lines, that rule holds for EVERY reader of the header, and the rule is shared with the writers rather than reimplemented per reader — with cross-language divergence held by an explicit agreement test rather than by convention. * Origin-retention gate checked, not assumed: the archived `.openspec.yaml` diffs clean against its pre-archive bytes. * Task 6.2 ticked with the evidence inline. 38 of 43 ticked; §7's five stay open as recorded dispositions rather than gaps — four readers that are deliberately NOT converted because none reads the six lifecycle header fields, so each sits honestly outside the every-header-reader clause instead of inside it by omission, plus one skipped optimization whose cost was stated rather than dressed as a gate refusal. * The banner is rewritten to state realization, per the precedent the sibling archive commit describes. Task 5.2's "four known pre-existing failures" instruction is recorded as WRONG rather than satisfied; the full measurement lives once, in the sibling change's tasks.md 7.2, rather than duplicated here. Co-Authored-By: Claude Fable 5 <[email protected]>
…follow-up Two pieces of bookkeeping that could only land once both parents had merged. README "OpenSpec Records": `refine-demote-round-trip-mechanics` and `align-status-reader-to-real-lines` move out of the "Active changes:" block into "Archived changes:", ahead of `align-demote-to-round-trip-rule` so the three read newest-first as the thread they are. Links repointed at the dated archive paths. Each row keeps the RULINGS recorded on it rather than being trimmed to a summary: refine's §8 pair stay visible as rulings and not gaps (the shallowest-markdown selection arm deferred until a real topic reaches it, 0 of 31 do; the read-side half handed to the sibling), and align's wide-scope ruling keeps both halves — the delta's every-reader clause governing over a narrower first-draft `code_surface:`, and the four readers deliberately left unconverted because none reads the six lifecycle header fields. Each row closes with the realization and archive sentence the precedent row uses. THE 7.5 FOLLOW-UP, which is the reason this waited. `align-status-reader-to-real-lines` task 7.5 recorded one stale docstring line and explicitly deferred it: reword it "after BOTH branches merge, whichever lands second — not on this branch, per an explicit constraint: editing `scripts/proposal-support.py` here would manufacture a merge conflict with work that already supersedes it." PR #221 merged at 2026-08-20T01:23:54Z and PR #222 twenty seconds later, so this archive branch is the first place the edit cannot manufacture that conflict. `_declares_staged_status`'s docstring claimed "`doc_health.families._scan_lines` already tracks fences for the same reason; this mirrors it rather than inventing a second convention." Written for fence-tracking, before `families` was converted to real lines — so a reader could not tell WHICH convention was being mirrored, and after the conversion both readings were arguably true, which is worse than one being false. Now it says which: what is mirrored is the FENCE-TRACKING convention alone, and the line split underneath is a separate and shared rule — the three real endings — whose agreement is held by `test_the_mover_agrees_with_the_other_fence_implementations` and `test_the_movers_line_split_is_the_three_real_endings_and_nothing_else` rather than by the docstring's word. Prose only. One docstring, no behavior change, no test change. F7's out-of-scope-for-conversion ruling is untouched: this closes the STALE-CLAIM half of the finding, not the conversion half, which stays ruled out. `tests/proposal-support` exit 0 at 29 passed. Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
Pull request overview
Archives two realized OpenSpec changes at the release-realization gate and aligns the promoted specs + repository recordkeeping to reflect their realization evidence (with a small follow-up clarification in proposal-support.py).
Changes:
- Move
refine-demote-round-trip-mechanicsandalign-status-reader-to-real-linesintoopenspec/changes/archive/2026-08-21-*, recording realization evidence intasks.mdand updating proposal banners accordingly. - Promote/normalize the realized requirements into the owner specs (
ideation-dashboard,document-lifecycle,doc-health) and update README “OpenSpec Records” to point at the archived records. - Clarify the
_declares_staged_statusdocstring inscripts/proposal-support.py(prose-only) to precisely describe what is mirrored vs. agreement-tested.
Reviewed changes
Copilot reviewed 9 out of 15 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| scripts/proposal-support.py | Docstring clarification for fence-tracking vs. line-splitting agreement evidence. |
| README.md | Moves the two changes from “Active” to “Archived” and repoints links to the archived proposals with rulings preserved. |
| openspec/specs/ideation-dashboard/spec.md | Promotes the demote round-trip mechanics requirements (state-at-demote + status header carve-out + origin precedence + returned-artifact constraints). |
| openspec/specs/document-lifecycle/spec.md | Promotes the “proposal gate records authorship once per document” requirement and scenarios. |
| openspec/specs/doc-health/spec.md | Promotes the “deterministic pass reads lifecycle headers by real lines” requirement and scenarios. |
| openspec/changes/archive/2026-08-21-refine-demote-round-trip-mechanics/tasks.md | Records archive-gate realization evidence and notes the location-artifact explanation for prior failures. |
| openspec/changes/archive/2026-08-21-refine-demote-round-trip-mechanics/specs/ideation-dashboard/spec.md | Archived change’s promoted spec delta snapshot for ideation-dashboard. |
| openspec/changes/archive/2026-08-21-refine-demote-round-trip-mechanics/specs/document-lifecycle/spec.md | Archived change’s promoted spec delta snapshot for document-lifecycle. |
| openspec/changes/archive/2026-08-21-refine-demote-round-trip-mechanics/proposal.md | Replaces “approved but not realized” banner with realized+archived evidence block and references. |
| openspec/changes/archive/2026-08-21-refine-demote-round-trip-mechanics/design.md | Archived design record retained under the archive namespace. |
| openspec/changes/archive/2026-08-21-refine-demote-round-trip-mechanics/.openspec.yaml | Archived change metadata (schema/created/origin/approval). |
| openspec/changes/archive/2026-08-21-align-status-reader-to-real-lines/tasks.md | Records archive-gate realization evidence and documents baseline verification vs. findings movement. |
| openspec/changes/archive/2026-08-21-align-status-reader-to-real-lines/specs/doc-health/spec.md | Archived change’s promoted spec delta snapshot for doc-health. |
| openspec/changes/archive/2026-08-21-align-status-reader-to-real-lines/proposal.md | Replaces “approved but unmerged” banner with realized+archived evidence block and references. |
| openspec/changes/archive/2026-08-21-align-status-reader-to-real-lines/.openspec.yaml | Archived change metadata (schema/created/origin/approval). |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| ``` line toggling whether the rows after it count as content — rather than | ||
| inventing a second convention for that. The line split underneath it is a | ||
| separate rule, and a shared one: both count the three real endings below, but | ||
| this module cannot import the primitive, so the agreement is held by |
Copilot's review comment on PR #225 is right, and the false claim was mine — introduced in `b6b2e16`, this branch's own 7.5 follow-up, not carried in from PR #221. Confirmed by `git log -S "cannot import the primitive"`, which returns that one commit. WHAT WAS FALSE. The docstring said "this module cannot import the primitive", which reads as a hard technical constraint. It is not one. `scripts/bootstrap-ideation-cross-reference.py` is a standalone script living directly under `scripts/` exactly as this one does, and it imports `doc_health.lines` at module level on Python's own `sys.path[0]` insertion — with its own comment recording that the reachability was verified rather than assumed, during finding F5 on PR #222. TWO CANDIDATE DISTINCTIONS CHECKED AND BOTH REJECTED, so the reword rests on measurement rather than on preferring a nicer sentence: * A copy-out script maintained byte-identical in a repo without this layout would genuinely be unable to import. DTN-019 in the neutralization register looks like exactly that case — it names `xFactories/codexFactory/scripts/proposal-support.py` as evidence. It is stale: that file does not exist, because DTN-019's own implementation note records the codexFactory SHED (`change/shed-neutral-utility-pack`, 2026-08-03) that moved the tool here. No sibling copy remains. * Even if one did, codexFactory carries `scripts/doc_health/`, so the import would resolve there too. So nothing real separates this script's import situation from the bootstrap twin's, and the honest reason for the local copy is a RULING, not a limitation: finding F7 in `align-status-reader-to-real-lines` tasks.md 7.5 ruled conversion out of scope because the promoted requirement governs how the deterministic pass reads a lifecycle header, and this is a standalone mover that reports nothing to that pass. The docstring now says that, names the sibling that proves the import is available, and points at what actually makes the choice safe — the agreement tests (`test_the_mover_agrees_with_the_other_fence_implementations`, `test_the_movers_line_split_is_the_three_real_endings_and_nothing_else`) that pin the local copy to the shared rule. The script is NOT converted. That stays the recorded F7 boundary and would be a code change beyond an archive branch. Prose only, one docstring. `openspec validate --all --strict` exit 0 at 62/62; `tests/proposal-support` plus `tests/ideation-dashboard/test_round_trip.py` exit 0 at 103 passed. ONE ADJACENT CLAIM LEFT ALONE, recorded rather than quietly fixed: the block comment at lines 32-45 (PR #221's, not mine) says sharing the code "is not available ... this file is a standalone script a human runs against a checkout that may not have the dashboard package importable". That is hedged ("may not") and is a claim about a checkout state rather than an impossibility, so it is not the same defect; it also names the dashboard package rather than `doc_health`. Left for whoever revisits the F7 boundary, since this commit is scoped to the one false sentence. Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 15 changed files in this pull request and generated no new comments.
Suppressed comments (4)
README.md:632
- Same discrepancy as the previous archived entry: the PR description reports
openspec validate --all --strictis 62/62 after archiving these two changes, but this archive record says 64/64 at the archive date. Please update the text to match the archive-gate count, or clarify which run/context the 64/64 refers to (e.g., pre-archiveorigin/mainvs post-archive branch).
between the delta's every-reader clause and a narrower `code_surface:` — the delta
governs, and all ten readers plus a standalone twin converted in this change on a
measured zero baseline cost. Realized 2026-08-20 as PR #222 (`e6e3ae5`, `1644d86`,
`175e972`, `42cc321`, `50bfee2`, `c379a09`) and archived 2026-08-21: `openspec
validate --all --strict` 64/64 exit 0, `tests/doc-health` clean,
`tests/ideation-dashboard` + `tests/proposal-support` 3729 passed / 14 skipped /
exit 0, and task 5.3's own criterion — a doc-health report IDENTICAL to its
openspec/changes/archive/2026-08-21-refine-demote-round-trip-mechanics/proposal.md:16
- This banner says “REALIZED AND ARCHIVED” and cites
openspec validate --all --strict64/64, but the PR description states validation is now 62/62 after the two changes are archived. Please align the archived-banner evidence with the archive-gate run (or split the statement to clearly distinguish pre-archive validation onorigin/mainfrom post-archive validation on this archive branch).
openspec/changes/archive/2026-08-21-align-status-reader-to-real-lines/proposal.md:16 - This banner cites
openspec validate --all --strict64/64 under “REALIZED AND ARCHIVED”, but the PR description says validation is 62/62 after archiving (dropped by exactly these two archived changes). Please update the banner so the archive record doesn’t conflict with the PR’s stated gate results—either by using the post-archive count or by explicitly separating pre-archive and post-archive validation evidence.
README.md:602 - The PR description says
openspec validate --all --strictis now 62/62 after archiving (dropped by exactly these two changes), but this archived-record entry still states 64/64 at “archived 2026-08-21”. Please align the recorded validation count (or explicitly distinguish the pre-archive validation onorigin/mainvs the archive-gate validation on this branch) so the archive evidence doesn’t contradict the PR’s stated gate result.
This issue also appears on line 626 of the same file.
`document-lifecycle`. Realized 2026-08-20 as PR #221 (`1a7c2a1`, `17bba49`,
`8c123bf`, `ca9fcaf`, `6c3d87c`) and archived 2026-08-21: `openspec validate --all
--strict` 64/64 exit 0, `tests/ideation-dashboard` + `tests/proposal-support` 3729
passed / 14 skipped / exit 0, `tests/doc-health` clean, and the realization proof
a full LAP on a scratch tree — forward, demote, forward again — with the origin
Archives the two realized changes at the
release-realizationgate, following thealign-demote-to-round-trip-ruleprecedent.archive/2026-08-21-…. Evidence recorded in tasks.md 7.2: realized by PR Realize refine-demote-round-trip-mechanics: origin resolution, returned-artifact headers, fence-aware authorship, enriched demote slot #221 (merged 2026-08-20, rebase-merge, five commits), multi-lap adversarial review answered commit-by-commit. §8's two items stay open by ruling, as designed.archive/2026-08-21-…. Evidence in tasks.md 6.2: realized by PR Realize align-status-reader-to-real-lines: one shared line rule for every lifecycle-header reader #222 (six commits). §7's five entries are recorded dispositions, not gaps.ideation-dashboard, the authorship requirement indocument-lifecycle, the real-line reader requirement indoc-health. No duplicates; origin-retention checked against pre-archive bytes.proposal-support.py_declares_staged_statusnow states precisely what is mirrored (the fence-tracking convention alone; the line split is the shared three-endings rule held by the four-way agreement tests). Prose only.Gates:
openspec validate --all --strict62/62 (dropped by exactly the two archived changes);tests/ideation-dashboard3700 passed;tests/proposal-support29 passed; doc-health report vs base: zero findings moved (canon-share/word-count metadata moves by exactly the promoted text, stated as measured). The fourtest_client_identity_compositionfailures in the build worktree are a proven location artifact — the validator's.gitpath-segment sweep — and pass from any clean path; recorded in the evidence rather than repeated as a corpus property.Noted for follow-up, not fixed here: the MODIFIED delta's wholesale requirement replacement dropped three unrestated scenarios whose normative content survives in the requirement prose — restoring them would invent unratified content, so it needs its own change if wanted.
🤖 Generated with Claude Code