Skip to content

Propose split-openwallet-neutral-core: openWallet (neutral standard), openXwallet (openxFactory adapter), domain wallets - #26

Merged
brettheap merged 2 commits into
mainfrom
change/split-openwallet-neutral-core
Oct 8, 2026
Merged

brettheap merged 2 commits into
mainfrom
change/split-openwallet-neutral-core

Conversation

@brettheap

@brettheap brettheap commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxwallet-2 (openXwallet-2)
Claim: #25 (comment)

Proposes split-openwallet-neutral-core, the three-layer split of the wallet. Status: proposed, held for Brett Heap's ratification. This PR adds the OpenSpec packet and performs nothing — no repository is created, no byte is carved, no validator line moves, no pin advances. Governing record: #25.

The decision being governed

Brett Heap, in session, 2026-10-08, verbatim:

consider if we make openWallet as a standalone neutral wallet system that does not need openXfactory. then we make openXwallet as the adapter layer for neutral contracts for openXfactory and then the actual wallets are the domain wallets like medXwallet and ledgerXwallet. this then matches our openDox project and openAvatar. we can keep all our projects able to run stand alone but tuned version that run with our xFactories.

write the openspec proposal for the split, keep the prefix

Layer Repository Owns Needs openxFactory
Neutral standard opensoft/openWallet (NEW, three-leg shape, public) both contract families, the eight digested artifacts at unchanged sha256, the corpus, the syntax gate, the core validator, capabilities openxwallet and openxwallet-agent-profile no
Factory adapter opensoft/openXwallet (this repository) the pin of openWallet, the hermes vocabulary binding, rule (t), the register reader, review-authority-register-reader and NEW openxwallet-factory-binding yes, by design
Domain wallets LedgerxWallet today, MedxWallet and kin on their first profile profiles, never forks through the adapter, or not at all when pinning openWallet standalone

This brings the wallet into line with the pin-chain doctrine openDox/openXdox already follow (openxFactory docs/project-repo-schema.md, the 2026-09-02 sentence and the 2026-09-05 ruling). Precedent packets: openxFactory split-openxwallet-repo (archived 2026-08-28) and split-opendox-two-layer-product.

Why: the neutral core is non-neutral in two measured places

  1. Rule (t), inside check_grant (scripts/validate-openxwallet.py:986-1032), refuses a root review-class grant unless issued_by equals one operator's e-mail and cites an openxFactory-only document. No requirement promoted here names it; its three negatives attribute to openxFactory's OXWR-R1/OXWR-R2.
  2. The approval vocabulary runs envelope → wallet: main() exits 2 without the vendored hermes job envelope, and the promoted agent-profile requirement states the same direction.

A product outside the factory — openChart, openPractice, the planned vault control plane — cannot run the wallet standard today without vendoring an openxFactory artifact and inheriting an operator anchor.

Ruled (encoded, not re-opened)

  • Prefix — "keep the prefix" (2026-10-08): the xfactory_wallet_* kinds, every finding code and the schema $id namespace are unchanged by the carve; the neutral rename stays a future wallet MAJOR. Answers Q3 carried by split-openxwallet-repo.
  • Six open questions — 2026-10-08 (recorded 16:30Z), in session, by multiple choice, labels verbatim:
    • Q1 composition: "In-process, extension points (Recommended)"
    • Q2 layout: "Nested gitlink, one chain (Recommended)"
    • Q3 repository shape: "Three-leg shape at birth" (against the recommendation)
    • Q4 tag series: "openWallet continues wallet-v* (Recommended)"
    • Q5 visibility: "Public (Recommended)"
    • Q6 vocabulary binding: "Document plus pointer, fail closed (Recommended)"
  • Raised by Q3 and ruled the same day, by multiple choice, labels verbatim:
    • Q7 which leg holds the two contract families: "Code leg, declared override (Recommended)" — contracts, corpus and validator stay together in openWallet-code; the override of openRepoShape's spec-governance default is declared in the carve manifest
    • the spec leg's own OpenSpec gate: "Vendor the tarball (Recommended)"

The packet

openspec/changes/split-openwallet-neutral-core/ only:

File Content
.openspec.yaml origin block citing the two statements and the rulings; retire_capabilities: true (measured as required for the archive); approved_by: pending
proposal.md why, what changes, the rulings, impact across the named repositories, what it does NOT do, how it answers the precedent's carried Q1 and Q3
design.md measured inventory, validator split by block, vocabulary binding, composition at extension points, layout and pin, the carve as a declared path mapping into the three-leg shape, migration plan with rollbacks, risks
tasks.md groups in migration order, each a Speckit feature, cross-repo tasks labelled by repository
specs/openxwallet/spec.md 8 REMOVED, successor opensoft/openWallet
specs/openxwallet-agent-profile/spec.md 3 REMOVED, the one successor text that differs enumerated
specs/openxwallet-factory-binding/spec.md NEW capability, 5 ADDED

review-authority-register-reader takes no delta.

Sequencing with the active changes: add-multi-key-wallets archives before the carve (archive_after:); add-composition-drift-cascade travels to openWallet; widen-register-reader-for-a-second-council stays; this change archives last. Three archive preconditions were measured on the pinned 1.12.0 in a scratch copy and are recorded rather than left to be discovered.

Verification

python3 scripts/validate-openspec-cli-pin.py --all --no-cache --tarball tools/openspec-cli-pin/…1.12.0….tgz — every change in the corpus, this one included, validates --strict clean. No file outside the change directory is touched.

Refs #25

🤖 Generated with Claude Code

Summary by Sourcery

Ratify the OpenSpec packet for separating the neutral wallet standard from its openXwallet factory adapter without performing the repository carve or changing runtime code.

Enhancements:

  • Define a ratified three-layer wallet architecture separating a standalone neutral openWallet standard, an openXwallet factory adapter, and domain-specific wallets.
  • Specify the migration, pinning, composition, vocabulary-binding, validator-boundary, and byte-identity requirements for the proposed split.
  • Move the neutral wallet and agent-profile capabilities to a future openWallet project while introducing the openXwallet-factory-binding capability.

Documentation:

  • Add the OpenSpec proposal, design, migration tasks, specification deltas, rulings, and verification plan for the wallet split.

Tests:

  • Document neutrality, pin integrity, nested checkout, validator composition, and archive-gate verification requirements.

Chores:

  • Retain existing wallet prefixes, finding codes, schema identifiers, and digests while recording the future repository carve and cross-repository sequencing.

…et adapter

The OpenSpec packet for the three-layer split of the wallet, held for Brett
Heap's ratification. It performs nothing: no repository is created, no byte
is carved, no validator line moves, no pin advances.

WHAT IT GOVERNS. `opensoft/openWallet` (NEW) becomes the standalone neutral
wallet standard with no openxFactory input: both contract families, the
eight digested artifacts at unchanged sha256, the corpus, the syntax gate,
the core validator with a DECLARED and ENUMERATED diff, and the promoted
capabilities `openxwallet` and `openxwallet-agent-profile`. This repository
becomes the openxFactory ADAPTER over a pinned openWallet: the pin, the
hermes approval-vocabulary binding, the root-issuer operator anchor (rule t)
and the register reader. Domain wallets pin the adapter inside a factory or
openWallet standalone; a tuned variant is a pin target, never a fork. That
brings the wallet into line with the pin-chain doctrine openDox/openXdox
already follow (openxFactory docs/project-repo-schema.md, rulings of
2026-09-02 and 2026-09-05).

WHY NOW. Measured at b7c6e0b, the neutral core is non-neutral in two
places: rule (t) inside check_grant hardcodes one operator's e-mail as the
only legal root issuer, and the approval vocabulary runs envelope -> wallet
through a vendored openxFactory artifact the validator refuses to start
without. A product outside the factory cannot run the standard today.

