diff --git a/apps/desktop/src/main/__tests__/session-list-render-helpers.ts b/apps/desktop/src/main/__tests__/session-list-render-helpers.ts deleted file mode 100644 index 59f80cd981..0000000000 --- a/apps/desktop/src/main/__tests__/session-list-render-helpers.ts +++ /dev/null @@ -1,62 +0,0 @@ -import type { SessionSummary } from '@maka/core'; -import { LocaleProvider, SessionListPanel } from '@maka/ui'; -import { createElement } from 'react'; -import { renderToStaticMarkup } from 'react-dom/server'; - -export function makeSessionSummary(overrides: Partial = {}): SessionSummary { - return { - id: 'session-1', - name: '测试会话', - isFlagged: false, - isArchived: false, - labels: [], - hasUnread: false, - status: 'active', - backend: 'ai-sdk', - llmConnectionSlug: 'test-connection', - connectionLocked: false, - model: 'test-model', - permissionMode: 'ask', - ...overrides, - }; -} - -export function renderSessionListPanel(options: { - session?: Partial; - sessions?: SessionSummary[]; - activeId?: string; - rowActions?: Parameters[0]['rowActions']; - groups?: Parameters[0]['groups']; - projectActions?: Parameters[0]['projectActions']; - worktreeSessionIds?: Parameters[0]['worktreeSessionIds']; - staleSessionIds?: Parameters[0]['staleSessionIds']; - viewMode?: Parameters[0]['viewMode']; -} = {}): string { - const rowActions = options.rowActions ?? { - onToggleFlag() {}, - onArchive() {}, - onUnarchive() {}, - onRename() {}, - onDelete() {}, - }; - - return renderToStaticMarkup(createElement(LocaleProvider, { - locale: 'zh', - children: createElement(SessionListPanel, { - selection: { section: 'sessions', filter: 'chats' }, - sessions: options.sessions ?? [makeSessionSummary(options.session)], - activeId: options.activeId, - groups: options.groups, - projectActions: options.projectActions, - worktreeSessionIds: options.worktreeSessionIds, - staleSessionIds: options.staleSessionIds, - viewMode: options.viewMode, - onViewModeChange: options.viewMode ? () => {} : undefined, - onSelectSession() {}, - onSelect() {}, - onOpenSettings() {}, - onNew() {}, - rowActions, - } satisfies Parameters[0]), - })); -} diff --git a/packages/cli/src/__tests__/pi-transcript.test.ts b/packages/cli/src/__tests__/pi-transcript.test.ts index eb82f86057..55fcd5b8c2 100644 --- a/packages/cli/src/__tests__/pi-transcript.test.ts +++ b/packages/cli/src/__tests__/pi-transcript.test.ts @@ -29,7 +29,6 @@ import { before(() => _setColorLevelForTesting(3)); describe('Maka Pi TUI transcript', () => { - test('keeps assistant text after a tool call visible after the tool block', () => { const state = createMakaPiTranscriptState(); appendUserPrompt(state, 'inspect the package'); @@ -283,8 +282,6 @@ describe('Maka Pi TUI transcript', () => { ]); }); - - test('reports manual compact failed-open diagnostics instead of no-op success', async () => { const state = createMakaPiTranscriptState(); const driver = new RecordingDriver([ @@ -1235,7 +1232,6 @@ describe('Maka Pi TUI transcript', () => { assert.ok(visibleLines.some((line) => line.includes('saved ~24000 tokens'))); }); - test('renders an unboxed session sandbox boundary request with exact scopes', () => { const state = createMakaPiTranscriptState(); applyMakaSessionEventToTranscript( @@ -1702,8 +1698,6 @@ describe('Maka Pi TUI transcript', () => { assert.match(lines.join('\n'), /\x1b\[31mexit 1\x1b\[39m/); }); - - test('shows the latest live output line while a tool is running', () => { const state = createMakaPiTranscriptState(); applyMakaSessionEventToTranscript( diff --git a/packages/cli/src/__tests__/pi-tui-runner.test.ts b/packages/cli/src/__tests__/pi-tui-runner.test.ts index d0fffb95b8..e0165db929 100644 --- a/packages/cli/src/__tests__/pi-tui-runner.test.ts +++ b/packages/cli/src/__tests__/pi-tui-runner.test.ts @@ -515,8 +515,6 @@ describe('Maka Pi TUI runner', () => { ]); }); - - test('first-run setup save closes the TUI so the host re-resolves the new default', async () => { const terminal = new FakeTerminal(); const driver = new SlashCommandDriver(); @@ -947,7 +945,6 @@ describe('Maka Pi TUI runner', () => { ]); }); - test('freezes and preserves the editor draft while a boundary request owns input', async () => { const terminal = new FakeTerminal(); let releaseBoundaryRequest!: () => void; @@ -2768,8 +2765,6 @@ describe('Maka Pi TUI runner', () => { } }); - - test('rejects removed permission modes without sending a prompt', async () => { const terminal = new FakeTerminal(); const driver = new SlashCommandDriver(); @@ -3028,7 +3023,6 @@ describe('Maka Pi TUI runner', () => { await run; }); - test('rejects unsupported /thinking levels with usage instead of sending an update', async () => { const terminal = new FakeTerminal(); const driver = new SlashCommandDriver(); @@ -3421,8 +3415,6 @@ describe('Maka Pi TUI runner', () => { ]); }); - - test('preserves repeated whitespace in a quoted /move path', async () => { const terminal = new FakeTerminal(); const driver = new SlashCommandDriver(); @@ -3554,7 +3546,6 @@ describe('Maka Pi TUI runner', () => { await run; }); - test('nests linked child sessions in the picker and allows opening one directly', async () => { const terminal = new FakeTerminal(); const parent = fakeSessionSummary('parent-session', '/repo', 'Parent chat'); @@ -4375,7 +4366,6 @@ describe('Maka Pi TUI runner', () => { } }); - test('/new cancels hydration retries owned by the previous session', async () => { const terminal = new FakeTerminal(); const driver = new RewindDriver([{ turnId: 'turn-2', label: 'second question' }]); @@ -5861,7 +5851,6 @@ describe('Maka Pi TUI runner', () => { }); }); - test('"quit now" and "请 exit" are sent as ordinary prompts, not the exit word', async () => { const terminal = new FakeTerminal(); const driver = new SlashCommandDriver(); @@ -5894,7 +5883,6 @@ describe('Maka Pi TUI runner', () => { ]); }); - test('relocates a moved session before resuming it at startup', async () => { const terminal = new FakeTerminal(); const driver = new SlashCommandDriver([ diff --git a/packages/cli/src/__tests__/run-command.test.ts b/packages/cli/src/__tests__/run-command.test.ts index bea28319ce..b0550b1246 100644 --- a/packages/cli/src/__tests__/run-command.test.ts +++ b/packages/cli/src/__tests__/run-command.test.ts @@ -23,7 +23,6 @@ function processContractStderr(stderr: string): string { } describe('maka run argument parsing', () => { - test('recognizes stdin prompt mode and rejects malformed limits', () => { assert.deepEqual(parseMakaRunArgs(['-']), { kind: 'run', @@ -33,7 +32,6 @@ describe('maka run argument parsing', () => { assert.equal(parseMakaRunArgs(['x', '--max-steps', '1.5']).kind, 'error'); }); - test('accepts only the explicit non-interactive sandbox bypass flag', () => { assert.deepEqual(parseMakaRunArgs(['run tools', '--yolo']), { kind: 'run', @@ -62,12 +60,9 @@ describe('maka run argument parsing', () => { }); assert.equal(parseMakaRunArgs(['next', '--resume', 'session-1', '--continue']).kind, 'error'); }); - }); describe('maka run process contract', () => { - - test('waits for the complete Graph before printing the final supervisor output', async () => { const result = await runFixture(['implement it', '--graph'], { input: '', @@ -90,8 +85,6 @@ describe('maka run process contract', () => { assert.doesNotMatch(result.stderr, /graph-wait-called/); }); - - test('combines a positional instruction with piped stdin context', async () => { const result = await runFixture(['summarize'], { input: 'document body' }); assert.equal(result.code, 0, result.stderr); @@ -143,9 +136,6 @@ describe('maka run process contract', () => { assert.equal(result.stdout, ''); }); - - - test('creates a bypass boundary only when --yolo is explicit', async () => { const result = await runFixture(['hello', '--yolo'], { input: '', @@ -163,7 +153,6 @@ describe('maka run process contract', () => { assert.equal(result.stdout, ''); }); - test('fails closed when resuming a bypass session without --yolo', async () => { const cwd = await realpath(process.cwd()); const resumed = fixtureSession({ diff --git a/packages/cli/src/__tests__/runtime-host-run-command.test.ts b/packages/cli/src/__tests__/runtime-host-run-command.test.ts index bc1576e0ca..d49b53a939 100644 --- a/packages/cli/src/__tests__/runtime-host-run-command.test.ts +++ b/packages/cli/src/__tests__/runtime-host-run-command.test.ts @@ -342,7 +342,6 @@ describe('Runtime Host maka run adapter', () => { assert.equal(observed[0]?.finalOutput, 'Host answer'); }); - test('applies the requested step cap through the Host turn', async () => { const fixture = runFixture({ maxSteps: 3 }); const session = await fixture.context.runtime.createSession({ diff --git a/packages/core/src/__tests__/agent-run-continuation-source.test.ts b/packages/core/src/__tests__/agent-run-continuation-source.test.ts index 9047e837ee..12b3afa4fa 100644 --- a/packages/core/src/__tests__/agent-run-continuation-source.test.ts +++ b/packages/core/src/__tests__/agent-run-continuation-source.test.ts @@ -56,7 +56,6 @@ describe('AgentRun continuation source decoding', () => { /Invalid AgentRun header schema/, ); }); - }); function headerWithContinuation( diff --git a/packages/core/src/__tests__/chat-model-choice.test.ts b/packages/core/src/__tests__/chat-model-choice.test.ts index a5b1e0b365..54680a82e7 100644 --- a/packages/core/src/__tests__/chat-model-choice.test.ts +++ b/packages/core/src/__tests__/chat-model-choice.test.ts @@ -36,7 +36,6 @@ test('projects enabled chat models with display, models.dev facts, and thinking ]); }); - test('openai-compatible relay choices carry the thinking levels declared per model', () => { const [declared, undeclared] = buildChatModelChoices([ connection({ diff --git a/packages/core/src/__tests__/daily-review.test.ts b/packages/core/src/__tests__/daily-review.test.ts index c6b29fa9d2..b2e1cd338e 100644 --- a/packages/core/src/__tests__/daily-review.test.ts +++ b/packages/core/src/__tests__/daily-review.test.ts @@ -215,7 +215,6 @@ describe('Daily Review range contract', () => { assert.equal(parseDailyReviewArchiveId('2026-08-03-deep'), null); }); - it('rejects structurally invalid canonical archives', () => { const valid = { id: '2026-08-03-1d', diff --git a/packages/core/src/__tests__/local-memory.test.ts b/packages/core/src/__tests__/local-memory.test.ts index 9ab2ac513d..bd9203f9b8 100644 --- a/packages/core/src/__tests__/local-memory.test.ts +++ b/packages/core/src/__tests__/local-memory.test.ts @@ -203,7 +203,6 @@ describe('local MEMORY.md contract', () => { assert.doesNotMatch(body ?? '', /pending|rejected|unknown future/i); }); - it('does not apply UI preview truncation to the prompt body', () => { const longPreference = `${'a'.repeat(520)}tail-marker`; const body = buildLocalMemoryPromptBody( @@ -424,7 +423,6 @@ describe('local MEMORY.md contract', () => { assert.match(renamed.draft, /## Updated writing style/); }); - it('archives and restores a memory entry by updating visible metadata', () => { const source = [ '# Maka Memory', @@ -459,8 +457,6 @@ describe('local MEMORY.md contract', () => { assert.match(buildLocalMemoryPromptBody(restored.draft) ?? '', /Prefer concise answers/); }); - - it('rejects entry status updates for invalid or missing ids', () => { assert.deepEqual(setLocalMemoryEntryStatusDraft('', { id: ' ', status: 'active', now: 1 }), { ok: false, diff --git a/packages/core/src/__tests__/long-term-memory.test.ts b/packages/core/src/__tests__/long-term-memory.test.ts index edaa03fa42..71c0e5f128 100644 --- a/packages/core/src/__tests__/long-term-memory.test.ts +++ b/packages/core/src/__tests__/long-term-memory.test.ts @@ -75,5 +75,4 @@ describe('long-term memory contract', () => { assert.equal(isMemoryKeyType('code'), true); assert.equal(isMemoryKeyType('keyword'), false); }); - }); diff --git a/packages/core/src/__tests__/model-call-attempt.test.ts b/packages/core/src/__tests__/model-call-attempt.test.ts index 114ec394c3..7b553868ac 100644 --- a/packages/core/src/__tests__/model-call-attempt.test.ts +++ b/packages/core/src/__tests__/model-call-attempt.test.ts @@ -43,9 +43,6 @@ function attempt(overrides: Partial = {}): ModelCallAttempt { } describe('ModelCallAttempt codec', () => { - - - test('rejects an unpriced attempt that carries a cost', () => { assert.throws( () => decodeModelCallAttempt(attempt({ costBasis: 'unpriced', costUsd: 0 })), @@ -62,7 +59,6 @@ describe('ModelCallAttempt codec', () => { ); }); - test('rejects missing usage that still carries tokens', () => { assert.throws( () => decodeModelCallAttempt(attempt({ usageBasis: 'missing' })), @@ -70,7 +66,6 @@ describe('ModelCallAttempt codec', () => { ); }); - test('rejects completedAt before startedAt', () => { assert.throws( () => decodeModelCallAttempt(attempt({ startedAt: 2_000, completedAt: 1_000 })), diff --git a/packages/core/src/__tests__/model-metadata.test.ts b/packages/core/src/__tests__/model-metadata.test.ts index d1f9d02902..dd2c667a67 100644 --- a/packages/core/src/__tests__/model-metadata.test.ts +++ b/packages/core/src/__tests__/model-metadata.test.ts @@ -20,7 +20,6 @@ describe('model-metadata vision capability', () => { assert.equal(resolveModelVisionSupport('anthropic', undefined, 'claude-fable-1'), true); }); - it('still fails closed for the Claude generation that cannot read images', () => { // claude-2.x and claude-instant carry no family segment, so widening the // default to the pre-4 id shape must not reach them. @@ -29,8 +28,6 @@ describe('model-metadata vision capability', () => { } }); - - it('confines the default to the providers that serve Anthropic their own models', () => { // A claude-prefixed id on somebody else's provider says nothing about what // is actually behind it, so the default must not travel with the id. @@ -88,9 +85,6 @@ describe('model-metadata vision capability', () => { ); }); - - - it('uses synchronized facts while preserving access-path overrides', () => { const metadata = lookupModelMetadata('anthropic', 'claude-sonnet-4-5'); assert.equal(metadata.contextWindow, 200_000); @@ -104,7 +98,6 @@ describe('model-metadata vision capability', () => { }); }); - it('reports vision false for text-only models', () => { assert.equal(lookupModelMetadata('deepseek', 'deepseek-chat').capabilities?.vision, false); assert.equal(lookupModelMetadata('zai-coding-plan', 'glm-5.2').capabilities?.vision, false); @@ -132,7 +125,6 @@ describe('model-metadata vision capability', () => { }); describe('resolveModelVisionSupport', () => { - it('falls back to in-repo metadata when stored models are bare ids (post-fetch)', () => { assert.equal( resolveModelVisionSupport( @@ -160,7 +152,6 @@ describe('resolveModelVisionSupport', () => { true, ); }); - }); describe('models.dev extended model facts', () => { @@ -208,5 +199,4 @@ describe('openAiAdapterApiProtocol', () => { assert.equal(openAiAdapterApiProtocol('deepseek-v4-pro', 'deepseek'), 'openai-chat'); assert.equal(openAiAdapterApiProtocol('deepseek-chat', 'deepseek'), 'openai-chat'); }); - }); diff --git a/packages/core/src/__tests__/model-thinking.test.ts b/packages/core/src/__tests__/model-thinking.test.ts index 5987f4d684..8cfce923a0 100644 --- a/packages/core/src/__tests__/model-thinking.test.ts +++ b/packages/core/src/__tests__/model-thinking.test.ts @@ -14,11 +14,6 @@ import { thinkingVariantsForModel, } from '../model-thinking.js'; - - - - - test('thinking-level guard accepts only the closed display vocabulary', () => { for (const level of THINKING_LEVELS) assert.equal(isThinkingLevel(level), true); for (const value of ['default', 'turbo', undefined, 123]) { @@ -160,8 +155,6 @@ test('resolveThinkingLevel discards levels the model does not offer', () => { assert.equal(resolveThinkingLevel({ providerType: 'openai' }, 'gpt-5.5', 'xhigh'), 'xhigh'); }); - - // Reasoning replay has no toggle: DeepSeek-like relays require // reasoning_content in tool-call history (400 otherwise), and other relays // ignore it, so the runtime replays unconditionally. That contract is diff --git a/packages/core/src/__tests__/onboarding.test.ts b/packages/core/src/__tests__/onboarding.test.ts index 5ea74f8230..74080f4f5d 100644 --- a/packages/core/src/__tests__/onboarding.test.ts +++ b/packages/core/src/__tests__/onboarding.test.ts @@ -119,7 +119,6 @@ describe('deriveOnboardingState', () => { }); }); - it('covers the top-level state decision table', () => { const ready = realConnection(); const disabled = realConnection({ enabled: false }); diff --git a/packages/core/src/__tests__/runtime-event.test.ts b/packages/core/src/__tests__/runtime-event.test.ts index 075e147578..beb6446335 100644 --- a/packages/core/src/__tests__/runtime-event.test.ts +++ b/packages/core/src/__tests__/runtime-event.test.ts @@ -581,7 +581,6 @@ describe('RuntimeEvent content variants', () => { }); describe('RuntimeEvent actions', () => { - test('a terminal action can carry endInvocation + tokenUsage', () => { const actions: RuntimeEventActions = { endInvocation: true, diff --git a/packages/core/src/__tests__/session-status.test.ts b/packages/core/src/__tests__/session-status.test.ts index 5182eb18ae..44ed83d630 100644 --- a/packages/core/src/__tests__/session-status.test.ts +++ b/packages/core/src/__tests__/session-status.test.ts @@ -81,5 +81,4 @@ describe('TurnStatus contract', () => { }, ]); }); - }); diff --git a/packages/core/src/__tests__/settings.test.ts b/packages/core/src/__tests__/settings.test.ts index 7d1217271a..33f5e1b3fb 100644 --- a/packages/core/src/__tests__/settings.test.ts +++ b/packages/core/src/__tests__/settings.test.ts @@ -120,7 +120,6 @@ describe('appearance settings boundaries', () => { mergeSettings(createDefaultSettings(), { appearance: { palette: 'onedark' } }).appearance, ).toMatchObject({ theme: 'auto', palette: 'onedark' }); }); - }); describe('custom pet selection settings', () => { diff --git a/packages/core/src/__tests__/subagent-session-parent.test.ts b/packages/core/src/__tests__/subagent-session-parent.test.ts index 3af510f35d..73cc00ae8f 100644 --- a/packages/core/src/__tests__/subagent-session-parent.test.ts +++ b/packages/core/src/__tests__/subagent-session-parent.test.ts @@ -96,7 +96,6 @@ describe('subagent session parent relation', () => { assert.equal(isSubagentSessionParent({ ...relation, unexpected: true }), false); }); - test('strictly decodes the initial child-spawn identity', () => { assert.equal(isSubagentSessionSpawn(spawn), true); assert.equal(isSubagentSessionSpawn({ ...spawn, requestFingerprint: 'not-a-hash' }), false); diff --git a/packages/core/src/__tests__/tool-result-record-schema.test.ts b/packages/core/src/__tests__/tool-result-record-schema.test.ts index c16d3c0533..bd084fe1d4 100644 --- a/packages/core/src/__tests__/tool-result-record-schema.test.ts +++ b/packages/core/src/__tests__/tool-result-record-schema.test.ts @@ -5,15 +5,12 @@ import { decodeStoredMessageForRead, decodeStoredMessageForRecovery } from '../s import { decodeCanonicalToolResultContent } from '../tool-result-record-schema.js'; describe('legacy subagent tool result compatibility', () => { - test('keeps the public canonical decoder strict', () => { assert.throws( () => decodeCanonicalToolResultContent(legacySubagentResult()), /Invalid tool result content/, ); }); - - }); describe('sandbox denial tool result metadata', () => { diff --git a/packages/core/src/__tests__/usage-ledger-merge.test.ts b/packages/core/src/__tests__/usage-ledger-merge.test.ts index 1924ca86e9..5f79da8300 100644 --- a/packages/core/src/__tests__/usage-ledger-merge.test.ts +++ b/packages/core/src/__tests__/usage-ledger-merge.test.ts @@ -192,7 +192,6 @@ describe('usage ledger merge', () => { ]); }); - test('log pages interleave both sources newest first and page across the boundary', () => { const legacyRows = [legacyLog('legacy-new', NOW - 100), legacyLog('legacy-old', NOW - 900)]; const canonical = { diff --git a/packages/runtime-host/src/__tests__/agent-graph-coordinator.test.ts b/packages/runtime-host/src/__tests__/agent-graph-coordinator.test.ts index 0676f36304..ab4f9b049b 100644 --- a/packages/runtime-host/src/__tests__/agent-graph-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/agent-graph-coordinator.test.ts @@ -10,10 +10,7 @@ import { type AgentGraphCoordinator, type AgentGraphOperatorInspection as RuntimeAgentGraphOperatorInspection, } from '@maka/runtime'; -import { - AGENT_GRAPH_RESULT_MAX_BYTES, - decodeAgentGraphClientSnapshot, -} from '../protocol/index.js'; +import { AGENT_GRAPH_RESULT_MAX_BYTES, decodeAgentGraphClientSnapshot } from '../protocol/index.js'; import { HostAgentGraphCoordinator, projectAgentGraphClientSnapshot, diff --git a/packages/runtime-host/src/__tests__/execution-model-composition.test.ts b/packages/runtime-host/src/__tests__/execution-model-composition.test.ts index f42b650cd7..a674d9b041 100644 --- a/packages/runtime-host/src/__tests__/execution-model-composition.test.ts +++ b/packages/runtime-host/src/__tests__/execution-model-composition.test.ts @@ -97,7 +97,6 @@ const MAX_IMPLEMENTATION_CHILD_REQUESTS = MIN_IMPLEMENTATION_CHILD_REQUESTS + MAX_IMPLEMENTATION_CHILD_PTY_READS - 1; const execFileAsync = promisify(execFile); - test('backend creation aborts a stalled canonical connection read', async () => { const abort = new AbortController(); const creating = createHostAiSdkBackend( @@ -180,7 +179,6 @@ test('provider dispatch fails closed when the Run Composition commit fails', asy } }); - test('backend abort cannot cancel the authority-owned OAuth refresh used by its successor', async () => { const base = await mkdtemp(join(tmpdir(), 'maka-host-oauth-backend-')); const capability = await resolveStorageRoot({ @@ -346,7 +344,6 @@ test('backend creation does not acquire Client Capabilities beyond a bound tool } }); - test('production backend creation continues after a Session Client Capability is lost', async () => { const coordinator = new HostClientCapabilityCoordinator({ activation: new RuntimePolicyActivationGate(), @@ -2246,11 +2243,6 @@ test('one composer freezes Runtime Policy while each Run freezes its remaining p ); }); - - - - - test('a bound tool ceiling excludes dynamic Client Capability tools', () => { const boundTool: MakaTool = { name: 'bounded_tool', @@ -2301,7 +2293,6 @@ test('a bound tool ceiling excludes dynamic Client Capability tools', () => { ); }); - function skillFixture(id: string, description: string, content: string): ScannedSkill { return { ref: `project:agents:${id}`, diff --git a/packages/runtime-host/src/__tests__/interaction-coordinator.test.ts b/packages/runtime-host/src/__tests__/interaction-coordinator.test.ts index 02914d4b8f..cb2be07b71 100644 --- a/packages/runtime-host/src/__tests__/interaction-coordinator.test.ts +++ b/packages/runtime-host/src/__tests__/interaction-coordinator.test.ts @@ -535,7 +535,6 @@ describe('HostInteractionCoordinator', () => { }); }); - test('drain permits only an exact Run preclaimed by its stop closure to bind', async () => { await withStore(async ({ store }) => { const gate = new SessionAdmissionGate(); diff --git a/packages/runtime-host/src/__tests__/protocol.test.ts b/packages/runtime-host/src/__tests__/protocol.test.ts index 1dfee53a04..66666c5cad 100644 --- a/packages/runtime-host/src/__tests__/protocol.test.ts +++ b/packages/runtime-host/src/__tests__/protocol.test.ts @@ -46,7 +46,6 @@ describe('Runtime Host bootstrap protocol', () => { assert.throws(() => negotiateProtocol({ min: -1, max: 0 }, { min: 0, max: 0 }), isInvalidFrame); }); - test('keeps subscription operations closed, ready-only, and queue Epoch correlated', () => { assert.equal(SESSION_CONTINUITY_SCHEMA_VERSION, 3); assert.deepEqual( @@ -402,7 +401,6 @@ describe('Runtime Host bootstrap protocol', () => { ); }); - test('allows larger credential frames only for validated custom request headers', () => { const secret = JSON.stringify( Object.fromEntries( @@ -595,7 +593,6 @@ describe('Runtime Host bootstrap protocol', () => { assert.deepEqual(decodeHostFrame(JSON.parse(encoded.toString('utf8'))), canonical); }); - test('keeps the operation registry closed at request and response boundaries', () => { assert.throws( () => decodeClientFrame({ requestId: 'request-1', operation: 'store.read', input: {} }), @@ -811,7 +808,6 @@ describe('Runtime Host bootstrap protocol', () => { assert.throws(() => decodeHostFrame({ ...response, operation: 'turn.query' }), isInvalidFrame); }); - test('accepts bounded explicit Skill identities on turn.start', () => { const start = (skillIds: unknown, text = '') => decodeClientFrame({ diff --git a/packages/runtime-host/src/__tests__/session-catalog-protocol.test.ts b/packages/runtime-host/src/__tests__/session-catalog-protocol.test.ts index 4debe47dbb..be21aa0cf5 100644 --- a/packages/runtime-host/src/__tests__/session-catalog-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/session-catalog-protocol.test.ts @@ -422,7 +422,6 @@ describe('Session catalog protocol', () => { }; assert.deepEqual(decodeSessionCatalogQueryResult(changed), changed); }); - }); function projection(overrides: Partial = {}): SessionCatalogProjection { diff --git a/packages/runtime-host/src/__tests__/session-retirement-protocol.test.ts b/packages/runtime-host/src/__tests__/session-retirement-protocol.test.ts index c88453a1b2..747706c1e9 100644 --- a/packages/runtime-host/src/__tests__/session-retirement-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/session-retirement-protocol.test.ts @@ -117,7 +117,6 @@ describe('Session retirement protocol', () => { }, ); }); - }); function projection(overrides: Partial = {}): SessionCatalogProjection { diff --git a/packages/runtime-host/src/__tests__/skill-catalog-repository.test.ts b/packages/runtime-host/src/__tests__/skill-catalog-repository.test.ts index 395fc74677..6e433c6c32 100644 --- a/packages/runtime-host/src/__tests__/skill-catalog-repository.test.ts +++ b/packages/runtime-host/src/__tests__/skill-catalog-repository.test.ts @@ -252,10 +252,6 @@ test('external project sources are read-only while Data Root preferences use dur assert.match(await readFile(join(skillPath, 'SKILL.md'), 'utf8'), /External/); }); - - - - test('noncanonical external ids remain wire-safe governance entries', async () => { const fixture = await createFixture(); await createSkill( diff --git a/packages/runtime-host/src/__tests__/task-ledger-protocol.test.ts b/packages/runtime-host/src/__tests__/task-ledger-protocol.test.ts index 874f14178a..469fe7e0f1 100644 --- a/packages/runtime-host/src/__tests__/task-ledger-protocol.test.ts +++ b/packages/runtime-host/src/__tests__/task-ledger-protocol.test.ts @@ -110,7 +110,6 @@ describe('Task Ledger protocol', () => { ); }); - test('projects producer text once and accepts only wire-canonical DTOs', () => { const producerTasks = [ validTask(0, { subject: 'A B' }), diff --git a/packages/runtime/src/__tests__/ai-sdk-backend.test.ts b/packages/runtime/src/__tests__/ai-sdk-backend.test.ts index 8573ef2cc8..c27fe91b15 100644 --- a/packages/runtime/src/__tests__/ai-sdk-backend.test.ts +++ b/packages/runtime/src/__tests__/ai-sdk-backend.test.ts @@ -992,8 +992,6 @@ describe('AiSdkBackend model history', () => { ); }); - - test('prefers the connection-advertised Kimi output limit over catalog metadata', async () => { const model = completionModel(); const backend = createTestAiSdkBackend({ @@ -1025,7 +1023,6 @@ describe('AiSdkBackend model history', () => { assert.equal(model.doStreamCalls[0]?.maxOutputTokens, 65_536); }); - test('reserves Kimi fixed thinking inside the provider wire output limit', async () => { const model = completionModel(); const backend = createTestAiSdkBackend({ @@ -1896,7 +1893,6 @@ describe('AiSdkBackend model history', () => { ); }); - test('current-turn image attachment falls back to text unless vision support is explicit', async () => { const pngBytes = new Uint8Array([0x89, 0x50, 0x4e, 0x47, 1, 2, 3]); const model = completionModel(); @@ -6743,7 +6739,6 @@ describe('AiSdkBackend model history', () => { ); }); - test('replays a persisted compact block whose provenance JSON outgrows the token budget', async () => { const model = completionModel(); const events: SessionEvent[] = []; @@ -7548,8 +7543,6 @@ describe('AiSdkBackend error surfaces', () => { }); describe('AiSdkBackend usage telemetry', () => { - - test('retries an output-free truncated provider stream once and recovers', async () => { const durable = durableTurnHarness('turn-truncated-retry', 'analyse the image'); let calls = 0; @@ -9904,7 +9897,6 @@ describe('AiSdkBackend usage telemetry', () => { }); describe('AiSdkBackend request-shape diagnostics', () => { - test('classifies targeted request-shape changes', () => { const tools = canonicalizeToolSet( [testTool('Read', z.object({ path: z.string() }))], @@ -11857,7 +11849,6 @@ describe('AiSdkBackend RunTrace', () => { }); describe('AiSdkBackend tool execution', () => { - test('WebSearch telemetry never copies the user-derived query', async () => { const telemetry: Array<{ argsSummary?: string }> = []; const backend = createTestAiSdkBackend({ @@ -13756,7 +13747,6 @@ describe('AiSdkBackend thinking persistence', () => { assert.doesNotMatch(promptJson, /orphan payload/); }); - test('signature-only (omitted) thinking is persisted and replays with its signature', async () => { // Anthropic omitted/redacted thinking: a signed reasoning block whose text // is empty (only a standalone signature-carrier delta, no reasoning-delta diff --git a/packages/runtime/src/__tests__/ai-sdk-flow.test.ts b/packages/runtime/src/__tests__/ai-sdk-flow.test.ts index 1a626c6a9b..b93653de9e 100644 --- a/packages/runtime/src/__tests__/ai-sdk-flow.test.ts +++ b/packages/runtime/src/__tests__/ai-sdk-flow.test.ts @@ -425,7 +425,6 @@ describe('AiSdkFlow seam', () => { assert.equal(out[2].status, 'completed'); }); - test('maps the error path preserving error content + terminal failed', async () => { const backend = new ScriptedBackend({ events: [ @@ -703,8 +702,7 @@ describe('AiSdkFlow seam', () => { }); }); -describe('token usage durable round trip', () => { -}); +describe('token usage durable round trip', () => {}); // ============================================================================ // Pure mapping unit tests diff --git a/packages/runtime/src/__tests__/automation.test.ts b/packages/runtime/src/__tests__/automation.test.ts index 2d47edc4d4..c7ebdb8e74 100644 --- a/packages/runtime/src/__tests__/automation.test.ts +++ b/packages/runtime/src/__tests__/automation.test.ts @@ -70,7 +70,6 @@ describe('AutomationManager', () => { }); describe('markFired', () => { - test('maxFires completes on the successful fire that reaches the cap', () => { const mgr = createManager(); const auto = mgr.create({ @@ -177,11 +176,9 @@ describe('AutomationManager', () => { mgr.attemptFailed(auto.id, ''); assert.equal(mgr.get(auto.id)?.lastError, 'Automation run failed'); }); - }); - describe('removeAllForSession', () => { - }); + describe('removeAllForSession', () => {}); describe('registerAll — restart recovery', () => { function load(mgr: ReturnType, over: Partial>) { @@ -390,7 +387,6 @@ describe('computeJitter', () => { } } }); - }); describe('schedule jitter wiring (AutomationManager.computeNextFire)', () => { @@ -401,7 +397,6 @@ describe('schedule jitter wiring (AutomationManager.computeNextFire)', () => { return new AutomationManager({ generateId: () => `j-${++idc}`, now: () => NOW, random }); } - test('cron schedules get positive recurring jitter (never fire before the mark)', () => { const zero = managerWithRandom(() => 0); const base = zero.create({ diff --git a/packages/runtime/src/__tests__/builtin-tools.test.ts b/packages/runtime/src/__tests__/builtin-tools.test.ts index 5b6150e78e..25a88a574d 100644 --- a/packages/runtime/src/__tests__/builtin-tools.test.ts +++ b/packages/runtime/src/__tests__/builtin-tools.test.ts @@ -2644,7 +2644,6 @@ describe('builtin FormatJson (file in place)', () => { }; } - test('rejects image results from the workspace executor', async () => { const root = await mkdtemp(join(tmpdir(), 'maka-formatjson-image-')); const formatJson = buildBuiltinTools({ @@ -2660,7 +2659,6 @@ describe('builtin FormatJson (file in place)', () => { ); }); - test('sort_keys: true preserves __proto__ as a data property', async () => { const root = await mkdtemp(join(tmpdir(), 'maka-formatjson-')); const name = await writeInput(root, 'data.json', '{"__proto__":{"polluted":true},"a":1}'); @@ -2673,7 +2671,6 @@ describe('builtin FormatJson (file in place)', () => { expect(parsed.a).toBe(1); }); - test('invalid JSON returns a structured error diagnostic (no write, byteDelta 0)', async () => { const root = await mkdtemp(join(tmpdir(), 'maka-formatjson-')); const name = await writeInput(root, 'data.json', 'not json'); @@ -2688,8 +2685,6 @@ describe('builtin FormatJson (file in place)', () => { // File is left untouched on invalid input. expect(await readFile(join(root, name), 'utf8')).toBe('not json'); }); - - }); async function waitFor(predicate: () => boolean): Promise { diff --git a/packages/runtime/src/__tests__/computer-use-observation-text.test.ts b/packages/runtime/src/__tests__/computer-use-observation-text.test.ts index 9f761ce64d..20e3f8c280 100644 --- a/packages/runtime/src/__tests__/computer-use-observation-text.test.ts +++ b/packages/runtime/src/__tests__/computer-use-observation-text.test.ts @@ -29,10 +29,6 @@ function lines(text: string): string[] { return text.split('\n'); } - - - - test('an element whose parent was pruned away is still written', () => { // The driver prunes, so a reported child can outlive its reported parent. // Hiding it to keep the tree tidy would hide a real target. @@ -163,8 +159,6 @@ test('an oversized value is shortened visibly, not silently', () => { assert.ok((lines(text)[1] ?? '').length < 320); }); - - test('a cut tree says so, in the header, in words that change what the model does', () => { // The executor bounds its walk by element count and by a clock. An // open/save panel reaches both — 1,500 elements in 35s was measured — so a @@ -184,7 +178,6 @@ test('a cut tree says so, in the header, in words that change what the model doe assert.doesNotMatch(lines(whole)[0] ?? '', /truncated/); }); - test('an empty field shows what it is prompting for, marked as not a value', () => { // Placeholder text reads like content while the field holds nothing, so it // gets its own glyph: `~` one character away from `=` and meaning the @@ -213,9 +206,6 @@ test('an empty field shows what it is prompting for, marked as not a value', () assert.doesNotMatch(rows[3] ?? '', /~/); }); - - - // --------------------------------------------------------------------------- // The offline evaluator's entry point // --------------------------------------------------------------------------- diff --git a/packages/runtime/src/__tests__/computer-use-tools.test.ts b/packages/runtime/src/__tests__/computer-use-tools.test.ts index 0ef58ec0ca..caf75bb62d 100644 --- a/packages/runtime/src/__tests__/computer-use-tools.test.ts +++ b/packages/runtime/src/__tests__/computer-use-tools.test.ts @@ -100,11 +100,6 @@ function observation(over: Partial = {}): CuObservation { } describe('adaptToCuAction — flat Anthropic grammar → discriminated CuAction', () => { - - - - - test('a click without a coordinate throws invalid_coordinate', () => { assert.throws(() => adaptToCuAction({ action: 'left_click' } as never), /invalid_coordinate/); }); @@ -204,8 +199,6 @@ test('computer params reject accessors before policy or execution', () => { }); describe('buildComputerUseTools — the `maka_computer` MakaTool', () => { - - test('waits for presentation readiness before dispatch without waiting for finish', async () => { const events: string[] = []; let ready!: () => void; @@ -1816,8 +1809,6 @@ describe('buildComputerUseTools — the `maka_computer` MakaTool', () => { assert.match(r.text, /Screen Recording/); }); - - test('serializes preflight and dispatch in tool-call arrival order', async () => { const events: string[] = []; let releaseFirstPreflight!: () => void; diff --git a/packages/runtime/src/__tests__/context-budget.test.ts b/packages/runtime/src/__tests__/context-budget.test.ts index b6834d7b72..2e36a4f3bb 100644 --- a/packages/runtime/src/__tests__/context-budget.test.ts +++ b/packages/runtime/src/__tests__/context-budget.test.ts @@ -1337,7 +1337,6 @@ describe('context-budget history compact', () => { assert.equal(result.diagnostic.historyCompactedTurns, 4); }); - test('V2 checkpoint compaction retains only the latest complete turn', () => { const events = [ textEvent('old-1', 'turn-1', 'old context '.repeat(40)), diff --git a/packages/runtime/src/__tests__/conversation-copy.test.ts b/packages/runtime/src/__tests__/conversation-copy.test.ts index 8188a60b00..9e54f7689e 100644 --- a/packages/runtime/src/__tests__/conversation-copy.test.ts +++ b/packages/runtime/src/__tests__/conversation-copy.test.ts @@ -451,7 +451,6 @@ test('conversation copy rewrites owned references without changing opaque tool p ); }); - test('conversation copy rejects continuation authority selected through the child-run closure', async () => { const parent = agentRunHeader({ runId: 'run-parent', turnId: 'turn-parent' }); const child = agentRunHeader({ @@ -505,7 +504,6 @@ test('conversation copy rejects continuation authority selected through the chil ); }); - test('conversation copy rejects a retained AgentRun without RuntimeEvent facts', async () => { const root = await mkdtemp(join(tmpdir(), 'maka-conversation-missing-runtime-copy-')); try { diff --git a/packages/runtime/src/__tests__/materializer.test.ts b/packages/runtime/src/__tests__/materializer.test.ts index f31459d506..7dd633bfb8 100644 --- a/packages/runtime/src/__tests__/materializer.test.ts +++ b/packages/runtime/src/__tests__/materializer.test.ts @@ -97,9 +97,6 @@ const note = (kind: SystemNoteMessage['kind']): SystemNoteMessage => ({ // ---------- materializeSession ---------- describe('materializeSession', () => { - - - test('errored tool: result with isError=true → status errored', () => { const vm = materializeSession([ toolCall('t-2', 'Write'), @@ -237,8 +234,6 @@ describe('materializeSession', () => { expect(item.decision?.id).toBe('req-1'); }); - - test('mixed full conversation', () => { const vm = materializeSession([ note('session_start'), @@ -270,9 +265,6 @@ describe('applyAppendedMessage', () => { expect(appendedItem.item.activityKind).toBe('command'); }); - - - test('append tool_result with isError=true → status errored', () => { const items = applyAppendedMessage([], toolCall('t', 'Write')).items; const next = applyAppendedMessage(items, toolResult('t', true, 'denied')); @@ -295,7 +287,6 @@ describe('applyAppendedMessage', () => { if (item?.kind !== 'tool') throw new Error('wrong kind'); expect(item.decision?.decision).toBe('deny'); }); - }); // ---------- setToolStatus (renderer idempotent merge per §10) ---------- @@ -319,5 +310,4 @@ describe('setToolStatus', () => { const twice = setToolStatus(once, 't', { status: 'running' }); expect(twice).toEqual(once); }); - }); diff --git a/packages/runtime/src/__tests__/model-adapter.test.ts b/packages/runtime/src/__tests__/model-adapter.test.ts index f8720a8892..c1b8508f71 100644 --- a/packages/runtime/src/__tests__/model-adapter.test.ts +++ b/packages/runtime/src/__tests__/model-adapter.test.ts @@ -729,7 +729,6 @@ describe('ModelAdapter stream and error normalization', () => { ); }); - test('preserves DeepSeek and OpenAI-compatible raw usage fields', () => { assert.deepEqual( normalizeAiSdkUsage( diff --git a/packages/runtime/src/__tests__/model-factory-thinking.test.ts b/packages/runtime/src/__tests__/model-factory-thinking.test.ts index 04eff31b16..4fe1a0d08e 100644 --- a/packages/runtime/src/__tests__/model-factory-thinking.test.ts +++ b/packages/runtime/src/__tests__/model-factory-thinking.test.ts @@ -132,7 +132,6 @@ describe('buildProviderOptions: thinking level', () => { }); }); - test('google effort model (gemini-3) sends thinkingLevel; Gemini 2.5 Flash off sends thinkingBudget 0; safetySettings always present', () => { const g3 = buildProviderOptions(conn('google'), 'gemini-3-pro-preview', 'high'); assert.equal( @@ -301,7 +300,6 @@ describe('buildProviderOptions: thinking level', () => { assert.deepEqual([...thinkingVariantsForModel('stepfun-step-plan', 'step-router-v1')], []); }); - test('Volcengine Ark sends its official thinking object and optional reasoning effort', () => { const modelId = 'doubao-seed-2-0-pro-260215'; assert.deepEqual( @@ -594,15 +592,12 @@ describe('buildProviderOptions: openai-compatible namespace', () => { }); }); - describe('changesBackendConfig', () => { test('thinkingLevel change triggers backend reconfiguration', () => { assert.equal(changesBackendConfig({ thinkingLevel: 'high' }), true); assert.equal(changesBackendConfig({ thinkingLevel: undefined }), true); }); - - test('permissionMode triggers, so a mode change is enforced and not merely stored', () => { // The backend snapshots the header at construction and decides every // tool call against that snapshot. Persisting a lower mode without diff --git a/packages/runtime/src/__tests__/model-fetcher.test.ts b/packages/runtime/src/__tests__/model-fetcher.test.ts index ed7e8281f0..7fd5b507bb 100644 --- a/packages/runtime/src/__tests__/model-fetcher.test.ts +++ b/packages/runtime/src/__tests__/model-fetcher.test.ts @@ -239,8 +239,6 @@ describe('fetchProviderModels', () => { ); }); - - test('provider fetch failures throw generalized errors instead of returning fallback models', async () => { const server = await startJsonServer((_request, response) => { respondJson(response, 401, { @@ -260,8 +258,6 @@ describe('fetchProviderModels', () => { ); }); - - test('Codex OAuth discovers models from the chatgpt.com/backend-api/codex/models endpoint', async () => { const requests: Array<{ url: string; authorization: string | undefined }> = []; const server = await startJsonServer((request, response) => { @@ -349,8 +345,6 @@ describe('fetchProviderModels', () => { ); }); - - test('connection discovery classifies structurally invalid JSON from a real HTTP response', async () => { const secret = 'raw-provider-secret'; for (const body of [ diff --git a/packages/runtime/src/__tests__/request-shape.test.ts b/packages/runtime/src/__tests__/request-shape.test.ts index 29a7526797..e448d70589 100644 --- a/packages/runtime/src/__tests__/request-shape.test.ts +++ b/packages/runtime/src/__tests__/request-shape.test.ts @@ -240,10 +240,6 @@ describe('prepared provider request capture', () => { assert.notEqual(anthropicMax, hash({ kimiCodingPlan: { reasoningEffort: 'none' } }, 32_768)); }); - - - - test('normalizes Anthropic thinking budget into the protocol-independent output limit', () => { const capture = (providerOptions: Record, maxOutputTokens: number) => requestShape.capturePreparedProviderRequest({ diff --git a/packages/runtime/src/__tests__/runtime-event-adapters.test.ts b/packages/runtime/src/__tests__/runtime-event-adapters.test.ts index a37d230511..94826466aa 100644 --- a/packages/runtime/src/__tests__/runtime-event-adapters.test.ts +++ b/packages/runtime/src/__tests__/runtime-event-adapters.test.ts @@ -816,8 +816,6 @@ describe('buildModelHistoryFromRuntimeEvents', () => { expect(collectToolActivityTurnIds(events).size).toBe(0); }); - - test('runtime replay plan carries thinking separately and text replay never leaks it', () => { const events: RuntimeEvent[] = [ ev({ @@ -1164,5 +1162,4 @@ describe('buildModelHistoryFromRuntimeEvents', () => { // Adapter + projection integration // ============================================================================ -describe('adapter → projection integration', () => { -}); +describe('adapter → projection integration', () => {}); diff --git a/packages/runtime/src/__tests__/runtime-event-read-model.test.ts b/packages/runtime/src/__tests__/runtime-event-read-model.test.ts index 5b31f26d0d..e6b88f1e4b 100644 --- a/packages/runtime/src/__tests__/runtime-event-read-model.test.ts +++ b/packages/runtime/src/__tests__/runtime-event-read-model.test.ts @@ -508,8 +508,6 @@ describe('projectRuntimeEventsToStoredMessages', () => { expect(out.diagnostics).toEqual([]); }); - - test('replays generic provider tool results without Maka result decoding', () => { const events = [ ev({ @@ -657,7 +655,6 @@ describe('projectRuntimeEventsToStoredMessages', () => { expect(out.diagnostics).toEqual([]); }); - test('projects first-observed step content order for stable live handoff', () => { const out = projectRuntimeEventsToStoredMessages( [ @@ -773,7 +770,6 @@ describe('projectRuntimeEventsToStoredMessages', () => { expect(archivedStatus(corruptProjected)).toBe('corrupt'); }); - test('partial RuntimeEvents are excluded', () => { const out = projectRuntimeEventsToStoredMessages( [ @@ -1716,7 +1712,6 @@ describe('RuntimeEventActions projection coverage', () => { }); describe('compareRuntimeReadModelMessages', () => { - test('treats nested JSON with different property order as compatible', () => { const projected = projectRuntimeEventsToStoredMessages( [ diff --git a/packages/runtime/src/__tests__/runtime-kernel-interaction.test.ts b/packages/runtime/src/__tests__/runtime-kernel-interaction.test.ts index 7952e8a7fd..1fb9f1bb34 100644 --- a/packages/runtime/src/__tests__/runtime-kernel-interaction.test.ts +++ b/packages/runtime/src/__tests__/runtime-kernel-interaction.test.ts @@ -113,7 +113,6 @@ describe('RuntimeKernel Interaction close cleanup', () => { assert.equal(closeCalls, 1); }); - test('explicit stop starts backend cleanup before deferred close settles and reports both failures', async () => { const stopFailure = new Error('backend stop rejected'); const fixture = runtimeFixture({ deferredClose: true, stopFailure }); diff --git a/packages/runtime/src/__tests__/runtime-runner.test.ts b/packages/runtime/src/__tests__/runtime-runner.test.ts index 1881f83c03..e661d573d6 100644 --- a/packages/runtime/src/__tests__/runtime-runner.test.ts +++ b/packages/runtime/src/__tests__/runtime-runner.test.ts @@ -171,8 +171,6 @@ describe('RuntimeRunner', () => { expect(result.startedAt <= result.finishedAt).toBe(true); }); - - test('initial event declares the tool boundary protocol only when the durable boundary is active', async () => { const providers = makeProviders(); const flow = new ScriptFlow((ctx) => [flowTerminalEvent(ctx, 'completed')]); @@ -236,8 +234,6 @@ describe('RuntimeRunner', () => { expect(result.failure?.class).toBe('missing_final_output'); }); - - test('stopOnTerminal false keeps draining and fails on any non-completed terminal event', async () => { const providers = makeProviders(); const flow = new ScriptFlow((ctx) => [ @@ -442,8 +438,6 @@ describe('RuntimeRunner', () => { expect(result.failure?.terminalStatus).toBe('failed'); }); - - test('already-aborted signal before dispatch yields a failed result without flow dispatch', async () => { const providers = makeProviders(); const ac = new AbortController(); @@ -458,9 +452,4 @@ describe('RuntimeRunner', () => { expect(result.events).toEqual([]); expect(flow.seen).toEqual([]); }); - - - - - }); diff --git a/packages/runtime/src/__tests__/semantic-compact.test.ts b/packages/runtime/src/__tests__/semantic-compact.test.ts index a1588925a3..22f079e7cb 100644 --- a/packages/runtime/src/__tests__/semantic-compact.test.ts +++ b/packages/runtime/src/__tests__/semantic-compact.test.ts @@ -528,7 +528,6 @@ describe('semantic compact', () => { assert.doesNotMatch(rendered, /providerSourceIds=/); }); - test('preserves prior replay and the exact multimodal current-user head anchor', async () => { const messages = [ { role: 'user', content: 'prior user' }, diff --git a/packages/runtime/src/__tests__/session-manager.test.ts b/packages/runtime/src/__tests__/session-manager.test.ts index b80b9c0404..2fea4ba1ad 100644 --- a/packages/runtime/src/__tests__/session-manager.test.ts +++ b/packages/runtime/src/__tests__/session-manager.test.ts @@ -124,8 +124,7 @@ import type { AgentGraphRunnableIntent } from '../stream-graph-readiness.js'; * before a turn starts and after it ends, and a crash between a turn's end and * its status write leaves `running` in storage forever. */ -describe('SessionManager running-turn projection', () => { -}); +describe('SessionManager running-turn projection', () => {}); describe('SessionManager Plan control boundaries', () => { test('an exact approval retry completes Session side effects after a partial failure', async () => { @@ -360,8 +359,7 @@ describe('SessionManager Plan control boundaries', () => { }); }); -describe('SessionManager child-session read model', () => { -}); +describe('SessionManager child-session read model', () => {}); describe('SessionManager graph operator provisioning', () => { test('provisions a graph operator before its active supervisor turn returns', async () => { @@ -585,7 +583,6 @@ describe('SessionManager graph operator provisioning', () => { expect(await runStore.listSessionRuns(result.header.id)).toEqual([]); }); - test('keeps four large graph branches and a replacement off the supervisor data plane', async () => { const store = new MemorySessionStore(); const runStore = new MemoryAgentRunStore(); @@ -3337,7 +3334,6 @@ describe('SessionManager child-session runtime primitive', () => { while (!(await parentTurn.next()).done) {} }); - test('recovers an idempotent retry whose persisted initial run is no longer active', async () => { const store = new MemorySessionStore(); const runStore = new MemoryAgentRunStore(); @@ -3737,7 +3733,6 @@ describe('SessionManager child-session runtime primitive', () => { }); describe('SessionManager automatic titles', () => { - test('falls back once on generation failure', async () => { const store = new MemorySessionStore(); const backends = new BackendRegistry(); @@ -5045,9 +5040,6 @@ describe('SessionManager permission mode updates', () => { expect(summary.permissionMode).toBe('execute'); }); - - - test('leaving explore clears the deep research label so visible read-only copy stays truthful', async () => { const store = new MemorySessionStore(); const backends = new BackendRegistry(); @@ -5114,7 +5106,6 @@ describe('SessionManager permission mode updates', () => { ]); }); - test('starts a new turn without workspace identity when safety inspection fails', async () => { const store = new MemorySessionStore(); const runStore = new MemoryAgentRunStore(); @@ -6749,7 +6740,6 @@ describe('SessionManager permission mode updates', () => { expect(nextPlan.disposition).toBe('continue'); }); - test('rejects continuation when the authoritative workspace identity changes after planning', async () => { const store = new MemorySessionStore(); const runStore = new MemoryAgentRunStore(); @@ -7131,7 +7121,6 @@ describe('SessionManager permission mode updates', () => { expect(backendCalls).toBe(0); }); - test('terminal RuntimeEvent is recorded when terminal session projection fails', async () => { const store = new MemorySessionStore(); const runStore = new MemoryAgentRunStore(); @@ -7656,7 +7645,6 @@ describe('SessionManager permission mode updates', () => { expect(await runStore.listSessionRuns(session.id)).toHaveLength(0); }); - test('sendMessage rejects prior runtime context without a valid terminal fact', async () => { const store = new MemorySessionStore(); const runStore = new MemoryAgentRunStore(); @@ -7814,7 +7802,6 @@ describe('SessionManager permission mode updates', () => { ]); }); - test('RuntimeReadModel projects messages turns replay and terminal facts without SessionStore messages', async () => { const store = new MemorySessionStore(); const runStore = new MemoryAgentRunStore(); @@ -8213,10 +8200,6 @@ describe('SessionManager permission mode updates', () => { ]); }); - - - - test('getMessages repairs a non-empty RuntimeEvent ledger that is missing only the terminal fact', async () => { const store = new MemorySessionStore(); const runStore = new MemoryAgentRunStore(); @@ -8293,10 +8276,6 @@ describe('SessionManager permission mode updates', () => { expect(runtimeEvents.at(-1)?.refs?.storedMessageId).toBe('legacy-state'); }); - - - - test('getMessages repair writes terminal turn_state for a continuation run', async () => { const store = new MemorySessionStore(); const runStore = new MemoryAgentRunStore(); @@ -9101,8 +9080,6 @@ describe('SessionManager permission mode updates', () => { ).toEqual(['boundary-pending']); }); - - test('mixed projection-cache-only system notes do not override RuntimeEvent projection', async () => { const store = new MemorySessionStore(); const runStore = new MemoryAgentRunStore(); @@ -10036,9 +10013,6 @@ describe('SessionManager permission mode updates', () => { expect(childInput.runtimeContext).toBe(undefined); }); - - - test('resumeChildAgent replays durable child history into a fresh lineage run', async () => { const store = new MemorySessionStore(); const runStore = new MemoryAgentRunStore(); @@ -12849,7 +12823,6 @@ describe('SessionManager permission mode updates', () => { expect(run?.completedAt).toBeDefined(); }); - test('history compact cleanup includes continuation events without including child agent events', async () => { const store = new MemorySessionStore(); const runStore = new MemoryAgentRunStore(); diff --git a/packages/runtime/src/__tests__/session-trace-projection.test.ts b/packages/runtime/src/__tests__/session-trace-projection.test.ts index d9ee88ee41..a8fe22f38b 100644 --- a/packages/runtime/src/__tests__/session-trace-projection.test.ts +++ b/packages/runtime/src/__tests__/session-trace-projection.test.ts @@ -55,7 +55,6 @@ function event(overrides: Partial = {}): RuntimeEvent { } describe('session trace projection', () => { - test('a session of entirely unpriced calls totals to no price, not to zero', () => { const trace = projectSessionTrace({ sessionId: 'session-1', @@ -68,9 +67,6 @@ describe('session trace projection', () => { assert.equal(trace.turns[0]?.steps[0]?.kind, 'model_call'); }); - - - test('attributes a turn failure to what failed first, not to the terminal error', () => { const trace = projectSessionTrace({ sessionId: 'session-1', @@ -237,7 +233,6 @@ describe('session trace projection', () => { assert.deepEqual(trace.coverage.turnsWithFewerModelCallsThanSteps, []); }); - test('a tool failure the turn recovered from does not fail the turn', () => { // The ledger's terminal verdict decides whether the turn failed; the failed // step only locates a cause once that is established. @@ -290,8 +285,6 @@ describe('session trace projection', () => { ); }); - - test('an unreadable record is a known gap even with no other evidence of one', () => { // The reader counts what it could not decode; the projection has to carry // that through, or spend nobody can see reads as a clean session. diff --git a/packages/runtime/src/__tests__/skills-governance.test.ts b/packages/runtime/src/__tests__/skills-governance.test.ts index a458f7b676..8f4d7fae4c 100644 --- a/packages/runtime/src/__tests__/skills-governance.test.ts +++ b/packages/runtime/src/__tests__/skills-governance.test.ts @@ -261,7 +261,6 @@ describe('shared skill preference semantics', () => { ok: true, target: inventory[2], }); - }); it('patches one stable ref and clears review only after every collision is explicit', () => { @@ -295,8 +294,6 @@ describe('shared skill preference semantics', () => { assert.equal(second.preferences.get(inventory[1].ref)?.enabled, true); }); - - it('resolves case-only stable refs exactly while keeping bare ids normalized', () => { const caseInventory = [ { ref: 'project:maka:Shared', id: 'Shared' }, diff --git a/packages/runtime/src/__tests__/skills.test.ts b/packages/runtime/src/__tests__/skills.test.ts index 1145b7274f..ce0943c3f8 100644 --- a/packages/runtime/src/__tests__/skills.test.ts +++ b/packages/runtime/src/__tests__/skills.test.ts @@ -1334,8 +1334,6 @@ Body.`, }); }); - - it('re-evaluates zero-match schema v2 bare preferences after multi-scope discovery changes', async () => { await withWorkspace(async (workspaceRoot) => { const projectRoot = join(workspaceRoot, 'project'); diff --git a/packages/runtime/src/__tests__/stream-graph-projection.test.ts b/packages/runtime/src/__tests__/stream-graph-projection.test.ts index 3db298c8a2..203cec9a55 100644 --- a/packages/runtime/src/__tests__/stream-graph-projection.test.ts +++ b/packages/runtime/src/__tests__/stream-graph-projection.test.ts @@ -610,7 +610,6 @@ describe('committed stream graph projection', () => { assert.equal(state.operators.research?.currentActivationId, 'run-2'); }); - test('fails closed on ambiguous authority or impossible replay order', async () => { const run = runHeader({ sessionId: 'child-a', diff --git a/packages/runtime/src/__tests__/subagent-tools.test.ts b/packages/runtime/src/__tests__/subagent-tools.test.ts index 897dcd7975..6ca965f4de 100644 --- a/packages/runtime/src/__tests__/subagent-tools.test.ts +++ b/packages/runtime/src/__tests__/subagent-tools.test.ts @@ -321,7 +321,6 @@ describe('subagent tools', () => { }); }); - test('agent definition policy uses the explicit tool allowlist', () => { expect( evaluateAgentDefinitionToolAccess( @@ -380,7 +379,6 @@ describe('subagent tools', () => { ).toEqual({ status: 'available' }); }); - test('child agent toolset keeps only built-in profile allowlisted tools', () => { const tools = buildChildAgentTools([ ...buildBuiltinTools(), @@ -562,7 +560,6 @@ describe('subagent tools', () => { }); }); - test('agent_spawn bounds projected child tool activity', async () => { const tool = buildSubagentSpawnTool(); const output: string[] = []; @@ -1260,7 +1257,6 @@ describe('subagent tools', () => { expect(JSON.stringify(worstCase).length <= 7_000).toBe(true); }); - test('agent_output uses an explicit locator when a provider fills unrelated fields', async () => { const outputTool = buildSubagentOutputTool(); const parsed = ( diff --git a/packages/runtime/src/__tests__/subscription-model-fetch.test.ts b/packages/runtime/src/__tests__/subscription-model-fetch.test.ts index 7f18f5d19c..cc5a95ef7f 100644 --- a/packages/runtime/src/__tests__/subscription-model-fetch.test.ts +++ b/packages/runtime/src/__tests__/subscription-model-fetch.test.ts @@ -52,7 +52,6 @@ describe('subscription model fetch', () => { assert.equal(body.cache_control, undefined); }); - test('rejects Claude subscription cloaking without complete metadata', () => { assert.throws( () => @@ -232,9 +231,6 @@ describe('subscription model fetch', () => { assert.equal(attempts, 1); }); - - - test('aborts while waiting to retry an HTML 403', async () => { let attempts = 0; const controller = new AbortController(); diff --git a/packages/runtime/src/__tests__/task-ledger-tools.test.ts b/packages/runtime/src/__tests__/task-ledger-tools.test.ts index 44771d51ef..078a24625a 100644 --- a/packages/runtime/src/__tests__/task-ledger-tools.test.ts +++ b/packages/runtime/src/__tests__/task-ledger-tools.test.ts @@ -177,7 +177,6 @@ describe('task ledger tools', () => { } }); - test('task tool feature flag defaults on and can be disabled explicitly', () => { assert.equal(isTaskLedgerToolsEnabled({}), true); assert.equal(isTaskLedgerToolsEnabled({ MAKA_TASK_LEDGER_TOOLS: 'false' }), false); diff --git a/packages/runtime/src/__tests__/tool-availability.test.ts b/packages/runtime/src/__tests__/tool-availability.test.ts index fd581e4fed..c0963f73ba 100644 --- a/packages/runtime/src/__tests__/tool-availability.test.ts +++ b/packages/runtime/src/__tests__/tool-availability.test.ts @@ -170,7 +170,6 @@ describe('ToolAvailabilityRuntime — durable ledger seed', () => { assert.ok(!plan.activeTools.includes('docs_edit'), 'unseeded group still hidden'); }); - test('an unknown seeded group id is ignored (forward compatible)', () => { const plan = runtime(true).prepare([event(LOAD_TOOLS_NAME, { group: 'ghost' })]); assert.ok(!plan.activeTools.includes('rive_run')); @@ -255,7 +254,6 @@ describe('ToolAvailabilityRuntime — activation robustness', () => { assert.ok(!after.activeTools.includes('rive_run'), 'malformed input activates nothing'); }); - test('a non-function_call ledger event does not seed a group', () => { const plan = runtime(true).prepare([ { content: { kind: 'function_response', name: LOAD_TOOLS_NAME, args: { group: 'rive' } } }, diff --git a/packages/runtime/src/__tests__/tool-catalog-derive.test.ts b/packages/runtime/src/__tests__/tool-catalog-derive.test.ts index d6f9a5adda..be6e8d5230 100644 --- a/packages/runtime/src/__tests__/tool-catalog-derive.test.ts +++ b/packages/runtime/src/__tests__/tool-catalog-derive.test.ts @@ -155,7 +155,6 @@ describe('projectEffectiveProductToolSurface', () => { ); }); - it('treats a scoped child binding as a hard ceiling', () => { const surface = projectEffectiveProductToolSurface({ host: 'desktop', diff --git a/packages/storage/src/__tests__/agent-graph-intent-claims.test.ts b/packages/storage/src/__tests__/agent-graph-intent-claims.test.ts index 1d6fc9488d..7892484f92 100644 --- a/packages/storage/src/__tests__/agent-graph-intent-claims.test.ts +++ b/packages/storage/src/__tests__/agent-graph-intent-claims.test.ts @@ -125,7 +125,6 @@ describe('SQLite agent graph intent claims', () => { store.close(); } }); - }); function request( diff --git a/packages/storage/src/__tests__/agent-graph-supervisor-wakes.test.ts b/packages/storage/src/__tests__/agent-graph-supervisor-wakes.test.ts index de20d45eca..7a419a9787 100644 --- a/packages/storage/src/__tests__/agent-graph-supervisor-wakes.test.ts +++ b/packages/storage/src/__tests__/agent-graph-supervisor-wakes.test.ts @@ -200,5 +200,4 @@ describe('SQLite Agent Graph supervisor wakes', () => { store.close(); } }); - }); diff --git a/packages/storage/src/__tests__/credential-store.test.ts b/packages/storage/src/__tests__/credential-store.test.ts index 870ede2aa9..1291fbb6d5 100644 --- a/packages/storage/src/__tests__/credential-store.test.ts +++ b/packages/storage/src/__tests__/credential-store.test.ts @@ -346,5 +346,4 @@ describe('FileCredentialStore secret-kind + slug contract', () => { ['proxy_password', 'proxyPassword'], ['tavily_api_key', 'tavilyApiKey'], ]; - }); diff --git a/packages/storage/src/__tests__/memory-bundle-store.test.ts b/packages/storage/src/__tests__/memory-bundle-store.test.ts index af470f3288..58044814ea 100644 --- a/packages/storage/src/__tests__/memory-bundle-store.test.ts +++ b/packages/storage/src/__tests__/memory-bundle-store.test.ts @@ -123,7 +123,6 @@ describe('interactive Memory bundle storage authority', () => { }); }); - test('restores a selected backup, preserves PENDING.md, and rotates restore undo history', async () => { await withInteractiveOwner(async ({ root, owner }) => { const store = await openInteractiveMemoryBundleStoreForWrite(owner.lease); diff --git a/packages/storage/src/__tests__/runtime-policy-stores.test.ts b/packages/storage/src/__tests__/runtime-policy-stores.test.ts index 1a01f4409c..0432ba9d67 100644 --- a/packages/storage/src/__tests__/runtime-policy-stores.test.ts +++ b/packages/storage/src/__tests__/runtime-policy-stores.test.ts @@ -45,9 +45,6 @@ import { const execFileAsync = promisify(execFile); describe('runtime policy stores', () => { - - - test('persists extra request bodies and resolves custom headers as secret execution material', async () => { await withInteractiveOwner(async ({ stores }) => { const connection = await createConnection(stores, 0, { diff --git a/packages/storage/src/__tests__/sqlite-session-metadata-store.test.ts b/packages/storage/src/__tests__/sqlite-session-metadata-store.test.ts index b0d6c8ef66..309bb9214d 100644 --- a/packages/storage/src/__tests__/sqlite-session-metadata-store.test.ts +++ b/packages/storage/src/__tests__/sqlite-session-metadata-store.test.ts @@ -29,7 +29,6 @@ import { import { SQLITE_AGENT_GRAPH_CONTROL_TABLES } from '../sqlite-session-metadata-schema.js'; describe('SqliteSessionMetadataStore', () => { - test('round-trips every SessionHeader field and reopens the same schema', async () => { const root = await mkdtemp(join(tmpdir(), 'maka-session-metadata-')); const path = join(root, 'state.sqlite'); @@ -220,7 +219,6 @@ describe('SqliteSessionMetadataStore', () => { } }); - test('creates a deterministic revision-zero execution boundary for every legacy mode', async () => { const store = createSqliteSessionMetadataStore(':memory:'); try { @@ -934,7 +932,6 @@ describe('SqliteSessionMetadataStore', () => { } }); - test('lists only pending sandbox boundary requests for resume', async () => { const store = createSqliteSessionMetadataStore(':memory:'); try { @@ -965,7 +962,6 @@ describe('SqliteSessionMetadataStore', () => { } }); - test('filters indexed flags, archive state, and normalized labels in recency order', async () => { const store = createSqliteSessionMetadataStore(':memory:'); try { @@ -1237,7 +1233,6 @@ describe('SqliteSessionMetadataStore', () => { } }); - test('updates metadata and labels with a compare-and-set version', async () => { const store = createSqliteSessionMetadataStore(':memory:', { now: nextNow(10) }); try { @@ -1819,7 +1814,6 @@ describe('SQLite agent graph operator provisions', () => { } }); - test('rolls back child and topology together on a provision failure', async () => { const store = createSqliteSessionMetadataStore(':memory:', { failpoint(point) { diff --git a/packages/storage/src/__tests__/sqlite-workflow-store.test.ts b/packages/storage/src/__tests__/sqlite-workflow-store.test.ts index e9031750d1..0722e78450 100644 --- a/packages/storage/src/__tests__/sqlite-workflow-store.test.ts +++ b/packages/storage/src/__tests__/sqlite-workflow-store.test.ts @@ -229,8 +229,6 @@ describe('SQLite workflow stores', () => { }); }); - - test('purges Plan events and projections for retired Sessions', async () => { await withRoot(async (root) => { const store = createSqlitePlanStore(root);