Skip to content

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

Merged
dan-petty merged 4 commits into
mainfrom
fix/5166-intake-changed-candidates-plan-calls
Nov 13, 2026
Merged

dan-petty merged 4 commits into
mainfrom
fix/5166-intake-changed-candidates-plan-calls

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

An intake candidate that another writer changed between the plan and the
write now logs no job result line. apply_intake already treats this case
as no failure (#4042), but the line said success=false class=head_moved,
so the intake grade was too low. Many such candidates are issues that
devops roadmap intake in an agent session placed itself. The candidate
still adds 1 to devops_cli_roadmap_intake_candidates_total with
result=skipped.

The stage planner now counts its own plan calls, so a client with no run
trace counts its calls too. An attempt that starts from a kept plan writes
no plan_calls count, and not 0: an earlier attempt made the first calls
of that plan. The job grade reads a line with no count as no first pass.
docs/roadmap/job-success.md gives both rules.

The Service writes these lines, so a release is necessary.

Closes #5166

Change: openspec/changes/archive/2026-11-13-5166-intake-changed-candidates-plan-calls/

Plan #5166 as an OpenSpec change, and add the failing tests: a changed
intake candidate logs no result line, a client with no trace counts its
plan call, and a kept plan logs no plan_calls count.
An intake candidate that another writer changed between the plan and
the write logs no result line. It still counts as skipped in
devops_cli_roadmap_intake_candidates_total. The stage planner counts
its own plan calls, so a client with no trace counts them too, and an
attempt that starts from a kept plan logs no plan_calls count.
An attempt that starts from a kept plan writes no plan_calls count,
also when the checks refuse the kept plan and the attempt asks for a
new plan: an earlier attempt made the first calls. A test now holds
this rule, and job-success.md, the StageAttempt docstring and the spec
delta say it.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must 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 (head a24614e8d, base origin/main 6eae498)

Fail-to-pass (builder): uv run devops ci fail-to-pass --base origin/main. 3 new tests failed on the base and pass on the branch: the changed intake candidate logs a head_moved line on the base, the plain client logs plan_calls=0 on the base, and the kept plan logs plan_calls=0 on the base. 2 tests that existed passed on the base.

Review fix (reviewer): the new test test_a_new_plan_after_a_refused_kept_plan_has_no_count_of_plan_calls holds the rule for a refused kept plan. I proved that it fails when the rule writes the count of the new calls (assert (1, True) == (None, False)). The docs, the docstring of StageAttempt and the spec now say this rule.

Static checks and mypy: uv run devops ci --check --only lint,format,domain,constructs,docs,openspec,typecheck: all pass (mypy strict).

Tests:

  • Builder: tests/roadmap/stage tests/roadmap/intake tests/roadmap/steps tests/roadmap/test_job_result.py tests/telemetry/test_roadmap_intake_implement_metrics.py tests/commands/test_roadmap_step_fix_plan.py: 2989 passed, 1 skipped.
  • Reviewer, after the fix: tests/roadmap/stage/test_roadmap_stage_job_result.py tests/roadmap/stage/test_roadmap_stage_plan_record.py tests/roadmap/intake tests/roadmap/steps tests/roadmap/test_job_result.py tests/roadmap/test_job_grade.py tests/roadmap/test_job_grade_report.py tests/telemetry/test_roadmap_intake_implement_metrics.py tests/commands/test_roadmap_step_fix_plan.py tests/docs/test_docs_inventory.py: 378 passed.

OpenSpec: uv run devops openspec check: pass.

Render diff: the branch changes no path under k8s/, so no kustomize or helm render applies. Argo CD restarts nothing. A release and the normal rollout of roadmap-service deliver the change.

Pending after the release (live proof of #5166): Loki must show 0 intake result lines with class=head_moved in 24 hours, and devops roadmap eval grades --window 24h must show intake with no head_moved class. Before the change (2026-11-13 19:07Z, 24 hours): 73 head_moved intake lines and 144 lines with class=none.

@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 19:46
@dan-petty
dan-petty merged commit d44b9fa into main Nov 13, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/5166-intake-changed-candidates-plan-calls branch November 13, 2026 19:48
dan-petty pushed a commit that referenced this pull request Nov 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.132.0](v0.131.0...v0.132.0)
(2026-11-13)


### Features

* **k8s:** set the pod overhead of RuntimeClass gvisor
([#5530](#5530))
([6eae498](6eae498))


### Bug Fixes

* **roadmap:** leave out changed intake candidates and count plan calls
([#5540](#5540))
([d44b9fa](d44b9fa))

---
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/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant