Spec revised and committed.
⛔ GATE 1 — Spec approval
Challenger verdict: APPROVE WITH CHANGES (0 blockers, 5 major, 5 minor, 3 questions). It verified the proposed run_json compiles and is correct — it specifically tried to break the agent.as_ref() borrow and couldn't — and independently confirmed the axum "already correct" claim.
Folded in (all 13 findings — I found none unjustified)
The one that mattered. My "the fix cannot live in the runner" claim was false, and I verified the refutation: finalize() takes only Arc<dyn Session> + Arc<Mutex<SessionRecorder>>, both 'static, so a Drop-guard could spawn finalize inside TokioRunner::run and fix every caller at once. The conclusion (fix at the call site) survives, but now rests on real grounds — a Drop-guard can't deliver the cancel policy or return a result to a live client, tokio::spawn-from-Drop panics without an ambient runtime precisely when it's most likely to fire, it changes semantics for all Runner callers, and SMA-422 already owns that hoist. The scoping was right for reasons I hadn't actually established.
Three more with teeth, all verified against the code before accepting:
- A hidden contract. The fix works only because
rx.await resolving implies the write landed — true for TokioRunner, but Runner::run's docs never promise it and builder.runner() accepts any impl. Since the design argues for a call-site fix, that contract is load-bearing. The core docs now state it positively, not just the drop warning.
- Same-session overlap.
AppStateInner has no locks field (confirmed) — agentcore lacks axum's SessionLocks. Today a disconnected JSON run never appends; after the fix it does, so it can race an AgentCore retry into stale history. Pre-existing for SSE since SMA-332, now documented rather than unstated.
- The axum test wasn't free. I billed it as "axum already passes this." It needs three new fixtures — there's no hanging agent,
spawn_echo_server returns only a SocketAddr with the session provider unreachable, and reqwest can't do a real mid-run disconnect. Now enumerated.
Also: missing oneshot import, a stale comment the rename orphans, run_json's absent doc block, no tracing on the newly-silent path, MCP + shutdown scope skips, and "cancels promptly" softened to "within the poll window" (biased select means promptness isn't actually pinned).
One question worth your call at this gate: