supervisor: Claude Code resident runtime + per-identity Zulip bot routing #3
Loading…
Reference in a new issue
No description provided.
Delete branch "claude-runtime"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a second resident runtime to the supervisor: roles whose org
agent.runtimeresolves toclaudeare served by Claude Code in headless stream-json mode (one long-livedclaudeprocess per identity thread bound to a stable--session-id, resumed after crashes;--append-system-promptfor the identity instructions;--effortfrom the role's reasoning effort; the forge control-plane MCP hub via--mcp-configwith the bearer token expanded from the task environment;acceptEdits+ explicit tool allow list). Steers written mid-turn are injected into the running turn (verified on 2.1.148: oneresultper turn), so steer/turn bookkeeping is unchanged. Turns that end because the process died or the upstream was overloaded are requeued.Also:
/webhook/zulipreadsbot_email, so identity accounts converted to outgoing-webhook bots pin steers to their identity (@**Web** ...→ web); the shared Agent Dispatcher bot keeps alias routing.Tests:
go test ./... -racegreen (fakeclaudescript exercises turns, mid-turn steer, failure + process-exit recovery/resume, MCP config, effort mapping; org runtime resolution; Zulip bot routing).Consumer: key.store PR bumping
dispatch_src+ org/organization.toml (tech_lead_web→claude-hightier) + nix wiring (agentDispatcher.claude, OpenBaoanthropic/api-key).🤖 Generated with Claude Code