Skip to content

fix(roadmap): leave out changed intake candidates and count plan calls #5166

Closed

Description

@dan-petty

Part of #5164 (child 2).

Problem or Motivation

Two defects make the job result lines wrong on 2026-11-12 (Loki, about 4.4 hours of lines):

  • Intake. 29 lines are job=intake result=skipped success=false class=head_moved. Each is a different new issue (for example refactor: delete the dead code that #1910 kept #5148 and fix(roadmap): stage returns every open review finding to the planner #5059), and each holds its intake labels: another writer placed it between the plan and the write. apply_intake (roadmap/intake/intake.py) says that this case "is no failure, the next plan decides the candidate again", but _count_candidate logs it as a failure. Intake shows 37 of 66 (0.56) as logged, and 37 of 37 (1.00) without these lines.
  • Stage. job=stage item=#1928 result=staged plan_calls=0 gate_returns=0 verify_rounds=1 tokens=2135503. A staged plan needs at least one plan call. StageAttempt says that a plan from a client with no trace counts no run.

Proposed Solution & Architectural Design

  • Intake: a candidate that another writer changed (RoadmapItemChangedError) writes no result line. This is the rule that job-success.md already gives for an alternatives check whose body a person changed. Keep the candidate counter devops_cli_roadmap_intake_candidates_total as it is.
  • Stage: count the plan calls of an attempt from the model calls that the attempt made, not from the trace. If no count is possible, write the line with no plan_calls count, not 0.
  • Update the list "Some attempts write no line" in docs/roadmap/job-success.md.

Target Subsystem

SDLC, Git & PR Governance (src/devops_cli/roadmap/intake/intake.py, src/devops_cli/roadmap/stage/stage.py).

Existing Tool Considered

None applies: the defects are in the writer of the line. Cost: about 150,000 tokens, 3 hours elapsed.

Acceptance Criteria

  • A test with a candidate that raises RoadmapItemChangedError finds no result line and fails on main (devops ci fail-to-pass).
  • A test with a staged item that a client with no trace planned finds plan_calls 1 or more, or no plan_calls field.
  • After the deploy, Loki has 0 intake lines with class=head_moved in 24 hours.

Dependencies

Owner decision 2026-11-13

The approved pipeline split (tracker #5482, Phase 5) puts this item in the intake job. Its scope does not change.

  • Live proof: after the merge and the release, intake runs as the App on the new issues of 7 days. A comment gives the result lines with the plan call count and each candidate that intake left out.

Activity

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

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

    @dan-petty
    OwnerAuthor

    New data, 2026-11-13 17:45Z, from devops roadmap eval grades --window 24h:

    The grade asks the owner to look for alternatives to intake, but intake works. This defect makes the policy grade wrong. It is next in the builder queue.

  5. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 13, 2026
  6. removed
    status/in-review
    owner/agent
    on Nov 13, 2026
  7. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-13 20:55 UTC

  8. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor

    Live proof after release 0.132.0 (#5540)

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