Skip to content

Fix the top remaining failed-run bucket after PR1 and retry data #3546

Description

@yinjialu

Parent: #3408
Spec: #3526
Depends on: #3543, #3544

Problem

After PR #3412 and the safe retry slice, remaining failures should be fixed by measured volume and fixability rather than intuition. This issue tracks the first ROI-ranked failure fix selected from PostHog run_finished data.

Scope

  • Wait for enough post-PR1 / post-retry data to rank failure buckets.
  • Select one top bucket using failure_category, failure_detail, failure_stage, agent_provider_id, model_id, and retry outcome.
  • Inspect representative Langfuse traces via langfuse_trace_id where available.
  • Land one focused fix with a red/fixed validation path.
  • Document adjacent buckets that are intentionally left for follow-up.

Acceptance criteria

  • The selected bucket is justified with PostHog volume and impact data.
  • Representative traces or logs explain the actual failure mode.
  • The implementation reduces the selected bucket without increasing adjacent failure buckets.
  • The fix preserves the run terminal analytics invariants from PR Improve run failure classification and Langfuse correlation #3412.

Validation

Data needed before implementation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions