Skip to content

Propose split-openxwallet-repo: the wallet's contracts are the product, so openXwallet gets its own repo - #391

Merged
brettheap merged 3 commits into
mainfrom
change/split-openxwallet-repo
Aug 26, 2026
Merged

brettheap merged 3 commits into
mainfrom
change/split-openxwallet-repo

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Proposal only. No code is changed by this PR — it carries the staged topic and the change packet; tasks.md holds the build order. Do not merge until the packet is admitted (see "For your ruling").

Packet: openspec/changes/split-openxwallet-repo/ — proposal (Status: draft), design D1–D14, 140 tasks in 13 groups, clarifications.md, and seven spec deltas / 30 requirements: ADDED domain-descendant-boundary (5) and neutral-product-pin (9); REMOVED openxwallet (8) and openxwallet-agent-profile (3) — the corpus's first ## REMOVED Requirements block, titles verified character-exact against the promoted specs; MODIFIED trust-anchor (1), review-authority-intake (3 blocks), shared-contract-ownership (1). Two commits: the staged topic ideation/staging/openxwallet-neutral-home/ with register row DTN-026, then the packet plus its README OpenSpec Records entry.

Origin

Exit of the staged topic on Brett Heap's in-session rulings of 2026-08-26, carried as LOCKED decisions: R1 repo/brand opensoft/openXwallet (house openX<type> form; Amendment 2 to docs/openxdox-naming.md, which listed openxWallet as a family exception) · R2 machine keys unchanged in v1 (kind: xfactory_wallet_*, capability ids, finding codes, filenames) · R3 the new repo owns the wallet standard (both contract families, corpus, validator, syntax gate, wallet-validation.yml, Speckit 006/010/012, the add-openxwallet archive); openxFactory keeps the seam (governance/review-authority/, Speckit 013/014, add-wallet-carried-review-authority, the trust-anchor / identity-brokering / roles-authority-model compositions, all ideation) · R4 bidirectional commit + per-file-digest pins · R5 root-level openXwallet/ in the aggregation · R6 the register stays, the reader travels · R7 descendants are MedxWallet / LedgerxWallet / codexWallet (house <Domainx><Product>) · R8 LedgerxWallet first.

The general standard this change ratifies: a domain consumes a neutral open* product through a descendant repository that pins it by commit twice (gitlink + contracts/<product>-pin.yaml), carries profile and never fork, sits at a ratified placement, and is created lazily on its first profile. Precedents cited as what they are: DTN-022 (openAvatar → MedxAvatar/LedgerxAvatar) is ratified; create-medxchart-overlay-boundary / create-medxpractice-overlay-boundary are Status: draft changes in flight.

What review changed

Alignment review (stack architect + QA lead, 30 findings, all applied) and council (product / systems-architect / adversary, 14 VALID, 8 NOTED, 0 DISMISSED) — five records retained beside the proposal. The load-bearing corrections:

  • The ruleset token survives by alias. S1 task 2.5 is already DONE — ruleset 21538893 requires the status-check token wallet-validation, which is the job id. The new openxwallet-consumer-gate.yml keeps jobs: wallet-validation:, so P3 needs no operator act and has no dead window. The token rename is a successor.
  • A deprecation minor precedes the major (P2.5). docs/contract-versioning-policy.md:250 makes a removed shape BREAKING. The marker is manifest-carried (relocating: on the eight rows + CHANGELOG note, emitted by scripts/check-openxfactory-pin.py), never a validator warning — LedgerxFactory runs the validator --strict.
  • Two wallet tags. wallet-v1.0 is the byte-identical move, proven against a named carve commit (eight sha256s + empty diff; the one prose edit is openxFactory SHALL → openXwallet SHALL). wallet-v1.1 (P2b) adds nested-repository sweep pruning — a submodule's .git is a file, so the sweep would otherwise re-adjudicate the pinned tree inside a REQUIRED check — and is what openxFactory pins at P3.
  • No "register mode" exists or is needed. check_register keys off the positional scan target, so the consumer gate runs python3 openXwallet/scripts/validate-openxwallet.py . from openxFactory's root; the validator diff between the carve commit and wallet-v1.0 is EMPTY. A target-less invocation must refuse rather than self-test (repo_scan only runs with a path argument).
  • codexFactory DOES change (P3b). Its floor lists only governance/review-authority/register.yaml; without contracts/openxwallet-pin.yaml and the openXwallet gitlink added to never_clearable_paths, one PR could swap in a neutered reader and edit a grant. Pre-existing gap recorded for the arc's owner: the floor omits grants/, wallets/, attestations/.
  • P4b. sync-notebooklm-books.py and ideation_routing._governed_repo_ids only recognise xFactories/*; a root-level repo (as openAvatar is today) gets no ideation book until the allowlist widens.
  • Task 2.6's red-proof stays in openxFactory (the repository that holds the register); shared-contract-ownership needed a MODIFIED delta (shedding the validator demotes openxFactory to consumer for the family); nested-submodule fetch in CI needs the app-token insteadOf pattern from doc-health-reusable.yml; LedgerxFactory's finder prefers the pinned nested gitlink and gains a declared openxwallet: block in stack.yaml.

Build order (design.md Migration Plan): P5a.1 → P2 → P2b → P2.5 → P5a.2 → [P3 + P3b + P4, one wave] → P5b → P4b → P6 (LedgerxWallet) → P7. Guards: the register row expires 2026-11-23 (re-issue first, or do not schedule P3 after 2026-11-01); P3 rebases and re-verifies the eight digests immediately before merge.

Validation

  • openspec validate split-openxwallet-repo --strict → valid; openspec validate --all --strict → 78 passed, 0 failed (after rebase onto 2f8512e2)
  • scripts/doc-health.py --single-repo . → finding list byte-identical to the pre-packet baseline; promotion-fidelity no findings
  • git diff --check clean

For your ruling

Ratify as proposed, or rule on any of the five carried open questions (proposal § Open questions): Q1 register as a wallet primitive vs the reader split back; Q2 whether tenants/ledgerxcorp/wallets/* move into LedgerxWallet (Ledgerx's call); Q3 the kind-prefix rename's deprecation window (successor); Q4 openXwallet-Install only once a runtime exists; Q5 openXwallet's own bundle-tag scheme (wallet-vX.Y proposed).

🤖 Generated with Claude Code

brettheap and others added 2 commits August 26, 2026 16:50
Stages `openxwallet-neutral-home` — delta type `split`, on the DTN-022
`opensoft/openAvatar` template ruling, with `create-medxchart-overlay-boundary`
and `create-medxpractice-overlay-boundary` as the descendant-boundary
precedents.

Rulings source: Brett Heap, in session 2026-08-26, R1-R8 accepted exactly as
recommended — verbatim, "approve R1-R8 as recommended, stage the topic and
propose". R1 `opensoft/openXwallet` on the house `openX<type>` form (owes
`docs/openxdox-naming.md` an Amendment 2, which currently records `openxWallet`
as a family exception). R2 machine keys frozen in v1 — a rename in the same
change as the move is unbisectable. R3 the new repo owns the wallet's own
standard; openxFactory keeps the seam. R4 the pin is bidirectional and acyclic.
R5 a root-level `openXwallet/` submodule. R6 the register stays, its reader
travels. R7 descendants are `<Domainx><Product>`. R8 `LedgerxWallet` first.

The reusable half is the finding that the domain descendant repo is ALREADY the
house standard with no counter-example — openChart -> MedxChart, openPractice ->
MedxPractice, openAvatar -> MedxAvatar/LedgerxAvatar — so the topic ratifies the
pattern once as `domain-descendant-boundary` rather than paying for a fourth
bespoke boundary change. First release is a byte-identical pure move: the eight
artifact sha256s must equal openxFactory HEAD's manifest rows before
`wallet-v1.0` is tagged.

Five open questions carried, none blocking the move; Q1 (promote the
review-authority register as a wallet primitive vs split the reader back) is
expected to travel to the council rather than resolve, since either answer
converts a provably-empty diff into a design change.

Registered as DTN-026, not DTN-025: DTN-025 was taken the same day by the
merged shared-identity seed for `docs/credentialing.md`. Status `staged`, not
`adopted` — nothing has moved yet, and this register's alias table defines
`adopted` as domain re-pin and local-copy retirement complete.

Co-Authored-By: Claude Fable 5 <[email protected]>
Proposed on Brett Heap's in-session rulings of 2026-08-26 — R1-R8 accepted
exactly as recommended, verbatim "approve R1-R8 as recommended, stage the topic
and propose" — as the first and only exit of the staged topic
`openxwallet-neutral-home`. Registered as DTN-026.

Thirty requirement blocks across seven spec deltas: ADDED 14
(`domain-descendant-boundary` 5, `neutral-product-pin` 9), REMOVED 11
(`openxwallet` 8 and `openxwallet-agent-profile` 3 — this corpus's first
`## REMOVED Requirements` blocks and its first capability exit, all eleven
titles verbatim because `promotion_fidelity.py` keys on (capability,
normalized title)), MODIFIED 5 (`review-authority-intake` 3,
`shared-contract-ownership` 1, `trust-anchor` 1).

Alignment review applied: 30 findings across two reviewers, every MISMATCH,
DRIFT and GAP taken, each reviewer's missing-`specs/` finding deferred to the
specs phase and discharged by the seven deltas. Council returned 14 verdicts,
all VALID and none DISMISSED (two raised jointly), plus 8 NOTED-class
constraints carried into `clarifications.md`; all five review records are
retained in the packet rather than folded into the proposal.

`tasks.md` follows design's Migration Plan order — 140 tasks in thirteen
groups, one per wave phase, with the two unenforceable sequencing guards
restated as tasks: the register row's 2026-11-23 `expires_at` clock (re-issue
the row, or do not schedule P3 after 2026-11-01) and the manifest freeze P3
discharges by rebasing and re-verifying the eight digests immediately before
merge.

Three reconciliations against design, surgical and leaving R1-R8 and the LOCKED
block untouched: the register-read evidence becomes the POSITIVE conjunction
the pinned reader actually produces, since `check_register` names the register
path on failure only, with the durable NOTE landing upstream; the
nested-repository sweep exclusion is upstream code cut as `wallet-v1.1`
(successor P2b) and openxFactory's pin at P3 is that tag, `wallet-v1.0`
remaining the byte-identical pure move the floor is proven against; and P5a
splits into P5a.1 before P2 and P5a.2 after P2.5's cut, because one pull
request cannot both precede P2 and pin a bundle P2.5 has not published.

`OPENSPEC_TELEMETRY=0 openspec validate --all --strict` green, 79 items.
Doc-health single-repo: 5 critical / 7 error / 41 warning / 4 info, unchanged
from the pre-packet baseline, zero new findings.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 26, 2026 20:51

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

Pull request overview

This PR introduces an OpenSpec proposal packet (split-openxwallet-repo) that argues for extracting the wallet contract families + validator into a dedicated opensoft/openXwallet repository, while defining how openxFactory (and domains) consume neutral open* products via commit+digest pins and descendant repositories. It also stages the topic exit record and updates the repo’s indexing/registries to track the proposal and its DTN registration.

Changes:

  • Add the openspec/changes/split-openxwallet-repo/ packet artifacts (design, tasks, clarifications, review records, and seven spec-delta documents: ADDED/MODIFIED/REMOVED).
  • Register and index the proposal across repository ledgers (root README.md OpenSpec Records, ideation staging index, and DTN register entry).
  • Capture the staged-topic exit content under ideation/staging/openxwallet-neutral-home/ to preserve provenance for the proposal.

Reviewed changes

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

Show a summary per file
File Description
README.md Adds the new change entry to the OpenSpec Records “Active changes” ledger.
openspec/changes/split-openxwallet-repo/.openspec.yaml Declares the change origin/provenance metadata for the packet.
openspec/changes/split-openxwallet-repo/tasks.md Adds the dependency-ordered build plan (P1 + successors) for the proposed split wave.
openspec/changes/split-openxwallet-repo/design.md Records design decisions, trade-offs, risks, and migration sequencing for the split.
openspec/changes/split-openxwallet-repo/clarifications.md Captures council constraints that shape the design decisions.
openspec/changes/split-openxwallet-repo/specs/domain-descendant-boundary/spec.md Adds ADDED requirements for the descendant pin-and-profile boundary standard.
openspec/changes/split-openxwallet-repo/specs/neutral-product-pin/spec.md Adds ADDED requirements for external neutral-product pinning and fail-closed verification semantics.
openspec/changes/split-openxwallet-repo/specs/trust-anchor/spec.md MODIFIED delta to repoint the trust-anchor custody composition to the pinned wallet product.
openspec/changes/split-openxwallet-repo/specs/review-authority-intake/spec.md MODIFIED deltas to keep wallet-path references satisfiable after the split/pin.
openspec/changes/split-openxwallet-repo/specs/shared-contract-ownership/spec.md MODIFIED delta to cover the “publisher is consumer of external neutral product” case.
openspec/changes/split-openxwallet-repo/specs/openxwallet/spec.md REMOVED-requirements delta describing the corpus exit for openxwallet.
openspec/changes/split-openxwallet-repo/specs/openxwallet-agent-profile/spec.md REMOVED-requirements delta describing the corpus exit for openxwallet-agent-profile.
openspec/changes/split-openxwallet-repo/alignment-stack-architect.md Alignment review record retained in-packet.
openspec/changes/split-openxwallet-repo/alignment-qa-lead.md Alignment review record retained in-packet.
openspec/changes/split-openxwallet-repo/council-systems-architect.md Council review record retained in-packet.
openspec/changes/split-openxwallet-repo/council-adversary-engineer.md Council review record retained in-packet.
openspec/changes/split-openxwallet-repo/council-product-advocate.md Council review record retained in-packet.
ideation/staging/openxwallet-neutral-home/openxwallet-neutral-home.md Adds the staged topic exit artifact that the proposal references as its origin.
ideation/staging/INDEX.md Registers the staged topic in the staging index.
docs/domain-neutralization-candidate-register.md Adds DTN-026 register row and details for the staged/proposed split.

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

Comment thread README.md Outdated
REMOVES `openxwallet` (8 requirements) and `openxwallet-agent-profile` (3) to
`opensoft/openXwallet` at `wallet-v1.0` — **the corpus's first
`## REMOVED Requirements` blocks and its first capability exit**, all eleven
titles named verbatim because `promotion_fidelity.py` keys on (capability,
Comment on lines +67 to +69
and whose `scope.authority_tier` is drawn from the closed ladder in
`openxwallet-custody.registry.yaml:15-37`, consumed from `opensoft/openXwallet`
at the pin recorded in `contracts/openxwallet-pin.yaml` — the tiers themselves
Brett Heap ratified `split-openxwallet-repo` in session on 2026-08-26, after
PR #391's two required checks reported green. The ruling, verbatim:

  "ratify as proposed and merge, then start /opsx:apply"

followed immediately by his standing correction, verbatim:

  "remember that we build with speckit, not openspec"

So the record carries both halves. RATIFIED AS PROPOSED — the two ADDED
capabilities (`domain-descendant-boundary`, `neutral-product-pin`), the two
REMOVED deltas (`openxwallet`, `openxwallet-agent-profile`, successor location
recorded), the three MODIFIED deltas (`trust-anchor`,
`review-authority-intake`, `shared-contract-ownership`), Amendment 2 and the
aggregation working-rule amendment, and the byte-identity floor with its ONE
named prose carve-out, proven against the NAMED CARVE COMMIT. R1-R8 stand
unchanged. Q1-Q5 are carried at design.md's dispositions: Q1 (register as a
wallet primitive vs the reader split back) travels; Q2 (`tenants/*/wallets/*`)
stays for P6; Q3 (the `xfactory_wallet_*` rename window) stays for the
openXwallet successor at the stated price; Q4 (`openXwallet-Install`) is a
registered NAME with no repository; Q5 is `wallet-vN.M` with no range in the
pin.

The build path is the correction, applied: OpenSpec ratifies the boundary and
Speckit builds it — Speckit features, one per tasks.md group, in design.md's
Migration Plan order, starting with section 1's remaining packet bookkeeping
(Amendment 2 to `docs/openxdox-naming.md`, the xFactory working-rule #1
amendment) and P5a.1, LedgerxFactory's three-candidate finder. `/opsx:apply`
is NOT used on this change.

Take Copilot's three notes from PR #391: `promotion_fidelity.py` gets its repo
path `scripts/doc_health/promotion_fidelity.py` in the README entry; the
fail-closed remediation string becomes `git submodule update --init` without
`--recursive`, consistently across the packet, because the wave's CI init is
deliberately non-recursive (the sentences that REJECT `--recursive` keep the
word); and the custody-ladder citation regains its directory prefix,
`contracts/openxwallet/openxwallet-custody.registry.yaml:15-37`.

Merging PR #391 is the convener's own act and is not performed here.

Evidence: `openspec validate split-openxwallet-repo --strict` valid;
`--all --strict` 78 passed, 0 failed; `doc-health.py --single-repo .` shows no
new finding (only the staged word count moves, +318).

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 26, 2026 21:47

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 21 out of 21 changed files in this pull request and generated 2 comments.

Comment thread README.md
actually pins), **P4b** (root-level governed-repo recognition, whose living
proof is that `xf-ideation-openavatar` does not exist five months into the
openAvatar precedent) and **P6** (`create-ledgerxwallet-overlay-boundary`).
`Status: draft`; alignment review raised 30 findings across two reviewers (all
evidence`); the byte-identity floor with its ONE named prose carve-out; the
alias-preserved `wallet-validation` token; ten non-negotiable sequencing
items; the realization-evidence table as a gate; Q1–Q5 with recommended
answers and destinations; the successors named. `Status: draft`.
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