Extract archie-agent stage request handling #481
Notifications
Due Date
No due date set.
Depends on
Reference: sam/archie#481
Reference in new issue
Block a user
Problem\nmain.go decodes, executes, and responds to single-stage requests in the same file as process startup.\n\n## Scope\nMove handle and its request/response orchestration into a stage-handler concern file after the MCP lifecycle seam is available. Preserve reply-address validation, provider setup, response encoding, and logging.\n\n## Acceptance\n- stage request handling is outside main.go\n- decode, reply, provider, execution, encode, and publish error paths remain covered\n- task check passes
Acceptance criteria
Stage request handling is outside main.go with all boundary error semantics preserved; tests and task check pass
Notes
Implementation and validation are complete in /tmp/archie-core-agent-cleanup on branch refactor/archie-agent-main-cleanup, but delivery is pending: changes are uncommitted, not integrated into the target branch, and not pushed. Do not close until those delivery steps are complete.
Validation completed: single-stage boundary/MCP assembly tests, task check, and fresh review clean.
Delivered on review branch refactor/archie-agent-main-cleanup at de242f8; pending PR review/merge.
Close reason
Merged to main in PR #480 at 52738f5; implementation commit de242f8 passed task check, race tests, lint, and independent review
Imported from beads
archie-core-tje.4· GitHub #474 · type task · priority P2 · created 2026-08-13 · closed 2026-08-14