maxsimcli 5.0.6 → 5.1.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/README.md +316 -288
- package/dist/assets/CHANGELOG.md +14 -0
- package/dist/assets/hooks/maxsim-capture-learnings.cjs +128 -0
- package/dist/assets/hooks/maxsim-capture-learnings.cjs.map +1 -0
- package/dist/assets/hooks/maxsim-check-update.cjs +126 -88
- package/dist/assets/hooks/maxsim-check-update.cjs.map +1 -1
- package/dist/assets/hooks/maxsim-notification-sound.cjs +87 -43
- package/dist/assets/hooks/maxsim-notification-sound.cjs.map +1 -1
- package/dist/assets/hooks/maxsim-statusline.cjs +45 -171
- package/dist/assets/hooks/maxsim-statusline.cjs.map +1 -1
- package/dist/assets/hooks/maxsim-stop-sound.cjs +86 -43
- package/dist/assets/hooks/maxsim-stop-sound.cjs.map +1 -1
- package/dist/assets/hooks/maxsim-sync-reminder.cjs +72 -21
- package/dist/assets/hooks/maxsim-sync-reminder.cjs.map +1 -1
- package/dist/assets/templates/agents/AGENTS.md +62 -51
- package/dist/assets/templates/agents/executor.md +44 -59
- package/dist/assets/templates/agents/planner.md +36 -31
- package/dist/assets/templates/agents/researcher.md +35 -43
- package/dist/assets/templates/agents/verifier.md +29 -31
- package/dist/assets/templates/commands/maxsim/debug.md +20 -154
- package/dist/assets/templates/commands/maxsim/execute.md +19 -33
- package/dist/assets/templates/commands/maxsim/go.md +21 -20
- package/dist/assets/templates/commands/maxsim/help.md +5 -14
- package/dist/assets/templates/commands/maxsim/init.md +18 -40
- package/dist/assets/templates/commands/maxsim/plan.md +22 -37
- package/dist/assets/templates/commands/maxsim/progress.md +15 -16
- package/dist/assets/templates/commands/maxsim/quick.md +18 -29
- package/dist/assets/templates/commands/maxsim/settings.md +18 -26
- package/dist/assets/templates/references/continuation-format.md +2 -4
- package/dist/assets/templates/references/model-profiles.md +2 -2
- package/dist/assets/templates/references/planning-config.md +10 -11
- package/dist/assets/templates/references/self-improvement.md +120 -0
- package/dist/assets/templates/rules/conventions.md +1 -1
- package/dist/assets/templates/rules/verification-protocol.md +1 -1
- package/dist/assets/templates/skills/brainstorming/SKILL.md +35 -26
- package/dist/assets/templates/skills/code-review/SKILL.md +78 -55
- package/dist/assets/templates/skills/commit-conventions/SKILL.md +70 -36
- package/dist/assets/templates/skills/github-operations/SKILL.md +142 -0
- package/dist/assets/templates/skills/handoff-contract/SKILL.md +62 -28
- package/dist/assets/templates/skills/maxsim-batch/SKILL.md +68 -42
- package/dist/assets/templates/skills/maxsim-simplify/SKILL.md +65 -40
- package/dist/assets/templates/skills/project-memory/SKILL.md +121 -0
- package/dist/assets/templates/skills/research/SKILL.md +126 -0
- package/dist/assets/templates/skills/roadmap-writing/SKILL.md +71 -68
- package/dist/assets/templates/skills/systematic-debugging/SKILL.md +37 -25
- package/dist/assets/templates/skills/tdd/SKILL.md +36 -39
- package/dist/assets/templates/skills/using-maxsim/SKILL.md +69 -55
- package/dist/assets/templates/skills/verification/SKILL.md +167 -0
- package/dist/assets/templates/workflows/batch.md +249 -268
- package/dist/assets/templates/workflows/diagnose-issues.md +225 -151
- package/dist/assets/templates/workflows/execute-plan.md +191 -981
- package/dist/assets/templates/workflows/execute.md +350 -309
- package/dist/assets/templates/workflows/go.md +119 -138
- package/dist/assets/templates/workflows/health.md +71 -114
- package/dist/assets/templates/workflows/help.md +85 -147
- package/dist/assets/templates/workflows/init-existing.md +180 -1373
- package/dist/assets/templates/workflows/init.md +53 -165
- package/dist/assets/templates/workflows/new-milestone.md +91 -334
- package/dist/assets/templates/workflows/new-project.md +165 -1384
- package/dist/assets/templates/workflows/plan-create.md +182 -73
- package/dist/assets/templates/workflows/plan-discuss.md +89 -82
- package/dist/assets/templates/workflows/plan-research.md +191 -85
- package/dist/assets/templates/workflows/plan.md +122 -58
- package/dist/assets/templates/workflows/progress.md +76 -310
- package/dist/assets/templates/workflows/quick.md +70 -495
- package/dist/assets/templates/workflows/sdd.md +231 -221
- package/dist/assets/templates/workflows/settings.md +90 -120
- package/dist/assets/templates/workflows/verify-phase.md +296 -258
- package/dist/cli.cjs +17 -23465
- package/dist/cli.cjs.map +1 -1
- package/dist/install.cjs +356 -8358
- package/dist/install.cjs.map +1 -1
- package/package.json +16 -22
- package/dist/assets/templates/skills/agent-system-map/SKILL.md +0 -92
- package/dist/assets/templates/skills/evidence-collection/SKILL.md +0 -87
- package/dist/assets/templates/skills/github-artifact-protocol/SKILL.md +0 -67
- package/dist/assets/templates/skills/github-tools-guide/SKILL.md +0 -89
- package/dist/assets/templates/skills/input-validation/SKILL.md +0 -51
- package/dist/assets/templates/skills/memory-management/SKILL.md +0 -75
- package/dist/assets/templates/skills/research-methodology/SKILL.md +0 -137
- package/dist/assets/templates/skills/sdd/SKILL.md +0 -91
- package/dist/assets/templates/skills/tool-priority-guide/SKILL.md +0 -80
- package/dist/assets/templates/skills/verification-before-completion/SKILL.md +0 -71
- package/dist/assets/templates/skills/verification-gates/SKILL.md +0 -169
- package/dist/assets/templates/workflows/discuss-phase.md +0 -683
- package/dist/assets/templates/workflows/research-phase.md +0 -73
- package/dist/assets/templates/workflows/verify-work.md +0 -572
- package/dist/core-D5zUr9cb.cjs +0 -4305
- package/dist/core-D5zUr9cb.cjs.map +0 -1
- package/dist/skills-CjFWZIGM.cjs +0 -6824
- package/dist/skills-CjFWZIGM.cjs.map +0 -1
|
@@ -1,219 +1,293 @@
|
|
|
1
1
|
<purpose>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
After UAT finds gaps, spawn one debug agent per gap. Each agent investigates autonomously with symptoms pre-filled from UAT. Collect root causes, update UAT.md gaps with diagnosis, then hand off to plan --gaps with actual diagnoses.
|
|
5
|
-
|
|
6
|
-
Orchestrator stays lean: parse gaps, spawn agents, collect results, update UAT.
|
|
2
|
+
Systematic debugging of a reported issue. Spawns parallel Research agents to investigate, hypothesizes root cause, spawns an executor to implement a fix, verifies the fix, and posts results to GitHub.
|
|
7
3
|
</purpose>
|
|
8
4
|
|
|
9
|
-
<
|
|
10
|
-
DEBUG_DIR=.planning/debug
|
|
5
|
+
<process>
|
|
11
6
|
|
|
12
|
-
|
|
13
|
-
</paths>
|
|
7
|
+
## Step 1: Accept issue description
|
|
14
8
|
|
|
15
|
-
|
|
16
|
-
**Diagnose before planning fixes.**
|
|
9
|
+
Parse `$ARGUMENTS` for the issue description.
|
|
17
10
|
|
|
18
|
-
|
|
11
|
+
If empty, prompt:
|
|
19
12
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
```
|
|
14
|
+
AskUserQuestion(
|
|
15
|
+
header: "Debug Issue",
|
|
16
|
+
question: "Describe the issue to diagnose.",
|
|
17
|
+
followUp: "Include: what's broken, any error messages, how to reproduce it."
|
|
18
|
+
)
|
|
19
|
+
```
|
|
23
20
|
|
|
24
|
-
|
|
21
|
+
Store as `$ISSUE_DESCRIPTION`.
|
|
25
22
|
|
|
26
|
-
|
|
27
|
-
**Extract gaps from UAT.md:**
|
|
23
|
+
Create a GitHub Issue to track the debug session:
|
|
28
24
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
severity: major
|
|
35
|
-
test: 2
|
|
36
|
-
artifacts: []
|
|
37
|
-
missing: []
|
|
25
|
+
```bash
|
|
26
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs github create-issue \
|
|
27
|
+
--title "Debug: $ISSUE_DESCRIPTION" \
|
|
28
|
+
--label "type:bug" \
|
|
29
|
+
--body "Debug session started.\n\nSymptoms: $ISSUE_DESCRIPTION"
|
|
38
30
|
```
|
|
39
31
|
|
|
40
|
-
|
|
32
|
+
Store response as `$DEBUG_ISSUE_NUM`.
|
|
33
|
+
|
|
34
|
+
Display:
|
|
41
35
|
|
|
42
|
-
Build gap list:
|
|
43
36
|
```
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
37
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
38
|
+
MAXSIM ► DIAGNOSING ISSUE #$DEBUG_ISSUE_NUM
|
|
39
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
40
|
+
|
|
41
|
+
Symptoms: $ISSUE_DESCRIPTION
|
|
42
|
+
|
|
43
|
+
Spawning 3 research agents in parallel...
|
|
49
44
|
```
|
|
50
|
-
</step>
|
|
51
45
|
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Step 2: Spawn parallel Research agents
|
|
49
|
+
|
|
50
|
+
Launch all three agents simultaneously in a single message:
|
|
51
|
+
|
|
52
|
+
**Agent A — Error logs and stack traces:**
|
|
54
53
|
|
|
55
54
|
```
|
|
56
|
-
|
|
55
|
+
Agent(
|
|
56
|
+
prompt="
|
|
57
|
+
## Task: Investigate error logs and stack traces
|
|
57
58
|
|
|
58
|
-
|
|
59
|
+
## Suggested Skills: systematic-debugging
|
|
59
60
|
|
|
60
|
-
|
|
61
|
-
|-------------|----------|
|
|
62
|
-
| Comment appears immediately after submission | major |
|
|
63
|
-
| Reply button positioned correctly | minor |
|
|
64
|
-
| Delete removes comment | blocker |
|
|
61
|
+
Issue: $ISSUE_DESCRIPTION
|
|
65
62
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
Search for:
|
|
64
|
+
- Recent error messages in logs, console output, or test output
|
|
65
|
+
- Stack traces related to the reported symptoms
|
|
66
|
+
- Any exception types or error codes
|
|
70
67
|
|
|
71
|
-
|
|
68
|
+
Report: What errors exist and where they originate.
|
|
69
|
+
",
|
|
70
|
+
subagent_type="researcher",
|
|
71
|
+
description="Investigate error logs for: $ISSUE_DESCRIPTION"
|
|
72
|
+
)
|
|
72
73
|
```
|
|
73
|
-
</step>
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
**Agent B — Recent changes:**
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
Agent(
|
|
79
|
+
prompt="
|
|
80
|
+
## Task: Investigate recent code changes
|
|
81
|
+
|
|
82
|
+
## Suggested Skills: systematic-debugging
|
|
83
|
+
|
|
84
|
+
Issue: $ISSUE_DESCRIPTION
|
|
77
85
|
|
|
78
|
-
|
|
86
|
+
Examine:
|
|
87
|
+
- git log --oneline -20 (last 20 commits)
|
|
88
|
+
- git diff HEAD~5 for files related to the symptom area
|
|
89
|
+
- Any recent dependency changes (package.json, lock files)
|
|
79
90
|
|
|
91
|
+
Report: What changed recently that could cause these symptoms?
|
|
92
|
+
",
|
|
93
|
+
subagent_type="researcher",
|
|
94
|
+
description="Investigate recent changes for: $ISSUE_DESCRIPTION"
|
|
95
|
+
)
|
|
80
96
|
```
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
97
|
+
|
|
98
|
+
**Agent C — Related code paths:**
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
Agent(
|
|
102
|
+
prompt="
|
|
103
|
+
## Task: Investigate related code paths
|
|
104
|
+
|
|
105
|
+
## Suggested Skills: systematic-debugging
|
|
106
|
+
|
|
107
|
+
Issue: $ISSUE_DESCRIPTION
|
|
108
|
+
|
|
109
|
+
Trace:
|
|
110
|
+
- The code path triggered when the issue occurs
|
|
111
|
+
- Any data transformations, state mutations, or async flows involved
|
|
112
|
+
- Interfaces and contracts between components in that path
|
|
113
|
+
|
|
114
|
+
Report: Where in the code could this symptom originate?
|
|
115
|
+
",
|
|
116
|
+
subagent_type="researcher",
|
|
117
|
+
description="Investigate code paths for: $ISSUE_DESCRIPTION"
|
|
85
118
|
)
|
|
86
119
|
```
|
|
87
120
|
|
|
88
|
-
|
|
121
|
+
Collect findings from all three agents. Store as `$LOGS_FINDINGS`, `$CHANGES_FINDINGS`, `$CODE_FINDINGS`.
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Step 3: Hypothesize root cause
|
|
126
|
+
|
|
127
|
+
Synthesize findings into a hypothesis:
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
## Investigation Summary
|
|
131
|
+
|
|
132
|
+
**Symptoms:** $ISSUE_DESCRIPTION
|
|
133
|
+
|
|
134
|
+
**Logs/Errors:** $LOGS_FINDINGS
|
|
135
|
+
|
|
136
|
+
**Recent Changes:** $CHANGES_FINDINGS
|
|
89
137
|
|
|
90
|
-
|
|
91
|
-
- `{truth}`: The expected behavior that failed
|
|
92
|
-
- `{expected}`: From UAT test
|
|
93
|
-
- `{actual}`: Verbatim user description from reason field
|
|
94
|
-
- `{errors}`: Any error messages from UAT (or "None reported")
|
|
95
|
-
- `{reproduction}`: "Test {test_num} in UAT"
|
|
96
|
-
- `{timeline}`: "Discovered during UAT"
|
|
97
|
-
- `{goal}`: `find_root_cause_only` (UAT flow - plan --gaps handles fixes)
|
|
98
|
-
- `{slug}`: Generated from truth
|
|
99
|
-
</step>
|
|
138
|
+
**Code Path:** $CODE_FINDINGS
|
|
100
139
|
|
|
101
|
-
|
|
102
|
-
**Collect root causes from agents:**
|
|
140
|
+
**Hypothesis:** [State the most likely root cause based on the three investigations]
|
|
103
141
|
|
|
104
|
-
|
|
142
|
+
**Files likely involved:**
|
|
143
|
+
- [file]: [why it's relevant]
|
|
105
144
|
```
|
|
106
|
-
## ROOT CAUSE FOUND
|
|
107
145
|
|
|
108
|
-
|
|
146
|
+
Display the hypothesis to the user and ask:
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
AskUserQuestion(
|
|
150
|
+
header: "Root Cause Hypothesis",
|
|
151
|
+
question: "Does this hypothesis look correct? Proceed with fix?",
|
|
152
|
+
options: [
|
|
153
|
+
{ label: "Yes, implement the fix" },
|
|
154
|
+
{ label: "No, my hypothesis is different" },
|
|
155
|
+
{ label: "Abort" }
|
|
156
|
+
]
|
|
157
|
+
)
|
|
158
|
+
```
|
|
109
159
|
|
|
110
|
-
|
|
160
|
+
If "No, my hypothesis is different": capture user's hypothesis, use it instead.
|
|
111
161
|
|
|
112
|
-
|
|
113
|
-
- {key finding 1}
|
|
114
|
-
- {key finding 2}
|
|
115
|
-
- {key finding 3}
|
|
162
|
+
---
|
|
116
163
|
|
|
117
|
-
|
|
118
|
-
- {file1}: {what's wrong}
|
|
119
|
-
- {file2}: {related issue}
|
|
164
|
+
## Step 4: Implement fix
|
|
120
165
|
|
|
121
|
-
|
|
166
|
+
Spawn executor agent to implement the fix:
|
|
167
|
+
|
|
168
|
+
```
|
|
169
|
+
Agent(
|
|
170
|
+
prompt="
|
|
171
|
+
Fix this issue: $ISSUE_DESCRIPTION
|
|
172
|
+
|
|
173
|
+
Root cause hypothesis: $HYPOTHESIS
|
|
174
|
+
|
|
175
|
+
Files likely involved: $FILES
|
|
176
|
+
|
|
177
|
+
<constraints>
|
|
178
|
+
- Make a minimal, targeted fix
|
|
179
|
+
- Do not refactor unrelated code
|
|
180
|
+
- Commit with message: fix: $ISSUE_DESCRIPTION (closes #$DEBUG_ISSUE_NUM)
|
|
181
|
+
- Return the commit hash and a 2-3 sentence summary of what was changed
|
|
182
|
+
</constraints>
|
|
183
|
+
",
|
|
184
|
+
subagent_type="executor",
|
|
185
|
+
description="Fix: $ISSUE_DESCRIPTION"
|
|
186
|
+
)
|
|
122
187
|
```
|
|
123
188
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
- debug_path: Path to debug session file
|
|
128
|
-
- suggested_fix: Hint for gap closure plan
|
|
189
|
+
Extract `$FIX_COMMIT` and `$FIX_SUMMARY`.
|
|
190
|
+
|
|
191
|
+
---
|
|
129
192
|
|
|
130
|
-
|
|
131
|
-
- root_cause: "Investigation inconclusive - manual review needed"
|
|
132
|
-
- Note which issue needs manual attention
|
|
133
|
-
- Include remaining possibilities from agent return
|
|
134
|
-
</step>
|
|
193
|
+
## Step 5: Verify fix
|
|
135
194
|
|
|
136
|
-
|
|
137
|
-
|
|
195
|
+
```
|
|
196
|
+
Agent(
|
|
197
|
+
prompt="
|
|
198
|
+
Verify this fix resolves the reported issue.
|
|
199
|
+
|
|
200
|
+
Issue: $ISSUE_DESCRIPTION
|
|
201
|
+
Fix commit: $FIX_COMMIT
|
|
202
|
+
Fix summary: $FIX_SUMMARY
|
|
138
203
|
|
|
139
|
-
|
|
204
|
+
Check:
|
|
205
|
+
1. Does the fix address the stated root cause?
|
|
206
|
+
2. Are there any regressions introduced?
|
|
207
|
+
3. Does it match the expected behavior described in the issue?
|
|
140
208
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
test: 2
|
|
147
|
-
root_cause: "useEffect in CommentList.tsx missing commentCount dependency"
|
|
148
|
-
artifacts:
|
|
149
|
-
- path: "src/components/CommentList.tsx"
|
|
150
|
-
issue: "useEffect missing dependency"
|
|
151
|
-
missing:
|
|
152
|
-
- "Add commentCount to useEffect dependency array"
|
|
153
|
-
- "Trigger re-render when new comment added"
|
|
154
|
-
debug_session: .planning/debug/comment-not-refreshing.md
|
|
209
|
+
Return: PASS or FAIL with evidence.
|
|
210
|
+
",
|
|
211
|
+
subagent_type="verifier",
|
|
212
|
+
description="Verify fix for: $ISSUE_DESCRIPTION"
|
|
213
|
+
)
|
|
155
214
|
```
|
|
156
215
|
|
|
157
|
-
|
|
216
|
+
Store `$VERIFY_STATUS`.
|
|
217
|
+
|
|
218
|
+
If FAIL: display verification failures, ask user whether to iterate or accept.
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## Step 6: Post results to GitHub
|
|
223
|
+
|
|
224
|
+
Post a comment with full diagnosis and fix details:
|
|
158
225
|
|
|
159
|
-
Commit the updated UAT.md:
|
|
160
226
|
```bash
|
|
161
|
-
node ~/.claude/maxsim/bin/maxsim-tools.cjs
|
|
227
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs github comment-issue \
|
|
228
|
+
--issue-number $DEBUG_ISSUE_NUM \
|
|
229
|
+
--body "## Diagnosis Complete
|
|
230
|
+
|
|
231
|
+
**Root Cause:** $HYPOTHESIS
|
|
232
|
+
|
|
233
|
+
**Fix:** $FIX_SUMMARY
|
|
234
|
+
**Commit:** $FIX_COMMIT
|
|
235
|
+
**Verification:** $VERIFY_STATUS
|
|
236
|
+
|
|
237
|
+
### Investigation Findings
|
|
238
|
+
- Logs: $LOGS_FINDINGS
|
|
239
|
+
- Recent Changes: $CHANGES_FINDINGS
|
|
240
|
+
- Code Path: $CODE_FINDINGS"
|
|
162
241
|
```
|
|
163
|
-
</step>
|
|
164
242
|
|
|
165
|
-
|
|
166
|
-
|
|
243
|
+
Close the issue if verification passed:
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs github close-issue --issue-number $DEBUG_ISSUE_NUM
|
|
247
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs github move-issue \
|
|
248
|
+
--issue-number $DEBUG_ISSUE_NUM \
|
|
249
|
+
--status "Done"
|
|
250
|
+
```
|
|
167
251
|
|
|
168
252
|
Display:
|
|
253
|
+
|
|
169
254
|
```
|
|
170
255
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
171
256
|
MAXSIM ► DIAGNOSIS COMPLETE
|
|
172
257
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
173
258
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
259
|
+
Issue: #$DEBUG_ISSUE_NUM
|
|
260
|
+
Root Cause: $HYPOTHESIS
|
|
261
|
+
Fix Commit: $FIX_COMMIT
|
|
262
|
+
Verification: $VERIFY_STATUS
|
|
263
|
+
```
|
|
179
264
|
|
|
180
|
-
|
|
265
|
+
</process>
|
|
181
266
|
|
|
182
|
-
|
|
183
|
-
```
|
|
267
|
+
<failure_handling>
|
|
184
268
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
269
|
+
**If research agent returns inconclusive:**
|
|
270
|
+
- Mark that research dimension as "inconclusive"
|
|
271
|
+
- Continue with other agents' findings
|
|
272
|
+
- Note the gap in the hypothesis
|
|
188
273
|
|
|
189
|
-
|
|
274
|
+
**If fix verification fails twice:**
|
|
275
|
+
- Report remaining failures
|
|
276
|
+
- Ask user: 1) Try a different fix approach, 2) Accept current state, 3) Escalate to manual review
|
|
190
277
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
</context_efficiency>
|
|
278
|
+
**If all agents fail:**
|
|
279
|
+
- Post collected partial findings to the GitHub Issue
|
|
280
|
+
- Leave issue open with label "needs-manual-review"
|
|
195
281
|
|
|
196
|
-
<failure_handling>
|
|
197
|
-
**Agent fails to find root cause:**
|
|
198
|
-
- Mark gap as "needs manual review"
|
|
199
|
-
- Continue with other gaps
|
|
200
|
-
- Report incomplete diagnosis
|
|
201
|
-
|
|
202
|
-
**Agent times out:**
|
|
203
|
-
- Check DEBUG-{slug}.md for partial progress
|
|
204
|
-
- Can resume with /maxsim:debug
|
|
205
|
-
|
|
206
|
-
**All agents fail:**
|
|
207
|
-
- Something systemic (permissions, git, etc.)
|
|
208
|
-
- Report for manual investigation
|
|
209
|
-
- Fall back to plan --gaps without root causes (less precise)
|
|
210
282
|
</failure_handling>
|
|
211
283
|
|
|
212
284
|
<success_criteria>
|
|
213
|
-
- [ ]
|
|
214
|
-
- [ ]
|
|
215
|
-
- [ ] Root
|
|
216
|
-
- [ ]
|
|
217
|
-
- [ ]
|
|
218
|
-
- [ ]
|
|
285
|
+
- [ ] GitHub Issue created for the debug session
|
|
286
|
+
- [ ] Three research agents spawned in parallel (logs, changes, code paths)
|
|
287
|
+
- [ ] Root cause hypothesis synthesized from all findings
|
|
288
|
+
- [ ] User confirms hypothesis before fix is implemented
|
|
289
|
+
- [ ] Executor agent implements targeted fix
|
|
290
|
+
- [ ] Verifier agent confirms fix resolves the issue
|
|
291
|
+
- [ ] Full results posted to GitHub Issue
|
|
292
|
+
- [ ] Issue closed and moved to Done on verification pass
|
|
219
293
|
</success_criteria>
|