@@ -15,12 +15,11 @@ import {
1515 decodeCanonicalToolResultContent ,
1616 isSessionInlineRun ,
1717} from '@maka/core' ;
18+ import { createSqliteAgentRunStore , createSqliteRuntimeStore } from '@maka/storage' ;
1819import {
19- createAgentRunStore ,
20- createRuntimeEventStore ,
21- createSqliteAgentRunStore ,
22- createSqliteRuntimeStore ,
23- } from '@maka/storage' ;
20+ createLegacyAgentRunStoreForTest ,
21+ createLegacyRuntimeEventStoreForTest ,
22+ } from '@maka/storage/legacy-execution-test-support' ;
2423import {
2524 archivedToolResultContainsConversationOwnedReferences ,
2625 cloneConversationRuntimeLedger ,
@@ -412,8 +411,8 @@ test('conversation copy turn closure includes legacy children but excludes later
412411test ( 'conversation copy rejects a retained AgentRun without RuntimeEvent facts' , async ( ) => {
413412 const root = await mkdtemp ( join ( tmpdir ( ) , 'maka-conversation-missing-runtime-copy-' ) ) ;
414413 try {
415- const runStore = createAgentRunStore ( root ) ;
416- const runtimeEventStore = createRuntimeEventStore ( root ) ;
414+ const runStore = createLegacyAgentRunStoreForTest ( root ) ;
415+ const runtimeEventStore = createLegacyRuntimeEventStoreForTest ( root ) ;
417416 const rootRun = agentRunHeader ( {
418417 runId : 'run-root' ,
419418 invocationId : 'invocation-root' ,
@@ -693,8 +692,8 @@ test('conversation copy rewrites a complete tool recovery bundle atomically', as
693692test ( 'conversation copy validates operational events before persisting target ledgers' , async ( ) => {
694693 const root = await mkdtemp ( join ( tmpdir ( ) , 'maka-conversation-copy-preflight-' ) ) ;
695694 try {
696- const runStore = createAgentRunStore ( root ) ;
697- const runtimeEventStore = createRuntimeEventStore ( root ) ;
695+ const runStore = createLegacyAgentRunStoreForTest ( root ) ;
696+ const runtimeEventStore = createLegacyRuntimeEventStoreForTest ( root ) ;
698697 await runStore . createRun (
699698 agentRunHeader ( {
700699 runId : 'run-source' ,
@@ -763,8 +762,8 @@ test('conversation copy validates operational events before persisting target le
763762test ( 'conversation copy clones one terminal Runtime ledger with new owned identities' , async ( ) => {
764763 const root = await mkdtemp ( join ( tmpdir ( ) , 'maka-conversation-runtime-copy-' ) ) ;
765764 try {
766- const runStore = createAgentRunStore ( root ) ;
767- const runtimeEventStore = createRuntimeEventStore ( root ) ;
765+ const runStore = createLegacyAgentRunStoreForTest ( root ) ;
766+ const runtimeEventStore = createLegacyRuntimeEventStoreForTest ( root ) ;
768767 const sourceRun : AgentRunHeader = {
769768 runId : 'run-source' ,
770769 invocationId : 'invocation-source' ,
@@ -1130,8 +1129,8 @@ test('conversation copy clones one terminal Runtime ledger with new owned identi
11301129test ( 'conversation copy rebuilds an inline checkpoint without legacy child events in its prefix' , async ( ) => {
11311130 const root = await mkdtemp ( join ( tmpdir ( ) , 'maka-conversation-checkpoint-copy-' ) ) ;
11321131 try {
1133- const runStore = createAgentRunStore ( root ) ;
1134- const runtimeEventStore = createRuntimeEventStore ( root ) ;
1132+ const runStore = createLegacyAgentRunStoreForTest ( root ) ;
1133+ const runtimeEventStore = createLegacyRuntimeEventStoreForTest ( root ) ;
11351134 const firstRun = agentRunHeader ( {
11361135 runId : 'run-1' ,
11371136 invocationId : 'invocation-1' ,
@@ -1306,8 +1305,8 @@ test('conversation copy rebuilds an inline checkpoint without legacy child event
13061305test ( 'conversation copy rebuilds a resumed child checkpoint over its child run chain' , async ( ) => {
13071306 const root = await mkdtemp ( join ( tmpdir ( ) , 'maka-conversation-child-checkpoint-copy-' ) ) ;
13081307 try {
1309- const runStore = createAgentRunStore ( root ) ;
1310- const runtimeEventStore = createRuntimeEventStore ( root ) ;
1308+ const runStore = createLegacyAgentRunStoreForTest ( root ) ;
1309+ const runtimeEventStore = createLegacyRuntimeEventStoreForTest ( root ) ;
13111310 const rootRun = agentRunHeader ( {
13121311 runId : 'run-root' ,
13131312 invocationId : 'invocation-root' ,
0 commit comments