Skip to content

fix(roadmap): an evicted fix-plan attempt does not count against its head #5493

Closed as not planned

Description

@dan-petty

Problem or Motivation

A fix-plan attempt can end because Kubernetes stopped its pod: a rollout, a node drain, or an eviction under node memory pressure. Today each such stop counts against the plan head as a failed attempt, the same as a real failure. A head can thus reach its attempt limit with no real attempt. The approved pipeline split design (owner approval 2026-11-13, tracker #5482, Phase 0) divides a killed attempt into classes. #3727 gives the class from the pod status. #5413 (merged in PR #5459) lets a named fix-plan run skip the wait.

Proposed Solution & Architectural Design

Target Subsystem

Roadmap Service and roadmap jobs (src/devops_cli/roadmap/, the fix-plan path).

Acceptance Criteria

  • Test first: an evicted attempt leaves the attempt count of the head as it was. The test fails on the base.
  • A test: a fourth eviction of one head counts.
  • A test: a deadline kill and an oom kill count.
  • A test: the result line states the class and the attempt count.
  • Live proof: after the merge and the release, a named fix-plan run with --skip-wait runs as the App on an open plan PR with plan/needs-fix. A comment on this issue gives its result line with the class and the attempt count.

Existing Tool Considered

The pod status classes of #3727 and the attempt ledger of the fix_plan row exist. No open tool counts attempts by kill class. Build: 100,000 to 200,000 agent tokens and 0.5 day.

Related

Tracker #5482, Phase 0. Depends on #3727. #5413 (merged), #5412 (fix-plan Jobs), #5500 (the class field on every result line), #5440 (attempt limits as settings).

Source: #5482

Activity

  1. added
    source/agent
    on Nov 13, 2026
  2. added
    type/bug
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 13, 2026
  3. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    on Nov 13, 2026
  5. dan-petty commented on Nov 15, 2026

    @dan-petty
    OwnerAuthor

    The requested behavior was already implemented in PR #5459 (commit 94a1999). In src/devops_cli/roadmap/steps/fix_plan.py, _kill_marks preserves the attempt count for the first 3 evicted attempts (_HEAD_EVICTIONS = 3) on one head. The test test_a_unit_that_a_kill_always_ends_stops_at_the_cap in tests/roadmap/steps/test_roadmap_fix_plan_budget.py verifies that the first 3 evicted attempts do not count against the head limit. Closing as not planned under AGENTS.md rule 2.

  6. removed
    status/new
    on Nov 15, 2026
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

    effort/mediumpriority/p2-mediumscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions