Skip to content

feat(roadmap): run the plan checks before the stage push #4725

Closed

Description

@dan-petty

Problem or Motivation

In the census week (2026-11-04 to 2026-11-11), plan pull requests got 2.52 CI runs each. Plan Check failed 36 times on Service plan pull requests in 14 days. No local check runs before the stage push. #3970 adds one rule (group-no-files) to the stage revision loop. The other Plan Check rules and the invariant tests still run first on GitHub.

Proposed Solution & Architectural Design

After #4559, the stage Job runs devops ci test tests/invariants and the Plan Check rules before _commit_and_push (src/devops_cli/roadmap/stage/stage.py). A failure goes back to the revision loop, or it stops the push. The push goes through the push gate of #4670.

Target Subsystem

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

Existing Tool Considered

The Plan Check rules and the invariant tests through devops ci cover the checks. Cost (estimate): about 100,000 tokens and 2 hours to build, about 3,000 tokens a month to keep, about 15,000 tokens to fix.

Acceptance Criteria

  • A test proves that the stage job does not push a plan that fails a Plan Check rule.
  • One week after the merge, plan pull request CI runs for each pull request are at most 1.5.
  • Plan Check failures on Service plan pull requests fall by half.

Dependencies

#4559, #4670. Related: #3970.

Source: #4667

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 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/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. 36 Plan Check failures in 14 days and 2.52 CI runs per PR show real cost, but the system still functions.
    • Value: Medium. Cuts redundant CI runs and catches bad plans before they reach GitHub, saving tokens and time.
    • Effort: Low. The body estimates 2 hours to build and references existing rules and the devops ci command.
    • Related: ci(roadmap): run plan-check on each plan pull request of the Service #3103, which asks for a different change. Both run Plan Check rules on Service plan pull requests, but #3103 adds a CI job on the PR while the candidate adds a local pre-push check inside the stage job revision loop.
  4. added
    priority/p2-medium
    on Nov 11, 2026
  5. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor

    New evidence (2026-11-13): the stage job logged item=#5136 result=staged success=true gate_returns=0 at 12:22:23Z (0.127.0) and opened plan PR #5407. The CI Plan Check of #5407 then failed: "Group 2, Extend the naming-form and setup-step tests with the copilot names, packs no file. No code span in its tasks names a file of the head commit". So the stage gate passed a plan that devops roadmap plan-check refuses. This item (run the plan checks before the stage push) removes that gap; #3970 and #3965 are the same symptom.

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

    @devops-cli-service
    Contributor

    Live since 2026-11-13 14:23 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/lowpriority/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