Skip to content

Check that Squadron is gone from code, docs and agent text (on or after 2026-10-28) #476

Done

Description

@Jacksondr5

What to do

On or after 2026-10-28, search the repository for "squadron" (any case) and confirm it is gone from everywhere except the places listed below. Fix or file anything that is left.

This follows the decision to retire Squadrons and fold them into projects (#412). The removal lands as a stack of PRs. This issue is the check that nothing was missed and that nothing crept back in.

git grep -n -i squadron -- . ':!docs/j5/worklog'

Where the word is allowed to stay

  • Old database migrations (apps/server/src/j5/a2a/migrations/ 001 to 029). They are history and must keep running for installs upgrading from an older version.
  • The migration that re-keys the ledger (030), which reads the old tables in order to convert them.
  • The record of old Squadron ids and names that migration keeps.
  • Readers for old messages. Stored conversations still contain "in squadron …" headers and squadron_id / squadron_name identity lines, and the app must keep displaying them.
  • The worklog (docs/j5/worklog/), as history.

Anything else is a miss.

Where it was on 2026-10-07

Counted at the tip of the client stack (#457, 288c0e6d0a), before the server and docs work. Use these as a checklist.

Seen by a person

  • The playbook author picker, on web (apps/web/src/j5/playbooks/PlaybookLibrarySettings.tsx) and mobile (apps/mobile/src/j5/playbooks/PlaybookLibrarySettingsScreen.tsx).
  • The Fleet page and Inbox, which fall back to a Squadron's name when a row's project cannot be found.
  • The marketing site (apps/marketing/src/pages/index.astro, src/layouts/Layout.astro).
  • The command-line tool (apps/server/src/j5/cli/a2a.ts): the --squadron flag and its output.

Seen by an agent

  • Tool descriptions: list_participants, spawn_agent, stop_agent, list_squadrons, join_squadron, and the fork, merge-back and organize tools (apps/server/src/j5/a2a/mcp/, envelopes.v1.json).
  • Message headers ("[Cross-agent message from … in squadron …]") and the identity block a spawned agent receives.
  • Error and next-step messages in about 20 server files.
  • apps/server/src/provider/T3OrchestrationInstructions.ts.

Docs

  • docs/j5/product/ (19 files), docs/user/ (4), docs/j5/runbooks/ (3), docs/j5/process/ (2).
  • AGENTS.md, FORK.md, and apps/server/src/j5/a2a/README.md.

Code only

  • apps/server/src: 82 files. apps/web/src: 16. packages/contracts/src: 3. packages/client-runtime/src: 6. Tests: 97 files.
  • A comment in scripts/j5/dogfood-local.sh.

Also check

Not wanted

No lint rule or CI check for this (Jackson, 2026-10-07). It is a one-time manual check.

🤖 Generated with Claude Code

Activity

  1. Jacksondr5 commented on Oct 18, 2026

    @Jacksondr5
    OwnerAuthor

    For the sweep: these leftovers are deliberate but missing from the allowed list above. Don't count them as misses.

    • The j5Squadrons capability key (packages/contracts/src/environment.ts, packages/contracts/src/j5.ts, packages/client-runtime/src/j5/serverCompatibility.ts and their tests). A new server reports it as false, so an older client shows its J5 views as unsupported, and a new client uses it to recognise a J5 server that hasn't been updated (FORK cases 34 and 56, register D29).
    • Migration numbers moved: the re-key is 031, not 030, and 032 renames the stored peer roster. Both read the old names.
    • Tests that build the old tables for the migration and snapshot paths (LifecycleService.test.ts, MigrationSnapshot.test.ts), and SendService.test.ts, which asserts the old error text is gone.
    • The migration-refusal runbook section in docs/j5/runbooks/dogfood-runtime.md, which the 031 error message names, and the retired entries and History lines in docs/j5/product/upstream.md and FORK.md.
    • fa-phoenix_squadron inside upstream's vendored libghostty binary (apps/mobile/modules/t3-terminal/Vendor), unchanged from the pin.

    — Claude Opus 5.5, on Jackson's behalf

  2. bryantderosier commented on Dec 1, 2026

    @bryantderosier
    Collaborator

    Ran the sweep today (2026-12-01) on j5/main at 089bc2bb33, and it's clean.

    git grep -i squadron outside docs/j5/worklog turns up 29 files. Every one is on the allowed list above or in the 2026-10-18 addition:

    • Old migrations (001–032), Migrations.ts, and the tests that build the old tables (LifecycleService.test.ts, MigrationSnapshot.test.ts, Migrations.test.ts, SendService.test.ts)
    • The j5Squadrons capability key (environment.ts, j5.ts, serverCompatibility.ts, plus their tests and ServerEnvironment.test.ts, readSources.test.ts)
    • The reader for old message headers (userMessagePresentation.ts, which matches in (?:project|squadron)), and the old identity lines in SpawnBrief.test.tsx
    • Retired entries and History lines in upstream.md, FORK.md and the other product docs, the glossary's "Not a concept" row, and the migration-refusal section in dogfood-runtime.md
    • fa-phoenix_squadron in the vendored libghostty binary

    Open PRs: #317 is the only one that still adds Squadron code, and it already has the superseded heads-up from 2026-10-08. #1320 covers triaging it.

    Open issues: #361, #495 and #497 mention Squadron, but only in history notes, not as how the work is framed. Closing.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions