Skip to content

Cut contract-v3.0: the first major since v2.0 — three retirements executed, chain-attestation carried, contract-v2.6 superseded unpublished - #572

Closed
brettheap wants to merge 1 commit into
mainfrom
cut/contract-v3.0
Closed

brettheap wants to merge 1 commit into
mainfrom
cut/contract-v3.0

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

DO NOT MERGE WITHOUT THE OWNER'S WORD, AND DO NOT TAG FROM THIS BRANCH. The
annotated tag is a separate post-merge act from an independent clone, taken only
after § Bundle Realization Order step 4. That is the step whose omission made
contract-v2.6 unpublishable, and it is enumerated below.

The first MAJOR since contract-v2.0. It is a major because the tree already
is one
: a951be76 (#562) and 6856f502 (#564) merged in the same minute,
2026-09-01T19:43Z, and between them removed three shapes contract-v2.5
accepted. From that moment no minor number can honestly be declared here — which
is the deeper reason contract-v2.6 is superseded rather than repaired.

Brett Heap ruled, in session on 2026-09-01/02: execute the three #522
retirements at contract-v3.0; "cut v3.0 after v2.6 alone" (anchoring rides
3.x later); and "Supersede: v3.0 is the completion".


The fresh count, taken at the branch point

Branched off origin/main at bbbbeda984353ebaeb67d3e2bb1c73fcb7bac140 and
re-fetched immediately before the inventory build; origin/main had not moved.

fact reading
contracts/manifest.yaml:3 contract_bundle_version: contract-v2.6
contracts/releases/ inventories through contract-v2.6
git ls-remote --tags origin 'refs/tags/contract-v*' contract-v1.7 … contract-v2.5, no contract-v2.6
contracts/CHANGELOG.md headed at contract-v2.6; no Unreleased block
git ls-remote origin 'refs/tags/contract-v3.0' empty — the name is free

contract-v2.6 is declared and unpublishable (below), so the next number is not
contract-v2.7: that would carry the same class-rule defect. The next available
number of the class the tree actually requires is contract-v3.0.

Every act that lands at this major

The changelog entry opens with this table, written in both directions, because
the § Deprecations discipline "THIS ENTRY NAMES EVERY ACT THAT LANDS AT THAT
MAJOR"
is worthless if it is only true of the acts that succeeded.

# act where class
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 a951be76 REMOVAL
2 the openworkflow-prefixed owner_layer branch leaves the same validator, with its docstring line #562 a951be76 REMOVAL
3 the doxBench chat-turn v1 envelope family leaves the schema, with deprecated_envelopes, the runtime and validator dispatch, twelve fixtures and the byte-identity baseline #564 6856f502 REMOVAL
4 add-chain-attestation tranche two — eight new schemas, four extended additively, the corpus and the extended reader #556 518c670b, carried from the never-published contract-v2.6 ADDITIVE
5 the deprecation-section moves — Executed rows for 1–3 and the flat KEYS' restatement #562 (1, 2, restatement) + this PR (3) policy record
6 xfactory-workbench-chat-turn.schema.yaml's own contract_schema_version 1 → 2 this PR metadata
7 doxbench_contracts.CONTRACT_TAG off its knowingly stale contract-v2.2 this PR consumer pin
8 contract-v2.6 recorded spent, never verifiable, never published this PR release record

…and one act that named this major and did NOT land

add-binding-consumer-identity's In Force entry read "DECLARED at
contract-v2.4 and CONSTRAINED at contract-v3.0"
and "removal target
contract-v3.0"
. Not one of the eight constraining acts was authored —
scripts/validate-credential-contracts.py still emits all eight codes as
WARNINGS, measured at this tip — and the requiredness among them is separately
gated on a degraded fetch-identity mode that does not yet exist in the family.

It is RESTATED to contract-v4.0 with the reason, under the ratified
requirement "A deprecation is EXECUTED at the major it targets, or its entry is
RESTATED with the reason it stays"
(retire-hermes-flat-keys-and-openworkflow-tokens,
specs/contract-deprecation-execution/spec.md), whose scenario "The target
arrives and the removal is not taken"
makes leaving the spent target "a
defect of that cut rather than a neutral omission"
. A restatement refuses
nobody: moving a removal later can only widen what a major accepts. This is a
judgment the cut took on ratified text and it is flagged for the owner's word at
merge
— the alternatives were to leave a false sentence standing at the major
that exists to close #522, or to execute eight acts nobody wrote.

Two smaller spent targets were found in the same sweep and restated the same
way, both raised here rather than absorbed:

  • contracts/manifest.yaml's xfactory-workbench-chat-turn consumption_rule
    announced that the context-packet-blank warning "becomes an ERROR at
    contract-v2.0"
    . It did not, and does not here —
    scripts/validate-ideation-dashboard-contracts.py:1533 still calls
    f.warn(...). Restated to contract-v4.0 with the reason (nothing authored
    it; the warning has been served since contract-v1.40, so no new window is
    owed). This one sits OUTSIDE § Deprecations Currently In Force, which is
    why the mechanism never saw it — arguably a scope note for the
    deprecation-target-currency guard All three contract-v2.0 deprecations remain In Force at v2.3 with no Deprecations Executed row #522 still owes.
  • scripts/ideation_dashboard/doxbench_contracts.py's module docstring still
    said the chat-turn file holds "six closed envelopes". Corrected.

The contract-v2.6 disposition

Modelled on this changelog's § contract-v2.3 disposition, but the fact is
stronger and so is the disposition: v2.3 was untagged but VERIFIABLE, and its
tag was published four days later at the commit the targeting rule names.
contract-v2.6 can never be.

The class-rule reasoning, and the Breaking clause discharged per removal

§ Change Classes, Breaking (major) requires three things of every removal, and
the entry discharges them per removal rather than in aggregate, because the
three served their warnings at three different releases.

removal served its warning minor at validator rejects the old shape only at the major
flat-key fallback read contract-v1.1, forty-plus minors; the refused shape IS the warned shape (a layers-less stack, and nothing else) by REPLACEMENT, not deletion — one explicit error names the missing/non-list hermes.layers, because deleting the arm alone would have let such a stack fall through to an EMPTY layer map and produce no finding at all, a silent WIDENING at a major
openworkflow token branch contract-v1.1, which introduced xfactory and began warning on the prefix in the validator itself, through the general undeclared-layer rule; a pinned consumer reads the branch at its own pin
chat-turn v1 family contract-v1.34, machine-readably, and the warnings were still firing at the removal: 0 error(s), 4 warning(s) on main at af746459, 0 error(s), 0 warning(s) here by the closed oneOf plus the delegated validator, with the deprecated_envelopes READER deliberately KEPT (it reports {} now) so the NEXT deprecation is not inert

Who this major actually refuses, measured: all five supported consumers
declare hermes.layers; there is not one openworkflow-prefixed owner_layer
in a workflow gate across ten reachable repositories; the only v1 chat-turn
instances were openxFactory's own four fixtures. This major refuses shapes,
not repositories
— which is why it may be taken, and not a reason to have
taken it silently.

The ADDITIVE claim is re-measured and split in two, attributed. The v2.6
entry measured "nothing narrows" against a tree in which #564 had not yet
removed the v1 schema. Re-measured over what landed: (1) chain-attestation's
content narrows nothing, which survives intact because its surface and the
retirements' are disjoint; (2) the narrowing at this bundle is the three
retirements' and theirs alone
. Folding them into one verdict would make the
major's own reason invisible.

OQ-1 and OQ-2, answered at the cut

OQ-1 — both packets ride this major. Decided for the cut by the merges: the
two realizations landed in the same minute, so any bundle after that point
carries both narrowings whether it names them or not.

OQ-2 — exactly ONE integer moves, and which one is a measurement.

  • The contract SET's contract_schema_version does not move.
    scripts/validate-domain-openxfactory-pins.py:92 hard-codes
    "contract_schema_version": 1 as the value every domain stack.yaml must
    declare and ERRORS on any other; all five supported consumers declare 1.
    Moving it would ERROR the entire supported population at a major with no
    warning minor ever served. contract-v2.0 moved it none either.
  • The manifest ROW's schema_version does not move — the
    consent-instrument precedent keeps the row at 1 while the file's own integer
    moves.
  • contracts/schemas/xfactory-workbench-chat-turn.schema.yaml's own
    contract_schema_version moves 1 → 2.
    It is the one contract file whose
    shape narrowed, and the estate bumps this integer even for growth. Measured
    first: nothing in the repository reads it as a refusal input. Every envelope's
    schema_version: {const: 1} is untouched.

CONTRACT_TAG and typed_proposal

CONTRACT_TAG → contract-v3.0; CONTRACT_REF → unpublished:contract-v3.0.
The pin was already incoherent before this PR touched it: #564 moved
SCHEMA_DIGESTS[CHAT_TURN_SCHEMA_FILE] to the post-removal bytes and knowingly
left the label at contract-v2.2, so the module pinned bytes belonging to no
published release. The sentinel is this module's own established mechanism, used
across the v1.34/v1.38/v1.40/v2.2 realization branches, spelled so no
stack.yaml can declare it. Resolving it post-tag is a listed post-merge
step
— the contract-v1.45 residue stood three days, and that is what the
obligation exists to avoid repeating.

typed_proposal: RETAINED, unreferenced, with the reason stated. The
measured closure puts it OUTSIDE the surviving family and the ratified text
names it as retained on that false premise. Removing it here would be a
narrowing of a published contract file that no deprecation entry announced and
no minor warned on
— forbidden at this major as squarely as refusing the
co-resident flat keys is. A removal owes its own deprecating minor first. The
disposition is recorded in the changelog, in the Executed row, and at the
definition's own site, so the false reachability claim is not what a reader finds
standing at the major.

verify-commit at this head

$ python3 scripts/validate-contract-release.py verify-commit --commit HEAD
release verify-commit: pass
  inventory=contracts/releases/contract-v3.0.digests.yaml
exit=0

The inventory was built LAST by the canonical
build --tag contract-v3.0 --output contracts/releases/contract-v3.0.digests.yaml
after every other edit, never hand-edited: 283 entries in, 283 out, membership
and order unchanged
, seven digest lines moving —
contracts/CHANGELOG.md, contracts/README.md, contracts/manifest.yaml,
contracts/schemas/xfactory-workbench-chat-turn.schema.yaml,
docs/contract-versioning-policy.md,
scripts/validate-ideation-dashboard-contracts.py and
tests/intent-compliance/test_release_boundary.py.

verify-promotion is deliberately not claimed green here: it requires the
candidate to be an ancestor of remote main and compares release-surface blobs
between candidate and main, both of which a cut branch fails by construction.
It is a POST-MERGE check and it is the first post-merge step below.

Post-merge plan — in this order, and step 1 is the one that killed v2.6

  1. § Bundle Realization Order step 4 — rerun on the SQUASH. Promotion
    creates a different commit and a different tree. From a fresh independent
    clone at the squash: verify-commit --commit <squash>, then
    verify-promotion --commit <squash> --remote origin --tag contract-v3.0,
    then the full pytest-suite. If the squash's tree differs from this
    candidate's in any release-surface member, the inventory is rebuilt in a
    completion commit and everything reruns — no tag until it is green.
  2. Then tag — annotated contract-v3.0 on the squash, which must be "the
    EARLIEST FIRST-PARENT COMMIT on published main that DECLARES the bundle and
    at which verify-commit PASSES."
  3. Verify from an independently refreshed checkout —
    verify-tag --remote origin --tag contract-v3.0 plus verify-commit at the
    peeled target.
  4. Resolve the consumer sentinel — CONTRACT_REF /RELEASED_REF from
    unpublished:contract-v3.0 to the commit contract-v3.0 dereferences to,
    immediately, not three days later.
  5. Then and only then the archives — retire-hermes-flat-keys-and-openworkflow-tokens
    §§ 5/7 and retire-doxbench-chat-turn-v1 §§ 7/8 clear on the published tag
    plus the five-consumer validator run; add-chain-attestation stays ACTIVE
    regardless, on its §5.1–5.3 machinery gates.
  6. Still open and not this PR's — add-chain-attestation §5.8's canary
    pair
    (a dropped runner attestation; a PR with no signed open decision),
    which needs the published tag and a real pull request; and No gate asserts that a declared contract bundle has a published tag — the gap has recurred twice and was found by hand both times #528, the
    missing check that no gate anywhere asserts a declared bundle has a published
    tag. This cut is instance six.

Local gates

Recorded in a comment on this PR.

🤖 Generated with Claude Code

…ied, 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]>
Copilot AI lite review requested due to automatic review settings September 2, 2026 01:31

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

🟡 Changes recommended

README.md contains an incorrect PR/squash reference for the retire-doxbench-chat-turn-v1 realization, which should be corrected before approval.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR performs the contract-v3.0 contract bundle cut (major), carrying forward chain-attestation tranche-two content, executing three previously-deprecated retirements, and updating the release surface (manifest/changelog/release inventory) and consumer pinning to reflect the new bundle version.

Changes:

  • Cut contract-v3.0: bump contracts/manifest.yaml, add the contract-v3.0 changelog entry, and add contracts/releases/contract-v3.0.digests.yaml.
  • Update the doxBench chat-turn contract to reflect the v1 envelope retirement (including bumping the file’s contract_schema_version to 2) and repin doxBench consumer constants/digests to contract-v3.0.
  • Restate / record policy and task artifacts for the major cut (including moving/adding executed deprecation records and updating boundary tests to recognize contract-v3.0).
File summaries
File Description
tests/intent-compliance/test_release_boundary.py Extends release-boundary classification to include contract-v3.0.
tests/ideation-dashboard/test_doxbench_contracts.py Updates pinned doxBench release ref/tag and chat-turn digest to contract-v3.0.
scripts/ideation_dashboard/doxbench_contracts.py Repins doxBench contract constants/digests and updates module documentation for the v1 envelope retirement and new cut.
README.md Updates the “Active changes” index to reflect the contract-v3.0 cut and related realizations.
openspec/changes/retire-hermes-flat-keys-and-openworkflow-tokens/tasks.md Marks the contract-v3.0 cut tasks as done and records cut-time decisions/evidence.
openspec/changes/retire-doxbench-chat-turn-v1/tasks.md Adds a post-merge addendum and marks the contract-v3.0 cut items as done with evidence.
openspec/changes/add-chain-attestation/tasks.md Retargets the previously-claimed v2.6 cut record to contract-v3.0 and records the supersedence rationale.
docs/contract-versioning-policy.md Moves the doxBench v1 deprecation to Executed and restates the consumer: constraint target to contract-v4.0 with rationale.
contracts/schemas/xfactory-workbench-chat-turn.schema.yaml Bumps per-file contract_schema_version 1 → 2 with explanatory cut-time commentary.
contracts/releases/contract-v3.0.digests.yaml Adds the contract-v3.0 release digest inventory (new file).
contracts/README.md Updates the chat-turn schema row to reflect v1 removal at contract-v3.0 and the schema version bump.
contracts/manifest.yaml Bumps contract_bundle_version to contract-v3.0 and refreshes the chat-turn schema digest/prose.
contracts/CHANGELOG.md Adds the contract-v3.0 BREAKING entry and records contract-v2.6 as superseded/unpublished.
Review details
  • Files reviewed: 13/13 changed files
  • Comments generated: 1
  • Review effort level: Lite

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

Comment thread README.md
Comment on lines +544 to +546
`retire-doxbench-chat-turn-v1`. **REALIZATION §§ 2/3/6.1 IS MERGED** (PR #562,
squash `a951be76`) and **THE `contract-v3.0` CUT IS TAKEN** — § 4 ticked with
its evidence, OQ-1 decided BOTH (the two realizations merged in the same
@brettheap brettheap closed this Sep 2, 2026
@brettheap
brettheap deleted the cut/contract-v3.0 branch September 2, 2026 01:40
@brettheap

Copy link
Copy Markdown
Contributor Author

Superseded by #573 — same branch, rebased onto the final integration point. A force-push to cut/contract-v3.0 is refused by repository rule, so the branch was deleted and re-pushed, which auto-closed this PR and could not be reopened. No content is lost: #573 carries the same cut rebased onto e01561c5 (PR #570, which landed ninety minutes after this PR's branch point and declared two more acts "at contract-v3.0"), with the reconciliation that landing forced. This PR was never merged and never tagged.

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.

All three contract-v2.0 deprecations remain In Force at v2.3 with no Deprecations Executed row

2 participants