-
Notifications
You must be signed in to change notification settings - Fork 1
fix(workflows): align 4 workflow templates with PROJECT.md spec #175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -452,6 +452,27 @@ git push origin HEAD | |||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| **If human_needed:** Present items for human testing. If approved, treat as passed. If issues reported, proceed to Retry Loop. | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ### 8.2 Error Recovery Protocol | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| When verification identifies unresolved gaps, recovery proceeds through three tiers: | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| **Tier 1 — Debug (attempts 1–3):** | ||||||||||||||||||||||||||||||||||||||
| - Spawn a fresh planner to analyze the failure and produce a targeted gap-closure plan | ||||||||||||||||||||||||||||||||||||||
| - Spawn a fresh executor to implement the fix in an isolated worktree | ||||||||||||||||||||||||||||||||||||||
| - Run verification again on the result | ||||||||||||||||||||||||||||||||||||||
| - If successful: phase completes. If fails: advance to next tier. | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| **Tier 2 — Rollback (after 3 failed attempts):** | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+457
to
+465
|
||||||||||||||||||||||||||||||||||||||
| When verification identifies unresolved gaps, recovery proceeds through three tiers: | |
| **Tier 1 — Debug (attempts 1–3):** | |
| - Spawn a fresh planner to analyze the failure and produce a targeted gap-closure plan | |
| - Spawn a fresh executor to implement the fix in an isolated worktree | |
| - Run verification again on the result | |
| - If successful: phase completes. If fails: advance to next tier. | |
| **Tier 2 — Rollback (after 3 failed attempts):** | |
| When verification identifies unresolved gaps, recovery proceeds through three tiers within the attempt budget defined in Step 9 (initial attempt + up to 3 retries; 4 total attempts): | |
| **Tier 1 — Debug (attempts 1–4; initial + up to 3 retries):** | |
| - Spawn a fresh planner to analyze the failure and produce a targeted gap-closure plan | |
| - Spawn a fresh executor to implement the fix in an isolated worktree | |
| - Run verification again on the result | |
| - If successful: phase completes. If fails: advance to next tier. | |
| **Tier 2 — Rollback (after attempt budget exhausted — 4 failed attempts total):** |
Copilot
AI
Mar 25, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tier 3 instructs creating a diagnostic GitHub Issue, but Step 9.1 already defines a diagnostic issue creation flow when the 4-attempt budget is exhausted (with a concrete gh issue create template). As written, this introduces two competing escalation triggers and may cause duplicate issues or unclear operator behavior. Consider either referencing the existing Step 9.1 diagnostic-issue procedure from Tier 3, or explicitly differentiating Tier 3 (when/how to escalate) from the "attempts exhausted" path.
| **Tier 3 — Escalate:** | |
| - Create a diagnostic GitHub Issue labeled `type:bug` and `maxsim:auto` | |
| - Include: original spec, all attempt summaries, exact gate failures, root cause analysis | |
| **Tier 3 — Escalate (after 4 failed attempts / when §9.1 triggers):** | |
| - Follow the diagnostic GitHub Issue procedure defined in §9.1 ("Verification Failed After 4 Attempts") | |
| - Ensure the diagnostic Issue is labeled `type:bug` and `maxsim:auto` and includes: original spec, all attempt summaries, exact gate failures, and root cause analysis |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -109,6 +109,15 @@ AskUserQuestion([ | |||||||||
| { label: "Deep", description: "Maximum competition. Highest quality, highest cost." } | ||||||||||
| ] | ||||||||||
| }, | ||||||||||
| { | ||||||||||
| question: "Auto-advance: Should MaxsimCLI automatically proceed between stages (research → plan → execute) without waiting for confirmation?", | ||||||||||
| header: "Auto-Advance", | ||||||||||
| multiSelect: false, | ||||||||||
| options: [ | ||||||||||
| { label: "Yes", description: "Automatically proceed between stages without confirmation. Maps to config key: workflow.auto_advance" }, | ||||||||||
| { label: "No (Recommended)", description: "Pause between stages for user confirmation. Maps to config key: workflow.auto_advance" } | ||||||||||
|
Comment on lines
+117
to
+118
|
||||||||||
| { label: "Yes", description: "Automatically proceed between stages without confirmation. Maps to config key: workflow.auto_advance" }, | |
| { label: "No (Recommended)", description: "Pause between stages for user confirmation. Maps to config key: workflow.auto_advance" } | |
| { label: "Yes", description: "Automatically proceed between stages without confirmation." }, | |
| { label: "No (Recommended)", description: "Pause between stages for user confirmation." } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This instructs recording results in the summary comment’s
## Review Cyclesection, but the Step 6 summary template below does not include a## Review Cycleheading/placeholder. That makes the guidance unimplementable as-is. Either add a## Review Cyclesection to the summary template, or update this instruction to point to an existing section (or specify where to insert the review-cycle block).