Repository navigation
fix(gh-aw): install workflow runtime guards - #2038
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
🛫 PR Readiness Check
PR Scope: 🔧 Infrastructure
|
| Status | Check | Details |
|---|---|---|
| ❌ | Single commit | 9 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 | Changeset file found |
| ✅ | Scope clean | No .squad/ or docs/proposals/ files |
| ✅ | No merge conflicts | No merge conflicts |
| ✅ | Copilot threads resolved | All 1 Copilot thread(s) resolved |
| ✅ | CI passing | All checks passing |
Files Changed (14 files, +354 −54)
| File | +/− |
|---|---|
.changeset/gh-aw-runtime-resource-closure.md |
+8 −0 |
.squad-templates/skills/gh-aw-enlistment/SKILL.md |
+10 −0 |
docs/src/content/docs/guide/gh-aw.md |
+50 −16 |
packages/squad-cli/templates/skills/gh-aw-enlistment/SKILL.md |
+10 −0 |
packages/squad-sdk/templates/skills/gh-aw-enlistment/SKILL.md |
+10 −0 |
templates/skills/gh-aw-enlistment/SKILL.md |
+10 −0 |
test/gh-aw-enlistment-skill.test.ts |
+27 −0 |
test/gh-aw-lifecycle-upsert.test.ts |
+53 −1 |
test/gh-aw-quality.test.ts |
+143 −5 |
test/gh-aw-retro-workflow.test.ts |
+2 −1 |
test/gh-aw-review-workflow.test.ts |
+6 −7 |
workflows/shared/squad.md |
+21 −0 |
workflows/squad-review.md |
+1 −24 |
workflows/squad.md |
+3 −0 |
Total: +354 −54
This check runs automatically on every push. Fix any ❌ items and push again.
See CONTRIBUTING.md and PR Requirements for details.
🟠 Impact Analysis — PR #2038Risk tier: 🟠 HIGH 📊 Summary
🎯 Risk Factors
📦 Modules Affecteddocs (1 file)
root (5 files)
squad-cli (1 file)
squad-sdk (1 file)
templates (1 file)
tests (5 files)
This report is generated automatically for every PR. See #733 for details. |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Unresolved documentation verification gaps and missing execution-level authorization coverage remain.
Get a fresh assessment by requesting another Copilot review.
Review tier: Lite
Findings: 1
Open findings (1)
What changed in this PR
This PR hardens gh-aw runtime installation and lifecycle authorization.
Changes:
- Declares all shared runtime modules on the dispatcher.
- Removes reviewer dispatch authority and gates lifecycle repair by repository permissions.
- Updates tests, documentation, skill mirrors, and the package changeset.
Open review findings:
docs/src/content/docs/guide/gh-aw.md:65— nit (3 votes): module checks are not fail-fast; the same issue appears at line 257.docs/src/content/docs/guide/gh-aw.md:182— nit (1 vote): upgrade instructions refresh only one runtime module.test/gh-aw-quality.test.ts:499— moderate (1 vote): authorization tests lack execution-level write-suppression coverage.workflows/shared/squad.md:358— moderate (1 vote): permission-gate coverage is text-only.
| File | Description |
|---|---|
workflows/squad.md |
Adds shared runtime resources. |
workflows/squad-review.md |
Removes reviewer dispatch authority. |
workflows/shared/squad.md |
Gates lifecycle repair permissions. |
test/gh-aw-review-workflow.test.ts |
Tests reviewer restrictions. |
test/gh-aw-retro-workflow.test.ts |
Updates retro integration assertions. |
test/gh-aw-quality.test.ts |
Adds authorization and closure tests. |
test/gh-aw-enlistment-skill.test.ts |
Verifies runtime-module guidance. |
templates/skills/gh-aw-enlistment/SKILL.md |
Updates template guidance. |
packages/squad-sdk/templates/skills/gh-aw-enlistment/SKILL.md |
Updates SDK guidance. |
packages/squad-cli/templates/skills/gh-aw-enlistment/SKILL.md |
Updates CLI guidance. |
docs/src/content/docs/guide/gh-aw.md |
Documents runtime resources and checks. |
.squad-templates/skills/gh-aw-enlistment/SKILL.md |
Updates canonical skill guidance. |
.changeset/gh-aw-runtime-resource-closure.md |
Adds the package changeset. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Part of github#2037 and github#2038 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Summary
shared/*.mjsresource set on the dispatcher so the documented dispatcher-firstgh aw addcommand installs every worker runtime guarddispatch-workflowauthority from the advisory reviewerRoot cause
With gh-aw v0.89.2, installing
squad.mdfirst recursively installs the dependent workflows but copies only the root workflow's declared resources. The explicit worker entries are then skipped as duplicates, so resources declared only by those workers never reach the target repository even though strict compilation succeeds.Validation
gh aw addof all six workflows from immutable commit9cc0e91daa86a039d7351bb4d1e76a5470fa244agh aw compile --strict: 6/6 successfulnpm run build: passingorigin/dev; no new actionlint class or countFollow-up to merged #2037.