@@ -61,7 +61,6 @@ describe("pruning compactor preserves tool_call/tool_result pairing", () => {
6161 // Pin a tiny tail budget so the fold covers the older region the old
6262 // keepRecentTurns cut.
6363 compactionShape : { tailBudgetTokens : 120 } ,
64- maxAnchorTurns : 2 ,
6564 } ) ;
6665 const { output } = await compactor . apply ( turns , { } as never ) ;
6766 expect ( ( ) => assertWellFormedToolSequence ( output ) ) . not . toThrow ( ) ;
@@ -84,7 +83,6 @@ describe("pruning compactor preserves tool_call/tool_result pairing", () => {
8483 // Pin a tiny tail budget so the fold covers the older region the old
8584 // keepRecentTurns cut.
8685 compactionShape : { tailBudgetTokens : 120 } ,
87- maxAnchorTurns : 2 ,
8886 } ) ;
8987 const { output } = await compactor . apply ( turns , { } as never ) ;
9088 expect ( ( ) => assertWellFormedToolSequence ( output ) ) . not . toThrow ( ) ;
@@ -129,7 +127,6 @@ describe("pruning compactor preserves tool_call/tool_result pairing", () => {
129127 // Pin a tiny tail budget so the fold covers the older region the old
130128 // keepRecentTurns cut.
131129 compactionShape : { tailBudgetTokens : 120 } ,
132- maxAnchorTurns : 2 ,
133130 } ) ;
134131 const { output } = await compactor . apply ( turns , { } as never ) ;
135132 const kept = output . find ( ( t ) =>
@@ -182,7 +179,6 @@ describe("pruning compactor preserves tool_call/tool_result pairing", () => {
182179 // Pin a tiny tail budget so the fold covers the older region the old
183180 // keepRecentTurns cut.
184181 compactionShape : { tailBudgetTokens : 120 } ,
185- maxAnchorTurns : 2 ,
186182 } ) ;
187183 const { output } = await compactor . apply ( turns , { } as never ) ;
188184 const kept = output . find ( ( t ) =>
@@ -208,7 +204,7 @@ describe("pruning compactor preserves tool_call/tool_result pairing", () => {
208204 ] ,
209205 timestamp : 1 ,
210206 } ;
211- const summary = buildTurnSummary ( [ big ] , 2000 , 0 ) ;
207+ const summary = buildTurnSummary ( [ big ] , 2000 ) ;
212208 const tokens = Number ( summary . match ( / E s t i m a t e d t o k e n s : ~ ( \d + ) / ) ?. [ 1 ] ?? - 1 ) ;
213209 // A 100KB text result is ~25000 tokens; the old String(content) bug yielded ~4.
214210 expect ( tokens ) . toBeGreaterThan ( 20000 ) ;
@@ -285,7 +281,6 @@ describe("pruning compactor stubs superseded file reads (CL-4374)", () => {
285281 const compactor = createPruningCompactor ( {
286282 // Whole transcript is the tail so stubbing still runs with no summarized region.
287283 compactionShape : TAIL_SWALLOWS_TRANSCRIPT ,
288- maxAnchorTurns : 2 ,
289284 } ) ;
290285 const { output } = await compactor . apply ( turns , { } as never ) ;
291286
@@ -317,7 +312,6 @@ describe("pruning compactor stubs superseded file reads (CL-4374)", () => {
317312 ] ;
318313 const compactor = createPruningCompactor ( {
319314 compactionShape : TAIL_SWALLOWS_TRANSCRIPT ,
320- maxAnchorTurns : 2 ,
321315 } ) ;
322316 const { output } = await compactor . apply ( turns , { } as never ) ;
323317
@@ -345,7 +339,6 @@ describe("pruning compactor stubs superseded file reads (CL-4374)", () => {
345339 // Newest pair + end fit the token budget; the older pair is summarized.
346340 const compactor = createPruningCompactor ( {
347341 compactionShape : { tailBudgetTokens : 80 } ,
348- maxAnchorTurns : 0 ,
349342 } ) ;
350343 const { output } = await compactor . apply ( turns , { } as never ) ;
351344 expect ( resultText ( output , "old" ) ) . toBeUndefined ( ) ;
@@ -391,7 +384,6 @@ describe("pruning compactor stubs superseded file reads (CL-4374)", () => {
391384 ] ;
392385 const compactor = createPruningCompactor ( {
393386 compactionShape : TAIL_SWALLOWS_TRANSCRIPT ,
394- maxAnchorTurns : 2 ,
395387 } ) ;
396388 const { output } = await compactor . apply ( turns , { } as never ) ;
397389 expect ( resultText ( output , "r1" ) ) . toBe ( body1 ) ;
@@ -438,7 +430,6 @@ describe("pruning compactor stubs superseded file reads (CL-4374)", () => {
438430 ] ;
439431 const compactor = createPruningCompactor ( {
440432 compactionShape : TAIL_SWALLOWS_TRANSCRIPT ,
441- maxAnchorTurns : 2 ,
442433 } ) ;
443434 const { output } = await compactor . apply ( turns , { } as never ) ;
444435 const older = resultText ( output , "r1" ) ;
@@ -504,7 +495,6 @@ describe("pruning compactor extends superseded-result stubbing to query tools (C
504495 ] ;
505496 const compactor = createPruningCompactor ( {
506497 compactionShape : TAIL_SWALLOWS_TRANSCRIPT ,
507- maxAnchorTurns : 2 ,
508498 } ) ;
509499 const { output } = await compactor . apply ( turns , { } as never ) ;
510500 const older = resultText ( output , "q1" ) ;
@@ -531,7 +521,6 @@ describe("pruning compactor extends superseded-result stubbing to query tools (C
531521 ] ;
532522 const compactor = createPruningCompactor ( {
533523 compactionShape : TAIL_SWALLOWS_TRANSCRIPT ,
534- maxAnchorTurns : 2 ,
535524 } ) ;
536525 const { output } = await compactor . apply ( turns , { } as never ) ;
537526 expect ( resultText ( output , "g1" ) ) . toBe ( body1 ) ;
@@ -558,7 +547,6 @@ describe("pruning compactor extends superseded-result stubbing to query tools (C
558547 ] ;
559548 const compactor = createPruningCompactor ( {
560549 compactionShape : TAIL_SWALLOWS_TRANSCRIPT ,
561- maxAnchorTurns : 2 ,
562550 } ) ;
563551 const { output } = await compactor . apply ( turns , { } as never ) ;
564552 expect ( resultText ( output , "sh1" ) ) . toBe ( oldBody ) ;
@@ -591,7 +579,6 @@ describe("CL-9489 budgeted tail does not ingest gap turns", () => {
591579 turns [ turns . length - 1 ] = fatResult ;
592580
593581 const { output, record } = await createPruningCompactor ( {
594- maxAnchorTurns : 0 ,
595582 compactionShape : { tailBudgetTokens : 400 } ,
596583 } ) . apply ( turns , { } as never ) ;
597584
0 commit comments