Skip to content

openxWallet lands: custody declared, and the collapse it forbids made unrepresentable - #115

Merged
brettheap merged 2 commits into
mainfrom
006-openxwallet-contracts
Aug 8, 2026
Merged

brettheap merged 2 commits into
mainfrom
006-openxwallet-contracts

Conversation

@brettheap

@brettheap brettheap commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Realizes the ratified add-openxwallet as one Speckit feature — 006-openxwallet-contracts — at contract-v1.31. Two neutral contract families, one validator, and a fixture corpus carrying a negative confirmation per requirement. No runtime, no key material, no existing capability modified.

What lands

contracts/openxwallet/ — the holder-agnostic core. A wallet is a key REFERENCE with a declared custody model and never key material; authority travels as attenuated grants that narrow monotonically; exercise requires proof of possession rather than presentation; every exercise is key-attributed; revocation propagates through derivation and is checked at use; distinct-holder constraints are expressible and opt-in; and wallets stay optional for every domain, which preserves MedxFactory's two ratified constraints as a core rule rather than working around them.

contracts/openxwallet-agent-profile/ — the first profile, as a sibling family rather than an extension, so the core/profile seam is structural. A patient or practitioner profile arrives as a third directory, never as an edit to the first.

The two decisions ratification left to this feature

Both settled before the schema was authored, per the change's tasks 2.2 and 3.2, and recorded in research.md.

Key custody — the sharp edge

The closed set is three members, and evidences is DERIVED from two declared booleans rather than asserted: holder iff the key is not readable by the holder's own execution context AND each use requires an authorization that context cannot supply.

model readable by holder's context per-use authorization evidences ceiling
holder_readable yes no environment act
isolated_invocable no no environment act
isolated_per_use_authorized no yes holder act_unsupervised

Three enforced invariants close the failure the ruling exists to prevent — the derivation itself, a ceiling of act_unsupervised that must be earned, and a check that no readable model sits at or above a model evidencing the holder. The handoff's warning was that a collapsed enumeration "would all validate cleanly"; under these checks it does not validate at all.

A two-member set would satisfy the ratified text and re-open the hole one level down: it lumps a local signing daemon the agent can call without limit together with a hardware key requiring per-signature authorization, so the daemon claims the hardware key's authority. Hence the third member.

Software custody still reaches act rather than stopping below it — capping it lower would stall the first consumer, which is precisely the outcome the ruling rejected when it declined to mandate hardware backing. Approval-before-apply is the compensating control.

One interpretive call is stated explicitly in research.md: the ratified "only custody isolating the key…" reads as a necessary condition, not a sufficient one. That is what admits the third member without contradicting the ruling.

What the composition component set covers

Every declared component carries a binding_mode. content digests the component itself. reference covers a corpus's identity and governing configuration — which corpus, what may be retrieved, under what rules — but not its row-level contents. Swapping the corpus or widening retrieval changes identity and revokes; documents arriving in an already-governed corpus do not.

That dissolves the include-or-exclude binary rather than picking a side: the excluded thing is narrow and named, and an agent cannot change what it may retrieve without changing its identity.

Evidence

  • 16 positives, 17 intended-invalid negatives, 11/11 requirements covered, with closure in both directions — a requirement with no probe and a probe naming no requirement are both validation failures.
  • A red-proof harness (evidence/red-proof.py): a green self-test proves the negatives fail, not that they fail for the reason they name. Suppressing each finding code in turn confirms all 15 are load-bearing — neuter any one and the corpus goes red.
  • Per-requirement traceability (traceability.yaml): artifact, enforcing check, probe, and red-proof for each of the eleven ratified requirements.

Green bar: validate-openxwallet.py self-test and repo mode, validate-manifest-digests.py (132 digests), openspec validate --all --strict (53/53), doc-health with no new finding.

Note on one design choice

The validator reads the legal approval-scope vocabulary out of contracts/schemas/hermes-job-envelope.schema.yaml at run time instead of restating it. approval_policy turned out to be an object with three properties, not a flat enum, so "an authority term outside approval_policy" means a key outside that property set — and hardcoding those names would have recreated the second authority vocabulary the profile's third requirement forbids.

Boundary

Creates no key, credential, wallet, runtime, or issuance service. Modifies no existing capability. Obliges no domain to adopt wallets. The openxVault boundary of 2026-07-16 stands: the vault owns custody and its gate consumes these grants.

What a validator cannot check is recorded rather than implied — that a declared custody model is the real one. Custody declaration keeps this honest only if consumers declare truthfully.

Unblocks

LedgerxFactory's posting segregation-of-duties control, unbuildable today because every agent reaches Business Central through one application user: the agent that created invoice LXRP0002 and the agent that posted it are the same userSecurityId. Segregation of duties was never a control anyone declined to enforce — it is a property the platform cannot see.

🤖 Generated with Claude Code

… unrepresentable

Realizes the ratified add-openxwallet as one Speckit feature
(006-openxwallet-contracts) at contract-v1.31: two neutral contract
families, one validator, and a corpus carrying a negative confirmation
per requirement.

The core (contracts/openxwallet/) is holder-agnostic — a wallet is a key
REFERENCE with a declared custody model and never key material; authority
travels as attenuated grants that narrow monotonically; exercise requires
proof of possession rather than presentation; every exercise is
key-attributed; revocation propagates through derivation and is checked at
use; distinct-holder constraints are expressible and opt-in; and wallets
stay optional for every domain, which preserves MedxFactory's two ratified
constraints as a core rule rather than working around them.

The agent profile is a SIBLING family, not an extension, so the core/profile
seam is structural: a patient or practitioner profile arrives as a third
directory rather than as an edit to the first.

Two decisions the ratification left to this feature, both settled before the
schema was authored and recorded in research.md:

KEY CUSTODY. The closed set is three members, and `evidences` is DERIVED
from two declared booleans rather than asserted — holder iff the key is not
readable by the holder's own execution context AND each use requires an
authorization that context cannot supply. Three enforced invariants close
the failure the ruling exists to prevent: the derivation itself, a ceiling
of act_unsupervised that must be earned, and a check that no readable model
sits at or above a model evidencing the holder. A two-member set would have
satisfied the ratified text while letting a local signing daemon claim a
hardware key's authority — the same collapse one level down. Software
custody still reaches `act`, because capping it lower would stall the first
consumer, which is the outcome the ruling rejected when it declined to
mandate hardware backing.

COMPOSITION SCOPE. Every declared component carries a binding_mode. A
retrieval corpus is bound by REFERENCE — its identity and governing
configuration enter the hash, its row-level contents do not — so swapping
the corpus or widening what may be retrieved changes identity and revokes,
while documents arriving in an already-governed corpus do not. That
dissolves the include-or-exclude binary rather than picking a side of it.

The validator READS the legal approval-scope vocabulary out of the canonical
job envelope at run time instead of restating it; restating it would have
recreated the second authority vocabulary the profile's third requirement
forbids.

Evidence: 16 positives, 16 intended-invalid negatives covering 11/11
requirements with closure in both directions, and a red-proof harness
confirming all 15 finding codes are load-bearing — suppress any one and the
corpus goes red. Green bar: validate-openxwallet (self-test and repo mode),
validate-manifest-digests (132 digests), openspec validate --all --strict
(53/53), doc-health with no new finding.

Creates no key, credential, wallet or runtime; modifies no existing
capability. The openxVault boundary of 2026-07-16 stands: the vault owns
custody and its gate consumes these grants.

Unblocks LedgerxFactory's posting segregation-of-duties control, which has
been unbuildable because every agent reaches the platform through one
application user — so the agent that created invoice LXRP0002 and the agent
that posted it are the same userSecurityId.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings August 8, 2026 02:11

@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 chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f8a17a8258

ℹ️ About Codex in GitHub

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

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

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

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

f"{label}: refusal names {refusal.get('code')!r} while what "
f"was missing is the PROOF; the grant was supplied and is "
f"not what was lacking")
elif verified is False and outcome == "permitted":

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Require an affirmative proof verification result

When an exercise sets proof_of_possession.presented: true but omits verified, this branch does not reject a permitted outcome because it checks only for the literal value False; the event-class logic also leaves expected_class unset. Since the schema requires only presented, such a record can claim outcome: permitted without recording any successful verification, defeating the proof-of-possession requirement.

Useful? React with 👍 / 👎.

Comment on lines +638 to +639
grant_ref = doc.get("grant_ref")
revoked_at_ancestor = _revoked_ancestor(ctx, grant_ref) if grant_ref else None

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Authorize the exercise against the referenced grant

For a permitted exercise, grant_ref is used only to search for revocation; the referenced grant is never required to resolve and its audience, scoped acts/objects, and expiry/state are never compared with the exercise. Consequently, an exercise naming an unknown grant, a key outside the grant's audience, or an act outside its scope can validate as permitted as long as the self-reported proof and revocation fields look valid, bypassing the authority the grant is supposed to define.

Useful? React with 👍 / 👎.

f"was permitted anyway")

# (m) distinct-holder constraints bind where declared.
for evaluation in doc.get("constraint_evaluations") or []:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Require evaluations for declared holder constraints

When a grant declares distinct_holder_constraint_refs, an exercise can omit constraint_evaluations entirely and this loop performs no checks, allowing the exercise to be permitted without enforcing the declared segregation-of-duties constraint. The validator needs to resolve the exercised grant and require an evaluation for every applicable declared constraint, not only validate evaluations supplied by the caller.

Useful? React with 👍 / 👎.

Comment on lines +737 to +738
if attested and declared and attested != declared:
if doc.get("grants_state") != "revoked_on_composition_change":

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Carry composition revocation into exercise checks

When the hashes differ, accepting the composition record solely because it asserts grants_state: revoked_on_composition_change does not actually revoke or mark any grants associated with wallet_ref. Composition records are not indexed, and check_exercise consults only wallet/grant state, so a corpus can contain this changed composition plus a permitted exercise of one of the agent's still-active grants and validate cleanly, contrary to the required immediate revocation.

Useful? React with 👍 / 👎.

if path.resolve() == CUSTODY_REGISTRY_PATH.resolve():
continue
scanned += 1
validate_record(f, str(path), doc, docs, ctx)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Index scanned records before cross-record validation

In optional repository-scan mode, each real artifact is validated against a context populated only from the packaged examples; the scanned documents are never added to it. Thus a real derived grant reports an unresolved parent even when that parent is present in the target, while wallet custody ceilings and revoked chains can be silently skipped because their real wallet/grant records cannot resolve. Build an index of all target records before running the cross-record validation pass.

Useful? React with 👍 / 👎.

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

Implements the ratified add-openxwallet change as a single Speckit feature (006-openxwallet-contracts) by landing two new neutral contract families (openxwallet core + openxwallet-agent-profile), a canonical validator, and a positive/negative fixture corpus, then registering the bundle as contract-v1.31.

Changes:

  • Add the contracts/openxwallet/ core schemas, custody registry instance, and a fixtures corpus (positive + negative confirmations).
  • Add the contracts/openxwallet-agent-profile/ agent profile schema and fixtures, plus cross-family validation in scripts/validate-openxwallet.py.
  • Register/release the bundle (contracts/manifest.yaml, contracts/CHANGELOG.md) and update repo docs/spec artifacts to reflect realization and traceability.

Reviewed changes

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

Show a summary per file
File Description
specs/006-openxwallet-contracts/traceability.yaml Per-requirement traceability map (artifact → enforcing check → negative probe → red-proof).
specs/006-openxwallet-contracts/tasks.md Feature task breakdown aligned to the ratified change handoff.
specs/006-openxwallet-contracts/spec.md Feature spec describing scenarios, requirements, and acceptance probes.
specs/006-openxwallet-contracts/research.md Records custody and composition binding-mode decisions + dependency findings.
specs/006-openxwallet-contracts/plan.md Implementation plan and validation/release checklist.
specs/006-openxwallet-contracts/evidence/red-proof.py Harness that suppresses each expected finding code to prove negatives are load-bearing.
specs/006-openxwallet-contracts/evidence/red-proof-output.txt Recorded output of the red-proof harness run.
scripts/validate-openxwallet.py Canonical validator for both families (schema validation + cross-record semantic rules + corpus self-test + repo scan).
README.md Adds openxWallet to the repo’s conformance/validator index and updates “Active changes” narrative.
openspec/changes/add-openxwallet/tasks.md Marks handoff tasks realized and records the feature + release.
openspec/changes/add-openxwallet/proposal.md Updates target_release to contract-v1.31.
ideation/staging/INDEX.md Updates the staged topic entry to reflect realization + artifacts landed.
contracts/README.md Adds contract index rows for openxWallet core, agent profile, and validator/corpus.
contracts/openxwallet/README.md Introduces the openxWallet core family and its contract intent, custody model, and validation usage.
contracts/openxwallet-agent-profile/README.md Introduces the agent profile family and the composition-binding decision.
contracts/openxwallet/openxwallet-subject-attestation.schema.yaml Subject-attestation schema enforcing “non-substrate” constraints.
contracts/openxwallet/openxwallet-record.schema.yaml Wallet record schema (holder + key reference + custody declaration, no key material).
contracts/openxwallet/openxwallet-grant.schema.yaml Grant schema (audience/scope/expiry/parent; approval posture vocabulary closed by validator).
contracts/openxwallet/openxwallet-grant-exercise.schema.yaml Exercise record schema (proof-of-possession, event class, attribution, revocation check, constraints).
contracts/openxwallet/openxwallet-distinct-holder-constraint.schema.yaml Distinct-holder constraint schema (opt-in maker/checker primitive).
contracts/openxwallet/openxwallet-custody.registry.yaml Closed custody-model enumeration instance + authority tier ladder.
contracts/openxwallet/openxwallet-custody-registry.schema.yaml Custody registry schema (derivation rules and constraints enforced by validator).
contracts/openxwallet/examples/wallet-revoked-standing.example.yaml Positive example: revoked wallet standing.
contracts/openxwallet/examples/wallet-practitioner.example.yaml Positive example: non-agent holder wallet (core is holder-class agnostic).
contracts/openxwallet/examples/wallet-agent-poster.example.yaml Positive example: agent poster wallet under per-use-authorized custody.
contracts/openxwallet/examples/wallet-agent-creator.example.yaml Positive example: agent creator wallet under holder-readable custody.
contracts/openxwallet/examples/subject-attestation.example.yaml Positive example: subject attestation uses subject identifier, not wallet identifier.
contracts/openxwallet/examples/negative/wallet-carries-key-material.yaml Negative probe: key material embedded in a conformant string field.
contracts/openxwallet/examples/negative/subject-attestation-resolves-through-wallet.yaml Negative probe: wallet reference used as identity substrate / resolution through wallet.
contracts/openxwallet/examples/negative/grant-parallel-authority-vocabulary.yaml Negative probe: parallel authority vocabulary key outside approval_policy.
contracts/openxwallet/examples/negative/grant-exceeds-custody-ceiling.yaml Negative probe: grant authority tier exceeds audience wallet custody ceiling.
contracts/openxwallet/examples/negative/grant-derived-wider-than-parent.yaml Negative probe: derived grant widens parent scope.
contracts/openxwallet/examples/negative/exercise-verification-failure-as-unauthenticated.yaml Negative probe: verification failure mis-recorded as unauthenticated request.
contracts/openxwallet/examples/negative/exercise-shared-credential-as-actor.yaml Negative probe: shared credential recorded as actor (attribution laundering).
contracts/openxwallet/examples/negative/exercise-refusal-names-the-wrong-absence.yaml Negative probe: refusal names missing grant vs missing proof-of-possession.
contracts/openxwallet/examples/negative/exercise-permitted-without-proof-of-possession.yaml Negative probe: permitted exercise without proof-of-possession.
contracts/openxwallet/examples/negative/exercise-one-holder-satisfies-constraint.yaml Negative probe: distinct-holder constraint recorded satisfied by one holder.
contracts/openxwallet/examples/negative/exercise-against-revoked-parent.yaml Negative probe: exercise permitted against revoked ancestor + revocation check lies.
contracts/openxwallet/examples/negative/custody-registry-unearned-ceiling.yaml Negative probe: unearned ceiling (act_unsupervised without holder evidence).
contracts/openxwallet/examples/negative/custody-registry-readable-claims-holder.yaml Negative probe: custody evidences derivation violated (readable key claiming holder evidence).
contracts/openxwallet/examples/negative/custody-registry-collapsed-ceilings.yaml Negative probe: readable vs holder-evidencing cases distinguished in name but collapsed in effect.
contracts/openxwallet/examples/grant-revoked-parent.example.yaml Positive example: revoked grant record with revocation block.
contracts/openxwallet/examples/grant-revoked-derivation.example.yaml Positive example: active child derived from revoked parent (caught at exercise).
contracts/openxwallet/examples/grant-posting-parent.example.yaml Positive example: parent grant with approval posture and constraint reference.
contracts/openxwallet/examples/grant-posting-derived.example.yaml Positive example: derived grant with monotonic attenuation.
contracts/openxwallet/examples/grant-creator-software-custody.example.yaml Positive example: grant at software custody ceiling.
contracts/openxwallet/examples/exercise-verification-failure.example.yaml Positive example: verification failure recorded distinctly.
contracts/openxwallet/examples/exercise-unattributable-act.example.yaml Positive example: unattributed act with shared credential as transport.
contracts/openxwallet/examples/exercise-posting-permitted.example.yaml Positive example: end-to-end permitted exercise including constraint evaluation.
contracts/openxwallet/examples/distinct-holder-constraint-posting.example.yaml Positive example: LedgerxFactory posting maker/checker constraint declaration.
contracts/openxwallet-agent-profile/openxwallet-agent-composition.schema.yaml Agent composition schema (component binding modes + declared-change revocation).
contracts/openxwallet-agent-profile/examples/negative/composition-hash-without-component-set.yaml Negative probe: hash present but component set missing.
contracts/openxwallet-agent-profile/examples/negative/composition-changed-grants-still-active.yaml Negative probe: composition changed but grants still marked active.
contracts/openxwallet-agent-profile/examples/agent-composition.example.yaml Positive example: composition declaration with content/reference binding modes.
contracts/openxwallet-agent-profile/examples/agent-composition-changed.example.yaml Positive example: changed composition drives revoked grants_state.
contracts/manifest.yaml Registers new contracts and bumps contract_bundle_version to contract-v1.31.
contracts/CHANGELOG.md Adds contract-v1.31 release notes for openxWallet core + agent profile.

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

Comment on lines +53 to +65
resolution:
type: object
required: [resolved_by]
additionalProperties: false
properties:
resolved_by:
type: string
enum: [subject_ref]
reconstructable_without_wallet:
# Declared true or the record is refused: the domain asserts its
# records remain reconstructable with no wallet available.
type: boolean
attested_at: {type: string, format: date-time}
Comment on lines +693 to +697
if resolution.get("reconstructable_without_wallet") is False:
f.error("wallet-ref-as-subject-identifier",
f"{label}: the record declares it is not reconstructable "
f"without a wallet; a wallet may not become a prerequisite for "
f"reconstructing a record or resolving a subject")
Comment on lines +511 to +535
posture = scope.get("approval_posture")
if isinstance(posture, dict):
for key in sorted(posture):
if key not in ctx.vocabulary:
f.error("authority-vocabulary-parallel",
f"{label}: approval_posture names {key!r}, which is not "
f"an `approval_policy` property of the neutral job "
f"envelope (legal terms: {sorted(ctx.vocabulary)}). An "
f"agent's authority and a job's approval posture are one "
f"vocabulary, not two kept in agreement")

# (h) posture and tier agree.
if posture.get("hermes_approval_required_before_apply") is False \
and tier != "act_unsupervised":
f.error("posture-tier-incoherent",
f"{label}: posture waives approval before apply while the "
f"authority tier is {tier!r}; acting with no approval before "
f"apply is the 'act_unsupervised' tier")
if posture.get("authority_agents_may_approve") is True:
act_rank = ctx.rank("act")
if tier_rank is not None and act_rank is not None and tier_rank < act_rank:
f.error("posture-tier-incoherent",
f"{label}: posture permits agent approval while the "
f"authority tier is {tier!r}; approving is an effecting "
f"act and requires tier 'act' or above")
Comment on lines +4 to +6
Ratified by: add-openxwallet (approved Brett Heap 2026-08-07; registered in
`contracts/manifest.yaml` + `contracts/CHANGELOG.md` at the next additive
bundle cut, per [Contract Versioning Policy](../../docs/contract-versioning-policy.md))
Comment on lines +4 to +6
Ratified by: add-openxwallet (approved Brett Heap 2026-08-07; registered in
`contracts/manifest.yaml` + `contracts/CHANGELOG.md` at the next additive
bundle cut, per [Contract Versioning Policy](../../docs/contract-versioning-policy.md))
…led it

Found by attacking the validator rather than reading it. Rule (c) compared a
custody model's ceiling against the literal id `act_unsupervised`. A registry
chooses its own tier names, so calling the top tier anything else — here
`autonomous` — meant the rule never fired, and an `isolated_invocable` model
evidencing only the ENVIRONMENT sat at the top of the ladder.

Neither sibling check caught it. The collapse check (d) skips that model
because it is not READABLE, and the derivation check (b) is satisfied because
every `evidences` value is declared honestly. Three checks, and the dishonest
registry validated clean — the exact failure this family exists to refuse,
reappearing one level up inside the rule that refuses it.

Rule (c) now keys on the top RANK of the declared ladder, which no naming
choice can evade, and the attack is committed as a permanent probe
(custody-registry-renamed-top-tier.yaml) so it cannot reopen.

Corpus is now 16 positives and 17 negative confirmations, still 11/11
requirements, still 15 load-bearing codes. Counts and prose updated where they
were stated.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings August 8, 2026 02:20
@brettheap

Copy link
Copy Markdown
Contributor Author

Follow-up commit: a hole in the rule that closes the hole

While attacking my own validator before merge I found that rule (c) — "a ceiling of act_unsupervised must be earned" — was keyed on the tier's NAME, and a custody registry chooses its own tier names.

So this registry validated cleanly:

authority_tiers:
  - {id: act,        rank: 2, statement: "…approval required before apply."}
  - {id: autonomous, rank: 3, statement: "…no approval before apply."}   # renamed
custody_models:
  - id: isolated_invocable
    key_readable_by_holder_execution_context: false
    use_requires_authorization_outside_holder_execution_context: false
    evidences: environment          # honest!
    authority_ceiling: autonomous   # …and yet at the top of the ladder

Neither sibling check caught it. The collapse check (d) skips that model because it is not readable; the derivation check (b) is satisfied because every evidences value is declared honestly. Three checks, and a dishonest registry passed — which is the exact failure mode this family exists to refuse, reappearing one level up inside the rule that refuses it.

5f61c4b keys rule (c) on the top rank of the declared ladder, which no naming choice can evade, and commits the attack as a permanent probe (custody-registry-renamed-top-tier.yaml).

Corpus is now 16 positives / 17 negative confirmations, still 11/11 requirements, still 15 load-bearing finding codes. Full bar re-run green.

@brettheap
brettheap merged commit 66a38b3 into main Aug 8, 2026
1 check passed
brettheap pushed a commit that referenced this pull request Aug 8, 2026
…omoted)

The feature landed as PR #115, so the change archives per protocol §7 and its
two capabilities are promoted: `openxwallet` (8 requirements) and
`openxwallet-agent-profile` (3).

The record moves out of Active changes and into Archived with what it settled
kept legible — the closed three-member custody set whose `evidences` is derived
from two declared booleans and enforced, and the composition component set that
covers a retrieval corpus by reference rather than by contents. Patient and
practitioner profiles stay named successors, each a NEW profile over the same
core and each gated on a consumer of its own.

The staging topic row stays: `agent-wallet-identity` still has its fragment on
disk as provenance, carrying the material this exit deliberately deferred —
certification batteries, measured drift, qualification tiers and delegation
chains. Its readiness line now records the archive.

Bar green on main after the archive: validate-openxwallet (16 positives, 17
negative confirmations, 11/11 requirements), 132 manifest digests, openspec
validate --all --strict at 54/54, and doc-health with zero new findings.

