AR-4 — Drop role: "host" and is_host_mode #1199
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
Depends on
#1200 AR-5 — Delete legacy host-mode infrastructure
charles/agent-hooks
#1198 AR-3 — Relay /architect/chat and /architect/spec to docker exec
charles/agent-hooks
Reference
charles/agent-hooks#1199
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
After #1198 lands the chat / spec relay, nothing live reads
role === "host". The flag is dead weight: the architect agent is just another containerised type that happens to ship as a singleton withdispatchable: false. Rename + delete; no backward compat (pre-launch).Goal
"planner"— describes the actual job (planning + spec writing +/breakdown).is_host_modederivation inwebhook-config.mergeAgentis deleted.is_host_mode/role === "host"gets its branch deleted.role: "host"— no migration shim.Acceptance criteria
apps/server/src/shared/config/agents-default-config.ts::architect.rolechanges from"host"to"planner".AGENT_ROLES_LIST(inapps/web/src/features/agents/sections/routing-section.tsx) drops"host"and adds"planner".agents-config-schema.tsadmits"planner", rejects"host".webhook-config.mergeAgentno longer derivesis_host_mode. The field is removed from the resolved agent shape.apps/server/src/main.ts— everyis_host_moderead deleted. Webhook dispatcher's host-mode skip / branch deleted. Code paths that fall through become uniform.role === "host",host_mode,is_host_mode,isHostModeanywhere in the codebase (CI grep gate).role: "host"with a clear error message ("role 'host' is no longer supported — use 'planner'").Tests
{ role: "planner" }validates;{ role: "host" }rejects.dispatchable: falsekeeps architect out of the worker pool naturally).Out of scope
References
apps/server/src/shared/config/agents-default-config.ts::architectapps/server/src/shared/config/agents-config-schema.tsapps/server/src/shared/config/webhook-config.ts::mergeAgentapps/server/src/main.tsapps/web/src/features/agents/sections/routing-section.tsx::AGENT_ROLES_LISTDepends on
#1198 — the last
role === "host"consumer must be gone before this lands.Tracker
#1203
🤖 Auto-assigned to code-lead (heuristic: area:agents → code-lead (architecture-touching)). Reply
/unassignto reroute.