@@ -1097,7 +1097,7 @@ describe("SessionRunnerLLM", () => {
10971097 currentModel = compactModel
10981098 requests . length = 0
10991099 responses = [
1100- fragmentFixture ( "text" , "text-summary" , [ "## Goal \n- Preserve the task" ] ) . completeEvents ,
1100+ fragmentFixture ( "text" , "text-summary" , [ "## Objective \n- Preserve the task" ] ) . completeEvents ,
11011101 fragmentFixture ( "text" , "text-final" , [ "Continued" ] ) . completeEvents ,
11021102 ]
11031103 yield * session . prompt ( {
@@ -1108,22 +1108,22 @@ describe("SessionRunnerLLM", () => {
11081108 yield * session . resume ( sessionID )
11091109
11101110 expect ( requests ) . toHaveLength ( 2 )
1111- expect ( userTexts ( requests [ 0 ] ) [ 0 ] ) . toContain ( "## Goal " )
1111+ expect ( userTexts ( requests [ 0 ] ) [ 0 ] ) . toContain ( "## Objective " )
11121112 expect ( userTexts ( requests [ 1 ] ) ) . toHaveLength ( 1 )
1113- expect ( userTexts ( requests [ 1 ] ) [ 0 ] ) . toContain ( "<summary>\n## Goal \n- Preserve the task\n</summary>" )
1113+ expect ( userTexts ( requests [ 1 ] ) [ 0 ] ) . toContain ( "<summary>\n## Objective \n- Preserve the task\n</summary>" )
11141114 expect ( userTexts ( requests [ 1 ] ) [ 0 ] ) . toContain ( `[User]: ${ "Recent exact request " . repeat ( 180 ) } ` )
11151115
11161116 const context = yield * ( yield * SessionStore . Service ) . context ( sessionID )
11171117 expect ( context . map ( ( message ) => message . type ) ) . toEqual ( [ "compaction" , "assistant" ] )
11181118 expect ( context [ 0 ] ) . toMatchObject ( {
11191119 type : "compaction" ,
1120- summary : "## Goal \n- Preserve the task" ,
1120+ summary : "## Objective \n- Preserve the task" ,
11211121 } )
11221122
11231123 requests . length = 0
11241124 executions . length = 0
11251125 responses = [
1126- fragmentFixture ( "text" , "text-summary-2" , [ "## Goal \n- Preserve the updated task" ] ) . completeEvents ,
1126+ fragmentFixture ( "text" , "text-summary-2" , [ "## Objective \n- Preserve the updated task" ] ) . completeEvents ,
11271127 fragmentFixture ( "text" , "text-final-2" , [ "Continued again" ] ) . completeEvents ,
11281128 ]
11291129 yield * session . prompt ( {
@@ -1135,12 +1135,12 @@ describe("SessionRunnerLLM", () => {
11351135
11361136 expect ( requests ) . toHaveLength ( 2 )
11371137 expect ( userTexts ( requests [ 0 ] ) [ 0 ] ) . toContain (
1138- "<previous-summary>\n## Goal \n- Preserve the task\n</previous-summary>" ,
1138+ "<previous-summary>\n## Objective \n- Preserve the task\n</previous-summary>" ,
11391139 )
11401140 expect ( userTexts ( requests [ 0 ] ) [ 0 ] ) . toContain ( "Recent exact request" )
11411141 expect ( ( yield * ( yield * SessionStore . Service ) . context ( sessionID ) ) [ 0 ] ) . toMatchObject ( {
11421142 type : "compaction" ,
1143- summary : "## Goal \n- Preserve the updated task" ,
1143+ summary : "## Objective \n- Preserve the updated task" ,
11441144 } )
11451145 } ) ,
11461146 )
@@ -1153,17 +1153,17 @@ describe("SessionRunnerLLM", () => {
11531153 LLMEvent . stepStart ( { index : 0 } ) ,
11541154 LLMEvent . providerError ( { message : "prompt too long" , classification : "context-overflow" } ) ,
11551155 ] ,
1156- fragmentFixture ( "text" , "text-summary" , [ "## Goal \n- Recover overflow" ] ) . completeEvents ,
1156+ fragmentFixture ( "text" , "text-summary" , [ "## Objective \n- Recover overflow" ] ) . completeEvents ,
11571157 fragmentFixture ( "text" , "text-final" , [ "Recovered" ] ) . completeEvents ,
11581158 ]
11591159 yield * session . prompt ( { sessionID, prompt : Prompt . make ( { text : "Continue" } ) , resume : false } )
11601160 yield * session . resume ( sessionID )
11611161
11621162 expect ( requests ) . toHaveLength ( 3 )
1163- expect ( userTexts ( requests [ 1 ] ) [ 0 ] ) . toContain ( "## Goal " )
1164- expect ( userTexts ( requests [ 2 ] ) [ 0 ] ) . toContain ( "<summary>\n## Goal \n- Recover overflow\n</summary>" )
1163+ expect ( userTexts ( requests [ 1 ] ) [ 0 ] ) . toContain ( "## Objective " )
1164+ expect ( userTexts ( requests [ 2 ] ) [ 0 ] ) . toContain ( "<summary>\n## Objective \n- Recover overflow\n</summary>" )
11651165 expect ( yield * session . context ( sessionID ) ) . toMatchObject ( [
1166- { type : "compaction" , summary : "## Goal \n- Recover overflow" } ,
1166+ { type : "compaction" , summary : "## Objective \n- Recover overflow" } ,
11671167 { type : "assistant" , finish : "stop" } ,
11681168 ] )
11691169 yield * replaySessionProjection ( sessionID )
@@ -1183,7 +1183,7 @@ describe("SessionRunnerLLM", () => {
11831183 ]
11841184 responses = [
11851185 overflow ( ) ,
1186- fragmentFixture ( "text" , "text-summary" , [ "## Goal \n- Recover once" ] ) . completeEvents ,
1186+ fragmentFixture ( "text" , "text-summary" , [ "## Objective \n- Recover once" ] ) . completeEvents ,
11871187 overflow ( ) ,
11881188 ]
11891189 yield * session . prompt ( { sessionID, prompt : Prompt . make ( { text : "Continue" } ) , resume : false } )
@@ -1211,15 +1211,15 @@ describe("SessionRunnerLLM", () => {
12111211 } ) ,
12121212 )
12131213 responses = [
1214- fragmentFixture ( "text" , "text-summary" , [ "## Goal \n- Recover raw overflow" ] ) . completeEvents ,
1214+ fragmentFixture ( "text" , "text-summary" , [ "## Objective \n- Recover raw overflow" ] ) . completeEvents ,
12151215 fragmentFixture ( "text" , "text-final" , [ "Recovered" ] ) . completeEvents ,
12161216 ]
12171217 yield * session . prompt ( { sessionID, prompt : Prompt . make ( { text : "Continue" } ) , resume : false } )
12181218 yield * session . resume ( sessionID )
12191219
12201220 expect ( requests ) . toHaveLength ( 3 )
12211221 expect ( yield * session . context ( sessionID ) ) . toMatchObject ( [
1222- { type : "compaction" , summary : "## Goal \n- Recover raw overflow" } ,
1222+ { type : "compaction" , summary : "## Objective \n- Recover raw overflow" } ,
12231223 { type : "assistant" , finish : "stop" } ,
12241224 ] )
12251225 } ) ,
@@ -1250,7 +1250,7 @@ describe("SessionRunnerLLM", () => {
12501250 const session = yield * setupOverflowRecovery
12511251 responses = [
12521252 [ LLMEvent . providerError ( { message : "prompt too long" , classification : "context-overflow" } ) ] ,
1253- fragmentFixture ( "text" , "text-summary" , [ "## Goal \n- Interrupted" ] ) . completeEvents ,
1253+ fragmentFixture ( "text" , "text-summary" , [ "## Objective \n- Interrupted" ] ) . completeEvents ,
12541254 ]
12551255 const firstGate = yield * Deferred . make < void > ( )
12561256 const summaryGate = yield * Deferred . make < void > ( )
0 commit comments