Skip to content

fix: align casting universe count with reality, create casting-reference.md (#459)#460

Merged
bradygaster merged 4 commits intobradygaster:devfrom
diberry:fix/casting-universe-mismatch-459
Mar 20, 2026
Merged

fix: align casting universe count with reality, create casting-reference.md (#459)#460
bradygaster merged 4 commits intobradygaster:devfrom
diberry:fix/casting-universe-mismatch-459

Conversation

@diberry
Copy link
Copy Markdown
Collaborator

@diberry diberry commented Mar 19, 2026

Summary

Fixes #459 — casting universe mismatch where squad.agent.md claimed 31 universes but only 14-15 existed.

Changes

  1. Fixed universe count — updated '31 universes' → '15 universes' in all 3 copies of squad.agent.md (.squad-templates/, templates/, .github/agents/)
  2. Created casting-reference.md — the template file referenced by squad.agent.md for the full universe table, selection algorithm, and casting state schemas. This file was referenced but never existed.
  3. Restored Futurama — dev branch had regressed to 14 universes (main has 15 with Futurama). Restored with capacity 12.
  4. Added regression tests (test/template-sync.test.ts) — 5 test groups verify:
    • Universe counts match across all 3 squad.agent.md files and casting-policy.json
    • casting-reference.md files exist in both template directories
    • casting-policy.json is identical across template dirs
    • Universe allowlist and capacity entries are always in sync

User impact

This bug caused issues during squad init on v0.8.25 — the coordinator references a missing casting-reference.md and sees a count mismatch (31 claimed vs 14-15 actual), which disrupts the init flow.

How this was found

Dina Berry's squad ran a docs gap analysis of recent PRs and hit this during squad init on a fresh repo.

@diberry
Copy link
Copy Markdown
Collaborator Author

diberry commented Mar 19, 2026

Additional context: This bug causes real problems when starting a new squad — the coordinator references a missing \casting-reference.md\ and sees a count mismatch (31 claimed vs 14-15 actual), which disrupts the init flow. Reported by Dina Berry who hit it on v0.8.25 with a fresh repo.

Copilot AI added 3 commits March 19, 2026 12:02
…nce.md (bradygaster#459)

- Create casting-reference.md (referenced by squad.agent.md but never existed)
- Update '31 universes' claim to match actual count (15) in casting-policy.json
- Restore Futurama universe on dev (regression)
- Keep .squad-templates/ and templates/ in sync

Fixes bradygaster#459

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@diberry diberry force-pushed the fix/casting-universe-mismatch-459 branch from b925c7b to 50cf1de Compare March 19, 2026 19:03
@diberry
Copy link
Copy Markdown
Collaborator Author

diberry commented Mar 19, 2026

Ready for merge — squad obo dina

  • Fixed casting universe count (31 → 15) across all 3 squad.agent.md copies
  • Created casting-reference.md (was referenced but never existed)
  • Normalized Futurama naming (removed '(custom)' suffix, capacity 12)
  • Added regression tests (test/template-sync.test.ts) — 5 test groups prevent future drift
  • Rebased against upstream dev, conflicts resolved
  • CI green: docs-quality ✅, test ✅
  • Reviewed and approved by Keaton (Lead)
  • Broader template directory audit tracked in test: audit all template directories for duplicated files and add sync tests #461

@bradygaster bradygaster merged commit 814133d into bradygaster:dev Mar 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants