From 3c6768089fbdb06a19937e9c6c1e6ed22296124f Mon Sep 17 00:00:00 2001 From: justsisyphus Date: Tue, 20 Jan 2026 15:24:31 +0900 Subject: [PATCH] feat(migration): add orchestrator-sisyphus to atlas mapping --- src/shared/migration.test.ts | 17 ++++++++++++++++- src/shared/migration.ts | 4 ++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/shared/migration.test.ts b/src/shared/migration.test.ts index aa6593cc5..3a1bfc89e 100644 --- a/src/shared/migration.test.ts +++ b/src/shared/migration.test.ts @@ -64,7 +64,7 @@ describe("migrateAgentNames", () => { // #then: Case-insensitive lookup should migrate correctly expect(migrated["Sisyphus"]).toEqual({ model: "test" }) expect(migrated["Prometheus (Planner)"]).toEqual({ prompt: "test" }) - expect(migrated["orchestrator-sisyphus"]).toEqual({ model: "openai/gpt-5.2" }) + expect(migrated["atlas"]).toEqual({ model: "openai/gpt-5.2" }) }) test("passes through unknown agent names unchanged", () => { @@ -80,6 +80,21 @@ describe("migrateAgentNames", () => { expect(changed).toBe(false) expect(migrated["custom-agent"]).toEqual({ model: "custom/model" }) }) + + test("migrates orchestrator-sisyphus to atlas", () => { + // #given: Config with legacy orchestrator-sisyphus agent name + const agents = { + "orchestrator-sisyphus": { model: "anthropic/claude-opus-4-5" }, + } + + // #when: Migrate agent names + const { migrated, changed } = migrateAgentNames(agents) + + // #then: orchestrator-sisyphus should be migrated to atlas + expect(changed).toBe(true) + expect(migrated["atlas"]).toEqual({ model: "anthropic/claude-opus-4-5" }) + expect(migrated["orchestrator-sisyphus"]).toBeUndefined() + }) }) describe("migrateHookNames", () => { diff --git a/src/shared/migration.ts b/src/shared/migration.ts index 28bacb859..70033ef6d 100644 --- a/src/shared/migration.ts +++ b/src/shared/migration.ts @@ -20,7 +20,7 @@ export const AGENT_NAME_MAP: Record = { "frontend-ui-ux-engineer": "frontend-ui-ux-engineer", "document-writer": "document-writer", "multimodal-looker": "multimodal-looker", - "orchestrator-sisyphus": "orchestrator-sisyphus", + "orchestrator-sisyphus": "atlas", } export const BUILTIN_AGENT_NAMES = new Set([ @@ -34,7 +34,7 @@ export const BUILTIN_AGENT_NAMES = new Set([ "Metis (Plan Consultant)", "Momus (Plan Reviewer)", "Prometheus (Planner)", - "orchestrator-sisyphus", + "atlas", "build", ])