@apogeelabs/the-agency 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -22,6 +22,44 @@ You need two things:
|
|
|
22
22
|
5. **Report what happened, not what the agent said.** Read the output files and summarize.
|
|
23
23
|
6. **Do not commit or create a PR if the build pipeline fails.** Phases 5 and 6 only run if Phases 1-3 succeed.
|
|
24
24
|
|
|
25
|
+
## Pipeline Markers
|
|
26
|
+
|
|
27
|
+
External systems (e.g., TPS) watch PTY output for structured markers to trigger workflow automations. You MUST output these markers exactly as specified — they are line-start anchored headings matched by regex.
|
|
28
|
+
|
|
29
|
+
**Phase markers** — output at the START of each phase:
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
## Phase 1: Development
|
|
33
|
+
## Phase 2: Code Review
|
|
34
|
+
## Phase 3: Test Hardening
|
|
35
|
+
## Phase 4: Retrospective
|
|
36
|
+
## Phase 5: Committing
|
|
37
|
+
## Phase 6: Preparing Draft PR
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Fix loop markers** — output when entering a fix loop:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
## Fix Loop [N]: [Source Phase] → Dev
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Example: `## Fix Loop 1: Code Review → Dev`
|
|
47
|
+
|
|
48
|
+
**Completion markers** — output at the end of the pipeline:
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
## Commit Complete: [short hash]
|
|
52
|
+
## Auto Build Complete: [Feature Name]
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Failure markers** — output when the pipeline fails:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
## Auto Build Failed: [Feature Name]
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
These markers must appear on their own line at the start of output, not buried inside code blocks or report summaries.
|
|
62
|
+
|
|
25
63
|
## Setup
|
|
26
64
|
|
|
27
65
|
Before starting, ensure the reports directory exists:
|
|
@@ -38,6 +76,12 @@ Dev → Review → [Fix loop if needed] → Test Hardener → [Fix loop if neede
|
|
|
38
76
|
|
|
39
77
|
## Phase 1: Development
|
|
40
78
|
|
|
79
|
+
Output this marker before delegating:
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
## Phase 1: Development
|
|
83
|
+
```
|
|
84
|
+
|
|
41
85
|
Delegate to the **dev** subagent. Tell it:
|
|
42
86
|
|
|
43
87
|
- Which build plan to read: `docs/build-plans/[feature-name].md`
|
|
@@ -57,12 +101,24 @@ After each dev agent run (initial or fix loop), run the project's checks before
|
|
|
57
101
|
|
|
58
102
|
Check `package.json` for available scripts. Skip any that don't exist.
|
|
59
103
|
|
|
60
|
-
If any check fails,
|
|
104
|
+
If any check fails, output the fix loop marker before re-entering Phase 1:
|
|
105
|
+
|
|
106
|
+
```
|
|
107
|
+
## Fix Loop [N]: Validation → Dev
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Send the failures back to the dev agent as a fix loop (same 2-loop cap). Do NOT proceed to review with broken lint, tests, or build. If the dev agent cannot resolve the failures within 2 fix loops, produce a failure summary and stop.
|
|
61
111
|
|
|
62
112
|
Once the validation gate passes, proceed to Phase 2.
|
|
63
113
|
|
|
64
114
|
## Phase 2: Code Review
|
|
65
115
|
|
|
116
|
+
Output this marker before delegating:
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
## Phase 2: Code Review
|
|
120
|
+
```
|
|
121
|
+
|
|
66
122
|
Delegate to the **reviewer** subagent. Tell it:
|
|
67
123
|
|
|
68
124
|
- The feature name and build plan location
|
|
@@ -74,9 +130,13 @@ Delegate to the **reviewer** subagent. Tell it:
|
|
|
74
130
|
### If verdict is FAIL:
|
|
75
131
|
|
|
76
132
|
1. Extract the must-fix items into `docs/reports/review-fixes-[feature-name].md`
|
|
77
|
-
2.
|
|
78
|
-
|
|
79
|
-
|
|
133
|
+
2. Output the fix loop marker before re-entering Phase 1:
|
|
134
|
+
```
|
|
135
|
+
## Fix Loop [N]: Code Review → Dev
|
|
136
|
+
```
|
|
137
|
+
3. Go back to Phase 1 (the dev agent will see the fixes file)
|
|
138
|
+
4. After fixes, re-run Phase 2
|
|
139
|
+
5. **Max 2 fix loops.** If it fails a third time, produce a failure summary and stop.
|
|
80
140
|
|
|
81
141
|
### If verdict is PASS WITH FIXES:
|
|
82
142
|
|
|
@@ -88,6 +148,12 @@ Proceed to Phase 3.
|
|
|
88
148
|
|
|
89
149
|
## Phase 3: Test Hardening
|
|
90
150
|
|
|
151
|
+
Output this marker before delegating:
|
|
152
|
+
|
|
153
|
+
```
|
|
154
|
+
## Phase 3: Test Hardening
|
|
155
|
+
```
|
|
156
|
+
|
|
91
157
|
Delegate to the **test-hardener** subagent. Tell it:
|
|
92
158
|
|
|
93
159
|
- The feature name and build plan location
|
|
@@ -99,8 +165,12 @@ Delegate to the **test-hardener** subagent. Tell it:
|
|
|
99
165
|
### If verdict is FAIL (bugs found):
|
|
100
166
|
|
|
101
167
|
1. Extract bugs into `docs/reports/review-fixes-[feature-name].md`
|
|
102
|
-
2.
|
|
103
|
-
|
|
168
|
+
2. Output the fix loop marker before re-entering Phase 1:
|
|
169
|
+
```
|
|
170
|
+
## Fix Loop [N]: Test Hardening → Dev
|
|
171
|
+
```
|
|
172
|
+
3. Loop back to Phase 1 for fixes, then re-run Phase 3
|
|
173
|
+
4. **Max 2 fix loops.** If it persists, produce a failure summary and stop.
|
|
104
174
|
|
|
105
175
|
### If verdict is PASS or PASS WITH GAPS:
|
|
106
176
|
|
|
@@ -108,6 +178,12 @@ Proceed to Phase 4.
|
|
|
108
178
|
|
|
109
179
|
## Phase 4: Retrospective
|
|
110
180
|
|
|
181
|
+
Output this marker before delegating:
|
|
182
|
+
|
|
183
|
+
```
|
|
184
|
+
## Phase 4: Retrospective
|
|
185
|
+
```
|
|
186
|
+
|
|
111
187
|
Delegate to the **retrospective** subagent. Tell it:
|
|
112
188
|
|
|
113
189
|
- The feature name
|
|
@@ -119,6 +195,12 @@ Delegate to the **retrospective** subagent. Tell it:
|
|
|
119
195
|
|
|
120
196
|
## Phase 5: Commit
|
|
121
197
|
|
|
198
|
+
Output this marker before starting:
|
|
199
|
+
|
|
200
|
+
```
|
|
201
|
+
## Phase 5: Committing
|
|
202
|
+
```
|
|
203
|
+
|
|
122
204
|
All three phases passed. Time to commit.
|
|
123
205
|
|
|
124
206
|
1. Read the dev report at `docs/reports/dev-report-[feature-name].md` to understand what was changed and any suggested commit structure.
|
|
@@ -133,8 +215,20 @@ All three phases passed. Time to commit.
|
|
|
133
215
|
|
|
134
216
|
If the commit fails (e.g., pre-commit hook), fix the issue and retry once. If it fails again, produce a failure summary and stop.
|
|
135
217
|
|
|
218
|
+
After a successful commit, output this marker with the short hash:
|
|
219
|
+
|
|
220
|
+
```
|
|
221
|
+
## Commit Complete: [short hash]
|
|
222
|
+
```
|
|
223
|
+
|
|
136
224
|
## Phase 6: Auto Prep PR
|
|
137
225
|
|
|
226
|
+
Output this marker before delegating:
|
|
227
|
+
|
|
228
|
+
```
|
|
229
|
+
## Phase 6: Preparing Draft PR
|
|
230
|
+
```
|
|
231
|
+
|
|
138
232
|
Delegate to the **auto-prep-pr** subagent. Tell it:
|
|
139
233
|
|
|
140
234
|
- The target branch (from input, or `main` if not specified)
|