@@ -46,7 +46,6 @@ describe("SupervisorRepo", () => {
4646 id : "sup-1" ,
4747 sessionId : "sess-1" ,
4848 workspaceId : "ws-1" ,
49- targetId : "target-1" ,
5049 state : "idle" ,
5150 objective : "Finish supervisor persistence" ,
5251 evaluatorProviderId : "codex" ,
@@ -65,7 +64,6 @@ describe("SupervisorRepo", () => {
6564 id : "sup-1" ,
6665 sessionId : "sess-1" ,
6766 workspaceId : "ws-1" ,
68- targetId : "target-initial" ,
6967 state : "stopped" ,
7068 objective : "Stop when objective is complete" ,
7169 evaluatorProviderId : "codex" ,
@@ -89,12 +87,11 @@ describe("SupervisorRepo", () => {
8987 } ) ;
9088 } ) ;
9189
92- it ( "derives targetId from supervisor id and ignores targetId patches " , ( ) => {
90+ it ( "derives targetId from supervisor id" , ( ) => {
9391 supervisorRepo . create ( {
9492 id : "sup-1" ,
9593 sessionId : "sess-1" ,
9694 workspaceId : "ws-1" ,
97- targetId : "target-alpha" ,
9895 state : "idle" ,
9996 objective : "Track target scope" ,
10097 evaluatorProviderId : "codex" ,
@@ -106,7 +103,7 @@ describe("SupervisorRepo", () => {
106103 expect ( created ?. targetId ) . toBe ( "sup-1" ) ;
107104
108105 const updated = supervisorRepo . update ( "sup-1" , {
109- targetId : "target-beta " ,
106+ objective : "Track target scope again " ,
110107 updatedAt : 11 ,
111108 } ) ;
112109
@@ -130,7 +127,6 @@ describe("SupervisorRepo", () => {
130127 id : "sup-bad" ,
131128 sessionId : "sess-2" ,
132129 workspaceId : "ws-1" ,
133- targetId : "target-bad" ,
134130 state : "idle" ,
135131 objective : "This insert must fail" ,
136132 evaluatorProviderId : "claude" ,
@@ -152,7 +148,6 @@ describe("SupervisorRepo", () => {
152148 id : "sup-1" ,
153149 sessionId : "sess-1" ,
154150 workspaceId : "ws-1" ,
155- targetId : "target-1" ,
156151 state : "idle" ,
157152 objective : "Enforce supervisor/session integrity" ,
158153 evaluatorProviderId : "claude" ,
@@ -181,7 +176,6 @@ describe("SupervisorRepo", () => {
181176 id : "sup-1" ,
182177 sessionId : "sess-1" ,
183178 workspaceId : "ws-1" ,
184- targetId : "target-1" ,
185179 state : "idle" ,
186180 objective : "Keep nullable fields intact" ,
187181 evaluatorProviderId : "claude" ,
@@ -208,7 +202,6 @@ describe("SupervisorRepo", () => {
208202 id : "sup-1" ,
209203 sessionId : "sess-1" ,
210204 workspaceId : "ws-1" ,
211- targetId : "target-1" ,
212205 state : "idle" ,
213206 objective : "Clear nullable fields" ,
214207 evaluatorProviderId : "claude" ,
@@ -236,7 +229,6 @@ describe("SupervisorRepo", () => {
236229 id : "sup-1" ,
237230 sessionId : "sess-1" ,
238231 workspaceId : "ws-1" ,
239- targetId : "target-1" ,
240232 state : "idle" ,
241233 objective : "Clear execution policy fields" ,
242234 evaluatorProviderId : "claude" ,
@@ -268,7 +260,6 @@ describe("SupervisorRepo", () => {
268260 id : "sup-1" ,
269261 sessionId : "sess-1" ,
270262 workspaceId : "ws-1" ,
271- targetId : "target-1" ,
272263 state : "idle" ,
273264 objective : "Keep cycle fields intact" ,
274265 evaluatorProviderId : "claude" ,
@@ -309,7 +300,6 @@ describe("SupervisorRepo", () => {
309300 id : "sup-1" ,
310301 sessionId : "sess-1" ,
311302 workspaceId : "ws-1" ,
312- targetId : "target-1" ,
313303 state : "idle" ,
314304 objective : "Clear cycle fields" ,
315305 evaluatorProviderId : "claude" ,
@@ -370,7 +360,6 @@ describe("SupervisorRepo", () => {
370360 id : "sup-1" ,
371361 sessionId : "sess-1" ,
372362 workspaceId : "ws-1" ,
373- targetId : "target-1" ,
374363 state : "idle" ,
375364 objective : "Keep the newest 100 cycles" ,
376365 evaluatorProviderId : "claude" ,
@@ -406,7 +395,6 @@ describe("SupervisorRepo", () => {
406395 id : "sup-1" ,
407396 sessionId : "sess-1" ,
408397 workspaceId : "ws-1" ,
409- targetId : "target-1" ,
410398 state : "idle" ,
411399 objective : "Allow scheduled cancelled cycle" ,
412400 evaluatorProviderId : "claude" ,
@@ -435,7 +423,6 @@ describe("SupervisorRepo", () => {
435423 id : "sup-1" ,
436424 sessionId : "sess-1" ,
437425 workspaceId : "ws-1" ,
438- targetId : "target-1" ,
439426 state : "idle" ,
440427 objective : "Track attempts" ,
441428 evaluatorProviderId : "claude" ,
@@ -493,7 +480,6 @@ describe("SupervisorRepo", () => {
493480 id : "sup-1" ,
494481 sessionId : "sess-1" ,
495482 workspaceId : "ws-1" ,
496- targetId : "target-1" ,
497483 state : "idle" ,
498484 objective : "Update attempts" ,
499485 evaluatorProviderId : "claude" ,
0 commit comments