Commit 692c1b8
committed
fix(goals): require an acceptance verdict before recommending closed
Builds on the recorded-gap fix rather than replacing it: `outcome_gap`
staying an unreached marker is kept, and so is naming the acceptance
sources the bounded observation could not read.
Two gaps remained in that reading.
An empty `missing_sources` was treated as an acceptance verdict. It only
means the observation read every source it knows about; the projection
still reports `acceptance_assessed=False` and a coverage that is
`partial` or `unavailable`, never `complete`. So a Goal with both an
attention item and agent vision present produced a bare `next: closed`
with no disclosure at all -- the same defect as the reported one, moved
to a fully observed input. `_acceptance_supports_closeout` now reads the
verdict fields directly instead of inferring one from silence.
Annotating the reason codes did not undo the recommendation. The
reported defect is an actionable wrong step shown to an operator, and
`target_phase: closed` remained that step even with `acceptance_unverified`
attached. Closing stays reachable as the todo-completion reading, but
without a verdict the step stays inside closing and asks for the
acceptance the existing owner has not given.
Declared acceptance markers are removed. No producer writes
`goal.acceptance.milestones` or `goal.milestones` anywhere in the
repository, so the reader was unreachable in production while carrying
the only guard able to hold back a closeout, and the fixtures exercising
it could not show that a user declaration reaches the readout. Add it
back together with the producer that writes it.
Signed-off-by: song <liusongstep@gmail.com>1 parent 55f9ee4 commit 692c1b8
3 files changed
Lines changed: 114 additions & 115 deletions
File tree
- examples/control_plane
- loopx/control_plane/goals
- tests/control_plane
Lines changed: 16 additions & 55 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | 68 | | |
91 | 69 | | |
92 | 70 | | |
| |||
230 | 208 | | |
231 | 209 | | |
232 | 210 | | |
233 | | - | |
| 211 | + | |
| 212 | + | |
234 | 213 | | |
235 | 214 | | |
236 | 215 | | |
| |||
265 | 244 | | |
266 | 245 | | |
267 | 246 | | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
| 247 | + | |
| 248 | + | |
288 | 249 | | |
289 | | - | |
290 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
291 | 254 | | |
292 | 255 | | |
293 | 256 | | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
| 257 | + | |
299 | 258 | | |
300 | 259 | | |
301 | 260 | | |
| |||
307 | 266 | | |
308 | 267 | | |
309 | 268 | | |
| 269 | + | |
| 270 | + | |
310 | 271 | | |
311 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
312 | 276 | | |
313 | 277 | | |
314 | 278 | | |
| |||
414 | 378 | | |
415 | 379 | | |
416 | 380 | | |
417 | | - | |
418 | 381 | | |
419 | 382 | | |
420 | 383 | | |
| |||
513 | 476 | | |
514 | 477 | | |
515 | 478 | | |
516 | | - | |
517 | 479 | | |
518 | 480 | | |
519 | 481 | | |
520 | 482 | | |
521 | 483 | | |
522 | 484 | | |
523 | 485 | | |
524 | | - | |
525 | | - | |
| 486 | + | |
526 | 487 | | |
527 | 488 | | |
528 | 489 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | 88 | | |
121 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
122 | 97 | | |
123 | 98 | | |
124 | 99 | | |
| |||
159 | 134 | | |
160 | 135 | | |
161 | 136 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | 137 | | |
180 | 138 | | |
181 | 139 | | |
| |||
217 | 175 | | |
218 | 176 | | |
219 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
220 | 198 | | |
221 | 199 | | |
222 | 200 | | |
| |||
318 | 296 | | |
319 | 297 | | |
320 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
321 | 310 | | |
322 | | - | |
323 | | - | |
| 311 | + | |
324 | 312 | | |
325 | 313 | | |
326 | | - | |
327 | 314 | | |
328 | 315 | | |
329 | | - | |
| 316 | + | |
330 | 317 | | |
331 | | - | |
| 318 | + | |
332 | 319 | | |
333 | 320 | | |
334 | 321 | | |
| |||
376 | 363 | | |
377 | 364 | | |
378 | 365 | | |
379 | | - | |
| 366 | + | |
380 | 367 | | |
381 | 368 | | |
382 | 369 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
339 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
340 | 341 | | |
341 | 342 | | |
342 | 343 | | |
| |||
433 | 434 | | |
434 | 435 | | |
435 | 436 | | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
436 | 440 | | |
437 | 441 | | |
438 | | - | |
| 442 | + | |
439 | 443 | | |
440 | 444 | | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
0 commit comments