swarm.config: refresh the model map to the Claude 5 family and route mechanical tickets to Sonnet by default #210

Open
opened 2026-10-15 02:59:28 +00:00 by ben · 1 comment
Owner

Filed from the 2026-10-14 infrastructure review (Claude Code session on Ben's workstation; four parallel read-only review passes over the root harness). Line anchors are against main at 3e50274.

Symptom

swarm.config:19-30 pins claude-opus-4-8 / claude-sonnet-4-5 / claude-haiku-4-5 for the fleet and claude-opus-5 for heal/report. The Claude 5 family (claude-opus-5-5, claude-sonnet-5-5, claude-haiku-5-5) is current as of 2026-10. tests/model-lib-test.sh:30-35,58-68 and tests/session-runner-test.sh:140,854,917 and tests/swarm-db-test.sh hardcode the old ids.

Proposed change

  • Update SWARM_MODEL_MAP and the defaults; keep the map the ONLY allowlist (fail-fast discipline unchanged).
  • Triage skill: suggest model-sonnet for tickets it classifies as mechanical (docs, test-only, rename), per docs/agents/triage-labels.md ("applying stays a human/triage decision").
  • Tests use the map values from swarm.config instead of literals where the literal is incidental.
  • Note the spend impact in the journal entry; #202 makes it measurable.

needs_human_decision

Fleet default: stay on Opus (quality) or move to Sonnet 5.5 (quota)? Proposed default: Opus for the fleet, Sonnet via label for mechanical tickets — unchanged policy, new ids.

_Filed from the 2026-10-14 infrastructure review (Claude Code session on Ben's workstation; four parallel read-only review passes over the root harness). Line anchors are against `main` at 3e50274._ ## Symptom `swarm.config:19-30` pins `claude-opus-4-8` / `claude-sonnet-4-5` / `claude-haiku-4-5` for the fleet and `claude-opus-5` for heal/report. The Claude 5 family (`claude-opus-5-5`, `claude-sonnet-5-5`, `claude-haiku-5-5`) is current as of 2026-10. `tests/model-lib-test.sh:30-35,58-68` and `tests/session-runner-test.sh:140,854,917` and `tests/swarm-db-test.sh` hardcode the old ids. ## Proposed change - Update `SWARM_MODEL_MAP` and the defaults; keep the map the ONLY allowlist (fail-fast discipline unchanged). - Triage skill: suggest `model-sonnet` for tickets it classifies as mechanical (docs, test-only, rename), per `docs/agents/triage-labels.md` ("applying stays a human/triage decision"). - Tests use the map values from `swarm.config` instead of literals where the literal is incidental. - Note the spend impact in the journal entry; #202 makes it measurable. ## needs_human_decision Fleet default: stay on Opus (quality) or move to Sonnet 5.5 (quota)? Proposed default: Opus for the fleet, Sonnet via label for mechanical tickets — unchanged policy, new ids.

This was generated by AI during triage.

Agent Brief

Category: enhancement

Summary: Refresh SWARM_MODEL_MAP to the current Claude 5-family aliases and wire triage to suggest model-sonnet for mechanical tickets, keeping the map the sole fail-fast allowlist.

Current behavior: The map pins the 4-family (opus-4-8/sonnet-4-5/haiku-4-5) for the fleet and claude-opus-5 for heal/report; tests hardcode those literals. Triage docs say a cheaper model "may be suggested" but nothing automates the suggestion.

Desired behavior: Update SWARM_MODEL, SWARM_MODEL_MAP, and the heal/report tiers to the human-confirmed current aliases, keeping the map the only allowlist and the fail-fast discipline unchanged. Update the triage skill to suggest model-sonnet for tickets it classifies as mechanical (docs-only, test-only, rename), per triage-labels.md (applying stays a triage/human decision). Where a test literal is incidental, read it from swarm.config rather than hardcoding. Note the spend impact in the journal entry.

Key interfaces: swarm.config KEY=value lines (sourceable by bash and parseable by node, unchanged shape); swarm_resolve_model continues to reject any selector off the map LOUD; the triage skill emits a model-<name> suggestion, never auto-applies.

Acceptance criteria:

  • swarm.config carries the confirmed aliases; the default resolver returns the new default and an unknown selector still fails loud.
  • tests/model-lib-test.sh, session-runner-test.sh, swarm-db-test.sh pass against the new ids (reading swarm.config where the literal is incidental).
  • Triage suggests model-sonnet for a mechanical ticket; the suggestion is advisory only.
  • Journal entry records the spend posture.

Out of scope: Changing the triage apply policy (stays human/triage); any per-consumer model override.

Why human

Two named residues an agent cannot discharge. (1) The fleet-default call — stay on Opus (quality) or move to Sonnet (quota) — is the single lever controlling whole-fleet spend and quality; the reporter parked it as a human decision, and it sits squarely on ADR 0174's one-way-door list (non-routine spend / policy judgement). (2) Confirming that the proposed Claude 5-family aliases are the current GA model ids — the offline suite cannot validate a model id, and a wrong id fails loud only at the next worker launch, after the fact.

> *This was generated by AI during triage.* ## Agent Brief **Category:** enhancement **Summary:** Refresh `SWARM_MODEL_MAP` to the current Claude 5-family aliases and wire triage to suggest `model-sonnet` for mechanical tickets, keeping the map the sole fail-fast allowlist. **Current behavior:** The map pins the 4-family (`opus-4-8`/`sonnet-4-5`/`haiku-4-5`) for the fleet and `claude-opus-5` for heal/report; tests hardcode those literals. Triage docs say a cheaper model "may be suggested" but nothing automates the suggestion. **Desired behavior:** Update `SWARM_MODEL`, `SWARM_MODEL_MAP`, and the heal/report tiers to the human-confirmed current aliases, keeping the map the only allowlist and the fail-fast discipline unchanged. Update the triage skill to suggest `model-sonnet` for tickets it classifies as mechanical (docs-only, test-only, rename), per `triage-labels.md` (applying stays a triage/human decision). Where a test literal is incidental, read it from `swarm.config` rather than hardcoding. Note the spend impact in the journal entry. **Key interfaces:** `swarm.config` KEY=value lines (sourceable by bash and parseable by node, unchanged shape); `swarm_resolve_model` continues to reject any selector off the map LOUD; the triage skill emits a `model-<name>` suggestion, never auto-applies. **Acceptance criteria:** - [ ] `swarm.config` carries the confirmed aliases; the default resolver returns the new default and an unknown selector still fails loud. - [ ] `tests/model-lib-test.sh`, `session-runner-test.sh`, `swarm-db-test.sh` pass against the new ids (reading `swarm.config` where the literal is incidental). - [ ] Triage suggests `model-sonnet` for a mechanical ticket; the suggestion is advisory only. - [ ] Journal entry records the spend posture. **Out of scope:** Changing the triage apply policy (stays human/triage); any per-consumer model override. ## Why human Two named residues an agent cannot discharge. (1) The fleet-default call — stay on Opus (quality) or move to Sonnet (quota) — is the single lever controlling whole-fleet spend and quality; the reporter parked it as a human decision, and it sits squarely on ADR 0174's one-way-door list (non-routine spend / policy judgement). (2) Confirming that the proposed Claude 5-family aliases are the current GA model ids — the offline suite cannot validate a model id, and a wrong id fails loud only at the next worker launch, after the fact.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/dev-factory#210
No description provided.