feat(workflows): add advisory Squad reviewer - #1871
Conversation
Closes #1733 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
🛫 PR Readiness Check
PR Scope: 🔧 Infrastructure
|
| Status | Check | Details |
|---|---|---|
| ❌ | Single commit | 3 commits — consider squashing before review |
| ✅ | Not in draft | Ready for review |
| ✅ | Branch up to date | Up to date with dev |
| ❌ | Copilot review | No Copilot review yet — it may still be processing |
| ✅ | Changeset present | No source files changed — changeset not required |
| ✅ | Scope clean | No .squad/ or docs/proposals/ files |
| ✅ | No merge conflicts | No merge conflicts |
| ✅ | Copilot threads resolved | No Copilot review threads |
| ✅ | CI passing | All checks passing |
Files Changed (4 files, +479 −7)
| File | +/− |
|---|---|
test/gh-aw-command-parse.test.ts |
+1 −1 |
test/gh-aw-review-workflow.test.ts |
+269 −0 |
workflows/squad-review.md |
+167 −0 |
workflows/squad.md |
+42 −6 |
Total: +479 −7
This check runs automatically on every push. Fix any ❌ items and push again.
See CONTRIBUTING.md and PR Requirements for details.
🟡 Impact Analysis — PR #1871Risk tier: 🟡 MEDIUM 📊 Summary
🎯 Risk Factors
📦 Modules Affectedroot (2 files)
tests (2 files)
This report is generated automatically for every PR. See #733 for details. |
Closes #1733 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
The workflow isolation/authority boundary is explicitly constrained and reinforced with structural + compiled-contract + mutation tests covering the key invariants described in the linked acceptance criteria.
Pull request overview
Adds an independent, advisory-only “Squad Review” gh-aw workflow and wires /squad review into the existing /squad router as a relay, with explicit guardrails around provenance, fork refusal, SHA deduplication, cancellation, and constrained outputs/verdicts.
Changes:
- Extend the
/squadrouter to recognize/squad reviewas an open (read-only) mode and dispatch the new reviewer workflow via typeddispatch-workflow. - Introduce
workflows/squad-review.mdwith a tight authority boundary (no edit/dispatch/issue creation; bounded comment + review outputs; COMMENT/REQUEST_CHANGES only). - Add focused contract + compilation + mutation tests ensuring reviewer isolation and provenance/authority invariants remain enforced.
File summaries
| File | Description |
|---|---|
| workflows/squad.md | Adds /squad review parsing + open-mode classification and a relay skill that dispatches the isolated reviewer workflow. |
| workflows/squad-review.md | New advisory reviewer workflow with strict provenance gates, fork refusal, SHA dedup, per-PR concurrency, and constrained safe outputs. |
| test/gh-aw-review-workflow.test.ts | New structural/compiled contract tests (including mutation harness) to keep reviewer authority bounded and provenance rules durable. |
| test/gh-aw-command-parse.test.ts | Updates open-mode allowlist coverage to include review in the router’s authorization classification tests. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Closes #1733 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4e116a04-99e1-40a8-a22a-e9e4df6a4831
Summary
squad-reviewworkflow for recognized Squad/Copilot PRs/squad reviewfrom PR comments through the existing/squadrouterAuthority boundary
The compiled agent job has
contents,issues, andpull-requestsread access only (pluscopilot-requests: write). Configured safe outputs are limited to one PR comment, up to ten inline review comments, and one COMMENT or REQUEST_CHANGES verdict. There is no edit tool, dispatch output, issue creation, approval, remediation, ruleset, or required-check behavior.Validation
gh aw compile squad-review --strict --no-check-update(0 warnings)gh aw compile squad --strict --approve --no-check-update(compiled; existing slash-command/bot warning only)vitest@4.1.11; manifests and lockfiles were left unchanged and PR CI is the validation pathSecurity review
No new secrets, actions, dependencies, or direct GitHub write permissions are introduced. The review workflow keeps fork protection and uses safe outputs for all writes. The router's existing shared imports reference
SQUAD_GITHUB_TOKENandSQUAD_GITHUB_APP_PRIVATE_KEY; this change does not add or alter those references.Working as FIDO (Quality Owner).
Closes #1733