Co-Authored-By: Claude Opus 5 (1M context) <[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 58 out of 58 changed files in this pull request and generated no new comments.

Suppressed comments (3)

contracts/openxwallet/openxwallet-grant.schema.yaml:32

  • The schema description references validator rules “(f) and (g)” for posture/tier coherence, but the posture/tier coherence check is rule (h) (and (g) is the vocabulary check). This makes the contract documentation internally inconsistent with the validator it points to.
    scripts/validate-openxwallet.py:876
  • Negative fixtures are labeled as negative/<filename> and coverage records only the filename. Since this validator loads negatives from multiple families, identical filenames would collide and error messages won’t indicate which fixture failed. Use the fixture’s path relative to repo root for label and for coverage tracking.
    contracts/openxwallet/openxwallet-grant-exercise.schema.yaml:87
  • proof_of_possession.verified is optional even when presented: true, which allows records where event_class cannot be derived (authenticated vs verification_failure). Adding a conditional requirement keeps the shape self-consistent and prevents silently ambiguous exercises.

brettheap pushed a commit that referenced this pull request Aug 8, 2026
The release digest inventory for the bundle registered at the
contract-v1.31 changelog entry: the openxWallet holder-agnostic core
(six kinds, closed custody registry) and its first profile (the agent
composition record), realized by Speckit feature
006-openxwallet-contracts through PRs #115, #116 and #120 — landing,
validator hardening, and the docs-truth pass that followed the third
adversarial review. The new families' per-file digests are carried by
contracts/manifest.yaml inside this inventory, per the v1.30
convention; the packaged corpus and validator are content-addressed by
the release commit.

Co-Authored-By: Claude Fable 5 <[email protected]>
@brettheap
brettheap deleted the 006-openxwallet-contracts branch August 24, 2026 20:17
brettheap pushed a commit that referenced this pull request Aug 26, 2026
…ives

The archive gate here was the realization gate, not the doc-only one: the
proposal declares a code_surface over contracts/omnigent/ and the semantic
checks in validate-omnigent-contracts.py at target_release: implemented, so
landing was not enough. Both halves hold — every code-surface commit is an
ancestor of main, and the runnable surface exits 0 in a fresh clone with all
three terminology negatives rejected for their declared reasons.

The sweep re-read every ticked claim against six fresh clones rather than
trusting the ticks, and it found one defect. Task 3b.5f, ticked CLOSED once
the ledgerx UN/CEFACT + BIAN round ran, still carried its pre-run tail saying
that round "has NEVER been run", and a broken antecedent that read the
ledgerx round as having produced no report when it produced one. Both are
corrected in place and marked SUPERSEDED rather than deleted, so the closing
note stays checkable against what was still owed when it was written.
Everything else reproduced: five overlay-manifest digests recomputed 5/5,
every registry body count re-derived from git (17 -> 30 -> 41 -> 44, each
exact), thirteen O*NET codes confirmed across two entries, and the identity
surface diffed across all six population commits — worker ids, archetypes,
permissions and credential tiers identical in six of six, which is the
constitutional 5.1/5.2 claim measured rather than asserted.

Three boxes close at the gate on that evidence. 3.0 is discharged for all
five domains, medx vacuously because an obligation over chosen bodies is
discharged by choosing none. 3.5 is ticked on 3b.5i's own finding: the
all-no_clean_equivalent stance IS the population, covering every declared id
with zero mapped by design. 4.1 was built and merged as OpsxFactory PR #115,
which carries the principle outside the overlay and asserts by assertNotIn
that a check id never reaches a human-read message. Three residuals ride
those ticks rather than hiding under them — PCF 8.0's numbering was never
re-read, two IAB version dates stay contested, and task-level verification is
outstanding in all four crosswalking domains. Section 5 stays unticked by
precedent, because an unticked out-of-scope box means owned elsewhere.

Promotion is ADDED-only and byte-faithful: omnigent-domain-overlay goes 8
requirements to 11 and 21 scenarios to 29, with all eight pre-existing
requirement bodies hashed before and after and unchanged, 8/8.

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