refactor(agents): migrate flows / foreman / webhook to AgentDispatchPort #519
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.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#519
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?
User story
As a maintainer, I want every dispatch callsite to go through
AgentDispatchPortinstead ofagent-runner.tsdirectly, so that the agentic abstraction has no leaky paths andrunAgentTask()can be deleted (or reduced to an internal helper).Acceptance criteria
Migration
domain/flows/agent-nodes.ts: dispatch viaAgentDispatchPort, droprunAgentTaskimportdomain/foreman/foreman.ts: dispatch host-mode foreman viaAgentDispatchPortwithHostContainerLifecycleadapterhttp/webhook.ts+ downstream handlers: every directrunAgentTaskimport removedslash-commands.ts+ review-loop: samerunAgentTaskeither deleted or marked@internaland only called fromDefaultAgentDispatchTests
runAgentTaskis not imported outsideinfrastructure/agents/*QA
just qacleanarea:devlabel → dev agent runs to completion → PR openedOut of scope
/app/monitor/*UI changesReferences