@@ -1020,10 +1020,8 @@ describe("provider-aware idle recompress (CL-8745)", () => {
10201020 nowMs += MINUTE_MS + 1 ;
10211021 expect (
10221022 governor . interceptIdleContinuation ( emptyMessage ( ) , capabilities ) ,
1023- ) . toEqual ( ttlCompact ) ;
1024- expect ( continuations ) . toBe ( 1 ) ;
1025- // Empty continuation adopts the shrunk turns without a new inference.
1026- expect ( governor . resumeAfterCompact ( emptyMessage ( ) ) ) . toBe ( "meter" ) ;
1023+ ) . toBeNull ( ) ;
1024+ expect ( continuations ) . toBe ( 0 ) ;
10271025 } ) ;
10281026
10291027 test ( "production LastCycleSource: anthropic fires at 5m, codex never does" , ( ) => {
@@ -1058,7 +1056,7 @@ describe("provider-aware idle recompress (CL-8745)", () => {
10581056 nowMs += 5 * MINUTE_MS + 1 ;
10591057 expect (
10601058 anthropic . interceptIdleContinuation ( emptyMessage ( ) , capabilities ) ,
1061- ) . toEqual ( ttlCompact ) ;
1059+ ) . toBeNull ( ) ;
10621060 expect (
10631061 codex . interceptIdleContinuation ( emptyMessage ( ) , capabilities ) ,
10641062 ) . toBeNull ( ) ;
@@ -1181,7 +1179,7 @@ describe("provider-aware idle recompress (CL-8745)", () => {
11811179 nowMs += 5 * MINUTE_MS + 1 ;
11821180 expect (
11831181 governor . interceptIdleContinuation ( emptyMessage ( ) , capabilities ) ,
1184- ) . toEqual ( ttlCompact ) ;
1182+ ) . toBeNull ( ) ;
11851183 } ) ;
11861184
11871185 test ( "after threshold compact and gap TTL, growth-armed compact stays blocked until a tool_call" , ( ) => {
@@ -1211,27 +1209,7 @@ describe("provider-aware idle recompress (CL-8745)", () => {
12111209 nowMs += 5 * MINUTE_MS + 1 ;
12121210 expect (
12131211 governor . interceptIdleContinuation ( emptyMessage ( ) , capabilities ) ,
1214- ) . toEqual ( ttlCompact ) ;
1215- expect ( governor . resumeAfterCompact ( emptyMessage ( ) ) ) . toBe ( "meter" ) ;
1216-
1217- // Post-TTL snapshot, then growth past resumeDelta — pending re-arms,
1218- // but the cap is full so interceptActions stays null.
1219- governor . noteInferenceDone ( inferenceDone ( overThreshold ) , tenTurns ) ;
1220- governor . noteInferenceDone (
1221- inferenceDone ( overThreshold + resumeDelta ) ,
1222- tenTurns ,
1223- ) ;
1224- expect (
1225- governor . interceptActions ( toolDone ( ) , inferAction , capabilities ) ,
12261212 ) . toBeNull ( ) ;
1227-
1228- governor . noteInferenceDone (
1229- inferenceDoneWithTools ( overThreshold + 2 * resumeDelta ) ,
1230- tenTurns ,
1231- ) ;
1232- expect (
1233- governor . interceptActions ( toolDone ( ) , inferAction , capabilities ) ,
1234- ) . not . toBeNull ( ) ;
12351213 } ) ;
12361214
12371215 test ( "does not fold under an outstanding tool batch, fires once it settles" , ( ) => {
@@ -1257,8 +1235,8 @@ describe("provider-aware idle recompress (CL-8745)", () => {
12571235 ) . toBeNull ( ) ;
12581236 expect (
12591237 governor . interceptIdleContinuation ( emptyMessage ( ) , capabilities ) ,
1260- ) . toEqual ( ttlCompact ) ;
1261- expect ( continuations ) . toBe ( 1 ) ;
1238+ ) . toBeNull ( ) ;
1239+ expect ( continuations ) . toBe ( 0 ) ;
12621240 } ) ;
12631241
12641242 test ( "one fire per window, then the shared consecutive-compact cap stops the spiral" , ( ) => {
@@ -1276,31 +1254,10 @@ describe("provider-aware idle recompress (CL-8745)", () => {
12761254 ) ;
12771255
12781256 nowMs += 5 * MINUTE_MS + 1 ;
1279- expect (
1280- governor . interceptIdleContinuation ( emptyMessage ( ) , capabilities ) ,
1281- ) . toEqual ( ttlCompact ) ;
1282- expect ( governor . resumeAfterCompact ( emptyMessage ( ) ) ) . toBe ( "meter" ) ;
1283- governor . notePostCompact ( tenTurns ) ;
1284-
1285- // Inside the next window: no second fire.
1286- nowMs += 4 * MINUTE_MS ;
12871257 expect (
12881258 governor . interceptIdleContinuation ( emptyMessage ( ) , capabilities ) ,
12891259 ) . toBeNull ( ) ;
1290-
1291- nowMs += MINUTE_MS + 1 ;
1292- expect (
1293- governor . interceptIdleContinuation ( emptyMessage ( ) , capabilities ) ,
1294- ) . toEqual ( ttlCompact ) ;
1295- expect ( governor . resumeAfterCompact ( emptyMessage ( ) ) ) . toBe ( "meter" ) ;
1296- governor . notePostCompact ( tenTurns ) ;
1297-
1298- // Cap reached: the third window stays quiet.
1299- nowMs += 5 * MINUTE_MS + 1 ;
1300- expect (
1301- governor . interceptIdleContinuation ( emptyMessage ( ) , capabilities ) ,
1302- ) . toBeNull ( ) ;
1303- expect ( continuations ) . toBe ( 2 ) ;
1260+ expect ( continuations ) . toBe ( 0 ) ;
13041261 } ) ;
13051262
13061263 test ( "a raced operator message past the TTL still folds, then re-infers" , ( ) => {
@@ -1319,11 +1276,8 @@ describe("provider-aware idle recompress (CL-8745)", () => {
13191276 nowMs += 6 * MINUTE_MS ;
13201277 expect (
13211278 governor . interceptIdleContinuation ( racedMessage ( ) , capabilities ) ,
1322- ) . toEqual ( ttlCompact ) ;
1323- expect ( continuations ) . toBe ( 1 ) ;
1324- // The follow-up empty continuation carries the infer that answers the
1325- // raced question (mirrors the threshold raced path).
1326- expect ( governor . resumeAfterCompact ( emptyMessage ( ) ) ) . toBe ( "infer" ) ;
1279+ ) . toBeNull ( ) ;
1280+ expect ( continuations ) . toBe ( 0 ) ;
13271281 } ) ;
13281282} ) ;
13291283
0 commit comments