Repository navigation
Description
Problem
Most of a release's items join it after it starts. No part of the tooling counts this, so the roadmap jobs can't tell whether their rules keep releases small.
Measured on 2026-10-03 with read-only GitHub REST calls:
- v0.2.25 (still open) holds 64 issues. 42 of them were opened on or after 2026-10-02, after v0.2.24 shipped (2026-10-01 22:39 UTC), the moment v0.2.25 started.
- Issues per release: v0.2.22 had 26, v0.2.23 102, v0.2.24 45 and v0.2.25 64. Pull requests merged into each release branch: 57, 131, 51 and 58 (v0.2.25 so far). The cap is 12 (
release_cap, which.github/roadmap.tomlleaves at its default). - The owner wants frequent, smaller releases and leaves prioritization to the roadmap tooling. To steer toward that, and to show whether its own rules hold, the tooling needs one number per release that it can read.
What records joins after a start today, at release/v0.2.25 (132ecc5; the files cited here are unchanged at d37120b):
devops roadmap reprioritize(feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740) keeps state, not counts.- The run record card holds
Started(the release the job last started) andSize(that release's open items at the time). The next start overwrites both (apply_reprioritization,src/devops_cli/roadmap/reprioritize.py:2136-2164), so the size at start of a shipped release is lost. - Each item in the admitted set has an
Admittedmark that names the release (JobMark,src/devops_cli/roadmap/store.py:114-135). An item in the current release without that mark joined after the start, and the next run judges it. A critical fix admitted later gets the same mark as an item admitted at the start, and moving an item out clears the mark (_final_marks,reprioritize.py:1950-1984). The marks therefore can't show what joined or what left. - The job posts a one-line reason comment for every change it makes (
Reason,reprioritize.py:277-299;TRANSITIONS,:320-353). Those comments are the only record of why an item moved, and counting them takes one comment read per item. - Nothing under
src/devops_cli/roadmap/emits telemetry.
- The run record card holds
- Project metrics (
emit_project_metrics_telemetry,src/devops_cli/github/metrics.py:389-425) cover open and closed items per milestone, commits and pull requests per release tag, and the interval between releases. They have no baseline at start, and they count no joins, descopes or trims. fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974 (backlog) turns them into gauges that are emitted whendevops ghordevops prruns. TodayInstrumentKindhas onlyCOUNTERandHISTOGRAM(src/devops_cli/telemetry/instruments.py:17-21). - The rule has not been in force yet. The job runs only on a migrated board (
_require_migrated,reprioritize.py:928). Until feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981 (v0.2.26) lands, it runs only when someone starts it by hand, so v0.2.22 to v0.2.25 grew with no admission rule in force. Once the rule binds, only a critical fix can join after the start. The open questions are then:- whether the rule holds;
- how many fixes join;
- how many joins are turned away;
- how much descoping and trimming each release goes through.
Acceptance criteria
-
Ledger on the item. When the job finishes a change, its last job-record write (the one
_final_marksbuilds, which clearsPending) adds one entry to the item's newTallymark. The mark holds a JSON list of[release milestone number, reason]entries, read and written through a pydanticTypeAdapteras thePendingmark is. A change that also admits the critical fix it readies or nudges (Decision.admits,reprioritize.py:481-496) writes[release, reason, "critical_fix"], so that join is counted as well as the stall. Because the entry goes in that same write, each change is counted exactly once, even when one run stops part-way and a later run finishes the change. Tests on the in-memory adapter:StoppingStore(tests/roadmap_faults.py) stops a descope, an admission and a top-up at each of their writes. After the run that finishes each change, the item has exactly one entry for it.- A critical fix that joins already stalled is readied and admitted in one change, with one entry that the read model counts as a join and as kept.
- A change dropped because a person's edit wins adds no entry.
- Decisions whose action is
KEEPorSTART_NEXTadd no entry. - Two changes to one item in one run add two entries.
- Entries name the release by milestone number, so a renamed release keeps its entries.
- An item with 50 entries round-trips through the GitHub adapter's job-record encoding. An older version that reads the record keeps
Tallyas an unknown key (_JOB_RECORD_KEYS,src/devops_cli/roadmap/github_store.py:489-490).
-
Size history. At a start or a first run, the run record write that sets
Sizealso setsSizes: a JSON map from milestone number to size at start, holding the last 10 releases. It is still one write, so the commit point described in the module docstring does not move. Test: after two starts, the run record gives both releases' sizes. -
Machine invariant. The lifecycle machine (
tests/test_roadmap_lifecycle_properties.py) gets one invariant. Its message starts with a CONTEXT.md term. After every finished run, it checks that each item has as manyTallyentries as the job has posted reason comments on it, and that every entry holds a milestone number and aReasonvalue. The count is compared, not the comment text, so the check parses no comment. A change whose comment is posted is always finished (_prepare,reprioritize.py:1218-1262), so the counts match whenever a run finishes. The gate settings stay as they are, and theDEVOPS_PROPERTY_PROFILE=deeprun passes. -
Read model.
release_growth(items, run_record, releases)is a pure, public function, documented in the module docstring next todecide. For each release that has entries or a recorded size, it returns the size at start and the entry counts in four groups:- joined:
critical_fix(admitted);p0_featureandcut(sent to the next release);admission(sent to the backlog); - descoped:
cap,over_size,blocked,dependency,needs_split,others_done,stalled; - start:
top_up,trim,not_ready_at_start,blocked_at_start; - kept:
fix_stalled,review_idle.
An entry with a third element
critical_fixcounts in joined as well as in its own group. A test walksReasonand fails if a reason is in no group, or in more than one, unless it belongs only to silent transitions (_SILENT,reprioritize.py:359: todayfix_stays,fix_new_at_startandshipped). Any reason added later has to be placed in a group. - joined:
-
Report.
devops roadmap reprioritizeprints a "Release growth" section for the current release and the release before it, read before the run makes any writes. Example:v0.2.26: 12 at start; joined 3 (1 critical fix admitted, 2 sent on); descoped 2 (stalled 1, blocked 1); start: pulled in 2, trimmed 1. The MCP toolroadmap_reprioritizereturns the same text. The strings live inMESSAGES.roadmap, and a test renders the section from the in-memory adapter. -
Gauges when the job runs. The emission lives in the reprioritization job's own code path, the one
devops roadmap reprioritizecalls after it plans and applies, so feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981'sdevops roadmap runand the Service emit through it too. Whichever of feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981 and this item lands second calls it from the due job's row. Every run emits a snapshot unless it is a dry run (--dry-runor the global one, which the MCP tool's preview passes). That includes a preview without--confirmand a run with nothing to write, which today returns before the preview message (src/devops_cli/commands/roadmap.py:151-152). A--confirmrun that finishes adds its own finished changes to the snapshot. The snapshot is built from the board the run already read, with no extra GitHub call, and holds:devops_cli_roadmap_release_size_at_start{release};devops_cli_roadmap_release_decisions{release, group, reason}, non-zero counts only.
The points are OTLP gauges sent through
emit()with fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974'sInstrumentKind.GAUGE, andreleaseis the title as it reads now. The skip conditions are fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974's: telemetry disabled,CIorGITHUB_ACTIONSset, dry run, andPYTEST_CURRENT_TEST. A failed collection or export is logged at debug level and changes neither the output nor the exit code. A run that stops part-way emits nothing. Tests:- the
Capturedclient receives the points, from a preview, from a run with nothing to write and from a finished--confirmrun; - a store fake that counts calls records none from the emission;
- each skip condition suppresses the emission.
-
Dashboard. The Project & Engineering Velocity dashboard (
k8s/monitoring/dashboards/project-metrics.json) gets a "Release growth" row. Its panels read the gauges throughlast_over_time(...[$__range]), the form fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974 uses, and show per release:- size at start next to joined (stacked by reason), descoped and trimmed;
- joined as a share of size at start;
- merged pull requests per closed item, joining fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974's
devops_cli_project_prs{release}anddevops_cli_project_items{milestone,state="closed"}withlabel_replace.
devops grafana dashboards lint k8s/monitoring/dashboardsreports 0 errors and 0 warnings, and fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974's dashboard invariants intests/test_telemetry_instruments.pycover the new queries. -
Docs and terms.
docs/TELEMETRY.mdis regenerated withdevops docs generate. CONTEXT.md defines Release growth: the items that joined a release after its start, were turned away, descoped or trimmed, as the job's tally counts them. The task file and the changelog fragment use this term. -
The tests run offline, with the network guard in
tests/conftest.pyleft on. Together the new tests take under 1 s, measured with--durations.uv run devops cipasses. -
Pending a person: once the board is migrated, run
devops roadmap reprioritizeagainst it without--confirm(a preview emits too, and writes nothing). Check that the plan shows the "Release growth" section and that the dashboard row shows the current release's size at start. After the next start, check that the previous release's numbers are still shown.
Key questions
- Where do the counts live? Proposed: on each item, in the job record's
Tallymark, written in the same write as the change it counts. ADR 0001 keeps the roadmap's state in GitHub. The board read the job already makes returns every job record, so the count costs no extra call and survives a stopped run. Rejected:- A tally on the run record card: it takes a write separate from the item's, so a run that stops between the two writes counts a change twice or not at all.
- Counting reason comments: every snapshot would need one comment read per item.
- Counters emitted when a comment is posted: Prometheus
increase()misses a series' first sample (the finding in fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974), and a count kept only in Prometheus is gone after its 30-day retention (retention: 30d,k8s/monitoring/prometheus-values.yaml).
- Do joins the job has not judged yet get a count of their own? Proposed: no. The job reads state, not the change feed (ADR 0003), so its next run judges every join, however late (module docstring of
reprioritize.py). Once feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981 runs the job when due, a join is judged within one poll.is_duemakes the job due at least once a day for the stall check (reprioritize.py:2326-2339), so a snapshot more than a day old means the job has stopped running; the panels show when the snapshot was taken, as fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974's do. Until feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981 lands, the gauges are only as fresh as the last run started by hand. - Does a first run's recorded size count as the size at start? Proposed: yes, since the admission rule treats it that way. The panel description says that the first measured release is counted from the job's first run, not from its real start.
- Which other jobs write entries? Proposed: every job that admits a join or turns one away. Intake (feat(github): single-entry item intake with duplicate detection and placement (
devops roadmap intake) #742, v0.2.26) sends a non-critical candidate whose milestone is the current release to the backlog with a comment. It writes the sameadmissionentry in that same write. Whichever of feat(github): single-entry item intake with duplicate detection and placement (devops roadmap intake) #742 and this item lands second adds the entry there. - Do the gauges go out through OTLP or the Service's
/metrics? Proposed: OTLPemit()in both cases, matching fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974, so a run from a terminal and a run in the Service report the same series. feat(cli): service mode fordevops servewith github webhooks, a polling tick and per-repo job queues #752's/metricsregistry stays for the Service's own health. If feat(cli): service mode fordevops servewith github webhooks, a polling tick and per-repo job queues #752 settles on scraping the Service only, the same samples go toGLOBAL_METRICS.set_gauge, decided when feat(cli): service mode fordevops servewith github webhooks, a polling tick and per-repo job queues #752 lands. - Does the job act on the signal itself, for example by lowering
release_cap? Decided (owner, 2026-10-03): releases should be smaller and more frequent, and prioritization is left to the tooling. Proposed: not in this item, which provides the measure. The cap lives in.github/roadmap.toml, andreprioritizenever makes a commit (src/devops_cli/commands/roadmap.py, module docstring; ADR 0001 rejected a roadmap that turns every change into a commit). A rule that acts on the measure is a follow-up once two releases have been measured with the job running. Such a rule could set a smaller start size while joins or descopes per release stay above a threshold. feat(roadmap): reprioritize places every open p0 and p1 item in an open release, from the backlog and at a release start #882 (ranking) and feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 (closure) can readrelease_growth, and closure can print the release's growth line in its changelog section. - Why keep
Sizeswhen Prometheus keeps the gauge? Proposed: the report and the other jobs read GitHub, not Prometheus, and the previous release's size at start is the baseline for the line the report prints.
Strategic alignment
- No milestone; the roadmap tooling places it. P2: it measures the rules feat(github): current release admission, cap, descoping and stall rules (
devops roadmap reprioritize) #740 already enforces and changes no decision. Value high: it is the feedback signal for frequent, smaller releases. Effort medium: the ledger and the size history each add one mark to writes the job already makes. Most of the work is the machine invariant, the report section and the dashboard row. - Depends on fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974 (
InstrumentKind.GAUGE, the skip conditions for on-use emission, and the dashboard'slast_over_timeform) and feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740 (merged into release/v0.2.25). - Related:
- feat(roadmap): run the roadmap jobs when they are due (
devops roadmap run) #981 runs the job when due; its due row calls the same emission path. - feat(cli): service mode for
devops servewith github webhooks, a polling tick and per-repo job queues #752 covers the Service's metrics. - feat(github): single-entry item intake with duplicate detection and placement (
devops roadmap intake) #742 writes the same entry. - feat(roadmap): reprioritize places every open p0 and p1 item in an open release, from the backlog and at a release start #882 and feat(release): item closure summaries, generated changelog and automatic release cut (
devops roadmap close) #743 can read the measure. - fix(github): a rerun that reverts a stall change counts its own Status write as a person's activity, so a stall descope is quietly undone #1085 and test(github): the roadmap lifecycle machine reaches a ship or cut that lands while a stopped run waits #1086 also edit
reprioritize.pyand the lifecycle machine; whichever merges second rebases. - fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974 (which absorbs fix(gh): project metrics read every page and fail closed instead of reporting zero #931) makes project metrics read every page and fail closed.
- feat(roadmap): run the roadmap jobs when they are due (
- Library first: no new dependency. The work uses the store's existing
set_marks, pydantic for the mark's JSON, the telemetryemit()path, and PromQL'slast_over_timeandlabel_replace. Nothing parses comment text.
Amended 2026-10-04: report the agent filing quota and propose its tuning
The quota, its metrics and the per-release tuning rule (including how release_item_target moves toward 30) are defined in #1153. This item reports them and proposes the tuning; it does not restate the rule.
-
Each run emits the spec's metrics as gauges on command use (fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974): the open count against
open_issue_limit, the current ratior(n), release credit used and left, agent openings and closures this cycle, the allowance left, and borrowed debt. The trend across runs shows whether burn-down keeps up. -
When a release ships, the report summarizes the cycle's quota figures: the release's item count against
release_item_target, the credit used, openings by kind (within the allowance, borrowed, folded instead), closures by kind, the open count at start and ship, and the debt left. It proposes the next cycle's.github/roadmap.tomlquota values, with the reason for each change; therelease_item_targetproposal follows the spec's tuning rule. A person applies them, and the proposal and the values applied are recorded with the release. -
Depends on: feat(roadmap): agent filing quota: release credit, ratio throttle, borrowing and per-release tuning #1153 (the agent filing quota spec) for the quota's definition.
Update 2026-10-08: refinement
Gauges exist (#1253); the Service records /metrics and emits OTLP (roadmap/run.py:593-595), so these gauges do both. _SILENT holds actions (reprioritize.py:378), so a reason only on KEEP or START_NEXT rows needs no group. Since #1349 a person's join is admitted under the bypassed rule's reason with the Joined mark (:959-979, :2080-2081), so its Tally entry carries person, and a test covers both reasons.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 11, 2026
Moved to v0.2.35: v0.2.35 started with fewer than its 16 items and was topped up to 16 from Ready items, critical fixes and P0 features first. (devops roadmap reprioritize)
feat(roadmap): the roadmap job tallies each release's joins, descopes…
feat(release): v0.2.35 (#1581)