Commit b9d7160
committed
test(goals): keep the two Goal projections distinct now that both ship
CI `test-shard (2)` caught a real conflict I had missed: `#4248` shipped
`goal_acceptance_observation_projection_v0` as bounded historical evidence and
guarded that it is *not* the full lifecycle contract, partly by asserting the
collected Goal carries no `artifact_lifecycle` key at all. Attaching the real
lifecycle projection made that guard fail (2100 passed, 1 failed).
The guard's intent was the distinction, not the absence, so this preserves the
intent under the new reality instead of deleting the assertion. The collection
test now requires both projections to be present under their own keys with
their own schema versions, and requires the phase/milestone/transition
vocabulary to belong to the lifecycle projection alone.
The smoke gains the symmetric renderer check `#4248` established for its own
renderer: each renderer must refuse the other's schema rather than print a
half-understood payload under its own heading. Verified by mutation — relaxing
the lifecycle renderer's schema check to "any non-empty payload" makes it print
`phase=unknown milestones=0/0` for an acceptance observation, and the new
assertion fails.
`test_markdown_rejects_the_distinct_full_lifecycle_contract` is untouched and
still passes.
Signed-off-by: song <liusongstep@gmail.com>1 parent 55e74cc commit b9d7160
2 files changed
Lines changed: 53 additions & 1 deletion
File tree
- examples/control_plane
- tests/control_plane
Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
404 | 447 | | |
405 | 448 | | |
406 | 449 | | |
| |||
433 | 476 | | |
434 | 477 | | |
435 | 478 | | |
| 479 | + | |
436 | 480 | | |
437 | 481 | | |
438 | 482 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | 206 | | |
208 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
209 | 217 | | |
210 | 218 | | |
211 | 219 | | |
| |||
0 commit comments