Repository navigation
Description
Problem
Agents file issues faster than releases close them, and nothing in the repository slows them down. The open count was 280 on 2026-10-04, read with REST search (repo:dan-petty/devops-cli is:issue is:open). v0.2.25 closed 70 issues (milestone 43).
The owner set a limit on 2026-10-03/04. 200 open issues is "the limit for agents to stop adding items … the project management should just work to burn down that budget overage". A hard cap could deadlock, because some items can't be finished without opening another. So agent filing is throttled, not stopped. A release credit gives headroom, and the number of closures each opening costs rises as the open count nears and passes the limit.
So far the rule exists only as amendments spread over four issues: #742 (formula and enforcement), #1126 (reporting and tuning), #1127 (burn-down) and #1125 (cheap reads). The formula and its tuning can drift apart there, so this item is the single source for the quota (see Key questions).
Nothing enforces the rule today. .github/roadmap.toml (at 2341ee5) declares only board and planning_horizon. RoadmapConfig (src/devops_cli/roadmap/config.py:26-35) knows board, release_cap, discovery_threshold, planning_horizon and stall_days, and it forbids unknown keys. .github/labels.yml has no source/* or budget/* label. The filing rules in AGENTS.md:122-132 (generator block devops_roadmap_governance_block, src/devops_cli/ai/instruction_generator.py:205-218) tell agents to file every observation and set no limit.
The rule
Scope. The rule covers agent-sourced issues only: reviews, evaluations, roadmap jobs' own findings, and agent sessions. Issues a person files never count and are never refused.
First choice. A finding is folded into an existing item, as an amendment or a comment, or it joins an open consolidation group (#1127). Folding needs no new issue.
Window. The current release cycle runs from its start to its ship. It starts when the previous release's milestone closes (v0.2.26 started at 2026-10-03T20:37:25Z, when milestone 43 closed).
Release credit. Each cycle starts with this many agent openings that need no closures:
credit = min(release_credit_base + release_credit_per_delivered_item × delivered, release_item_target)
deliveredis the number of issues closed in the previous release's milestone.release_credit_baseis 10 andrelease_credit_per_delivered_itemis 1.release_item_targetis 50. The owner wants to stay under 50 items per release, and 10 + 70 = 80 "is too much" (owner, 2026-10-04).- v0.2.26 therefore starts with a credit of 50.
Ratio. Beyond the credit, each agent opening costs r(n) closures. n is the repository's open-issue count, L is open_issue_limit (200), s is throttle_start_fraction (0.8) and o is overage_step_fraction (0.25).
n < s·L:r = 0, so there is no throttle.s·L ≤ n < L:r = (n - s·L) / ((1 - s)·L). With the defaults this is(n - 160) / 40, rising from 0 to 1 closure per opening.n ≥ L:r = 1 + (n - L) / (o·L). With the defaults this is1 + (n - 200) / 50: 2 closures per opening at 250 open, 2.78 at 289.
Allowance. The number of agent openings allowed this cycle is credit + floor(closures this cycle / r(n)). When r(n) is 0 the allowance has no limit. An opening proceeds while the cycle's agent openings, borrowed ones included, are below the allowance. Measured on 2026-10-04: n = 280, so r = 2.6. The cycle has 20 closures, so the allowance is 50 + floor(20 / 2.6) = 57.
Borrowing, never refusing. An opening beyond the allowance still proceeds when it is needed to finish work:
- a split of an item too big for one PR;
- a follow-up a reviewer or readiness check requires;
- a P0/P1 bug or security issue.
It is labelled budget/borrowed and counts as debt until it is closed. Any other opening beyond the allowance is folded into an existing item instead, with a line saying why.
What counts as a closure. An issue closed in the window as completed, merged into another item, superseded or expired, each with a comment. A bulk "not planned" close without a comment does not count.
Config keys (.github/roadmap.toml)
| Key | Value | Meaning |
|---|---|---|
open_issue_limit |
200 | L, where the ratio reaches 1 closure per opening |
throttle_start_fraction |
0.8 | s, the share of L at which the throttle starts |
overage_step_fraction |
0.25 | o, the share of L above L that adds one closure per opening |
release_credit_base |
10 | the credit with nothing delivered |
release_credit_per_delivered_item |
1 | credit added per item the previous release delivered |
release_item_target |
50 | the credit's cap, and the item count each release aims to stay under |
Metrics
Each metric is a REST read, so none of them spends GraphQL points (#1125). <start> is the window's start and R is the repository.
- Open count
n:GET /search/issues,q=repo:R is:issue is:open,total_count. - Delivered and start:
GET /repos/R/milestones/<previous>,closed_issuesandclosed_at. - Agent openings:
q=repo:R is:issue label:source/agent created:>=<start>. - Borrowed openings: the same query with
label:budget/borrowed. - Closures:
q=repo:R is:issue is:closed closed:>=<start>, minusq=… is:closed closed:>=<start> reason:"not planned" comments:0. - Debt:
q=repo:R is:issue is:open label:budget/borrowed. - Derived values:
r(n), credit used and left, and allowance left. Folded findings come from intake's run report (feat(github): single-entry item intake with duplicate detection and placement (devops roadmap intake) #742), because a fold opens no issue that search could count.
Per-release tuning
Owner, 2026-10-04: "We can adjust the formula after each release based on milestone metrics as all iterative cycles of the project." At each ship, #1126 proposes the next cycle's values; its proposal for release_item_target follows the rule below.
How the target moves. Owner, 2026-10-04: the target "should be near the boundary of current performance with oversight and ambition … as we iterate we can decrease that target closer to 30, but we have a backlog to get through".
- Placement. The target sits just beyond the release's measured throughput (its delivered items), without overshooting what the owner can oversee.
- Lowering. It moves toward 30 in small steps (proposed: 5). It moves only when the release met its target, borrowed debt was repaid and the open count fell over the cycle.
- Holding. While the open count is above
open_issue_limit, the target holds, so the backlog burn-down keeps its throughput. - Explanation. Each proposal states which of these conditions held.
Which item does what
- This item defines the rule. It adds the config keys and their reader, the pure
r(n)/credit/allowance function, the two labels, and the AGENTS.md rule. - feat(github): single-entry item intake with duplicate detection and placement (
devops roadmap intake) #742 (intake) enforces the rule at intake. It reads the counts above, computes the allowance with this item's function, and opens, folds or borrows. It reports each decision. - feat(roadmap): the roadmap job tallies each release's joins, descopes and trims by reason, and reports them in its plan and as gauges #1126 (tallies) reports the metrics above as gauges and produces the ship-time tuning proposal that follows the rule above.
- feat(roadmap): a consolidation job proposes one task for open items that share a root cause or change surface, and a person applies it (
devops roadmap consolidate) #1127 (consolidation) burns down the overage and the borrowed debt. - fix(github): GraphQL mutations and implicit-POST
gh apiwrites get the rate limiter's mutation pacing, decided from the request gh sends #1125 (GitHub API budget) keeps board reads cheap. The counts here use REST search and stay off the GraphQL budget.
Acceptance criteria
-
Config keys and their reader.
RoadmapConfig(src/devops_cli/roadmap/config.py) gains the six keys in the table, with defaults insrc/devops_cli/config/defaults.pynext toDEFAULT_ROADMAP_RELEASE_CAP. Pydantic field constraints validate them: limits and target ≥ 1, credit terms ≥ 0, and fractions strictly between 0 and 1..github/roadmap.tomldeclares all six with the values in the table and one comment line each. The file is read through the existingread_roadmap_config, with no new parsing. Tests intests/test_roadmap_config.pycover these cases:- the defaults;
- the declared file;
- a fraction of 0 or 1 rejected with the key named;
- an unknown quota key rejected (
extra="forbid").
-
A pure quota function. A new module
src/devops_cli/roadmap/quota.pyexposesratio(n, config),release_credit(delivered, config)andallowance(n, delivered, closures, config). Each returns a value and does no I/O. Arithmetic is exact (stdlibdecimalorfractions), so a boundary such as 0.5 closures per opening never rounds down. With the default config, tests intests/test_roadmap_quota.pyassert:r(150)= 0,r(160)= 0,r(180)= 0.5,r(200)= 1,r(250)= 2 andr(289)= 2.78;- credit for a previous release of 0, 30 and 70 delivered items = 10, 40 and 50;
- the allowance has no limit while
r(n)is 0, andallowance(250, 70, 20)= 60 andallowance(280, 70, 20)= 57.
Each test runs offline and the module takes under 1 s (
--durations=0). -
Labels.
.github/labels.ymladdssource/agent("Filed by an agent; counts toward the filing quota") andbudget/borrowed("Agent opening beyond the quota allowance; counts as debt until closed"), each with a colour. -
The AGENTS.md rule.
AGENTS.md's filing rules (:122-132) and their generator block (devops_roadmap_governance_block,src/devops_cli/ai/instruction_generator.py:205-218) gain one rule with the same text. It says:- fold a finding into an existing item first;
- label every agent-filed issue
source/agent; - beyond the release credit, each opening costs
r(n)closures, using the values in.github/roadmap.toml; - an opening beyond the allowance proceeds only as a borrow (split, required follow-up, P0/P1 bug or security), labelled
budget/borrowed, and anything else is folded with a line saying why; - issues a person files never count.
The rule links this issue for the formula and names the REST search queries above, so an agent that does not go through intake can check its allowance.
AGENTS.mdis edited by hand and the generator mirrors it. Nothing regeneratesAGENTS.md(docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840). A test intests/test_instruction_generator.pyasserts that the template namessource/agent,budget/borrowedandopen_issue_limit. -
A
changelog.dfragment named for this issue records the change.uv run devops cipasses.
Key questions
- Is this a spec only, or does it ship code? Decided (owner, 2026-10-04): one spec issue is the single source. Its first implementing PR lands the config keys,
r(n)and the AGENTS.md rule in the same PR, with no documentation-only PR. feat(github): single-entry item intake with duplicate detection and placement (devops roadmap intake) #742, feat(roadmap): the roadmap job tallies each release's joins, descopes and trims by reason, and reports them in its plan and as gauges #1126 and feat(roadmap): a consolidation job proposes one task for open items that share a root cause or change surface, and a person applies it (devops roadmap consolidate) #1127 keep only their parts and link here. - Does the quota ever stop an agent? Decided (owner, 2026-10-03/04): no. Filing is throttled, not stopped, and an opening needed to finish work is borrowed (see the rule above).
- What caps the credit? Decided (owner, 2026-10-04):
release_item_target, 50 (see Release credit). The target then moves only by the per-release tuning rule. - When does a cycle start? Proposed: when the previous release's milestone closes (
closed_at). The same REST read givesdelivered(closed_issues). The GitHub Release'spublished_atfor v0.2.25 (2026-10-03T20:37:21Z) is 4 s earlier. The milestone is used because one read gives both values. - How is a bulk "not planned" close told apart? Proposed: search's
reason:"not planned" comments:0. An issue with earlier comments that was bulk-closed without a closing comment still counts. That is accepted because bulk closes are a person's step. Telling the two apart would mean a timeline read per issue. - How are agent-sourced issues attributed? Proposed: by the
source/agentlabel only. The feat(github): single-entry item intake with duplicate detection and placement (devops roadmap intake) #742 amendment also allowed intake's job record; search cannot count a job record, and agents outside intake have none. - Does debt carry across releases? Proposed: debt is the set of open
budget/borrowedissues, so it carries until each is closed. Closing a borrowed issue repays it. The cycle's credit is not reduced by debt; feat(roadmap): a consolidation job proposes one task for open items that share a root cause or change surface, and a person applies it (devops roadmap consolidate) #1127 burns it down instead. - Does this item add a command that prints the allowance? Proposed: no. feat(github): single-entry item intake with duplicate detection and placement (
devops roadmap intake) #742 computes and reports the allowance on every intake run, and feat(roadmap): the roadmap job tallies each release's joins, descopes and trims by reason, and reports them in its plan and as gauges #1126 emits the gauges. Until feat(github): single-entry item intake with duplicate detection and placement (devops roadmap intake) #742 lands, the AGENTS.md rule names the REST queries. - Why the thresholds as fractions of
L? Proposed: so tuningopen_issue_limitalone keeps the curve's shape. The 0.8 and 0.25 values are the amendment's; per-release tuning (feat(roadmap): the roadmap job tallies each release's joins, descopes and trims by reason, and reports them in its plan and as gauges #1126) may propose new ones.
Strategic alignment
- No milestone; the roadmap tooling places it. feat(github): single-entry item intake with duplicate detection and placement (
devops roadmap intake) #742 (v0.2.26, starts first) depends on it, so this item lands no later than feat(github): single-entry item intake with duplicate detection and placement (devops roadmap intake) #742. Proposed P1. Value high: it is the brake the owner asked for on agent filing. Effort small: config keys, one pure module, two labels and one instruction rule. - Depends on feat(github): github-sourced roadmap, migration and generated roadmap view (
devops roadmap migrate,render) #739 (delivered:.github/roadmap.tomlandread_roadmap_config). - Items that depend on this one:
- feat(github): single-entry item intake with duplicate detection and placement (
devops roadmap intake) #742 (enforcement at intake); - feat(roadmap): the roadmap job tallies each release's joins, descopes and trims by reason, and reports them in its plan and as gauges #1126 (reporting and the tuning proposal);
- feat(roadmap): a consolidation job proposes one task for open items that share a root cause or change surface, and a person applies it (
devops roadmap consolidate) #1127 (burn-down).
- feat(github): single-entry item intake with duplicate detection and placement (
- Related:
- fix(github): GraphQL mutations and implicit-POST
gh apiwrites get the rate limiter's mutation pacing, decided from the request gh sends #1125 keeps board reads cheap, and these counts stay on REST search; - fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974 (gauges on command use, which feat(roadmap): the roadmap job tallies each release's joins, descopes and trims by reason, and reports them in its plan and as gauges #1126 uses);
- docs(agents): instruction surfaces state only what is true, and
devops ai agentsnever overwrites AGENTS.md #840 (never regenerateAGENTS.md). feat(github): single-entry item intake with duplicate detection and placement (devops roadmap intake) #742 rewrites the sameAGENTS.mdblock; this item lands first, and feat(github): single-entry item intake with duplicate detection and placement (devops roadmap intake) #742 rebases.
- fix(github): GraphQL mutations and implicit-POST
- Library first: pydantic validates the keys, and stdlib
decimal/fractionsdoes the arithmetic. The counts come from REST searchtotal_count, and nothing parses issue text.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(roadmap): agent filing quota specification and pure quota engine (…
dan-petty commentedon Oct 4, 2026
Closed by #1155, merged into
release/v0.2.26.GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by
devops gh issues close-merged.feat(release): v0.2.26 (#1178)
refactor(roadmap): intake files every new candidate, with no agent fi…