Commit 5b6ad4e
Prefer matching task type when resolving wait → task references
RunWaitView::preferredTasksByPayloadKey picked the single most recently
updated task whose payload carried the wait's identity key, regardless of
task type. Workflow-resume tasks also carry activity_execution_id /
timer_id in their payloads, and their updated_at is strictly later than
the activity or timer task they resume, so the activity and timer wait
projections ended up reporting task_type='workflow' instead of 'activity'
or 'timer' (bucket C — semantic drift in projections).
Accept an optional TaskType filter so callers bind the wait kind to the
matching task kind. Activity waits now require Activity tasks and timer
waits require Timer tasks.
Also carry the MessageCursorAdvanced event through the completed-signal
run-detail timeline fixture — a real event now emitted between
SignalReceived and SignalApplied as of the message-stream cursor work.
Refs #399 (bucket C)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 825bf62 commit 5b6ad4e
2 files changed
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
521 | 526 | | |
522 | 527 | | |
523 | 528 | | |
524 | | - | |
525 | | - | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
526 | 534 | | |
527 | 535 | | |
528 | 536 | | |
529 | 537 | | |
530 | 538 | | |
531 | 539 | | |
532 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
533 | 545 | | |
534 | 546 | | |
535 | 547 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1188 | 1188 | | |
1189 | 1189 | | |
1190 | 1190 | | |
| 1191 | + | |
1191 | 1192 | | |
1192 | 1193 | | |
1193 | 1194 | | |
1194 | 1195 | | |
1195 | 1196 | | |
1196 | 1197 | | |
1197 | 1198 | | |
1198 | | - | |
| 1199 | + | |
1199 | 1200 | | |
1200 | 1201 | | |
1201 | 1202 | | |
| |||
0 commit comments