Files
loki/scripts/test
Mao NakamotoandClaude Opus 4.8 d2ff24480c fix(control,projects,loki): age out stale failure noise + distinguish Loki threads
Two cleanups from the flow-test walk:

1. Stale-failure noise (the box-credential outage kept shouting for weeks):
   - Control hero: deriveFleetPulse now gates "Stalled" on run RECENCY — a
     failure only counts if it finished <24h ago. 18 projects whose last run
     timed out two weeks ago now read "Waiting", not "Stalled — 18 failed".
     New unit test covers the stale-outage shape; 26/26 pass.
   - Project dossier: run history was rendering ALL finished runs inline,
     burying the shipped changelog under ~30 stale timeouts. Cap to the recent
     6; the rest live behind "Full activity timeline (N more)".

2. Loki history rail: threads that share an opening line ("move forward on
   fleetcrown" ×15) were indistinguishable. Show a compact relative time
   (shortTimeAgo: now/5m/3h/2d/3w/5mo) in the meta line so they're tellable
   apart and time-ordered.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 14:00:27 +02:00
..