Skip to content

feat(roadmap): keep the stage gate problems as a list with a code - #5022

Merged
dan-petty merged 3 commits into
mainfrom
feat/4846-stage-gate-findings
Nov 12, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/4846-stage-gate-findings

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The stage gates give each problem of a refused reply as a finding: its gate, its code (the key of its message in MESSAGES.roadmap), the path of its message and its text. The model gets the same joined text as before. The refused file keeps the findings. The stage gate returns line names the gates and the codes, and each return logs the findings before, gone, stuck and new. The histogram devops_cli_roadmap_stage_gate_problems counts the findings of each reply by its number. stage_finding_classes.json holds the seed fix class and the Wilson fix rate of each code from 42 saved refused plans, the input of the fixable check.

Closes #4846

Change: openspec/changes/archive/2026-11-12-4846-keep-the-stage-gate-problems-as/

The stage gates give each problem of a refused reply as a finding with its
gate, its code (the key of its message in MESSAGES.roadmap), the path of
its message and its text. The model gets the same joined text as before.
The refused file keeps the findings, the stage gate returns line names the
gates and codes, each return logs the findings before, gone, stuck and new,
and devops_cli_roadmap_stage_gate_problems counts the findings of each
reply by its number. stage_finding_classes.json holds the seed fix class
and Wilson fix rate of each code from 42 saved refused plans.

Refs #4846
@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 12, 2026
@dan-petty

dan-petty commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner Author

Stage eval replay: base and change

uv run devops roadmap eval stage --replay --json on the base 87ae9eefa and on this branch. The two JSON reports are byte-identical (cmp finds no difference).

Run Cases Defects Gates Pending Unjudged Good Failures
Base 58 2 5 0 8 2 0
Change 58 2 5 0 8 2 0

Gates on both: paths 53 of 53 caught, kind 25 of 25, content 3 of 3, prompt_keys 1 of 1, criteria 0 known. The change does not change a gate or the prompt text, so the same result is expected.

Local checks

  • uv run pytest tests/roadmap/stage tests/telemetry/test_roadmap_stage_steps.py tests/roadmap/implement/test_roadmap_implement_submit.py tests/roadmap/refine/test_roadmap_refine_round.py: 2549 passed, 1 skipped.
  • uv run pytest tests/invariants/test_source_tree.py tests/invariants/test_architectural_invariants.py tests/invariants/test_change_folders.py tests/invariants/test_committed_addresses.py: 171 passed.
  • uv run devops ci docs: every document is up to date.
  • uv run devops ci --only test-tree: 16 cases, 0 failed. The first CI run failed this row: the template cache of stage_findings had no reset in the test floor. The second commit adds reset_template_cache to _PROCESS_STATE_RESETS.
  • Test first: the data file tests failed before stage_finding_classes.json existed (2 failed, 76 passed), and the refused file and log tests failed before the inputs named the right code.

Measured on the 42 saved refused plans

  • 438 problems in all replies, 0 with the code uncoded; 250 in the first replies.
  • 44 returns: 256 findings before the return, 212 gone, 44 stuck, 144 new.
  • Seed classes: stage_problem_missing_test_file 0 of 17 (never), stage_problem_missing_caller 11 of 28 (low_share, Wilson lower bound 0.236), stage_problem_no_quote 6 of 7 (low_share, 0.487), stage_problem_missing_module_test 46 of 51 (mechanical), stage_problem_citation_stale 46 of 46 and stage_problem_reference_uncovered 45 of 45 (model_fixable).

@dan-petty

dan-petty commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner Author

Live steps

The change needs no setting and no ConfigMap change. After the release that holds it rolls to the roadmap Service:

  1. Wait for a stage round that refuses a reply. Loki: {namespace="devops"} |= "stage gate findings:" shows one line for each return with in=, gone=, stuck= and new=.
  2. Loki: {namespace="devops"} |= "stage gate returns:" shows gates= and codes= on each line.
  3. Prometheus (a native histogram): sum by (reply) (histogram_count(increase(devops_cli_roadmap_stage_gate_problems[1d]))) gives the replies that the checks judged by reply number, and histogram_sum over histogram_count of the same increase gives the mean findings of a reply.
  4. A failed item writes roadmap/stage/<owner>/<repo>/<n>.refused.json with a findings list in each reply. A refused file of an older image has no findings; the Service only writes these files and never reads them.
  5. A line with codes=uncoded:<n> names a gate message that no template matches. File an issue with the line.

@dan-petty
dan-petty force-pushed the feat/4846-stage-gate-findings branch from 80b19e5 to 8a89132 Compare November 12, 2026 10:16
@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 10:24
@dan-petty
dan-petty merged commit 5819627 into main Nov 12, 2026
25 checks passed
@dan-petty
dan-petty deleted the feat/4846-stage-gate-findings branch November 12, 2026 12:09
dan-petty pushed a commit that referenced this pull request Nov 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.118.0](v0.117.2...v0.118.0)
(2026-11-12)


### Features

* **ci:** devops ci stops its rows when timeout ends it
([#5031](#5031))
([1fa4e9c](1fa4e9c))
* **roadmap:** keep the stage gate problems as a list with a code
([#5022](#5022))
([5819627](5819627))
* **roadmap:** log one result line for each roadmap job attempt
([#4966](#4966))
([2b6fe3f](2b6fe3f))
* **telemetry:** record each CLI usage error by name and kind
([#4973](#4973))
([a179fd9](a179fd9))


### Bug Fixes

* **ai:** chat loads each persona prompt and challenger gets tools
([#5037](#5037))
([c40b0ad](c40b0ad))
* **ai:** keep the HTTP status of a Claude reply after retries
([#4976](#4976))
([5bf9466](5bf9466))
* **deps:** keep Renovate uv bumps green and groups on Monday
([#4987](#4987))
([b19e153](b19e153))
* **k8s:** raise the limits that 7 d of use shows are too low
([#5030](#5030))
([028c62b](028c62b))
* **roadmap:** a job posts no comment that repeats a recent one
([#4978](#4978))
([fff903a](fff903a))
* **service:** alert when GitHub cannot deliver a webhook
([#5045](#5045))
([2bfbfcb](2bfbfcb))
* **service:** delete the stream route that sends canned verified text
([#5038](#5038))
([e9d51b5](e9d51b5))
* **telemetry:** keep one upstream status series per service
([#4986](#4986))
([3e4ca56](3e4ca56))
* **tests:** remove the runner variable in the test floor
([#4988](#4988))
([093aa61](093aa61))


### Performance Improvements

* **ai:** make the ast graph walk and call search faster
([#5039](#5039))
([3b25cc6](3b25cc6)),
closes [#4662](#4662)
* **ci:** build the devcontainer only on its own inputs
([#4977](#4977))
([c5b15ac](c5b15ac))
* **ci:** test each merge once, on the push to main
([#5043](#5043))
([c6992b1](c6992b1))
* **tests:** remove fixed waste in six slow tests
([#4995](#4995))
([1c7044e](1c7044e))


### Code Refactoring

* **ai:** delete devops ai pipeline and persona leftovers
([#5044](#5044))
([d5fefde](d5fefde)),
closes [#4827](#4827)
* **openspec:** split big capabilities into nested ones
([#4981](#4981))
([dfb09bd](dfb09bd))
* **pr:** devops pr update acts only on a failed check
([#4990](#4990))
([aa4fa1a](aa4fa1a))

---
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): keep the stage gate problems as a list with a code

1 participant