@@ -112,7 +112,9 @@ describe("qa scenario catalog causality", () => {
112112 expect ( liveMultiRestartContract ) . toContain ( "dmScope: env.cfg.session?.dmScope" ) ;
113113 expect ( liveMultiRestartContract ) . toContain ( '"saveAs":"inbound"' ) ;
114114 expect ( liveMultiRestartContract ) . toContain ( "probeText: config.finalMarker" ) ;
115- expect ( liveMultiRestartContract ) . toContain ( "completedToolCallCounts.wait ?? 0) < checkpoint" ) ;
115+ expect ( liveMultiRestartContract ) . toContain (
116+ "assistantToolCallCounts.wait ?? 0) > (summary.completedToolCallCounts.wait ?? 0)" ,
117+ ) ;
116118 expect ( checkpointTranscriptIndex ) . toBeGreaterThanOrEqual ( 0 ) ;
117119 expect ( checkpointStoreIndex ) . toBeGreaterThan ( checkpointTranscriptIndex ) ;
118120 expect ( checkpointPersistenceAssertIndex ) . toBeGreaterThan ( checkpointStoreIndex ) ;
@@ -199,7 +201,12 @@ describe("qa scenario catalog causality", () => {
199201 expect ( contract . match ( / " s e n d I n b o u n d " / gu) ) . toHaveLength ( 1 ) ;
200202 expect ( contract ) . not . toContain ( "startAgentRun" ) ;
201203 expect ( contract ) . not . toContain ( "chat.send" ) ;
202- expect ( contract ) . toContain ( "completedToolCallCounts.wait ?? 0) < checkpoint" ) ;
204+ expect ( contract ) . toContain (
205+ "assistantToolCallCounts.wait ?? 0) > (summary.completedToolCallCounts.wait ?? 0)" ,
206+ ) ;
207+ expect ( contract ) . toContain (
208+ "checkpointTranscript.assistantToolCallCounts.wait ?? 0) > (checkpointTranscript.completedToolCallCounts.wait ?? 0)" ,
209+ ) ;
203210 expect ( contract ) . toContain ( "probeText: config.promptMarker" ) ;
204211 expect ( pendingWaitIndex ) . toBeGreaterThanOrEqual ( 0 ) ;
205212 expect ( checkpointStoreIndex ) . toBeGreaterThan ( pendingWaitIndex ) ;
0 commit comments