René's URL Explorer Experiment


Title: CLI casting bypasses CastingEngine template system · Issue #342 · github/squad · GitHub

Open Graph Title: CLI casting bypasses CastingEngine template system · Issue #342 · github/squad

X Title: CLI casting bypasses CastingEngine template system · Issue #342 · github/squad

Description: Problem The CastingEngine class (packages/squad-sdk/src/casting/casting-engine.ts) defines curated universe templates with: Character pools with specific names Personality backstories per character Preferred role assignments Universe cap...

Open Graph Description: Problem The CastingEngine class (packages/squad-sdk/src/casting/casting-engine.ts) defines curated universe templates with: Character pools with specific names Personality backstories per character...

X Description: Problem The CastingEngine class (packages/squad-sdk/src/casting/casting-engine.ts) defines curated universe templates with: Character pools with specific names Personality backstories per character...

Opengraph URL: https://github.com/github/squad/issues/342

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CLI casting bypasses CastingEngine template system","articleBody":"## Problem\n\nThe `CastingEngine` class (`packages/squad-sdk/src/casting/casting-engine.ts`) defines curated universe templates with:\n- Character pools with specific names\n- Personality backstories per character\n- Preferred role assignments\n- Universe capacity limits\n\nHowever, when casting a team via Copilot CLI (`squad init`), the engine is **completely bypassed**:\n\n1. **`packages/squad-cli/src/cli/shell/coordinator.ts` (lines 42-86)** — `buildInitModePrompt()` hardcodes a prompt that lets the LLM pick *any* universe (e.g., \"Alien, The Usual Suspects, Blade Runner, The Matrix, Heat, Star Wars\"). No reference to `CastingEngine`, no universe allowlist enforcement.\n\n2. **`packages/squad-cli/src/cli/core/cast.ts` (lines 218-280)** — `generateCharter()` uses regex-based `personalityForRole()` to assign generic personalities by role type, ignoring the detailed per-character backstories in the template system.\n\n3. **`CastingEngine.castTeam()` is never called** during the init flow.\n\n## Impact\n\n- The `CastingEngine` class is effectively dead code when using Copilot CLI\n- No enforcement of universe allowlist — the LLM can suggest universes that don't exist in the template system\n- No character name pool — names are generated arbitrarily instead of selected from curated characters\n- Charter personalities are generic (regex-matched by role) instead of universe-specific\n\n## Expected Behavior\n\nThe CLI init flow should use `CastingEngine` to:\n1. Select a universe from the allowlist (scored by size_fit + shape_fit + resonance_fit)\n2. Allocate character names from that universe's character pool\n3. Use the template's personality backstories when generating charters\n\n## Files\n\n- **Template system (unused):** `packages/squad-sdk/src/casting/casting-engine.ts`\n- **Hardcoded init prompt:** `packages/squad-cli/src/cli/shell/coordinator.ts:42-86`\n- **Hardcoded charter gen:** `packages/squad-cli/src/cli/core/cast.ts:218-280`\n- **Init flow entry:** `packages/squad-cli/src/cli/shell/index.ts:890-962`\n","author":{"url":"https://github.com/jsturtevant","@type":"Person","name":"jsturtevant"},"datePublished":"2026-03-10T23:35:41Z","url":"https://github.com/github/squad/issues/342"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f13cb504-8b49-05a6-db3a-3b9d197ddf1b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA9F4:1C6C3E:1C1C2F0:2502D7F:6B01539C
html-safe-nonce1f536f32d6fe44f5a36e7a8c280be28ecce282ebc0cfcce91a981bc95af19717
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUY0OjFDNkMzRToxQzFDMkYwOjI1MDJEN0Y6NkIwMTUzOUMiLCJ2aXNpdG9yX2lkIjoiMjI1OTMzNjQ5NTI0MjQ5ODk3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd997534eb6db1c4b1068fdc683b1349e895a2e0a5211c3236cd531a89ff8fba2
hovercard-subject-tagissue:4054779270
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/squad/342/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e747bbee335f3b8aa27f332a293a415098a7cdd193b88fcd0ee77d8149971cd6/github/squad/issues/342
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e747bbee335f3b8aa27f332a293a415098a7cdd193b88fcd0ee77d8149971cd6/github/squad/issues/342
og:image:altProblem The CastingEngine class (packages/squad-sdk/src/casting/casting-engine.ts) defines curated universe templates with: Character pools with specific names Personality backstories per character...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejsturtevant
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/github/squad git https://github.com/github/squad.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id1151205052
octolytics-dimension-repository_nwogithub/squad
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1151205052
octolytics-dimension-repository_network_root_nwogithub/squad
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/github/squad/issues/342#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fsquad%2Fissues%2F342
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fsquad%2Fissues%2F342
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fsquad
Reloadhttps://github.com/github/squad/issues/342
Reloadhttps://github.com/github/squad/issues/342
Reloadhttps://github.com/github/squad/issues/342
githubhttps://github.com/github
squadhttps://github.com/github/squad
Codehttps://github.com/github/squad
Issues108 (108)https://github.com/github/squad/issues
Pull requests26 (26)https://github.com/github/squad/pulls
Discussionshttps://github.com/github/squad/discussions
Actionshttps://github.com/github/squad/actions
Projectshttps://github.com/github/squad/projects
Security and qualityhttps://github.com/github/squad/security
Insightshttps://github.com/github/squad/insights
https://github.com/github/squad
New issuehttps://github.com/login?return_to=https://github.com/github/squad/issues/342
New issuehttps://github.com/login?return_to=https://github.com/github/squad/issues/342
CLI casting bypasses CastingEngine template systemhttps://github.com/github/squad/issues/342#top
go:needs-researchNeeds investigationhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22go%3Aneeds-research%22
priority:p1This sprinthttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22priority%3Ap1%22
squadSquad triage inbox — Lead will assign to a memberhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22squad%22
type:bugSomething brokenhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
https://github.com/jsturtevant
jsturtevanthttps://github.com/jsturtevant
on Mar 10, 2026https://github.com/github/squad/issues/342#issue-4054779270
zeierhttps://github.com/zeier
on Mar 11, 2026https://github.com/github/squad/issues/342#event-23463835440
feat: smarter work division with multi-agent dispatch (github#342) (g…https://github.com/zeier/squad/commit/9b7db2ad700558522269d7a3779b6c95ab968e5e
github#342https://github.com/github/squad/issues/342
g…https://github.com/github/squad/issues/479
9b7db2ahttps://github.com/zeier/squad/commit/9b7db2ad700558522269d7a3779b6c95ab968e5e
bradygasterhttps://github.com/bradygaster
squadSquad triage inbox — Lead will assign to a memberhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22squad%22
squad:fensterhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22squad%3Afenster%22
priority:p1This sprinthttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22priority%3Ap1%22
type:bugSomething brokenhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
on Mar 13, 2026https://github.com/github/squad/issues/342#event-23559350997
github-actionshttps://github.com/apps/github-actions
squad:dskyhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22squad%3Adsky%22
go:needs-researchNeeds investigationhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22go%3Aneeds-research%22
on Mar 13, 2026https://github.com/github/squad/issues/342#event-23559356026
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Mar 13, 2026https://github.com/github/squad/issues/342#issuecomment-4057849736
GitHub Actionshttps://help.github.com/en/actions
#342https://github.com/github/squad/issues/342
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Mar 13, 2026https://github.com/github/squad/issues/342#issuecomment-4057849950
GitHub Actionshttps://help.github.com/en/actions
bradygasterhttps://github.com/bradygaster
squad:eecomhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22squad%3Aeecom%22
squad:dskyhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22squad%3Adsky%22
squad:fensterhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22squad%3Afenster%22
on Mar 13, 2026https://github.com/github/squad/issues/342#event-23560339655
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Mar 13, 2026https://github.com/github/squad/issues/342#issuecomment-4058728941
GitHub Actionshttps://help.github.com/en/actions
#342https://github.com/github/squad/issues/342
bradygasterhttps://github.com/bradygaster
on Mar 15, 2026https://github.com/github/squad/issues/342#event-23587059568
Wire CastingEngine into CLI init flowhttps://github.com/github/squad/commit/c0ab0e1ed2803702f218afbd5b4834f96f3a7ce5
https://docs.github.com/articles/closing-issues-via-commit-messages
c0ab0e1https://github.com/github/squad/commit/c0ab0e1ed2803702f218afbd5b4834f96f3a7ce5
Wire CastingEngine into CLI init flow (#417)https://github.com/github/squad/commit/69dc8563d477cca49646d7c33e28d4aeba063378
#417https://github.com/github/squad/pull/417
https://docs.github.com/articles/closing-issues-via-commit-messages
69dc856https://github.com/github/squad/commit/69dc8563d477cca49646d7c33e28d4aeba063378
https://github.com/williamhallatt
williamhallatthttps://github.com/williamhallatt
on Mar 16, 2026https://github.com/github/squad/issues/342#issuecomment-4064831215
#417https://github.com/github/squad/pull/417
#417https://github.com/github/squad/pull/417
#417https://github.com/github/squad/pull/417
https://github.com/bradygaster
bradygasterhttps://github.com/bradygaster
on Mar 16, 2026https://github.com/github/squad/issues/342#issuecomment-4067171850
#417https://github.com/github/squad/pull/417
bradygasterhttps://github.com/bradygaster
completedhttps://github.com/github/squad/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Mar 16, 2026https://github.com/github/squad/issues/342#event-23605049518
bradygasterhttps://github.com/bradygaster
squad:eecomhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22squad%3Aeecom%22
on Sep 11, 2026https://github.com/github/squad/issues/342#event-31000828246
Sign up for freehttps://github.com/signup?return_to=https://github.com/github/squad/issues/342
Sign in to commenthttps://github.com/login?return_to=https://github.com/github/squad/issues/342
go:needs-researchNeeds investigationhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22go%3Aneeds-research%22
priority:p1This sprinthttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22priority%3Ap1%22
squadSquad triage inbox — Lead will assign to a memberhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22squad%22
type:bugSomething brokenhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.