Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

test(backend): Super Tab integration tests use real Reviewer and Builder models (25 failures on main) (#2335)

0xken1549dd8fb1e429
diff --git a/backend/integration/superTabBuddies.test.ts b/backend/integration/superTabBuddies.test.ts
index a6568df56..2c2f50d85 100644
--- a/backend/integration/superTabBuddies.test.ts
+++ b/backend/integration/superTabBuddies.test.ts
@@ -244,10 +244,10 @@ describe('a Buddy through the store', () => {
const group = String((await f.execute({ type: 'conversation.create', projectId: 'lead', title: 'Offline sync', brief: 'Keep edits.',
checks: [{ description: 'Edits survive a restart', independent: false }] })).result.conversationId)
const builder = String((await f.execute({ type: 'agent.add', conversationId: group, machineId: 'owner-mac', harnessId: randomUUID(), name: 'Builder',
- configuration: config, lead: false })).result.agentId)
+ configuration: { ...config, model: 'opus' }, lead: false })).result.agentId)
const decision = { assessment: { difficulty: 'low', risk: 'low', why: 'Small task.' },
- candidates: [{ id: 'c0', kind: 'new', machineId: 'owner-mac', engine: 'claude', model: 'fixture-model', effort: 'high',
- quality: 2, cost: 2, title: 'New agent on Kens-MacBook-Pro.local', label: 'New agent' }],
+ candidates: [{ id: 'c0', kind: 'new', machineId: 'owner-mac', engine: 'claude', model: 'opus', effort: 'high',
+ quality: 3, cost: 3, title: 'New agent on Kens-MacBook-Pro.local', label: 'New agent' }],
excluded: [], floor: 1, notes: false, pick: 'c0', via: 'only', p: null, belowFloor: false, why: 'Only candidate.' }
const routeDecisionId = String((await f.execute({ type: 'route.record', conversationId: group, decision } as Command, owner, f.lead)).result.routeDecisionId)
await f.execute({ type: 'work.assign', conversationId: group, agentId: builder, routeDecisionId, overrideReason: 'It has the context.' } as Command, owner, f.lead)
diff --git a/backend/integration/superTabBuddyProbes.test.ts b/backend/integration/superTabBuddyProbes.test.ts
index 358f7e708..f6f973760 100644
--- a/backend/integration/superTabBuddyProbes.test.ts
+++ b/backend/integration/superTabBuddyProbes.test.ts
@@ -86,8 +86,8 @@ describe('security review 1 of #2115: a Buddy\'s reads, probed by two people', (
const f = await swarm(), {agentId} = await buddy(f)
const group = String((await f.execute({type:'conversation.create', projectId:'lead', title:'Routing privacy probe', brief:'', checks:[]})).result.conversationId)
const decision:any = { assessment:{difficulty:'low',risk:'low',why:'Small task'},
- candidates:[{id:'c0',kind:'new',machineId:'owner-mac',engine:'claude',model:'fixture-model',effort:'high',quality:2,cost:2,
- title:'Engineer · Claude fixture-model high · OWNER-PRIVATE-HOST',label:'Candidate on OWNER-PRIVATE-HOST'}],
+ candidates:[{id:'c0',kind:'new',machineId:'owner-mac',engine:'claude',model:'opus',effort:'high',quality:3,cost:3,
+ title:'Engineer · Claude opus high · OWNER-PRIVATE-HOST',label:'Candidate on OWNER-PRIVATE-HOST'}],
excluded:[{title:'OTHER-PRIVATE-HOST',reason:'Owner rule: do not use this machine'}], floor:1,notes:false,pick:'c0',via:'only',p:null,belowFloor:false,why:'Only candidate'}
const id=String((await f.execute({type:'route.record',conversationId:group,decision},owner,f.lead)).result.routeDecisionId)
expect(JSON.stringify(await f.store.routeDecision(owner,f.tab,id,f.lead))).toContain('OWNER-PRIVATE-HOST')
@@ -251,8 +251,8 @@ describe('a Buddy and threads', () => {
const f = await swarm(), { agentId } = await buddy(f)
const group = String((await f.execute({ type: 'conversation.create', projectId: 'lead', title: 'Routed task', brief: '', checks: [] })).result.conversationId)
const decision: any = { assessment: { difficulty: 'low', risk: 'low', why: 'Small task' },
- candidates: [{ id: 'c0', kind: 'new', machineId: 'owner-mac', engine: 'claude', model: 'fixture-model', effort: 'high', quality: 2, cost: 2,
- title: 'Engineer · Claude fixture-model high · OWNER-PRIVATE-HOST', label: 'Candidate on OWNER-PRIVATE-HOST' }],
+ candidates: [{ id: 'c0', kind: 'new', machineId: 'owner-mac', engine: 'claude', model: 'opus', effort: 'high', quality: 3, cost: 3,
+ title: 'Engineer · Claude opus high · OWNER-PRIVATE-HOST', label: 'Candidate on OWNER-PRIVATE-HOST' }],
excluded: [], floor: 1, notes: false, pick: 'c0', via: 'only', p: null, belowFloor: false, why: 'Only candidate' }
await f.execute({ type: 'route.record', conversationId: group, decision }, owner, f.lead)
const route = (await f.store.messages(owner, f.tab, group, {}, f.lead)).messages.find(m => (m.source as { kind?: string } | null)?.kind === 'route')!
diff --git a/backend/integration/superTabLiveness.test.ts b/backend/integration/superTabLiveness.test.ts
index 3cee6691d..30539bb1f 100644
--- a/backend/integration/superTabLiveness.test.ts
+++ b/backend/integration/superTabLiveness.test.ts
@@ -23,7 +23,7 @@ let replica: MongoMemoryReplSet
let db: PrismaClient
const owner: AuthUser = { sub: '200000000000000000000001', email: '[email protected]', autonomousEnv: 'prod', role: 'user' }
const host: AuthUser = { sub: '200000000000000000000003', email: '[email protected]', autonomousEnv: 'prod', role: 'user' }
-const config = { engine: 'codex', model: 'fixture-model', effort: 'high', contextWindow: 200000, engineVersion: 'fixture' }
+const config = { engine: 'codex', model: 'gpt-6.1-sol', effort: 'high', contextWindow: 200000, engineVersion: 'fixture' }
const MINUTE = 60_000
beforeAll(async () => {
@@ -667,10 +667,12 @@ describe('work waiting for its review', () => {
// Review of #2275: the review-capacity notice took the command's own message id, which the Ready for review row already had,
// so the real write hit a duplicate key and rolled the whole status back: no Builder could hand over during a quota shortage.
-describe('a Ready for review while no Reviewer of another engine can start', () => {
+// Since any engine reviews any build (Ken, 2026-10-30), the notice speaks only when neither engine can start a Reviewer.
+describe('a Ready for review while no Reviewer of any engine can start', () => {
it('saves the hand-over and tells the project chat once, through the store\'s write', async () => {
const f = await swarm({ engines: ['codex', 'claude'] })
- const outForDays = [{ engine: 'claude', known: true, windows: [{ name: 'weekly', usedPercent: 100, resetsAt: new Date(f.clock.now + 3 * 86_400_000).toISOString() }] }]
+ const outForDays = ['claude', 'codex'].map(engine =>
+ ({ engine, known: true, windows: [{ name: 'weekly', usedPercent: 100, resetsAt: new Date(f.clock.now + 3 * 86_400_000).toISOString() }] }))
await f.observe('lead-host', [f.harness.lead], { quotas: outForDays })
await f.observe('test-host', [f.harness.worker], { quotas: outForDays })
const status = (status: 'review' | 'working', result: string) =>
@@ -680,11 +682,11 @@ describe('a Ready for review while no Reviewer of another engine can start', ()
const rows = await db.superTabMessage.findMany({ where: { tabId: f.tab }, orderBy: { sequence: 'asc' } })
const notices = rows.filter(m => (m.source as { kind?: string } | null)?.kind === 'review-capacity')
expect(notices).toHaveLength(1)
- expect(notices[0]!.text).toMatch(/^Reviews of Codex builds fall back to Codex at its top tier: Claude Code is unavailable/)
+ expect(notices[0]!.text).toMatch(/^Reviews cannot start a new Reviewer: no machine this project may use can run Claude Code or Codex now/)
// The command's own row stays the hand-over.
expect(rows.find(m => m.id === handed.result.messageId)!.text).toContain('Ready for review: PR #7 at 4f9c2e1')
const project = (await f.timed.read(owner, f.tab)).state.projects![0]!
- expect(project.reviewCapacity).toEqual({ claude: 'out' })
+ expect(project.reviewCapacity).toEqual({ any: 'out' })
// Handed over again, the cause is the same: said once.
await status('working', 'Fixing')
await status('review', 'Ready for review: PR #7 at 5a0d3f2')
@@ -821,8 +823,8 @@ describe('an agent whose task was lost', () => {
await loseByOffline(f)
await backOnline(f)
const decision = { assessment: { difficulty: 'low', risk: 'low', why: 'Small task.' },
- candidates: [{ id: 'c0', kind: 'new', machineId: 'test-host', engine: 'codex', model: 'fixture-model', effort: 'high',
- quality: 2, cost: 2, title: 'New agent', label: 'New agent' }],
+ candidates: [{ id: 'c0', kind: 'new', machineId: 'test-host', engine: 'codex', model: 'gpt-6.1-sol', effort: 'high',
+ quality: 3, cost: 2, title: 'New agent', label: 'New agent' }],
excluded: [], floor: 1, notes: false, pick: 'c0', via: 'only', p: null, belowFloor: false, why: 'Only candidate.' }
const routeDecisionId = String((await f.execute({ type: 'route.record', conversationId: f.group, decision } as Command, host, f.lead)).result.routeDecisionId)
await f.execute({ type: 'work.assign', conversationId: f.group, agentId: f.worker, routeDecisionId,
@@ -917,11 +919,11 @@ describe('a start that never runs', () => {
/** The Lead starts "Builder" on Worker Mac, and Worker Mac launches it. */
const launch = async (f: Awaited<ReturnType<typeof swarm>>) => {
const decision = { assessment: { difficulty: 'low', risk: 'low', why: 'Small task.' },
- candidates: [{ id: 'c0', kind: 'new', machineId: 'test-host', engine: 'codex', model: 'fixture-model', effort: 'high',
- quality: 2, cost: 2, title: 'New agent', label: 'New agent' }],
+ candidates: [{ id: 'c0', kind: 'new', machineId: 'test-host', engine: 'codex', model: 'gpt-6.1-sol', effort: 'high',
+ quality: 3, cost: 2, title: 'New agent', label: 'New agent' }],
excluded: [], floor: 1, notes: false, pick: 'c0', via: 'only', p: null, belowFloor: false, why: 'Only candidate.' }
const routeDecisionId = String((await f.execute({ type: 'route.record', conversationId: 'lead', decision } as Command, host, f.lead)).result.routeDecisionId)
- const request = { conversationId: 'lead', machineId: 'test-host', engine: 'codex', model: 'fixture-model', effort: 'high', name: 'Builder',
+ const request = { conversationId: 'lead', machineId: 'test-host', engine: 'codex', model: 'gpt-6.1-sol', effort: 'high', name: 'Builder',
cwd: '/repo', worktree: false, requirements: { memoryBytes: 0, diskBytes: 0, maxCpuPercent: 100, tools: [], devices: [], quotaRequired: false } }
const startId = String((await f.execute({ type: 'agent.start', request, routeDecisionId } as Command, host, f.lead)).result.startId)
// The start's own machine dispatches and confirms it.
@@ -1023,11 +1025,11 @@ describe('a task that stalls', () => {
const group = String((await f.execute({ type: 'conversation.create', title: 'Write the docs', brief: 'Document it',
checks: [{ description: 'Read', independent: false }] })).result.conversationId)
const decision = { assessment: { difficulty: 'low', risk: 'low', why: 'Small task.' },
- candidates: [{ id: 'c0', kind: 'new', machineId: 'test-host', engine: 'codex', model: 'fixture-model', effort: 'high',
- quality: 2, cost: 2, title: 'New agent', label: 'New agent' }],
+ candidates: [{ id: 'c0', kind: 'new', machineId: 'test-host', engine: 'codex', model: 'gpt-6.1-sol', effort: 'high',
+ quality: 3, cost: 2, title: 'New agent', label: 'New agent' }],
excluded: [], floor: 1, notes: false, pick: 'c0', via: 'only', p: null, belowFloor: false, why: 'Only candidate.' }
const routeDecisionId = String((await f.execute({ type: 'route.record', conversationId: group, decision } as Command, host, f.lead)).result.routeDecisionId)
- const request = { conversationId: group, machineId: 'test-host', engine: 'codex', model: 'fixture-model', effort: 'high', name: 'Builder',
+ const request = { conversationId: group, machineId: 'test-host', engine: 'codex', model: 'gpt-6.1-sol', effort: 'high', name: 'Builder',
cwd: '/repo', worktree: false, requirements: { memoryBytes: 0, diskBytes: 0, maxCpuPercent: 100, tools: [], devices: [], quotaRequired: false } }
const startId = String((await f.execute({ type: 'agent.start', request, routeDecisionId } as Command, host, f.lead)).result.startId)
return { group, startId }
diff --git a/backend/integration/superTabTidy.test.ts b/backend/integration/superTabTidy.test.ts
index e605133c6..d83f18e76 100644
--- a/backend/integration/superTabTidy.test.ts
+++ b/backend/integration/superTabTidy.test.ts
@@ -286,9 +286,12 @@ describe('a review the Swarm opens by itself', () => {
checks: [{ description: 'Verified', independent: true }] })).result.conversationId)
const builder = await f.add(reviewed, 'test-host', randomUUID(), 'Builder')
const work = String((await f.execute({ type: 'work.assign', conversationId: reviewed, agentId: builder })).result.assignmentId)
- const reviewer = await f.add('lead', 'test-host', randomUUID(), 'Reviewer')
- // On another engine than the Builder's: a review never runs on the reviewed Builder's own (rules.ts reviewRefusal).
- await f.started(reviewer, { role: 'reviewer', configuration: { ...config, engine: config.engine === 'claude' ? 'codex' : 'claude', model: config.engine === 'claude' ? 'default' : 'opus' } })
+ const reviewerHarness = randomUUID()
+ const reviewer = await f.add('lead', 'test-host', reviewerHarness, 'Reviewer')
+ // On a model the routing table rates 2 or more (rules.ts reviewRefusal), of any engine, the Builder's own included (Ken,
+ // 2026-10-30); its machine reports it can start one (autoReview.ts pickReviewer skips a silent machine).
+ await f.started(reviewer, { role: 'reviewer', configuration: { ...config, model: 'gpt-6.1-sol' } })
+ await f.observe('test-host', [reviewerHarness])
await f.delivered()
await f.execute({ type: 'work.status', conversationId: reviewed, assignmentId: work, status: 'review',
result: 'Ready: yes, revision abc..def. https://github.com/example/parser/pull/9' }, host, builder)
diff --git a/backend/integration/superTabs.test.ts b/backend/integration/superTabs.test.ts
index e936f742c..9084b26b5 100644
--- a/backend/integration/superTabs.test.ts
+++ b/backend/integration/superTabs.test.ts
@@ -48,11 +48,11 @@ async function fixture() {
}
async function routedStart(tab: string, lead: string, role?: 'reviewer') {
const decision = { assessment: { difficulty: 'low', risk: 'low', why: 'Small task.' },
- candidates: [{ id: 'c0', kind: 'new', machineId: 'test-host', engine: 'codex', model: 'fixture-model', effort: 'high',
- quality: 2, cost: 2, title: 'New agent', label: 'New agent' }],
+ candidates: [{ id: 'c0', kind: 'new', machineId: 'test-host', engine: 'codex', model: 'gpt-6.1-sol', effort: 'high',
+ quality: 3, cost: 2, title: 'New agent', label: 'New agent' }],
excluded: [], floor: 1, notes: false, pick: 'c0', via: 'only', p: null, belowFloor: false, why: 'Only candidate.' }
const routeDecisionId = String((await run(tab, { type: 'route.record', conversationId: 'lead', decision } as Command, host, lead)).result.routeDecisionId)
- const request = { conversationId: 'lead', machineId: 'test-host', engine: 'codex', model: 'fixture-model', effort: 'high',
+ const request = { conversationId: 'lead', machineId: 'test-host', engine: 'codex', model: 'gpt-6.1-sol', effort: 'high',
name: 'Builder', cwd: '/fixture/repo', worktree: false, ...(role ? { role } : {}),
requirements: { memoryBytes: 0, diskBytes: 0, maxCpuPercent: 100, tools: [], devices: [], quotaRequired: false } }
const startId = String((await run(tab, { type: 'agent.start', request, routeDecisionId } as Command, host, lead)).result.startId)
@@ -2127,9 +2127,12 @@ describe('Super Tabs on a real Mongo replica set', () => {
it('records, supersedes and lets a person change a route decision; a closed one refuses', async () => {
const { tab, lead } = await fixture()
+ // A build is routed to a model rated 3 (rules.ts buildRefusal, #2314), read from the member's own configuration.
+ const builder = (await run(tab, { type: 'agent.add', conversationId: 'lead', machineId: 'test-host', harnessId: randomUUID(), name: 'Builder',
+ configuration: { ...config, engine: 'claude', model: 'opus' }, lead: false })).result.agentId as string
const decision = { assessment: { difficulty: 'medium', risk: 'low', why: 'A small API change.' },
candidates: [
- { id: 'c0', kind: 'member', agentId: lead, machineId: 'test-host', engine: 'claude', model: 'sonnet', effort: 'medium', quality: 2, cost: 2, title: 'Lead · Claude sonnet medium · test-host', label: 'Member Lead' },
+ { id: 'c0', kind: 'member', agentId: builder, machineId: 'test-host', engine: 'claude', model: 'opus', effort: 'high', quality: 3, cost: 3, title: 'Builder · Claude opus high · test-host', label: 'Member Builder' },
{ id: 'c1', kind: 'new', machineId: 'test-host', engine: 'claude', model: 'opus', effort: 'high', quality: 3, cost: 3, title: 'New agent · Claude opus high · test-host', label: 'New agent' },
], excluded: [{ title: 'New agent · Codex · test-host', reason: 'The selected agent engine is not installed on this machine.' }],
floor: 2, notes: false, pick: 'c0', via: 'order', fallback: 'unsure', p: null, belowFloor: false, why: 'Jev unsure; first in the policy order.' }
@@ -2163,7 +2166,7 @@ describe('Super Tabs on a real Mongo replica set', () => {
const request = { conversationId: 'lead', machineId, engine: 'codex', name: 'Builder', cwd: '/work', worktree: true,
requirements: { memoryBytes: 0, diskBytes: 0, maxCpuPercent: 100, tools: [], devices: [], quotaRequired: false } }
const decision = { assessment: { difficulty: 'low', risk: 'low', why: 'Docs.' },
- candidates: [{ id: 'c0', kind: 'new', machineId: 'test-host', engine: 'claude', model: 'haiku', effort: 'auto', quality: 1, cost: 1, title: 'New agent', label: 'New agent' }],
+ candidates: [{ id: 'c0', kind: 'new', machineId: 'test-host', engine: 'claude', model: 'opus', effort: 'high', quality: 3, cost: 3, title: 'New agent', label: 'New agent' }],
excluded: [], floor: 1, notes: false, pick: 'c0', via: 'only', p: null, belowFloor: false, why: 'Only candidate.' }
const routeDecisionId = (await run(tab, { type: 'route.record', conversationId: 'lead', decision } as Command, host, lead)).result.routeDecisionId as string
const operationId = randomUUID(), command: Command = { type: 'agent.start', request, routeDecisionId, overrideReason: 'The helper machine has the repository.' }
@@ -2177,10 +2180,10 @@ describe('Super Tabs on a real Mongo replica set', () => {
it('corrects the log to the model that ran when the routed switch failed, and reads the times of one decision', async () => {
const { tab, lead } = await fixture()
const decision = { assessment: { difficulty: 'low', risk: 'low', why: 'Docs.' },
- candidates: [{ id: 'c0', kind: 'new', machineId: 'test-host', engine: 'claude', model: 'haiku', effort: 'auto', quality: 1, cost: 1, title: 'New agent', label: 'New agent' }],
+ candidates: [{ id: 'c0', kind: 'new', machineId: 'test-host', engine: 'claude', model: 'opus', effort: 'high', quality: 3, cost: 3, title: 'New agent', label: 'New agent' }],
excluded: [], floor: 1, notes: false, pick: 'c0', via: 'only', p: null, belowFloor: false, why: 'Only candidate.' }
const routeDecisionId = (await run(tab, { type: 'route.record', conversationId: 'lead', decision } as Command, host, lead)).result.routeDecisionId as string
- const request = { conversationId: 'lead', machineId: 'test-host', engine: 'claude', model: 'haiku', effort: 'auto', name: 'Builder', cwd: '/fixture/repo', worktree: false,
+ const request = { conversationId: 'lead', machineId: 'test-host', engine: 'claude', model: 'opus', effort: 'high', name: 'Builder', cwd: '/fixture/repo', worktree: false,
requirements: { memoryBytes: 0, diskBytes: 0, maxCpuPercent: 100, tools: [], devices: [], quotaRequired: false } }
const startId = (await run(tab, { type: 'agent.start', request, routeDecisionId } as Command, host, lead)).result.startId as string
// A queued start already holds its account's quota when the Lead routes again.
@@ -2193,7 +2196,7 @@ describe('Super Tabs on a real Mongo replica set', () => {
expect((await store.messages(owner, tab, 'lead', {})).messages).toHaveLength(before)
const read = async () => (await app.inject({ url: `/api/super-tabs/${tab}/route-decisions/${routeDecisionId}`, headers: { authorization: `Bearer ${owner.sub}` } })).json().data
expect(await read()).toMatchObject({ outcome: null, outcomeAt: null, createdAt: expect.any(String),
- final: { kind: 'new', startId, model: 'sonnet', effort: 'auto', requested: { model: 'haiku', effort: 'auto' } } })
+ final: { kind: 'new', startId, model: 'sonnet', effort: 'auto', requested: { model: 'opus', effort: 'high' } } })
})
it('releases a queued start\'s route hold when that start fails', async () => {
@@ -2257,9 +2260,9 @@ describe('Super Tabs on a real Mongo replica set', () => {
const { tab, lead } = await fixture()
const group = (await run(tab, { type: 'conversation.create', title: 'Build', brief: 'Build it.', checks: [{ description: 'Tests pass', independent: false }] })).result.conversationId as string
const worker = (await run(tab, { type: 'agent.add', conversationId: group, machineId: 'test-host', harnessId: randomUUID(),
- name: 'Builder', configuration: config, lead: false })).result.agentId as string
+ name: 'Builder', configuration: { ...config, model: 'gpt-6.1-sol' }, lead: false })).result.agentId as string
const decision = { assessment: { difficulty: 'low', risk: 'low', why: 'Small.' },
- candidates: [{ id: 'c0', kind: 'member', agentId: worker, machineId: 'test-host', engine: 'claude', model: 'sonnet', effort: 'medium', quality: 2, cost: 2, title: 'Builder', label: 'Member Builder' }],
+ candidates: [{ id: 'c0', kind: 'member', agentId: worker, machineId: 'test-host', engine: 'codex', model: 'gpt-6.1-sol', effort: 'high', quality: 3, cost: 2, title: 'Builder', label: 'Member Builder' }],
excluded: [], floor: 1, notes: false, pick: 'c0', via: 'only', p: null, belowFloor: false, why: 'Only candidate.' }
const routeDecisionId = (await run(tab, { type: 'route.record', conversationId: group, decision } as Command, host, lead)).result.routeDecisionId as string
const assignmentId = (await run(tab, { type: 'work.assign', conversationId: group, agentId: worker, routeDecisionId } as Command, host, lead)).result.assignmentId as string
@@ -2274,10 +2277,10 @@ describe('Super Tabs on a real Mongo replica set', () => {
const { tab, lead } = await fixture()
const group = (await run(tab, { type: 'conversation.create', title: 'Build', brief: 'Build it.', checks: [{ description: 'Tests pass', independent: false }] })).result.conversationId as string
const add = async (name: string) => (await run(tab, { type: 'agent.add', conversationId: group, machineId: 'test-host', harnessId: randomUUID(),
- name, configuration: config, lead: false })).result.agentId as string
+ name, configuration: { ...config, model: 'gpt-6.1-sol' }, lead: false })).result.agentId as string
const picked = await add('Picked'), chosen = await add('Chosen')
const candidate = (id: string, agentId: string, title: string) => ({ id, kind: 'member', agentId, machineId: 'test-host', engine: 'codex',
- model: 'fixture-model', effort: 'high', quality: 2, cost: 2, title, label: `Member ${title}` })
+ model: 'gpt-6.1-sol', effort: 'high', quality: 3, cost: 2, title, label: `Member ${title}` })
const decision = { assessment: { difficulty: 'low', risk: 'low', why: 'Small.' },
candidates: [candidate('c0', picked, 'Picked'), candidate('c1', chosen, 'Chosen')],
excluded: [], floor: 1, notes: false, pick: 'c0', via: 'jev', p: 0.9, belowFloor: false, why: 'Jev chose Picked.' }
@@ -2306,7 +2309,7 @@ describe('Super Tabs on a real Mongo replica set', () => {
it('records more than 30 routes in an hour: there is no hourly cap', async () => {
const { tab, lead } = await fixture()
const decision = { assessment: { difficulty: 'low', risk: 'low', why: 'Docs.' },
- candidates: [{ id: 'c0', kind: 'new', machineId: 'test-host', engine: 'claude', model: 'haiku', effort: 'auto', quality: 1, cost: 1, title: 'New agent', label: 'New agent' }],
+ candidates: [{ id: 'c0', kind: 'new', machineId: 'test-host', engine: 'claude', model: 'opus', effort: 'high', quality: 3, cost: 3, title: 'New agent', label: 'New agent' }],
excluded: [], floor: 1, notes: false, pick: 'c0', via: 'only', p: null, belowFloor: false, why: 'Only candidate.' }
for (let i = 0; i < 30; i++) await run(tab, { type: 'route.record', conversationId: 'lead', decision } as Command, host, lead)
await expect(run(tab, { type: 'route.record', conversationId: 'lead', decision } as Command, host, lead)).resolves.toBeDefined()
@@ -4308,7 +4311,7 @@ describe('Swarm parts under concurrent writes', () => {
const { routeDecisionId, startId } = await routedStart(tab, lead)
await store.execute(host, tab, { operationId: randomUUID(), command: { type: 'agent.startDispatch', startId } }, lead)
const agentId = String((await store.execute(host, tab, { operationId: randomUUID(), command: { type: 'agent.started', startId,
- harnessId: randomUUID(), configuration: config } }, lead)).result.agentId)
+ harnessId: randomUUID(), configuration: { ...config, model: 'gpt-6.1-sol' } } }, lead)).result.agentId)
// Started and not pooled: the start is finished and out of every command's active state.
expect((await db.swarmStart.findFirstOrThrow({ where: { tabId: tab, key: startId } })).finishedAt).not.toBeNull()
await run(tab, { type: 'work.define', conversationId: 'lead', brief: 'Routed work', checks: [{ description: 'Done', independent: false }] }, host, lead)