Repository navigation
Description
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
- Read the class of a killed attempt from fix(roadmap): read the pod status to find an out-of-memory kill #3727:
evicted,deadlineoroom. - A kill of class
evicteddoes not count against the head, up to 3 for each head. After 3, it counts. - A kill of class
deadlinecounts, because the attempt spent tokens. A kill of classoomcounts for the same reason. - The record and the result line state the class and the attempt count of the head.
- The rule applies to the fix-plan attempts of the
fix_planrow now, and to the fix-plan Jobs of feat(roadmap): the watch row starts fix-plan Jobs #5412 later.
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
deadlinekill and anoomkill count. - A test: the result line states the class and the attempt count.
- Live proof: after the merge and the release, a named
fix-planrun with--skip-waitruns as the App on an open plan PR withplan/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
dan-petty commentedon Nov 13, 2026
Both handle a killed fix-plan attempt, but #5413 removes the 6-hour wait while the candidate changes whether the kill counts against the head.dan-petty commentedon Nov 15, 2026
The requested behavior was already implemented in PR #5459 (commit 94a1999). In
src/devops_cli/roadmap/steps/fix_plan.py,_kill_markspreserves the attempt count for the first 3 evicted attempts (_HEAD_EVICTIONS = 3) on one head. The testtest_a_unit_that_a_kill_always_ends_stops_at_the_capintests/roadmap/steps/test_roadmap_fix_plan_budget.pyverifies that the first 3 evicted attempts do not count against the head limit. Closing as not planned under AGENTS.md rule 2.