1.7 KiB
1.7 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec | |
|---|---|---|---|---|---|---|---|
| 03-backend-automation-execution | Backend automation execution | done | 2 |
|
plan.md | ../../specs/ui/ci-pr-automation.md |
Task 03: Backend Automation Execution
Acceptance
- Auto-fix evaluates existing PR watch events, fetches full feedback only for candidate PRs, and sends or queues one prompt per new actionable feedback snapshot.
- Auto-merge merges only ready PRs and does not retry the same failed readiness signature every poll.
- Unit tests cover disabled no-op, dedupe, new-feedback delta prompting, busy-session queueing, merge readiness, and merge retry throttling.
Verification
cd apps/backend && rtk go test ./internal/orchestrator ./internal/github
Files Likely Touched
apps/backend/internal/orchestrator/event_handlers_github.goapps/backend/internal/orchestrator/service.goapps/backend/internal/orchestrator/messagequeue/types.goapps/backend/internal/orchestrator/event_handlers_github_ci_automation_test.goapps/backend/internal/orchestrator/event_handlers_github_test.goapps/backend/internal/github/service_pr.goapps/backend/internal/github/service_pr_watch.goapps/backend/internal/events/types.goif a new internal event is needed
Dependencies
01-backend-persistence-prompts
Inputs
- Spec sections: State machine, Failure modes, Scenarios.
- Plan sections: Backend > Automation execution.
- Existing patterns:
handlePRFeedback,subscribeGitHubEvents,PromptTask, andQueueMessageWithMetadata.
Output Contract
When complete, update this file's status to done, update the Wave 2 checkbox in plan.md, and report changed files, tests run, blockers, and residual risks.