Repository navigation
Amend add-trust-anchors-and-machine-holders with the mail grant: a machine wallet as grant audience - #6
Amend add-trust-anchors-and-machine-holders with the mail grant: a machine wallet as grant audience#6brettheap wants to merge 1 commit into
Conversation
…chine wallet is a grant audience, the custodian's reads are key-attributed Same-day continuation of the 2026-10-16 discussion: Eagle gets a Microsoft 365 shared mailbox [email protected] read through Graph with a certificate the machine wallet declares as a third key (TPM-held -> isolated_invocable, file -> holder_readable). The authority to read it is an xfactory_wallet_grant addressed to Eagle's wallet; the Entra app registration, admin-consented Mail.Read and the Exchange access policy are the grant's realization and stay the administrator's record, never a wallet field. The mailbox address is never the holder identifier. Spec delta: a third MODIFIED requirement, "Authority travels as attenuated grants, never as keys" (canonical text kept as a strict prefix, both scenarios byte for byte), with two scenarios; one scenario added to "A wallet is a key". No collision with add-composition-drift-cascade. design.md: D1, D7, D8, D9, D10, D11 extended, new D12, open questions 10-14 (agents' access, naming the mailbox without '@', tier for a read, one exercise per client assertion, RBAC for Applications vs access policy). Expressibility check against the code leg at 72313da: the grant, exercise and record are expressible today, so the code surface is unchanged; three gaps (object_ref unbound to scope.objects, no folder containment, no RSASSA-PSS algorithm) are named successors. Validated with the pinned @fission-ai/[email protected]: --all --strict clean, `validate add-trust-anchors-and-machine-holders --strict` valid. Still Status: proposed. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
@codex review |
|
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 8 hours and 7 minutes by commenting |
Reviewer's GuideThis amendment extends the proposed openWallet specification—not the validator or schemas—to model a TPM-backed machine certificate as Eagle’s declared service credential, an expiring mailbox-scoped grant addressed to Eagle’s wallet, and custodian reads attributed to that key, while documenting unresolved ratification choices and successor gaps. Sequence diagram for the machine wallet mailbox readsequenceDiagram
participant Custodian
participant Entra
participant Graph
participant Agents
Custodian->>Entra: CLIENT ASSERTION signed by certificate key
Entra-->>Custodian: ACCESS TOKEN
Custodian->>Graph: Read mailbox with ACCESS TOKEN
Graph-->>Custodian: Mail data
Custodian-->>Agents: Serve mail as data
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4d8353519f
ℹ️ 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".
| - WHEN a service on the machine reads the mailbox under that grant | ||
| - THEN each exercise names as its presenting key the machine's declared | ||
| service credential, and records that key's custody as the model in force |
There was a problem hiding this comment.
Do not attribute mailbox reads to the token-request signature
For the proposed Graph bearer-token flow, this scenario makes read_mail exercises key-attributed even though D12 explicitly states that the certificate signs only the OAuth token request and that subsequent Graph reads carry an unsigned bearer token (design.md:766-775). That conflicts with the unchanged core requirement that exercising a grant carry the wallet key's signature over the request (openspec/specs/openxwallet/spec.md:80-82), and task 4.11 compounds it by recording act: read_mail, the mailbox object, and signed_over: request. As written, the resulting audit record claims cryptographic evidence for a mailbox read that the certificate never signed; the model needs to distinguish token acquisition from the later read or explicitly add and specify a bearer-session linkage.
Useful? React with 👍 / 👎.



What this is
An amendment to the OpenSpec change
add-trust-anchors-and-machine-holders(landed in #5, stillStatus: proposed, not ratified), from the same day's continuation of the design discussion between Brett Heap and Claude: Eagle, the worked machine holder, gets a Microsoft 365 shared mailbox[email protected]that agents on Eagle can read.isolated_invocable; held as a readable file →holder_readable. Either way it evidences the environment.xfactory_wallet_grantaddressed to Eagle's wallet (read act, one object,attesttier proposed, an expiry). The Entra app registration, admin-consentedMail.Readand the Exchange access policy restricting the app to that mailbox are the grant's realization — the administrator's record, never a wallet field, as a host certificate is the CA's record.Spec delta
Now 3 MODIFIED + 4 ADDED on
openxwallet. New MODIFIED: Authority travels as attenuated grants, never as keys — canonical text kept as a strict prefix, both canonical scenarios byte for byte, two scenarios added. One scenario added to A wallet is a key, never a record of a key. No collision with the activeadd-composition-drift-cascade(which modifies only Revocation propagates through the chain and the profile's composition requirement).Design
D1, D7 (a "Mail through Microsoft Graph" mapping table), D8, D9, D10, D11 extended; new D12; open questions 10–14 for ratification: how agents get mail (derived grants vs environment access), naming the mailbox within the identifier grammar (no
@), the tier for a read, one exercise per signed client assertion, and RBAC for Applications vs the access policy.Expressibility check against the code leg at
72313da, by running the proposed records through the pinned validator: the grant, exercise and record are expressible today except for themachineholder class this change already adds, so the code surface is unchanged. Three gaps are named successors, not fixed here: an exercise'sobject_refis never checked against its grant'sscope.objects; folder-level narrowing reads asattenuation-widened; no RSASSA-PSS member in the algorithm enums.Validation
An archive simulated on a scratch copy reports
+ 4 added, ~ 3 modified, - 0, 49 scenarios, none lost.What this PR does not do
It does not ratify, touch
openspec/specs/, the code leg or the root pin. After merge the root's spec pin needs its own bump.🤖 Generated with Claude Code
Summary by Sourcery
Amend the proposed machine-holder change to define a machine wallet as the audience for an attenuated mailbox-read grant while keeping credentials, resource enforcement, and agent access distinct.
New Features:
Enhancements:
Tests:
Chores: