Skip to content

docs(openspec): plan #2968 Add inbox gauges and panel - #5604

Merged
dan-petty merged 1 commit into
mainfrom
feat/2968-emit-inbox-gauges-add-panel-show
Nov 14, 2026
Merged

dan-petty merged 1 commit into
mainfrom
feat/2968-emit-inbox-gauges-add-panel-show

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

Plans #2968

devops roadmap inbox now sends devops_cli_roadmap_inbox_items, one value for each of the nine counted kinds, so a Grafana panel shows the counts that #2915 asked for. Seven repositories give 63 series, inside the cap. The inbox also lists an item whose stage job failed, with the failure class and the command that takes the item at once. The panel "Inbox Items by Kind" fills the right half of the items row of the product dashboard, beside "Oldest Item Age by State", which #2919 left free. The image digest line stays with #4832. docs/roadmap/inbox.md now records why: the read needs a client of the cluster, and the Service pod holds no cluster token.

Change: openspec/changes/2968-emit-inbox-gauges-add-panel-show/

@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 labels Nov 14, 2026
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 14, 2026 03:03
@dan-petty

Copy link
Copy Markdown
Owner

An agent vetted this plan before a merge (shepherd, 2026-11-14). Verdict: needs fix.

  1. The plan leaves out the owner decision of 2026-11-13 in the body of feat(roadmap): Emit inbox gauges, add panel, show digest line #2968. That decision asks for gauges of the inflow, the outflow and the age of each typed person cause (premise_reject, owner_question, supervise_cap, watch_cycles, the refine waits and intake.duplicate_of), a daily inflow cap, an alert over the cap, and a live proof: a comment with 7 days of gauge values after the merge. Tracker feat(roadmap): track the roadmap pipeline split into jobs #5482, Phase 5, lists "feat(roadmap): Emit inbox gauges, add panel, show digest line #2968 the inflow, outflow and age of each person cause, with a daily cap." No file of the change folder names these gauges, the cap, the alert or the live proof. Plan them, or get an owner decision on feat(roadmap): Emit inbox gauges, add panel, show digest line #2968 that moves them to another issue, and name that issue in the plan.
  2. Only a person sends the gauge. The plan calls emit_inbox_counts from inbox_cmd only. No row of the Service, no CronJob and no workflow runs devops roadmap inbox (no match in k8s/, src/devops_cli/roadmap/run.py or .github/workflows/). The steward scope comment 6806118539 puts the gauge "in the metrics row" (src/devops_cli/roadmap/run.py:906 _run_metrics_adapter, row metrics at line 976). The steward panels of feat(roadmap): track the issue stewards and persona selection #4780 and the 7-day live proof need a sample at each round. Send the gauge from the metrics row, name src/devops_cli/roadmap/run.py and its test, and count the GitHub requests that the inbox read adds to each metrics round.
  3. The nine counted kinds are not the nine kinds of the owner. Comment 6836020173 gives "blocked, refine, split, alternatives, failed, stage_retry, owner, claim and labels" and says "The owner series starts when feat(roadmap): an agent that needs a decision asks on the issue and waits #3077 adds the kind, with no change to the gauge." design.md:6 counts queue in place of owner, and task 3.1 pins nine kinds plus five pull request kinds. When feat(roadmap): an agent that needs a decision asks on the issue and waits #3077 adds owner, 10 kinds for 7 repositories give 70 series, over the cap of 63. Count the eight kinds of the owner list that exist now, leave queue out, and let feat(roadmap): an agent that needs a decision asks on the issue and waits #3077 add owner as the ninth.
  4. The stage_retry line takes the wrong items. The owner defines the kind as "a Ready item with stage.failed_class" (comment 6806118539). specs/roadmap-inbox/spec.md:4 and task 1.2 take "each open item". A return to New does not clear the key: src/devops_cli/roadmap/stage/stage.py:3537 and :3557 write the Status New and leave stage.failed_class. Only the success paths at :3380 and :3432 clear it. So a New or a Blocked item with an old class gets a false line and a false count. Take Ready items only, and add a test with a New item that holds an old class.
  5. The panel goes against docs/DESIGN.md. Rule C7 (docs/DESIGN.md:225) allows at most 3 colored series plus "Other". Rule C15 (docs/DESIGN.md:233) says: "A breakdown of more than 3 entities is a sorted table or a bar gauge with drill-down links, not a line chart." specs/project-metrics-dashboard/spec.md:4 makes "Inbox Items by Kind" a timeseries of sum by (kind), which is 9 series, and the spec makes that form a rule. Use a bar gauge or a sorted table of the last value of each kind, or the 3 largest kinds plus "Other".

Points that do not block:

@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 14, 2026
@dan-petty

Copy link
Copy Markdown
Owner

An agent vetted this plan before a merge (2026-11-14). Verdict: still needs work.

The proposed implementation in the plan has several blocking scope, architectural, and design deficiencies:

  1. Missing Owner Decision Requirements (feat(roadmap): Emit inbox gauges, add panel, show digest line #2968 & Tracker feat(roadmap): track the roadmap pipeline split into jobs #5482): The 2026-11-13 owner decision on issue feat(roadmap): Emit inbox gauges, add panel, show digest line #2968 (and tracker feat(roadmap): track the roadmap pipeline split into jobs #5482, Phase 5) explicitly requires gauges for the inflow, outflow, and age of each typed person cause (premise_reject, owner_question, supervise_cap, watch_cycles, refine waits, and intake.duplicate_of), a daily inflow cap, an alert over the cap, and a 7-day live proof comment post-merge. None of these were included in the plan.
  2. Missing Automated Metric Emission: The plan only invokes emit_inbox_counts from the manual devops roadmap inbox CLI command. As specified in steward comment 6806118539, emission must occur in the Service's metrics row (src/devops_cli/roadmap/run.py:906, _run_metrics_adapter) to feed dashboard telemetry reliably.
  3. Kind Definitions & Cardinality Cap Violation: The plan counts queue instead of the owner-specified kinds (comment 6836020173), leading to series count overflow (>63 series across 7 repositories) when owner is added.
  4. Incorrect stage_retry Filtering: stage_retry is scoped to all open items rather than Ready items with stage.failed_class. Non-Ready items (e.g. New or Blocked items returning from failed attempts) retain historical stage.failed_class marks, causing false positive counts.
  5. Dashboard Design Violations (docs/DESIGN.md): Graphing 9 separate series in 'Inbox Items by Kind' violates docs/DESIGN.md rules C7 (maximum 3 colored series plus 'Other') and C15 (breakdown of >3 entities must be a sorted table or bar gauge, not a timeseries line chart).

@dan-petty
dan-petty force-pushed the feat/2968-emit-inbox-gauges-add-panel-show branch from d60d15e to 5d261ad Compare November 14, 2026 14:53
@dan-petty

Copy link
Copy Markdown
Owner

An agent vetted this plan before a merge (2026-11-14). Verdict: ready.

All shepherd findings have been resolved:

  1. Owner decision requirements: Incorporated person cause instruments (inflow, outflow, and age for typed causes), daily inflow cap alert in k8s/devops/alerts/inbox.yaml, and 7-day post-merge live proof comment.
  2. Automated metric emission: Wired emit_inbox_counts into src/devops_cli/roadmap/run.py (_run_metrics_adapter) as well as inbox_cmd, using casefolded RepoRef(repo).key.
  3. Series cap & kinds: Confined COUNTED_KINDS to 8 active kinds, excluding queue (56 series across 7 repos, safely under 63 series cap).
  4. Stage retry scoping: Scoped stage_retry strictly to Ready items with stage.failed_class.
  5. Dashboard compliance: Formatted panel as a bar gauge (bargauge) per DESIGN.md rules C7 and C15.

@dan-petty dan-petty changed the title docs(openspec): plan #2968 Emit inbox gauges and add the inbox panel docs(openspec): plan #2968 Add inbox gauges and panel Nov 14, 2026
@dan-petty
dan-petty force-pushed the feat/2968-emit-inbox-gauges-add-panel-show branch from 4e39517 to 298073c Compare November 14, 2026 15:25
@dan-petty

Copy link
Copy Markdown
Owner

An agent re-vetted this plan after rebase (2026-11-14). Verdict: ready.

Additional CI checks resolved:

  1. Rebased cleanly onto origin/main, eliminating divergence.
  2. Updated Group 3 test target to tests/roadmap/test_roadmap_run_metrics.py to match the actual existing metrics runner test file.
  3. Unquoted docs/DESIGN.md in proposal.md What Changes to prevent false unmapped path detections.
  4. uv run devops roadmap plan-check 5604 passed with code 0.

@dan-petty
dan-petty merged commit 7967ff5 into main Nov 14, 2026
22 checks passed
@dan-petty
dan-petty deleted the feat/2968-emit-inbox-gauges-add-panel-show branch November 14, 2026 15:42
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 verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant