Repository navigation
Commit 4a7250b
committed
feat(pm): red the board-snapshot run when the archive has gone stale
`count_check: pending` is the tool's own "could not check", but the exit code
was built from the count check's `ok` alone, which `pending` leaves null — so a
run that archived days-old state exited 0 and the workflow's exit-code step
never fired. Measured on this repository's archive: nineteen consecutive runs
reported `pending` between 2026-09-10T20:23Z and 2026-09-14T20:24Z and every
scheduled run in that window is green, including the one whose delta cursor was
two days behind the live board on the morning a suspension destroyed cards the
archive did not hold.
A run now also answers whether the archive is still level with the live board:
`freshness` in the manifest, one row in the summary, and EXIT_STALE (5) when no
run has reached a count-check verdict for longer than a day. The anchor is the
streak's start stamp, not the delta cursor — that cursor is the newest archived
row's `updated_at`, so on a quiet board it sits days in the past while the
archive is exactly level, and ageing it would red a board for being quiet. A
stamp rather than a run counter keeps the manifest diff-stable: two writes per
incident instead of one per run.
The archive still lands: the commit and the R2 mirror run before the step that
reads the exit code. The row prescribes no remedy — cadence, budget and slice
stay the maintainer's.
Claude-Session: https://claude.ai/code/session_01HZfg2AwVX191qCizp88gQr
Co-authored-by: Claude <noreply@anthropic.com>1 parent cb648cb commit 4a7250b
2 files changed
Lines changed: 373 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
76 | 95 | | |
77 | 96 | | |
78 | 97 | | |
| |||
421 | 440 | | |
422 | 441 | | |
423 | 442 | | |
424 | | - | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
425 | 446 | | |
426 | 447 | | |
427 | | - | |
| 448 | + | |
428 | 449 | | |
0 commit comments