Repository navigation
Description
Problem or Motivation
No job success ratio can be read today. increase(devops_cli_roadmap_stage_total{result="staged"}[7d]) is 0 against about 39 staged items, because a new series loses its first count (#4684). The implement counters disagree (#4703), and runner Job metrics do not reach Prometheus (#4684, #4697). The refine judge does not count approvals (31 refusals counted), and the alternatives check does not count refused replies. The owner rule asks for 80% success per job before caps are tuned, so the 80% check needs an exact count now.
Proposed Solution & Architectural Design
Each roadmap job writes one structured log line per attempt, 'roadmap job result:', with counts and fixed names only: stage (staged or failed, class, plan calls, gate returns, extensions, verify rounds, tokens, seconds); implement, one line per runner Job (ready or stopped, class, repair rounds, extensions, halt turns, tokens, seconds); refine (next step, result); refine judge (approved, repaired, refused); alternatives (verdict, refused or failed, searches, reason code); intake (placed, skipped, duplicate). Add the dashboard row 'Roadmap job success' with LogQL count_over_time panels: the 7-day ratio per job with a line at 0.80, the attempt count, and 'too few' under 30 attempts; infrastructure cuts (rollout, provider, budget) count as failures and show as their own share. State the 80% check and its LogQL in docs/roadmap. Prometheus recording rules follow when #4684 and #4703 are fixed.
Target Subsystem
SDLC, Git & PR Governance (all roadmap jobs), with the monitoring dashboard and docs/roadmap.
Existing Tool Considered
Loki LogQL count_over_time and Grafana panels on the existing log pipeline; no new store. Prometheus recording rules follow when #4684 and #4703 are fixed. Cost to build: about 1M tokens, 1 day.
Acceptance Criteria
- A test per job: one attempt writes exactly one result line with every field.
- A test: the line holds no issue text.
- A replay of one stage round with 3 items gives 3 lines.
- The dashboard row shows the ratio and the attempts of stage, implement, refine, refine judge, alternatives and intake.
- The docs state the 80% rule: ratio >= 0.80 with >= 30 attempts at 3 daily checks in a row; after a hold, a Wilson upper bound under 0.80 ends the hold.
Dependencies
None.
Source: #4843
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.The 80% success check needs exact counts, but the pipeline still runs without this logging change.It enables the owner 80% rule and gives operators a per-job success ratio, but it is an observability improvement, not a functional fix.The body estimates about 1M tokens and 1 day across six job log lines, one dashboard row, and docs.Both add a dashboard showing roadmap job outcomes, but #3655 reads Prometheus metrics while this candidate reads Loki log lines via LogQL count_over_time.docs(openspec): archive the change of #4845
docs(openspec): archive the change of #4845
devops-cli-service commentedon Nov 12, 2026
Released in v0.118.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.118.0
devops-cli-service commentedon Nov 12, 2026
Live since 2026-11-12 12:40 UTC