@@ -925,7 +925,7 @@ describe("session.compaction.process", () => {
925925 auto : false ,
926926 } )
927927
928- const rt = runtime ( "continue" , Plugin . defaultLayer , wide ( ) , cfg ( { tail_turns : 2 , tail_tokens : 10_000 } ) )
928+ const rt = runtime ( "continue" , Plugin . defaultLayer , wide ( ) , cfg ( { tail_turns : 2 , preserve_recent_tokens : 10_000 } ) )
929929 try {
930930 const msgs = await svc . messages ( { sessionID : session . id } )
931931 const parent = msgs . at ( - 1 ) ?. info . id
@@ -954,7 +954,7 @@ describe("session.compaction.process", () => {
954954 } )
955955 } )
956956
957- test ( "shrinks retained tail to fit tail token budget" , async ( ) => {
957+ test ( "shrinks retained tail to fit preserve token budget" , async ( ) => {
958958 await using tmp = await tmpdir ( )
959959 await Instance . provide ( {
960960 directory : tmp . path ,
@@ -970,7 +970,7 @@ describe("session.compaction.process", () => {
970970 auto : false ,
971971 } )
972972
973- const rt = runtime ( "continue" , Plugin . defaultLayer , wide ( ) , cfg ( { tail_turns : 2 , tail_tokens : 100 } ) )
973+ const rt = runtime ( "continue" , Plugin . defaultLayer , wide ( ) , cfg ( { tail_turns : 2 , preserve_recent_tokens : 100 } ) )
974974 try {
975975 const msgs = await svc . messages ( { sessionID : session . id } )
976976 const parent = msgs . at ( - 1 ) ?. info . id
@@ -999,7 +999,7 @@ describe("session.compaction.process", () => {
999999 } )
10001000 } )
10011001
1002- test ( "falls back to full summary when even one recent turn exceeds tail budget" , async ( ) => {
1002+ test ( "falls back to full summary when even one recent turn exceeds preserve token budget" , async ( ) => {
10031003 await using tmp = await tmpdir ( { git : true } )
10041004 const stub = llm ( )
10051005 let captured = ""
@@ -1021,7 +1021,7 @@ describe("session.compaction.process", () => {
10211021 auto : false ,
10221022 } )
10231023
1024- const rt = liveRuntime ( stub . layer , wide ( ) , cfg ( { tail_turns : 1 , tail_tokens : 20 } ) )
1024+ const rt = liveRuntime ( stub . layer , wide ( ) , cfg ( { tail_turns : 1 , preserve_recent_tokens : 20 } ) )
10251025 try {
10261026 const msgs = await svc . messages ( { sessionID : session . id } )
10271027 const parent = msgs . at ( - 1 ) ?. info . id
@@ -1051,7 +1051,7 @@ describe("session.compaction.process", () => {
10511051 } )
10521052 } )
10531053
1054- test ( "falls back to full summary when retained tail media exceeds tail budget" , async ( ) => {
1054+ test ( "falls back to full summary when retained tail media exceeds preserve token budget" , async ( ) => {
10551055 await using tmp = await tmpdir ( { git : true } )
10561056 const stub = llm ( )
10571057 let captured = ""
@@ -1082,7 +1082,7 @@ describe("session.compaction.process", () => {
10821082 auto : false ,
10831083 } )
10841084
1085- const rt = liveRuntime ( stub . layer , wide ( ) , cfg ( { tail_turns : 1 , tail_tokens : 100 } ) )
1085+ const rt = liveRuntime ( stub . layer , wide ( ) , cfg ( { tail_turns : 1 , preserve_recent_tokens : 100 } ) )
10861086 try {
10871087 const msgs = await svc . messages ( { sessionID : session . id } )
10881088 const parent = msgs . at ( - 1 ) ?. info . id
@@ -1544,7 +1544,7 @@ describe("session.compaction.process", () => {
15441544 auto : false ,
15451545 } )
15461546
1547- const rt = liveRuntime ( stub . layer , wide ( ) , cfg ( { tail_turns : 2 , tail_tokens : 10_000 } ) )
1547+ const rt = liveRuntime ( stub . layer , wide ( ) , cfg ( { tail_turns : 2 , preserve_recent_tokens : 10_000 } ) )
15481548 try {
15491549 let msgs = await svc . messages ( { sessionID : session . id } )
15501550 let parent = msgs . at ( - 1 ) ?. info . id
0 commit comments