Repository navigation
Closed
Labels
Description
Parent
#2036 (decisions: PR #2064, Q2.2, Q2.7, Q3.2–Q3.3; glossary: Command record, Session trace, Recovery; ADR 0016, ADR 0018)
What to build
Record thirdshift's version and structured failure attribution on Command records (with clean fallbacks for existing history), mark release/configuration transitions on the Metrics timeline, and add a clickable "Where runs failed" breakdown that takes the Day shift straight to the offending Commands.
- Version recording & historical recovery: Persist
thirdshift_versionon every new Command record at Command startup. When reading older records withoutthirdshift_version, recoverservice.versionfrom their referenced Session traces when present without re-parsing unchanged traces on subsequent reads. Expose--version/version=filtering and breakdown inmetrics,/api/v1/metrics, and/metrics, and render transition markers on the/metricstimeline whenever observedthirdshift_version(or Harness / Model under a narrowed filter) changes across buckets. (Q2.2, Q3.2, Q3.3) - Structured failure attribution: Persist optional structured
stopped_atstage and deterministic failure category (held,waiting,crashed, orstage_failed) on the Command record at completion from structured Recovery and failure-ending state rather than dropping them into free-textcause. For older failed or crashed records lacking those fields, fall back to the last recorded stage anddiedversusfailed, reportingobservedandmissingcoverage honestly. (Q2.7) - "Where runs failed" & one-click drilldown: Render a "Where runs failed" breakdown in
metricsand on/metricsgrouped by stopping stage and failure category. Link every failure bucket and "Where runs failed" row on/metricsthrough to matching History or Command detail views so clicking a failure cluster immediately reveals the matching Commands. (Q2.7, Q3.3)
Acceptance criteria
- A newly run Command writes
thirdshift_versionto its Command record at startup, and a failed or held Command writes structuredstopped_atstage and deterministic failure category (held,waiting,crashed, orstage_failed) at completion. - Historical fixture Command records without
thirdshift_versionrecoverservice.versionfrom their Session traces without rewriting the.command.jsonfile or re-parsing unchanged traces on repeatedmetricsreads; historical failed/crashed records withoutstopped_atfall back to their last recorded stage anddied/failed. -
metricsand/metricsfilter and slice byversion(--version/version=) and render visible version-transition markers across bucket boundaries wherethirdshift_versionchanges. -
/metricsdisplays a "Where runs failed" breakdown matchingmetrics --json, and clicking a failure bucket or stopping-stage/category row navigates to History / Command details showing the corresponding failed Commands.
Activity
Merge pull request #2083 from JacobStephens2/issue-2067
JacobStephens2 commentedon Nov 12, 2026
Closed by #2083, merged into issue-2036 by a thirdshift Ticket run with Self-merge.