feat(dispatch): add Forge issue polling to dispatch watch #6
Labels
No labels
needs-review
needs-review
needs-review
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/cli#6
Loading…
Add table
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?
Problem
core ai dispatch watch --agent-id clothoonly processes tickets already in the localqueue/directory. It does not poll Forge for new issues labeled with the agent ID.Two bugs
No Forge polling in watch loop —
runCycle()only reads fromqueue/dir, never queries the Forge API for issues labeled with--agent-id. The flag is accepted but unused.Missing
forge_tokenin ticket JSON —poll-forge.shcreates tickets withoutforge_tokenfield, so the Go runner cannot report back to Forge issues. The token should be read fromFORGE_TOKEN_PRODenv var orai-work/.envand injected into each ticket.Expected Behaviour
core ai dispatch watch --agent-id clotho --interval 15mshould:queue/for new issues (dedup against queue/active/done)forge_tokenfrom env/config in each ticket JSONReference
~/ai-work/poll-forge.shon darbscmd/ai/cmd_dispatch.goGET /api/v1/repos/{owner}/{repo}/issues?state=open&labels={agent-id}Acceptance Criteria
--agent-idflag used to filter Forge issues by labelforge_tokensourced from env or config and included in ticket JSONreportToForgeworks with the injected tokenpoll-forge.shcan be retired