Skip to content

Archive add-doxbench-editing-phase-b: the doxBench editing sprint completes - #264

Merged
brettheap merged 3 commits into
mainfrom
change/archive-doxbench-editing-phase-b
Aug 22, 2026
Merged

brettheap merged 3 commits into
mainfrom
change/archive-doxbench-editing-phase-b

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Archive add-doxbench-editing-phase-b

Brett's word given. Archived through proposal-support.py's archive verb — never bare openspec, per the standing rule — following the Phase A precedent at openspec/changes/archive/2026-08-21-add-doxbench-editing-phase-a.

The change moves to openspec/changes/archive/2026-08-22-add-doxbench-editing-phase-b. Nothing else is archived, no tag is cut (no contract bytes move), and no xFactory pin is touched.

What promoted, verified byte-for-byte

The archive verb reported +10 added, ~8 modified. That was checked rather than trusted, per capability:

capability before after ADDED MODIFIED
ideation-dashboard 78 reqs 87 9 8
memory-gateway 21 reqs 22 1 0

Verification run over the pre-archive delta text against the promoted spec:

  • 18/18 delta requirements byte-for-byte identical in the promoted spec (17 + 1).
  • Every ADDED title was absent from the target before; every MODIFIED title was present.
  • The 91 requirements the deltas do not name show ZERO drift (70 in ideation-dashboard, 21 in memory-gateway).
  • Both archived spec deltas are byte-identical to their pre-archive bytes.

Supporting-docs packaged as supporting-docs.tar.gz — 3 files (the doxbench-editing-model fragment, its manifest, and the source-snapshots/ copy) — beside supporting-docs.manifest.yaml carrying per-file sha256.

One test caught the promotion, exactly as designed

test_the_roster_is_exactly_the_promoted_capabilitys_requirements failed after the archive, because promotion added a 22nd requirement to memory-gateway — Subject-Free Local Consumers Declare Their Inapplicable Rails, the very requirement this change added to describe what the doxBench surface does. Its docstring says why that is the point: "Read from the promoted spec, so a requirement added upstream fails here rather than becoming a silent gap in the declaration."

Fixed by growing the declaration, not by relaxing the test: the roster gains the requirement at TIER_UNTIERED (the spec's tier block does not tier it — checked against the block), and the declaration dispositions it REALIZED, because this declaration is the act that requirement describes. The untiered pin stays an exact list rather than becoming a membership check.

Two stale references the archive created, both fixed

  • ideation/staging/INDEX.md linked the fragment at its pre-archive path, which now resolves to nothing. De-linked and named instead, with the bundle path and the file's sha256 — the exact form the INDEX already uses for add-staged-topic-outline-template's 2026-08-21 archive.
  • gate_routes.py cited the change's tasks.md by its active path; repointed at the archive.

Fresh-eyes follow-up, recorded before the packet froze

#263 — a whitespace-only reduced_reason passes all five posture gates (released schema, delegated validator, ContextPacket, serve derivation, browser adopter), rendering "reduced context: " with nothing readable — the "degradation wearing a badge" the adopter's own comment forbids. Reproduced across nine blank classes. Unreachable from this repository's producer (the reasons are pinned constants); real for a third-party producer against the published contract. Notably ContextPacket already refuses blanks on ref and provider_id two fields away. The issue folds in F5, the last str() coercion on the posture path.

Filed as an issue rather than in the change packet, because that packet becomes immutable history in this PR.

Three comment corrections (no contract bytes, no behaviour)

  • F2 doxbench-chat.js listed "a turn in the air" among the null cases — made false by design in S4, where the note deliberately survives a flight and a test asserts it.
  • F3 doxbench-chat-model.js's header claimed every bound measures exact UTF-8 bytes; the posture ceiling counts code points, mirroring maxLength. Claim scoped, exception named.
  • F4 a stale pre-S4 harness comment sat directly above a probe asserting its opposite.

Gates

tests/ideation-dashboard   3983 passed, 15 skipped
tests/ideation_dashboard   63 passed
tests/doc-health           704 passed, 1 warning
validator                  0 errors / 4 warnings
openspec --all --strict    66 passed, 0 failed   [17 changes + 49 specs, counted fresh — 67 → 66 as the archive removes one active change; specs stay 49, both target capabilities already existed]
verify-commit              pass — contracts/releases/contract-v1.40.digests.yaml (unchanged; no contract byte moves)
doc-health pre/post        zero-new against a same-clock origin/main baseline

🤖 Generated with Claude Code

brettheap and others added 2 commits August 22, 2026 12:01
…pletes

Archived on Brett's explicit word, through proposal-support.py's archive verb
(never bare openspec -- the standing rule), following the Phase A precedent at
openspec/changes/archive/2026-08-21-add-doxbench-editing-phase-a.

PROMOTED, AND VERIFIED BYTE-FOR-BYTE rather than trusted:
  ideation-dashboard  +9 ADDED, ~8 MODIFIED   78 -> 87 requirements
  memory-gateway      +1 ADDED                21 -> 22 requirements
All 18 delta requirements compare byte-for-byte identical to their promoted
text; every ADDED title was absent before and every MODIFIED title present;
and the 91 requirements the deltas do not name show ZERO drift. The archived
copies of both spec deltas are byte-identical to their pre-archive bytes.

Supporting-docs packaged as supporting-docs.tar.gz (3 files: the
doxbench-editing-model fragment, its manifest, and the source-snapshots copy)
beside supporting-docs.manifest.yaml with per-file sha256.

TWO STALE REFERENCES the archive created, both fixed here:
* ideation/staging/INDEX.md linked the fragment at its pre-archive path, which
  now resolves to nothing. De-linked and NAMED instead, with the bundle path and
  the file's sha256 -- exactly the form the INDEX already uses for
  add-staged-topic-outline-template's 2026-08-21 archive.
* gate_routes.py cited the change's tasks.md by its active path; repointed.

README's OpenSpec Records row moves from the active list to the archived
convention Phase A uses, carrying the realization evidence, the promotion
numbers and the follow-up issue.

FRESH-EYES FINDING, recorded before the packet became immutable history:
issue #263 -- a whitespace-only reduced_reason passes all five posture gates
(released schema, delegated validator, ContextPacket, serve derivation, browser
adopter), rendering "reduced context: " with nothing readable. Unreachable from
this repository's producer (the reasons are pinned constants); real for a
third-party producer against the published contract. The issue also folds in F5,
the last str() coercion on the posture path.

Three comment corrections ride along (no contract bytes, no behaviour):
F2 doxbench-chat.js listed "a turn in the air" among the null cases, which S4
made false by design; F3 doxbench-chat-model.js's header claimed every bound
measures UTF-8 bytes, but the posture ceiling counts code points; F4 a stale
pre-S4 harness comment sat directly above a probe asserting its opposite.

No contract byte moves: verify-commit still resolves contract-v1.40's inventory.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
…oted

The archive's promotion added a 22nd requirement to the memory-gateway
capability -- `Subject-Free Local Consumers Declare Their Inapplicable Rails`,
the one THIS change added to describe what this surface does -- and
`test_the_roster_is_exactly_the_promoted_capabilitys_requirements` failed,
exactly as its docstring says it should: "Read from the promoted spec, so a
requirement added upstream fails here rather than becoming a silent gap in the
declaration." The test working, not a regression.

The roster grows by one at TIER_UNTIERED (the spec's tier block does not tier
it -- checked against the block, not assumed), and the declaration dispositions
it REALIZED, because this declaration IS the act that requirement describes.

The untiered pin stays an EXACT list rather than relaxing to a membership
check: an untiered requirement is a fact about the spec, so a third one
appearing should fail and be looked at.

The archived tasks.md still says "21-requirement roster". That was true when
it was written and the archive is history; it is not edited.

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

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

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

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

Archives the add-doxbench-editing-phase-b OpenSpec change into the dated archive location and updates downstream references/rosters to reflect the promotion effects (notably the additional memory-gateway requirement) while preserving byte-identical spec deltas and packaging supporting documents into a deterministic bundle.

Changes:

  • Move add-doxbench-editing-phase-b into openspec/changes/archive/2026-08-22-add-doxbench-editing-phase-b/ and add the archived packet artifacts (proposal/design/spec copies, verification findings, supporting-docs manifest).
  • Promote the new memory-gateway requirement into the main spec and update the doxbench_memory_gateway conformance roster + tests accordingly.
  • Fix/refresh stale references and explanatory comments in ideation-dashboard UI/tests and documentation that referenced the pre-archive path or outdated behavior notes.

Reviewed changes

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

Show a summary per file
File Description
tests/ideation-dashboard/test_doxbench_memory_gateway.py Expands the expected untiered requirement list to include the newly promoted memory-gateway requirement.
tests/ideation-dashboard/test_doxbench_chat_view.py Updates an inline comment to match the tested behavior around “flight starting” and reduced-context note retention.
scripts/ideation_dashboard/web/views/doxbench-chat.js Corrects documentation about when reduced-context disclosure should be null (removes “turn in the air” claim).
scripts/ideation_dashboard/web/views/doxbench-chat-model.js Clarifies which bounds are measured in UTF-8 bytes vs code points (schema maxLength parity for reduced_reason).
scripts/ideation_dashboard/gate_routes.py Repoints a doc reference from active change path to the archived change path.
scripts/ideation_dashboard/doxbench_memory_gateway.py Adds the promoted requirement to CAPABILITY_REQUIREMENTS and declares its conformance disposition.
README.md Updates the active-changes list entry to point at the archived change and records archive details.
openspec/specs/memory-gateway/spec.md Adds the promoted requirement “Subject-Free Local Consumers Declare Their Inapplicable Rails” to the capability spec.
openspec/changes/archive/2026-08-22-add-doxbench-editing-phase-b/verification-findings.md New archived evidence record for verification findings supporting the change.
openspec/changes/archive/2026-08-22-add-doxbench-editing-phase-b/supporting-docs.manifest.yaml Records deterministic bundle metadata (bundle path + sha256) and per-file sha256s for archived supporting docs.
openspec/changes/archive/2026-08-22-add-doxbench-editing-phase-b/specs/memory-gateway/spec.md New archived delta copy for the memory-gateway spec change.
openspec/changes/archive/2026-08-22-add-doxbench-editing-phase-b/specs/ideation-dashboard/spec.md New archived delta copy for ideation-dashboard spec changes.
openspec/changes/archive/2026-08-22-add-doxbench-editing-phase-b/proposal.md New archived proposal content for the change packet.
openspec/changes/archive/2026-08-22-add-doxbench-editing-phase-b/design.md New archived design content for the change packet.
openspec/changes/archive/2026-08-22-add-doxbench-editing-phase-b/.openspec.yaml New archived change metadata describing origin/sequencing.
openspec/changes/add-doxbench-editing-phase-b/supporting-docs/source-snapshots/doxbench-editing-model.md Removed from the active change location (now packaged into the archive bundle).
openspec/changes/add-doxbench-editing-phase-b/supporting-docs/doxbench-editing-model.md Removed from the active change location (now packaged into the archive bundle).
ideation/staging/INDEX.md Updates the staged-topic index entry to describe the archive-bundled supporting-docs location.

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

Comment thread ideation/staging/INDEX.md Outdated
Comment on lines +1354 to +1359
`supporting-docs/` folder was packaged into a deterministic bundle beside the
archived change, per `document-lifecycle`'s `Supporting-document archive
retention`, so the fragment is no longer a linkable file: it lives inside
`openspec/changes/archive/2026-08-22-add-doxbench-editing-phase-b/supporting-docs.tar.gz`
(sha256 `16761d875d5603b75bfe4ab142669ccb435ba2a1b83b1988894e257830a6cd10`), with its per-file sha256 readable outside the
bundle in the sibling `supporting-docs.manifest.yaml`. Named rather than

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bbb5602536

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md
Comment on lines +499 to +500
— **ARCHIVED 2026-08-22** on Brett's explicit word, the doxBench editing
sprint complete. Realization evidence at the gate: §3 verify list PR #206 /

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Mark the archived proposal as ratified

When this archive occurs on Brett's explicit approval, the moved proposal still says Status: draft, even though .openspec.yaml records approved_by and approved_on. The repository lifecycle defines draft as unratified and its discrepancy register identifies carrying that status through archival as a defect, so this leaves the authoritative archive record contradicting the approval and promoted specs; change the header to ratified and add the required ratification citation as part of the archive.

AGENTS.md reference: AGENTS.md:L9-L10

Useful? React with 👍 / 👎.

Comment thread ideation/staging/INDEX.md Outdated
Comment on lines +1357 to +1358
`openspec/changes/archive/2026-08-22-add-doxbench-editing-phase-b/supporting-docs.tar.gz`
(sha256 `16761d875d5603b75bfe4ab142669ccb435ba2a1b83b1988894e257830a6cd10`), with its per-file sha256 readable outside the

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Publish the bundle's actual checksum

The SHA labeled as belonging to supporting-docs.tar.gz is actually the digest of the doxbench-editing-model.md member. The external manifest and sha256sum identify the bundle as 3d3db064b9b2a9127dd3a92802591780277a6bff140052d5a936ec6a77d9bfa6, so anyone using this index to verify the retained archive will always get a mismatch; replace this value with the bundle digest.

AGENTS.md reference: AGENTS.md:L9-L10

Useful? React with 👍 / 👎.

Both real, and both bots flagged the sha.

Copilot + Codex, INDEX.md: I labelled the sha as the bundle's when it is the
per-file digest of doxbench-editing-model.md -- my own script pulled the file
entry from the manifest and the prose then attributed it to the tar.gz sitting
one line above. Both are now named and correctly labelled: bundle 3d3db064...,
fragment 16761d87..., with the manifest still cited as where per-file digests
live outside the bundle.

Codex, the archived proposal: it still said `Status: draft`. Phase A -- the
precedent this archive was told to follow exactly -- says `Status: ratified`,
as do the other recent archives; a change whose spec deltas have PROMOTED is
ratified by construction. (One other 2026-08-22 archive is also sitting on
draft; that is its lane's to fix, not something to copy.)

Co-Authored-By: Claude Fable 5 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

Both findings fixed at bdd09c2c, both real.

The sha (Copilot and Codex, same finding). Mine: the script pulled the per-file entry from the manifest and the prose then attributed it to the tar.gz sitting one line above. Both digests are now named and correctly labelled — bundle 3d3db064…, fragment 16761d87… — with the manifest still cited as where per-file digests live outside the bundle.

The archived proposal's Status (Codex). Correct, and the precedent settles it: Phase A — the archive this one was told to follow exactly — carries Status: ratified, as do the other recent archives. A change whose spec deltas have promoted is ratified by construction; leaving draft on it would have put a contradiction into immutable history. (add-dashboard-account-menu's 2026-08-22 archive is sitting on draft too — that is its lane's to fix, not something to copy.)

Re-gated after: doc-health zero-new, openspec --all --strict 66/0, tests/doc-health + tests/proposal-support 740 passed.

Copilot AI review requested due to automatic review settings August 22, 2026 16:28
@brettheap
brettheap merged commit 02a71d6 into main Aug 22, 2026
1 check passed

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 14 out of 21 changed files in this pull request and generated no new comments.

Suppressed comments (1)

Previously missed (1) — in code that hasn't changed since the last review.

README.md:501

  • This entry is marked ARCHIVED but it remains under the README’s “Active changes:” section. To keep the README structure consistent (there is a separate “Archived changes:” section later), move this bullet into the Archived section (or remove it from Active changes) so readers don’t treat an archived change as still active.
- [add-doxbench-editing-phase-b](openspec/changes/archive/2026-08-22-add-doxbench-editing-phase-b/proposal.md)
  — **ARCHIVED 2026-08-22** on Brett's explicit word, the doxBench editing
  sprint complete. Realization evidence at the gate: §3 verify list PR #206 /
  `e7e7a84`; §4–§9 core PR #207 / `a4a6f6e`; §13 contract release PR #210 /

brettheap pushed a commit that referenced this pull request Aug 23, 2026
… Brett's explicit word

This was the one archived proposal among forty-four carrying `Status: ratified`
with no ratification citation. The promoted rule in
`openspec/specs/document-lifecycle/spec.md` makes a bare uncited `ratified`
header a violation whatever else the document says, and
`sanction-ratified-record-spelling` parked this record at its tasks.md 5.2 as
out of scope, routed through a citing change. This is that change.

THE RATIFICATION FACT, DERIVED FROM THE RECORD RATHER THAN ASSUMED. Three
points on this change's own record name it:

* The archive commit `02a71d6` (PR #264, 2026-08-22): "Archived on Brett's
  explicit word, through proposal-support.py's archive verb". PR #264's body
  opens "Brett's word given."
* Task 13.8, written before the archive: "`proposal-support.py archive` is the
  sanctioned path and it is Brett's act on his explicit word, not a consequence
  of this box being checked."
* The commit inside PR #264 that actually WROTE the `ratified` value --
  `bdd09c2`, "Bot round on the archive: a mislabelled sha and a stale proposal
  Status" -- recording why: "a change whose spec deltas have PROMOTED is
  ratified by construction."

So the ratification is the archive act and the promotion it performed, Brett
Heap, 2026-08-22 -- an approver, a date, and a resolvable record, all three
axes of the record-citing form's floor.

THE HEADER'S HISTORY IS NOT WHAT A READER WOULD ASSUME, and it was checked
commit by commit. The proposal read `Status: draft` from its proposing commit
`d3d7f58` (2026-08-18, PR #205) through EVERY realization slice -- `e7e7a84`,
`a4a6f6e`, `5daa173`, `ece236a`, `4926b7c`, `08c5aa9`, `0f50b35`, `671a690` --
and `ratified` was written only at the archive, on a Codex review finding.

THE ORIGIN PAIR IS DELIBERATELY NOT CITED. `.openspec.yaml` carries
`approved_by: Brett Heap (live-UI annotations and in-session rulings ...)` and
`approved_on: 2026-08-18`, but those fields are nested under `origin:` and
approve the staged topic's EXIT and this change's authoring. Citing them is the
error `docs/archive-record-discrepancies.md` C2 names: "Reading them as
ratification would date each change's ratification to the day it was proposed."
B1's phase-a citation, which did cite an `.openspec.yaml` pair, is not a
precedent -- the register states its condition, "its `approved_on` coincided
with the ratification", and that fails here by four days. PRs #206 and #207 do
call this a "ratified change" in prose, but that is builder prose written
against a header still reading `draft`, and no ratification act distinct from
the origin approval is recorded on 2026-08-18; it is reported, not cited.

`Ratified:` is the correct spelling, verified rather than assumed: no approving
OpenSpec change exists. The only other changes naming this one are Phase A, its
two citers, and `sanction-ratified-record-spelling`, which found this defect.

THE ORIGINAL RECORD STANDS WORD FOR WORD -- the diff is 96 insertions and zero
deletions, so unlike Phase A's own bookkeeping correction (which had to
overwrite the `Status:` value) the 2026-08-10 append ruling is honoured
literally. Reasoning recorded in phase-b's tasks.md "Bookkeeping correction";
5.2's phase-b half discharged inline with a dated suffix, its roster-device
half left open and the box left unticked.

Gates: `openspec validate --all --strict` 68 passed / 0 failed (main moved from
67 while this was authored); `tests/doc-health` 724 passed, unmoved before and
after; `tests/ideation-dashboard -k workbench` 140 passed. Census re-measured
the way the sanction authoring did: 88 archived proposals, 44 `Status:
ratified`, 44 carrying exactly one citation, 0 missing. The line was also driven
through the real checker helpers -- `fam_ratified_provenance`'s count is 1 and
all three floor axes read True, with three resolvable record paths.

Co-Authored-By: Claude Fable 5 <[email protected]>
@brettheap
brettheap deleted the change/archive-doxbench-editing-phase-b branch September 4, 2026 19:25
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