Skip to content

Realize S4 of add-wallet-carried-review-authority: the register and its reader - #341

Merged
brettheap merged 4 commits into
mainfrom
014-register-and-reader
Aug 25, 2026
Merged

brettheap merged 4 commits into
mainfrom
014-register-and-reader

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

What

Tasks §5.1–5.3 + §5.5 of the ratified add-wallet-carried-review-authority — the capability's own ratification condition, landed in ONE change:

  • governance/review-authority/register.yaml — the intake register. Kindless by ruling (design D11: no contract schema until rule-of-three; the reader IS the shape). Header carries the Q1c constraint (file ≠ revocation surface), the explicit permanently-human-only declaration with its by-name floor pointer, and the no-schema note. Exactly ONE MVP row: merge_readiness_council → opensoft/openxFactory, act review, tier act, ~90-day term.
  • governance/review-authority/grants/grant-mrc-0001.yaml — the first root review-authority grant: audience wal-agent-mrc-0001, issued_by: [email protected] under the HEC anchor — first positive exercise of OXWR-R2 after S2 proved both refusal directions.
  • scripts/validate-openxwallet.py — the reader, riding the ALREADY-required wallet-validation check: strict row fields (reader is the shape), wallet/grant resolution + reconciliation, COMPUTED expiry with stale stored state flagged on the grant (N8), act-tier attestation coupling (013's recorded obligation), minimal-shape bound, and the inverted headline: an active REVIEW-class grant without a backing active row fails.
  • specs/014-register-and-reader/ — full feature packet.

Boundaries (recorded, not performed)

Floor entry BY NAME in codexFactory gate rules (§5.4) · revocation surface + staleness bound (S5) · exercise records (S3) · composition mapping (task 4.4, codexFactory) · register CONTRACT SCHEMA (D11 successor) · grant-side unattested-cap enforcement inside check_grant.

No contract bytes move: no schema edit, no manifest entry, no CHANGELOG line, no bundle cut.

Gate evidence (this tree, 9374b16b)

Gate Result
Whole-checkout sweep --strict exit 0 — repo scan: 2 openxWallet artifact(s) validated; corpus unchanged 17 positives / 36 negatives across 13/13 requirements
Layer-1 self-test 0 errors incl. 8 synthesized-tree probes pinning every register refusal code (kindless ⇒ trees are the negative coverage)
Live mutation probe register renamed away → register-no-active-row through production wiring; restored → green
pytest tests/wallet_yaml_syntax_gate/ -q 4 passed
openspec validate --all --strict 75 passed / 0 failed
Boundary diff vs base (contracts/ .github/) + private-material scan empty / clean

Operator rulings 2026-08-25 recorded in implementation-notes: grant minted within S4; single target opensoft/openxFactory; ~90-day term.

…ts reader

Tasks 5.1-5.3 + 5.5, one change as the capability's own ratification
condition demands. The intake register lands at
governance/review-authority/register.yaml - kindless BY RULING (design D11:
the shape is a declared successor; the reader IS the shape) - carrying the
Q1c constraint, the explicit permanently-human-only declaration and its
by-name floor pointer in its own documentation, and exactly ONE MVP row:
merge_readiness_council over opensoft/openxFactory, review act, tier act,
~90-day term.

Beside it, the FIRST root review-authority grant (grant-mrc-0001): audience
wal-agent-mrc-0001, issued_by [email protected] under the Human
Escalation Contract anchor - the first positive exercise of OXWR-R2 after
S2 proved both refusal directions.

The reader rides the ALREADY-required wallet-validation check:
check_register enforces strict row fields (this reader is the shape),
wallet/grant resolution and reconciliation, COMPUTED expiry with the stale
stored state flagged on the grant (N8), act-tier attestation coupling
(013's recorded obligation), a minimal-shape bound, and the inverted
headline - an active REVIEW-class grant without a backing active row fails,
which is "a convening admitting a holder with no active row" in CI form.
Eight synthesized-tree self-test probes pin every refusal code; a kindless
register cannot be a corpus fixture, so these trees ARE the negative
coverage. Absent register with no review grants stays clean for every
consumer repo that has not cold-started the arc.

No contract bytes move (D11): no schema edit, no manifest entry, no
CHANGELOG line, no bundle cut.

Gate evidence (this tree): sweep --strict exit 0 with BOTH live artifacts
validated; corpus unchanged at S2 baseline 17 positives / 36 negatives
across 13/13 requirements; layer-1 self-test 0 errors incl. all eight S4
probes; live mutation probe fired register-no-active-row through production
wiring (restored immediately); pytest tests/wallet_yaml_syntax_gate/
4 passed; openspec validate --all --strict 75 passed / 0 failed;
contracts+.github diff vs base empty; private-material diff scan clean.
Copilot AI lite review requested due to automatic review settings August 25, 2026 13:42

@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 realizes S4 of the ratified add-wallet-carried-review-authority change by landing the review-authority intake register and its reader together (enforced via the existing wallet-validation validator), plus the first live root review-authority grant and a full feature packet documenting the design, gates, and boundaries.

Changes:

  • Extend scripts/validate-openxwallet.py with a strict, kindless register reader (check_register) plus self-test probes, and wire it into repo sweeps.
  • Add live governance artifacts: the kindless intake register and the first root review-authority grant instance.
  • Add the full specs/014-register-and-reader/ documentation packet (spec/plan/tasks/research/quickstart/data-model/notes/checklist).

Reviewed changes

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

Show a summary per file
File Description
specs/014-register-and-reader/tasks.md Task breakdown and execution checklist for S4 register+reader delivery.
specs/014-register-and-reader/spec.md Feature spec describing requirements, scenarios, and success criteria for the register/reader.
specs/014-register-and-reader/research.md Grounding notes and verified substrate facts supporting the implementation.
specs/014-register-and-reader/quickstart.md Operator-facing commands to run sweeps, self-tests, and mutation probes.
specs/014-register-and-reader/plan.md Implementation plan and sequencing rationale for reader-first then artifacts.
specs/014-register-and-reader/implementation-notes.md Recorded operator rulings and gate evidence for the landed artifacts.
specs/014-register-and-reader/data-model.md Documented shape of the kindless register row + grant and emitted reader codes.
specs/014-register-and-reader/checklists/requirements.md Spec-quality checklist for the packet.
scripts/validate-openxwallet.py Adds register reader logic, attestation loader, self-test probes, and repo_scan wiring.
governance/review-authority/register.yaml New kindless intake register with one MVP row and required header declarations.
governance/review-authority/grants/grant-mrc-0001.yaml First root review-authority grant instance backing the MVP register row.

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

Comment thread scripts/validate-openxwallet.py Resolved
Comment thread specs/014-register-and-reader/spec.md Resolved
Comment thread scripts/validate-openxwallet.py Resolved
brettheap and others added 2 commits August 25, 2026 10:08
Reject offset-naive timestamps before aware-time comparisons, and require self-test probes to match the complete error-code set. Add a regression probe for the previously crashing timestamp.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <[email protected]>
Distinguish the council holder reference from its wallet reference in FR-001.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <[email protected]>
Copilot AI review requested due to automatic review settings August 25, 2026 14:08

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 11 out of 11 changed files in this pull request and generated 1 comment.

Suppressed comments (2)

Previously missed (2) — in code that hasn't changed since the last review.

scripts/validate-openxwallet.py:1858

  • The missing-register path labels these as “active REVIEW-class grants”, but the filter only checks whether the grant’s scope contains the review act; it does not check the grant’s state (or computed expiry). This means inactive (or expired-but-still-present) review grants can incorrectly trigger register-no-active-row when the register file is absent. The same “act-only” notion of activity is also used in the headline obligation loop later in this function, so the definition of “active” should be made consistent in both places.
        review_holders = [
            gid for gid, g in ctx.grants.items()
            if isinstance(g.get("scope"), dict)
            and REVIEW_ACT_TOKEN in _hashable_set(g["scope"].get("acts"))
        ]

scripts/validate-openxwallet.py:2009

  • The headline obligation’s backed check treats any dict row with matching grant_ref, state: active, and a future expires_at as a backing “active register row”. This can suppress register-no-active-row even when the row is otherwise invalid (e.g., strict field-set mismatch, unresolved/inactive wallet, grant mismatch, missing attestation), because those earlier errors don’t influence the later backed predicate. Consider deriving a “validated active backing rows” set during the row-validation loop and using that here, rather than re-checking only a subset of fields.
        backed = any(
            isinstance(r, dict) and r.get("grant_ref") == gid
            and r.get("state") == "active"
            and (_parse_dt(r.get("expires_at")) or now) > now
            for r in rows if isinstance(r, dict))

Comment thread scripts/validate-openxwallet.py Resolved
Require the grant audience holder and sole scope object to match the register row, with a self-test covering both mismatch dimensions.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <[email protected]>
Copilot AI review requested due to automatic review settings August 25, 2026 14:22

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

Suppressed comments (3)

Previously missed (2) — in code that hasn't changed since the last review.

scripts/validate-openxwallet.py:1879

  • check_register treats any REVIEW-class grant as “active” when the register file is missing, regardless of the grant’s state. This can incorrectly raise register-no-active-row for revoked/expired review grants (and the message says “active”). Also, reg_path.exists() allows a non-file (e.g., directory) at that path, which would raise IsADirectoryError from load_yaml() and turn into a generic harness failure instead of a controlled finding.

This issue also appears on line 2018 of the same file.

    now = now or datetime.now(timezone.utc)
    reg_path = Path(base_dir).joinpath(*REGISTER_DIR_PARTS, REGISTER_FILE)
    if not reg_path.exists():
        review_holders = [
            gid for gid, g in ctx.grants.items()

scripts/validate-openxwallet.py:1917

  • active_rows is computed but never read, which makes the register logic harder to follow and suggests an incomplete refactor (especially since the backing-row logic is recomputed later). This should either be removed entirely or used as the single source of truth for “active row” decisions.
    active_rows: set[str] = set()
    for i, row in enumerate(rows):
        label = f"{reg_path}:rows[{i}]"

scripts/validate-openxwallet.py:2022

  • The “headline obligation” loop flags register-no-active-row for any grant whose scope includes the review token, even if the grant is not in state: active. That makes the error text (“active REVIEW-class grant …”) inaccurate and can force a register for historical/revoked grants.
    for gid, g in sorted(ctx.grants.items()):
        scope = g.get("scope") if isinstance(g.get("scope"), dict) else {}
        if REVIEW_ACT_TOKEN not in _hashable_set(scope.get("acts")):
            continue
        backed = any(

@brettheap
brettheap merged commit 410fa18 into main Aug 25, 2026
3 of 4 checks passed
brettheap pushed a commit that referenced this pull request Aug 25, 2026
The Active row for add-wallet-carried-review-authority still read "NOT YET
RATIFIED (Status: draft)" while the proposal has carried Status: ratified and
a full "Ratification record, 2026-08-23" section since Brett's in-session
ruling that day. The row now states the ratification in the shape its
add-substantive-review-lane sibling uses, naming the three rulings the
proposal records and the two questions that stay carried.

Two further claims in the same row had gone stale and are corrected from the
tree rather than from memory. The parenthetical on S1 asserted in the present
tense that validate-openxwallet "runs in no workflow today"; it now runs on
every pull request to main from .github/workflows/wallet-validation.yml, so
the sentence is respelled to record what was true at authoring instead of
asserting something the repository contradicts. And four successors have
landed since the row was written - S1 (PR #275), S2 (PR #299), the
first-wallet cold start (PR #308) and S4 (PR #341, which put
governance/review-authority/register.yaml and its reader in one change) - so
the row names them, and names S3 and S5 as the ones still outstanding. The
change's own ledger is deliberately not ticked from any of them: its tasks
file says a successor carries its own code_surface and archives on its own
evidence.

Co-Authored-By: Claude Fable 5 <[email protected]>
brettheap added a commit that referenced this pull request Aug 26, 2026
Tick 5.1, 5.2, 5.3, 5.5: the register and its reader landed in #341
@brettheap
brettheap deleted the 014-register-and-reader branch September 2, 2026 18:53
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