Fully Automated - 100% Backpressure - Pipeline runner ๐Ÿƒ for AI workflows. ๐Ÿš€

Commit 0b5020ae

0b5020aee281Merged

Scott Nixon <[email protected]> ยท 9 months ago ยท 1 file ยท +1 added

Description

Copy epic-runner.dot to templates (attractor-dto)

Details

Commit
0b5020aee281
Parent
a4952cf77cbe

templates/epic-runner.dotaddedView file

1+digraph EpicRunner {
2+ label="Process all tasks in an epic"
3+ goal="Implement all child tasks of epic EPIC_ID, closing each as completed."
4+ model="sonnet"
5+
6+ start [shape="Mdiamond"]
7+ done [shape="Msquare"]
8+
9+ // --- Pick the next task ---
10+ pick_task [
11+ shape="diamond"
12+ label="Pick Next Task"
13+ node_type="conditional"
14+ llm_model="haiku"
15+ allowed_tools="Bash(bd:*)"
16+ prompt="Run: bd show EPIC_ID
17+Look at the BLOCKS section to see child tasks.
18+
19+Then run: bd ready
20+Find the first ready (unblocked, open) child task of epic EPIC_ID.
21+
22+If you find one:
23+- Run: bd update <task-id> --status=in_progress
24+- Write the task ID and full description to .attractor/current_task.md
25+- Respond with MORE on the last line
26+
27+If all child tasks are closed (no more ready tasks for this epic):
28+- Respond with DONE on the last line"
29+ ]
30+
31+ // --- Investigate ---
32+ investigate [
33+ shape="box"
34+ label="Investigate"
35+ allowed_tools="Read,Grep,Glob,Bash(bd:*)"
36+ prompt="Read .attractor/current_task.md to get the current task ID and description.
37+Run bd show <task-id> to get full details.
38+
39+Investigate the codebase to understand what needs to change:
40+- Find the relevant files and functions
41+- Understand the current behavior
42+- Identify what needs to change
43+
44+Write your findings to .attractor/investigation.md including:
45+- Files to modify
46+- Current behavior
47+- Required changes
48+- Any risks or dependencies"
49+ ]
50+
51+ // --- Implement ---
52+ implement [
53+ shape="box"
54+ label="Implement"
55+ prompt="Read .attractor/current_task.md for the task and .attractor/investigation.md for the plan.
56+Implement the changes described. Follow existing code patterns and conventions.
57+Keep changes minimal and focused on the task requirements."
58+ ]
59+
60+ // --- Test ---
61+ run_tests [
62+ shape="box"
63+ label="Run Tests"
64+ prompt="Read .attractor/current_task.md to understand what was changed.
65+Run the relevant test suite for the modified code.
66+If tests fail, fix the issues and re-run until green.
67+Write the test results to .attractor/test-results.md"
68+ ]
69+
70+ // --- Verify ---
71+ verify [
72+ shape="diamond"
73+ label="Verify"
74+ node_type="conditional"
75+ prompt="Read .attractor/current_task.md for the task requirements.
76+Check the changes:
77+1. Review the git diff
78+2. Run the linter on changed files
79+3. Verify tests pass (read .attractor/test-results.md)
80+4. Check that the task's acceptance criteria are met
81+
82+If everything looks good, respond with PASS on the last line.
83+If there are problems, respond with FAIL on the last line."
84+ ]
85+
86+ fixup [
87+ shape="box"
88+ label="Fix Issues"
89+ prompt="Read .attractor/current_task.md and .attractor/investigation.md for context.
90+The verification step found problems. Fix any failing tests, lint errors, or unmet acceptance criteria.
91+Re-run tests after fixing."
92+ ]
93+
94+ // --- Close this task ---
95+ close_task [
96+ shape="box"
97+ label="Close Task"
98+ allowed_tools="Bash(bd:*),Bash(git:*)"
99+ prompt="Read .attractor/current_task.md to get the task ID.
100+1. Stage changes: git add -A
101+2. Commit with a descriptive message referencing the task ID
102+3. Close the task: bd close <task-id> --reason='Implemented successfully'
103+4. Run: bd sync --flush-only"
104+ ]
105+
106+ // --- Check if more tasks remain ---
107+ check_remaining [
108+ shape="diamond"
109+ label="More Tasks?"
110+ node_type="conditional"
111+ llm_model="haiku"
112+ allowed_tools="Bash(bd:*)"
113+ prompt="Run: bd show EPIC_ID
114+Look at the BLOCKS section. Count how many child tasks are still open.
115+
116+Run: bd ready
117+Check if any remaining child tasks of this epic are ready (unblocked, open).
118+
119+If there are more ready tasks, respond with MORE on the last line.
120+If all tasks are closed or remaining tasks are blocked, respond with DONE on the last line."
121+ ]
122+
123+ // --- Edges ---
124+ start -> pick_task
125+
126+ pick_task -> investigate [label="MORE", condition="preferred_label=MORE"]
127+ pick_task -> done [label="DONE", condition="preferred_label=DONE"]
128+
129+ investigate -> implement -> run_tests -> verify
130+
131+ verify -> close_task [label="PASS", condition="preferred_label=PASS"]
132+ verify -> fixup [label="FAIL", condition="preferred_label=FAIL"]
133+ fixup -> verify
134+
135+ close_task -> check_remaining
136+
137+ check_remaining -> pick_task [label="MORE", condition="preferred_label=MORE", loop_restart=true]
138+ check_remaining -> done [label="DONE", condition="preferred_label=DONE"]
139+}