Skip to content

fix(roadmap): an intake placement that fails stops only its own candidate, and the round still reports the failure and exits non-zero #1443

Closed

Description

@dan-petty

Problem

apply_intake (src/devops_cli/roadmap/intake.py, the placement loop) places a round's candidates one after another, with no per-candidate isolation. The first placement that raises stops every later placement in the round:

#1363 gave refine this isolation ("one failed item skips only itself"); intake doesn't have it.

Proposed remedy

Apply each placement on its own. Record a failed placement with its issue number and error class, as attempted, and continue with the rest. After the round, raise one typed error naming every failed candidate, so the CLI exits non-zero and the Service's job fails. Nothing is swallowed. Rejected credentials and a GraphQL budget refusal (reset_at, #1400) still stop the round at once.

Acceptance criteria

  • On GitHubFake, one candidate whose write fails while two others are placed: both others are placed, the run names the failed one and its error class, and it exits non-zero.
  • A budget refusal or rejected credentials at the first candidate stop the round with no further writes.
  • The next round tries the failed candidate again, and the candidates tied with it are not decided again.
  • Tests are offline with fakes at the gh process edge, each call phase under 1 s, and uv run devops ci passes.

Found while delivering #1360 and #1403. Related: #1360, #1403, #1363, #1400.

Opened as a borrow (#1153, budget/borrowed): a required follow-up from #1360 and #1403.

Activity

  1. added
    type/bug
    scope/release
    source/agent
    on Oct 8, 2026
  2. dan-petty commented on Oct 8, 2026

    @dan-petty
    OwnerAuthor

    Two limits from #1403 that share this item's change surface (apply_intake's result), folded here because the agent filing quota (#1153) is spent:

    • For a card the add restored without a Priority, the plan --plan and --confirm print before writing shows the planned placement and values. Nothing printed after the writes corrects a plan line that said "to the backlog" when the card kept its milestone. After apply_intake, report each decision _on_card changed (kept milestone, dropped fields).
    • The Service's placed_critical_or_p0 (roadmap/run.py) comes from the plan, so a finished archived card planned as a critical fix would still set it. Derive it from the applied decisions.
  3. dan-petty-bot commented on Oct 8, 2026

    @dan-petty-bot
    Collaborator

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Priority: P2-Medium. One bad candidate blocks the entire round's throughput and has already caused repeated failures (#1403, #1360), but a targeted fix to the offending candidate is a workaround, so it is not a full outage.
    • Value: Medium. It restores the intended round-level throughput so a single stuck candidate no longer prevents all other candidates from being placed.
    • Effort: Medium. Requires restructuring the placement loop with per-candidate try/except, recording failures, handling tied-candidate re-decision, raising a typed aggregate error, and adding offline fake-based tests.
  4. added a commit that references this issue on Oct 16, 2026
    4ccd163
  5. added this to the v0.2.36 milestone on Oct 16, 2026
  6. dan-petty commented on Oct 16, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1593, merged into release/v0.2.36 as 4ccd163.

    Closes #1443

    apply_intake placed a round's candidates one after another, so the first write that raised stopped every later placement. GitHub currently answers the board add of some existing issues with an INTERNAL GraphQL error (addProjectV2ItemById, reproduced with a minimal item { id } selection and in the board's web UI), which made every devops roadmap run fail at intake before placing anything else.

    11 file(s) changed.

    How it was verified

    Check runs at b222517:

    • Prune PR DevContainer Images: pass
    • Audit Defect PR Hardening: skipping
    • devops-cli: pass
    • bandit: pass
    • CodeQL: pass
    • Changed-Test Independence: pass
    • Static Analysis: pass
    • Analyze (python): pass
    • Tests & Coverage: pass
    • Analyze (actions): pass
    • Dependency Freshness: skipping
    • Service Image: skipping
    • DevContainer Image: skipping

    No task file.

  7. added a commit that references this issue on Oct 17, 2026
    3dd7fa6
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

    scope/releasesource/agenttype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions