Commit f475757
committed
Surface run-wait-age on dw system:operator-metrics
The operator-metrics rollout-safety contract now freezes
operator_metrics.runs.waiting (integer), operator_metrics.runs.oldest_wait_started_at
(ISO-8601 or null), and operator_metrics.runs.max_wait_age_ms (integer
milliseconds) as the run-wait-age surface — the count of running runs parked at
a durable resume point, the earliest wait_started_at among them, and the
largest wait age in milliseconds. The signal covers every kind of wait
(signal, update, timer, compatibility-blocked) because each is a durable
resume point the system is parked on.
Render the trio on the Runs section of dw system:operator-metrics as
"Waiting (durable resume): N", "Oldest wait age: N ms", and "Oldest wait
started at: ISO", sibling to the existing Repair needed / Claim failed /
Compatibility blocked counts. Pin all three keys under runs in
schemas/output/operator-metrics.schema.json for --json consumers so the
contract is enforced regardless of the textual renderer. Extends
SystemCommandTest with schema and human-rendering assertions pinned
unconditionally, mirroring the existing dispatch-overdue and ready-due age
pins.1 parent 678e0d2 commit f475757
3 files changed
Lines changed: 37 additions & 1 deletion
File tree
- schemas/output
- src/Commands/SystemCommand
- tests/Commands
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
97 | 109 | | |
98 | 110 | | |
99 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
510 | 513 | | |
511 | 514 | | |
512 | 515 | | |
| |||
650 | 653 | | |
651 | 654 | | |
652 | 655 | | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
653 | 671 | | |
654 | 672 | | |
655 | 673 | | |
| |||
679 | 697 | | |
680 | 698 | | |
681 | 699 | | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
682 | 703 | | |
683 | 704 | | |
684 | 705 | | |
| |||
0 commit comments