# Acceptance 0004: atirc agent in a market VM (plan 0035) Proves a requester can ask for an atirc agent on its guest that joins the owner's atirc mesh peer to peer, with no atirc token: after the verified receipt the requester writes the agent's iroh key and agent config into the secrets bundle. In the VM the guest requester R2 holds the agent as a co-located account: a did:plc on the VM localPDS whose DID doc says `https://ident.link/agent-of/`. The renter endorses and grants R2 (rkey = R2 DID, after the nonce check), R2 endorses and grants the agent in its own repo and writes the agent's peer record `computer.socialweb.peer/.` in the agent's repo (no `lease`). `atirc-agent.service` starts only on a requester-originated `guest.agentStart` and runs `atirc mesh run --no-publish` beside `atirc agent run`, another mesh node of the owner reaches the agent (walk: agent -> R2 -> renter) and the agent answers on the mesh. Release deletes the endorsements and grants and tombstones both DIDs. - An invocation that asks for no R2 starts R2 identity-only (no RFP, no nested VM) with the agent as its co-located account (`run request --agent` implies `--associate guest`; the guest agent starts socialweb-r2.service with `R2_IDENTITY=1` and `R2_COLOCATED==` from `/etc/socialweb-computer/r2-agent.env`) - Design: [../design/ident-link-associations.md](../design/ident-link-associations.md) (Q1) - Plan [0035](../plans/0035-atirc-agent.yaml) item ACC35-AGENT; the p2p cut-over (P6) - Paths: CLI (`run request --agent`), page (Agent checkbox + row Agent button) - Last pass: 2026-11-13 00:20-00:53Z, kcp e190a3b1 (release 66f3bd4d, rollout 19), alice by QR (consent qr.fedfork.com for @aliceoa.bsky.social), no bidders list, winner hat-7 (`cli-agent-1794529242`): Held 00:23:05Z; agentStart 00:48:29Z; `requester_association_written` +97 s (R2 reported 1 s before), the chain renter -> R2 -> agent with roots [alice] and the agent's peer record (`iroh`, no `lease`); unit active, `/etc/atirc/*` root 0600; the owner node (`--peer`) saw ` online` by 00:51:14Z (+165 s); a message each way; `: uname -m` answered `x86_64` within 10 s. Release 00:52:40Z: `r2Released` 9.4 s, Released +10.1 s, association deleted, both DIDs `plc_tombstone` by the guest, records 14/14 (no leftover release event), RecordNotFound x6, requester core.log 0 ERROR, hosts empty. Before: 2026-11-12 21:13-21:18Z, kcp e190a3b1 (rollout 19), alice by QR, winner hat-8: association +103 s, online +180 s, answer 3.0 s, `r2Released` 8.8 s after release, the CLI stops 5.3 s after Released, 0 ERROR. Before: 2026-11-12 18:38-18:44Z, kcp cdd93727 (release 6380eee4, rollout 16), alice by QR, winner hat-8: the release answers at once: `r2Released` posted by the guest 8 s after release, `requester_guest_requester_released` 18:44:05Z, Released 0.7 s later, the CLI stops 5.5 s after Released; records 14/14, RecordNotFound x6, both DIDs `plc_tombstone` by the guest; requester `core.log` 0 ERROR (no startup noise). The full flow before it: 2026-11-12 17:16-17:29Z, kcp 60d0d3b7 (release 0b68ceeb, rollout 15), atirc 9e83813, alice by QR (`cli-agent-1794503795`), no bidders list (winner hat-8), `--agent-config` (claude on the deepseek model), no workaround. Held 17:18:24Z; before agentStart both units inactive, `/etc/atirc/*` root 0600, r2 RSS 12.8 MiB. agentStart 17:18:36Z; R2 reported 17:19:13Z, `requester_association_written` 17:19:14Z (grant contract-scoped, `expiresAt` accept + 24 h, endorsement `{agent}`), `requester_agent_identity` 17:19:14Z; the ref reached `/run/socialweb-r2` (no hand copy). Walk of the agent: R2 depth 1, alice depth 2, roots [alice]; `atirc peer show` owner alice, `expiresAt` = the grant's; peer record in the agent repo, no `lease`; rotationKeys [renter key, VM localPDS key] on both DIDs. The owner node (`--peer`) lists the agent; ` online` 17:22:47Z; messages both ways; `: uname -m` answered `x86_64` in 3.2 s. Release: grant + endorsement RecordNotFound x3, both DIDs `plc_tombstone` by the guest (4 s after release), records 14/14, hosts empty; the CLI stops 5 s after Released (`the guest's DIDs are tombstoned`). Open: the renter waits the full 3 min (`requester_guest_requester_release_timeout`) because the bidder refused the guest's `r2Released` (fixed in 36b05233). On rollout 14 (kcp f482083c, 2026-11-11 16:07-16:21Z) the same flow passed with the renter tombstoning both DIDs after 2 min. Before: 2026-11-11 12:49-13:50Z, kcp e496cbff, **FAIL** (OAuth renters could not endorse R2, the association ref was never mirrored, release waited 24 min; fixed in 94c4b74b, 982ba545, 51a9bbb8, 66339480) - Earlier pass: 2026-11-11 04:00-04:05Z CLI, alice (pdsAccount) on a prod bidder, rollout 11 (kcp 06d04283, atirc 2de8b6c, guest atirc fecce97e), `--agent-config` (claude on the deepseek model), owner node `atirc mesh run` as alice on hat-8 (`--peer `, both channels): no mint, no token in the bundle, files root 0600, unit inactive until agentStart; the agent carries `#johnandersen777_bsky_social` and its own `#