Repository navigation
feat(id-caps): agent identity, role binding, UCAN-style delegation spike (#7915) - #11206
Conversation
…ike (#7915) Spike 3/5 of the #6300 agents-in-worlds design (doc sections 5, 9.2, 9.4): Ed25519 agent identity (endpoint ID = public key), owner-signed role bindings, depth-1 attenuated delegations with 1h default lifetime (15m-4h role bounds), owner-client-only renewal, offline verify_join with section 7 audit events, and the hosted-edge rule that a valid transport token without a role binding grants nothing. Eight acceptance tests name their design-doc oracle; full id-caps suite green (147).
Codex Review Summary: ❌ FailedThis 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. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 57 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review Spike 3/5 for #6300 (issue #7915): agent identity, role binding, and UCAN-style attenuated delegation in a new |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Spike 3/5 for #6300 — agent identity, roles, UCAN-style attenuated delegation
Implements issue #7915 per
doc/2026-11-09_design_id6300_agents_in_worlds_v1.md§5, §9.2, §9.4 (design delivered by PR #7911). New self-contained moduleid_caps::agent_delegation(pkgs/id/crates/id-caps), reusing the existingWorldScopescapability set. Nothing existing is modified beyond the one-line module registration.What lands
AgentIdis the agent's own Ed25519 public key (the iroh endpoint ID); the key alone grants nothing.Role= capability ceiling + worlds + lifetime;RoleBindingis the owner's Ed25519 signature binding an agent key to a role in one world.Delegation::issuemints depth-1, expiring, offline-verifiable tokens; scopes must attenuate the binding ceiling (checked at issuance and re-derived at verification, so even an owner-signed widened token fails).Delegation::renewsucceeds only for the binding owner's key — the agent cannot renew its own token (stopping renewal is revocation).verify_joinre-derives every check from the two signatures (binding signature, issuer = owner, depth = 1, world/role/agent match, delegation signature, ceiling, expiry);verify_join_auditedalso emits the §7 audit event (agent, owner, world, tool, proof reference, outcome) for grants and refusals.EdgeScopesparsesworld:<id> role:<name>;authorize_edgere-derives authority from binding + chain — a valid transport token with no matching role binding grants nothing.Acceptance tests (oracle: the design doc)
cargo test -p id-caps agent_delegation— 8 passed:Full
id-capssuite: 147 passed, 0 failed.cargo fmtclean. (Clippy could not run in this worktree: the shared target cache was built by an incompatible rustc — E0514 on dependency crates, unrelated to this change.)Assumptions / scope notes
verify_joininto the live world join path is follow-on work once spike 4 lands the policy point.Queue task 20045, lane any-n.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.