Repository navigation
fix(workflows): restore planning imports, remove fragile runtime cat instructions - #1685
Conversation
…instructions Root cause: the compression PR (#1682) removed shared/planning-ontology.md and shared/planning-policy.md from the imports: list, then compensated with five runtime `cat .github/workflows/shared/planning-*.md` instructions. These instructions imply a workspace file exists at runtime, which is not how gh-aw imports work — imported content is inlined into the prompt before execution. Changes: - workflows/squad.md: add shared/planning-ontology.md and shared/planning-policy.md back to imports: alongside shared/squad.md - workflows/squad.md: replace all five fragile runtime cat instructions with a note that the content is already available via imports - test/gh-aw-quality.test.ts: add regression suite 'gh-aw: prompt budget & planning import regression' with 4 tests: * planning-ontology.md is in imports list * planning-policy.md is in imports list * no runtime cat of planning files remains * combined prompt (workflow + all imports) is under 100 KB gh-aw ceiling Measurements: squad.md: 32,196 bytes shared/squad.md: 6,688 bytes shared/planning-ontology.md: 15,231 bytes shared/planning-policy.md: 3,910 bytes Combined: 58,025 bytes (56.7 KB) Headroom: 44,375 bytes (43.3 KB under 100 KB ceiling) All 28 gh-aw quality tests pass. Closes #1684 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: e5d9bcc6-d667-485b-bccb-738bd9842102
🟡 Impact Analysis — PR #1685Risk tier: 🟡 MEDIUM 📊 Summary
🎯 Risk Factors
📦 Modules Affectedroot (1 file)
tests (1 file)
This report is generated automatically for every PR. See #733 for details. |
🛫 PR Readiness Check
PR Scope: 🔧 Infrastructure
|
| Status | Check | Details |
|---|---|---|
| ✅ | Single commit | 1 commit — clean history |
| ✅ | 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 | 1 unresolved Copilot thread(s) — fix and resolve before merging |
| ✅ | CI passing | All checks passing |
Files Changed (2 files, +56 −5)
| File | +/− |
|---|---|
test/gh-aw-quality.test.ts |
+49 −0 |
workflows/squad.md |
+7 −5 |
Total: +56 −5
This check runs automatically on every push. Fix any ❌ items and push again.
See CONTRIBUTING.md and PR Requirements for details.
There was a problem hiding this comment.
Pull request overview
This PR fixes a workflow reliability regression where workflows/squad.md attempted to cat planning files at runtime even though gh-aw imports: are inlined into the prompt (and may not exist as workspace files during execution). It restores the planning docs to the workflow imports: list and adds regression tests to prevent the issue from recurring.
Changes:
- Restores
shared/planning-ontology.mdandshared/planning-policy.mdtoworkflows/squad.mdimports:. - Removes runtime
cat .github/workflows/shared/planning-*.mdinstructions and replaces them with “already imported” guidance. - Adds a regression test suite to validate planning imports, absence of runtime
cat, and prompt-size budget (< 100 KB).
Show a summary per file
| File | Description |
|---|---|
| workflows/squad.md | Re-adds planning docs to imports: and removes fragile runtime cat instructions. |
| test/gh-aw-quality.test.ts | Adds regression tests covering planning imports, no runtime cat, and combined prompt-size budget. |
Review details
Tip
Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
| for (const importPath of imports) { | ||
| const fullPath = join(WORKFLOWS_DIR, importPath); | ||
| if (existsSync(fullPath)) { | ||
| const content = readFileSync(fullPath, 'utf8'); | ||
| totalBytes += Buffer.byteLength(content, 'utf8'); | ||
| } | ||
| } |
FIDO Quality Review — PR #1685 (commit 965170a)Verdict: ✅ APPROVE (Unable to submit formal review as same-user — posting findings as comment per reviewer protocol) Scope VerificationFiles changed: Only Base branch: Independent Verification Results1. Import Resolution ✅All three imported files exist at 2. Runtime
|
Summary
Fixes blocker #1 from the recovery assessment on the compressed dev workflow.
Root cause: The compression PR (#1682) dropped
shared/planning-ontology.mdandshared/planning-policy.mdfrom theimports:list, then compensated with five runtimecat .github/workflows/shared/planning-*.mdinstructions. These are fragile because gh-awimports:inline file content into the prompt before execution — the shared files are not present as workspace files at runtime. Instructing the model tocatthem silently fails.Changes
workflows/squad.mdshared/planning-ontology.mdandshared/planning-policy.mdto theimports:list alongsideshared/squad.mdcat .github/workflows/shared/planning-*.mdinstructions, replaced with notes that the content is already available via importstest/gh-aw-quality.test.tsgh-aw: prompt budget & planning import regression(4 new tests)planning-ontology.mdis in the imports listplanning-policy.mdis in the imports listcatof planning files remains in squad.mdMeasurements
workflows/squad.mdworkflows/shared/squad.mdworkflows/shared/planning-ontology.mdworkflows/shared/planning-policy.mdValidation
git diff --checkclean (no whitespace issues in changed files)gh awnot available in this environment (extension not installed)Closes #1684