Skip to content

docs(openspec): plan #3650 Count kept work by failure class and outcome - #5876

Merged
dan-petty merged 1 commit into
mainfrom
feat/3650-count-kept-work-by-failure-class
Nov 16, 2026
Merged

dan-petty merged 1 commit into
mainfrom
feat/3650-count-kept-work-by-failure-class

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

Count what happens to an item after the implement job keeps its work. The Service reuses devops_cli_service_implement_jobs_total and adds the label class and the results continued, finished and blocked. A clear rule keeps the class of the stop in implement.continued when the record holds implement.wip, because the clear removes implement.failure. A round counts continued with that class when it creates the next Job, and finished or blocked when it reports that Job. The counter still counts every reported runner Job once, with class none when it counts no class. An item with no kept work adds none of the three results. Labels are bounded and hold no issue number. k8s/README.md lists the counter and its values.

Plans #3650

Change: openspec/changes/3650-count-kept-work-by-failure-class/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix labels Nov 15, 2026
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The stage_ready row leaves pull request #5876 a draft. It holds the label plan/needs-fix, because the model review of its plan found an open finding. Fix the plan, or remove the label when the finding is no defect.

@devops-cli-service devops-cli-service Bot removed the verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix label Nov 15, 2026
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 15, 2026 19:28
@dan-petty

Copy link
Copy Markdown
Owner

Vet: NEEDS-FIX. The open model finding still holds at c828a59. The label was removed with no commit.

  1. Double count. tasks.md:20 and record/spec.md:4 add continued, finished and blocked to devops_cli_service_implement_jobs_total, but record/spec.md:25 and proposal.md:12 keep one increment for each reported Job. A Job that starts from kept work counts more than once, against fix(roadmap): count each implement outcome once with its repo #4703 and the success-share alert of feat(roadmap): a dashboard and alerts for the pipeline #3655. Fix: emit devops_cli_service_kept_work_total{repo,class,outcome}, as the "Counter selection" scenario of feat(roadmap): count kept work by failure class and outcome #3650 asks (devops_cli_roadmap_pipeline_implement_total does not exist). Keep the jobs counter and its spec unchanged. Name src/devops_cli/config/constants.py and tests/grafana/test_grafana_dashboards.py (deferred_metrics), or the implement job stops with outside_plan.
  2. tasks.md:45: from k8s/, link ../docs/CLUSTER.md#roadmap-service.
  3. Remove the repeated tasks 1.3, 4.2, 5.2 and 6.2.

@dan-petty dan-petty added the verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix label Nov 15, 2026
@devops-cli-service devops-cli-service Bot removed the verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix label Nov 15, 2026
dan-petty added a commit that referenced this pull request Nov 15, 2026
The drift row removed plan/needs-fix from each passing plan, also a label of the stage review, the step fix-plan or a vet, so stage_ready marked a plan with an open finding ready (#5876). The drift comment now holds the claim of the row (added, held, cleared), and a passing plan loses the label only for the claim added with no open finding in the last plan comment.
dan-petty added a commit that referenced this pull request Nov 15, 2026
The plan drift row removed plan/needs-fix from each plan that passed its
drift check, also a label of the stage review, the fix-plan step or a
vet. stage_ready then marked a plan with an open finding ready: #5876
lost the label twice with no new commit.

The drift comment now holds the claim of the row: added when the row
added the label, held when another check held it first, and cleared when
the plan passes again. A passing plan loses the label only for the claim
added, and only when the last plan comment of the item lists no open
finding. A plan with no drift comment keeps its label. The row reads the
drift comment of each plan on each round. The change adds no label, and
stage_ready does not change.

Closes #5884

Change:
`openspec/changes/archive/2026-11-15-5884-drift-keeps-other-needs-fix/`
@dan-petty
dan-petty merged commit ac493d9 into main Nov 16, 2026
22 checks passed
@dan-petty
dan-petty deleted the feat/3650-count-kept-work-by-failure-class branch November 16, 2026 01:06
dan-petty added a commit that referenced this pull request Nov 16, 2026
The merged plan (#5876) put the results `continued`, `finished` and
`blocked` and a label `class` on
`devops_cli_service_implement_jobs_total`, which counts each runner Job
once. A Job that starts from kept work then counts more than once
(#4703, #3655).

The plan now:
- emits `devops_cli_service_kept_work_total{repo,class,outcome}` and
keeps the jobs counter and its requirement unchanged;
- names `src/devops_cli/config/constants.py` and `deferred_metrics` of
`tests/grafana/test_grafana_dashboards.py`;
- counts `continued` only with `implement.wip`, and no outcome for
`yielded` or `returned`;
- links `../docs/CLUSTER.md#roadmap-service` from `k8s/README.md`;
- removes the repeated tasks 1.3, 4.2, 5.2 and 6.2.

Plans #3650
Change: `openspec/changes/3650-count-kept-work-by-failure-class/`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/openspec OpenSpec changes, specs and their checks type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant