Skip to content

Propose add-trust-anchors-and-machine-holders: held trust anchors, machine holders, offline class-blind verification - #5

Merged
brettheap merged 1 commit into
mainfrom
add-trust-anchors-and-machine-holders
Oct 16, 2026
Merged

brettheap merged 1 commit into
mainfrom
add-trust-anchors-and-machine-holders

Conversation

@brettheap

@brettheap brettheap commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What this is

A new OpenSpec change, Status: proposed, not ratified, in openspec/changes/add-trust-anchors-and-machine-holders/. It encodes the 2026-10-16 design discussion between Brett Heap and Claude on SSH access between the workstations Eagle and Raven through a Smallstep SSH CA with Keycloak, and what that revealed the standard cannot yet say.

Two MODIFIED and four ADDED requirements on the core capability openxwallet. No profile delta. The closed custody registry is not touched.

  • A computer is a holder. machine joins the closed holder_class set. A machine wallet declares its service keys with the existing multi-key shape (Eagle is ONE wallet whose two declared keys are its two sshd host keys); an OS-held key file is holder_readable, a TPM-resident key is isolated_invocable.
  • Trust anchors are held, never declared. A new core kind, xfactory_wallet_trust_anchor: owned by one wallet, naming ANOTHER holder's public keys, with an issuer/peer role, a scope, per-key provenance from a closed set, a staleness bound and append-only state. Never in the owner's declared key set; confers no authority on anyone.
  • Verification is offline against held anchors. The issuer is consulted at issuance only. Roots are held, not leaves. Revocation is checked at use from the validity window and the anchor's state.
  • A verifier is blind to holder class. Access is decided from the credential, the held anchor, the local principal mapping and the credential's hard limits; "no agent credentials" is issuance policy.
  • An unknown holder is validated before it is trusted. Bootstrap arrives out of band; self-publication confirms and never establishes; first use is labelled, bounded and never laundered into verified.

design.md records D1–D11 (enrolment and the SSH-with-Smallstep mapping are non-normative) and nine open questions for ratification that the operator should rule on by number before Status moves.

Validation

The leg's rule 4 gate, from this leg's root:

OPENSPEC_TELEMETRY=0 python3 scripts/validate-openspec-cli-pin.py --all --no-cache \
    --tarball tools/openspec-cli-pin/fission-ai-openspec-1.12.0-c844543999f673cdd72445879b86a4abea4c07ef.tgz

Totals: 4 passed, 0 failed and OK openspec-cli-pin; validate add-trust-anchors-and-machine-holders --strict reports the change valid with no issues (only the pre-existing INFO lines about long requirement text on the promoted specs).

What this PR does not do

  • It does not ratify. tasks.md §1 schedules the alignment pass and the operator's ruling.
  • It does not touch openspec/specs/ (canonical), the code leg, or the root pin. The code surface (additive enum member, one new schema, validator rules, corpus, a MINOR release) is declared in the proposal and realized later through the Speckit handoff.
  • It does not modify Revocation propagates through the chain, which the active add-composition-drift-cascade already modifies.

🤖 Generated with Claude Code

Summary by Sourcery

Propose machine holders, held trust anchors, and offline holder-class-blind verification for openxwallet.

New Features:

  • Propose machine holders and held trust anchors for offline credential verification in the openxwallet capability.
  • Define holder-class-blind authorization and validated provenance rules for issuer and peer anchors.

Enhancements:

  • Add the OpenSpec design, specification delta, and realization tasks for the proposed capability changes while preserving existing custody and agent-profile behavior.

Documentation:

  • Document the Eagle and Raven Smallstep SSH mapping, design decisions, open ratification questions, and non-goals.

Tests:

  • Record the required schema, validator, corpus, and validation coverage for future realization.

Chores:

  • Keep the change proposed and defer canonical specs, implementation, release bookkeeping, and ratification to later work.

…chine holders, offline class-blind verification

OpenSpec change, Status: proposed, not ratified. Encodes the 2026-10-16 design
discussion between Brett Heap and Claude on SSH access between Eagle and Raven
through a Smallstep SSH CA with Keycloak: `machine` joins the closed holder
class set; a new core kind `xfactory_wallet_trust_anchor` holds ANOTHER
holder's public keys (issuer or peer role, scope, per-key provenance from a
closed set, append-only) outside the declared key set; verification is offline
against held anchors with the issuer consulted at issuance only; a verifier is
blind to holder class; an unknown holder is validated before trust and first
use is never laundered into verified.

