You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: audit all template directories for duplicated files and add sync tests #461
PR #460 review revealed that template files exist in more locations than the fix covered. The repo has multiple template directories that must stay in sync, but there's no comprehensive test ensuring parity across all of them.
.squad-templates/, templates/ (may need to be in package dirs too)
PR #460 fixed 3/5 squad.agent.md copies and 2/4 casting-policy.json copies — the packages/ dirs were missed.
Work needed
Full audit — scan ALL template directories and catalog every file that exists in multiple locations. Determine which files SHOULD be identical vs legitimately different.
Expand test/template-sync.test.ts — cover all locations found in the audit, not just .squad-templates/, templates/, and .github/agents/.
Fix robustness issues in existing tests:
Replace process.cwd() with import.meta.url-based resolution
Strengthen extractUniverseCount regex to anchor matches
Add content parity tests for casting-reference.md (not just existence)
Add test that casting-reference.md universe table count matches policy
Fix the missed files — update packages/squad-cli/templates/ and packages/squad-sdk/templates/ to match
Found by
Dina Berry's squad (review of PRs #458 and #460) — squad obo dina
Keaton (Lead) analyzed the template duplication and found:
The copies are intentional — npm distribution requires each package to bundle its own templates. The bug wasn't the duplication, it was the lack of a sync mechanism.
Recommended approach: Single source (.squad-templates/) + a build-time copy script that propagates to templates/, packages/squad-cli/templates/, and packages/squad-sdk/templates/. Parity tests as defense-in-depth.
Current state: PR #462 manually syncs the files and adds parity tests, but does NOT add the build-time copy script. It fixes the immediate drift but doesn't prevent future drift at the source. Brady should decide if:
Issue:#461 — test: audit all template directories for duplicated files and add sync tests Assigned to: FIDO (Quality Owner) Reason: Issue relates to testing/quality work
@copilot evaluation: 🔴 Not suitable — issue involves work outside the coding agent's capability profile.
Issue:#461 — test: audit all template directories for duplicated files and add sync tests
Procedures will pick this up in the next Copilot session.
For Copilot coding agent: If enabled, this issue will be worked automatically.
Otherwise, start a Copilot session and say: Procedures, work on issue #461
Activity
fix: audit template dirs, sync package templates, expand tests (githu…
docs: update fenster history and decision for github#461
diberry commentedon Mar 19, 2026
Architecture recommendation — squad obo dina
Keaton (Lead) analyzed the template duplication and found:
The copies are intentional — npm distribution requires each package to bundle its own templates. The bug wasn't the duplication, it was the lack of a sync mechanism.
Recommended approach: Single source (
.squad-templates/) + a build-time copy script that propagates totemplates/,packages/squad-cli/templates/, andpackages/squad-sdk/templates/. Parity tests as defense-in-depth.Current state: PR #462 manually syncs the files and adds parity tests, but does NOT add the build-time copy script. It fixes the immediate drift but doesn't prevent future drift at the source. Brady should decide if:
The parity tests in #462 are valuable either way — they catch drift whether the copy step is manual or automated.
feat: add build-time template sync script (github#461)
test: expand template-sync coverage per review (github#461)
test: add template directory sync and casting consistency tests (gith…
github-actions commentedon Mar 20, 2026
🏗️ Squad Triage — Flight (Lead)
Issue: #461 — test: audit all template directories for duplicated files and add sync tests
Assigned to: FIDO (Quality Owner)
Reason: Issue relates to testing/quality work
@copilot evaluation: 🔴 Not suitable — issue involves work outside the coding agent's capability profile.
Team roster:
squad:flightsquad:proceduressquad:eecomsquad:fidosquad:paosquad:capcomsquad:controlsquad:surgeonsquad:boostersquad:gncsquad:networksquad:retrosquad:incosquad:guidosquad:telemetrysquad:voxsquad:dskysquad:simssquad:handbooksquad:ralphsquad:copilotgithub-actions commentedon Mar 20, 2026
📋 Assigned to FIDO (Quality Owner)
Issue: #461 — test: audit all template directories for duplicated files and add sync tests
FIDO will pick this up in the next Copilot session.
github-actions commentedon Mar 20, 2026
📋 Assigned to Procedures (Prompt Engineer)
Issue: #461 — test: audit all template directories for duplicated files and add sync tests
Procedures will pick this up in the next Copilot session.
fix: audit template dirs, sync package templates, expand tests (githu…
docs: update fenster history and decision for github#461
feat: add build-time template sync script (github#461)
test: expand template-sync coverage per review (github#461)
fix: audit template dirs, sync package templates, expand tests (#461) (…
fix: update triage help text to reflect actual watch behavior (github…