Skip to content

fix(roadmap): a failed alternatives check skips its item and does not fail the round #2949

Closed

Description

@dan-petty

What happened

If the check of one item fails, the row writes the others and then fails, naming the item. After 3 failed rounds in a row the row is suspended until its input changes. On 2026-10-30 one item (UnexpectedModelBehavior on #1127) did this to the whole repository.

What should happen

Evidence (2026-10-31)

Tracker: #2908 (one issue workflow). Owner request of 2026-10-31: confirm that all issues are vetted for open alternatives.

Acceptance criteria

  • A test with one failing item and four good items ends with a successful round and a record for the failing item.
  • A round in which every item fails still fails.
  • The failed item is tried again after the set time, not before.
  • uv run devops ci passes.

Proposed design

Problem statement

The alternatives check row fails the entire round when one item's check fails. After three failed rounds, the row is suspended. One bad item should not block the other items in the round. The fix records the failure in the item's job record, lets the round succeed, and retries the item after a set number of days.

Acceptance criteria

Requirement: partial-failure-isolation

A round with one failing item and four good items SHALL succeed and record the failure for the failing item.

Scenario: one-of-five-fails

  • WHEN the alternatives row runs with five items and one item's check raises an error
  • THEN the round completes successfully, four items have their checks written, and the failing item's job record holds the error class and the time

Requirement: total-failure-still-fails

A round in which every item fails SHALL fail the row and count toward the three-round suspension.

Scenario: all-items-fail

  • WHEN the alternatives row runs and every item's check raises an error
  • THEN the row fails and the failure counts toward the three-round suspension

Requirement: retry-delay

A failed item SHALL NOT be retried before the set number of days has elapsed since its failure.

Scenario: retry-before-set-time

  • WHEN a later round runs before the set number of days since the item's recorded failure
  • THEN the item is skipped and not checked again

Requirement: ci-passes

The command uv run devops ci SHALL pass on the change.

Scenario: full-ci

  • WHEN the full CI suite runs on the change branch
  • THEN all checks pass

Existing Tool Considered

No check has run. No open, maintained tool covers this need. The fix modifies the project's own alternatives row code in the roadmap service. The written cost is the tokens to write the per-item error isolation, the retry scheduling, the stop reason formatting, and the tests, plus the elapsed time to pass uv run devops ci.

Key questions

  • What is the retry interval for a failed item?: Three days, configurable via roadmap.alternatives.retry_days. (best practice) [sources: k8s/README.md:610]
    • Rejected: 1 day (next round). The body says 'not in the next round.' One day is the round interval, so this does not meet the requirement.
    • Chosen: 3 days. More than one round, less than the 30-day recheck interval. Gives the upstream service time to recover. Matches the pattern of a configurable setting.
    • Rejected: 7 days. Too long. The item waits a full week before retry, which delays the owner's request to confirm all issues are vetted.
  • What fields does the failure record contain?: The item number, the class of error, and the time of the failure. [sources: k8s/README.md:610]
  • What stop reason format does the failure record use?: The tool-call retry reasons of feat(roadmap): tool log names the reason of a retried call #2875 and the readable provider text of fix(roadmap): an implement step stops when Ollama cannot parse a qwen3-coder tool call, and the stop hides the cause #2922. [sources: openspec/changes/archive/2026-10-30-2562-refine-warning-reasons/design.md:13, openspec/changes/archive/2026-10-28-2398-refine-investigates-questions/design.md:39]
  • When does the row fail and count toward the three-round suspension?: The row fails only when no item could be checked in the round, for example when there is no search key or no model. [sources: k8s/README.md:610]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#2922

Activity

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/high
    effort/medium
    on Oct 31, 2026
  2. dan-petty commented on Oct 31, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P1-High. A single item error suspends the whole row and blocks the required alternatives check for the repository.
    • Value: High. Without this fix the alternatives check stops for the entire repository after one item fails.
    • Effort: Medium. Requires per-item failure records, a retry delay, and a changed round-success rule in the same component.
    • Related: fix(service): a round that ends because the Service is stopping counts as a failure and three of them suspend a row #2753, which asks for a different change. Both fix round-failure and suspension logic, but #2753 fixes Service-stop miscount while this candidate isolates one item's error from the round.
  3. added
    priority/p1-high
    on Oct 31, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 1, 2026
  5. devops-cli-service commented on Nov 1, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 66ed3bf (see proposed design in issue body).

  6. devops-cli-service commented on Nov 1, 2026

    @devops-cli-service
    Contributor

    Staged: branch fix/2949-a-failed-alternatives-check-skips-its, draft pull request #2976. The pull request plans the item and closes no issue.

    The task groups, with the tokens of the inputs of each step, for a budget of 40000 tokens:

    1. Add retry_days config and failure record structure: 4339 tokens
    2. Per-item error isolation in the alternatives round: 4368 tokens
    3. Retry delay for failed items: 4347 tokens
    4. Row fails only when zero items are checked: 4351 tokens
    5. Update documentation for the new behavior: 4400 tokens

    These paths of the plan are no file on the default branch, and no group creates them: src/devops_cli/roadmap/rows.py. A person checks that the plan names them right.

  7. added a commit that references this issue on Nov 1, 2026
  8. added
    status/planned
    and removed
    status/ready
    on Nov 1, 2026
  9. added
    owner/agent
    on Nov 1, 2026
  10. added a commit that references this issue on Nov 1, 2026
  11. removed
    owner/agent
    on Nov 1, 2026
  12. added a commit that references this issue on Nov 1, 2026
  13. dan-petty commented on Nov 1, 2026

    @dan-petty
    OwnerAuthor

    #3127 delivered this item in its squash commit 099c689 on main, because #3127 was stacked on the #2949 branch. The change is archived as openspec/changes/archive/2026-11-01-2949-a-failed-alternatives-check-skips-its/. #3123 closed without a merge.


    Generated by Claude Code

  14. removed
    status/planned
    on Nov 1, 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/p1-highscope/roadmapsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions