Skip to content

feat(roadmap): extend stage review rounds while open findings drop #5066

Closed

Description

@dan-petty

Problem or Motivation

The model review of a stage plan returns the plan to the planner at most CONST_ROADMAP_STAGE_VERIFY_REPAIR_ROUNDS (2) times, a hard constant. A plan that still has an open finding after the last round opens as a draft with plan/needs-fix, and no job repairs it. On 2026-11-12, 2 of 7 plan pull requests (#4472 and #4945) used both rounds while the plan still improved, and stopped with open findings that return the plan. A plan whose count of open findings drops from one review to the next can often pass with one more round.

Proposed Solution & Architectural Design

  1. A setting roadmap.stage.verify_repair_rounds (variable DEVOPS_CLI_ROADMAP_STAGE_VERIFY_REPAIR_ROUNDS), default 2, ge=0, and le=CONST_ROADMAP_STAGE_VERIFY_REPAIR_ROUNDS_CEILING (4), as roadmap.stage.gate_returns has (fix(roadmap): bound the stage gate returns and start no return in a drain #4900). The constant CONST_ROADMAP_STAGE_VERIFY_REPAIR_ROUNDS goes away.
  2. After the last round of the setting, StageJob._verified gives one more round only while the count of open findings of the last review is strictly lower than the count of the review before it. The check is deterministic and makes no model call. No round goes past the ceiling.
  3. No round starts while the Service drains: the drain guard of fix(roadmap): bound the stage gate returns and start no return in a drain #4925 (raise_if_service_stops) runs before each repair round.
  4. The line stage review round: gets a field extended=<0|1>, so a person can count the extensions and their results in Loki. k8s/README.md documents the field.

Target Subsystem

SDLC, Git & PR Governance (roadmap stage verification).

Existing Tool Considered

No open tool decides the repair rounds of a plan. The change follows the bound of roadmap.stage.gate_returns (#4802, #4900) and reuses the drain guard of #4925. It costs about 300,000 tokens to build and about 3 hours elapsed. #4851 asks for a model-based fixable check for the gate returns, and #4866 for the review; this item is the deterministic part for the review rounds.

Acceptance Criteria

  • A test: the setting sets the count of repair rounds, and the settings load refuses a value above the ceiling.
  • A test: a review whose open count drops after the last round gets one more round, and one whose open count stays the same gets none.
  • A test: no item gets more review rounds than the ceiling.
  • A test: no repair round starts after the Service stops.
  • A test: the line stage review round: names each extended round.

Dependencies

Activity

  1. added
    source/agent
    type/feature
    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
    owner/agent
    status/in-review
    and removed
    status/new
    on Nov 12, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 12, 2026
  5. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-12 15:46 UTC

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/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions