Problem
The CI infrastructure has accumulated complexity that causes failures and spin without proportional value.
1. ci-rerun.yml — delete entirely
A manual workflow_dispatch workflow created to re-run CI on fork PRs (commit e5bf27d). It duplicates build/test steps from squad-ci.yml and drifts out of sync.
Why it's safe to delete:
- GitHub's built-in Approve and run button handles fork PRs natively
- The
Squad CI / rerun status check is NOT a required check — gives a false green signal
- All build steps are duplicated from
squad-ci.yml and already stale (e.g., ci-rerun installs Playwright browsers inline but squad-ci uses the setup-squad-node action)
- Only 6 commits in its history — minimal investment
2. squad-ci.yml — review and streamline (852 lines, 9 jobs)
Current jobs: changes, docs-quality, test, policy-gates, exports-map-check, samples-build, publish-policy, export-smoke-test, scope-check
Review each for:
- Failure rate vs. value — are any of these gates causing frequent failures without catching real bugs?
- Redundancy — do any jobs overlap in what they check?
- Weight — 852 lines is a lot of CI. Can gates be consolidated?
- Path filtering — the
changes job does path filtering but not all downstream jobs use it. Tighten skip conditions to reduce wasted runs.
3. setup-squad-node composite action — keep but verify
The shared action is good (DRY pattern). But its comment header references ci-rerun.yml as a consumer — update after deletion.
4. Fix broken script tests (pre-existing on dev)
The dev branch has been red since PR #996 was merged. Three test files are failing:
| Test file |
Failure |
test/scripts/check-squad-leakage.test.ts |
Scripts returning non-zero exit codes + unparseable JSON output |
test/scripts/security-review.test.ts |
Same — exit codes + JSON parse failures |
test/scripts/security-review-skills.test.ts |
Missing file — scripts/security-review.mjs does not exist (ERR_MODULE_NOT_FOUND) |
These failures block all PRs from passing CI. Fixing them is prerequisite to merging any other work.
Action items
Context
Identified during CI workflow review session. Brady's hypothesis: these CI files are the source of a lot of failures and spin we don't need. Analysis confirmed ci-rerun.yml is fully redundant, and squad-ci.yml has grown to 852 lines / 9 jobs and could benefit from a trim. Broken script tests discovered during PR #1001/#1002 CI investigation — pre-existing failures on dev since PR #996.
Problem
The CI infrastructure has accumulated complexity that causes failures and spin without proportional value.
1.
ci-rerun.yml— delete entirelyA manual
workflow_dispatchworkflow created to re-run CI on fork PRs (commit e5bf27d). It duplicates build/test steps fromsquad-ci.ymland drifts out of sync.Why it's safe to delete:
Squad CI / rerunstatus check is NOT a required check — gives a false green signalsquad-ci.ymland already stale (e.g., ci-rerun installs Playwright browsers inline but squad-ci uses the setup-squad-node action)2.
squad-ci.yml— review and streamline (852 lines, 9 jobs)Current jobs:
changes,docs-quality,test,policy-gates,exports-map-check,samples-build,publish-policy,export-smoke-test,scope-checkReview each for:
changesjob does path filtering but not all downstream jobs use it. Tighten skip conditions to reduce wasted runs.3.
setup-squad-nodecomposite action — keep but verifyThe shared action is good (DRY pattern). But its comment header references
ci-rerun.ymlas a consumer — update after deletion.4. Fix broken script tests (pre-existing on
dev)The
devbranch has been red since PR #996 was merged. Three test files are failing:test/scripts/check-squad-leakage.test.tstest/scripts/security-review.test.tstest/scripts/security-review-skills.test.tsscripts/security-review.mjsdoes not exist (ERR_MODULE_NOT_FOUND)These failures block all PRs from passing CI. Fixing them is prerequisite to merging any other work.
Action items
.github/workflows/ci-rerun.yml.github/actions/setup-squad-node/action.ymlcomment header (remove ci-rerun reference)Squad CI / rerunstatus checksquad-ci.ymlfor failure rate vs. valuesquad-ci.ymlunder 600 linestest/scripts/check-squad-leakage.test.tstest/scripts/security-review.test.tstest/scripts/security-review-skills.test.ts(missingscripts/security-review.mjs)devbranch CI is green after fixesContext
Identified during CI workflow review session. Brady's hypothesis: these CI files are the source of a lot of failures and spin we don't need. Analysis confirmed
ci-rerun.ymlis fully redundant, andsquad-ci.ymlhas grown to 852 lines / 9 jobs and could benefit from a trim. Broken script tests discovered during PR #1001/#1002 CI investigation — pre-existing failures ondevsince PR #996.