Skip to content

Record thirdshift version and structured failure attribution with Where runs failed drilldown #2067

Closed

Description

@JacobStephens2

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_version on every new Command record at Command startup. When reading older records without thirdshift_version, recover service.version from their referenced Session traces when present without re-parsing unchanged traces on subsequent reads. Expose --version / version= filtering and breakdown in metrics, /api/v1/metrics, and /metrics, and render transition markers on the /metrics timeline whenever observed thirdshift_version (or Harness / Model under a narrowed filter) changes across buckets. (Q2.2, Q3.2, Q3.3)
  • Structured failure attribution: Persist optional structured stopped_at stage and deterministic failure category (held, waiting, crashed, or stage_failed) on the Command record at completion from structured Recovery and failure-ending state rather than dropping them into free-text cause. For older failed or crashed records lacking those fields, fall back to the last recorded stage and died versus failed, reporting observed and missing coverage honestly. (Q2.7)
  • "Where runs failed" & one-click drilldown: Render a "Where runs failed" breakdown in metrics and on /metrics grouped by stopping stage and failure category. Link every failure bucket and "Where runs failed" row on /metrics through 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_version to its Command record at startup, and a failed or held Command writes structured stopped_at stage and deterministic failure category (held, waiting, crashed, or stage_failed) at completion.
  • Historical fixture Command records without thirdshift_version recover service.version from their Session traces without rewriting the .command.json file or re-parsing unchanged traces on repeated metrics reads; historical failed/crashed records without stopped_at fall back to their last recorded stage and died / failed.
  • metrics and /metrics filter and slice by version (--version / version=) and render visible version-transition markers across bucket boundaries where thirdshift_version changes.
  • /metrics displays a "Where runs failed" breakdown matching metrics --json, and clicking a failure bucket or stopping-stage/category row navigates to History / Command details showing the corresponding failed Commands.

Blocked by

Activity

  1. added
    enhancement
    ready-for-agent
    on Nov 11, 2026
  2. added a commit that references this issue on Nov 12, 2026
  3. JacobStephens2 commented on Nov 12, 2026

    @JacobStephens2
    OwnerAuthor

    Closed by #2083, merged into issue-2036 by a thirdshift Ticket run with Self-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions