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
TEMPLATE_MANIFEST references Rai-charter.md but file is rai-charter.md (masked by macOS case-insensitivity) #1971
TEMPLATE_MANIFEST declares source: 'Rai-charter.md' (packages/squad-cli/src/cli/core/templates.ts:139-140), but the file on disk is rai-charter.md (lowercase) in all four template locations. It is the only one of 59 manifest sources that does not resolve case-sensitively.
Found while fixing the README casing in #1949; deliberately left out of that docs PR because the fix spans runtime code, tests, and a prompt template.
Why this hasn't been caught
existsSync gives a false pass on macOS, because the filesystem is case-insensitive. A check that reads directory entries and compares exact basenames tells the truth:
total 59 case-sensitively missing 1
MISSING: Rai-charter.md
This is exactly the failure mode the codebase already warns about in its own comment at packages/squad-sdk/src/config/init.ts:1141-1151 — mixed-case lookups missing on case-sensitive filesystems (Linux CI), referencing the regression #1299 was fixing.
Blast radius
The wrong casing is load-bearing in several places, which is why this needs its own PR:
packages/squad-cli/src/cli/core/templates.ts:139-140 — manifest source and destination
Note the destination directory agents/Rai/charter.md is intentionally capitalized (dirName: 'Rai') and should stay that way — only the source filename is wrong.
Suggested durable fix
Add a guard asserting every manifest source exists case-sensitively (read readdirSync entries, compare exact basenames — do not use existsSync, which is what let this through). That single test would have caught this and prevents recurrence across all 59 entries.
I considered adding that guard in #1949 but it would have failed on this pre-existing entry and required an allowlist, so it belongs here with the fix.
Acceptance criteria
Manifest source corrected to rai-charter.md
upgrade.ts:1027templateFile corrected
test/template-routing.test.ts updated to pin the correct mapping
Prompt template and skill prose references corrected
Guard test added: every TEMPLATE_MANIFEST source resolves case-sensitively (not via existsSync)
Verified on a case-sensitive filesystem (Linux CI), not just macOS
Activity
bradygaster commentedon Sep 11, 2026
Closing as completed following backlog cleanup: the associated fix, validation, or tracking work has been completed.