GeezerVison is showing github.com — id(phase-14): spike 3/5 — agent identity, roles, UCAN-style attenuated delegation · Issue #7915 · developing-today/code
id(phase-14): spike 3/5 — agent identity, roles, UCAN-style attenuated delegation #7915DescriptionSpike step 3 (of 5) for #6300: agent identity, roles, attenuated delegation
Parent: #6300 · Core topic: #6280 · Design: doc/2026-11-09_design_id6300_agents_in_worlds_v1.md (PR #7911), §5, §9.2, §9.4.
Work
Agent Ed25519 key handling (endpoint ID = public key); role binding (owner key → role in a world); UCAN-style attenuated delegation from owner to agent key — depth 1, attenuation only, offline-verifiable proof chain; 1-hour default lifetime (roles may set 15 min – 4 h) renewed by the owner's client only. Hosted edge: OAuth 2.1 resource-server mapping where scope strings name world + role and the role remains the authority of record.
Acceptance criteria
- Join without a valid, unexpired delegation chain to a role is refused (and audited, per step 4's log shape).
- A widened or re-delegated token fails verification; an expired token fails; renewal is owner-client-only.
- Hosted-edge test: a valid transport token with no matching role binding grants nothing.
Activitydezren39 commented on Nov 17, 2026 🤖 Agent note · triaged
- Agent: queue worker (repo-worker-code), lane code-c
- Session / ID: task 18549
- Found via: queue claim
- Task: Triage of issue id(phase-14): spike 3/5 — agent identity, roles, UCAN-style attenuated delegation #7915 (id(phase-14): spike 3/5 — agent identity, roles, UCAN-style attenuated delegation) — verdict: real and current; first triage of this issue, routed as task 20045.
- Expectation: done = triage verdict + labels recorded (this note), follow-on task 20045 queued, task 18549 completed as triaged.
Triage (inline, this pass):
- Work kind: small-fix (task/small-fix) — a bounded implementation spike with named acceptance tests, per the design in doc/2026-11-09_design_id6300_agents_in_worlds_v1.md §5, §9.2, §9.4.
- Priority: priority/normal (already present) — one spike of five in the id(phase-14): Agents in worlds (MCP bridge) — v1 — first-iteration design + spike plan #6300 breakdown, default band.
- Effort: effort/m — identity + delegation semantics with a proof chain and hosted-edge mapping; bounded by the spike's acceptance list.
- Kind: kind/feature, app/id, design/id-phase-14, epic/id-program already present; kept.
Evidence (fresh, 2026-11-16):
- Issue id(phase-14): spike 3/5 — agent identity, roles, UCAN-style attenuated delegation #7915 is OPEN with zero comments since filing and no task/* label — never triaged or worked. No hold labels (no held / user/owned / do-not-merge / do-not-auto-edit).
- The design it implements is landed: PR doc(id): Agents in worlds (MCP bridge) v1 design + spike plan (#6300) #7911 merged 2026-11-10, adding the id(phase-14): Agents in worlds (MCP bridge) — v1 — first-iteration design + spike plan #6300 v1 design doc this spike cites.
- Sibling spikes checked fresh: id(phase-14): spike 1/5 — agent shell profile in the id-shell contract (semantic diffs, region subscriptions, stale-decision token) #7913, id(phase-14): spike 2/5 — MCP bridge: join, read screens, post chat #7914, id(phase-14): spike 4/5 — policy point: capability ceiling, session quota, audit log #7916, id(phase-14): spike 5/5 — bounded program interaction + end-to-end spike run #7917 all OPEN and unworked — spike 3 is not blocked by a landed sibling; its one cross-reference (step 4's audit log shape, id(phase-14): spike 4/5 — policy point: capability ceiling, session quota, audit log #7916) is handled in the follow-on packet by designing against the doc's log shape and naming the assumption.
- First concrete step (in task 20045): Ed25519 agent key handling + role binding, then the depth-1 attenuation-only delegation chain with the acceptance tests as the oracle.
Issue #7915 stays open for task 20045.
dezren39 commented on Nov 17, 2026
Agent note — task 20045 done, spike landed (lane any-n)
- State: done — PR feat(id-caps): agent identity, role binding, UCAN-style delegation spike (#7915) #11206 merged 2026-11-17 (merge commit 954ef93).
- What landed: new module
id_caps::agent_delegation (pkgs/id/crates/id-caps/src/agent_delegation.rs) implementing §5/§9.2/§9.4 of the id(phase-14): Agents in worlds (MCP bridge) — v1 — first-iteration design + spike plan #6300 design doc — Ed25519 agent identity, owner-signed role bindings, depth-1 attenuated UCAN-style delegations (1 h default, 15 min–4 h role bounds), owner-client-only renewal, offline verify_join with §7-shaped audit events, and the hosted-edge rule (valid transport token + no role binding = grants nothing).
- Acceptance tests (oracle: design doc §5/§9.2/§9.4): 8/8 pass — refused join without chain (audited), widened token fails, re-delegated token fails, expired token fails, owner-only renewal, edge token without binding grants nothing. Full id-caps suite: 147 passed, 0 failed; cargo fmt clean. Clippy unavailable in the worktree (shared target cache built by an incompatible rustc, E0514 on dependency crates — unrelated to this change).
- Codex review: requested; Codex is at its usage limit and produced no file-level findings (limit notices only, comments 6945015129/6945051625) — nothing to disposition.
- Assumption recorded in the PR: the §7 audit event is returned in shape, not journaled — spike 4 (id(phase-14): spike 4/5 — policy point: capability ceiling, session quota, audit log #7916, policy point) owns journaling when it lands; wiring
verify_join into the live join path is follow-on work after that.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|