Skip to content

feat(roadmap): extend stage gate returns while the plan improves - #5389

Merged
dan-petty merged 3 commits into
mainfrom
feat/4851-extend-stage-gate-returns
Nov 13, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/4851-extend-stage-gate-returns

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A reply that the stage checks refuse at the last return of roadmap.stage.gate_returns gets one extra return when the last return made progress. The rule gate_extension reads the findings of the last two refused replies: no finding of the reply before stays, and no finding has the fix class never. The rule makes no model call. An item gets one extra return at most, so a reply gets at most gate_returns + 2 planner requests.

Each decision logs a stage gate extension: line and counts devops_cli_roadmap_stage_gate_extension_total. Each extra return logs its end and counts devops_cli_roadmap_stage_gate_extension_ends_total. The failure text names the stop.

Why: item #5136 stopped at its third return while its findings fell from 3 to 1, and the last return removed that finding. The decision model and the refusal at once on a never finding wait for #4847 and #5272. Refs #5386.

Closes #4851

Change: openspec/changes/archive/2026-11-13-4851-extend-stage-gate-returns/

@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 13, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Checks and evidence (review of the branch before the push).

Tests

  • uv run devops ci test tests/roadmap/stage tests/telemetry tests/roadmap/test_roadmap_limit_classes.py tests/roadmap/steps/test_roadmap_fix_plan.py tests/docs tests/lang tests/roadmap/test_job_result.py: 3237 passed, 1 skipped.
  • Builder run: tests/roadmap tests/ai/client/test_roadmap_agent_run.py: 7322 passed, 1 failed. The failure is tests/roadmap/project_review/test_review_facts.py::test_the_facts_of_a_version_window: the local venv has no review extra (lizard). CI installs all extras. Reported on fix(ci): the local git row fails without the review extra #4997.
  • uv run devops ci --check --only lint,format,domain,typecheck,docs: all pass (mypy strict).
  • uv run devops openspec check: passed. openspec validate --all --strict: 342 passed, 0 failed.
  • uv run devops ci fail-to-pass --base origin/main (builder): the new test module and test_roadmap_stage_plan fail on the base (new names), the limit-class test fails on the base; all pass on the head.

Render diff

  • No path under k8s/ changes (git diff origin/main...HEAD -- k8s is empty). No kustomize or helm render difference and no restart. No setting, ConfigMap key or manifest changes.

Release

Review fixes (commit 2 of 3)

  • The description of devops_cli_roadmap_stage_gate_problems said at most gate_returns + 1 replies and 4 series. The extra return makes 5. The series test now counts the extra return.
  • Three specs said that a failed validation, a title problem and a refused revision return gate_returns times at most. The change now has MODIFIED deltas for roadmap-stage/spec-delta, roadmap-stage/plan-text and roadmap-stage/verification.
  • A new test proves the extra plan run in the dry run of devops roadmap eval stage.
  • test_roadmap_stage_plan_defect_limit.py checked that the comment holds no also after a second try. That text no longer exists, so the check was empty. It now checks the new failure text.
  • The docstring of the golden-set planner names the extra return.

Scope

@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 08:49
@devops-cli-service

Copy link
Copy Markdown
Contributor

Pull request #5389 has merge conflicts with main at commit dea6a2dadc9e. GitHub cannot merge it. Rebase the branch onto the current main, resolve the conflicts and push the branch.

dan-petty added a commit that referenced this pull request Nov 13, 2026
PR #5387 and PR #5401 merged two minutes apart, and each added
`GitHubClient.get_compare_diff` to `src/devops_cli/github/client.py`
with the same body. Git merged both with no conflict, so `main` defines
the method twice: ruff F811 and mypy `no-redef` fail, the Static
Analysis check of `main` fails, and the pre-push hook refuses every
branch that holds this `main` (#5389 and #5400 wait for this fix). This
change keeps one method and names both callers (#5346, #5388) in its
docstring. The body does not change, so no behavior changes.

Closes #5404
Change:
`openspec/changes/archive/2026-11-13-5404-main-defines-get-compare-diff-twice/`
A reply that the stage checks refuse at the last return of
roadmap.stage.gate_returns gets one more return when no finding of the
reply before it stays and no finding has the fix class never. The rule
gate_extension makes no model call. An item gets one extra return at
most, so a reply gets at most gate_returns + 2 planner requests.

Each decision logs a stage gate extension line and counts
devops_cli_roadmap_stage_gate_extension_total. Each extra return logs
an end line and counts devops_cli_roadmap_stage_gate_extension_ends_total.
The failure text names the return and the stop.

The decision model part waits for #4847 and #5272 (#5386).
…text

The extra return of #4851 gives a reply up to roadmap.stage.gate_returns
+ 2 replies. Three stage specs still said that a validation failure, a
title problem and a refused revision return gate_returns times at most,
and the description of devops_cli_roadmap_stage_gate_problems still said
4 series. The spec delta now modifies the three requirements, the metric
text says 5 series, and the series test counts the extra return.

A test now proves the extra plan run in the dry run of the stage eval.
The plan-defect test reads the new failure text, so its check that the
comment holds no failure text is not empty.
@dan-petty
dan-petty force-pushed the feat/4851-extend-stage-gate-returns branch from dea6a2d to 7725d0f Compare November 13, 2026 12:05
@dan-petty
dan-petty merged commit 6d3f954 into main Nov 13, 2026
24 checks passed
@dan-petty
dan-petty deleted the feat/4851-extend-stage-gate-returns branch November 13, 2026 12:12
dan-petty pushed a commit that referenced this pull request Nov 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.128.0](v0.127.1...v0.128.0)
(2026-11-13)


### Features

* **roadmap:** extend stage gate returns while the plan improves
([#5389](#5389))
([6d3f954](6d3f954))


### Bug Fixes

* **roadmap:** fix-plan keeps the citations that the run of the head
read ([#5400](#5400))
([7f4054f](7f4054f)),
closes [#5391](#5391)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): extend stage gate returns while the plan improves

1 participant