Skip to content

feat: gap analysis verification loop (#472)#473

Merged
bradygaster merged 1 commit intodevfrom
squad/472-gap-analysis
Mar 22, 2026
Merged

feat: gap analysis verification loop (#472)#473
bradygaster merged 1 commit intodevfrom
squad/472-gap-analysis

Conversation

@bradygaster
Copy link
Copy Markdown
Owner

Summary

Adds Step 1b — Verification (when issue has checklist) to the coordinator's After Agent Work flow in \squad.agent.md.

When an agent reports work done on an issue containing - [ ]\ checkboxes, the coordinator now spawns a lightweight verification agent (\claude-haiku-4.5, sync mode) to independently check each checklist item against the work product. This closes the gap where agents claim completion but haven't addressed all checklist items.

How it works

  • Opt-in: Only triggers when the issue body has - [ ]\ checkboxes — zero overhead otherwise
  • Independent verifier: Different agent than the doer (fresh eyes catch blind spots)
  • Cost-conscious: Uses \claude-haiku-4.5\ in sync mode — focused audit, not creative work
  • Retry cap: 2 re-verification attempts before escalating to user
  • Outcomes: PASS proceeds normally; FAIL posts gap list as issue comment and re-routes

Files changed

All 4 template copies updated (template sync pattern):

  • .github/agents/squad.agent.md\ (primary)
  • \packages/squad-cli/templates/squad.agent.md\
  • \packages/squad-sdk/templates/squad.agent.md\
  • \ emplates/squad.agent.md\

Working as Procedures (Prompt Engineer).

Closes #472

Add Step 1b — Verification (when issue has checklist) — between collecting
results and silent success detection. When an agent reports work done on an
issue with '- [ ]' checkboxes, the coordinator spawns a lightweight
verification agent (claude-haiku-4.5, sync) to check each checklist item
against the work product. Pass proceeds normally; fail posts gaps as an
issue comment and re-routes with a 2-retry cap before escalating to user.

Closes #472

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bradygaster bradygaster force-pushed the squad/472-gap-analysis branch from df510ec to 28ca279 Compare March 22, 2026 07:07
@bradygaster bradygaster merged commit 72f2876 into dev Mar 22, 2026
1 of 2 checks passed
@bradygaster bradygaster deleted the squad/472-gap-analysis branch March 22, 2026 07:07
chrislomonico pushed a commit to clomonico/squad that referenced this pull request Mar 26, 2026
…) (bradygaster#473)

- Show count badge when multiple agents are working in parallel
- Auto-clear stale activity hints after 30 seconds

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gap analysis on done and not done work

1 participant