Repository navigation
Description
Split from #3069.
devops roadmap explain prints yes or no and the first rule that stops the stage job and the implement job. It reports no outcome counts, durations, repair rounds or tokens. The dashboard panel agreement with explain cannot be tested. This part is deferred until explain reports pipeline outcomes. Acceptance criteria: devops roadmap explain SHALL report outcome counts, durations, repair rounds and tokens for one item. A test SHALL compare each dashboard panel value with the explain output for a fixture item. The test SHALL fail when a panel value differs from the explain output.
Proposed design
Problem statement
devops roadmap explain reports yes or no for each job and the first rule that stops it. It gives no totals of the last implement run: no outcome counts, no duration, no repair rounds and no tokens. This item adds those totals to the text output and to a JSON object under --json. A person and a test then read the same values. The dashboard panel agreement test leaves this item. The panels are totals by repository and class, so no panel value equals one item's value.
Acceptance criteria
Requirement: Totals of the last implement run
devops roadmap explain SHALL report the token total, the seconds total, the repair-round count and the outcome counts of the last implement run of the item.
Scenario: Totals of a fixture run
- WHEN the job record of the fixture item holds a trace with one model event of 1200 input tokens, 300 output tokens and 90 seconds, and two attempt events, the first with outcome
failedand nextrepair, the second with outcomepassedand nextstop - THEN the output reports 1500 tokens, 90 seconds, 1 repair round, 1 failed outcome and 1 passed outcome.
Requirement: JSON object with the totals
devops roadmap explain SHALL give the same totals as a JSON object when it runs with --json.
Scenario: The JSON object agrees with the text
- WHEN the command runs with
--jsonon the fixture item - THEN the JSON object holds
tokens_total1500,seconds_total90,repair_rounds1 andoutcomeswith 1 failed and 1 passed, and the text output holds the same values.
Requirement: Item with no recorded run
devops roadmap explain SHALL state that the item has no recorded implement run when the job record holds no trace.
Scenario: No trace in the record
- WHEN the job record of the fixture item holds no
implement.tracevalue - THEN the output states that the item has no recorded run and gives no totals, and the JSON object gives null for each total.
Requirement: Dropped events beside the totals
devops roadmap explain SHALL state the number of events that the trace bound dropped beside the totals.
Scenario: Trace with dropped events
- WHEN the trace of the fixture item reports 12 dropped events
- THEN the output names 12 dropped events and says that the totals leave them out.
Requirement: No model call and no write
devops roadmap explain MUST report the totals with no model call and no write to GitHub or git.
Scenario: A run that reports totals
- WHEN the command reports the totals of the fixture item and the model client refuses every call
- THEN the command gives the totals and the store records no write.
Existing Tool Considered
No alternatives check has run. jq is the nearest open, maintained tool. It sums the fields of a JSON document offline. It does not read the job record of the item from the issue body or render the text and JSON of the command. The change extends src/devops_cli/roadmap/explain.py and src/devops_cli/commands/roadmap.py. Written cost: about 12k tokens to build the report and its JSON object. It takes 3k tokens a year to keep and fix it, and about half a day of elapsed time.
Key questions
- What does
devops roadmap explainprint today?: It prints yes or no for the refine, stage and implement jobs. Each line gives the reason of the first rule that stops the job, and the implement job also gives its effort line.--traceprints one line for each event of the last implement run. Each line gives the tokens, seconds, retries and attempts, and the output gives the count that the bound dropped. [sources: src/devops_cli/roadmap/explain.py, src/devops_cli/commands/roadmap.py, tests/roadmap/test_roadmap_explain.py] - Does the job record hold a history of the runs of one item?: No.
StageRecordKeyandImplementRecordKeyhold the last run only. The record holds the trace and the spend of the last implement run, and the failed time of the last stage run. It holds no per-run outcome count, duration or token total. [sources: src/devops_cli/roadmap/store.py, src/devops_cli/roadmap/explain.py] - What does the trace of the last implement run hold for outcomes, tokens and seconds?: Each model event holds
tokens_in,tokens_outandseconds. Each attempt event holds anoutcomeofpassedorfailedand anextofrepairorstop. The trace also holds the count of earlier events that the bound dropped. A sum over its events leaves those events out. [sources: src/devops_cli/roadmap/implement_trace.py] - Does this item need a per-item run history?: No. The trace of the last implement run holds the outcome counts, the seconds, the repair rounds and the tokens of that run. The totals read the trace, so the item needs no history store and no other item. (best practice) [sources: src/devops_cli/roadmap/implement_trace.py, src/devops_cli/roadmap/store.py]
- Chosen: Build the totals from the trace of the last run. The record already holds the trace, so the item needs no new store and no other item.
- Rejected: Add a per-item run history first. It adds a store of its own and does not fit the pull request that adds the totals.
- How does
explaingive the totals so a test compares them exactly?: It gives a JSON object under--jsonbeside its text output. The test reads the JSON object, and a person reads the text output. (best practice) [sources: src/devops_cli/commands/roadmap.py, src/devops_cli/roadmap/explain.py]- Chosen: A JSON object under
--jsonbeside the text output. The test compares each value exactly and does not parse prose, andplan-check,plan-recheckandimplementalready carry the option. - Rejected: Text output only. The test would parse prose and break on a wording change.
- Rejected: JSON only. A person reads the text output of the command.
- Chosen: A JSON object under
- How does
explaincount a repair round?: It counts the attempt events of the trace whosenextisrepair. The trace of the last run holds them, so the count needs no new record and no other item. (best practice) [sources: src/devops_cli/roadmap/implement_trace.py, src/devops_cli/roadmap/explain.py]- Chosen: Count the attempt events whose
nextisrepair. The attempt event marks each repair round of a step, and the record already holds the trace. - Rejected: Read a repair-round count that feat(roadmap): metrics for the pipeline outcomes #3069 records. No such count is in the record today, and the item would wait on another item for a value that the trace holds.
- Rejected: Count the retry events. A retry event is also a send again of a model request, so it is not a repair round.
- Chosen: Count the attempt events whose
- How does
explaincount an outcome?: It counts the attempt events of the trace by theiroutcomefield:passedandfailed. (best practice) [sources: src/devops_cli/roadmap/implement_trace.py]- Chosen: Count the attempt events by
outcome. The attempt event names the outcome of the step, and the record already holds the trace. - Rejected: Count the check events by status. A check event is one command, not the outcome of a step.
- Chosen: Count the attempt events by
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-06: partly.
Tool: jqlang/jq (https://github.com/jqlang/jq), NOASSERTION, last activity 2026-11-02, maintained.
Activity
devops-cli-service commentedon Nov 2, 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.Improves observability and enables dashboard agreement tests but does not block delivery.Enables verification that dashboard panels match CLI output for one item.Add four output fields to an existing command and write one comparison test.Both cover pipeline outcome metrics; #3069 delivers dashboards and alerts, the candidate delivers CLI output in 'devops roadmap explain'.devops-cli-service commentedon Nov 5, 2026
Refine cannot set this item to Ready at b39dcba until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
dan-petty commentedon Nov 6, 2026
Returned to New under AGENTS.md rule 2: the item cannot be built as written. Two reviewers read the code of origin/main on 2026-11-06 and agreed.
Evidence
The data that explain would report does not exist per item. src/devops_cli/roadmap/store.py StageRecordKey and ImplementRecordKey hold the last run only (implement.spend, implement.trace of the last run, stage.failed_at). There is no stage run history, no outcome count and no per-run duration. #3076 was returned for the same reason: 'no source holds a history of runs'. The scenario 'two stopped stage runs and one passed' has no source. The repair-round count is not in the job record yet either; #3069 adds it. #3069 also forbids an issue number in a metric label, so a panel value is a total by repo and class and cannot equal an explain value for one item. 'devops roadmap explain --trace' (#3355) already prints tokens, seconds, retries and attempts for the last implement run, so the 'prints only yes or no' claim is partly false.
Re-scope for refinement
As written (outcome counts, durations, repair rounds and tokens for one item, and a test that each dashboard panel equals the explain output) it cannot be built: no per-item run history exists, and the panels, once #3069 and #3655 land, are aggregates. Under AGENTS.md rule 2, return it to New with this evidence (devops roadmap return 3217 --comment ... --confirm). Suggested re-scope: (a) after #3069 records repair rounds in the job record, add the totals of the last implement run (tokens, seconds, repair rounds) to explain, with --json; (b) leave the panel-to-record test to #3655, whose own acceptance criteria already hold 'a test evaluates the panel queries on fixture series of a sample item and compares each value with the job record'; (c) if a run history per item is wanted, file it as its own item with a cost note.
devops-cli-service commentedon Nov 6, 2026
Refine cannot set this item to Ready at c714551 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
The next refine round also looks at the item again when a commit on the default branch changes one of these files:
src/devops_cli/roadmap/store.py.devops-cli-service commentedon Nov 6, 2026
Status set to Ready at 235a807 (see proposed design in issue body).
Moved to new items: #3851.
devops-cli-service commentedon Nov 6, 2026
Alternatives check: partly
Tool: jqlang/jq (https://github.com/jqlang/jq)
Covers:
Lacks:
outcomeis the outcome and thatnext: repairis a repair round--jsonobject ofdevops roadmap explainSearches run:
Sources:
Checked on 2026-11-06. A person decides what this means for the item. The check changes no label and closes no issue.
12 remaining items
devops-cli-service commentedon Nov 7, 2026
The runner Job devops-cli-runner-20261107-084504-8cdf ended: succeeded.
Image digest: sha256:a12d8a3601a2f9803ba6a7f77fe19fdcc27a4de30944a1e65fc19d08808e9eff
The last lines of its log:
docs(openspec): plan #3217 report implement-run totals in roadmap exp…
feat(roadmap): Read the totals of the last implement run from the tra…
feat(roadmap): Print the totals as a JSON object with --json (#3217)
feat(roadmap): Document the totals and the new option (#3217)
docs(openspec): archive the change (#3217)
devops-cli-service commentedon Nov 7, 2026
Released in v0.82.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.82.0
devops-cli-service commentedon Nov 7, 2026
Live since 2026-11-07 15:48 UTC