Skip to content

OpenSpec: intake's provider-boundary delta restates current canon; B's fold completed (#351) - #358

Merged
brettheap merged 3 commits into
mainfrom
change/fix-intake-stale-provider-boundary-delta
Aug 25, 2026
Merged

brettheap merged 3 commits into
mainfrom
change/fix-intake-stale-provider-boundary-delta

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Fixes #351. Doc-only (OpenSpec deltas + tasks records). Three commits.

The defect. add-doxchat-model-intake (ratified, unrealized) carried a ## MODIFIED Requirements block for doxBench model catalog and provider boundary written 2026-08-21 against a pre-02a71d6e canon. Archive replaces canon's block with the delta's raw markdown — no merge — so archiving it would have silently deleted six body clauses (three-member port surface; no fourth provider verb; the auto routing rule; the broker-lane credential clause; thread file in the leak list; "the hosted/read-only plane MUST offer neither route"), two scenarios (The menu offers a routing rule, A fourth provider verb is proposed), and reverted "every loaded editor" to "the Outline and Document editors". openspec validate --strict was green throughout (validator gap → #357).

The fix.

  • f68261f7 — intake's block re-authored as current canon :1045 restated whole + intake's four own additions (the INTAKE-affordance paragraph; the widened "browser loads model choices" bullet — a canon line modified in place, correctly; the intake affordance is submitted as a model scenario; the hosted-plane "intake affordance MUST be absent" bullet). Also fixed one extra stale line ("hosted/read-only plane" → canon's "hosted plane"). Dated Amendment Record in intake's tasks.md.
  • 8f5e7e06 — add-doxbench-distilled-abstract (B) had folded three of intake's four additions into its own block for the same requirement; the fourth (the hosted-plane bullet) is now folded, word for word. Task 1.2 updated.
  • f4a135b3 — B's task 1.2 corrected: archive safety is asymmetric (B carries intake's text; intake cannot carry B's widening), so the constraint is intake archives before B. Task 1.2a closed.

Verification (independent, mechanical): canon ⊆ intake ⊆ B line-by-line — canon-minus-intake is exactly the one in-place-widened bullet; intake-minus-B is empty; headings byte-identical; scenarios 7 / 8 / 12. Diff confined to the four expected files. openspec validate --all --strict: 79 passed.

🤖 Generated with Claude Code

brettheap and others added 3 commits August 25, 2026 13:01
…verts six clauses (#351)

`add-doxchat-model-intake`'s MODIFIED block for "doxBench model catalog and
provider boundary" was written 2026-08-21, one day before canon's own version
of the same requirement (openspec/specs/ideation-dashboard/spec.md:1045)
landed via add-doxbench-editing-phase-b (02a71d6, 2026-08-22). The stale
block was never refreshed, so an archive would have replaced canon verbatim
with a pre-2026-08-22 rendering — silently deleting six body clauses (the
three-member port surface enumeration; "MUST NOT be added as a fourth
provider verb"; the `auto` routing-rule clause; the broker-lane credential
clause; `thread file` in the credential-leak list), two whole scenarios
("The menu offers a routing rule", "A fourth provider verb is proposed"),
and reverting one scenario line ("every loaded editor MUST remain usable"
narrowed to "the Outline and Document editors MUST remain usable").

Rewrote the block as current canon restated whole (heading and every canon
body clause and scenario preserved verbatim) plus intake's own additions
reinserted at their natural positions: the "exactly ONE non-model INTAKE
affordance" paragraph, the widened "browser loads model choices" bullet, and
the new "The intake affordance is submitted as a model" scenario. The
"Hosted doxBench is opened" WHEN line reverts to canon's "hosted plane"
wording (intake had drifted to "hosted/read-only plane"); intake's own added
AND bullet on that scenario is preserved.

Cross-checked against add-doxbench-distilled-abstract's spec.md:42 (same
requirement, MODIFIED by a later change): its rendering of every one of
intake's additions matches intake's own wording word for word — no
divergence found. That delta layers its own further widening (EVERY MODEL
CONSUMER, additional scenarios) on top, which is out of scope here.

Added a 3-line dated note to intake's tasks.md Amendment Record recording
the re-authoring and its cause, for #351.

openspec validate add-doxchat-model-intake --strict: valid.
openspec validate --all --strict: 79 passed, 0 failed.

Co-Authored-By: Claude Fable 5 <[email protected]>
add-doxbench-distilled-abstract's own MODIFIED block for "doxBench model
catalog and provider boundary" (specs/ideation-dashboard/spec.md:42) already
folded three of intake's additions into its rendering (the INTAKE-affordance
paragraph, the widened "browser loads model choices" bullet, and the "The
intake affordance is submitted as a model" scenario) but omitted a fourth:
intake's own added AND bullet on "Hosted doxBench is opened" ("the intake
affordance MUST be absent with them, because a plane that may not run a turn
may not enrol a provider either"). Same defect class as the prior commit —
a later MODIFIED block that doesn't carry an earlier active change's
additions reverts them on archive, this time reverting intake's bullet
instead of canon.

Added the bullet word for word, at the same position (last AND line) intake
uses. Nothing else in B's spec.md changed. B's block is now exactly
(canon + intake's additions, verbatim) + B's own widening (EVERY MODEL
CONSUMER, the additional model-consumer paragraph and scenarios) — no
remaining divergence found against intake's own wording for any of its four
additions.

Updated B's tasks.md task 1.2 (the INTAKE FOLD tracking task) to list the
now-four folded additions and recorded the date of this fold.

openspec validate add-doxbench-distilled-abstract --strict: valid.
openspec validate --all --strict: 79 passed, 0 failed.

Co-Authored-By: Claude Fable 5 <[email protected]>
…351)

Verification review found task 1.2's "whichever archives second does not
drop the other's text" claim false in one direction: OpenSpec archive
replaces canon's requirement block with the archiving delta's raw markdown
verbatim — there is no merge. B (add-doxbench-distilled-abstract) carries
intake's text, so B archiving second is safe. Intake does NOT carry B's
EVERY-MODEL-CONSUMER widening or its four added scenarios, so intake
archiving second would revert them. Reworded 1.2 to state the asymmetry
plainly and record the ordering constraint it implies:
`add-doxchat-model-intake` MUST archive BEFORE
`add-doxbench-distilled-abstract`.

Closed 1.2a: the coordinator note about intake's delta restating an older
canon (#351) is resolved by this branch's earlier commits; marked [x] with
a dated line naming the one hazard that remains — archive order, tracked at
1.2.

openspec validate --all --strict: 79 passed, 0 failed.

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

@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 fixes a documentation defect in OpenSpec change packets where an active change’s ## MODIFIED Requirements block for “doxBench model catalog and provider boundary” had drifted behind current canon, which would have reverted canon content upon archive. It updates the affected change delta to restate current canon plus the intake-specific additions, and aligns the related “distilled abstract” change to fully fold those additions while documenting the required archive ordering.

Changes:

  • Re-authors add-doxchat-model-intake’s modified requirement block to match current canon and preserve all current clauses/scenarios while retaining the intake additions.
  • Completes the fold of intake’s hosted-plane intake-affordance-absence bullet into add-doxbench-distilled-abstract’s delta.
  • Updates both change packets’ task records with an amendment note and an explicit asymmetric archive-ordering constraint (intake must archive before distilled-abstract).

Reviewed changes

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

File Description
openspec/changes/add-doxchat-model-intake/tasks.md Adds an Amendment Record entry documenting the re-authoring and archive-safety rationale.
openspec/changes/add-doxchat-model-intake/specs/ideation-dashboard/spec.md Rewrites the MODIFIED requirement block to restate current canon plus intake additions, restoring missing clauses/scenarios and updating hosted-plane wording in the scenario.
openspec/changes/add-doxbench-distilled-abstract/tasks.md Updates task 1.2/1.2a to reflect the completed fold and makes the archive ordering constraint explicit and correct (asymmetric).
openspec/changes/add-doxbench-distilled-abstract/specs/ideation-dashboard/spec.md Adds the missing hosted-plane bullet ensuring the intake affordance is absent on the hosted plane, matching the intake delta fold.

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

@brettheap
brettheap merged commit 87d0b95 into main Aug 25, 2026
3 checks passed
brettheap pushed a commit that referenced this pull request Aug 27, 2026
…ally measured under

Ten blockers. The load-bearing one: the delta defined carriage as substring
containment while the spike measured exact units, and under the written rule
the change's own headline evidence vanishes — canon's "exactly the available
catalog entries and their data-handling badges" bullet is a SUBSTRING of the
widened line #351 introduced, so containment reports nothing on the defect PR
#358 repaired by hand. Matching is now same-kind exact after whitespace
normalization, containment and similarity both forbidden in normative text,
and every number re-measured under the rule as written: arm A 1, ledger 14
units across 10 requirements, arm D 0 — +1 warning, +10 info, rising to +11
info once section 2.1 writes its own enumeration block.

Unit derivation is now normative rather than implied: backticked spans masked
before any sentence split (118 tokens with internal periods in canon bodies),
bullets as units, a dated bold note undivided. Scenario bullets compare across
ALL bullets of the block, because a retitle-and-gut passes any scenario-paired
comparison: rename, declare, drop two of four bullets, zero findings.

The deletion declaration is a NEW reserved marker read by form. The precedent
it claimed did not exist: all five dated bold notes in this corpus record a
caught near-miss and a RESTORATION, and the one in "Deterministic check
families" names seven scenario titles in backticks as restored — so a
prose-reading rule would have read a faithful restatement of that requirement
as declaring seven deletions, on the requirement #329 is about.

release-realization's "active RATIFIED change" is carried verbatim; the
family's wider reading scope is stated as a separate sentence rather than as a
silent widening. "No flip for the ledger, ever" loses the "ever", and the
proposal now tabulates which of #351's nine items each arm gates versus
reports: two gated, seven reported. Launch precedent corrected to three
families advisory, two flipped. Origin drops the qualify-avatar citation and
the backdated approval; it records queue admission by the orchestrating
session, weaker than create-medxchart's human ruling and said to be weaker.
#330 gets an explicit STAYS OPEN with an owner; the "which of two active
writers is later" question gets a ruling owed and a blocked task.

Refs #357 #329 #330

Co-Authored-By: Claude Opus 5 <[email protected]>
brettheap added a commit that referenced this pull request Aug 27, 2026
…ates stale canon must not pass — #357 #329 #330 (#407)

* Propose the check that reads an active MODIFIED block against the canon it will replace

`## MODIFIED Requirements` REPLACES a requirement wholesale and
`openspec validate --strict` reads only a delta's shape, so a block that
restates stale canon deletes every clause and scenario canon gained since it
was written — silently, with every gate green. Four instances in one week,
each caught by a human: #351 (six clauses, two scenarios, one reverted line)
and the three sibling families that each restated one of eight scenarios
(#329). promotion-fidelity cannot see it, because after the archive act canon
IS the delta (#330).

PROPOSAL ONLY. Status: draft, no ratification citation, five orchestrator
decisions flagged for veto. document-lifecycle gains the authoring obligation;
doc-health gains the twenty-second family, reading ACTIVE deltas against
CURRENT canon in three arms — scenario-title completeness as the gate, a
carriage ledger as editorial, and title resolution reusing
release-realization's "relative to that change's outcome".

Measured over every active change before the proposal was written: 1
scenario-arm finding (a deliberate rename, named and not claimed a defect),
13 ledger units across 10 requirements all deliberate edits, 0
title-resolution findings at 7-of-7 two-writers compliance. Predicted launch
movement +1 warning, +10 info, 0 error.

It carries no MODIFIED block on "Deterministic check families", and that was
proven rather than judged: canon still enumerates, so a block is owed, but a
proposal registers no family — the restatement drew 3 findings from
family-enumeration and red its standing self-gate. Owed at realization in the
registration commit, relative to add-family-enumeration-check's outcome, 8 -> 8.

Refs #357 #329 #330

Co-Authored-By: Claude Opus 5 <[email protected]>

* Rework on adversarial review: the matching rule the numbers were actually measured under

Ten blockers. The load-bearing one: the delta defined carriage as substring
containment while the spike measured exact units, and under the written rule
the change's own headline evidence vanishes — canon's "exactly the available
catalog entries and their data-handling badges" bullet is a SUBSTRING of the
widened line #351 introduced, so containment reports nothing on the defect PR
#358 repaired by hand. Matching is now same-kind exact after whitespace
normalization, containment and similarity both forbidden in normative text,
and every number re-measured under the rule as written: arm A 1, ledger 14
units across 10 requirements, arm D 0 — +1 warning, +10 info, rising to +11
info once section 2.1 writes its own enumeration block.

Unit derivation is now normative rather than implied: backticked spans masked
before any sentence split (118 tokens with internal periods in canon bodies),
bullets as units, a dated bold note undivided. Scenario bullets compare across
ALL bullets of the block, because a retitle-and-gut passes any scenario-paired
comparison: rename, declare, drop two of four bullets, zero findings.

The deletion declaration is a NEW reserved marker read by form. The precedent
it claimed did not exist: all five dated bold notes in this corpus record a
caught near-miss and a RESTORATION, and the one in "Deterministic check
families" names seven scenario titles in backticks as restored — so a
prose-reading rule would have read a faithful restatement of that requirement
as declaring seven deletions, on the requirement #329 is about.

release-realization's "active RATIFIED change" is carried verbatim; the
family's wider reading scope is stated as a separate sentence rather than as a
silent widening. "No flip for the ledger, ever" loses the "ever", and the
proposal now tabulates which of #351's nine items each arm gates versus
reports: two gated, seven reported. Launch precedent corrected to three
families advisory, two flipped. Origin drops the qualify-avatar citation and
the backdated approval; it records queue admission by the orchestrating
session, weaker than create-medxchart's human ruling and said to be weaker.
#330 gets an explicit STAYS OPEN with an owner; the "which of two active
writers is later" question gets a ruling owed and a blocked task.

Refs #357 #329 #330

Co-Authored-By: Claude Opus 5 <[email protected]>

* The marker has to be able to name the units it exists to name

Three blockers, all in the reserved-marker paragraph, all of them the same
mistake: a form invented at the desk rather than checked against the text it
must describe.

Backticks. "Each quoted in backticks" cannot name roughly a third of this
corpus's requirement body units or a sixth of its scenario bullets, because
those units cite `openxFactory` or `promotion_fidelity.py` and a
single-backtick span ends at the first inner one — the marker would name a
fragment. Units are now CommonMark code spans, a unit containing backticks
carries a longer fence, and the parser extracts the spans following the colon
in order rather than splitting on punctuation, so semicolons and dashes inside
a unit or a reason stop mattering.

The merge destination. Every valid `Merged into` marker names its new title,
and the new title is present in the block by construction, so the
present-unit rule made every correct merge marker report itself. The
destination is now stated as a destination and not a named unit.

One spelling. The destination was backticked in the worked example and bare in
four other places; it is a code span everywhere now.

Also: a marker is one PARAGRAPH, not a line that wraps. A promoted marker is
not a carriage unit, or every later block would restate every marker any
predecessor wrote, forever — the durable record is the archived delta. Naming
a scenario title declares that scenario's canon bullets with it, unless they
survive elsewhere in the block, and `Merged into` names titles only so a
bullet a merge makes redundant is a declared removal rather than a permanent
info row. Title resolution reads the change's OWN `## RENAMED Requirements`
block before any sibling's and then compares under the old name, so a
rename-and-amend change is not reported as unresolved.

Refs #357 #329 #330

Co-Authored-By: Claude Opus 5 <[email protected]>

* A removal marker cannot be the back door a retitle walks through

The two marker rules contradicted each other and the contradiction was
exploitable. "A named scenario title carries its bullets with it" and "a
retitle that drops bullets must still report them" both matched one shape:
name the old title in a `Removed from canon` marker, add a replacement
scenario carrying two of its four bullets, and the permissive rule wins —
zero findings, two obligations gone. That is B5 reopened through the
declaration mechanism rather than through the comparison, which is worse,
because the author has to write the marker deliberately.

Bullet suppression by title now applies only to a GENUINE removal: the block
must add no scenario title canon does not already carry. Add one and the shape
is a retitle whatever the marker calls it, the removed title's bullets are not
suppressed, and the author's instrument is `Merged into` — whose bullets must
be carried somewhere or named one at a time. Encoded in the normative
paragraph, in a rewritten scenario, in a second scenario for the other branch,
in the document-lifecycle delta, and as a fixture covering the COMBINATION
rather than each branch alone.

Also: marker form now anchors on the complete prefix — bold run, resolvable
change-id, ISO date, colon — because both of this change's own deltas set out
the marker templates in prose that promotes into canon, and a looser test
would have read them as markers and exempted the very paragraphs that define
the check from being checked. design.md states as a chosen consequence that a
bullet moved verbatim under a different scenario is carried: the arm reads
carriage, not meaning. Two wrap overruns and one subject-verb disagreement.

Refs #357 #329 #330

Co-Authored-By: Claude Opus 5 <[email protected]>

* Ratified, and the ordering question answered by the rule that already owned it

Brett ratified the packet in session on 2026-08-27, verbatim "Ratify as-is", on
the text as written at 06c7475, and ruled the two questions it had left open.

RATIFICATION. `Status: ratified` in all three documents; proposal.md carries
the record-citing spelling (no approving OpenSpec change exists to name, and
the three-way floor clears on approver and date), design.md and tasks.md carry
`Ratified by: add-modified-block-currency-check` exactly as both ratified
precedents' design documents do. The citation says what it covers: the packet
as written. The five orchestrator decisions were flagged for veto and were NOT
vetoed — which is not the same as affirmatively ruled, so every flag stays and
each now says so, and no later reader can cite this ratification as having
decided them.

§ 7.3 RULED — BY DECLARATION. The packet asked how "later" is decided between
two ACTIVE writers of one requirement, since promotion-fidelity orders archived
packets by folder date and active changes have neither a folder date nor an
archive act. The answer is that the question was already answered and the
packet had not noticed: release-realization requires the later proposal to
DECLARE itself relative to the earlier one, so the declaration IS the ordering.
The check now verifies two things and infers nothing — exactly one of two
active ratified writers declares, and the declaring block carries the other's
additions. Neither declaring is the reported asymmetry; both declaring is
reported too. The `created:`-date reading the spike used is withdrawn: a second
authority for an ordering one rule already owns is the defect "Explicit delta
rule" names. Written into the doc-health delta's title-resolution bullet and
two scenarios, the document-lifecycle delta, design D4, and § 2.7, which is
unblocked. Re-measured: 0 two-MODIFIED pairs at the branch point, 1 with § 2.1
present, 0 findings either way — this change declares itself relative to
add-family-enumeration-check and that change names nothing, so the declaration
selects the same basis the date reading had guessed.

§ 7.5 RULED — ADMISSION RECORDED. `.openspec.yaml` names Brett as approver on
2026-08-27, verbatim "Record your admission now", in the shape
create-medxchart-overlay-boundary uses; the orchestrating-session wording and
the weaker-than-medxchart paragraph are gone. Issue #318 itself stays open: the
taxonomy still has no origin kind meaning "proposed, not approved", so the next
packet drafted before approval sits in the same gap this one sat in for a day.

Refs #357 #329 #330

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: brettheap <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
brettheap pushed a commit that referenced this pull request Aug 27, 2026
…ts killed

The two defects that motivated `add-modified-block-currency-check` can no longer
regress silently. Both fixtures are REAL TEXT recovered from this repository,
not shapes:

- #351 @ bcfc26a (parent of the repair f68261f, merged 87d0b95 / PR #358).
  One `warning` naming exactly `The menu offers a routing rule` and `A fourth
  provider verb is proposed`; one `info` listing 11 of canon's 25 units.
- #329 @ d5f447e (parent of the archive 38b548d, merged b03b999 / PR #331).
  One `warning` naming all seven omitted titles; one `info` listing 17 of 28;
  canon 8 scenarios and delta FILE 8 — flat, and the family fires anyway.

`test_the_reconstructed_fixtures_are_the_history_they_claim` re-derives both
from git rather than trusting the files: the delta side byte-for-byte, the canon
side scoped to the requirement section, with shallow-vs-disagree told apart by
`git rev-parse --is-shallow-repository` per test_ideation_readiness.py.

STAGE-2 RED EVIDENCE — nine perturbations applied, each named test failed, all
reverted; no mutant survived:

  1 restore `The menu offers a routing rule` into the 351 block -> T010 failed
  2 delete the broker-lane sentence from the 351 CANON           -> T012 failed
  3 restore `every loaded editor MUST remain usable`             -> T013 failed
  4 un-widen the 351 badges bullet to canon's verbatim           -> T014 failed
  5 rename the 351 fixture repo dir                              -> T015 failed
  6 corrupt one byte of the 351 delta fixture                    -> T022 failed
  7 restore one omitted scenario into the 329 block              -> T017 failed
  8 add an eighth scenario to the 329 delta FILE                 -> T019 failed
  9 carry canon's `Four of the seventeen` sentence in the block   -> T020 failed

T014 closes audit row A5(b) on the REAL instance: canon's badges bullet is a
strict PREFIX of the block's replacement, and the test checks that prefix
relation in its own body rather than claiming it in a docstring — so a fixture
edit that broke the premise cannot leave the test passing while testing nothing.
That is the packet's § 6.4 residue, the finding PR #358's manual verification
reported, and F1 had no end-to-end case for it.

Phase 2's harness carries decision O2's partition invariant, and it is measured
rather than assumed: `test_the_naive_declaration_key_would_collide` records as
an executable fact that keying the marker class on `"declaration"` reaches the
mutual-declaration ORDERING finding too, so a later session cannot "simplify"
the five keys back into a collision.

`_units` mirrors `_arm_ledger`'s kind filter, without which a U-class assertion
reads 24 of 36 on #329 where the ledger reads 17 of 28.

Suite 1077 -> 1089. The one RED remaining is deliberate:
test_the_tree_enumeration_finds_every_tree requires all seven new trees and
five are still to come.

Co-Authored-By: Claude Opus 5 <[email protected]>
brettheap added a commit that referenced this pull request Aug 27, 2026
#329 reconstructed from history, nine audit gaps closed, no behaviour added (#426)

* Speckit F2 specify: the regression-fixture catalogue is an audit first, then six gaps

`add-modified-block-currency-check` § 3 (3.1-3.13) is this feature's whole
scope. F1's implementation review found F1 already realizes every scenario of
the ratified delta with a test, so F2 is an AUDIT of those 97 tests against
§ 3 item by item, plus RED-first tests for what the audit finds gapped — and
no behaviour added to the module.

The two histories § 3.1 and § 3.2 ask for were VERIFIED RECOVERABLE before
this spec was written, and both reconstructions were run through the family:

- #351 — `add-doxchat-model-intake`'s pre-repair block and the canon of
  2026-08-25, both at bcfc26a (parent of the repair f68261f, merged
  87d0b95 / PR #358). The scenario arm names exactly `The menu offers a
  routing rule` and `A fourth provider verb is proposed`; the ledger carries
  the repair commit's clauses, the reverted `every loaded editor` line, and
  canon's badges bullet — which the block's replacement contains verbatim as
  a strict prefix, the REAL instance of the widening mechanism.
- #329 — `add-release-inventory-drift-check`'s pre-archive delta and canon,
  both at d5f447e (parent of the archive 38b548d, merged b03b999 /
  PR #331). One of eight scenarios restated, seven brought by its own ADDED
  requirement, file-level count flat at eight on both sides, seven titles
  named.

Nothing needs synthesizing for 3.1 or 3.2. Zero [NEEDS CLARIFICATION]: every
candidate ambiguity is settled by the packet, the delta, an orchestrator
decision or measured evidence, and each is recorded in Assumptions A1-A9 with
what settles it. A1 and A2 are the two that shape every assertion — the
human's "six clauses" live inside THREE normative sentence units, and the
rendered ledger truncates each unit, so full clause text is asserted on the
units the comparison returns rather than on the rendered string.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Speckit F2 plan: 18 audit rows over 14 items, and both histories recovered before the plan was written

`contracts/coverage-audit.md` is the deliverable of this phase and the single
home for the § 3 -> F1-test mapping. Taken from the LANDED test file, not from
F1's plan, its hand-off, or its spec's Out of Scope, all three of which
disagree about what F1 covers (research R10; the hand-off wins, being later
and consistent with decision D4).

18 rows for 14 items — § 3.7 carries eleven distinct obligations and needs
five of them. 10 satisfied, 1 satisfied-and-extended, 4 partial, 3 gapped.
Six new fixture trees and two unit-level assertions close the seven
non-satisfied rows.

Measured, not assumed (research R2), by building both reconstructions and
calling the family on them:

- fixture A (#351 @ bcfc26a): 2 findings. One `warning` naming exactly
  `The menu offers a routing rule` and `A fourth provider verb is proposed`;
  one `info` listing 11 of canon's 25 units — 3 body sentences carrying the
  repair commit's five body clauses, the reverted `every loaded editor` line,
  the drifted hosted-plane line, and canon's badges bullet, which the block's
  replacement contains as a STRICT PREFIX. That last is § 3.4's mechanism in
  the real history, and F1 had no end-to-end case for it.
- fixture B (#329 @ d5f447e): 2 findings. One `warning` naming all seven
  omitted titles; one `info` listing 17 of 28 units. Canon 8 scenarios, delta
  FILE 8 scenarios, fires anyway.

Two readings that shape every assertion, both promoted to research items
rather than left to the implementer: § 3.1's "six body clauses" are five
human-named clauses lying inside THREE normative sentence units (R3), and the
ledger truncates each unit at 140 characters, so full clause text is asserted
on the units the comparison returns and the rendered finding is asserted on
its quoted prefixes (R4). `data-model.md` § 4 makes that the U/F assertion
discipline every test obeys.

Four decisions taken here and flagged for veto beside the five given: O1 one
new test file rather than growing F1's 1400-line one; O2 the re-spelled
finding classifiers pinned by a PARTITION invariant instead of a cross-file
import; O3 a reconstruction freezes the REQUIREMENT verbatim, not the 279 KB
file; O4 the delta side is copied WHOLE, because § 3.2's flat count lives in
its ADDED section.

Constitution gate IV caught one real violation while running: quickstart.md
carried a host-absolute worktree path. Rewritten repo-relative.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Speckit F2 tasks: 61 tasks, 28 of them tests, and a two-stage RED for the assertions that carry the feature

RED-first is the point of this feature, so the convention is written down
rather than assumed. A fixture test written before its fixture fails by ERROR,
which proves nothing about the assertion — so the rows that carry the feature
use a two-stage RED: stage 1 the test errors with no fixture; stage 2 the
fixture is built and then PERTURBED in the one way that matters (the omitted
scenario restored, the widened bullet replaced by canon's, the gutted merge
bullets carried, the note's third sentence un-edited, a re-wrapped paragraph
altered) and the test must fail on its ASSERTION. T058's mutation round
re-runs every stage 2 mechanically.

Two tasks record honestly that they have NO pre-state RED — T033's containment
widenings and T051's scope snapshot are green the moment they are written, so
their evidence is the mutation round and the task says so instead of claiming
a RED that did not happen.

Phase order follows the audit's severity rather than § 3's numbering: US1 the
two reconstructions (MVP, and a legitimate terminal state), US2 the audit
(independent of every fixture, so it can go first if the reconstructions
stall), US3 the merge-gut — the one TRUE hole, where a refactor could silently
permit an undeclared bullet deletion — then US4's four narrowings, then US5.

T053 is an OPEN DEFECT SLOT, per orchestrator decision D1: if a fixture found
the family behaving other than the ratified delta states, it gets its own task,
its own RED and its own PR line as a defect, never a fixture adjustment. If
nothing fired the task says so and says what was checked.

T052 makes D1 mechanically checkable — `git diff --stat origin/main --
scripts/ openspec/ .github/` must be empty — and T002 blocks everything on the
base still being unmoved, because an audit of a file that has since moved is
worse than no audit.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Speckit F2 analyze: zero CRITICAL, six findings, and the validation guide validated nothing

The pass earned its keep on F1. Four of `quickstart.md`'s `-k` selectors were
written on TREE names — `history_351`, `history_329`, `merge_gut`,
`containment` — none of which appears in any test name tasks.md writes. Every
one of those commands would have selected zero tests and exited 5, so the guide's
three most important steps validated nothing. Selectors rewritten against the
real names, and T056 now checks that each picks a non-zero count.

F2 is the defect this repo keeps paying for, caught in its own plan: plan.md
carried a second inventory of test NAMES, five already drifted from tasks.md's
spelling and four tasks.md tests missing from it. The inventory is deleted;
tasks.md is the one home for the figure (62 tasks, 29 [TEST], 30 functions).

F4 is the one that mattered most for correctness. FR-002 and FR-008 were
carried only by T059's prose, and FR-002's other half — that a `satisfied`
verdict is ACTUALLY satisfied — was checked by nothing: T024 proves a cited
test name exists, not that it asserts what the row claims. T059 is now four
numbered concrete steps, including a spot-check of every one of the ten
`satisfied` rows against the cited test body, and FR-008's count check as a
literal grep with a declared exception list.

F6: T037's "RED stage 2" asserted that a test STILL PASSES, which is not a RED.
It conflated two properties — the mask governs where units END, and says
nothing about whether two units are equal. T034 and T036 each get a real stage
2 (strip the backticks from `contract-v1.45`; un-edit the note's third
sentence), and the conflated property becomes T037a.

F3 and F5 are small: US2's acceptance covered `gapped` but not `partial`
although four rows are partial, and T022 left `<repo root>` unexpanded.

Recorded and NOT fixed, because it cannot be: the audit's ten `satisfied`
verdicts rest on a human reading of F1's test bodies. If one is wrong, this
feature ships a hole it believes it closed. plan.md says so in those words.

Also recorded: origin/main advanced nine commits since the 19e3f6b branch
point, and the diff over every audit input is EMPTY, so the base holds. Not
rebased. T002 re-runs that diff before any other task.

Suite unchanged at 1077 — nothing is implemented this round, by instruction.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Plan review fixes: two of my own `satisfied` verdicts were wrong, and I quoted a hedge the packet does not contain

Seven blockers and sixteen nits from the coordinator's plan review, all applied.
Two of them are findings against this feature's own audit, and both are the
exact failure its closing note predicted — a row citing a test whose NAME
matched the obligation and whose BODY did not discharge it.

B6 — A15 (§ 3.10) re-verdicted `partial`. F1's cited
test_no_date_folder_or_created_field_decides_the_ordering says in its OWN
docstring that its fixture "sorts BEFORE … by name and by any date a fixture
could carry, and the declaration points the same way", so it cannot be the test
§ 3.10 asks for; its structural grep forbids date readers and forbids NOTHING
about folder or change-id name, which the delta prohibits in the same breath.
A build sorting the ratified group by b.change passes every F1 test. New tree
`modified-block-currency-name-order` + T043a/T043b: `add-zz-first` is the
DECLARER and therefore the later writer, so it sorts LAST by name and the test
fails under name-ascending ordering. Test-only.

N8 — A10 (§ 3.7c) re-verdicted `partial`. Its cell claimed "the anchor is
asserted against this packet's OWN delta prose" and nothing was: F1's
fenced-example test asserts over a fenced block written in its own test body,
and the packet sets its two templates out as `- ` BULLETS, which are carriage
units the fenced exemption never reaches. T043c reads the real file.

B4 — research.md and plan.md QUOTED § 3.2 as hedging "reconstruct … if
recoverable, else synthesize faithfully and say so". grep over the ratified
packet finds no such words; the phrasing came from the session brief. Removed
everywhere, attributed to decision D2 where it lives, and T021 reworded so the
fixture README states the true history positively — caught pre-commit,
rewritten inside archive commit 38b548d, recoverable at its parent d5f447e —
instead of denying a revert no ratified document asserted.

B7 — measured the classifier collision rather than assuming O2 worked: the
obvious key `"declaration"` matches 3 findings across TWO classes (one marker
defect, both blocks of the mutual-declaration pair). T008 now names five keys,
each a fragment of one arm's f-string, verified to partition all 24 findings
over the eight trees with none in two classes and none in zero.

B3 — ten tests had no stage-2 perturbation and T058's prose list never reached
them. T011's evidence line now names five perturbations for five tests, and
T058 is a 30-row table: perturbation, test that MUST fail. Rows 27 and 30 touch
scripts/ and say so — applied in the working step, never committed.

B1 — the audit cited a whole superseded task numbering after tasks were
renumbered. Every last-column id re-mapped and verified to exist; T023 now
checks task-id VALIDITY and the verdict tallies, not just item coverage.

B2 — T024 and quickstart § 6 harvested `test_[a-z0-9_]+` over the whole audit,
which eats the MODULE basename `test_modified_block_currency` from the prose
path: permanently red, and T004 would have sent the implementer to "fix the
audit" for a defect in the harvester. Backticked spans only, plus a >30 floor
so a regex matching nothing cannot pass.

B5 — the provenance template could not satisfy T044: the SHA sat on line 42 and
line 3 read "Not synthesized". SHA hoisted into line 3; T044's SYNTHESIZED
match is case-sensitive and whole-word; "two lines" vs "three" reconciled.

Nits: real byte sizes (228,041 and 50,505, not "279 KB … comparable"); f68261f
CLAIMS six body clauses and NAMES five, so the five named are what is asserted;
`_units` mirrors the ledger's kind filter (unfiltered gives 24/36 on #329 vs
the ledger's 17/28); T058 not T060 is the mutation round; T037 out of the [TEST]
list; the count-exception list gets ONE home in data-model.md § 4 with T035's
"exactly two body units" added; quickstart § 4 selector reaches T037a and the
new tests; T022 discriminates shallow-vs-disagree with `git rev-parse
--is-shallow-repository` per test_ideation_readiness.py; A12 clause 7's silence
comes from whole-scenario suppression, not from the survivor; T051 drops its
duplicate of F1's FAMILY_NOTES assertion; T049/T050 assert non-empty first; the
nine-commit figure is re-measured at T002 rather than quoted.

N11 — F1's four residues (plus a docstring that undercounts its own fixture)
appended to specs/019-modified-block-currency-family/tasks.md, which is where
F1's owner reads. No issue filed.

Audit now: 18 rows, 8 satisfied / 1 extended / 6 partial / 3 gapped; nine rows
for F2 to close. 66 tasks, 31 [TEST], 32 test functions, seven new trees.

Co-Authored-By: Claude Opus 5 <[email protected]>

* F2 phases 1-3: #351 and #329 frozen in their own text, and nine mutants killed

The two defects that motivated `add-modified-block-currency-check` can no longer
regress silently. Both fixtures are REAL TEXT recovered from this repository,
not shapes:

- #351 @ bcfc26a (parent of the repair f68261f, merged 87d0b95 / PR #358).
  One `warning` naming exactly `The menu offers a routing rule` and `A fourth
  provider verb is proposed`; one `info` listing 11 of canon's 25 units.
- #329 @ d5f447e (parent of the archive 38b548d, merged b03b999 / PR #331).
  One `warning` naming all seven omitted titles; one `info` listing 17 of 28;
  canon 8 scenarios and delta FILE 8 — flat, and the family fires anyway.

`test_the_reconstructed_fixtures_are_the_history_they_claim` re-derives both
from git rather than trusting the files: the delta side byte-for-byte, the canon
side scoped to the requirement section, with shallow-vs-disagree told apart by
`git rev-parse --is-shallow-repository` per test_ideation_readiness.py.

STAGE-2 RED EVIDENCE — nine perturbations applied, each named test failed, all
reverted; no mutant survived:

  1 restore `The menu offers a routing rule` into the 351 block -> T010 failed
  2 delete the broker-lane sentence from the 351 CANON           -> T012 failed
  3 restore `every loaded editor MUST remain usable`             -> T013 failed
  4 un-widen the 351 badges bullet to canon's verbatim           -> T014 failed
  5 rename the 351 fixture repo dir                              -> T015 failed
  6 corrupt one byte of the 351 delta fixture                    -> T022 failed
  7 restore one omitted scenario into the 329 block              -> T017 failed
  8 add an eighth scenario to the 329 delta FILE                 -> T019 failed
  9 carry canon's `Four of the seventeen` sentence in the block   -> T020 failed

T014 closes audit row A5(b) on the REAL instance: canon's badges bullet is a
strict PREFIX of the block's replacement, and the test checks that prefix
relation in its own body rather than claiming it in a docstring — so a fixture
edit that broke the premise cannot leave the test passing while testing nothing.
That is the packet's § 6.4 residue, the finding PR #358's manual verification
reported, and F1 had no end-to-end case for it.

Phase 2's harness carries decision O2's partition invariant, and it is measured
rather than assumed: `test_the_naive_declaration_key_would_collide` records as
an executable fact that keying the marker class on `"declaration"` reaches the
mutual-declaration ORDERING finding too, so a later session cannot "simplify"
the five keys back into a collision.

`_units` mirrors `_arm_ledger`'s kind filter, without which a U-class assertion
reads 24 of 36 on #329 where the ledger reads 17 of 28.

Suite 1077 -> 1089. The one RED remaining is deliberate:
test_the_tree_enumeration_finds_every_tree requires all seven new trees and
five are still to come.

Co-Authored-By: Claude Opus 5 <[email protected]>

* F2 phases 5-8: seven trees, 38 tests, and the mutation round found two tests that asserted nothing

All nine non-satisfied audit rows are closed. Suite 1077 -> 1115.

THE MUTATION ROUND EARNED ITS PLACE. Thirty perturbations; two of them killed
no test, and both were real:

- #15 stripped the backticks from `contract-v1.45` in BOTH canon and the block.
  `test_no_unit_boundary_falls_inside_a_versioned_token` SURVIVED, because it
  only asserted the token was ABSENT from the ledger — and when a boundary moves
  on both sides at once, the two halves still match, nothing is reported, and
  the negative assertion holds. A negative cannot see a symmetric break. The
  test now asserts POSITIVELY on canon's own derivation: each of the three
  tokened sentences is exactly ONE body unit with its whole token inside it.
- #29 dropped the `kinds` filter from `_units`. Every U-class test SURVIVED,
  because each re-filters by kind afterwards. Added
  `test_the_u_class_helper_reads_the_same_set_as_the_ledger_arm`, which parses
  the arm's OWN stated numerator and denominator out of the finding it emits
  ("does not carry N of the M body units") and requires `_units` to agree —
  measured 17 of 28 on #329 where the unfiltered helper gives 24 of 36.

After both fixes: 28 of 30 mutants killed, 0 survivors. The two N/A rows are
pure test-body assertions with no fixture to perturb, and are recorded as N/A
rather than counted as kills.

ROWS CLOSED

- A3 § 3.3, the one TRUE hole — `merge-gut`. A four-bullet scenario merged
  away with two bullets carried: the ledger names exactly the two uncarried,
  the scenario arm is quiet, no marker defect. The companion declares those two
  in a `Removed from canon` marker (one of them cites `openxFactory`, so its
  span needs a longer fence) and goes silent — and the silence is PROVEN caused
  by removing the marker and watching the noise return.
- A5 § 3.4 — prefix and both-ends widening (T033), plus the real #351 instance
  end to end (T014).
- A6 § 3.5 — `tokens`: `.openspec.yaml`, `promotion_fidelity.py` and
  `contract-v1.45` (period between digits, the shape F1 lacked), a three-item
  bullet list, and a FOUR-sentence dated note restated with its THIRD sentence
  amended, reported ONCE.
- A7 § 3.6 — `rewrap`: a complete restatement re-wrapped at varying widths,
  one paragraph mid-sentence and one bullet after its `**THEN**`. Returns [],
  and is shown NOT skipped.
- A10 § 3.7c — the form anchor read off the REAL packet file: its two `- `
  template bullets are not marker-form. This is what the row claimed and
  nothing asserted.
- A11 § 3.7d — `fence`: the same clause named with a double-backtick fence
  (suppresses the whole unit) and with a single backtick (names a fragment,
  suppresses nothing, clause reported). The pair is what makes the rule
  falsifiable.
- A15 § 3.10 — `name-order`: `add-zz-first` DECLARES and is therefore the later
  writer while sorting LAST by name. The finding lands on its path and names
  `add-aa-second`'s DELTA as the basis, so the substitution is visible in the
  finding. Under name-ascending ordering the roles invert and the test fails.
- A18 § 3.13 — determinism over all thirteen trees, non-empty first.

ONE TASK EXPECTATION WAS WRONG AND IS CORRECTED, not worked around: tasks.md
T042 predicted the single-backtick marker would ALSO be reported as a marker
defect. It is not, and should not be — the delta reports a marker only where it
names a unit the block STILL CARRIES; a name matching no canon unit declares
nothing and is silent, per `suppression()`'s three-way resolution. The test
asserts the correct behaviour and the fence README explains why.

NO MODULE CHANGE. `git diff --stat <merge-base> -- scripts/ openspec/ .github/`
is empty. Mutants #26, #27 and #30 edit the module deliberately and are reverted
in the same working step, never committed.

Co-Authored-By: Claude Opus 5 <[email protected]>

* F2 closing: the audit is self-checking, T053 fired nothing, and two verdicts of my own were wrong

All 66 tasks complete. Suite 1077 -> 1115 (+38). `openspec validate --all
--strict` 75/0, unchanged. Scope diff against the merge-base: empty.

THE AUDIT NOW READS ITSELF. Three tests in the new file open
contracts/coverage-audit.md and fail on it: every backticked test name it cites
must be defined (floor of thirty harvested, so a regex matching nothing cannot
pass); all fourteen § 3 items must appear in the `§ 3 item` column with exactly
one bolded verdict per row and the four tallies matching the row bodies; and
every T0NN in the last column must exist in tasks.md. That third test exists
because this audit shipped once citing a whole superseded task numbering.

Appending the closing ledger broke two of those three immediately — the ledger
cites F2's own tests, and its table repeats the row ids with unbolded verdicts in
a different layout, so the harvest and the row count both went wrong. Fixed by
reading both test files and by selecting main-table rows on the presence of a
BOLDED verdict. A self-check that cannot survive its own file being extended is
not a self-check.

T053 — NOTHING FIRED, and the scope of that claim is written down rather than
implied: the scenario and ledger arms on real historical text; marker
suppression in all three branches of its resolution; the `Merged into`
titles-only rule; the fence rule in both directions; basis substitution under a
declaration; the sentence mask on three token shapes; normalization over a fully
re-wrapped block; skip-vs-quiet; determinism and the advisory band over all
thirteen trees. No module defect. What was found is F1 DOCUMENTATION residue,
already appended to F1's tasks.md.

T059's adversarial pass, run rather than described. Its one finding went the
other way: tasks.md T042 predicted a marker defect the module correctly does not
emit. A name matching no canon unit declares nothing and is silent, per
`suppression()`'s three-way resolution. The task was wrong, the module is right,
and the task is corrected in place rather than the fixture bent to match it.

Also corrected in place: T052 compared against `origin/main`, which had moved 18
commits past this branch's base — so the scope check reported that branch's own
progress as 13 files and 2,443 deletions this feature had supposedly made. It
now uses `$(git merge-base HEAD origin/main)`, and against that it is empty.

The count-exception list in data-model.md § 4 is now the real list, grown by
what implementation actually needed: T024's thirty-name floor, T023's eighteen
rows and four tallies, T043c's exactly-two template bullets, and the comparison
that parses the ledger arm's OWN numerator and denominator out of the finding it
emits. 38 count-shaped lines in the test file, every one on that list.

pr-body.md states plainly what this does NOT do: it does not close #330, and it
proposes no severity flip.

STOPPING HERE. No PR opened.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Implementation-review fixes: a mutation row named the wrong killers, and the count-exception list did not cover its own file

Six findings from the implementation review, all documentation. No test, fixture
or module byte changed; suite still 1115.

1. Mutation table row 29 named `T012, T020` as killers of "drop the `kinds`
   filter from `_units`". BOTH SURVIVE that mutation — each re-filters by kind
   after calling the helper, which is exactly why the mutant survived its first
   run. The killer is the test the survival forced into existence,
   `test_the_u_class_helper_reads_the_same_set_as_the_ledger_arm`, and only
   that one. The row now says so, and says why.

2. Four sites still diffed against `origin/main` — quickstart.md's two scope
   commands, plan.md's evidence row, and spec.md's SC-010 — while only
   tasks.md and pr-body.md had been corrected to the merge-base. That branch
   advances independently, so its tip reports its own progress as 13 files and
   2,443 deletions this feature never made. All four now use
   `$(git merge-base HEAD origin/main)`, and SC-010 states the reason so the
   next reader does not "simplify" it back.

3. F1's residue header said "Four findings" over five numbered items.

4. The count-exception list was an ENUMERATION of individual assertions, and it
   did not cover its own file: ~20 of the 38 count-shaped lines mapped to no
   row, including `len(holders) == 1` — the assertion that kills mutant #15.
   A list that does not cover the file makes T059 step 2's claim false, and a
   per-line list goes stale on the next test. Reworded to six declared SHAPES:
   per-arm cardinality (the ledger's promoted at-most-one rule), vacuity floors,
   fixture-premise guards, the count that IS the rule, figures parsed out of the
   arm's own finding, and the audit's structural claims. T059 step 2 now points
   at the shapes.

5. The #329 tree is deliberately STALE `doc-health` text, and nothing said so.
   Its canon says "seventeen check families" and its delta restatement says
   "nineteen" while `families.FAMILIES` registers 22 — so a whole-family sweep
   over that tree draws 3 `family-enumeration` warnings (the enumeration
   omitting `duplicate-packet`, `family-enumeration` and
   `modified-block-currency`, plus both numerals). Measured, not assumed. Inert
   today: nothing sweeps fixture trees and
   `test_the_real_corpus_reads_zero_on_both_halves` reads the repository's canon.
   The README now carries the warning AND the instruction not to refresh the
   text — its staleness is the historical fact the fixture exists to freeze.

6. T009's signature was missing the `repo` parameter the helper actually takes.

pr-body.md refreshed to the final numbers: 1115 tests, 75/75 validate, 7 new
trees, 28/30 mutants with 0 survivors plus the reviewer's 10/10, the audit's
closing table, and the honesty note that the eight remaining `satisfied`
verdicts rest on a human reading of F1's test bodies — if one is wrong, this
change ships a hole it believes it closed.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: brettheap <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
@brettheap
brettheap deleted the change/fix-intake-stale-provider-boundary-delta branch September 2, 2026 18:55
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.

add-doxchat-model-intake: its ideation-dashboard delta restates an older 'model catalog and provider boundary' and would revert canon on archive

2 participants