RULED, encoded here and not re-opened: "keep the prefix" (2026-10-08) --
the xfactory_wallet_* kinds, every finding code and the schema $id
namespace are unchanged by the carve; the neutral rename stays a future
wallet MAJOR. The six open questions were ruled 2026-10-08 (recorded
16:30Z) by multiple choice, labels verbatim: Q1 "In-process, extension
points (Recommended)"; Q2 "Nested gitlink, one chain (Recommended)"; Q3
"Three-leg shape at birth" (against the recommendation); Q4 "openWallet
continues wallet-v* (Recommended)"; Q5 "Public (Recommended)"; Q6
"Document plus pointer, fail closed (Recommended)". Q3 reshaped the carve
into a three-leg openRepoShape project and raised Q7, which leg holds the
contract families, ruled the same day: "Code leg, declared override
(Recommended)"; and the spec leg's own OpenSpec gate vendors the pinned
CLI tarball, "Vendor the tarball (Recommended)".

THE DELTAS. `openxwallet`: all eight requirements REMOVED, successor
opensoft/openWallet. `openxwallet-agent-profile`: all three REMOVED, the
one successor text that differs enumerated. NEW capability
`openxwallet-factory-binding`: five ADDED requirements for the adapter.
`review-authority-register-reader`: no delta. Sequencing: archive
add-multi-key-wallets before the carve; add-composition-drift-cascade
travels to openWallet; widen-register-reader stays; this change archives
last, with `retire_capabilities: true` and the measured archive
preconditions recorded.

The pinned-CLI gate (openspec-cli-pin, 1.12.0, --strict) is green over the
whole corpus with this packet in it.

Refs #25

Lane: openXwallet-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai

sourcery-ai Bot commented Oct 8, 2026

Copy link
Copy Markdown

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 2 days and 5 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@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.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@sourcery-ai

sourcery-ai Bot commented Oct 8, 2026

Copy link
Copy Markdown

Reviewer's Guide

This PR adds only a proposed OpenSpec packet—no repository, validator, pin, digest, or runtime changes—describing how the wallet would be split into a standalone three-leg openWallet neutral core, an openXwallet/openxFactory adapter, and domain-wallet profiles, with detailed governance, carve, verification, sequencing, and rollback requirements.

Sequence diagram for proposed in-process validator composition

sequenceDiagram
    participant Consumer
    participant Adapter as openXwallet
    participant Core as openWallet-code
    participant Factory as openxFactory

    Consumer->>Adapter: validate-openxwallet.py
    Adapter->>Core: importlib.load validator
    Adapter->>Core: provide vocabulary binding
    Core->>Core: validate_record
    Core->>Adapter: extension points for rule (t) and register checks
    Adapter->>Factory: read register and apply factory rules
    Adapter-->>Consumer: composed findings and exit status
Loading

Flow diagram for the proposed staged migration

flowchart LR
    Ratify[Ratify proposal]
    Prepare[Archive multi-key change and reflow specs]
    Birth[Create three public openWallet repositories]
    Carve[Carve code, spec, and root with path mapping]
    AdapterRebuild[Rebuild openXwallet adapter and verify neutrality]
    FactoryUpdate[Repin openxFactory and extend scoped initialization]
    Consumers[Verify domain-wallet and downstream consumers]
    Archive[Archive proposal after merged green evidence]

    Ratify --> Prepare --> Birth --> Carve --> AdapterRebuild --> FactoryUpdate --> Consumers --> Archive
Loading

File-Level Changes

Change Details Files
Adds a proposed, governance-only OpenSpec packet defining a three-layer wallet architecture and its migration boundaries.
  • Records Brett Heap’s ruling, unresolved ratification status, preserved prefixes, selected repository shape, composition model, vocabulary binding, and sequencing constraints.
  • Defines a new public three-repository openWallet project with assembly-root, spec-leg, and code-leg responsibilities.
  • Separates neutral contract/spec assets from openXwallet’s factory-specific adapter responsibilities and domain-wallet profiles.
  • Documents carve-manifest, byte-identity, pin-chain, rollback, archive-ordering, and cross-repository realization procedures without executing them.
openspec/changes/split-openwallet-neutral-core/.openspec.yaml
openspec/changes/split-openwallet-neutral-core/proposal.md
openspec/changes/split-openwallet-neutral-core/design.md
openspec/changes/split-openwallet-neutral-core/tasks.md
Moves the existing wallet capabilities out of openXwallet conceptually and introduces a factory-binding capability for the future adapter.
  • Marks all eight openxwallet requirements and all three agent-profile requirements as removed, with successor locations in openWallet.
  • Adds five requirements covering openWallet pinning, in-process validator composition, hermes vocabulary binding, factory issuer enforcement, identifier preservation, and transitive consumption.
  • Leaves review-authority-register-reader unchanged.
openspec/changes/split-openwallet-neutral-core/specs/openxwallet/spec.md
openspec/changes/split-openwallet-neutral-core/specs/openxwallet-agent-profile/spec.md
openspec/changes/split-openwallet-neutral-core/specs/openxwallet-factory-binding/spec.md

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxwallet-2 (openXwallet-2) (lane openXwallet-2, 2026-10-08T17:10:47Z)

RULING for lane openXwallet-2's PR #26 (head 2ae4eee1885536297e5653e64b6abb1b85cc8e9e) — RATIFIED and MERGE AUTHORIZED. Brett Heap (openXwallet operator authority), in session, 2026-10-08T17:10:47Z, verbatim: "ratify 26 and merge".

What this ratifies: the OpenSpec change split-openwallet-neutral-core as authored at that head — the three REMOVED/ADDED spec deltas (openxwallet 8 REMOVED, openxwallet-agent-profile 3 REMOVED, NEW openxwallet-factory-binding 5 ADDED), the design, the tasks, and every ruling already encoded in it: "keep the prefix" (2026-10-08), Q1–Q6 (recorded 16:30:50Z), Q7 and the spec-leg gate (recorded 17:01:43Z), all by multiple choice, labels verbatim. The change's own Status moves from proposed to ratified in a bookkeeping commit that follows this ruling on the same branch; that commit changes no delta.

What it authorizes: the merge of PR #26 into main, and the successor Speckit features in tasks.md in design.md's migration order — none of which this merge performs. Realization claims go on #25.

Recorded for the record: Codex review did not run on this head — chatgpt-codex-connector answered that its code-review usage limit was reached — so the merge proceeds on the operator's word with the five required checks green and no reviewer finding outstanding.

Refs #25

…Brett Heap: "ratify 26 and merge")

Bookkeeping only; no delta, design position or task changes meaning.

RATIFIED 2026-10-08T17:10:47Z by Brett Heap (openXwallet operator
authority), in session, verbatim: "ratify 26 and merge", at head
2ae4eee. Ruling, in Rule 2 form:
#26 (comment)

Recorded here: `Status: ratified` and the `Ratified:` block in proposal.md
(the prefix ruling, Q1-Q7 and the spec-leg gate with their verbatim labels
and recorded times), the opening and closing status paragraphs, `approved_by`
/ `approved_on` and a third `rulings.rounds` entry in .openspec.yaml, task
1.2 ticked in tasks.md, and the three sentences that said the change was not
yet ratified. Task 1.4 stays unticked until this commit's sha can be cited,
as the precedent did.

Codex review did not run on the ratified head: the connector reported its
code-review usage limit reached. The merge proceeds on the operator's word
with the required checks green and no reviewer finding outstanding.

Refs #25

Lane: openXwallet-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
@sonarqubecloud

sonarqubecloud Bot commented Oct 8, 2026

Copy link
Copy Markdown

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxwallet-2 (openXwallet-2) (lane openXwallet-2, 2026-10-08T17:17:21Z)

LANDING — lane openXwallet-2, session 7b8ff3df-688a-4d67-83d5-4c7cd179ed8b@Eagle, 2026-10-08T17:17:21Z, PR #26 into opensoft/openXwallet main

@brettheap
brettheap merged commit bf2dd4d into main Oct 8, 2026
7 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxwallet-2 (openXwallet-2) (lane openXwallet-2, 2026-10-08T17:17:38Z)

LANDED — lane openXwallet-2, session 7b8ff3df-688a-4d67-83d5-4c7cd179ed8b@Eagle, 2026-10-08T17:17:38Z, PR #26 into opensoft/openXwallet main → merge bf2dd4d

This was referenced Oct 8, 2026
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.

1 participant