Skip to content

[External State] squad cast does not follow externalized state for agent discovery #1399

Closed

Description

@dat-intellis

Summary

squad cast does not follow externalized state markers for project agent discovery.

Evidence

  • packages/squad-cli/src/cli/commands/cast.ts:22,31-36
    • uses resolveSquadPaths(cwd), then LocalAgentSource(agentBase)
  • packages/squad-sdk/src/config/agent-source.ts:36,111-115
    • LocalAgentSource resolves from <basePath>/.squad/agents
  • packages/squad-sdk/src/resolution.ts:368-372
    • resolveSquadPaths resolves teamDir from teamRoot (not external stateLocation/projectKey)
  • packages/squad-cli/src/cli/commands/externalize.ts:101-103
    • externalize sets teamRoot: '.' + stateLocation: 'external'

Expected

Agent discovery for cast should resolve through effective state location when externalized.

Actual

Discovery path is derived from team-root semantics and can remain repo-local.

Activity

  1. added a commit that references this issue on Jul 13, 2026
    92589fa
  2. added a commit that references this issue on Aug 13, 2026
    54f699f
  3. added
    stalled-initiativeWork area that was started but never completed — cut, close, finish, or reprioritize
    on Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stalled-initiativeWork area that was started but never completed — cut, close, finish, or reprioritize

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions