Skip to content

Re-derive the archived-record discrepancies into a durable register, and flip the one Status header that can cite its ratifier - #262

Merged
brettheap merged 2 commits into
mainfrom
change/archive-record-discrepancies
Aug 22, 2026
Merged

brettheap merged 2 commits into
mainfrom
change/archive-record-discrepancies

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Re-derives the enumeration PR #253 called "the seven record-vs-tree discrepancies" — which survived only in that session's deleted branch — over all 86 archived changes, lands it durably as docs/archive-record-discrepancies.md (Status: record, modelled on the support-bundle open-item register), and applies the one correction the record fully backs.

  • One Status flip applied: archive/2026-08-21-add-doxbench-editing-phase-a/proposal.md Status: draft → ratified, with the lifecycle-required citation (Ratified: 2026-08-15 by Brett Heap — record: its own .openspec.yaml). The flip is named an EXTENSION of Brett's 2026-08-10 append ruling, not an instance — an append is impossible on the Status line (corpus.STATUS_RE swallows trailing text), so the original value is preserved verbatim in the register and the change's own correction note instead.
  • One flip considered and DECLINED: add-dashboard-account-menu's identical Status: draft stays — its record names no ratifier or date, so flipping it would assert provenance nothing backs (the same hazard its missing-.openspec.yaml entry refuses). It joins the needs-ruling class as C7, paired with C3: one ruling supplying ratifier + date closes both.
  • Legality measured, not assumed: doc-health's record-immutability never reaches openspec/ (GOVERNED_ROOTS, corpus.py:21) — family report byte-identical with the edit present vs. reverted; nothing downstream reads a proposal Status: header (generator takes status from folder location, ratifier from .openspec.yaml).
  • Needs-ruling classes enumerated, untouched (C1–C7): six implementation_pending target_release values; 7 headerless proposals authored after the header convention started 2026-07-22 (re-derived on the authoring axis — 39 of the 46 headerless genuinely predate it); the two changes with no .openspec.yaml; 21 pre-contract-legacy origin warnings (by design); enable-live-openxfactory's four unpromoted ADDED deltas + internal self-misnaming; the four 2026-07-13 avatar changes archived with 36 of 37 boxes open while their rows claim realization; the account-menu ratification pair.
  • An adversarial review lap corrected the register before landing: C4/C6 counts re-measured (21 not 19; 36-of-37 not 32-of-36), C2 re-derived on authoring dates, both governing precedents (the 2026-08-10 append ruling, efa42cf's byte-exactness) quoted with their operative constraints intact, and the account-menu flip reverted. The review's own git archive baseline turned out to drop the git-dependent doc-health families — the register records that trap alongside C2's same-shaped axis mistake.
  • Also restores the README doc index's NotebookLM-sync parenthetical to its own entry (orphaned when the support-bundle line was inserted between them).

Gates on the committed tree, exit codes read directly: openspec validate --all --strict 67/67; tests/doc-health 704 passed, 0 failed; tests/ideation-dashboard -k workbench 140 passed; record-immutability family exactly the 3 known findings, byte-identical across the edit; presence sweep 86↔86 archived, 18↔18 active; zero uppercase-POST substrings in changed lines.

🤖 Generated with Claude Code

…tatus header that can cite its ratifier

PR #253 (`d23d690`) found "seven record-vs-tree or record-internal
discrepancies" while writing README rows from each archived change's own
record, deliberately did not propagate them into the rows, and said they were
"enumerated in the branch report". That branch touched exactly one file
(README.md) and is deleted from origin, so the enumeration survived nowhere.
Re-derived here over all 86 archived changes rather than inherited, so the
counts are this tree's and the total is not seven. The durable form is
`docs/archive-record-discrepancies.md`, modelled on the existing
`docs/support-bundle-scope-open-item.md` pattern and linked in the README doc
index; this message is the second copy.

An adversarial review lap ran over the first draft of all of this before it was
pushed and returned FIX FIRST. What it changed is folded in below and recorded
in the register's own "What this register got wrong first" section, because a
register that hides its errata is worth less than one that shows them. The
short version: one of the two Status flips is reverted, the surviving one gains
the citation the lifecycle rule requires, two counts were wrong, and C2 was
argued on the wrong date axis entirely.

FIXED — one header, with its citation:

  * `archive/2026-08-21-add-doxbench-editing-phase-a/proposal.md` read
    `Status: draft`. The ratification flip document-lifecycle requires in the
    same change as the transition was never made, and the transition is on the
    record four times: `.openspec.yaml` (`approved_by: Brett Heap (dispositions
    and phase sequencing relayed in-session)`, `approved_on: 2026-08-15`),
    tasks.md §10 ("the ratifying authority", "the ratified requirement"), task
    9.1's archive-gate evidence, and the +5 ADDED / ~2 MODIFIED promotion its
    archival produced. Now `ratified`, AND carrying a `Ratified:` line, because
    document-lifecycle § Status Claim Rules requires a ratified header to name
    its ratification — a bare flip replaces one defective header with another.

    On the spelling, counted rather than guessed. Of the 38 archived proposals
    already reading `Status: ratified`, 29 use `Ratified by:` (folder-dated
    2026-07-23..2026-08-15; 15 of them name their own change id, the other 14
    name Brett plus a date plus a quoted instruction) and 9 use `Ratified:`
    (2026-08-10 and later; 8 of the 9 read "in-session, verbatim: …"). Phase A
    has no approving change to name and no in-session utterance anyone wrote
    down — it has a record file. The ninth `Ratified:`,
    `2026-08-22-add-roster-device-admission-surface`, is exactly that shape:
    `Ratified: 2026-08-19 — record: <path> (…)`, a date plus a pointer to the
    record carrying the ratification, no change id and no quote. So `Ratified:`
    with a `record:` pointer at `.openspec.yaml`. Both the ratifier and the date
    are copied verbatim out of that file; nothing is inferred. Reaching for
    `Ratified by:` would have meant naming a change that does not exist or
    manufacturing a quotation.

REVERTED on review — the account-menu flip, for want of a citable ratifier:

  * `archive/2026-08-22-add-dashboard-account-menu/proposal.md` also read
    `Status: draft`, and the first draft of this change flipped it too. That
    flip is withdrawn and the file is untouched. The anomaly is real — `c09fe68`
    opens "Realizes the ratified add-dashboard-account-menu change", `afd7b33`
    archived it under release-realization's gate, and the archival promoted four
    requirements — but none of that names an approver or a date, and the change
    has no `.openspec.yaml` at all. A bare `ratified` header would assert
    provenance the record cannot back; a cited one would mean inventing a
    ratifier or a date. That is precisely what the register's C3 refuses when it
    declines to write `approved_by`/`approved_on` from inference, and the
    refusal has to hold on both axes. Moved to the register as its own
    needs-ruling entry, C7, which pairs with C3's account-menu half: naming the
    ratifier and the date closes both at once. The change's tasks.md carries the
    considered-and-declined note so the next reader finds the reasoning instead
    of re-opening it.

Each act carries a note in its own change's tasks.md rather than landing
silently. The precedent is Brett's 2026-08-10 ruling that a later change may
correct an archived ledger — and it is restated here WITH the operative
constraint the first draft dropped. As recorded at `2026-08-13-align-doxbench-
contract-pin-to-publisher` task 6.2, the correction was done "as an APPEND: the
original open-item sentence is left standing word for word". Phase A's flip
cannot honour that literally: an append on the Status line is mechanically
impossible, since `corpus.STATUS_RE` swallows any trailing annotation into the
value. So it is an in-place overwrite and it is named as an EXTENSION of the
ruling, not an instance of it; the original value is preserved verbatim in the
register and in the change's own correction note instead. The shape borrowed
from split-ideation 4.3 is likewise not identical — that precedent is an inline
suffix on a task line, these are separate sections. Same spirit, different
shape, said so.

The `efa42cf` distinction is also stated in that commit's own words rather than
paraphrased. `efa42cf` says the archived change is "restored byte-exact to
main's version", and byte-exact is broader than requirement text — this flip is
not byte-exact. What actually distinguishes it is efa42cf's stated reason: "An
archive amended after the fact would have claimed Phase A ratified a
conditional slot while the spec its own archival produced said otherwise: a
falsified record." A lifecycle header cannot create that disagreement — it
promotes no requirement and no reader consults it. The extension past
"byte-exact" is deliberate and named.

After the one flip: 39 archived proposals read `ratified`, 1 reads `draft`
(C7), 46 carry no header (C2).

RECORDED AS DELIBERATE, left alone:

  * `target_release: none` on THIRTEEN archived proposals — illegal on the
    realization axis, found by `18a4ffc` at five siblings and recorded rather
    than "corrected under cover of an archive commit". The value is projected
    into the dashboard snapshot, so a silent rewrite would move a downstream
    field. Twelve are the bare token; ONE is not, and the register now
    distinguishes it: `2026-07-30-add-ontology-term-lifecycle-enforcement`
    carries `none (no contract-bundle bytes change; …)`, an annotated value
    stating why no release applies, which is a different case from a bare
    illegal token and should be ruled on separately.
  * `add-workbench-integrated-editor-chat`'s 24 open tasks and its lowercase
    `status: proposed` field. Verified still the only `status:` field in the
    repository, active or archived.
  * `add-roster-device-admission-surface`'s axis — `8924838` handed the
    correction to "the archive slice's bookkeeping" and `d9b80c1` did it.
    Closed, not open.
  * Six archived changes with annotated open tasks, each carrying its reason.
  * split-ideation's 4.3 and the lens pair's origin declarations, repaired at
    PR #253's gate. Confirmed present.

OPEN — enumerated, untouched, each needing a ruling:

  * C1 `target_release: implementation_pending` on six archived proposals. Not
    a defined axis value, and self-contradicting on an archived change: the
    archive gate admits only merge-plus-green evidence, which is the condition
    the token says is owed.
  * C2 SEVEN archived proposals were authored after the `Status:` convention
    began and carry no header. Re-derived on the right axis this lap. A change's
    folder date is when it ARCHIVED; its header was written when it was
    AUTHORED, often weeks earlier, so arguing about a header convention from
    folder dates measures the wrong thing — which is what the first draft did.
    Both axes are now stated. Folder-date fact, unchanged and still true: 32 of
    the 46 headerless proposals have a folder date before 2026-07-23, and 14 sit
    interleaved between 2026-07-23 and 2026-08-09. Authoring-date fact, from
    `git log --diff-filter=A --follow` on each proposal.md: the first headers
    were authored 2026-07-22 (three that day), 39 of the 46 headerless were
    authored BEFORE that and are genuinely pre-convention, and only SEVEN were
    authored after (2026-07-23..2026-07-30). No headerless proposal was authored
    after 2026-07-30 at all. The "applied unevenly for eighteen days" span claim
    is withdrawn as an artifact of the wrong axis, and the "first archived
    proposal carrying the header" sentence is softened — two proposals tie at
    folder date 2026-07-23, so there is no unique first on that axis.
  * C3 `add-worker-credential-by-reference` and `add-dashboard-account-menu`
    have no `.openspec.yaml` at all, are past proposal-origin's 2026-08-07
    contract date, and are the two ERRORs in a live proposal-origin run. Both
    would be ad_hoc, the family requires reason/approved_by/approved_on, and no
    record states an approver or date. Writing three fields from inference to
    clear an auto-fixable error puts invented provenance in a governed record,
    against `proposal_origin.py`'s own stated contract. Same missing pair of
    facts as C7 for the account-menu half.
  * C4 TWENTY-ONE archived pre-contract-legacy origin WARNINGs, by design. The
    first draft said nineteen. Re-measured live: `--family proposal-origin`
    reports 2 error / 30 warning, of which 21 warnings are archived changes and
    9 are active.
  * C5 `enable-live-openxfactory` carries ADDED-requirement deltas for four
    capabilities that exist nowhere under `openspec/specs/` — the only
    unpromoted delta in the corpus; its two 2026-06-26 siblings both promoted.
    It also calls itself `enable-live-openxfactory-factory` throughout its own
    README and evidence, against its folder id.
  * C6 four 2026-07-13 avatar changes archived with unticked ledgers and no
    annotation, while their rows report realization
    (`align-avatar-first-ui-standard`: "realized as `contract-v1.8`"). The first
    draft said "32 of 36" and gave the kernel 13 boxes with 1 ticked. Counted
    box by box this lap: 8/0, 11/0, 4/0, and `define-avatar-client-contract-
    kernel` at 14 boxes with 1 ticked — THIRTY-SEVEN boxes, THIRTY-SIX open.
  * C7 `add-dashboard-account-menu`'s `Status: draft`, above.

CLEAN, checked and worth stating: the presence sweep is exact (86 archive
dirs, 86 archived rows, 18 active dirs, 18 active rows, no duplicates, no
dangling links, every link resolving to a real proposal.md); every stated
ARCHIVED date matches its folder date prefix; and all 38 pre-existing
`Status: ratified` proposals cite their ratification in one of the two
spellings — that class has no defects.

Also corrected, one line, adjacent: the README doc index's NotebookLM sync
parenthetical had drifted below the support-bundle entry inserted after it,
so it read as a gloss on the wrong document.

MEASURED, not claimed — the gate did not force any of this. doc-health's
`record-immutability` family never reaches `openspec/`: it iterates `ctx.docs`,
which `doc_health.corpus` builds from `contracts/`, `docs/`, `examples/`,
`ideation/`, `templates/` only, and skips every document not headed
`Status: record`. The first draft said the report was "byte-identical …
differing only in the corpus-size lines", which contradicts itself; it is now
two separately measured claims. (1) Across the phase-a proposal edits alone the
`--family record-immutability` report IS byte-identical: same three findings,
all under `docs/` and `ideation/`. (2) Across the whole commit the corpus-size
lines move, because this register is a new `Status: record` document — record
count 28 -> 29, governance words 514,788 -> 518,465, canon share 30.7% -> 30.4%
on the same 157,839 canon words. Severity counts do NOT move: 3 critical /
7 error / 69 warning / 4 info on both sides, 0 new regressions. Both baselines
were taken in this git tree by removing the document and restoring it, not from
a `git archive` export — `record-immutability` and `staged-candidate-aging`
read git history, and an export loses it (an export baseline reports
0 critical / 59 warning here, which is the export's artifact, not a real
before-state). No reader consults a proposal's `Status:` header either:
`ideation_dashboard.generator` takes a change's status from its folder location
and its ratifier from `.openspec.yaml`, "deliberately NOT the `Ratified by:`
proposal header", and reads `code_surface`/`target_release` by key, not by
position — so the added `Ratified:` line moves nothing.

Rebased onto `821f016` — origin/main moved during this lap (contract-v1.40 and
its pin resolution), touching no file this change touches.

Gates, exit codes read directly on the rebased tree: `OPENSPEC_TELEMETRY=0
openspec validate --all --strict` exit 0, 67 passed / 0 failed.
`pytest tests/doc-health` exit 0, 704 passed, zero failures — the four known
client-identity agent-worktree artifacts do not reproduce in this worktree.
`pytest tests/ideation-dashboard -k workbench` exit 0, 140 passed / 3818
deselected — 140, not the 129 of the pre-rebase run, because origin/main added
`test_doxbench_chat_view.py` and its siblings. Zero uppercase-POST substrings in
any prose touched.

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

@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 re-derives and preserves the “archived record vs. tree” discrepancy set as a durable bookkeeping register (docs/archive-record-discrepancies.md), and applies the one Status-header correction that is fully supported by recorded ratification metadata (including an explicit citation).

Changes:

  • Add a durable Status: record register documenting the discrepancy classes across all archived changes, including one explicitly-cited correction and seven intentionally-open classes.
  • Correct add-doxbench-editing-phase-a’s archived proposal front-matter Status: to ratified and add a ratification citation line; add a corresponding bookkeeping note in its task ledger.
  • Update the README core-doc index to include the new register entry and restore the NotebookLM-sync parenthetical alignment.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
README.md Updates the core docs index to include the new archived-discrepancies register and restores the intended parenthetical association.
openspec/changes/archive/2026-08-22-add-dashboard-account-menu/tasks.md Adds a bookkeeping note recording that a Status flip was considered and explicitly declined due to missing ratifier/date provenance.
openspec/changes/archive/2026-08-21-add-doxbench-editing-phase-a/tasks.md Adds a bookkeeping correction note explaining and justifying the Status-header fix and citation approach.
openspec/changes/archive/2026-08-21-add-doxbench-editing-phase-a/proposal.md Flips Status: draft → Status: ratified and adds a ratification citation line referencing recorded metadata.
docs/archive-record-discrepancies.md Introduces the durable archived-record discrepancy register (Status: record), enumerating corrected vs. open classes and documenting measurement axes/tooling constraints.
Suppressed comments (1)

openspec/changes/archive/2026-08-22-add-dashboard-account-menu/tasks.md:85

  • Grammatical agreement: “Every one … that reads” should be past tense (“read”) since you’re describing the archived proposals’ existing header text.
change"). Every one of the thirty-eight archived proposals that reads

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

Copilot AI review requested due to automatic review settings August 22, 2026 15:50
@brettheap
brettheap merged commit 29e29d5 into main Aug 22, 2026

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

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

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