Skip to content

Propose align-demote-to-round-trip-rule: demote refreshes the outline, never resets it - #212

Merged
brettheap merged 1 commit into
mainfrom
change/propose-demote-round-trip
Aug 19, 2026
Merged

brettheap merged 1 commit into
mainfrom
change/propose-demote-round-trip

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Drafts the OpenSpec change align-demote-to-round-trip-rule — a defect-fix proposal making the demote mechanism agree with the ratified round-trip rule it currently inverts. Status: draft, no Ratified: line — ratification is the change owner's.

The defect

The rule (docs/document-lifecycle.md, "Round-trip on demote — the load-bearing rule") is titled "A demoted topic does not reset to its aspirational text." The mechanism performs precisely that reset: proposal-support.py transition snapshots the topic's primary fragment into supporting-docs/ under its bare basename and empties the topic folder; on demote, classify_change_file routes everything under supporting-docs/ back to the topic root by bare basename — and the primary fragment's basename IS <topic>.md. Driven against the real console and executor: the fragment returns carrying the stale aspirational snapshot verbatim, all five round-trip slots gone, flipped to Status: draft on a file the wheel, doc-health, and the doxBench outline tab all still select as the staged topic's outline. Generality: 2 of 2 staged-origin supporting-docs manifests have this shape — it is what transition produces. Found while discharging add-staged-topic-outline-template task 4.2, which is blocked on it.

What the change proposes

