AR-3 — Relay /architect/chat and /architect/spec to docker exec #1198
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#1199 AR-4 — Drop role: "host" and is_host_mode
charles/agent-hooks
Reference
charles/agent-hooks#1198
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Why
Architect already runs in a persistent Docker container (
claude-hooks-architect-default) perspecs/architect-dockerize.md. The chat / spec endpoints are the last consumer of the in-process SDK path — and they're the only reasonrole: "host"still exists in the config.Land the relay so the in-process path can die. This is the prerequisite for #1199 / #1200.
Goal
POST /architect/chatandPOST /architect/specroute viadocker execintoclaude-hooks-architect-default— the same shim every other agent dispatch uses.role === "host".Acceptance criteria
/architect/chatis rewired todocker execintoclaude-hooks-architect-default. The handler's request shape (input schema, SSE stream shape) is preserved./architect/specis rewired the same way.if (host_mode)branch left behind.reconcileOne("architect-default")still works exactly like every other agent (per dockerize spec).role === "host"read remains in any chat / spec handler.Tests
POST /architect/chatrequest reaches the architect container viadocker execand the SSE stream returns the same shape as the previous in-process path./architect/spec.agents/healthreports the architect container as healthy after the relay swap.Out of scope
role: "host"→"planner"(#1199).HOST_MODE_TYPES/HostContainerLifecycle/getArchitectWorkerhost filter (#1200).References
specs/architect-dockerize.md— provisioning half; this is the relay half.apps/server/src/domain/architect/*(or wherever/architect/chatis wired today).Tracker
#1203