Repository navigation
wallet-v1.2: the register's top level is read, and per-seat keys are enforced (GATED on #4) - #5
Conversation
Realizes add-per-seat-register-entries through Speckit feature 014-per-seat-register-entries. GATED on that packet's ratification — it is Status: draft, held for Brett, and this branch must not merge first. It exists so the ratification decides a built thing rather than an intention. check_register read two top-level keys and ignored every other one, which is why openxFactory's governed revocation_staleness_bound sat inside a REQUIRED check unadjudicated, and why the four minted council seat keys could not be recorded at all. The top level is now a CLOSED read set; the bound is required and validated under hermes-install's own grammar, so a value accepted here is one that repository's projection can carry. seat_keys is read and ENFORCED: seven fields checked as exact set equality, the fingerprint recomputed from the public key, canonical 43-character base64url (which refuses a 64-hex private seed by shape — the plausible catastrophic paste), duplicates refused rather than resolved by file order, the authorizing row required ACTIVE and unexpired by computed time, and both council spellings required to denote one body. The note counts entries ADJUDICATED, never parsed: the consumer gate asserts on that line, and a count of len(seat_keys) would prove parsing and nothing else. The cap is retained at one and re-grounded — it bounds AUTHORITY rows — so four keys under one row complete the first shape instead of exceeding it. Proven, not asserted: all eight contract digests recompute unchanged (and the nine in openxFactory's pin files: block); the four real public halves adjudicate 4 of 4 clean against a copy of the live register tree; the current unedited register still passes, so neither landing order can produce a mixed state. Suite 22 -> 69. 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 implements the wallet-v1.2 validator behavior update to fully read/close the review-authority register top-level key set and to read/enforce a new seat_keys surface (per-seat Ed25519 public keys + fingerprints), with supporting tests and Speckit documentation. It also bumps the declared contract_bundle_version to wallet-v1.2 and records release notes consistent with an additive minor (validator-only) release.
Changes:
- Extend
scripts/validate-openxwallet.pyregister validation: closed top-level keys, required/validatedrevocation_staleness_bound, and enforcedseat_keysadjudication with notes (no warnings). - Add a subprocess-driven pytest suite covering positive/negative cases for top-level closure, staleness bound grammar, and per-seat key enforcement (plus fixture update).
- Add Speckit plan/spec/tasks artifacts for feature
014-per-seat-register-entries, and update release bookkeeping (contracts/manifest.yaml,contracts/CHANGELOG.md,AGENTS.md).
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/per_seat_register_entries/test_top_level_and_seat_keys.py | New subprocess-driven tests asserting adjudication behavior and specific register-* codes. |
| tests/nested_repo_prune/test_prune_and_register_note.py | Update fixture register tree to include required revocation_staleness_bound. |
| specs/014-per-seat-register-entries/tasks.md | Speckit task checklist for the feature implementation and proofs. |
| specs/014-per-seat-register-entries/spec.md | Feature spec documenting requirements FR-001..FR-010 and scope. |
| specs/014-per-seat-register-entries/plan.md | Implementation plan, testing strategy, and risk notes. |
| scripts/validate-openxwallet.py | Core validator changes: top-level closure, staleness bound validation, seat_keys enforcement, updated self-test probes. |
| contracts/manifest.yaml | Bump contract_bundle_version to wallet-v1.2. |
| contracts/CHANGELOG.md | Add wallet-v1.2 release entry documenting validator-only additive minor behavior. |
| AGENTS.md | Point “Active Speckit Feature” to 014-per-seat-register-entries and reiterate ratification gating. |
Suppressed comments (1)
scripts/validate-openxwallet.py:2197
base64.urlsafe_b64decode()can raisebinascii.Errorfor non-base64 characters. Right now_decode_public_key()only catchesValueError/TypeError, which can crash the validator instead of emittingregister-seat-key-malformed. Catchbinascii.Errortoo.
try:
raw = base64.urlsafe_b64decode(value + "=")
except (ValueError, TypeError):
return None
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| import argparse | ||
| import base64 | ||
| import hashlib | ||
| import os | ||
| import re | ||
| import sys |
| f"(expected {SEAT_COUNCIL_HOLDER_PREFIX}" | ||
| f"{entry['council_id'].replace('_', '-')!r}); the register " |
| Realizes the openXwallet change `add-per-seat-register-entries` (capability | ||
| `review-authority-register-reader`, ratified 2026-08-28), through Speckit feature | ||
| `specs/014-per-seat-register-entries/`. It also discharges |
…ty, 2026-08-28) The packet was authored Status: draft and HELD. Brett ruled in-session "ratify #4, then merge #5, tag and complete C" (2026-08-28), which ratifies this proposal exactly as authored and releases the gate its realization branch sits behind. Recorded in house form: front-matter Status: draft -> ratified with a Ratified: line naming the authority and the ruling; the ## Status section rewritten from "held" to ratified; a ## Ratification record, 2026-08-28 section mirroring add-composition-drift-cascade's shape. D1 stands as proposed -- the mint record's SECOND exit (a per-seat seat_keys entry surface) over its first (row-set semantics), with REGISTER_MVP_SINGLE_ROW kept at 1 and RE-GROUNDED over authority rows rather than raised. Register breadth (a second holder, a second target repository, per-seat grants) stays a named successor, unchanged by this ratification. tasks.md 1.1 and 1.2 ticked -- they gate on exactly this act. Nothing else is ticked: the realization surface is authorized, not performed, here, and the [HUMAN-ONLY] register edit, the [OPERATOR] tag, the projection re-derivation, and the several-keys question (7.3) keep their marks. OPENSPEC_TELEMETRY=0 openspec validate --all --strict: 4 passed, 0 failed. Co-Authored-By: Claude Fable 5 <[email protected]>
…fied PR #4 merged to main at 10cbdca -- add-per-seat-register-entries now reads Status: ratified, ratified by Brett Heap (operator authority) 2026-08-28 on the in-session ruling "ratify #4, then merge #5, tag and complete C", with D1 standing as proposed (the per-seat seat_keys surface; the cap re-grounded over authority rows, not raised). Evidence, not intention: the box is checked against the merge commit. T023-T027 keep their [OPERATOR] / [openxFactory] marks -- the tag, the pin and register bump, the consumer-gate positive proof, and the projection re-derivation are not this branch's acts. Co-Authored-By: Claude Fable 5 <[email protected]>
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Suppressed comments (4)
Previously missed (3) — in code that hasn't changed since the last review.
AGENTS.md:19
- This references
openspec/changes/add-per-seat-register-entries/, but that path does not exist in this branch (there is noopenspec/changes/*per-seat*entry). Until the governing change lands, this is a broken pointer for anyone trying to follow the workflow fromAGENTS.md.
- Governing change: THIS repository's
`openspec/changes/add-per-seat-register-entries/` — capability
`review-authority-register-reader`
specs/014-per-seat-register-entries/plan.md:5
- The plan points at
openspec/changes/add-per-seat-register-entries/, but that directory isn’t present in this branch. If the governing change is intentionally in a separate gated PR, prefer referencing that PR explicitly (or rebase once it lands) so the pointer is resolvable from this branch.
are enforced. **Governing change**:
`openspec/changes/add-per-seat-register-entries/` (Status: draft, held for Brett).
specs/014-per-seat-register-entries/spec.md:19
- This spec claims the governing change is at
openspec/changes/add-per-seat-register-entries/, but that path does not exist in this branch. That makes the "designs decided there" reference non-actionable for reviewers unless they already have PR #4 checked out.
This feature realizes the openXwallet OpenSpec change
`openspec/changes/add-per-seat-register-entries/` — capability
`review-authority-register-reader`, three ADDED requirements — whose designs
**D1** (a per-seat key surface, the cap re-grounded not raised), **D2** (the
scripts/validate-openxwallet.py:2370
- The
register-seat-council-spellingerror message formats the expectedcouncil_refincorrectly: it applies!ronly to the suffix, producing output likeagent:'merge-readiness-council'(quotes in the middle) instead of a single quoted expected value. This makes the message harder to understand and can mislead during governance-file edits.
f"{label} ({seat}): council_ref {entry['council_ref']!r} and "
f"council_id {entry['council_id']!r} do not denote one body "
f"(expected {SEAT_COUNCIL_HOLDER_PREFIX}"
f"{entry['council_id'].replace('_', '-')!r}); the register "
f"spelling anchors the authority and the runtime spelling is "
| (`Status: ratified`, `Ratified:` naming the authority and the ruling) plus | ||
| `## Ratification record, 2026-08-28`, committed `5aef29f` and merged to | ||
| `main` as PR #4 (`10cbdca`). D1 stands as proposed — the per-seat key | ||
| surface, with the cap re-grounded over authority rows rather than raised. | ||
| This branch is released by that merge and by nothing else. |
…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]>



GATED ON #4. Its packet is
Status: draft, held for Brett. This must not merge before #4 is ratified. It is authored and green so the ratification decides a built thing rather than an intention. Do not tag —wallet-v1.2is[OPERATOR]and follows the human merge.Speckit feature
specs/014-per-seat-register-entries/. Realizesadd-per-seat-register-entries(#4) and dischargesadd-composition-drift-cascadetask 3.4.What changes
One code file:
scripts/validate-openxwallet.py(check_register). It is in openxFactory's pinpinned_by_commit_only:list, so this is a COMMIT move and never a digest move — which is what makes the release additive.register_version,revocation_staleness_bound,rows,seat_keys; anything else isregister-top-level-unknown. Closing the SET is the point: the next declaration added to that file cannot pass unread without a reader edit.revocation_staleness_boundis required and validated under hermes-install's own grammar (weeks/days/hours/minutes/seconds; no years or months; no zero window), so a value accepted here is one that repository's projection schema can carry.seat_keysis read and ENFORCED — seven fields as exact set equality; fingerprint recomputed from the public key; canonical 43-character base64url (which refuses a 64-hex private seed by shape — the plausible catastrophic paste into a governed file); duplicate seat/key/fingerprint refused rather than resolved by file order; the authorizing row required ACTIVE and unexpired by COMPUTED time; and both council spellings required to denote one body.REGISTER_MVP_SINGLE_ROWstays 1; its refusal now names AUTHORITY rows.Eleven new finding codes, zero renamed, all matching
register-[a-z-]+so openxFactory's existing negative gate assertion reaches them with no edit there. No new WARNING anywhere — LedgerxFactory runs this validator with--strict.The note counts entries ADJUDICATED, not parsed. openxFactory's positive-proof step asserts on that line, and a count of
len(seat_keys)would prove parsing and nothing else — the defect one level up from the one being closed.Proofs, not assertions
files:block)4 of 4 per-seat signing key(s) adjudicated and resolved, 0/0 under--stricttest_the_previous_version_adjudicates_the_corpus_identicallyrecovers the previous validator from git and refuses to compare a blob against itselfpytest tests/ -qverify-contract-pin.py, syntax gate,openspec validate --all --strictOne existing fixture changed:
tests/nested_repo_prune/..::_register_treenow declares the staleness bound, because a register without it is no longer a readable register and a fixture that pretended otherwise would test a shape no consumer can commit. wallet-v1.1's two behaviours are unchanged and still asserted.Ordering after this merges
wallet-v1.2tag[OPERATOR]→ openxFactory pin bump + the four register entries in ONE human-only PR → operator re-derives the Hermes projection. hermes-install needs no code change (packetdesign.mdD11): its projection schema and reader atcba1a2balready require and recompute per-seatkey_id/key_fingerprint/public_key. What it lacked was content to project FROM.🤖 Generated with Claude Code