Skip to content

fix: SDK init trio — config sync, Ralph in init, remove @copilot routing (#337, #338, #339)#411

Merged
bradygaster merged 1 commit intodevfrom
squad/337-339-sdk-init-trio
Mar 15, 2026
Merged

fix: SDK init trio — config sync, Ralph in init, remove @copilot routing (#337, #338, #339)#411
bradygaster merged 1 commit intodevfrom
squad/337-339-sdk-init-trio

Conversation

@bradygaster
Copy link
Copy Markdown
Owner

Summary

Fixes three related SDK initialization bugs in one surgical PR:

#339 — Remove @copilot from routing.md templates

#338 — Ralph missing from init agents array

  • Added Ralph to the \InitOptions.agents\ array alongside Scribe in CLI init
  • Ralph's template existed in SDK but was never included in the init payload

#337 — Config sync on member add (addAgentToConfig never called)

  • Wired \�ddAgentToConfig()\ in \cast.ts\ after casting agents
  • The function existed in SDK \onboarding.ts\ but was never invoked during cast flow
  • Now syncs all new agents into \squad.config.ts\ routing rules

Upgrade Notes

Users upgrading from ≤0.8.25:

  • \squad init\ now includes Ralph in the initial agent set automatically
  • Routing templates no longer reference @copilot\ — existing routing.md files won't change unless re-initialized
  • New team members added via cast will now be synced to \squad.config.ts\ routing rules

Test Results

  • ✅ 75 init tests pass (init.test.ts, init-sdk.test.ts, init-autocast.test.ts)
  • ✅ 29 Ralph triage tests pass
  • ✅ 16 routing tests pass
  • ✅ 45 casting tests pass
  • ✅ Full build clean (0 errors)

Closes #337, closes #338, closes #339

…e @copilot routing

- #339: Remove all @copilot references from routing.md templates (4 copies)
  - Removed @copilot from routing table, issue routing section, triage
    guidance section, and rule #8
- #338: Add Ralph to the agents array in CLI init alongside Scribe
  - Ralph was created during init but never listed in InitOptions.agents
- #337: Wire addAgentToConfig() in cast.ts after casting agents
  - Function existed in SDK but was never called during cast flow
  - Now syncs all new agents into squad.config.ts routing rules

Closes #337, closes #338, closes #339

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bradygaster bradygaster force-pushed the squad/337-339-sdk-init-trio branch from 5c6098d to a24863d Compare March 15, 2026 14:18
@bradygaster bradygaster merged commit 0096265 into dev Mar 15, 2026
1 check passed
@bradygaster bradygaster deleted the squad/337-339-sdk-init-trio branch March 15, 2026 14:22
diberry pushed a commit to diberry/squad that referenced this pull request Mar 19, 2026
…er#429, bradygaster#424, bradygaster#417, bradygaster#415, bradygaster#412, bradygaster#411)

Documents features and changes from recent PRs that shipped without
corresponding docs updates:

- bradygaster#429: Update model catalog with Sonnet 4.6, Opus 4.6, GPT-5.4 defaults
- bradygaster#424: Document --sdk switch for TypeScript config generation
- bradygaster#412: Document --roles flag for opt-in base roles
- bradygaster#411: Note Ralph in init + @copilot routing template removal
- bradygaster#442: Add Session Recovery skill documentation
- bradygaster#417: Document CastingEngine character casting
- bradygaster#415: Add rework rate OTEL metrics reference

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
diberry pushed a commit to diberry/squad that referenced this pull request Mar 19, 2026
…er#429, bradygaster#424, bradygaster#417, bradygaster#415, bradygaster#412, bradygaster#411)

Documents features and changes from recent PRs that shipped without
corresponding docs updates:

- bradygaster#429: Update model catalog with Sonnet 4.6, Opus 4.6, GPT-5.4 defaults
- bradygaster#424: Document --sdk switch for TypeScript config generation
- bradygaster#412: Document --roles flag for opt-in base roles
- bradygaster#411: Note Ralph in init + @copilot routing template removal
- bradygaster#442: Add Session Recovery skill documentation
- bradygaster#417: Document CastingEngine character casting
- bradygaster#415: Add rework rate OTEL metrics reference

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
bradygaster pushed a commit that referenced this pull request Mar 20, 2026
* docs: fill content gaps from 7 recent PRs (#442, #429, #424, #417, #415, #412, #411)

Documents features and changes from recent PRs that shipped without
corresponding docs updates:

- #429: Update model catalog with Sonnet 4.6, Opus 4.6, GPT-5.4 defaults
- #424: Document --sdk switch for TypeScript config generation
- #412: Document --roles flag for opt-in base roles
- #411: Note Ralph in init + @copilot routing template removal
- #442: Add Session Recovery skill documentation
- #417: Document CastingEngine character casting
- #415: Add rework rate OTEL metrics reference

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix: remove duplicate gpt-5.1-codex-mini from Fast/Cheap tier

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant