Repository navigation
Template-conformance and opt-in-boundary tests; 4.2 blocked on a demote defect (add-staged-topic-outline-template 4.1, 4.3) - #211
Merged
Conversation
…locked Tasks 4.1 and 4.3 of `add-staged-topic-outline-template`, plus a verified BLOCKED finding on 4.2. Eleven tests, no production change: this slice is about whether the contract's rules are actually pinned, and about one rule that turns out not to be implemented at all. WHAT WAS ALREADY DISCHARGED, AND IS NOT RE-PROVEN. Tasks 2.1-2.3 landed with real coverage, and the honest answer to most of 4.1 and 4.3 is "already done": the three required sections (present, absent, and the fenced-skeleton quoter), a missing sub-field named, WARNING severity, pre-ratification opt-in, post-ratification REQUIRED, unknown date opt-in. Those are cited in the tick notes rather than duplicated. What follows is only what nothing reached. 4.1 — THE CONTRACT'S OWN EMPHASIS WAS UNPINNED. "A question is never recorded bare. The template forces a recommendation and the reasoning for it even while the disposition itself stays `open`." The existing case drops `Explanation:` from an otherwise complete question — a missing field, but not the shape the rule is about. Added on BOTH sides, because the family and the model must mean the same thing by conformance and their own comments say to change both together or neither: a bare question reports all four fields; a question carrying Context and a disposition but NO recommendation names exactly the two it owes and does not accuse the fields that are there; every incomplete question is reported rather than only the first; and a `### ` sub-heading OUTSIDE Open questions is not an open question — without that last one the rule would fire across the corpus, and a family a human learns to ignore has lost its whole value. 4.3 — THE BOUNDARY AND THE TRAP. The discriminator is `staged_on >= TEMPLATE_RATIFIED` and nothing pinned either side of that comparison. A topic staged ON the ratification day is REQUIRED and the day before is opt-in, pinned as a pair, because obligation never re-derives: an off-by-one would let a whole day of topics hold the opt-in posture permanently. Then the trap task 2.2 was built to avoid, DRIVEN rather than described — the context now offers a contradictory `last_commit_date` well after ratification and a freshly touched mtime, and the verdict must still be opt-in. Finally both postures in one run, so the verdict is proven per topic: Q2 keeps the corpus deliberately non-uniform, and a family deciding once per run would mislabel every topic on one side of it. `_ctx_for` gained an additive `last_dates` parameter to make the trap expressible; every existing caller is untouched. EVERY NEW CASE WAS PROVEN TO BITE, by breaking the rule in the implementation and recording which test failed — `>=` to `>`, first-commit to last-touch, the open-questions scope gate, first-missing-field-only, and dropping `Recommended answer` from the sub-field tuple, on the Python family and again on the JS model. Both files were restored and re-verified byte-identical afterwards. The result worth keeping: the recommendation rule was caught by NOTHING before this slice. That mutation passed the entire pre-existing suite on both sides. 4.2 IS BLOCKED, AND THE BOX STAYS UNCHECKED. The requirement is unrealized, not untested — verified by command, because this change has now been bitten three times by a doc's claim that a mechanism exists. A demote mechanism DOES exist and is well covered: `gate_console.py`'s `plan_demotion` / `demote` / `execute_demotion_plan`, reachable as `cli.py gate demote --execute` and `POST /actions/gate/demote`, with eight tests in `test_gate_console.py` including byte-exact CRLF preservation. What it does is MOVE `proposal.md` and its siblings into `ideation/staging/<topic>/openspec/` as `Status: draft`, append a `## Returned drafts` note to the topic README carrying the change id, the demote date and the reason, write an `openspec/INDEX.md`, and remove the change folder. Material is genuinely preserved. What it does NOT do is touch the topic's PRIMARY FRAGMENT. Nothing in the repository writes `## Last proposal attempt (round-trip provenance)` or refreshes the `xspec:candidate` proposal-element sections; repo-wide that heading appears only in `docs/document-lifecycle.md`, in this change's supporting-docs snapshots, and in our own fixtures. `Status at demote` and `Demote reason` appear in no code at all. No CHECKER reads those slots either — the template family scores the three sections and four sub-fields, and `location-conformance`'s `_staged_exit_changes` scans `## Exit` — so the fallback of distinguishing a genuine round-trip slot from the aspirational original has no purchase either. The misconception is live and recorded: `add-doxbench-editing-phase-a/tasks.md` says the slot "fills on demote only, per the template". It does not; nothing fills it. Resolving this is a spec decision, not a test — either `execute_demotion_plan` grows a fragment-refresh step (a code surface deserving its own change), or the guarantee is restated as what the mechanism actually does and the fragment-slot wording is superseded. Hand-authoring the expected fragment and then asserting it would be a shape assertion in a costume, which is precisely what the task forbids. ONE MORE UNENFORCED RULE, recorded rather than silently satisfied: the four sub-fields are specified "in this order", and neither the family nor the model checks order — both test membership. A test cannot fail-if-broken against a rule nothing implements, and adding an order check would raise new warnings across the opt-in corpus, which this slice's own gate forbids. Gates, exit codes read directly: `pytest tests/doc-health -q` exit 1 with the SAME four pre-existing `test_client_identity_composition.py` failures as the branch base, enumerated and diffed as a set (identical), passing 653 -> 661; `pytest tests/ideation-dashboard -q` 3135 passed, 6 skipped, exit 0; openspec `--strict` exit 0 and `--all --strict` exit 0 (61/61); doc-health single-repo run exit 0 and its report BYTE-IDENTICAL to a run at the branch base, no normalization needed. Co-Authored-By: Claude Opus <[email protected]>
…not omit it
Review of `b22ee18` found my 4.2 blocker's central claim false, and the
correction changes what the finding IS. I had written that the demote "does not
touch the primary fragment at all", concluding the round-trip rule was
unimplemented. Driving the mechanism shows the opposite: it writes that file, with
the aspirational text, deleting the real one.
WHAT I GOT WRONG, AND HOW. I verified that nothing SEARCHES for the round-trip
slot — no writer of `Last proposal attempt`, no reader — and inferred from that
absence that the fragment was untouched. The fragment is not written by name; it
is written by ROUTING. `classify_change_file` (gate_console.py:548-549) sends
anything under `supporting-docs/` back to the topic root under its bare basename,
and `proposal-support.py transition` records the topic's own primary fragment
there — this change's manifest carries `path: staged-topic-outline-template.md`
with `remaining_paths: []`. The primary fragment's basename IS `<topic>.md`, so
the destination IS the primary fragment. A grep for the slot could never have
found that; only driving the verb could. Fifth instance of this change's own
lesson, and the first where the unverified claim was MINE.
DRIVEN, NOT REASONED. A fixture whose fragment carried real post-proposal text
plus a filled round-trip slot, demoted through the real console and executor,
came back carrying the aspirational snapshot verbatim — real in-flight text gone,
all four slots gone, `Status: draft` on a file `_primary_fragment` still selects
as the staged topic's outline. So the ratified rule titled "A demoted topic does
not reset to its aspirational text" names exactly what the mechanism performs,
silently, over the one file the wheel, doc-health and the outline tab all read.
Generality counted rather than assumed: of 9 changes with a supporting-docs
manifest, 2 declare a `staged` origin and BOTH record a basename equal to
`<topic>.md` — 2 of 2 would overwrite. The other 7 predate the origin contract.
The annotation is rewritten from "unimplemented" to "inverted", with the routing
evidence, the driven demonstration, the generality count, the `Status: draft`
secondary defect, and the latent case the review named: the restore only reads as
harmless because `transition` empties the topic folder on the way out, so the
destination is usually absent when the move lands. Leave a fragment behind, or
re-stage and work the topic before a demote, and the identical move overwrites
live human work byte for byte with no diff, no prompt and no record beyond the
README note. Citation corrected to `add-doxbench-editing-phase-a/tasks.md:193-194`
— a range, because the false claim ("fills on demote only, per the template")
sits on 194 while the phrase it qualifies is on 193.
Disposition stays Brett's and stays out of this slice: a contract/mechanism
divergence needing OpenSpec. The recommendation carried forward is a DEFECT FIX in
demote — keep `Status: staged` on a fragment destination and fill the four slots
from values `execute_demotion_plan` already holds — with the `xspec:candidate`
refresh from the returned `proposal.md` as the genuinely new surface. Nothing of
it built here.
THREE SMALLER CORRECTIONS, each a case of my own prose outrunning what I measured.
The bare-question test looped `families._QUESTION_SUBFIELDS`, so it asserted
nothing about which four names exist: drop a field and the loop simply checks
less. It therefore PASSED the very mutation it was added for — the four names now
appear literally, plus the tuple's exact contents are pinned, so the check closes
in both directions. Recorded with the structural reason, which is the durable
part: both pre-existing agreement tests assert checker-subset-of-contract and
checker-subset-of-model, neither the reverse, and a direction-blind pair cannot
see SHRINKAGE — remove a field and both assert less, in step, and stay green.
The trap test's docstring claimed "only this test notices" a first-commit ->
last-touch swap. Four notice. The other three notice by accident of an unset
fixture: they supply no `last_dates`, so the swapped call returns None and their
expected REQUIRED collapses to opt-in. Only here does a topic carry BOTH dates, so
only here does a failure mean "the family read the wrong one" rather than "the
fixture had nothing to read". The docstring now says that.
The order-check justification claimed enforcing sub-field order "would raise new
corpus warnings". It would raise none: all 12 open questions corpus-wide carry all
four sub-fields IN ORDER, counted. The real reason is that enforcing it needs a
production change to `families.py` (which collects the fields into a `set` and
discards order) mirrored in `outline-model.js`, and this slice touches no
production file. The count is recorded so the next reader cannot inherit the
excuse.
Mutation re-check after the fixes: all five still bite, and mutation C — dropping
`Recommended answer` from the sub-field tuple — is now caught by the
bare-question test on the PYTHON side as well as the two that already caught it,
where before the fix it was caught by neither that test nor anything pre-existing.
No production file differs from HEAD; every mutation was reverted and verified.
Gates, exit codes read directly: `pytest tests/doc-health -q` exit 1 with the SAME
four pre-existing `test_client_identity_composition.py` failures as the branch
base, diffed as a set (identical), passing 653 -> 661; `test_families.py` 30
passed exit 0; `test_outline_model.py` 48 passed exit 0; full
`pytest tests/ideation-dashboard -q` 3135 passed, 6 skipped, exit 0; openspec
`--strict` exit 0 and `--all --strict` exit 0 (61/61).
Co-Authored-By: Claude Opus <[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
Adds test coverage for the staged-topic outline template contract on both the ideation-dashboard surface model and the doc-health checker, and updates the change log to mark task 4.2 as blocked by a demote-mechanism defect (no production code changes).
Changes:
- Add ideation-dashboard tests asserting “bare question” non-conformance and open-questions scoping behavior.
- Add doc-health family tests for “bare question” conformance, per-question reporting, and the ratification-day opt-in boundary (including a last-touch/mtime trap fixture via additive
last_dates). - Expand
openspec/changes/.../tasks.mdwith detailed rationale, mutation-proof notes, and task status updates (4.1/4.3 checked; 4.2 blocked).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tests/ideation-dashboard/test_outline_model.py | Adds surface-model conformance tests for “bare question” and scoping of ### headings. |
| tests/doc-health/test_families.py | Adds checker-side contract/boundary tests and extends _ctx_for to support last_dates trap fixtures. |
| openspec/changes/add-staged-topic-outline-template/tasks.md | Updates task statuses and records detailed evidence/rationale for 4.1/4.3 completion and 4.2 blockage. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+164
to
+166
| """"A question is never recorded bare." A heading with nothing under it must | ||
| report every field it owes, in the contract's order, so the tab tells the | ||
| human what to write rather than only that something is wrong.""" |
Comment on lines
+414
to
+417
| """"A question is never recorded bare" — the rule task 4.1 names. A heading | ||
| with nothing under it must not pass merely because nothing contradicts the | ||
| four fields; all four are reported, so the human is told what to write rather | ||
| than that something is wrong.""" |
brettheap
pushed a commit
that referenced
this pull request
Aug 21, 2026
The README row and the PR description disagreed about which PRs realized this change. Neither list was right, so neither was adopted: the answer was re-derived mechanically from gh pr view --json files, asking of every candidate whether it edits a file under openspec/changes/add-staged-topic-outline-template/. Eight PRs pass that test and are this change's own chain: #193, #195, #198, #208, #211, #217, #224, #227. The PR description omitted the first three - they predate the session handoff it was written from - and wrongly claimed #215, #221 and #222, which fail the test: each touches only its own change's documents and code, so each belongs to align-demote-to-round-trip-rule, refine-demote-round-trip-mechanics and align-status-reader-to-real-lines respectively, all three of which already have archive records carrying their own evidence. What #217 contributes here is task 4.2 and the archiving of the first of them, not the fix. The README row, the proposal banner and the tasks.md evidence section now state the two categories explicitly and name the test, so the chain can be re-derived rather than trusted. One exception is recorded rather than left to surprise a reader: #228 also edited this change's tasks.md, to repoint 5.3 and 6.3 after the doxbench topic exited staging - a cross-change bookkeeping repoint that discharges no task here. Co-Authored-By: Claude Fable 5 <[email protected]>
brettheap
pushed a commit
that referenced
this pull request
Aug 21, 2026
The README row and the PR description disagreed about which PRs realized this change. Neither list was right, so neither was adopted: the answer was re-derived mechanically from gh pr view --json files, asking of every candidate whether it edits a file under openspec/changes/add-staged-topic-outline-template/. Eight PRs pass that test and are this change's own chain: #193, #195, #198, #208, #211, #217, #224, #227. The PR description omitted the first three - they predate the session handoff it was written from - and wrongly claimed #215, #221 and #222, which fail the test: each touches only its own change's documents and code, so each belongs to align-demote-to-round-trip-rule, refine-demote-round-trip-mechanics and align-status-reader-to-real-lines respectively, all three of which already have archive records carrying their own evidence. What #217 contributes here is task 4.2 and the archiving of the first of them, not the fix. The README row, the proposal banner and the tasks.md evidence section now state the two categories explicitly and name the test, so the chain can be re-derived rather than trusted. One exception is recorded rather than left to surprise a reader: #228 also edited this change's tasks.md, to repoint 5.3 and 6.3 after the doxbench topic exited staging - a cross-change bookkeeping repoint that discharges no task here. Co-Authored-By: Claude Fable 5 <[email protected]>
This was referenced Sep 4, 2026
brettheap
added a commit
that referenced
this pull request
Sep 4, 2026
…d; S7 and the first nightly owed before archive) (#655) * add-nightly-dashboard-refresh: record the re-realization (S1-S5 landed; S7 and the first nightly owed) Slice S6 of plan-nightly-refresh-rerealization-2026-09-04.md, doc-only. Brett's words: "go S2 to S7", then "lets go". The re-ratified amendment created a code/spec disagreement its own proposal declined to assess. Five PRs closed it; this records them in the packet, with every squash sha verified merged at the gate rather than read out of a handoff: S1 openxFactory #642 bbc21e4 --generated-at on the generate CLI S4 openxFactory #641 19a777d the module's raw-clone --phase build retired S2 openxFactory #648 96aa61a the parent seals the bounded source artifact S3 opensoft/xFactory #243 84dbbb24 the child consumes it, holds no Git credential S5 Omnigent-Install #211 cdfe3152 the worker profile describes the sealed intake tasks.md — no checkbox moves (3.2/3.3/3.4/4.1/3.6 were already ticked; 3.6 by #642). Each of those five gains a dated REALIZED evidence note naming the PR and its squash. The stale note in 3.4 that still described the child as running `dashboard-refresh-nightly.py --phase build` is CORRECTED by an appended, dated note rather than an edit — the sentence is retained text, and #641's body flagged it for this slice. Task 7.6 gains the size measurement and stays UNTICKED, because its staleness half needs a live run. New § 9a records the five acts, the four remaining S7 host acts (act D is DELETED, not deferred), and § 9's not-re-verified list carried forward. design.md — three notes. (a) The disambiguation owed to PR #595's DECLINED review thread: "host clone" in the sealed-artifact failure scenario means a clone on the WORKER host, and the parent's materialization is the prior scenario's requirement, so the two scenarios do not contradict when read in order. (b) What the manifest attests versus corroborates: verification step 5 is an INTERNAL-CONSISTENCY check (both sides come from one manifest), and the independent anchors are correlation_id, artifact_name, parent_run_id and parent_repository (#243's finding) — plus open question 7's sealed-but-not-baked validator asymmetry and #243's equality-not-presence check on generated_at. (c) The sealed source measures 3511 files / ~35.1 MB, recorded beside the design's ~8 MB estimate, which is low by a factor of four. proposal.md — § AMENDED AFTER RATIFICATION gains a dated REALIZED subsection listing the five PRs and stating what S7 still owes. Status: ratified and the single Ratified: citation line are untouched (grep -c = 1). README.md — the OpenSpec Records entry's lifecycle sentence gains the re-realization state; no entry added, removed or reordered. Substrate row 3 claimed on issue #630 before the push, per protocol Rule 7. The ARCHIVE GATE STAYS OPEN. S1-S5 make the lane exercisable, which is not exercised: the evidence is one real nightly's pin PR merged and reconciled plus one wider diff refused and parked, and that is S7's. Refs #591 Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01X5cVGVtCbMg1WBwU7AbMZq * Ground the build-context claim in task 3.2 against the landed worker file Bot round 1 (Copilot), one thread, PARTIALLY TAKEN. Copilot: the note asserts the child keeps `manifest.json` and `recipe/` out of the Docker build context, which "isn't established elsewhere in this packet (and could be false if the seal root is used as the build context)". The factual half is DECLINED — the claim is true. But the grounding half is TAKEN, and it caught a real ambiguity: openxFactory #648's own S3 contract had proposed the SEAL ROOT as the build context with `manifest.json` and `recipe/` merely "inert" in it, so a reader following that contract would conclude exactly what Copilot suspected. #243 chose the leaner assembled shape instead. Settled against the LANDED file rather than either PR body: `.github/workflows/dashboard-image-worker.yml` at `84dbbb24` runs `docker build -f "$GITHUB_WORKSPACE/$SEAL_DIR/recipe/Dockerfile" -t "$REF" "$GITHUB_WORKSPACE/ctx"` — the context is `ctx/`, assembled by copying `CONTEXT_ROOTS` out of `<seal>/openxFactory` — and the file carries the assertion in its own comment ("the daemon receives a lean tree and neither manifest.json nor recipe/ reaches it"), plus a guard that fails when the assembled context is missing the renderer packages. The note now states the mechanism, names the divergence from #648's contract and why #243's shape is also what the ratified requirement's "the assembled workspace shape as context" says, and cites the landed file and its comment. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01X5cVGVtCbMg1WBwU7AbMZq * Copilot round 2: reconcile the README amendment dates, qualify the readiness paths by repository Four findings, all in Copilot's suppressed set (no new inline threads). Two TAKEN as reported, one TAKEN with the remedy corrected, one TAKEN. 1. README amendment dates CONFLICT — TAKEN, and it was a REAL pre-existing contradiction my sentence made visible. The entry said "WAS AMENDED 2026-09-04 AND RE-RATIFIED THE SAME DAY" while its very next sentence said "authored 2026-09-01", and `proposal.md`'s front-matter `Amended:` line — the authoritative one — reads 2026-09-01. Reconciled to the real sequence: RULED 2026-09-01, reached this repository 2026-09-04 by rescue (PR #595), re-ratified that same day. Both halves of the entry now say it, and the entry names the front-matter line as authoritative. 2 + 4. `worker_readiness.py` "does not exist in this repository" — the observation TAKEN, the proposed remedy DECLINED. Measured, not assumed: `scripts/worker_readiness.py` AND `scripts/check-worker-readiness.py` both live in `opensoft/xFactory`, and NEITHER is a path in openxFactory. They are not two spellings of one entrypoint to be unified — `check-worker-readiness` is the CLI and imports `from worker_readiness import evaluate`, and the gate predicate this packet is about (`repository_credentials_present`) is in the module. openxFactory's `doc-health-reusable.yml` invokes the CLI by a relative path that resolves in the CALLER's checkout, because it is a REUSABLE workflow — which is exactly why neither file is here. So both references are now qualified by repository and the CLI/module relationship is stated, rather than one name being rewritten into the other and losing the distinction. 3. "STILL STAYS OPEN" redundant — TAKEN, now "STAYS OPEN". Validation on this head: openspec validate <change> --strict valid; --all --strict 89 passed / 0 failed; pytest -q tests/doc-health tests/sequenced_after 1714 passed; grep -c on the Ratified: line = 1. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01X5cVGVtCbMg1WBwU7AbMZq * Copilot round 3: the phase list matches the CLI's own order One finding, TAKEN. The 3.4 correction note listed the surviving phases as `decide | pin | report | seal | record-pr`, but `dashboard_refresh_lane.py` declares `choices=("decide", "seal", "pin", "report", "record-pr")` — so a reader who hit `--phase build` would see a usage error listing them in a different order than this note. Matched to the tuple verbatim, and the note now says that is where the order comes from, so the next edit has a reason to keep them in step. Validation on this head: openspec validate <change> --strict valid; --all --strict 89 passed / 0 failed; pytest -q tests/doc-health tests/sequenced_after 1714 passed; grep -c on the Ratified: line = 1. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01X5cVGVtCbMg1WBwU7AbMZq --------- Co-authored-by: Brett Heap <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Discharges tasks 4.1 and 4.3 of
add-staged-topic-outline-templateand records task 4.2 as BLOCKED on a contract/mechanism divergence that needs its own ruling. Test-only: zero production files changed.What lands (11 new tests, every one validated by mutation)
Each test was proven to bite by breaking the rule in the implementation and recording which test failed — on both the Python (
doc-healthfamily) and JS (outline-model.js) sides — then restoring byte-identical.Recommended answeris non-conforming — was previously caught by nothing: deleting the field from the checker's tuple passed the entire pre-existing suite on both sides. Root cause: both agreement tests check checker ⊆ contract, never contract ⊆ checker, so checker shrinkage was invisible. Both sides now pin the four sub-field names literally. Also new: every incomplete question is reported (not just the first), and a third-level heading outside Open questions is not a question.>=→>and a mis-operanded boundary both die), the first-vs-last-commit-date mtime trap (with anos.utimedecoy proving the family never stats the file), unknown-date stays opt-in, and per-topic (not per-run) judgment. Uses the establishedFakeGitharness; the_ctx_forlast_datesparameter is additive and behavior-identical for all 9 pre-existing callers.4.2: BLOCKED — the demote mechanism inverts the ratified rule
The round-trip-on-demote property ("a demoted fragment's proposal-element sections carry the last attempted proposal.md text") cannot be honestly tested, because the mechanism actively contradicts it — found by driving the real gate console demote, after a grep-based first conclusion proved false:
proposal-support.py transitionsnapshots the topic's primary fragment intosupporting-docs/under its bare basename and empties the topic folder.classify_change_fileroutes everything undersupporting-docs/back to the topic root by bare basename — and the primary fragment's basename IS<topic>.md, so demote restores the stale aspirational snapshot over the primary fragment, verbatim, with none of the four round-trip slots filled, flipped toStatus: draftwhile_primary_fragmentstill selects it as the staged topic's outline.The full evidence and the recommended defect-fix disposition (keep
Status: stagedon a fragment destination; fill the four slots from valuesexecute_demotion_planalready holds; the xspec-section refresh as the genuinely new surface) are recorded in the 4.2 annotation in tasks.md. Disposition is a ruling for the change owner; the box stays unchecked.Review record
Adversarially reviewed; verdict FIX FIRST on the blocker record itself — the reviewer disproved the "demote never touches the fragment" claim by driving the mechanism, re-ran three of the five mutations independently (confirming the caught-by-nothing headline), verified the harness reuse, and counted the corpus for the order-check question. All findings discharged in the second commit and re-verified.
Gates (exit codes read directly)
python3 -m pytest tests/ideation-dashboard -q: 3135 passed, 6 skipped.python3 -m pytest tests/doc-health -q: 4 failed, 661 passed — the failure set is byte-identical to the branch base (the 4 pre-existingtest_client_identity_composition.pycases), enumerated not counted.openspec validate add-staged-topic-outline-template --strictand--all --strict: valid, 61/61.🤖 Generated with Claude Code