Two MODIFIED and four ADDED requirements on `openxwallet`; no profile delta;
custody registry untouched. design.md records D1-D11 and nine open questions
for ratification. Validated with the pinned @fission-ai/[email protected]:
`validate add-trust-anchors-and-machine-holders --strict` clean.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Oct 16, 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 1 day and 12 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Oct 16, 2026

Copy link
Copy Markdown

Reviewer's Guide

This proposed OpenSpec change extends openxwallet to recognize machines as holders and to represent other holders’ keys as non-authoritative, provenance-tracked trust anchors used for offline, holder-class-blind verification, while deferring all implementation, ratification, canonical-spec, and release changes to a later realization.

Sequence diagram for offline credential verification

sequenceDiagram
    actor User
    participant Keycloak
    participant Issuer as Issuer_CA
    participant Raven as Verifier_Wallet
    participant Eagle as Resource

    User->>Keycloak: authenticate
    Keycloak->>Issuer: issue authorization
    Issuer-->>User: signed credential
    User->>Eagle: present credential
    Eagle->>Raven: use held trust anchor
    Raven-->>Eagle: anchor and validity state
    Eagle->>Eagle: verify credential, map principal, enforce limits
    Eagle-->>User: access decision
Loading

File-Level Changes

Change Details Files
Defines machines as wallet holders while preserving the existing multi-key and custody models.
  • Adds machine to the closed holder-class set.
  • Models multiple machine service keys as one wallet.
  • Keeps custody classification derived from existing custody booleans without registry changes.
  • Leaves the agent profile and composition rules unchanged.
openspec/changes/add-trust-anchors-and-machine-holders/specs/openxwallet/spec.md
openspec/changes/add-trust-anchors-and-machine-holders/design.md
openspec/changes/add-trust-anchors-and-machine-holders/proposal.md
openspec/changes/add-trust-anchors-and-machine-holders/tasks.md
Introduces held trust anchors as a separate, non-authoritative record concept for other holders' public keys.
  • Adds the proposed xfactory_wallet_trust_anchor kind with issuer and peer roles, scope, per-key provenance, state, and revalidation bounds.
  • Requires anchors to remain outside declared wallet keys and prevents them from presenting owner authority or carrying grant semantics.
  • Specifies append-only key and provenance handling, duplicate detection, state transitions, and trust-anchor-specific validation rules.
  • Defines offline verification using held issuer roots or peer keys, with use-time revocation and bounded cached leaves.
openspec/changes/add-trust-anchors-and-machine-holders/specs/openxwallet/spec.md
openspec/changes/add-trust-anchors-and-machine-holders/design.md
openspec/changes/add-trust-anchors-and-machine-holders/proposal.md
openspec/changes/add-trust-anchors-and-machine-holders/tasks.md
Establishes holder-class-blind authorization and controlled bootstrap for unknown keys.
  • Bases resource authorization on verified credentials, local principal mapping, local privilege, and credential hard limits rather than holder class.
  • Places agent-credential restrictions at issuance instead of verification.
  • Defines out-of-band, resolver, attestation, and first-use provenance, including bounded and non-launderable first use.
  • Records the Eagle/Raven Smallstep SSH and Keycloak mapping as non-normative deployment guidance.
openspec/changes/add-trust-anchors-and-machine-holders/specs/openxwallet/spec.md
openspec/changes/add-trust-anchors-and-machine-holders/design.md
openspec/changes/add-trust-anchors-and-machine-holders/proposal.md
Documents a proposed realization plan without changing canonical specifications or implementation surfaces.
  • Declares two modified and four added requirements in the openxwallet delta.
  • Plans one additive schema change, one new schema, validator rules, corpus/tests, documentation, and a MINOR release at realization.
  • Enumerates governance gates, nine ratification questions, open successors, and pinned validation evidence.
  • Keeps the change proposed and explicitly excludes custody-registry changes, canonical spec edits, and the active revocation-cascade requirement.
openspec/changes/add-trust-anchors-and-machine-holders/proposal.md
openspec/changes/add-trust-anchors-and-machine-holders/design.md
openspec/changes/add-trust-anchors-and-machine-holders/tasks.md

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

@sonarqubecloud

Copy link
Copy Markdown

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@brettheap
brettheap merged commit c059714 into main Oct 16, 2026
3 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T12:16:20.241367Z 06eecbf Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 06eecbf0fc

ℹ️ 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".

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