Skip to content

Speckit F4: the modified-block-currency report section counts its finding classes apart, pins its action line, and pins that no workflow option reaches the family - #433

Merged
brettheap merged 5 commits into
mainfrom
022-modified-block-currency-reporting
Aug 27, 2026
Merged

brettheap merged 5 commits into
mainfrom
022-modified-block-currency-reporting

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

F4 — modified-block currency: reporting and workflow

Speckit feature 022-modified-block-currency-reporting, realizing
openspec/changes/add-modified-block-currency-check § 5 (5.1–5.3). The
last of four: F1 19e3f6b5 (the family), F2 76a2ad27 (fixtures), F3
f728d57f (the self-gate).

This PR does not archive the change. § 8 is a separate later act and F4 is
its precondition; the three numbers § 8.1 gates on are recorded in
specs/022-modified-block-currency-reporting/evidence/f4-gates.md § 7.

What landed

§ 5.1 — the arms are visible without counting. The family's report section
now states its four finding classes with their counts and bands, under its own
heading, before its rows:

### modified-block-currency

Finding classes, counted apart so the gate-bearing arm is never read as one of the editorial rows:
- scenario-title completeness: 1 (`warning` — the arm carrying this family's gate)
- carriage ledger: 8 (`info` — editorial, and the arm says so in every finding)
- title resolution and ordering: 0 (`warning`)
- marker defects: 0 (`info`)

- [warning] …add-composed-view-authoring… omits 1 of the 2 scenarios …
- [info] …

§ 5.2 — the action line is pinned. Every finding of the three comparison
arms carries, verbatim, "restate the requirement as canon currently states it, or
declare the deletion with a Removed from canon by marker", on the finding and
in the rendered ranked plan.

§ 5.3 — the workflow boundary is pinned, with no workflow change. No step's
run, env or with names this family in either spelling; the CLI exposes no
option named after it; the generic --family / --skip-family still accept its
id. .github/ and openspec/ have an EMPTY diff.

Decision R1 — FLAGGED FOR VETO

The subtotal reaches the report through a new registry
families.FAMILY_SUMMARIES
, keyed by family id exactly like the existing
FAMILY_NOTES, whose value takes THAT family's findings and returns note lines;
report.render renders them in the position FAMILY_NOTES already renders in.

  • Why a sibling registry, not a widening of FAMILY_NOTES: that one is
    (ctx) -> lines and answers a question about the RUN (which tree promotion
    fidelity measured). This is (findings) -> lines and answers a question about
    the FINDINGS. Widening the first would have changed basis_notes' contract
    for no gain.
  • Why in report.render and not the runner: the tally is a function of the
    findings the renderer is about to print, it becomes testable in-process
    without a subprocess, and report.py is in the feature's stated scope.
  • Why not arm-prefixed rule text (the alternative the brief listed second):
    it changes rule text, which F3's self-gate pins by subject; it moves every
    ranked-plan row, so the report diff would leave the family's own lines; and it
    does not satisfy § 5.1 — a reader would still tally nine long rows.
  • Reverting is a clean deletion: four lines in families.py, a five-line
    branch in report.render, one class and three functions in
    modified_block_currency.py. No finding, no severity, no other family.

Full argument and ten more decisions: specs/022-…/research.md.

Two imprecisions in § 5, recorded rather than worked around

  1. § 5.2 reads as if the action line were F4's to add. It is not — F1 landed
    it as _ACTION, verbatim § 5.2's wording. Read as "add", § 5.2 is a no-op;
    read as "pin", it is a real deliverable, and F4 implements the pin.
  2. § 5.2 says "the action line"; the family has two. The marker-defect class
    carries _MARKER_ACTION, because the remedy for a defective declaration is
    not the remedy for an uncarried unit. The split is F1's and is correct; the
    singular is the imprecision.

The mutation round found three survivals; the combined review found two of them

evidence/f4-gates.md § 3. Ten mutants, seven killed on the first run.

  • M4 (leak one blank line into every family's section) SURVIVED 26 green
    tests.
    The byte-identity test was purely differential — registry-on vs
    registry-off over one finding set — and a mutant that moves both sides equally
    is invisible to it. Fixed by stating the before-state absolutely: another
    family's whole section, and its whole ranked-plan rows with action="…",
    asserted byte-for-byte. M4 re-run: killed.
  • M2 (change another family's action line) SURVIVED, and cannot be killed from
    here.
    The brief predicted it would red the byte-identity test; by
    construction it cannot, for M4's reason. And no test in this repository pins
    any other family's action text at all
    — promotion_fidelity._ACTION was
    mutated and 85 tests stayed green. That is a gap in that family's suite;
    closing it from F4 would mean snapshotting twenty-one families' action strings
    in this test file, which would red on their authors' PRs for their own
    legitimate edits. Recorded as a follow-up for the doc-health steward, whose
    correct home is one pin per family in that family's own suite.
  • M5b (a JOB-level env carrying the flag) SURVIVED — found by the combined
    review.
    The § 5.3 probe walked jobs.*.steps.* only, and Actions resolves
    env at three levels; both jobs here already carry a job-level env block, so
    the missed shape was one line from an existing one. Fixed by walking
    workflow-level env, jobs.<id>.env/.with, and every step's env/with
    beside run. M5b re-run: killed, tracked file byte-identical afterwards.

Two review findings in the tests themselves

  • The partition assertion was tautological. It read
    [c.id for c in mbc.CLASSES if mbc.classify(f) == c.id], which can never
    exceed one hit however many patterns match — so it asserted "classify returns
    something in CLASSES", not "exactly one pattern matches". Rewritten to iterate
    _CLASS_PATTERNS. Measured on the corrected assertion: 37 findings across
    thirteen fixture trees and the real corpus, 0 multi-matches.
  • A docstring overclaimed. FindingClass said band and action are read
    from the module constants "so the flip moves the rendered label"; action is
    not rendered by class_summary at all. Corrected to say what each is for —
    band rendered, action carried so the per-class pin has one source.

One test outside this feature changed, deliberately and visibly

test_modified_block_currency_fixtures.py::test_this_feature_touches_no_production_module
snapshots the family module's public callable surface, and F4 adds four names
(FindingClass, classify, class_counts, class_summary). It reddened on the
first full run. The guard worked, and its own docstring is the instruction that
was followed
: the snapshot was extended as its own task (T040) with a dated
paragraph naming who added the names and why, and it is named here. F2's claim
that F2 adds no behaviour is untouched; no severity, rule text or fixture
assertion moved.

Gates

gate result
pytest tests/doc-health -q 1204 passed (+26 vs 1178 at the branch point)
OPENSPEC_TELEMETRY=0 openspec validate --all --strict 76 passed, 0 failed
F1 + F2 + F3 + promotion-fidelity + F4 235 passed
git diff --stat <merge-base> -- .github/ openspec/ empty
report movement 0 critical, 0 error, +1 warning, +8 info — equal to the family's own counts
movement confinement 3 of the report's 30 headings differ: ## Headline, ### modified-block-currency, ## Ranked Plan (9 rows, all this family's)
repo-local validators none affected — every scripts/validate-*.py validates contract YAML, and this feature adds none
CI shape 26 passed in a git archive HEAD extraction with a fresh git init — no worktree, no remote

Independently reproduced by the combined review, which additionally checked:
byte-identity against origin/main's own report.py; a --previous-report
round-trip (0 regressions, 0 uncited resolutions — the subtotal cannot re-enter
as a finding); canon's "Health report contract" and "Finding severity and
regression handling" unviolated; and an archive dry-check reading 8 → 8 with
exactly the six predicted differences.

Scope

Changed, by git diff --numstat against the merge base: modified_block_currency.py
+189/−0 (additive: the class map and the summary), families.py +30/−0
(the registry), report.py +19/−2 (an additive render branch),
__init__.py +9/−0 (a docstring), test_modified_block_currency_fixtures.py
+14/−2 (the snapshot amendment above), plus one new test file. No rule text, severity, resolution class, finding
grammar or ranked-plan grammar changed. .github/ and openspec/ untouched.

#330 IS NOT CLOSED BY THIS

Per the packet's § 7.1, and stated here because § 7.1 asks every PR in this
change to state it: the post-archive safety net — diffing a promoted spec against
its own prior state across the archive commit — is not built by this change
and #330 stays open. Its owner is the doc-health steward at the next family
change touching promotion_fidelity.py.

OPEN QUESTION FOR BRETT — carried forward from F3, undecided

_LEDGER_SUBJECTS in F3's self-gate is an exact set of live corpus triples, and
pytest-suite is a REQUIRED check on main (org ruleset 21538893). Any PR that
adds a lossy MODIFIED block, archives one of the changes in that table, or edits
canon in a way an active block quotes will red that gate — on a branch whose
author may have nothing to do with doc-health. That is § 4's intent working as
written, and a cost nobody has priced.
The option, if the cost is too high: a
pytest marker routing the six corpus-facing tests to the nightly lane, keeping
the structural pins in pytest-suite. It already fell due once, on F3's own PR
#427, and that event is evidence for both sides.

F4 does not decide it and changes nothing about it.

A SECOND QUESTION, also for Brett, also undecided (specs/022-…/tasks.md
§ SECOND OPEN QUESTION): the unclassified residual row is TEXT — no severity,
no ranked-plan item, no --fail-on reach — and the only real-corpus
classification test reads openxFactory alone while the nightly runs eighteen
repositories. The cheapest close is to have a nonzero count emit one warning
finding, which makes the residual a FIFTH finding class of a family whose
promoted requirement enumerates three arms and four classes. That is a delta
change and needs a ruling
, so F4 leaves it as text and says so in the contract,
the research record and the hand-off. One datum F4 adds: every
corpus-facing assertion in F4's own test file is a floor or an invariant, never a
named set or an absolute count — a choice available to F4 because it asserts a
RENDERING rather than a verdict, and not an argument that F3 could have made the
same one. The full text is in specs/022-…/tasks.md § OPEN QUESTION FOR BRETT.


Refs #357 #329 #330

🤖 Generated with Claude Code

brettheap and others added 4 commits August 27, 2026 15:32
… carries its action line, and passes no per-family option

Realizes `add-modified-block-currency-check` § 5 (5.1-5.3), the last of four
features. F1 built the family, F2 the fixtures, F3 the self-gate; this is where
the split the delta drew reaches the reader.

§ 5.1. The section states each of the four finding classes with its count and
its severity band, under the family's own heading, before its rows — so the one
gate-bearing `warning` is seen beside the editorial `info` rows without anyone
tallying nine long lines. It arrives through a new registry
`families.FAMILY_SUMMARIES`, keyed like `FAMILY_NOTES` and rendered in the same
position, consulted by an additive branch in `report.render` that emits nothing
at all for a family with no entry. Decision R1, flagged for veto: a sibling
registry rather than a widening of `FAMILY_NOTES`, because that one answers a
question about the RUN and this answers one about the FINDINGS.

§ 5.2 is a PIN, not an addition: F1 already landed the action verbatim, and § 5.2
says "the action line" where the family has two — the marker class keeps its own,
a defective declaration not being an uncarried unit. Both recorded.

§ 5.3 adds no workflow change and pins that none is needed: no step's `run`,
`env` or `with` names this family in either spelling, the CLI exposes no option
named after it, and the generic --family/--skip-family still accept its id. The
probe carries its own positive control against a SCRATCH copy — its first cut
read env values only and missed an UPPER_SNAKE env key, which the control caught.

The class map reads rule text anchored past the title's `repr`, because titles
come from the corpus: a ledger finding for a requirement titled 'X omits 1 of
the 2 scenarios Y' misfiles under the gate-bearing arm without it. An
unrecognized finding is counted in a named residual row, never absorbed.

Two mutants survived first and both survivals were structural: a registry-on/off
comparison is blind to anything that moves every family equally, so the
byte-identity test now states another family's whole section and whole
ranked-plan rows absolutely. And no test in this repository pins any other
family's action text at all — recorded as a gap this feature cannot close from
here.

F2's production-surface guard reddened, correctly, and was extended as its own
task with a dated paragraph rather than loosened.

Gates: pytest tests/doc-health 1204 passed (+26); openspec validate --all
--strict 76 passed / 0 failed; report movement +1 warning +8 info with the error
and critical bands unmoved, confined to 3 of 31 sections; .github/ and openspec/
diff empty. § 8 is NOT ticked and the change is NOT archived. F3's open question
on the blast radius of an exact-set corpus gate in a required check is carried
forward undecided.

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

`origin/main` advanced five commits mid-flight and two of them touch the corpus
this family reads: one change archived and one arrived carrying a `doc-health`
delta. Merged (never rebased) and re-measured rather than assumed: 22 blocks, 1
warning, 8 info, movement +1/+8, both gated bands still at 0, and F3's exact-set
gate needed no row — recorded because that gate is the subject of the open
question this feature carries forward.

The § 5.3 test also runs in CI shape: `git archive HEAD | tar -x` into a bare
directory with a fresh `git init`, 26 passed, no worktree and no remote.

Co-Authored-By: Claude Opus 5 <[email protected]>
…three scopes and the partition reads patterns

Combined review of 2026-08-27. Three fixes, no behaviour change to the report.

The § 5.3 probe walked `jobs.*.steps.*` only, and GitHub Actions resolves `env`
at three levels — so a JOB-level `MODIFIED_BLOCK_CURRENCY_BASIS: live-main`
passed the pin green (mutant M5b). Both jobs here already carry a job-level `env`
block, so the missed shape was one line from an existing one. `_scopes` now walks
workflow-level `env`, each `jobs.<id>.env` and `.with`, and every step's
`env`/`with`, beside the step `run` sweep; the positive control exercises four
shapes at three scopes. M5b re-run against a SCRATCH copy: killed, tracked file
byte-identical afterwards. One follow-on defect the mutant exposed in the control
itself — an `all("run" in f)` that fails for the wrong reason once the base
carries another shape — relaxed to `any`.

The partition assertion was tautological: `[c.id for c in CLASSES if
classify(f) == c.id]` can never exceed one hit however many patterns match, so it
proved "classify returns something in CLASSES" and was blind to the property it
was named for. It now iterates `_CLASS_PATTERNS` and checks `classify`'s answer
against the one match. Measured on the corrected assertion: 37 findings across
thirteen fixture trees and the real corpus, 0 multi-matches.

`FindingClass`'s docstring claimed `band` AND `action` are read from the module
constants so the flip moves the rendered label; `class_summary` never renders
`action`. Corrected to say what each is for rather than to render it.

Cosmetic corrections to the record: the report carries 30 headings plus a dated
H1, not 31 sections; `report.py` is +19/−2 by `git diff --numstat`.

Carried into the hand-off, NOT implemented: the residual `unclassified` row is
text — no severity, no ranked-plan item, no --fail-on reach — and the only
real-corpus classification test reads openxFactory alone while the nightly runs
eighteen repositories; the cheapest close makes it a fifth finding class, which
is a delta change and needs a ruling. And recorded as a follow-up for the
doc-health steward: no test here pins any OTHER family's action text, whose
correct home is one pin per family in its own suite.

Gates: pytest tests/doc-health 1209 passed; openspec validate --all --strict 76
passed / 0 failed; .github/ and openspec/ diff empty; CI shape 26 passed.

Co-Authored-By: Claude Opus 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 27, 2026 20:01

@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 ✨

Refs #357 (the gap this family retires), #329 and #330 (the defect class), and
#330 stays OPEN — the packet's § 7.1 requires every PR in this change to say so.

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

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 completes Speckit F4 for 022-modified-block-currency-reporting, extending doc-health report rendering so the modified-block-currency family’s four finding classes are summarized with per-class counts under its report heading, and adding tests that pin action-line rendering and the “no workflow/CLI option reaches this family” boundary.

Changes:

  • Add a FAMILY_SUMMARIES registry and render hook so a family can emit findings-derived summary lines (without affecting other families’ output).
  • Add modified_block_currency classification + summary helpers (CLASSES, classify, class_counts, class_summary) to compute the per-class subtotal block.
  • Add a comprehensive new test suite that pins rendering behavior, action-line presence in the ranked plan, and workflow/CLI boundary non-vacuously.

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/doc-health/test_modified_block_currency_reporting.py New end-to-end + in-process tests for subtotal rendering, action pinning, and workflow/CLI boundary.
tests/doc-health/test_modified_block_currency_fixtures.py Updates the “no production surface change” snapshot to include newly added public helpers.
scripts/doc_health/report.py Renders per-family summaries (from FAMILY_SUMMARIES) in the existing notes position, guarded by skip state.
scripts/doc_health/modified_block_currency.py Adds finding-class registry + regex-based classifier and summary line generator for the report subtotal.
scripts/doc_health/families.py Introduces FAMILY_SUMMARIES registry (sibling to FAMILY_NOTES) keyed by family id.
scripts/doc_health/init.py Documents the distinction between ctx-derived notes vs findings-derived summaries.
specs/022-modified-block-currency-reporting/spec.md Feature spec describing requirements and acceptance scenarios for §5.1–§5.3.
specs/022-modified-block-currency-reporting/plan.md Implementation plan and constraints (additive-only report changes, byte identity outside the family section).
specs/022-modified-block-currency-reporting/tasks.md Task breakdown with RED-first evidence expectations and mutation round checklist.
specs/022-modified-block-currency-reporting/research.md Recorded measurements and design decisions (notably the sibling registry decision).
specs/022-modified-block-currency-reporting/data-model.md Documents the class taxonomy, invariants, and subtotal rendering rules.
specs/022-modified-block-currency-reporting/quickstart.md Local validation instructions for running the feature and its tests.
specs/022-modified-block-currency-reporting/pr-body.md PR narrative and gate evidence summary for the feature.
specs/022-modified-block-currency-reporting/evidence/f4-gates.md Gate outputs, RED-first evidence, mutation round results, and archive-readiness numbers.
specs/022-modified-block-currency-reporting/contracts/report-section.md Byte-level contract for subtotal block and registry integration.
specs/022-modified-block-currency-reporting/contracts/workflow-boundary.md Contract for workflow/CLI boundary pins and required non-vacuity checks.
specs/022-modified-block-currency-reporting/checklists/requirements.md Spec-quality checklist for this feature’s artifacts.
Suppressed comments (2)

scripts/doc_health/modified_block_currency.py:1421

  • New public helper class_counts returns a mapping but is annotated as bare dict. The surrounding module uses precise typing; please annotate this as dict[str, int] (and type the findings parameter) so the public surface is consistent and self-documenting.
def class_counts(findings) -> dict:

scripts/doc_health/modified_block_currency.py:1444

  • New public helper class_summary takes an untyped findings parameter even though the rest of the module uses typed signatures. Please annotate this as list[Finding] to keep the public API consistent.
def class_summary(findings) -> list[str]:

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

Comment on lines +3 to +5
Run from the feature worktree root
(`/home/brett/projects/xFactory/openxFactory-worktrees/022-modified-block-currency-reporting`).
Nothing here needs a network, a token, or the aggregation checkout.
)


def classify(finding) -> str:
@brettheap
brettheap merged commit 4def227 into main Aug 27, 2026
3 checks passed
brettheap pushed a commit that referenced this pull request Aug 27, 2026
…realized

Ruled at the archive gate, against this session's first instinct to leave the
thirty-two build boxes open with a record of why. A cold reader meeting an
archived change that carries open build boxes reads it as
archived-UNREALIZED, which is a worse record than a tick that names its
evidence.

So every box in groups 2, 3, 4 and 5 is ticked and each group header carries ONE
dated discharge line naming its Spec Kit feature, its pull request and its squash
commit — F1 specs/019-modified-block-currency-family (#420, `19e3f6b5`), F2
specs/020-modified-block-currency-fixtures (#426, `76a2ad27`), F3
specs/021-modified-block-currency-self-gate (#427, `f728d57f`), F4
specs/022-modified-block-currency-reporting (#433, `4def2274`). The per-task
evidence, the RED-first records and the mutation rounds stay where they were
written rather than being copied into the packet.

Six boxes were NOT discharged as written and say so where they stand, ticked
with a `RECONCILED` clause naming the feature decision that disposed each rather
than ticked silently: § 2.1's sibling-outcome basis (F1 plan O10, F3 plan D2 —
the sibling had archived at `f027d3b3`, so the block was written relative to
canon); § 3.2's revert (F2 review finding B4 and plan D2 — no revert exists and
no ratified document claimed one; the truncation was caught pre-commit and
rewritten inside archive commit `38b548d4` itself, so the fixture is
byte-faithful from that commit's parent `d5f447e8`); § 4.1 and § 4.5's `+11 info`
(F3 plan D1 — a figure taken over 23 blocks against a tree carrying 22,
re-measured rather than asserted); § 4.2's sibling basis (F3 plan D2, disposed a
second time by this act); and § 5.2's action line (F4 Phase 0 — already landed
by F1, so realized as a pin, with the singular's imprecision recorded beside
it).

The § 8.1 record's sentence about the unticked groups is replaced by the ruling
and its six exceptions, and the file's authoring preamble is left as written with
a dated archive-state paragraph beside it. § 7 and § 1.2/§ 1.3 are untouched and
stay open with their text.

Gates: `pytest tests/doc-health -q -k "proposal_origin or lifecycle or corpus"`
67 passed, 1142 deselected (the archived tasks.md is corpus);
`openspec validate --all --strict` 75 passed, 0 failed.

Co-Authored-By: Claude Opus 5 <[email protected]>
brettheap added a commit that referenced this pull request Aug 27, 2026
… promoted byte-for-byte (8 → 8 + two ADDED), the check verified its own block

The archive act for `add-modified-block-currency-check`, ratified 2026-08-27 and
realized on `main` by four Speckit features. No behaviour changes: this promotes
two deltas into canon, moves the packet into `openspec/changes/archive/`, and
disposes the five tests the act made fall due.

## Gate (§ 8.1) — merged-plus-green, re-verified from `main`

All four merges re-confirmed ancestors of `origin/main` with
`git merge-base --is-ancestor` (exit 0 on each) rather than read off a PR page:

| feature | merge | what landed |
| --- | --- | --- |
| F1 `019-…-family` | **`19e3f6b5`** (#420) | the family module, three registrations, and § 2.1's own MODIFIED block in the same commit |
| F2 `020-…-fixtures` | **`76a2ad27`** (#426) | the regression catalogue, #351 and #329 reconstructed from history |
| F3 `021-…-self-gate` | **`f728d57f`** (#427) | the self-gate against this repository, by named subject |
| F4 `022-…-reporting` | **`4def2274`** (#433) | the report section, the action-line pin, the workflow-boundary pin |

| gate | before the act | after the act |
| --- | --- | --- |
| `python3 -m pytest tests/doc-health -q` | **1209 passed, 0 failed** | **1209 passed, 0 failed** |
| `OPENSPEC_TELEMETRY=0 openspec validate --all --strict` | **76 passed, 0 failed** (24 active + 52 specs) | **75 passed, 0 failed** (23 active + 52 specs) |
| doc-health single-repo | 5 critical, 7 error, 41 warning, 12 info, 0 new regressions | 5 critical, 7 error, 41 warning, **11** info, 0 new regressions |
| the same run `--skip-family modified-block-currency` | 5 critical, 7 error, 40 warning, 4 info | 5 critical, 7 error, 40 warning, 4 info |
| **movement** | **+1 `warning`, +8 `info`, 0 `error`, 0 `critical`** | **+1 `warning`, +7 `info`, 0 `error`, 0 `critical`** |

The gated bands do not move in either measurement, so a `--fail-on error` run is
unaffected by construction — which is what D3's advisory launch claimed. The
advisory launch is intact in both halves, re-read rather than assumed:
`modified-block-currency` is in `FAMILIES` (22) and `FAMILY_IDS`, and ABSENT
from `FAMILY_RESOLUTION`.

§ 4.5's authored prediction of `+11 info` is **history** — measured at
`9be81a40` over 23 blocks, re-measured 9 then 8 as the corpus moved under it.
The invariant that holds at every figure is that the movement EQUALS the
family's own per-severity counts and that `error`/`critical` do not move.

**The one `info` the act removed is the family's own self-finding**, and its
departure is the promotion working: active MODIFIED blocks examined 22 → 21.

**The whole report diff is seven lines and only two of them are a finding**:
canon words 208551 → 213280 (+4729), governance words 664611 → 669340 (the same
+4729, moving from active-change prose into promoted prose), canon share 31.4% →
31.9%, the promoted-specs row of the per-source table, the headline `info`
12 → 11, the family's class subtotal `carriage ledger: 8` → `7`, and the finding
row plus its ranked-plan row. Nothing new is reported anywhere, by any family.

## § 8.2 — the promotion verified byte-for-byte, per requirement, in both capabilities

A change whose subject is lossy promotion had to prove it did not promote
lossily. Both tables were derived independently of the family and then checked
against what the family itself said.

### `doc-health`

| requirement | canon before | delta | canon after | verdict |
| --- | --- | --- | --- | --- |
| `Deterministic check families` (MODIFIED) | 8 scenarios; 12 body units + 27 scenario bullets = 39 units | 8 scenarios restated; 13 body units + 28 bullets | 8 scenarios | **8 → 8**; titles an identical SET in identical ORDER; 7 of 8 byte-identical bullet for bullet; all 3 dated bold notes byte-identical; exactly SIX differences |
| `Currency of an active change's MODIFIED requirement blocks` (ADDED) | absent | 14 scenarios | 14 scenarios | pure append; the title collides with NONE of canon's 34 |
| the other 33 requirements | — | untouched | unchanged | bytes identical per requirement, and the file order of all 34 pre-existing titles preserved |
| FILE | 34 requirements, 145 scenarios | — | 35 requirements, 159 scenarios | +1 requirement, +14 scenarios |

**The six differences, verbatim.**

1. the total numeral — canon `SHALL implement twenty-one check families` → block `SHALL implement twenty-two check families`
2. the enumeration gains one name — canon `… duplicate packet, and family enumeration.` → block `… duplicate packet, family enumeration, and modified-block currency.`
3. `Four of the twenty-one` → `Four of the twenty-two`
4. `the other seventeen families` → `the other eighteen families`
5. ONE new body sentence: `The modified-block currency family reads ACTIVE CHANGE DELTAS, the promoted SPECS they have not yet replaced, and each active change's own `proposal.md` — the last read only to resolve whether one active writer declares its deltas relative to another, which `release-realization` governs — so it likewise takes neither the governed corpus nor the lifecycle scan set as its document list, and it moves no census, word count, canon-share figure, inventory entry, or catalog record either.`
6. ONE new `AND` bullet in `A run executes the check families` (12 → 13 bullets): `- **AND** modified-block currency MUST compare each active change's `## MODIFIED Requirements` blocks against the promoted requirements they replace as its owning requirement below defines`

Differences 1–2 are ONE canon sentence and 3–4 are ANOTHER, so exactly TWO canon
body units are not carried.

**And that is exactly what the family itself reported against this block — the
check verified its own block.** Before the act it drew ONE `info` against
`openspec/changes/add-modified-block-currency-check/specs/doc-health/spec.md`
reading "does not carry **2 of the 39** body units and scenario bullets", quoting
canon's `twenty-one check families` sentence and canon's `Four of the twenty-one`
sentence — canon's wording, not the block's, which is the correct direction. This
gate's independent derivation agreed unit for unit, 39 for 39.

Scenario-by-scenario, 8 → 8: `A run executes the check families` 12 → 13 bullets
(difference 6; the other twelve byte-identical), and `Lifecycle conformance
checks fire` 2/2, `A register carries staged status` 2/2, `Drift checks fire`
2/2, `Catalog conformance checks fire` 2/2, `Routing conformance checks fire`
2/2, `Origin conformance checks fire` 2/2, `Roster composition is checked across
domains` 3/3 — all seven IDENTICAL.

### `document-lifecycle`

| requirement | canon before | delta | canon after | verdict |
| --- | --- | --- | --- | --- |
| `A MODIFIED requirement block restates the requirement as canon currently states it` (ADDED) | absent | 5 scenarios | 5 scenarios | pure append; the title collides with NONE of canon's 16 |
| the 16 pre-existing requirements | — | untouched | unchanged | bytes identical per requirement, order preserved |
| FILE | 16 requirements, 72 scenarios | — | 17 requirements, 77 scenarios | +1 requirement, +5 scenarios |

The delta carries ONLY an `## ADDED Requirements` section — no MODIFIED, no
REMOVED, no RENAMED — so there is no direction in which it could delete
anything.

### The § 2.1 ordering, resolved by the recorded D5 sequencing

Not "whichever archives first". `add-family-enumeration-check` archived **FIRST**,
at `f027d3b3` (#419) — the precondition D5 priced and that packet's own § 2.5
records paying, because a proposal registering no family cannot lawfully restate
the requirement at twenty-two. Its enumeration was therefore already CANON when
F1 wrote § 2.1's block, so the block was written relative to canon:
`release-realization`'s "declare relative to that change's outcome" discharged by
the outcome having BECOME canon, not by a two-writers basis substitution. Proven,
not reasoned — canon's requirement is byte-IDENTICAL between `f027d3b3` and base
`4def2274` (extracted from both trees and diffed, **0 hunks**), and the only
commit touching the spec since (`49f0c18c`) appended a requirement at the end.
Measured through the ordering arm too: **0** two-MODIFIED pairs, no basis
override, no finding.

### Canon after the act is what the deltas imply and nothing else

`git diff openspec/specs/` → **2 files changed, 404 insertions(+), 5
deletions(-)**. All five deletions are in `doc-health` and all five are
re-wrapped lines of the two numeral sentences plus the one continuation line the
new basis sentence extends; `document-lifecycle` has **zero** deletions. Proven
per requirement and then as a **byte diff of the remainder** — the remainder
being the whole document minus the one MODIFIED requirement and the one appended
requirement, each requirement running from its `### Requirement:` line to the next
one or to EOF. Byte-identical before and after, **raw and again after
trailing-newline normalization**: `doc-health` 88197 vs 88197 raw and 88196 vs
88196 normalized; `document-lifecycle` 48653 vs 48653 raw and 48652 vs 48652.
Preambles identical, no title removed, every pre-existing title still in position,
and both files still ending in a blank line before and after — so no appended
requirement consumed an EOF newline.

> **Review finding N2 is recorded as CONTESTED rather than applied**, per
> `document-lifecycle`'s contested-finding rule. N2 read this equality as holding
> only after trailing-newline normalization, at raw 88343 vs 88342 and 48731 vs
> 48730, the appended requirement having consumed each file's EOF blank line.
> Re-derived at the review: the raw remainders ARE equal, both documents still end
> in a blank line before and after the act, and no remainder definition this gate
> could construct yields 88343 or 48731. Writing a figure this gate cannot
> reproduce into the record of a change whose subject is unverified restatement is
> the one thing this packet exists to prevent, so the definition is made explicit
> and both figures are recorded instead. **N2 is owed a re-derivation or a
> withdrawal.**

## The five tests the act made fall due — four predicted, one not, none deleted

F3's `quickstart.md` § WHEN THE GATE FAILS named this exact day FIRST among the
movements it expected and recorded the disposition: re-aim to the ARCHIVED path
where the family's reader can be pointed there without a module change (a change
of SUBJECT, the family excluding `archive/`), else retire with a dated record —
never delete silently. **No module changed.**

| test | disposition | why |
| --- | --- | --- |
| `_LEDGER_SUBJECTS`' self-finding triple | dropped, **8 → 7**, dated comment | the block promoted, so the family reports nothing against it; verified before deleting the row |
| `_own_block()` → `_archived_block()` | **RE-AIMED** | read at the archived path through `mbc.parse_delta` + `mbc.derive_units`, the two calls `active_blocks` itself makes — the gate still owns no second parser |
| `…own_delta_is_among_the_blocks_the_family_examined` → `…own_block_sits_at_its_archived_path_and_out_of_reach` | **RE-AIMED** | the discovery claim one document over, both directions: readable at the archived path, and no active block from this change or any archived path — pinning the reader's exclusion against the REAL tree for the first time |
| `…own_delta_is_measured_against_canon_and_no_sibling_basis_exists` → `test_the_archived_block_still_resolves_to_canon_and_no_active_writer_holds_it` | **RE-AIMED** | all three claims about the tree as it now stands: basis `openspec/specs/doc-health/spec.md` status `canon`; both packets archived exactly once; no basis override, active writers on the requirement 1 → **0**. Deliberately NOT coupled to canon's TEXT, which moves with every new family |
| `…self_finding_quotes_this_change_s_two_stale_numeral_sentences` → `test_the_self_finding_is_retired_by_the_archive_act` | **RETIRED with a dated record** | the only one that cannot be re-aimed: the others are about DOCUMENTS, this one is about a FINDING, and the family draws findings against ACTIVE deltas only. Manufacturing an archived counterpart would widen the family inside a test instead of inside its module. Two residual assertions replace it — no finding names either path this packet ever had, and the frozen archived block carries the `twenty-two` forms and not the `twenty-one` ones, preserving the DIRECTION claim |
| **the fifth, in F2's file** — `test_the_packets_own_marker_templates_are_not_marker_form` | **RE-AIMED** to `openspec/specs/doc-health/spec.md` | not on F3's list. It read the packet's own ACTIVE delta to prove the two marker TEMPLATE bullets are ordinary carriage units; its docstring argued the strict anchor matters "precisely because these paragraphs promote into canon" — and now they have, so the re-aim is that claim arriving, and what the test reads is the promoted text rather than a prediction about it |

Untouched, and it matters which: the resolver guard, the discovery floor, the
scenario-arm subject, the three zero-read classes, the structural pins on the
advisory launch, the movement pin (stated as a DIFFERENCE against the family's
own counts, so `+1 / +7` needed no edit), and the two-attribute context pin. The
gate's regex set is unchanged — three names joined the `mbc.*` allowlist
(`ActiveBlock`, `derive_units`, `parse_delta`) and not one pattern.

`fam_family_enumeration` now reads canon alone and reads **zero**: no active
change restates the requirement, so `_delta_statements` is empty and its own
re-aimed `test_canon_is_the_statement_under_test` measures canon — `twenty-two`,
22 names, 22 registered, 0 unresolved.

CI-shape run of the self-gate file, outside a worktree (`git archive HEAD | tar
-x` into a bare dir + `git init -q .`), per F3's own lesson: **15 passed**.

## What stays open

- **#330 was closed by hand on 2026-08-27 (16:43Z)** — by `brettheap`, with no
  PR keyword involved. Not reopened. **§ 7.1 stands as the record of what this
  change did NOT build**: shape 1, the post-hoc lost-scenario check, which needs a
  third measurement basis inside a family whose promoted requirement obliges it to
  declare which of TWO it measured. The archived `tasks.md` § 7.1 text is left
  frozen as authored.
- **§ 7.2 — the flip is owed.** Raising the scenario-title arm to `error` plus
  the `contested` classification, moved together in one commit, on a standing
  population of one finding (`add-composed-view-authoring`'s deliberate rename,
  named and never claimed a defect). No flip is proposed for the carriage ledger.
- **§ 7.4 — the domain factories are UNMEASURED.** This change's evidence is
  openxFactory's active changes and a fixture corpus, which is why the launch is
  advisory.
- **§ 1.2 — the five orchestrator decisions were NOT VETOED, which is not the
  same as affirmatively ruled.** The flags stay where they were.
- **Groups 2–5 are TICKED, each group header naming its evidence** — ruled at
  this gate, against this session's first instinct to leave them open with a
  record: an archived change carrying thirty-two open build boxes reads as
  archived-UNREALIZED to a cold reader, which is a worse record than a tick that
  names its evidence. Every box in groups 2, 3, 4 and 5 is ticked, and each group
  header carries ONE dated discharge line:

  > Discharged 2026-08-27 by Speckit F1 = specs/019-modified-block-currency-family (PR #420, squash `19e3f6b5`); per-task evidence, RED-first records and the mutation round live in that feature's tasks.md and evidence.
  > Discharged 2026-08-27 by Speckit F2 = specs/020-modified-block-currency-fixtures (PR #426, squash `76a2ad27`); per-task evidence, RED-first records and the mutation round live in that feature's tasks.md and evidence.
  > Discharged 2026-08-27 by Speckit F3 = specs/021-modified-block-currency-self-gate (PR #427, squash `f728d57f`); per-task evidence, RED-first records and the mutation round live in that feature's tasks.md and evidence.
  > Discharged 2026-08-27 by Speckit F4 = specs/022-modified-block-currency-reporting (PR #433, squash `4def2274`); per-task evidence, RED-first records and the mutation round live in that feature's tasks.md and evidence.

  **Six boxes were not discharged as written and say so where they stand**, each
  ticked with a `RECONCILED` clause naming the feature decision that disposed it
  rather than ticked silently: § 2.1's sibling-outcome basis (F1 plan O10, F3
  plan D2 — the sibling had archived at `f027d3b3`, so the block was written
  relative to canon); § 3.2's revert (F2 review finding B4 + plan D2 — no revert
  exists and no ratified document claimed one; the truncation was caught
  pre-commit and rewritten inside archive commit `38b548d4` itself, so the
  fixture is byte-faithful from that commit's parent `d5f447e8`); § 4.1 and
  § 4.5's `+11 info` (F3 plan D1 — a figure taken over 23 blocks against a tree
  carrying 22, re-measured rather than asserted); § 4.2's sibling basis (F3 plan
  D2, and disposed a second time by this act); and § 5.2's action line (F4 Phase
  0 — already landed by F1, so realized as a PIN, with the singular's
  imprecision recorded beside it). The per-task evidence, RED-first records and
  mutation rounds stay where they were written rather than being copied into the
  packet. **§ 7 and § 1.2/§ 1.3 are untouched.**
- `Status: ratified` is left as it stands in the archived proposal, per
  precedent.

## Scope

`openspec/` (the archive move plus the two promoted specs), `README.md`, and two
test files. **Nothing under `scripts/` or `.github/`** — the module is unchanged,
and F4's pin that no workflow option reaches this family still holds.

Closes #329 — its ask was detection; both instances are disposed and the class is
now detected before an archive rather than at one.

Refs #357 — **`Refs`, not `Closes`, by ruling.** That issue's own remedy asked for
a CONTESTED-class finding. This family launched ADVISORY and absent from
`FAMILY_RESOLUTION`, with § 7.2 owing exactly that flip, so closing #357 now would
mark done a remedy whose stated form is unbuilt.

Refs #330 — closed by hand on 2026-08-27 (16:43Z), not by this change.

**Note on the first commit's message.** `7b36604e` was written before this ruling
and its body still reads the `Closes` keyword for #357. It is already pushed and is not being
rewritten; this body is the authority, and #357 is to stay open. If this PR is
merged by commit messages rather than by this body, #357 must be reopened.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
@brettheap
brettheap deleted the 022-modified-block-currency-reporting branch August 28, 2026 09:10
brettheap added a commit that referenced this pull request Sep 12, 2026
… "ratify the openxFactory disposition change when it's up", Brett Heap, 2026-09-12T03:26:21.850Z, bare and conditional over a77b571 — header, record and origin approval pair

Brett Heap, first-hand, in session to lane `provenance-autonomous-merge`,
2026-09-12T03:26:21.850Z, verbatim:

    "ratify the openxFactory disposition change when it's up"

BARE — it answers no question stated in its own text: no option label, no fork,
no A/B. CONDITIONAL, and the condition is named in the word itself: "when it's
up", the DRAFT PULL REQUEST must exist. It did not when the word was given. THE
CONDITION WAS SATISFIED AT PR #1004's CREATION, 2026-09-12T14:57:26Z, over first
commit a77b571.

THAT IS WHY THIS IS A SECOND COMMIT AND NOT A REWRITE OF THE FIRST. The packet
was genuinely `draft` when it was written and pushed and genuinely `ratified`
afterwards, and the history says so rather than smoothing it.

WHERE THE WORD IS RECORDED, AND WHY IT MATTERS HERE. The authoring session was
interrupted (the process exited ~03:45Z) before this packet was ever committed,
so the word outlived the session that received it. The estate's own machinery
carried it — the lane-collision protocol's registry, Rule 4 / Amendment 2:
opensoft/brett-wip commit 1c27a188bb772c69b15d9acb94821b6e8122a1ab (committed
2026-09-12T03:26:24Z, three seconds after the word), lanes/LANES.md, row
`provenance-autonomous-merge`; and independently the lane handoff
~/session-prompts/handoff-2026-08-28-provenance-program.md:1035, carrying the
same UTC and the same verbatim text. THIS ENCODE IS TAKEN FROM THOSE RECORDS AND
CITES THEM.

TWO WORDS, TWENTY-TWO MINUTES APART, COVERING DIFFERENT THINGS, and the record
keeps them apart: word one (03:04:29.167Z, "ratified_by — ratify the entries as
encoded") ratifies the two PIN ENTRIES as encoded; word two ratifies THIS
PACKET. Every sentence this packet wrote claiming the packet was NOT ratified is
STRUCK rather than deleted — it was the correct position for the twenty-two
minutes between the words and the eleven hours after them, and the strike
records that the narrower reading was held rather than skipped.

RATIFIED AS DISCLOSED. A bare word resolves nothing it does not name, so every
position this packet states is ratified AS IT STANDS, and each stated open item
lands at the default the packet recommends and stays FLAGGED rather than
resolved: tasks.md 6.1 (codexFactory's pin advance, lane codeXfactory-1's, after
their #435 -> #433, never before #434), 6.2 (#434's own validate), 6.3 (the two
sibling re-derivations under "This change first"), 6.5 (the upstream watch,
which reaches the four marker-blindness entries and NEITHER new one). Nothing in
group 6 is ticked by this word except the new 6.6, which records the word.

NEITHER WORD IS THE MERGE. The pull request stays DRAFT; the landing is Rule 6
and the orchestrator's act.

Encoded per the #898 precedent's shape: proposal.md `Status: ratified` plus a
`Ratified:` header line in the first fifteen lines; design.md and tasks.md
`Status: ratified` plus `Ratified by:`; review/ratification-2026-09-12.md
rewritten to record BOTH words, where each is recorded, and a disclosure table
of what stays open; .openspec.yaml's origin approval pair carrying both words
with the narrower one marked superseded rather than overwritten; README's
OpenSpec Records row.

ALSO IN THIS COMMIT, and the reason the first commit was knowingly red:
tests/sequenced_after/corpus-ledger.yaml gains this change's row, seeded by
`scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#1004'` —
which needs the pull request number, which did not exist until the first commit
was pushed.

Re-run on this head: validate-pin-registrations 0, validate-release-tag-gate 0,
validate-manifest-digests 0, validate-sequenced-after --sweep 0, the pinned CLI
`--strict` on this change 0 (`Totals: 1 passed, 0 failed (1 items)`), and
`python3 -m pytest tests/sequenced_after tests/pin_registrations
tests/openspec_cli_pin -q` -> 500 passed (the four ledger failures the first
commit disclosed are gone).

Lane: provenance-autonomous-merge
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