Skip to content

feat(roadmap): log one result line for each roadmap job attempt - #4966

Merged
dan-petty merged 3 commits into
mainfrom
feat/4845-log-one-result-line-for-each
Nov 12, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/4845-log-one-result-line-for-each

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Each roadmap job logs one roadmap job result: line for each attempt: stage, implement, refine, the refine review, alternatives and intake. The line holds the job, the repository, the item, the result, success, the failure class, infra and the counts of the job. It holds no text of an issue or of a model. Loki counts the lines: the counters of the jobs give no common ratio, and a metric label cannot hold the counts of each attempt.

The dashboard devops-cli Telemetry gets the row Roadmap Job Success: the 7-day ratio of each job against 0.80, the attempts with too few under 30, the share of infrastructure cuts, and the ratio at each daily check. docs/roadmap/job-success.md gives the intended result of each job, the query and the 80% rule.

Closes #4845

Change: openspec/changes/archive/2026-11-12-4845-log-one-result-line-for-each/

@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

Copy link
Copy Markdown
Owner Author

Stage replay of the base and of the change (uv run devops roadmap eval stage --replay --json):

Run Commit Cases Known defects judged Gates (caught of known) Good plans Failures Exit
Base origin/main 6cc475b 58 82 of 319 paths 53/53, kind 25/25, criteria 0/0, content 3/3, prompt_keys 1/1 5 of 5 passed none 0
Change this branch 58 82 of 319 paths 53/53, kind 25/25, criteria 0/0, content 3/3, prompt_keys 1/1 5 of 5 passed none 0

The two JSON reports are the same, field for field. The change adds counts to the stage planner and changes no gate, so the replay result does not change.

@dan-petty

Copy link
Copy Markdown
Owner Author

Local checks on this branch (before the push):

  • uv run devops ci test on the 18 covering test modules (the 6 new result-line modules, the stage job, round log, repair return, command and failure class tests, the refine round, the implement submit and deadline tests, the alternatives tests, two intake modules and the Kubernetes Job API tests): 378 passed.
  • The alternatives one-write and recheck tests, the refine trust tests, the intake outcome metrics tests and the dashboard tests: all passed.
  • uv run devops ci --check --only constructs,docs,openspec: pass after one fix (a pytest.raises now binds its error).
  • uv run devops grafana dashboards lint k8s/monitoring/dashboards/devops-cli.json: 0 errors, 0 warnings.
  • The ratio query of the new row ran on the live Loki with no syntax error. The same json message | line_format | regexp form reads the labels of the existing stage review round: lines.

The task items about cap extensions, the decision-model fallback and the repair round of a fixable finding do not apply to this item: it adds the measure only. The line has no extensions count yet, because no extension exists in the code. The change that adds an extension adds the count.

@dan-petty

Copy link
Copy Markdown
Owner Author

Live steps. No step changes a setting, a ConfigMap of the Service or a Secret.

  1. The change ships with the next release. Argo CD rolls out the Service image. The runner image does not change: the Service writes the implement line when it reports a Job.
  2. After the rollout, read the new lines in Grafana Explore (Loki): {namespace="devops", app_kubernetes_io_name="roadmap-service"} |= "roadmap job result:". Expect one line for each stage item that a round tried, each implement Job that a round reported, each refine item, each review of a bot item that called the model, each alternatives check and each intake candidate.
  3. The monitoring Application of Argo CD applies the dashboard ConfigMap. Open the dashboard devops-cli Telemetry and read the row Roadmap Job Success.
  4. Each day, read the row and apply the 80% rule of docs/roadmap/job-success.md. A full 7-day ratio needs 7 days of lines. Until a job has 30 attempts in 7 days, its attempts panel shows too few.
  5. fix(telemetry): send cumulative metrics to the Prometheus OTLP receiver #4684 and fix(roadmap): count each implement outcome once with its repo #4703 are fixed, so Prometheus recording rules on the counters can give the same ratio later, as a separate change.

Each roadmap job logs one `roadmap job result:` line for each attempt:
stage, implement, refine, the refine review, alternatives and intake.
The line holds the job, the repository, the item, the result,
`success`, the failure class, `infra` and the counts of the job. It
holds no text of an issue or of a model. Loki counts the lines: the
counters of the jobs give no common ratio, and a metric label cannot
hold the counts of each attempt.

The dashboard `devops-cli Telemetry` gets the row `Roadmap Job Success`,
and `docs/roadmap/job-success.md` gives the intended result of each job,
the query and the 80% rule.
@dan-petty
dan-petty force-pushed the feat/4845-log-one-result-line-for-each branch from f0610fa to a996297 Compare November 12, 2026 08:19
@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 08:29
@dan-petty

Copy link
Copy Markdown
Owner Author

The first CI run failed one test: docs/roadmap/job-success.md was more than two links from AGENTS.md. The feature commit now links the page from the notes of docs/ROADMAP_WORKFLOW.md. The second run passed all checks.

The ratio panels and the docs query divide the successes of each job by its
attempts. A job with attempts and no success has no numerator series, so the
division dropped the job, and a job at 0% looked the same as a job with too
few attempts. The numerator now gives 0 to each job that has attempts.
@dan-petty
dan-petty force-pushed the feat/4845-log-one-result-line-for-each branch from a996297 to 21d663d Compare November 12, 2026 08:44
@dan-petty

Copy link
Copy Markdown
Owner Author

Review findings

# Severity Finding Verdict Action
1 major The panels Job Success Ratio (7 d) and Job Success Ratio by Day (7 d), and the ratio query in docs/roadmap/job-success.md, show nothing for a job that has attempts and 0 successes. A job at 0% looks the same as a job with too few attempts. Confirmed Fixed in e641416

How I verified it. On live Loki, an instant query of the ratio of the existing stage review round: lines over 6 h, with a numerator filter that matches no line, returns data: []. The same query with the numerator (<successes> or on (<label>) (<attempts> * 0)) returns one series with the value 0.

What I changed.

  • The numerator of both ratio panels is now (<successes> or on (roadmap_job) (<attempts> * 0)). This is the zero fill that the infrastructure share panel already uses. The >= 30 attempts gate of the 7-day panel stays as it was.
  • The descriptions of the two ratio panels now say that a job with attempts and no success shows a bar at 0.
  • docs/roadmap/job-success.md shows the same ratio query and tells why the or on (roadmap_job) part is necessary.

Proof. The full new 7-day expression parses on live Loki. It returns no series, because no roadmap job result: line exists before this merge. The same expression shape, on the live stage review round: lines with the label roadmap_job="stage", a numerator that matches no line and the gate at 10 attempts, returns {roadmap_job="stage"} 0.

The OpenSpec archive stays the last commit, and the branch is on the latest main.

All required checks pass on 21d663d (devops pr monitor 4966).

@dan-petty
dan-petty merged commit 2b6fe3f into main Nov 12, 2026
25 checks passed
@dan-petty
dan-petty deleted the feat/4845-log-one-result-line-for-each branch November 12, 2026 12:04
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): log one result line for each roadmap job attempt

1 participant