Skip to content

Realize retire-doxbench-chat-turn-v1 §§2-5: the v1 chat-turn family leaves, the fallback is redesigned rather than deleted, and all seven v1-only refusals are re-expressed (DO NOT MERGE) - #564

Merged
brettheap merged 6 commits into
mainfrom
change/realize-retire-doxbench-chat-turn-v1
Sep 1, 2026

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

DO NOT MERGE without a ruling on the one boundary question in § B. This is a
drafted realization, opened for review and for that ruling. It is not a cut.

Realizes tasks.md §§ 2-5 of the ratified packet
retire-doxbench-chat-turn-v1 — landed by #552 (squash b7dc5909),
ratified 2026-09-01 by Brett Heap, record
openspec/changes/retire-doxbench-chat-turn-v1/review/ratification-2026-09-01.md,
entry 3 of #522. Every discharged box is ticked in tasks.md with its
evidence inline.

§ 6 (the contract-v3.0 cut) and § 7 (post-cut verification) are NOT
performed.
No bundle number is spent, contract_bundle_version still reads
contract-v2.5, no CHANGELOG row moves, docs/contract-versioning-policy.md is
untouched, no contracts/releases/contract-v3.0.digests.yaml is written, and no
tag is published.


A. What the realization did

The removal. The three v1 chat-turn envelope kinds leave: their $defs,
their oneOf refs, the top-level deprecated_envelopes block that declared
them removable, their kind constants and dispatch arms in serve.py,
doxbench_contracts.py and scripts/validate-ideation-dashboard-contracts.py,
and their packaged instances. Not one field of the surviving -v2 family is
added, removed or renamed.

The fallback is REDESIGNED, not deleted — the one genuinely non-mechanical
decision, and the thing ratification approved as encoded. An unrecognized or
absent kind is now refused in the surviving family carrying
unrecognized_turn_kind (HTTP 400), registered in the closed
DOXBENCH_ERROR_CATALOG in the same commit as the arm that answers it — an
unregistered code faults the refusal path rather than refusing. That answers
OQ-3, which ratification explicitly left to the realization.
_refuse_turn's second layer — its drop into the pre-identity
doxbench_error_body shape when no wire-valid client_turn_id exists — is
untouched: its four executable lines are byte-identical, and only its
docstring changed, to say why it is unchanged.

One ordering change the redesign forced, stated rather than slipped in: the
plane-level validators is None guard is hoisted above the kind check,
because the new arm builds a refusal that is self-validated against the
released schema and that cannot be done with no validators. Precedence is
unchanged.

All SEVEN v1-only refusal classes are re-expressed. Zero stated losses. D2
allowed "re-expressed OR a stated loss with a reason"; every class turned out
reachable in the surviving family, so the loss arm is never taken. Each new
fixture was run through validate_instance individually and refuses for its
intended reason, not merely for some reason. The full per-fixture table is
in tasks.md § 4.4.

# class v2 fixture refusal produced
1 escaping path negative/workbench-chat-turn-v2-escaping-path.negative.yaml [path] … path escapes the checkout
2 hash mismatch negative/workbench-chat-turn-v2-hash-mismatch.negative.yaml [hash] buffers/outline: content_hash mismatch
3 identity subject negative/workbench-chat-turn-v2-identity-subject.negative.yaml [schema] <root> — refused by type alone
4 over budget negative/workbench-chat-turn-v2-over-budget.negative.yaml [budget] … 4139 bytes over model 'hosted-zr-1' input limit 2048
5 unknown model negative/workbench-chat-turn-v2-unknown-model.negative.yaml [unknown-model] model_id 'never-approved-9' is not in the approved catalog
6 untyped proposal negative/workbench-chat-turn-v2-untyped-proposal.negative.yaml [schema] <root> — keyed_typed_proposal requires target
7 duplicate turn pair negative/duplicate-turn-pair/{turn-a,turn-b}.yaml (rewritten as -v2) [duplicate-turn] … with different content

Plus the removal's own new refusal,
negative/workbench-chat-turn-unrecognized-kind.negative.yaml — whose kind is
deliberately a retired one, making it the packaged proof of the ruled
consequence that after this release a retired kind and a kind that never existed
are the same fact about the wire.

The validator. 0 error(s), 0 warning(s) where main reports
0 error(s), 4 warning(s), and --strict now exits 0 over
examples/ideation-dashboard/ where it exited 1. The four warnings are gone
because their subjects are gone, not because the reader that emitted them was
removed: deprecated_kinds / warn_if_deprecated_kind are KEPT unchanged
(task 4.2's default), because deleting the estate's only machine-readable
deprecation reader along with its only current subject would leave the next
deprecation inert — which is the precise failure this retirement exists to
correct.

examples/ideation-dashboard/README.md's --strict note, false since
contract-v2.0 shipped on 2026-08-27, is repaired and its falsehood named
rather than quietly overwritten.


B. THE ONE BOUNDARY QUESTION — a reviewer must rule on this

§ 2's schema byte move dragged exactly one cut-filed line with it: the
per-file sha256 for xfactory-workbench-chat-turn.schema.yaml in
contracts/manifest.yaml.

tasks.md 6.1 files that line with the cut. tasks.md 8.1 requires
§§ 2-5 to be merged with pytest-suite green. Measured, not assumed: the two
cannot both hold. doxbench_contracts._verified_bytes refuses any checkout whose
manifest records a digest the bytes do not hash to, so a schema edit without the
manifest line fails 45 tests with

ContractPinError: xfactory-workbench-chat-turn.schema.yaml: the checkout's
contracts/manifest.yaml records sha256 2ff5f222… but the bytes hash to 350bfedc…
— the checkout is not a coherent contract-v2.2 release

§ 8.2's own wording reads the same way — the bundle is later "declared with the
moved digest"
, past participle.

What moved: three digest literals only — contracts/manifest.yaml,
doxbench_contracts.SCHEMA_DIGESTS, and the test's RELEASED_DIGESTS.
What did NOT move: contract_bundle_version (still contract-v2.5), the
manifest row prose, and doxbench_contracts.CONTRACT_REF / CONTRACT_TAG (still
contract-v2.2), because bundle identity is the cut's to spend. The stale
contract-v2.2 tag label is therefore owed to the cut, and is named here so it
is not discovered there.
The historical contracts/releases/contract-v*.digests.yaml
inventories are untouched — they are immutable records of past releases.

If a reviewer rules the other way, the fix is to move that one line back and
carry §§ 2-5 into the cut's own PR; nothing else in this branch depends on the
choice.


C. Where the ratified text did not survive contact with the tree

typed_proposal is NOT reachable from the surviving family. The ratified
requirement says it is: "content_hash, confined_path, scope_key,
buffer_state, transcript_turn and typed_proposal are $ref-ed by the v1
envelopes AND reachable from the surviving family"
. The measured closure — task
2.1's own computation, run with _local_refs's algorithm — puts it in the
v1-only set alongside request, success and failure, because
keyed_typed_proposal restates the shape with a buffer-key target rather
than $ref-ing it.

Disposition: RETAINED, and the surprise recorded. Task 2.1's own rule is that
a surprise is "a finding, not a licence", so the realization does not use it as
cover to remove bytes the ratified text names as retained. The definition stays,
now unreferenced, carrying a comment at its site that states the measurement and
hands the disposal decision to the cut. The other five retentions are measured
and genuinely reached.

Two smaller items, both named in tasks.md rather than folded in silently:

  • The schema's own description prose was repaired, beyond § 2's literal
    enumeration. It described "three closed envelopes … (workbench-chat-turn)",
    called the v1 family "DEPRECATED by this release; see deprecated_envelopes
    below"
    , and documented active_document_path — every sentence naming
    something this change removes, which is exactly what the packet's own scenario
    "Prose that survives its own subject" forbids.
  • active_document_path is kept in the idempotency digest's canonical form
    though it is now a constant None. Removing it would move the digest of every
    turn and orphan every record already in a turn store. Retiring the key is a
    turn-store migration, not a schema removal.

Task 5.2 missed one file. It enumerates eight test files; the v1 literals
also live in tests/ideation-dashboard/test_doxchat_model_intake.py. Handled
here.


D. The two Copilot comments this PR was entitled to fix

Two of the four low-severity round-three comments the ratification record § 3
left standing are on lines this realization edits anyway, so they are corrected
honestly and said so:

  • README.md — the record row now names scripts/validate-ideation-dashboard-contracts.py
    with its prefix.
  • tasks.md:8 — the header said "Sections 2-6 are the realization"; it now
    reads 2-5, with § 6 named as the cut and § 7 as post-cut verification.

The other two are not on lines this PR touches and are left alone.


E. Review state

A Codex pass is OWED from ratification — three @codex review requests on
#552 returned provider usage-limit refusals and zero verdicts. It is requested
again here and is blocked by nothing.

main's inherited pytest-suite red is GONE. The ratification record § 4
disclosed a red from PR #510's carriage-ledger subject, standing at 1a69b7cb,
1c1dcbbe and b7dc5909. It was fixed on main by #557 (5383e72c), and
main has been green since. There is therefore no inherited failure to
attribute in this PR: every check here must be green on its own account.

🤖 Generated with Claude Code

brettheap and others added 3 commits September 1, 2026 08:19
… the fallback is redesigned rather than deleted

The deprecation that was declared properly at contract-v1.34 and then never
finished. Three v1 chat-turn envelopes -- `workbench-chat-turn`,
`-success`, `-failure` -- leave the schema with the `deprecated_envelopes`
block that declared them removable, the runtime and validator dispatch that
served them, and the packaged instances that exercised them. The recorded
removal target was contract-v2.0; that major shipped 2026-08-27 without
looking, and the only thing that noticed was a validator warning nobody read
(openxFactory issue #522, entry 3).

THE FALLBACK IS REDESIGNED, NOT DELETED, which is the one genuinely
non-mechanical decision here. An unrecognized or absent `kind` was COERCED
into the deprecated family, on a stated reason that dies with it. It is now
REFUSED in the surviving family with the explicit `unrecognized_turn_kind`
code (400) registered in the closed error catalog -- an unregistered code
would fault the refusal path rather than refuse. `_refuse_turn`'s SECOND
layer, its drop into the pre-identity shape when no wire-valid
`client_turn_id` exists, is untouched: `failure_v2` requires that field and
no server may invent one.

ALL SEVEN v1-ONLY REFUSAL CLASSES ARE RE-EXPRESSED, none lost. The packaged
corpus was TWELVE fixtures, not the four the measurement memo priced, and
eight were negatives carrying refusals the surviving family did not test:
escaping path, hash mismatch, identity subject, over budget, unknown model,
untyped proposal, duplicate turn pair. Each now has a `-v2` negative that
refuses for its intended reason, verified individually. The removal's own new
refusal gets a packaged fixture too, and its kind is deliberately a retired
one -- after this release a retired kind and a kind that never existed are
the same fact about the wire.

The validator reports `0 error(s), 0 warning(s)` where it reported four, and
`--strict` passes over `examples/ideation-dashboard/` where it exited 1.
`examples/ideation-dashboard/README.md`'s `--strict` note, false since
contract-v2.0, is repaired and its falsehood named.

TWO FINDINGS ON THE RATIFIED TEXT, both recorded in tasks.md rather than
absorbed. The measured reference closure puts `typed_proposal` OUTSIDE the
surviving family -- `keyed_typed_proposal` restates the shape rather than
`$ref`-ing it -- while the requirement names it as retained-because-reachable;
task 2.1's own rule is that a surprise is "a finding, not a licence", so it is
RETAINED on the text and the measurement is recorded for the cut. And the
schema byte move is coupled to the per-file `sha256` in `contracts/manifest.yaml`,
which tasks.md 6.1 files with the cut while 8.1 demands §§2-5 merge green; the
one checksum moved, and nothing else of §6 did. No bundle number is spent, no
CHANGELOG row moves, no tag is published.

Realizes the ratified packet landed by PR #552 (squash b7dc590), ratified
2026-09-01 by Brett Heap; record
openspec/changes/retire-doxbench-chat-turn-v1/review/ratification-2026-09-01.md.

Co-Authored-By: Claude Fable 5 <[email protected]>
…te guard retired by naming what it was for

§5.2 across BOTH directory spellings. Every v1 kind literal leaves the suite.
Tests exercising behaviour the surviving family also has are RE-EXPRESSED
against `-v2` rather than deleted; tests whose only subject was the v1 family's
survival or its deprecation RECORD are deleted and replaced by the negative
that now carries the claim -- `DEPRECATED_CHAT_TURN_KINDS` is gone rather than
emptied, and a test asserts that, because an empty tuple would be a claim that
nothing in the family is deprecated.

Task 5.2 enumerated eight files; the literals also lived in
`test_doxchat_model_intake.py`, which is handled here and recorded as an
authoring finding.

§5.3 covers the redesigned fallback in BOTH directions: an unrecognized kind
WITH a wire-valid turn id gets the surviving failure envelope carrying
`unrecognized_turn_kind`, self-validated; WITHOUT one it gets the pre-identity
shape, unchanged. Plus the probe the packet asked for -- a RETIRED v1 kind
takes exactly that path, spelled as a literal rather than through a
`doxbench_contracts` constant, because the constant is removed with the kind.

§5.1 RETIRES THE BYTE-IDENTITY BASELINE BY NAMING WHAT IT WAS FOR, which is
the whole point of the box. `test_the_v1_envelope_bytes_are_unchanged_by_the_release`,
its closure helpers and `fixtures/chat-turn-v1-envelopes.baseline.yaml`
asserted that the v1 `$defs` and every shared definition they reached were
byte-identical to their contract-v1.31 bytes -- the promise contract-v1.34's
CHANGELOG made to consumers pinned to the older shape, hardened by F1 from the
three envelope blocks to their whole `$ref` closure after a narrower guard went
green while two shared enums were mutated.

It ends because the shape it protects LEAVES THE PUBLISHED SURFACE, not because
it became inconvenient: there are no v1 `$defs` left to compare, and the
closure computation would raise on its own seed rather than fail. A consumer
pinned below contract-v3.0 keeps the promise by the immutability of the bytes
its pin names, not by their presence here. The retirement is stated at the site
it vacated and is named again in the CHANGELOG entry the cut writes (6.3).
`_defs_blocks` survives, feeding the test that now fails if an incomplete
removal leaves a v1 envelope behind.

Co-Authored-By: Claude Fable 5 <[email protected]>
…yte-guard retirement

§§2-5 are now all ticked with evidence inline. Two things stated rather than
absorbed: task 5.2 enumerated eight test files and the literals lived in a
NINTH (test_doxchat_model_intake.py), and 5.1's changelog half is task 6.3 —
the CUT's — and is explicitly still owed.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 1, 2026 13:02

@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

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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 realizes retire-doxbench-chat-turn-v1 (tasks §§2–5) by removing the v1 chat-turn envelopes from the published schema and corpus, redesigning the /actions/workbench/chat-turn fallback so unknown/absent kind is refused in the surviving family, and re-expressing all v1-only negative refusal fixtures against -v2 so no refusal class coverage is silently lost.

Changes:

  • Remove v1 chat-turn schema $defs/oneOf entries (and the schema’s deprecated_envelopes block), plus retire the v1 byte-identity baseline.
  • Update runtime + validator dispatch to only recognize/serve the workbench-chat-turn-v2* family; add unrecognized_turn_kind refusal plumbing and tests.
  • Rewrite examples/fixtures/tests across Python + JS harnesses to use the surviving kind spellings and new negative fixtures.

Reviewed changes

Copilot reviewed 32 out of 32 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/ideation-dashboard/test_doxchat_model_intake.py Re-express “provider_retry blast radius” assertions against v2-only envelopes.
tests/ideation-dashboard/test_doxbench_view.py Update JS test fixture failure kind to workbench-chat-turn-v2-failure.
tests/ideation-dashboard/test_doxbench_transport.py Update transport probe kinds to v2 family and document why.
tests/ideation-dashboard/test_doxbench_routes.py Remove v1 fixtures/asserters; add coverage for unknown-kind fallback and v2-only kinds.
tests/ideation-dashboard/test_doxbench_proposals.py Update proposal test success fixture to v2 success and add required v2 fields.
tests/ideation-dashboard/test_doxbench_knowledge_service.py Drop v1-only “cannot state posture” test, since v1 envelope is removed.
tests/ideation-dashboard/test_doxbench_contracts.py Update pinned chat-turn schema digest, drop v1 fake schema blocks, and re-pin structure assertions.
tests/ideation-dashboard/test_doxbench_chat_view.py Keep a foreign-kind probe using retired v1 failure kind; rename test/fixture keys accordingly.
tests/ideation-dashboard/fixtures/chat-turn-v1-envelopes.baseline.yaml Delete retired v1 byte-identity baseline fixture.
tests/ideation_dashboard/test_validate_ideation_dashboard_contracts.py Update validator tests for v2-only kinds, new negative corpus, and deprecation-reader behavior.
scripts/validate-ideation-dashboard-contracts.py Remove v1 kind routing; keep deprecated-envelopes reader as general mechanism returning {} now.
scripts/ideation_dashboard/serve.py Remove v1 kind constants/parser/success builder; add unrecognized_turn_kind refusal and v2-only dispatch.
scripts/ideation_dashboard/doxbench_contracts.py Remove v1 kind constants/defs; update pinned schema digest and WIRE_KINDS for v2-only family.
README.md Update active-change index row; expand realization status note and fix script path reference.
openspec/changes/retire-doxbench-chat-turn-v1/tasks.md Mark realization work completed; record boundary question and evidence for tasks §§2–5.
examples/ideation-dashboard/workbench-chat-turn-unsaved-edits.example.yaml Remove v1 positive example (retired with v1 family).
examples/ideation-dashboard/workbench-chat-turn-prose-only.example.yaml Remove v1 positive example (retired with v1 family).
examples/ideation-dashboard/workbench-chat-turn-outline-only.example.yaml Remove v1 positive example (retired with v1 family).
examples/ideation-dashboard/workbench-chat-turn-both-proposals.example.yaml Remove v1 positive example (retired with v1 family).
examples/ideation-dashboard/README.md Update corpus listing/tables for v2-only positives/negatives and strict-mode note.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-untyped-proposal.negative.yaml Add v2 re-expression of the “untyped proposal” negative fixture.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-unknown-model.negative.yaml Re-express “unknown model” negative as v2 request.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-over-budget.negative.yaml Re-express “over budget” negative as v2 request.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-identity-subject.negative.yaml Re-express “identity-shaped working_subject” negative as v2 request.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-hash-mismatch.negative.yaml Re-express “hash mismatch” negative as v2 request.
examples/ideation-dashboard/negative/workbench-chat-turn-v2-escaping-path.negative.yaml Re-express “escaping path” negative as v2 request (binding set to avoid double-violation).
examples/ideation-dashboard/negative/workbench-chat-turn-untyped-proposal.negative.yaml Remove v1 “untyped proposal” negative (replaced by v2 version).
examples/ideation-dashboard/negative/workbench-chat-turn-unrecognized-kind.negative.yaml Add new negative fixture for “retired/unknown kind” input.
examples/ideation-dashboard/negative/duplicate-turn-pair/turn-b.yaml Re-express duplicate-turn test pair as v2 request kind/binding.
examples/ideation-dashboard/negative/duplicate-turn-pair/turn-a.yaml Re-express duplicate-turn test pair as v2 request kind/binding.
contracts/schemas/xfactory-workbench-chat-turn.schema.yaml Remove v1 envelopes + deprecated_envelopes block; update top-level prose and retain typed_proposal with note.
contracts/manifest.yaml Update schema sha256 for chat-turn schema entry.

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

"e563cc9fc6ede03dfd62537935d0ae0842617d7de46702aee6ad9026aa021635",
CHAT_TURN_SCHEMA_FILE:
"2ff5f222af5cdccd545417203898a919be0365cdd0d2d5138e87e23f7ebfe1cf",
"350bfedc02696e7281a42c0bdc9a25059bf7af14d16d89d9f07018d3e691dc1d",
Comment thread contracts/manifest.yaml
type: schema
schema_version: 1
sha256: 2ff5f222af5cdccd545417203898a919be0365cdd0d2d5138e87e23f7ebfe1cf
sha256: 350bfedc02696e7281a42c0bdc9a25059bf7af14d16d89d9f07018d3e691dc1d
"e563cc9fc6ede03dfd62537935d0ae0842617d7de46702aee6ad9026aa021635",
CHAT_TURN_SCHEMA_FILE:
"2ff5f222af5cdccd545417203898a919be0365cdd0d2d5138e87e23f7ebfe1cf",
"350bfedc02696e7281a42c0bdc9a25059bf7af14d16d89d9f07018d3e691dc1d",
…nt moves with the removal

THREE findings, all CONFIRMED, and they split by whose slice they are.

TAKEN HERE. The hermetic fixture world's header said the chat-turn file holds
"SIX envelopes under `$defs`" while the fake schema in the same block now
carries three. Stale by exactly the mechanism this retirement exists to
correct, and it would have invited the next fixture edit to be written against
a structure the release cannot produce.

RECORDED AGAINST THE CUT, not taken. `contracts/manifest.yaml`'s
`consumption_rule` prose still describes "SIX closed envelopes". The finding is
right and the sentence is false. It is not fixed here because tasks.md 6.1
files the row prose with the cut and NOTHING FAILS while it is stale --
unlike the per-file `sha256` one line above it, which had to move or §§2-5
could not be green at all. Crossing that line once under demonstrated duress is
defensible; crossing it twice for tidiness is not. Written into 6.2 so the cut
does not have to rediscover it.

NOT ACTED ON, AND DELIBERATELY. The third finding is that `SCHEMA_DIGESTS` now
treats new bytes as the released `contract-v2.2` bytes while `CONTRACT_TAG`/
`CONTRACT_REF` still name that release, and it recommends deferring the digest
to the cut. That is INDEPENDENT CORROBORATION of the one boundary question the
pull request opened with, and both of its options need a ruling rather than an
edit: deferring the digest makes the branch red by construction, and moving the
tag spends the bundle identity the cut owns. The reviewer reached the same
tension from the opposite direction, which is worth more on the record than a
unilateral resolution of it.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 1, 2026 13:10
@brettheap

Copy link
Copy Markdown
Contributor Author

Copilot round 1 — all three findings CONFIRMED, and they split three ways

Addressed at 88f2da75.

1. tests/…/test_doxbench_contracts.py:85 — the fixture header's "SIX envelopes" count. TAKEN. The header said six while the fake schema in the same block had already dropped to three. Stale by exactly the mechanism this retirement exists to correct, and it would have invited the next fixture edit to be written against a structure the release cannot produce. Fixed, with the old count and the reason for the move recorded rather than silently overwritten.

2. contracts/manifest.yaml:1678 — the consumption_rule prose still says "SIX closed envelopes". CONFIRMED, and deliberately NOT fixed here. The sentence is false the moment the v1 $defs leave; you are right. It is left because tasks.md 6.1 files "the row prose drops its v1 clauses" with the cut, and — unlike the per-file sha256 one line above it — nothing fails while this prose is stale. Crossing a cut-filed line once under demonstrated duress (see 3) is defensible; crossing it a second time for tidiness is not. It is now written into task 6.2 so the cutting session does not have to rediscover it.

3. doxbench_contracts.py:255 — the digest moving while CONTRACT_TAG/CONTRACT_REF stay contract-v2.2. CONFIRMED, and this is the one thing the PR asks for a ruling on rather than resolving. See § B of the description. You reached it from the opposite direction, which is worth more on the record than a unilateral fix, so I have not acted on it.

The trilemma, stated exactly, because each horn costs something real:

  • Defer the digest to the cut (your suggestion). _verified_bytes refuses a checkout whose manifest records a digest the bytes do not hash to, so this makes the branch red by construction — 45 failures with the checkout is not a coherent contract-v2.2 release. That directly contradicts tasks.md 8.1, which requires §§ 2-5 merged with pytest-suite green.
  • Move CONTRACT_TAG/CONTRACT_REF alongside it. Coherent, and it spends the bundle identity the cut owns — contract-v3.0 is not this slice's number to name. The estate's own convention for this window is the unpublished:contract-vX.Y sentinel (see 671a6908), but that PR was the cut.
  • What this PR does. Move the three coupled digest literals and nothing else; leave contract_bundle_version at contract-v2.5, the row prose alone, and the tag/ref alone — then name the stale contract-v2.2 label as owed to the cut in the tasks header and § B, so it is not discovered there.

tasks.md 8.2's own wording points the same way as the third option — the bundle is later "declared with the moved digest", past participle. But 6.1 files the sha256 with the cut, so the packet contradicts itself and a reviewer's ruling settles it, not mine. If the ruling is "defer", the fix is one line back and §§ 2-5 ride the cut's own PR; nothing else on this branch depends on the choice.

DO NOT MERGE pending that ruling.

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 32 out of 32 changed files in this pull request and generated 1 comment.

Suppressed comments (3)

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

tests/ideation-dashboard/test_doxbench_contracts.py:85

  • RELEASED_DIGESTS is documented as the sha256 of the bytes at RELEASED_TAG/RELEASED_REF (contract-v2.2), but this change updates the chat-turn digest without changing the release tag/ref constants. That makes the test suite assert a new byte identity for an old published tag, which undermines the “released pin is immutable” guarantee the test module claims to enforce.
RELEASED_DIGESTS = {
    CATALOG_SCHEMA_FILE:
        "e563cc9fc6ede03dfd62537935d0ae0842617d7de46702aee6ad9026aa021635",
    CHAT_TURN_SCHEMA_FILE:
        "350bfedc02696e7281a42c0bdc9a25059bf7af14d16d89d9f07018d3e691dc1d",

contracts/schemas/xfactory-workbench-chat-turn.schema.yaml:24

  • The updated description says “at least one loaded document buffer” and then refers to “both” buffers being complete. In the v2 family, document buffers can include the reserved unbacked slot (buffer_state.path: null) and the request can include multiple document buffers, so “loaded” and “both” are misleading here.
  a mismatched content_hash is refused rather than trusted. The outline plus
  at least one loaded document buffer accompany every request (FR-013): both
  complete, never truncated, selected, summarized, or omitted. A path that

scripts/ideation_dashboard/doxbench_contracts.py:255

  • SCHEMA_DIGESTS is described as pinning an already-published immutable release (see module header comments), but this change updates the chat-turn schema digest while CONTRACT_TAG/CONTRACT_REF still point at contract-v2.2. That makes the runtime treat the current checkout bytes as “released contract-v2.2” even though the cut/tag/versioning work is explicitly deferred, and risks consumers validating against a different byte set than the tag they believe they’re pinned to.
SCHEMA_DIGESTS = {
    CATALOG_SCHEMA_FILE:
        "e563cc9fc6ede03dfd62537935d0ae0842617d7de46702aee6ad9026aa021635",
    CHAT_TURN_SCHEMA_FILE:
        "350bfedc02696e7281a42c0bdc9a25059bf7af14d16d89d9f07018d3e691dc1d",

Comment thread contracts/manifest.yaml
Comment on lines 1675 to 1679
source_path: openxFactory/contracts/schemas/xfactory-workbench-chat-turn.schema.yaml
type: schema
schema_version: 1
sha256: 2ff5f222af5cdccd545417203898a919be0365cdd0d2d5138e87e23f7ebfe1cf
sha256: 350bfedc02696e7281a42c0bdc9a25059bf7af14d16d89d9f07018d3e691dc1d
compatibility: canonical_openxfactory_contract
… which is what the guard asks for

`test_doxbench_error_catalog_has_exactly_the_grounded_code_set` failed on the
new `unrecognized_turn_kind` entry with "Extra items in the left set". THE GUARD
WAS WORKING: it pins `DOXBENCH_ERROR_CATALOG`'s key set EXACTLY against a set
assembled from per-era groupings, each of which carries the grounding of its
own members, precisely so a code cannot enter the catalog without somebody
writing down where it came from. The packet's OQ-3 left this token and its
status to the realization, so the guard had nothing to check it against.

Answered the way the guard asks rather than by widening the assertion: a new
`_REMOVAL_CODES` grouping with the provenance beside it -- that the redesigned
fallback REQUIRES a code (the removal took the family the old arm coerced into,
and the #522 ruling said redesigned, not deleted), why 400, and why
`invalid_turn_request` is not reused (its fixed message says the request is
malformed, which is a true sentence about a different failure).

A TENTH TEST FILE, and no kind-literal sweep could have found it: its coupling
is to task 3.2's catalog entry, not to a v1 kind. tasks.md 5.2 records it beside
the ninth, and notes that ticking 3.2 without it would have left the estate's
closed-catalog invariant red -- so the two boxes are one act.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 1, 2026 13:18

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 33 out of 33 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.

tests/ideation-dashboard/test_doxbench_contracts.py:1545

  • This test’s v2_request is invalid for reasons unrelated to the behavior under test (buffers is [], but the released request_v2.buffers has minItems: 2). That means the assertion can pass even if context_packet accidentally becomes allowed on requests, because the failure could be caused by the empty buffer set instead.

To make the pin meaningful, start from an otherwise-valid packaged v2 request, inject context_packet, and assert the resulting schema errors mention context_packet (or additionalProperties).

        "buffers": [],
        "context_packet": packet,
    }
    assert contracts.validate_instance(v2_request, released_root) != []

Copilot AI review requested due to automatic review settings September 1, 2026 13:25
`test_doxbench_blank_reason.py` failed with `ImportError: cannot import name
'_assert_v2_refusal'`. With one family served, `test_doxbench_routes.py`'s
`_assert_refusal`/`_assert_v2_refusal` twins collapse into the unqualified name
-- they differed in exactly one clause, the `kind`, and a refusal is answered in
the family its request arrived in, so the distinction they drew no longer
exists. The merge is right; its cross-file consumer was not followed.

Followed, with the rename's reason recorded at the import so the next reader
does not have to reconstruct why a v2-qualified helper became unqualified.

ELEVENTH FILE, and the second one no kind-literal grep could have found. A v1
retirement's blast radius is not only the v1 spellings: it reaches the closed
error catalog (via the code the redesign requires) and cross-file test helper
NAMES (via twins that existed only because two families did). Both were caught
by RUNNING the suites the packet named as this family's gates, not by grepping.
tasks.md 5.2 records the lesson because it generalizes to the sibling packet.

Co-Authored-By: Claude Fable 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

Copilot reviewed 34 out of 34 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.

tests/ideation-dashboard/test_doxbench_contracts.py:1545

  • test_no_other_envelope_in_the_family_grows_a_posture builds a workbench-chat-turn-v2 request with buffers: [], which is already schema-invalid (request_v2.buffers has minItems: 2). That means the assertion can pass even if the schema accidentally did allow context_packet on requests, reducing the test to a non-specific “invalid for some reason” check.

To keep the pin meaningful, start from an otherwise-valid packaged v2 request example, inject context_packet, and assert the resulting schema errors mention context_packet (unexpected property).

        "transcript": [],
        "buffers": [],
        "context_packet": packet,
    }
    assert contracts.validate_instance(v2_request, released_root) != []

@brettheap

Copy link
Copy Markdown
Contributor Author

Local gate evidence at e86f0fea

pytest over this family's gates — GREEN.

3691 passed, 1 skipped, 7 warnings in 542.55s

Scope: every tests/ideation-dashboard/test_doxbench_*.py and test_doxchat_*.py, plus tests/ideation_dashboard/ and tests/doc-health/. test_doxbench_bridge.py is excluded from the local invocation only — it drives a real child process over real pipes and can hang under CPU contention, which the CI job bounds with its own timeout; CI runs it.

scripts/validate-ideation-dashboard-contracts.py — task 4.7 discharged.

examples: 42 valid example(s) confirmed valid, 81 negative example(s) confirmed invalid, 8 transition pair(s) confirmed
validate-ideation-dashboard-contracts: 0 error(s), 0 warning(s)

against 0 error(s), 4 warning(s) on main at af746459, and --strict now exits 0 where it exited 1.

OpenSpec — both forms green. openspec validate retire-doxbench-chat-turn-v1 --strict → valid; --all --strict → 82 passed, 0 failed.

doc-health — 1347 passed, including test_modified_block_currency_self_gate.py. That matters here specifically: this packet carries a ## MODIFIED block, the family reports a carriage-ledger subject only when such a block DROPS a canon body unit or scenario bullet, and it reports none — so the block still drops nothing, exactly as tasks.md 1.4 recorded at authoring time.


Three failures were found and fixed on the way here, all real

Worth listing because two of them are the interesting kind — a v1 retirement's blast radius is not only the v1 spellings, and neither was findable by grepping for workbench-chat-turn:

  1. test_doxbench_request_handling.py::test_doxbench_error_catalog_has_exactly_the_grounded_code_set — Extra items in the left set: 'unrecognized_turn_kind'. The guard working as designed: it pins the catalog's key set EXACTLY against per-era groupings that each carry their members' provenance, so a code cannot enter without somebody writing down where it came from. Answered with a _REMOVAL_CODES grouping and the grounding, not by widening the assertion (51505657).
  2. test_doxbench_blank_reason.py::test_a_builder_refusal_answers_on_the_routes_fixed_400_shape — ImportError: cannot import name '_assert_v2_refusal'. With one family served, the _assert_refusal/_assert_v2_refusal twins collapse — they differed in exactly one clause, the kind — and the merge did not follow its cross-file consumer (e86f0fea).
  3. The fixture-header envelope count, from Copilot round 1 (88f2da75).

Recorded in tasks.md 5.2 as the tenth and eleventh affected test files, beside the ninth (test_doxchat_model_intake.py) that task 5.2's own enumeration of eight also missed.

Still open: CI pytest-suite (running; the other three required checks are green on this head), a Codex pass (refused again on this PR for provider usage limits — the same ceiling as at ratification), and the § B ruling. DO NOT MERGE.

@brettheap

Copy link
Copy Markdown
Contributor Author

CI GREEN on e86f0fea — all four required checks pass

check result duration
merge-master-approval pass 21s
pytest-suite pass 21m7s
signed-execution-chain-gate pass 1m10s
wallet-validation pass 30s

NO INHERITED RED, AND THAT IS A CHANGE SINCE RATIFICATION. The ratification record § 4 disclosed main red on pytest-suite from PR #510's carriage-ledger subject (1 failed, 8363 passed, standing at 1a69b7cb, 1c1dcbbe and b7dc5909). #557 (5383e72c) fixed it on main, so this run carries no inherited failure to attribute — the green is this branch's own, and pytest-suite here also covers test_doxbench_bridge.py, which the local invocation excludes.

The earlier cancelled pytest-suite runs on 88f2da75 and 51505657 are push concurrency superseding them, not failures.


The realization is complete: tasks.md §§ 2-5, green locally and in CI

Nothing outstanding is a defect. Three things are outstanding by decision, and all three are recorded rather than resolved unilaterally:

  1. § B — the manifest sha256. Needs a reviewer's ruling. Independently corroborated by Copilot from the opposite direction. One line either way; nothing else on this branch depends on the choice.
  2. A Codex pass. Still owed — refused twice on this pull request for provider usage limits, the same ceiling that produced three refusals and zero verdicts at ratification. Blocked by nothing here.
  3. The contract-v3.0 cut (§ 6) and post-cut verification (§ 7). Untouched, deliberately: no bundle number spent, contract_bundle_version still contract-v2.5, no CHANGELOG row moved, no tag published. Two items are written into § 6 for the cutting session so it does not have to rediscover them — the stale CONTRACT_TAG/CONTRACT_REF label at contract-v2.2 (per § B), and the manifest consumption_rule prose still reading "SIX closed envelopes" (§ 6.2, from Copilot round 1).

DO NOT MERGE — pending the § B ruling and, ideally, the owed Codex pass.

@brettheap

Copy link
Copy Markdown
Contributor Author

§ B RULED by Brett Heap, 2026-09-01 in-session: BLESSED AS LANDED — the contracts/manifest.yaml per-file sha256 rides WITH this realization (the reading under which §8.1's "merged green" is possible; 45 tests fail without it), and CONTRACT_TAG stays knowingly stale at contract-v2.2, owed to the contract-v3.0 cut. The one-line revert path is closed.

Merging on his explicit word in the same ruling ("bless § B as landed, merge #562 and #564"), admin squash per the provenance pattern, sequenced after #562 (squash a951be76). All four required checks GREEN at head e86f0fe (pytest 21m, the branch's own green — no inherited red). Codex: provider-refused (pass still owed, recorded in the ratification record); Copilot round 1's three findings confirmed and handled; its two low-severity ratification-era findings remain routed to the amendment lane. The typed_proposal reachability divergence stays retained-with-measurement for the cut to dispose of.

brettheap added a commit that referenced this pull request Sep 2, 2026
…cuted, chain-attestation carried, contract-v2.6 superseded unpublished (#573)

* Cut contract-v3.0: three retirements executed, chain-attestation carried, contract-v2.6 superseded unpublished

The first MAJOR since contract-v2.0, and it is a major because the tree already
is one: a951be7 (#562) and 6856f50 (#564) merged in the same minute on
2026-09-01T19:43Z and between them removed three shapes contract-v2.5 accepted.
From that point no minor number can honestly be declared on this tree.

WHAT LANDS AT THIS MAJOR, and the changelog entry names every one:
  1. the hermes flat-key FALLBACK READ leaves the domain-factory validator,
     with LEGACY_HERMES_KEYS and the starter's emission of the keys (#562);
  2. the openworkflow-prefixed owner_layer branch leaves the same validator,
     one character wider than the entry declared (#562);
  3. the doxBench chat-turn v1 envelope family leaves the schema, with its
     deprecated_envelopes block, the dispatch, twelve fixtures and the
     byte-identity baseline (#564);
  4. add-chain-attestation tranche two, carried forward unchanged from the
     never-published contract-v2.6 (#556, 518c670);
  5. the deprecation-section moves: the chat-turn Executed row here, the other
     two plus the flat KEYS' restatement in #562;
  6. xfactory-workbench-chat-turn.schema.yaml's own contract_schema_version
     1 -> 2, the ONE integer this major moves (OQ-2, answered by measurement);
  7. doxbench_contracts.CONTRACT_TAG off its knowingly stale contract-v2.2;
  8. contract-v2.6 recorded as spent, never verifiable, never published.

AND ONE ACT THAT NAMED THIS MAJOR AND DID NOT LAND: add-binding-consumer-
identity's eight consumer:-block constraining acts. None was authored --
validate-credential-contracts.py still emits all eight codes as warnings,
measured -- so the entry is RESTATED to contract-v4.0 with the reason, under
contract-deprecation-execution's ratified "execute at the major it targets, or
restate with the reason", whose scenario makes leaving a spent target a defect
of the cut. Two more spent targets found in the tree and restated the same way,
both raised in the pull request: the context-packet-blank warning that was to
become an ERROR at contract-v2.0, and nothing else.

WHY contract-v2.6 IS SUPERSEDED RATHER THAN REPAIRED. Its cut branch forked at
518c670 and was never rebased over #562/#564, so verify-commit at bbbbeda
returns five HGR-RELEASE-DIGEST-MISMATCH findings (three of them on a normative
schema, the versioning policy and a validator) and no tag was ever created.
A digest rebuild would fix that and not the second defect: contract-v2.6
declares change class ADDITIVE (minor) on a tree that refuses three shapes
contract-v2.5 accepted, which no completion commit can cure. Brett Heap ruled
2026-09-02, in session: "Supersede: v3.0 is the completion." The number is
spent and never reused; the v2.6 entry and its inventory are left exactly as
written, as the record of what was declared.

THE ADDITIVE CLAIM IS RE-MEASURED AND SPLIT IN TWO, attributed. Chain-
attestation's content narrows nothing, and that survives the re-measurement
because its surface and the retirements' are disjoint; the narrowing at this
bundle is the three retirements' and theirs alone. Folding them into one
verdict would have made the major's own reason invisible.

THE TAG IS NOT PART OF THIS COMMIT. Bundle Realization Order step 4 -- every
gate and verify-commit rerun on the PROMOTED commit -- is the step whose
omission killed contract-v2.6, and it runs before any tag is published.

Realizes the cut half of retire-hermes-flat-keys-and-openworkflow-tokens § 4,
retire-doxbench-chat-turn-v1 § 6 and add-chain-attestation § 5.9 (re-targeted
from contract-v2.6 with the reason stated rather than edited in).
Issue #522.

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

* Fix round: OQ-2 answered NO on the realization's own evidence, three bot findings, and the release-tag-publication collision declared

FOUR THINGS, and the first is a correction of this cut's own judgment.

1. OQ-2 REVERSED, AND THE REVERSAL IS THE FINDING. The cut bumped
   xfactory-workbench-chat-turn.schema.yaml's contract_schema_version 1 -> 2 on
   a measurement that "nothing in the repository reads it as a refusal input".
   Two tests read it -- test_doxbench_contracts.py's
   test_the_widened_family_is_the_only_one_the_file_declares and
   test_doxchat_model_intake.py -- and the first carries the realization's
   REASONING beside the assertion: the envelopes this file no longer defines
   cannot be validated against it at all, so there is no shape left for a bumped
   integer to describe. The answer was already in the tree, in executable form,
   before the packet's box asked the cut for it. NO contract_schema_version
   moves at this major -- not the set's, not any manifest row's, not the file's
   -- and the chat-turn digest reverts byte-for-byte to the realization's
   350bfedc. Recorded in the CHANGELOG and both packets rather than quietly
   reverted, because a cut that overturns a ratified realization's reasoned
   decision on a bad measurement should say so.

2. THREE COPILOT FINDINGS, all taken. "contract-v3.0 shipped" -> "was CUT",
   this section's own declared/published distinction. And the inherited claim
   that the `unpublished:` sentinel is "a value no stack.yaml can declare"
   overclaims -- a repository can write the string; what stops it is
   validate-domain-openxfactory-pins.py requiring a 40-hex SHA for
   contract_ref_type: commit. Corrected in three places and named as an
   overclaim rather than silently reworded; the historical comments that made it
   are left standing as records.

3. THE release-tag-publication FAMILY READS contract-v2.6 AND HAS NO VOCABULARY
   FOR IT, declared rather than left to be hit. It reports the bundle at WARNING
   today -- and its test is ALREADY RED ON main, independently of this cut,
   which reads origin/main -- and will report it at ERROR without grading once
   the manifest moves, permanently, because the tag it prescribes is
   unperformable. The finding is TRUE and the family is not wrong; it has no
   third state between published and owes-a-tag. The cut does NOT weaken it:
   Brett ruled that v3.0 supersedes v2.6, not that a checker should stop
   objecting to abandoned bundles. Filed as openxFactory issue #575 with the
   five things a disposition owes, and declared in the CHANGELOG.

4. The inventory rebuilt over all of it. 283 entries in, 283 out.

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

* Fix round 2: two Copilot findings — the stale bump sentence, and the sweep sentence this cut makes false

1. contracts/CHANGELOG.md said the cut "moves that digest once more, for the
   contract_schema_version bump above". It does not: fix round 1 answered OQ-2
   NO and reverted the bump, so SCHEMA_DIGESTS keeps the realization's 350bfedc
   and what this cut changes is the LABEL beside it -- which is the whole of the
   repair, the label having been the incoherent half. Caught by Copilot against
   the fix round that created it, which is the round working.

2. doxbench_contracts.py's sweep note -- "NO `unpublished:` VALUE IS ASSIGNED
   ANYWHERE in the repository" -- is FALSE from this cut, which assigns
   `unpublished:contract-v3.0`. The fix block below it already said so; Copilot
   read the sentence and not the block three paragraphs later, which is exactly
   how a reader meets it. The pointer is now AT the sentence. The sentence
   itself is annotated rather than rewritten, on its own closing rule: it is the
   record of what was true at the commit it describes, and editing it to match
   today would destroy the evidence that the sweep happened. It becomes true
   again when the tag is published and the ref resolved -- the post-merge step
   the v1.45 residue is the argument for not deferring.

Inventory rebuilt: 283 entries in, 283 out.

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

* Fix round 3: the declared/published distinction, in the two places that still blurred it

Copilot's round-3 finding, and it is the same class as round 1's: this repository
distinguishes a bundle that is DECLARED from one that is PUBLISHED (a bundle is
not published until its tag exists), and two sentences written by this cut used
the publication word for the declaration.

  contracts/manifest.yaml:1731 -- "contract-v3.0 ships here" is now
  "contract-v3.0 is DECLARED here (declared, not published -- a bundle is not
  published until its tag exists, and this row is written at the cut)". The
  sentence sits inside the context-packet-blank restatement, where the whole
  point is that contract-v2.0 SHIPPED without taking a narrowing it announced,
  so blurring the two words there is worse than elsewhere.

  docs/contract-versioning-policy.md:406 -- "until that major shipped without
  any of the eight acts" is now "was CUT". Same correction, same reason: the
  consumer-block entry's restatement turns on the target ARRIVING, which it
  does at the declaration.

Swept for the rest: no other sentence in this cut says a contract-v3.0 that has
no tag has shipped.

Inventory rebuilt: 283 entries in, 283 out.

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

---------

Co-authored-by: Claude Fable 5 <[email protected]>
@brettheap
brettheap deleted the change/realize-retire-doxbench-chat-turn-v1 branch September 2, 2026 18:56
brettheap added a commit that referenced this pull request Sep 18, 2026
…e, and ITS delta promotes (#1066)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Refs #656 (stays OPEN). CLAIM [`5698423421`](#656 (comment)).

**RE-POINTED TO `main`** (2026-09-18, after #1056 → #1057 → #1060 → #1065 all landed by merge commit). It was stacked on `change/rehome-lens-document-selection`; it is not any more, and the full gate runs. **Rule 6 applies** (this touches `openspec/changes/` and README's OpenSpec Records block): the landing lane posts the LANDING line first.

# § 6.2 — the fifth box, and the only one that is not a re-home

`split-opendox-two-layer-product` `tasks.md` § 6.2 and `design.md` § D9 use the same words: this change *"archives in `openxFactory` on its own evidence, and only its FORWARD half — the surviving `-v2` family's requirements — re-homes to openDox."*

**The packet's own spec counts FOUR, not five.** *"Under RULING Q6 those **four** changes stop where they stand, so their `## ADDED` blocks never promote HERE."* This is the fifth — the exception that sentence is counting around. Its realization **merged in this repository** (PR #564, squash `6856f502`) and its `contract-v3.0` cut **is published** (annotated tag `59f4f51f`, peeling from the remote to `ff9ed815`). So it archives the ordinary way, and **its delta PROMOTES.**

## What is in the diff

| | |
| --- | --- |
| `openspec/changes/retire-doxbench-chat-turn-v1/` → `openspec/changes/archive/2026-09-16-…/` | 6 files, `.openspec.yaml` included, a true rename — verified `git ls-tree HEAD openspec/changes/` carries nothing at the old path |
| `openspec/specs/ideation-dashboard/spec.md` | **+224 lines, 0 deletions** — **157** the promotion, every byte taken from the ratified delta by script; **67** the dated ERRATUM added below the first requirement, which is marked as not part of the ratified text and says so in its first line. The erratum carries THREE corrections, each measured on the landed text: the `typed_proposal` clause (§ 2.1), the v1-served scenario bounded by the removal this cut performs, and the short release count — the last two found by Copilot at `c431a3e3`. Every figure here is RE-MEASURED where it is written, never adjusted from the one before it: **157** with no erratum, **186** with the first correction, **213** with all three, **224** after the third was itself corrected — Copilot having caught at `91644a2d` that it still counted the unpublishable `contract-v2.6` as a release. The published run from the deprecation to the removal is **twenty** releases, measured by TAG (`git ls-remote --tags origin 'contract-v*'`), the versioning policy § *`contract-v2.6` — Instance Six* ruling an untaggable bundle *"permanently unreleased"*. A stale insertion count in an evidence table is the same defect this pull request keeps correcting in other people's prose, and it has now been this pull request's defect twice. |
| `review/archive-2026-09-16.md` | the closure record, `Status: record` |
| `README.md` | active bullet retired (89 lines), archived-ledger entry added newest-first |
| `tests/sequenced_after/corpus-ledger.yaml` | the one live coupling — `--seed-ledger`, in the commit that follows this PR's number |

`tasks.md` is **not edited and no box is ticked**: in this lane every `tasks.md` tick rides the bookkeeper's single amendment, and this record exists so that amendment can tick from a measurement rather than a memory.

## The promotion, measured both ways

Every promoted byte is taken from the ratified delta **by script**, not retyped: both `## ADDED` requirements appended, and the `## MODIFIED` block replacing the promoted requirement of the same title — which gains three paragraphs and three scenarios and loses nothing, so the diff is insertions only.

| doc-health `promotion-fidelity`, `--single-repo` | errors |
| --- | ---: |
| this closure's head, **move alone, no promotion** | **23** |
| this closure's head, **as pushed** | **20** |

Twenty is what the four re-homed closures already owe, and **none of the twenty is this packet's**. So this change takes **no** `health/dispositions.yaml` entry, and the aggregation companion ([xFactory #454](opensoft/xFactory#454)) carries a header comment forbidding one by analogy.

**And one block can land nowhere else.** The forward half carries two of the three requirements into `opensoft/openDox` as `carry-doxbench-chat-turn-v2-family` ([openDox-spec #15](opensoft/openDox-spec#15)). The third — *The doxBench chat-turn v1 envelope family is REMOVED at `contract-v3.0`* — travels nowhere, openDox having removed nothing. Closed the way the other four closed, that ratified requirement would exist in **no** promoted specification anywhere.

## The seven open boxes: six discharged BY MEASUREMENT, one named

Every command and its output is in the closure record.

**7.1 — the validator at the tag. MET, three conjuncts.** The tag read *from the remote* (`git ls-remote --tags origin contract-v3.0` → `59f4f51f…`), checked out detached: `0 error(s), 0 warning(s)`; `--strict` exit 0; and a packaged instance whose `kind` is the **retired** `workbench-chat-turn` refused `[kind] unrecognized document (no known kind, no 'possibles_register' section)`.

**7.2 — the fallback against the RUNNING SERVE, both directions. PERFORMED.** An earlier session reported this box no longer performable here, because § 5.2's shed (`cc4ae9d3`, PR #940) took `serve.py` off `main`. **That report was about the wrong tree**: § 7.1 already directs the verification AT THE TAG, and the tag still carries the serve. Taken there, on a real loopback `ThreadingHTTPServer` driven over a real socket by `http.client` — the suite's own `build_server` harness, so the thing answering is the server and not a handler called in-process:

```
DIRECTION 1  kind="workbench-chat-turn" (RETIRED), client_turn_id="turn-0001"   -> HTTP 400
{"schema_version": 1, "kind": "workbench-chat-turn-v2-failure", "client_turn_id": "turn-0001", "error": "unrecognized_turn_kind", "message": "this route does not serve the chat-turn kind the request declared"}

DIRECTION 2  same kind, NO wire-valid client_turn_id                            -> HTTP 400
{"ok": false, "error": "unrecognized_turn_kind", "message": "this route does not serve the chat-turn kind the request declared"}

CONTROL      kind="never-was-a-kind", with identity                             -> HTTP 400
… byte-for-byte direction 1's body but for the correlation key the client itself sent
```

Direction 1 is the surviving family's closed failure envelope; direction 2 the pre-identity shape with **no fabricated `client_turn_id`**, which is the half the requirement says must stay unchanged. The injected model port recorded **zero calls** in all three — the refusal never reaches a provider. The control is the requirement's central claim answered on the wire: *"after the removal a retired kind and a kind that never existed are the same fact about the wire."*

**8.1 — merged, and the merge commit's suite. HALF MET, AND THE OTHER HALF IS NOT THIS PACKET'S.** §§ 2-5 merged: PR #564, squash `6856f502`, an ancestor of `main`. Its `pytest-suite` (check run `100000861624`) is **failure**: `1 failed, 8576 passed` — one assertion, `assert 18 == 19` in `tests/sequenced_after/test_sweep.py::test_the_live_sweep_reproduces_the_AUTHORING_measurement`.

It is **proven inherited, not argued to be**. The same assertion fails identically at `a951be76`, the merge's **parent**, run here in a detached worktree at that commit — one commit before this packet's bytes reached `main`. `main`'s own remedy `d308c012` (PR #568) re-derives why, per commit: PR #563's archive of `add-release-tag-publication-check` moved `active_co_modified` 19 → 18, PR #567 then landed a test carrying an authoring measurement taken three minutes earlier, and `6856f502` was merely the first pytest run the concurrency group did not cancel.

The proposal disclosed an inherited red in advance and attributed it to *"PR #510's carriage-ledger subject"*. **That attribution is not what stood at the merge**, and the record says so rather than smoothing it; the class the proposal named — a carriage-ledger count pinned in a test, moved by somebody else's archive — is exactly right.

**8.3 — `openspec validate --all --strict`. MET.** `validate-openspec-cli-pin.py --all` → exit 0, `Totals: 101 passed, 1 failed (102 items)`, **0 UNDISPOSITIONED failures**. The one failure is the accepted `add-chain-attestation` exception, which reads the same on `main`; the item count falls 103 → 102 because this packet leaves the active corpus.

**8.4 — the 4.7 run at `0 error(s), 0 warning(s)`. MET, with an erratum.** § 4.7's parenthetical records *"81 negative example(s)"*; the validator says **80** — at `6856f502`, the very commit 4.7 measured, and at the tag, with `examples/ideation-dashboard/` byte-identical between them. The box counted **files** and the validator counts **checks**: 81 files, of which `negative/duplicate-turn-pair/` is two files forming **one** paired check. The line § 8.4 asks for is exact.

**8.5 — the seven refusal-class dispositions. MET, in § 4.4's own table.** All seven re-expressed as named `-v2` fixtures, **zero stated losses**; all seven present at the tag and inside the 80 the validator confirms invalid.

**1.8 — the adversarial review. OPEN, and routed by the packet itself**: *"A CODEX PASS REMAINS OWED and is blocked by nothing in this packet — it and those four route to the amendment lane, not to doubt about the ratification."* Named here so the move does not lose it.

## Why the governed archive route is not available

`scripts/proposal-support.py archive`'s `archive_change` raises **`change has incomplete tasks`** on any `- [ ]` line *before* it ever resolves the CLI, and this packet has seven. The pinned CLI (**1.12.0**) does expose `--skip-specs` — that is not the obstacle, and it would be the wrong flag here anyway: **this closure wants the promotion.**

## Coupling sweep

`grep -rn "retire-doxbench-chat-turn-v1" --include='*.py' --include='*.yaml' --include='*.yml' --include='*.json'` over the tree: thirty hits outside the packet, **exactly one a live coupling** — the sweep-ledger row. The rest are historical prose in test comments naming the change as the authority for a re-pin already taken; the move falsifies none of them. `_LEDGER_SUBJECTS` does **not** move, exactly as § 6.3's closure predicted in the constant's own comment. No `openspec-cli-pin.yaml` disposition and no `target-release-register.yaml` entry exist for this id.

## Gate

CI on this repository runs `pull_request: branches: [main]` only, so a stacked PR shows lane-line, merge-master-approval and Sonar and cannot show a full green gate until its base is re-pointed. The local evidence above stands in until then.

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


Lane: openxfactory-4
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