One ADDED requirement on ideation-dashboard, seven scenarios, four parts:

  1. Status preservation — a returning file whose destination is the primary fragment keeps Status: staged (the draft flip stays correct for the proposal documents bound for the topic's openspec/ workspace).
  2. Slot fill — the five round-trip provenance slots filled from values execute_demotion_plan already holds; an unavailable value recorded as unavailable, never fabricated.
  3. Proposal-element refresh — the fragment's xspec:candidate sections carry the returned proposal.md's real text; only sections present in both are rewritten; nothing invented, nothing deleted.
  4. No-silent-overwrite guard — the snapshot is a fallback source, never the authority: an existing differing destination is refreshed in place, bounded to slots + marked sections, with the snapshot preserved beside it under a visible non-colliding name; only an absent destination is restored from snapshot first.

Plus idempotence and EOL-flavor preservation as requirement text, and the edge case of a change carrying no proposal.md.

Deliberate boundaries, recorded in the proposal

  • Human gate console requirement NOT modified — its text covers only proposal documents bound for openspec/; the absence of a MODIFIED delta is deliberate and explained.
  • No document-lifecycle delta: the round-trip rule (still an ADDED requirement in active add-staged-topic-outline-template, not yet promoted) needs no amendment — the mechanism does. The proposal stands on its own terms whichever order the two changes ratify in.
  • The rule's second trigger ("a failed or reverted push") has no executor today; this change corrects the trigger that exists and invents nothing for the other.
  • Realizing this unblocks the parent change's 4.2 round-trip test, which stays the parent's task.
  • Corrects the misconception recorded in archived add-doxbench-editing-phase-a/tasks.md:193-194 ("the slot fills on demote only") — recorded here; the archive is not edited.

code_surface: gate_console.py (classify_change_file, execute_demotion_plan) + a new pure round_trip.py + tests. target_release: implementation_pending — the proposal does not archive on landing; only merged code with green realization evidence archives it.

Validation

  • OPENSPEC_TELEMETRY=0 openspec validate align-demote-to-round-trip-rule --strict: valid.
  • --all --strict: 62 passed, 0 failed (62 items — up from 61 by exactly this change).
  • doc-health full run: 0 new regressions; 0 findings naming the new change.
  • Listed in README's "OpenSpec Records" active block.

🤖 Generated with Claude Code

…he rule

Brett's ruling on the `add-staged-topic-outline-template` task 4.2 blocker: draft
the defect fix. This is the proposal, requirement, design and tasks — no code.

THE DEFECT, RESTATED FOR THE PROPOSAL. `docs/document-lifecycle.md` carries a rule
titled "A demoted topic does not reset to its aspirational text". The demote verb
performs exactly that reset, silently, over the one file the wheel, doc-health and
the doxBench outline tab all read. It reaches the fragment by ROUTING rather than
by name — `classify_change_file` sends anything under `supporting-docs/` to the
topic root under its bare basename, `proposal-support.py transition` records the
topic's own primary fragment there, and a primary fragment's basename IS
`<topic>.md` — which is why grepping for the round-trip slot's field names finds
no writer and made an earlier review call the rule merely unimplemented. Driven
against the real console and executor, the fragment comes back carrying the
aspirational snapshot verbatim, all five provenance slots gone, `Status: draft` on
a file the selector still calls the staged topic's outline. Re-verified at this
branch base; 2 of 2 staged-origin manifests have the shape, so it is what
`transition` produces rather than one change's accident.

NAME. `align-` on the precedent of `align-doxbench-contract-pin-to-publisher` —
itself a defect fix, which even carries a section titled "Why this needs a change
rather than a patch". Censused all 91 change ids first: no `fix-`, `correct-`,
`repair-`, `resolve-` or `defect-` precedent exists anywhere, and the corpus names
changes for the corrected mechanism rather than the bug-report mechanics
(`align-`, `reconcile-`, `clarify-`, `concretize-`). `align-demote-to-round-trip-rule`
names both sides: the mechanism, and the authority it must agree with.

ONE DELTA, ON `ideation-dashboard`, and the reasoning for it is the load-bearing
part of this proposal. Everything ratified about demote today lives ONLY there,
across three requirements; `workflow-gate-contract` owns none of it (pure schema
plumbing, no mention of demote) and `document-lifecycle`'s promoted spec has zero
demote content. So the mechanism's spec gets the requirement.

`Human gate console` is NOT modified, deliberately, and the proposal says why: its
text speaks only of "the proposal documents continuing as draft ideas in the
topic's `openspec/` workspace", and the outline fragment is neither a proposal
document nor bound for `openspec/` — nothing there contradicts the new behavior,
and folding four detailed fragment rules into a requirement about the three-action
console would overload a requirement answering a different question.

One ADDED requirement carries all four ruled parts, with a scenario for each plus
the guard's existing-differing-fragment case, the no-proposal.md case, the
absent-destination case and idempotence.

THE CORRECTION THE RULINGS NEEDED — two factual points, flagged rather than
quietly worked around.

The round-trip rule is NOT PROMOTED. It exists only as an ADDED requirement in the
still-active `add-staged-topic-outline-template`, so this change cannot conform "to
a promoted requirement" and must not restate it as one. It therefore states its
behavior on its own terms, which makes it valid and reviewable whether that change
ratifies before, with, or after it — and proposes no `document-lifecycle` delta,
because the rule needs no amendment. The mechanism does.

The provenance slot count is five, not four. The skeleton carries Change ID,
Raised, Status at demote, Demoted, Demote reason; the rule's prose enumerates four
VALUES (change id, both dates, reason) and omits `Status at demote`, while the
skeleton's own comment says to replace every field. The change fills all five and
flags that `Status at demote` can only ever read `active` under
`plan_demotion`'s own precondition — filled anyway, because a slot reading `n/a`
after a real demote is worse than one reading a true constant, with
`task_progress` named as the available alternative if Brett wants the slot to
carry something actionable.

DESIGN, for the part that is genuinely new. Part 4's mechanics are three cases on
one move: destination absent → restore then refresh (the ordinary case, since
`transition` empties the topic folder); byte-identical → the same; DIFFERS → the
destination is the authority, the snapshot is never written to it, the refresh
applies IN PLACE bounded to the provenance slots and the marked sections leaving
every other byte alone, and the snapshot is preserved as
`<topic>.snapshot-<change-id>.md` and named in the record — because "never
byte-replace" must not become "silently discard the other copy". The preserved
copy is deliberately a visible ordinary topic file rather than a dotfile or
`.orig`: a hidden artifact in a governed folder is how material goes missing.

Four other decisions recorded with their rejected alternatives: the outline
destination is identified PATH-ONLY in the pure plan so the reviewable
`demote-<stamp>.plan.yaml` states which file will be treated as the outline before
anything is written (rejected: resolving it at execute time, which is more general
but stops the plan describing what execution does); a new pure `round_trip.py`
rather than more of a 1250-line gate_console, with the third-implementation fence
hazard named and a three-way agreement test as the mitigation; the source of each
of the five values, including that the manifest must be read BEFORE the moves
because it is itself a returning supporting-doc; and the refresh as a bounded
addressed write that preserves the document's line-ending flavor, from which
idempotence falls out.

Two bounds stated so they are not mistaken for coverage: only the exact
`<topic>.md` arm of the two-arm selection rule is decidable from paths, so the
shallowest-markdown arm is out of scope and says so in the code; and the rule
names two triggers — the demote verb and "a failed or reverted push" — of which
only the verb has an executor anywhere, so this change corrects the one that
exists and invents nothing for the other.

RELATIONSHIPS. Realizing this unblocks `add-staged-topic-outline-template` task
4.2; that test STAYS that change's task and is listed here only so the dependency
is visible from both sides. It also corrects the misconception recorded in
`add-doxbench-editing-phase-a/tasks.md:193-194` ("fills on demote only, per the
template") — recorded in this proposal, with the archived record left alone,
because a record amended to agree with a later finding stops being a record.

Front matter: `code_surface:` names the gate_console demote path, the new pure
module and both test files; `target_release: implementation_pending`, so the
change does NOT archive on landing the requirement — its whole content is a
mechanism correction and it archives on merged code with green evidence.
`Status: draft` and no `Ratified:` line: Brett reads it before it goes up.

Validation: `openspec validate align-demote-to-round-trip-rule --strict` exit 0
and `--all --strict` exit 0 (62/62, up from 61 by exactly this change), re-run
after the README row. doc-health single-repo exit 0, findings identical to the
branch base and zero naming the new change. Listed in README's "OpenSpec Records"
active block, per the proposing convention.

Co-Authored-By: Claude Opus <[email protected]>
Copilot AI lite review requested due to automatic review settings August 19, 2026 13:04

@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 PR drafts a new OpenSpec change record, align-demote-to-round-trip-rule, proposing a defect-fix to make the ideation-dashboard “demote” mechanism conform to the documented round-trip rule (demote refreshes the staged outline rather than resetting it to an aspirational snapshot).

Changes:

  • Adds a new OpenSpec change proposal (proposal/design/spec/tasks + .openspec.yaml) describing the intended behavioral correction and acceptance scenarios.
  • Registers the new change in the README “OpenSpec Records” active list.

Reviewed changes

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

Show a summary per file
File Description
README.md Adds the new change to the “Active changes” list with a summary of the defect and intended fix scope.
openspec/changes/align-demote-to-round-trip-rule/.openspec.yaml Introduces the change record metadata (schema, creation date, origin rationale).
openspec/changes/align-demote-to-round-trip-rule/design.md Captures design decisions and boundaries for the proposed fix.
openspec/changes/align-demote-to-round-trip-rule/proposal.md Defines the problem statement, scope, and intended behavioral outcomes for the defect fix.
openspec/changes/align-demote-to-round-trip-rule/specs/ideation-dashboard/spec.md Adds the ADDED requirement and scenarios specifying the corrected demote behavior.
openspec/changes/align-demote-to-round-trip-rule/tasks.md Adds an implementation/test plan outlining the pure module, executor changes, and regression/contract-agreement tests.

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

@brettheap
brettheap merged commit 1e2a4ff into main Aug 19, 2026
1 check passed
brettheap pushed a commit that referenced this pull request Aug 19, 2026
Brett's ruling, in-session 2026-08-19, verbatim: "merge it and ratify",
after reading the drafted proposal on PR #212. The Status header flips to
ratified with the ruling recorded, and the proposal gains the same
APPROVED-BUT-NOT-YET-REALIZED banner its parent change carries at this
stage: the code surface is non-empty and none of it is built, so under
release-realization the change stays active as approved intent until
gate_console.py and round_trip.py merge with green realization evidence.

openspec validate --strict passes for the change and for --all (62/62).

Co-Authored-By: Claude Fable 5 <[email protected]>
@brettheap
brettheap deleted the change/propose-demote-round-trip branch August 21, 2026 23:57
brettheap added a commit that referenced this pull request Sep 5, 2026
…ANDED commit (3afd8a8 retired; 67 -> 67) (#689)

Lane: openxfactory-2 (openXfactory-2)
Refs #675

`mirror-floor-addition-grace` tasks 4.1-4.3: the regeneration the packet's
own realization made possible, requested at a LANDED openxFactory commit
rather than at any pull request's own unlanded head, per task 4.1's own
instruction ("the first repair that does not block the pull request that
caused it").

FIVE SITES, advanced e57643a7 -> 67a6ffc9 in this one commit:
`contracts/review-lane-pin.yaml` `core_commit`;
`.github/workflows/merge-master-approval.yml` `PINNED_CORE_COMMIT` and its
core checkout `ref:`; `.github/workflows/pytest-suite.yml`'s core checkout
`ref:`; `contracts/review-lane-floor-snapshot.yaml` (re-copied byte for byte,
never hand-edited).

WITNESS. codexFactory PR #212 (MERGE COMMIT `67a6ffc9`, merged
2026-09-05T18:08:23Z) regenerated
`scripts/merge_master/openxfactory-review-authority-floor.yaml` at
openxFactory `f6724f04` — the merge commit of PR #686, this repository's own
`mirror-floor-addition-grace` realization, and reachable from openxFactory
`main` (`git merge-base --is-ancestor f6724f0 origin/main` holds on THIS
repository's tree, re-measured before this commit). The resulting document:
sha256 `18389a3d…3521a8`, 15402 bytes, blob `fdcd9f7e…5b5a8` — vendored here
byte for byte, `cmp`-identical to `git show 67a6ffc9:scripts/merge_master/
openxfactory-review-authority-floor.yaml`.

THE FLOOR CHANGED BY TWO HEADER LINES. `git diff e57643a7 67a6ffc9 --
scripts/merge_master/openxfactory-review-authority-floor.yaml` in the pinned
core is exactly the generated block's `generated_at` and `--ref` lines
(`3afd8a8c` -> `f6724f04`) and nothing else: `entry_count` stays 59, the
floor's `never_clearable_paths` total stays 67 — the SECOND advance in this
pin's history whose floor grew by zero paths, and this time deliberately: no
`openspec/specs` path exists at `f6724f04` that did not already exist at
`3afd8a8c`.

THIS IS THE ADVANCE THAT RETIRES THE NON-ANCESTOR PIN. `3afd8a8c` was
measured 2026-09-05 (this same packet's task 4.3) as NOT an ancestor of
openxFactory `main`. `f6724f04` IS an ancestor of it. That is the whole
operational content of this advance: `specs_floor_block.
pin_window_for_document` fail-safes to `None` ("not measured") whenever the
declared `generated_at` will not resolve as an ancestor of the base branch
being measured, so the addition grace's B1 pending-extension window could
only ever report `pin_measured: false` on this repository's own `main`
against the eighth advance's `3afd8a8c`. Against `f6724f04` the window is
MEASURABLE for the first time — the addition-grace mechanism the eighth
advance (`e57643a7`) made operative finally has a resolvable pin to measure
from.

NO COLLISION MEASURED. openxFactory PR #687 (`change/repoint-pytest-suite-
at-pin`, a separate lane) also edits `.github/workflows/pytest-suite.yml`,
still OPEN at this commit (`gh pr view 687 --json state,mergeCommit` ->
`OPEN`, no merge commit). Its diff touches only the header comment above the
OpenSpec-CLI install step and the `actions/setup-node` block that follows it
(originally lines ~190-215 and ~393-420); this commit's only change to that
file is the codexFactory core checkout's `ref:` at line 372, a separate step
entirely — no line this commit touches is a line #687 touches, measured by
reading both diffs rather than assumed from file identity alone.

LOCKSTEP RE-MEASURED ON xFactory `main`: unchanged in kind, carried forward
undischarged against the same floor size as before (see this commit's own
addition to `contracts/review-lane-pin.yaml`'s `lockstep.reason`).

VALIDATED. `pytest tests/review_lane_pin -q`: 73 passed / 2 skipped / 22
subtests (no core on disk, matching the prior advance's shape) and 75 passed
/ 0 skipped / 43 subtests with `PINNED_CORE_CHECKOUT` at a codexFactory
checkout of `67a6ffc9`. `OPENSPEC_TELEMETRY=0 openspec validate --all
--strict`: 93 passed / 0 failed. `validate-sequenced-after.py .` and
`--ledger-diff`: consistent with the corpus (172 rows), no row moves. All
four touched YAML files re-parse. `git diff --stat` against origin/main is
exactly the five sites plus `tasks.md`.

Packet boxes ticked in `openspec/changes/mirror-floor-addition-grace/
tasks.md`: 4.1 (the regeneration, cxF #212 -> 67a6ffc9, landed at f6724f0,
the negative control's refusal observed), 4.2 (this advance), 4.3 (the
non-ancestor retirement, measured), 6.1 and 6.2 (Brett Heap's ratification,
verbatim "ratify the companion when green, then realize it", applied at head
ce9a81e, recorded in review/ratification-2026-09-05.md; decisions A-F stand
as recommended). 5.2, 5.3 and 6.3 remain open — they are evidence from a REAL
advisory/required run and a codexFactory-owned value, not this commit's to
claim.

Do NOT merge on this commit alone: STEP (2) of the two-repository act,
opened for review.

Co-authored-by: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 5, 2026
…6724f0), pinned at a landed regeneration (#689) — the first promotion judged under the grace (#699)

* Archive mirror-floor-addition-grace: ratified (#676), realized (#686 f6724f0), pinned at a landed regeneration (#689) — the first promotion judged under the grace

Brett Heap's word in session on 2026-09-05, verbatim "archive the grace
packets" — one word over BOTH halves of a cross-repository pair. This is the
SECOND half, and the order is this packet's own declaration rather than a
preference: proposal.md carries sequenced_after:
[codexFactory:add-floor-addition-grace], so the parent archived first
(codexFactory PR #218, merge commit 35c08994, 2026-09-05T19:47:09Z, promoting
repository-gate-floor 5 -> 12 requirements and closing codexFactory issue #203).

AND THIS ARCHIVE IS THE PACKET'S OWN FALSIFICATION TEST. It CREATES
openspec/specs/review-lane-floor-mirror/spec.md, a new tracked path under a
floor that is an EXACT ENUMERATION. Under the regime this packet replaced, that
path would be reported UNCOVERED in two lanes at once and the REQUIRED
pytest-suite would refuse this pull request until a two-repository hand repair
had run — the cost measured at five payments in two days. Under the grace now in
force in both lanes, THIS pull request's own diff creates the path, so the
required lane should stay GREEN with the path covered-pending
(created_by_candidate) and the advisory lane should print
pending_floor_extension naming it. Tasks 5.2 and 5.3 are observations of THIS
pull request's checks and are ticked in a later commit here, with run ids and
the verbatim lines, or not at all.

EVERY SHA RE-READ FROM THE GITHUB API FOR THIS ACT, not remembered. RATIFIED
2026-09-05 "ratify the companion when green, then realize it", applied at head
ce9a81e; record review/ratification-2026-09-05.md, archived with the packet;
decisions A-F stand as recommended, none separately ruled. PROPOSED by PR #676
(568fa37). REALIZED by PR #686 (f6724f0, 2026-09-05T17:30:54Z). REGENERATED AT
A LANDED COMMIT by codexFactory PR #212 (67a6ffc9, generated_at 3afd8a8 ->
f6724f0, 59 entries unchanged) — the first floor repair in this programme that
did NOT block the pull request that caused it. RE-PINNED onto it by PR #689
(b680499), five sites in lockstep, which is what makes the live test
measurable: f6724f0 IS an ancestor of this repository's main (checked with
git merge-base --is-ancestor on this tree), where the retired 3afd8a8 was not,
so B1's pin window resolves rather than fail-safing to None. No contract bundle,
no digest set, no contract_bundle_version spent, no release tag owed.

THE ESCAPE IS DISCLOSED. python3 scripts/proposal-support.py . archive
mirror-floor-addition-grace was run FIRST and REFUSED — exit 1, "change has
incomplete tasks", working tree untouched; its gate is
scripts/proposal-support.py:1079-1081, read off those three lines in this tree
and UNCONDITIONAL on WHICH box. OPENSPEC_TELEMETRY=0 openspec archive
mirror-floor-addition-grace --yes was used instead: "Task status: 26/29 tasks",
"Warning: 3 incomplete task(s) found. Continuing due to --yes flag.",
"review-lane-floor-mirror: create", "+ 7 added", "Totals: + 7, ~ 0, - 0, -> 0".
Precedents: govern-sibling-added-modified-deltas (#571 3bcde7e),
declare-spent-bundle-state (#611 7af2725), add-subject-establishment (#647
e4ff4fb), add-chain-anchoring (#669 66d11a2),
amend-chain-anchoring-readiness-and-durability (#670 3d7b8f3), and one hour
earlier this packet's own parent (codexFactory #218, 35c08994).

THREE BOXES STAY OPEN, none of them undone realization. 5.2 and 5.3 are this
pull request's own observations (above). 6.3 says in its own first words that it
is NOT OWED HERE: the D-3 escalation-tolerance NUMBER is codexFactory's to set
in its own CODEOWNERS-routed document — it stands PROPOSED at 3, offered for
veto, no veto exercised, UNRULED — and option (b) of codexFactory issue #203
remains unruled and undesigned. An openxFactory archive cannot close a
codexFactory owner's box and none is attempted.

BYTE-CHECKED PROMOTION, one way because the capability is NEW: the archived
delta's requirement region (16 744 bytes) against the created specification's
(16 745), extracted from the first "### Requirement:" line on both sides — diff
reports exactly one difference, 182a183, a single appended blank line at
end-of-file, the same one-byte archiver signature #669 and #670 each recorded.
SEVEN requirements / 28 SCENARIOS on both sides, counted rather than added.
git status --porcelain -uall openspec/specs/ names that one file and no other.

THE ## Purpose WAS WRITTEN BY THIS ACT and is the one thing in the promoted file
the archiver did not author. Leaving the tool's "TBD - created by archiving
change ... Update Purpose after archive." would have made this the ONLY promoted
specification in the corpus still carrying it — 552a3a7 repaired all 39 others
on 2026-09-05 — so it was replaced in the promoted specification directly, which
is the only surface where such an edit lands. It carries no SHALL and lies
outside the byte-checked region.

REPOINTS, listed rather than summarized. README.md: the entry MOVED from
"Active changes" to the head of "Archived changes", relinked to the archive
path, with the word, the evidence chain, the escape, the open box and the live
test stated. tests/review_lane_pin/test_floor_snapshot.py: the packet citation
in the mirror's own header comment repointed to the archive directory and the
promoted capability named beside it (comment only; no assertion, name or watched
string moved). LEFT ALONE ON THE #669/#670 PRECEDENT: contracts/review-lane-pin.yaml's
history paragraphs and every archived record that cites the old path — records
are frozen, and contracts/ carries provenance rather than navigation.

GATES ON THIS HEAD: openspec validate --all --strict 94 passed / 0 failed;
proposal-support.py . verify ok; validate-sequenced-after.py . passed. The
per-change sweep ledger is STALE by design at this commit (row
mirror-floor-addition-grace state active -> archived, plus the three derived
totals) and is re-seeded in the NEXT commit with this pull request's real
number, never by hand.

Lane: openxfactory-2 (openXfactory-2)
Refs #675
Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Seed the per-change sweep ledger row for this archive: mirror-floor-addition-grace active -> archived, moved by #699

The row is MOVED BY THE TOOL, never by hand, which is the substrate's own rule:
python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#699'
--moved-on 2026-09-05 — "wrote tests/sequenced_after/corpus-ledger.yaml (173
rows, 1 moved by #699)". Exactly ONE row moved and the diff is one line:

  mirror-floor-addition-grace: {state: archived, class: sole,
    declares: [codexFactory:add-floor-addition-grace], depth: 0, prose: false,
    moved_by: "#699", moved_on: "2026-09-05"}

class stays `sole`, the CROSS-REPOSITORY parent declaration is carried
unchanged, and `depth: 0` is carried unchanged too — the known oddity this
packet's own design.md § 7 recorded when it filed the corpus's first
cross-repository `sequenced_after:` (a foreign parent resolves for
well-formedness but contributes no hop to a depth this repository can measure).
It is NOT hand-corrected here.

The pull request number could not be known before the pull request existed,
which is why this is a second commit rather than part of the archive: the
archive commit deliberately left the ledger STALE and said so.

AFTER, on this head: validate-sequenced-after.py . --ledger-diff reports
"per-change sweep ledger consistent with the corpus (173 rows)" over 34 active
+ 139 archived (was 35 + 138); python3 -m pytest tests/sequenced_after -q is
162 passed, where the archive commit alone had the three expected sweep
failures (test_the_LIVE_corpus_and_the_LEDGER_agree_row_by_row,
test_the_totals_DERIVED_FROM_THE_LEDGER_equal_the_MEASURED_sweep,
test_the_live_ledger_reports_the_SAME_totals_the_sweep_MEASURES).

Lane: openxfactory-2 (openXfactory-2)
Refs #675
Co-Authored-By: Claude Fable 5.1 <[email protected]>

* The live test found the controls: negative controls measure their grace sets like the shipped assertion; 5.2/5.3 ticked with the observed outputs

Lane: openxfactory-2 (openXfactory-2)

This is the live test task 5.2/5.3 exist for. PR #699 (this pull request)
is the programme's first real promotion: it creates
openspec/specs/review-lane-floor-mirror/spec.md, a new tracked path under
the exactly-enumerated floor. On head 1fde704:

- merge-master-approval run 33989488802 printed the advisory lane's
  pending_floor_extension outcome for the first time ever (the parent's
  own archive record, codexFactory PR #218, could only report the report
  SHAPE with nothing pending): stage pending_floor_extension,
  covered-pending 1 (tolerance 3, pin measured), PENDING
  (created_by_candidate): openspec/specs/review-lane-floor-mirror/spec.md,
  floor evaluated 0 never-clearable path(s) touched.
- pytest-suite run 33989489654 held the required lane's own shipped
  assertion, TheRealFiles::test_every_tracked_openspec_spec_path_is_on_the_
  floor, GREEN with the same path covered-pending — but the SAME run found
  two negative controls red: NegativeControls::test_the_unmutated_surface_
  is_a_positive_first and NegativeControls::test_a_fabricated_off_floor_
  spec_path_is_refused (2 failed, 9631 passed, 21 skipped).

Cause: both controls called graced_uncovered(self.surface, self.entries,
(), ()) with hard-coded EMPTY grace sets, while the shipped assertion
beside them measures created/window from resolve_base_branch(),
created_since_merge_base() and pin_window(). On a branch that legitimately
creates a spec path, the controls saw it as uncovered where the shipped
assertion correctly saw it covered-pending. This is a defect in the
companion realization (PR #686, authoring decision E: the controls were
moved onto the graced expression but not onto the graced measurement),
predicted by Copilot review (thread PRRT_kwDOTAvnrs6fmnH4) and caught here
by the first real promotion — exactly what this live test was for.

Fix, in tests/review_lane_pin/test_floor_snapshot.py only:
NegativeControls.setUpClass now derives generated_at/created/window the
same way TheRealFiles.setUpClass and the shipped assertion do.
test_the_unmutated_surface_is_a_positive_first now asserts missing == ()
and that every covered-pending path carries a measured reason, instead of
asserting ((), ()) against a live surface that legitimately has a pending
path. test_a_fabricated_off_floor_spec_path_is_refused now takes a
baseline before adding the fabrication and asserts the fabricated path
alone is refused while pending is unchanged from that baseline.

Re-run after the fix: tests/review_lane_pin -q -> 73 passed / 2 skipped
(both controls pass on this branch); with PINNED_CORE_CHECKOUT at
codexFactory 67a6ffc9 -> 75 passed / 43 subtests, no skips.
tests/sequenced_after -q -> 162 passed. openspec validate --all --strict
-> 94 passed / 0 failed. validate-sequenced-after.py . --ledger-diff ->
consistent (173 rows, no row moves).

tasks.md: ticks 5.2 and 5.3 in the archived
2026-09-05-mirror-floor-addition-grace change with the verbatim run
output above. README.md: the mirror-floor-addition-grace archive entry
pointed at "tasks.md § Archive" for the observed result, but the evidence
lives in tasks.md's own 5.2/5.3 items — corrected the pointer, and added
one sentence naming the negative-controls defect this live test found and
fixed, so the archive narrative does not read as a clean first pass.

Refs #675
Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Co-authored-by: Claude Fable 5.1 <[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