Repository navigation
PROPOSAL (Status: draft, held for ratification): add-composition-drift-cascade — encode Q8's fail-closed bundle as two core deltas - #3
Conversation
Q8 was ruled a fail-closed bundle on 2026-08-26. Its second limb put mechanical cascade enforcement on the openxwallet / openxwallet-agent-profile core deltas, and the §8.1 Addendum moved their home here — both capabilities left the openxFactory corpus at the split-openxwallet-repo carve. The gap those deltas close: rule (p) declared-change-not-revoked compares the composition record against ITSELF. Nothing walks from grants_state: revoked_on_composition_change to the wallet's actual grant records, the way _revoked_ancestor already walks parent_grant_ref and holder standing. So a record can declare its identity ended while every grant it issued stays active, and the required check stays green. Two MODIFIED requirements, both restated in full with existing scenarios intact. The core gains a recorded reason class that is never consulted to narrow propagation, a recorded propagation edge, the rule that a revoked grant never returns to active, and a neutral obligation to reach a human — neutral because openXwallet is pinned by consumers and must not name openxFactory's escalation machinery as its own. The profile gains the DRIFT class, the rule that declaring is not revoking, human-ratified reissuance, and exact model versions only. Every obligation is stated over carriers the grant schema already has: parent_grant_ref, state, and revocation.propagated_from. No contract byte moves, no validator line changes, no version is reserved. Status: draft. Held for Brett's ratification, and it carries one question UP rather than answering it down: limb (d) said family pinning may be revisited only through a core delta that can police it, and a core delta is being authored now. Both exits are costed in design.md; neither is taken. Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
Pull request overview
This PR adds an OpenSpec change proposal (add-composition-drift-cascade) that encodes Q8’s fail-closed “composition drift cascade” ruling as two MODIFIED requirement deltas (core openxwallet and openxwallet-agent-profile), plus the accompanying proposal/design/tasks documentation and OpenSpec metadata. No contracts, validator code, or contract bytes are changed.
Changes:
- Introduces two spec delta documents that restate and extend the “revocation propagation” and “composition change revokes grants” requirements with new obligations and scenarios.
- Adds governance documentation (proposal, design rationale, and tasks ledger) describing the ratification gate and the declared (but not performed) realization surface.
- Adds OpenSpec change metadata (
.openspec.yaml) tying the change back to the upstream ruling.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| openspec/changes/add-composition-drift-cascade/.openspec.yaml | Defines change metadata and provenance back to the upstream Q8 ruling. |
| openspec/changes/add-composition-drift-cascade/design.md | Captures rationale, reissuance policy shape (proposed), and the carried open question. |
| openspec/changes/add-composition-drift-cascade/proposal.md | Proposal front-matter + narrative: scope, non-goals, impact, and draft status. |
| openspec/changes/add-composition-drift-cascade/specs/openxwallet/spec.md | Core delta: expands revocation propagation semantics, inspectability, non-reactivation, and escalation obligation. |
| openspec/changes/add-composition-drift-cascade/specs/openxwallet-agent-profile/spec.md | Profile delta: makes composition drift a DRIFT-class revocation that must be reflected in actual grant records, plus explicit reissuance and exact-version pinning. |
| openspec/changes/add-composition-drift-cascade/tasks.md | Tasks ledger: ratification gate plus declared downstream realization work (validator cascade, fixtures, register reader validation). |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| --- | ||
| code_surface: openXwallet neutral spec text only in THIS change (two MODIFIED requirements). A code surface is DECLARED and not performed here — a validator cascade rule walking composition drift into the wallet's actual grant records, plus whatever carrier work that rule needs. Per `release-realization`, this change archives only on merged, green realization evidence for that declared surface. | ||
| target_release: unallocated. Version numbers — per-file `contract_schema_version`, `contract_bundle_version`, and the `wallet-v<major>.<minor>` tag — are allocated at realization and never reserved in a proposal (AGENTS.md, "a release is five coordinated values"). |
| Per `release-realization`, this change carries a code surface and archives only | ||
| on merged, green realization evidence for it. Nothing below is done in this | ||
| change, and nothing below may start before 2.1. |
Brett Heap, operator authority, ruled in-session 2026-08-28: "ratify #50 and #3, then merge #51". Status: draft -> ratified with a ratification header and record section. Also resolves the carried model-family-pin open question in both proposal.md and design.md, as proposed: the exact-version rule stands, family pins remain a validation failure, and admitting one would be a new change. Co-Authored-By: Claude Fable 5 <[email protected]>
|
| Status: ratified | ||
| Ratified: 2026-08-28 by Brett Heap (operator authority) — in-session ruling | ||
| ("ratify #50 and #3, then merge #51"); this change's declared realization | ||
| surface remains unallocated and is not itself a pull request held on this | ||
| ratification. |
| - [ ] 2.1 **[OPERATOR]** Brett Heap ratifies this proposal, design and both | ||
| spec deltas. `Status: draft` until then, and **no realization work in | ||
| §3 may begin before this box is checked**. The underlying Q8 ruling | ||
| (2026-08-26) is already made; what awaits ratification is this ENCODING | ||
| of it, plus the reissuance policy proposed in `design.md`. |
| approved_by: pending — held for Brett Heap (openxFactory operator authority) | ||
| approved_on: null |
…c2ce53d, the release merge that carries the wallet-v1.6 tag (ruled) The `openWallet` gitlink and `commit:` in contracts/openwallet-pin.yaml move together, from 1c68717f1ae4 (the merge of opensoft/openWallet#2) to b0af7c2ce53d63786a08a20aa3602a6f90345606, the merge of opensoft/openWallet#7 (task 4.9: the wallet-v1.6 release commit, a manifest bump, contracts/releases/wallet-v1.6.digests.yaml and the CHANGELOG). Brett Heap ruled "Release commit on b4580d16, tag its merge (Recommended)". The annotated tag `wallet-v1.6` is on that merge (`git cat-file -t wallet-v1.6` is `tag`, and `wallet-v1.6^{commit}` is b0af7c2ce53d), so `contract_bundle_tag` goes from null to `wallet-v1.6`. It stays a label beside the commit, never the referent. The comments above both fields say so. What did not move: `legs.code.commit` stays 72313daab1f2, because the release commit moves no gitlink. The eight `files:` digests stay, recomputed 8 of 8 from openWallet/code, and so do the six `pinned_by_commit_only:` members, the carve commit, and every script and test. Between the two pins the root's spec gitlink moved from 15c15bbd to 1924500 (opensoft/openWallet#4 and #5); this repository neither records nor initializes it (design.md D6). The move also takes in the root's proof, docs/byte-identity-wallet-v1.6.md (#3, #6). This commit is the revision measured. The gate results and the new Evidence row follow in the next commit, which is docs only. Lane: openXwallet-3 Co-Authored-By: Claude Opus 5.5 <[email protected]>



Do not merge until Brett ratifies
Status: draft. This is proposal-stage governance work held for Brett Heap's ratification. The underlying ruling is already made — openxFactory's ratifiedadd-wallet-carried-review-authority, Q8, ruled 2026-08-26 as a fail-closed bundle (rulings-2026-08-26.md). What awaits ratification is this encoding of it, the reissuance policy proposed indesign.md, and the carried question below.The §8.1 Addendum put the authoring here: "S3 and S5's
openxwallet/openxwallet-agent-profilecore deltas are authored in openXwallet from here on" — both capabilities left the openxFactory corpus at thesplit-openxwallet-repocarve.No code. No contract bytes. No validator change.
contracts/andscripts/validate-openxwallet.pyare untouched. Six new files underopenspec/changes/add-composition-drift-cascade/, nothing else.The gap being closed
Composition drift is a self-declaration nothing checks against reality. Rule (p)
declared-change-not-revoked(validate-openxwallet.py:1233-1244) checks only that the composition record does not contradict itself. Nothing walks fromgrants_state: revoked_on_composition_changeto the wallet's actualxfactory_wallet_grantrecords — the way_revoked_ancestor(:896-911) already walksparent_grant_refand holder standing for the other two revocation paths. So a record can declare its identity ended while every grant it issued staysactive, and the requiredwallet-validationcheck stays green.The two MODIFIED deltas
Both reproduce the promoted
### Requirement:heading byte-for-byte and restate the full body plus all scenarios as they read after the change, keeping the two existing scenarios each and adding four. This is the repository's first## MODIFIED Requirementsblock — the one archived change used only## ADDED.A.
openxwallet→Revocation propagates through the chain. Gains: revocation records a reason class that is recorded but never consulted to narrow propagation, so a DRIFT revocation cascades exactly as a CAUSE one does (limb b — stated in the CORE because the agent profile explicitly delegates "through the core's revocation-propagation rule"); every propagated revocation records the edge it descends from, so the chain is inspectable rather than inferred; a revoked grant never returns to active — resumption is a NEW grant recording what it supersedes and what it was issued against (limb a's core half); and a propagation leaving a holder with no active standing is surfaced to the responsible human through the consuming capability's declared escalation path, not discharged by a log line (limb c).Limb (c) is stated neutrally on purpose: openXwallet is a product other repositories pin, so it must not name openxFactory's Human Escalation Contract as its own mechanism. The HEC decision-ready packet is cited in
design.mdas the house shape, and kept out of the requirement text.B.
openxwallet-agent-profile→A composition change revokes the agent's grants immediately. Gains: the revocation a composition change causes is DRIFT-class and cascades under the core rule exactly as CAUSE does — derived authority never survives an unattested drift;grants_state: revoked_on_composition_changeis a declaration and not the revocation — the outstanding grant records must carry the revoked state with a revocation naming the composition event, and a declaration standing beside an active grant to that wallet is a validation failure (this is the gap, stated as an obligation over existing carriers); resumption requires an explicit, human-ratified issuance act, never an automatic or standing reissue (limb a); and a declared model component names an exact version — a family or alias is not a pin and is a validation failure (limb d, ratifying today's behavior as intended).Every obligation is stated over carriers
contracts/openxwallet/openxwallet-grant.schema.yamlalready has:parent_grant_ref,state: [active, expired, revoked], andrevocation: {revoked_at, reason, propagated_from}—propagated_fromis exactly the edge-recording field. Any genuinely new carrier is a declared realization task, not an edit made here.The Q8 reissuance policy (proposed in
design.md, for the convener to rule)Reissuance is a first-class ACT, recording five things: the superseding grant, the superseded grant, the composition hash it was issued against, the human who ratified it, and the instant. It is an act rather than a state transition because anything that can be triggered can be triggered by the thing it polices — a provider roll re-attesting itself back into authority. A standing form is an auto-reissue with the signature collected in advance for a composition that did not yet exist.
Drift-vs-cause survival: derived grants survive neither; the class is evidence, never a gate.
Operator notification: the decision-ready packet shape (who, what decision, what options, what happens if nothing is decided), cited to N12 / the HEC, with dedup by root cause so one provider roll raises one packet rather than N.
Named honestly, not mitigated: under
missing_required_seat: refused, a provider roll parks every convening until a human performs the act. That is the parent change's design risk R1, and this policy makes R1 load-bearing rather than closing it. The exit is task 7.6's runbook, deliberately not an automatic reissue.Limb (d) ratified exact-versions-only and said family pinning "may be revisited only through a future core delta that can police it." A core delta is being authored right now, so the question is live — and it is not the implementer's to answer:
Exit 1 (define it now): buys a pin written once instead of edited on every provider roll, with the revocation trigger just as sharp. Costs a new attestation carrier and obligation in a family with zero wallets and no key infrastructure (risk R2), and introduces a window between a roll and re-attestation — a new fail-open shape to police, inside a change whose purpose is closing one. It also widens this change from encoding a ruling into revisiting one of its limbs.
Exit 2 (stands un-revisited): keeps the change exactly what it says it is, with no new carrier and no new window. Costs full R1 pressure on every roll, with 7.6's runbook as the only relief; revisiting later means a second delta against requirements consumers will by then pin.
No recommendation is offered. The deltas as authored are consistent with Exit 2; adopting Exit 1 means amending the agent-profile delta's fifth paragraph before ratification — which is why
tasks.md2.2 puts this question ahead of the ratification gate.Gates — all green, nothing broken
openspec validate add-composition-drift-cascade --strictopenspec validate --all --strictverify-contract-pin.pyopenxFactory@30565e48ffe3wallet-yaml-syntax-gate.py .validate-openxwallet.py ./--strictpytest tests/ -qCorpus drift noted, deliberately NOT fixed
Recorded in
design.mdso the next reader does not re-derive it: (i) validator requirement rowsOXWR-R1/OXWR-R2(the S2 issuer anchor) exist in theREQUIREMENTSdict with no### Requirement:heading in the promoted spec; (ii)docs/contract-versioning-policy.mdis referenced by both contract READMEs and does not exist. Both pre-date this change.Also carried onto the declared realization surface (task 3.4, named not performed), raised by the peer S5 session that landed openxFactory task 7.3: the new top-level
revocation_staleness_bound: P7Dingovernance/review-authority/register.yamlis not validated by the pinned reader —check_registeris strict onREGISTER_ROW_FIELDSbut reads onlyregister_versionandrowsat the top level, so an unknown top-level key passes silently. That is the vacuous-pass class (risk R3), and reader work lives in openXwallet now.🤖 Generated with Claude Code