Repository navigation
Description
Problem or Motivation
The roadmap jobs refuse or stop work that one more bounded round can fix, and fixed caps turn each refusal into a loss:
- Stage opened 12, 9, 1, 5 and 1 plan pull requests a day from 2026-11-07 to 2026-11-11. About 20% of stage attempts open a plan pull request.
- 66 of about 110 classified failed stage rounds in 7 days end at the gate return cap of 1 (
CONST_ROADMAP_STAGE_GATE_RETURNS). One return clears 211 of 254 gate problems (83%). - The stage row suspended 25 times in 7 days, 16 of them with only
plan_defectfailures. Each suspension holds the row for 6 hours while 149 Ready items are selectable. - About 15% of implement Jobs reach a ready pull request (12 of 81). Refused commands were in 25 of 51 implement stops before the halt of fix(roadmap): halt implement step on consecutive refusals #4659. A failed verification command, lost tests, a merge conflict and a scope change stop a step with 0 repair rounds.
- 28 bot-filed items wait for a person after a refine judge refusal (median 6.0 days). Of 31 refusals in 7 days, 14 hold only input-gap findings and 0 repair rounds ran.
- No job success ratio can be read today:
increase(devops_cli_roadmap_stage_total{result="staged"}[7d])is 0 against about 39 staged items (fix(telemetry): send cumulative metrics to the Prometheus OTLP receiver #4684).
The owner gave this direction on 2026-11-11 (word for word):
keep loosening restrictions and caps, adding dynamic cap extensions using a decision model to judge if progress is being made, and make sure there is a step to identify if something is fixable before being refused or rejected
Later the same day the owner added (word for word):
we need to actively shephard devops configuration and iterate on jobs until they are 80% successfull and then we can start to fine tune caps and restrictions based on real performance
This direction is the owner allowance that AGENTS.md rule 5 requires. It covers the caps, budgets, gates, screens, holds and return rules of the roadmap jobs (stage, implement, refine and its judge, intake, alternatives, consolidate). It does not cover security controls: secret scanning, sandbox and egress rules, the shell policy, branch protection, required checks and the person-only actions stay as they are.
Goal
Phase A: each roadmap job reaches a success rate of at least 80%. Stage counts attempts that open a plan pull request. Implement counts Jobs that reach a ready pull request. Refine, the refine judge, alternatives and intake count runs that end with their intended result. Phase A loosens live settings and code caps, and adds a fixable check before every refusal.
Phase B starts for a job only when that job holds 80%: its caps and model cuts are then fitted from measured outcomes.
A cap becomes a soft cap. When a run reaches it, deterministic guards run first, then a rule or the decision model (Jev, decide_with_jev, yes/no with a probability) judges from short progress counts whether the run makes progress. Progress gives one bounded step, up to a maximum number of extensions and a hard ceiling. Each place that refuses first classes its findings, fixes the mechanical ones with no model, and asks "can one repair round fix this?". Fixable gives one bounded repair round with the findings; not fixable refuses with the class of each finding. Each decision, its probability, the facts and the outcome are logged and counted.
Decisions
Decided by best practice (owner rule 2026-10-22):
- Order at each soft cap: guards first (maximum extensions, hard ceiling, outer time and token limits, Service drain, exact loop, stuck finding). Before the cuts are fitted, a point extends when the rule says yes or the model is at or above the default cut 0.5. The model can add an extension; it cannot remove one that the rule grants. After the fit (at least 30 labelled outcomes, at least 10 of each label, halves check), the model with its fitted cut decides and the rule is the fallback. Model error, a 5 s timeout or no decision model gives the rule answer. Child 4 amends ADR 0020 for this order.
- Modes per point: off (the fixed cap of today), shadow, rule (the rule acts, the model answer is recorded) and on. The owner session has a live kill switch per point.
- Gate returns: a setting with default 2 (allowed 1 to 3), then one extension on progress to a hard ceiling of 3 returns (4 planner asks).
- Row suspension: a round whose failed items all have the class
plan_defectdoes not count. The limit stays 3 as the new settingservice.max_failed_rounds, so provider failures still suspend the row. - Waits and terminal stops: the
plan_defectwait stays 6 hours. A finding of a known gate defect gets the classcheck_suspectand does not count toward the 3 plan defects; a total of 5 item-class failures on one body returns the item to New. - Time guards (owner nested-timeout rule): a stage return starts only when elapsed item seconds + the p90 ask (728 s) + 120 s <= 2700 s and the Service does not drain. An implement round starts only when the step has at least 1.5 x the longest round + 300 s left before the 5400 s step limit.
- Mode at start: a fix site with evidence starts in mode on (stage gate, implement halt, scope change, refine judge). A site with fewer than 5 refusals in 7 days or a fixable share under 2/3 starts in shadow (stage verify review, alternatives).
- The 80% check: a 7-day ratio >= 0.80 with >= 30 attempts at 3 daily checks in a row. After a hold, a Wilson upper bound under 0.80 ends the hold and the points of that job go to mode rule. Infrastructure cuts count as failures and show as their own share.
- Metrics: separate bounded counters for the cap family and the fix family.
devops_cli_decision_point_totalkeeps its bound of 60 series. - Phase B storage: fitted values and cuts go to repository data files by pull request; hard ceilings stay reviewed repository values, not Valkey values.
Ordered child list
Each line gives the issue, its title, its child number in the order and the issues to merge first. "Start now" marks an item with no unmet dependency.
- fix(roadmap): loosen the caps that turn a stage refusal into a loss #4802 fix(roadmap): loosen the caps that turn a stage refusal into a loss (child 1, start now, scope updated). Depends on: none.
- feat(roadmap): log one result line for each roadmap job attempt #4845 feat(roadmap): log one result line for each roadmap job attempt (child 2, start now). Depends on: none.
- feat(roadmap): keep the stage gate problems as a list with a code #4846 feat(roadmap): keep the stage gate problems as a list with a code (child 3, start now). Depends on: none.
- feat(roadmap): add the soft-cap and fix-check chain to decision points #4847 feat(roadmap): add the soft-cap and fix-check chain to decision points (child 4, start now). Depends on: none.
- fix(roadmap): refine sends a judge refusal to an agent round #4798 fix(roadmap): refine sends a judge refusal to an agent round (child 5, start now, a deterministic fixable check folds in; parent feat(roadmap): track the issue stewards and persona selection #4780). Depends on: none.
- feat(roadmap): extend stage gate returns while the plan improves #4851 feat(roadmap): extend stage gate returns while the plan improves (child 6). Depends on: fix(roadmap): loosen the caps that turn a stage refusal into a loss #4802, feat(roadmap): keep the stage gate problems as a list with a code #4846, feat(roadmap): add the soft-cap and fix-check chain to decision points #4847 + the stage drought fix that stops a refused kept plan from using a gate return.
- feat(roadmap): fix mechanical stage gate problems with no model call #4853 feat(roadmap): fix mechanical stage gate problems with no model call (child 7). Depends on: feat(roadmap): keep the stage gate problems as a list with a code #4846.
- feat(roadmap): an implement refusal halt gets one repair turn #4859 feat(roadmap): an implement refusal halt gets one repair turn (child 8). Depends on: feat(roadmap): add the soft-cap and fix-check chain to decision points #4847.
- feat(roadmap): a failed verification command gets a repair round #3577 feat(roadmap): implement stops get one repair round with the finding (child 9, scope widened; parent feat(roadmap): every step repairs before it gives up, in bounded rounds #3053). Depends on: feat(roadmap): add the soft-cap and fix-check chain to decision points #4847.
- feat(roadmap): allow bounded path additions in implement plan-request #4099 feat(roadmap): allow bounded path additions in implement plan-request (child 10, the scope-change amend round folds in). Depends on: feat(roadmap): add the soft-cap and fix-check chain to decision points #4847.
- feat(roadmap): extend implement repair rounds while the errors fall #4861 feat(roadmap): extend implement repair rounds while the errors fall (child 11). Depends on: feat(roadmap): add the soft-cap and fix-check chain to decision points #4847.
- feat(roadmap): a refused alternatives reply goes back once #4864 feat(roadmap): a refused alternatives reply goes back once (child 12). Depends on: feat(roadmap): log one result line for each roadmap job attempt #4845, feat(roadmap): add the soft-cap and fix-check chain to decision points #4847.
- feat(roadmap): stage review findings run the fixable check #4866 feat(roadmap): stage review findings run the fixable check (child 13). Depends on: feat(roadmap): add the soft-cap and fix-check chain to decision points #4847.
- feat(roadmap): the refine judge asks the decision model before a refusal #4867 feat(roadmap): the refine judge asks the decision model before a refusal (child 14). Depends on: feat(roadmap): add the soft-cap and fix-check chain to decision points #4847, fix(roadmap): refine sends a judge refusal to an agent round #4798.
- feat(monitoring): show soft-cap and fix-check results with alerts #4868 feat(monitoring): show soft-cap and fix-check results with alerts (child 15). Depends on: feat(roadmap): log one result line for each roadmap job attempt #4845, feat(roadmap): add the soft-cap and fix-check chain to decision points #4847.
- chore(k8s): keep the model call concurrency in the ConfigMap template #4870 chore(k8s): keep the model call concurrency in the ConfigMap template (child 16). Depends on: the live change below passes its 24 h check.
- feat(roadmap): fit soft-cap values and cuts from measured outcomes #4871 feat(roadmap): fit soft-cap values and cuts from measured outcomes (child 17, phase B). Depends on: feat(roadmap): log one result line for each roadmap job attempt #4845 shows that the job holds 80%, feat(roadmap): add the soft-cap and fix-check chain to decision points #4847, feat(roadmap): extend stage gate returns while the plan improves #4851, feat(roadmap): split thresholds come from measured job history #4817.
Live settings (owner session)
Apply now, one value at a time, then read the child 2 ratio and the child 15 panels after 24 to 48 hours, and keep or revert:
service.model_call_concurrency: 2(today unset, so 1). The live route goes to a hosted provider with no parallel limit, so the premise of 1 (fix(service): the model lanes of all repositories call the one-slot background tier at the same time, and a call that waits behind them more than 1,100 s fails #2564) is false. The Service reads the value once at start: patch the ConfigMapdevops-cli-config, then restartdeployment/roadmap-servicewhen no stage round is in flight (a restart drains for 600 s and cuts a stage round). Check after 24 hours: stage row seconds a day go up, the model lane queue depth goes down, gateway refusals (429, 5xx, stall) stay at or below 1% of calls, and Service budget holds do not rise. Revert to 1 when refusals pass 1%. This value does not reorder the rows of one lane; fix(roadmap): run stage before refine on the model lane #4796 and feat(roadmap): run each stage item in its own Job #4559 do that.
Apply only after the image that knows the key runs (an unknown key stops the Service from starting): roadmap.stage.gate_returns and service.max_failed_rounds (child 1), and the roadmap.decisions keys of the new points (children 4 to 14).
Keep as they are: roadmap.stage.limit 3, roadmap.stage.planned_limit 20, roadmap.stage.step_tokens 64000, ai.max_retries 1, roadmap.implement.repair_rounds 3, roadmap.implement.step_token_budget 8,000,000, the item token limit 20,000,000, the time limits (step 5400 s < item 12600 s < Job 14400 s), the planner call notice 40 (#4399 stays in shadow) and service.github_requests_per_hour.
Not filed
| Item | State | Reason |
|---|---|---|
| A stage planner exploration stop that extends on progress | held | #4399 keeps it in shadow. An acting extension could add about 40% of stage tokens. Values for a later mode on: soft 40, step +10, at most 3, hard 70 (< 200 tool calls). |
A 1 hour plan_defect wait |
dropped | Only 2 of 149 selectable items waited. A 1 hour wait spends the 3 plan defects of an unchanged body in about 3 hours. |
| A default of 6 failed rounds | dropped | It also loosens the suspension for provider outages. |
| A fixed raise of the implement repair rounds | dropped | 0 of 3 sampled stops were fixable by more rounds of the same kind. Child 11 extends only while the errors fall. |
| A second implement token extension | conditional | File only if limit_reached is more than 10% of implement stops in the 48 hours after #4553. |
| Items for intake and consolidate | none | Intake succeeds in about 96% of runs and no cap binds; consolidate had no run in 7 days. Both use the child 4 fixable check when they refuse work. |
Related open items
The stage drought fixes stay in their own items and are not refiled here: #4791 (stale test path gate), #4796 (stage before refine on the model lane), #4479 (re-anchor a stale citation), #4590 (trace gate), #4559 (each stage item in its own Job; its pod deadline must be at least 3600 s so the 2700 s stage item guard fits inside it). #4399 keeps the exploration stop in shadow. #4684, #4703 and #4697 fix the Prometheus counts; until then child 2 reads Loki. #4408 tracks the decision model workflows and is the parent of the ADR 0020 amendment. #3576 keeps the no-change return. #3569 and #3570 are linked to child 11, not folded. #3241 tunes the planner tool answer caps and does not cover these points. #3655 owns the pipeline dashboard that child 15 adds to. #4817 (issue stewards) holds the calibration code that child 17 reuses.
Measure of the whole
| Measure | Today | Target |
|---|---|---|
| Plan pull requests a day | 12, 9, 1, 5, 1 (2026-11-07 to 11-11) | 10 or more (80% of about 13 attempts a day) |
| Stage attempts that open a plan pull request | about 20% | 80% or more, held |
| Implement Jobs that reach a ready pull request | about 15% (12 of 81) | 80% or more, held |
| Refine, refine judge and alternatives success | not counted | 80% or more, held |
| Intake runs that place their items | about 96% | stays 80% or more |
| Failed stage rounds that end at the return cap | 66 of about 110 in 7 days | under 30% |
| Stage row suspensions with only plan defects | 16 of 25 in 7 days | 0 |
| Bot-filed items that wait for a person after a judge refusal | 28 (median 6.0 days) | fewer each week |
| Stage tokens for each plan pull request | about 2.6M (70.3M in 7 days) | shown each day, lower |
| Extensions and repair rounds with an outcome line | not recorded | 100% |
Target Subsystem
SDLC, Git & PR Governance (roadmap Service jobs: stage, implement, refine, alternatives), with the decision points, monitoring and the ConfigMap template.
Existing Tool Considered
pydantic-ai DecisionModel and the Jev decision model through decide_with_jev; the existing ADR 0020 decision point registry and ResolverChain (no second framework); statsmodels proportion_confint (Wilson) and SurvfuncRight for the fits; Prometheus, Loki LogQL, Grafana and promtool for the measures and alerts; the OpenHands StuckDetector thresholds as the pattern for the loop guard. Cost to build: about 12.4M tokens for phase A and 1.5M tokens for phase B (the sum of the child estimates), about 9 working days in total.
Acceptance Criteria
- Each child is merged, or closed with evidence.
- Each roadmap job shows its 7-day success ratio and attempt count on the dashboard.
- Each job holds a success ratio of 80% or more with 30 or more attempts at 3 daily checks in a row, before child 17 tunes its caps.
- Each extension and each repair round writes a decision line and an outcome line, and the counters show them.
Dependencies
None for the tracker. The children carry their own.
Proposed design
Problem statement
The roadmap jobs refuse or stop work that one more bounded round can fix. Each refusal loses a plan or an implement job, and a fixed cap makes the loss sure. This tracker holds Phase A: it loosens the caps, adds a fixable check before each refusal, and measures each job until it holds a success ratio of 0.80. Phase B fits the caps from measured outcomes after that hold. Each child issue delivers one part, and the tracker delivers no code of its own.
Acceptance criteria
Requirement: Child list completion
The tracker SHALL report itself ready to close only when each child issue is merged or closed with evidence.
Scenario: One child stays open
- WHEN one child issue of the tracker is open
- THEN the close check reports the tracker as not ready to close and names that child
Requirement: Job success ratio on the dashboard
Each roadmap job SHALL show its 7-day success ratio and attempt count on the dashboard.
Scenario: Stage ratio is on the dashboard
- WHEN the dashboard query for the stage job runs over the last 7 days
- THEN it returns a success ratio and an attempt count from the stage result lines
Requirement: 80% hold
A roadmap job MUST hold a success ratio of 0.80 or more only with 30 or more attempts at three daily checks in a row.
Scenario: Infrastructure cuts count as failures
- WHEN the 7-day window holds 30 attempts and 5 of them end with an infrastructure cut
- THEN the ratio uses all 30 attempts and the dashboard shows an infrastructure share of 5
Requirement: Phase B entry
Phase B MUST start for a job only when that job holds a success ratio of 0.80 or more.
Scenario: A job below 0.80 stays in Phase A
- WHEN the hold check gives a ratio of 0.70 for the implement job
- THEN the Phase B gate returns false for the implement job
Requirement: Decision and outcome lines
Each soft-cap extension and each repair round SHALL write one decision line and one outcome line.
Scenario: A gate extension writes two lines
- WHEN the stage gate return cap grants one extension
- THEN the log holds one decision line and one outcome line with the same decision identifier
Requirement: Fixable check before refusal
Each refusal site SHALL class its findings and SHALL run one bounded repair round when one repair round can fix them.
Scenario: A mechanical gate finding is fixed
- WHEN the stage gate finds a mechanical problem that one repair round can fix
- THEN the job fixes the problem with no model call and does not refuse the plan
Requirement: Guards before extension
At each soft cap the deterministic guards MUST run before any extension decision.
Scenario: The maximum extensions is reached
- WHEN a run reaches the maximum number of extensions
- THEN the run stops at the hard ceiling and makes no decision model call
Requirement: Result line for each attempt
Each roadmap job SHALL write one result line for each attempt with its outcome and whether an infrastructure cut ended it.
Scenario: A stage result line parses
- WHEN a reader parses one stage result line
- THEN the line holds the job, the attempt, the outcome and the infrastructure cut
Requirement: Fitted values in repository data files
Phase B SHALL write each fitted value and cut to a repository data file by pull request, and MUST keep each hard ceiling as a reviewed repository value.
Scenario: A fit writes a data file
- WHEN the Phase B fit writes the cut of the stage gate point
- THEN the cut is in a repository data file in the change and no hard ceiling is written to Valkey
Existing Tool Considered
No alternatives check has run. pydantic-ai DecisionModel with the Jev decision model through decide_with_jev covers the yes/no progress question with a calibrated probability. The ADR 0020 point registry and ResolverChain cover the decision points, so the change adds no second framework. statsmodels proportion_confint covers the Wilson interval and SurvfuncRight covers the time-to-outcome fit. Prometheus, Loki LogQL, Grafana and promtool cover the measures and the alerts. The OpenHands StuckDetector gives only thresholds for the loop guard. These tools lack the progress-aware soft-cap chain, the fixable-check step and the success-ratio hold. So the project builds that orchestration. The written cost is about 12.4M tokens for Phase A and 1.5M tokens for Phase B, about 9 working days in total.
Key questions
- Which resolver order applies at a soft cap?: The guards run first: the maximum extensions, the hard ceiling, the outer time and token limits, the Service drain, the exact loop and the stuck finding. Then the rule gives a band. Then the decision model may add one extension at or above the cut. After a fit of 30 or more labelled outcomes, with 10 or more of each label, the fitted model decides and the rule is the fallback. A model error, a 5 s timeout or no decision model gives the rule answer. Child 4 amends ADR 0020 for this additive order. The code today stops at the rule and never asks the model, so child 4 adds the additive step. (best practice) [sources: docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md, src/devops_cli/roadmap/decision_point.py, src/devops_cli/roadmap/decision_fit.py, .agents/skills/ask-jev/SKILL.md]
- Chosen: Guards, then the rule, then the additive model. ADR 0020 puts a proven rule before the decision model, and the owner asks for a progress judge. The guards keep the loop bounded.
- Rejected: The model first. A model error can remove a valid extension, and it spends a call that the rule answers.
- Rejected: The rule only. The rule cannot judge progress at a cap that it does not cover, so the owner direction fails.
- Which modes does each decision point support?: Each point keeps off, shadow and on, and gains rule: the rule acts and the model answer is recorded. The mode of each point in
roadmap.decisionsis its kill switch, so no new switch is needed.Modeholds off, shadow and on today, so child 4 adds rule. (best practice) [sources: src/devops_cli/roadmap/decision_point.py, CONTEXT.md, docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md]- Chosen: Add the rule mode to the three modes. The rule must act before the fit and stay as the fallback after it, and the mode setting is already per point.
- Rejected: Keep off, shadow and on. It cannot run the rule before the fit or record the model answer while the rule acts.
- Rejected: One global mode. A defect in one point would stop every point, and the owner needs a kill switch for each point.
- Which gate-return value and hard ceiling apply?: The setting
roadmap.stage.gate_returnsexists with the live default 3 after fix(roadmap): loosen the caps that turn a stage refusal into a loss #4802, so the key needs no image wait. feat(roadmap): extend stage gate returns while the plan improves #4851 already extends one return on progress. The tracker text of default 2 and ceiling 3 is stale: a default of 3 with a ceiling of 3 grants no extension. The default stays 3, and the hard ceiling is a reviewed repository value one return above it, 4 returns today. (best practice) [sources: openspec/changes/archive/2026-11-11-4802-loosen-the-caps-that-turn-a/proposal.md, openspec/changes/archive/2026-11-13-4851-extend-stage-gate-returns/design.md, src/devops_cli/config/constants.py, tests/roadmap/test_roadmap_limit_classes.py]- Chosen: Keep the live default 3 with a hard ceiling of 4. It keeps the value that a person merged and leaves one bounded step for the extension.
- Rejected: Default 2 with a hard ceiling of 3. It is stale, and it tightens a cap that the owner asked to loosen.
- Rejected: No hard ceiling. The loop must stay bounded, and the planner call count must stay below its limit.
- Does a round whose failed items all carry the class
plan_defectcount toward the row suspension?: No. A round whose failed items all carryplan_defectdoes not count. The limit becomes the settingservice.max_failed_roundswith default 3. A provider failure still suspends the row. Theplan_defectwait stays 6 hours. (best practice) [sources: docs/ROADMAP_WORKFLOW.md, CONTEXT.md]- Chosen: Do not count a plan-defect round. A plan defect is a body defect that a body edit fixes, so it must not hold the row for 6 hours.
- Rejected: Count every failed round. It suspends the row for a defect that a body change fixes.
- Rejected: Remove the suspension. A provider failure must still stop the row.
- How does a finding of a known gate defect count toward the item limit?: A finding of a known gate defect gets the class
check_suspectand does not count toward the 3 plan defects. A total of 5 item-class failures on one body returns the item to New. (best practice) [sources: docs/ROADMAP_WORKFLOW.md, CONTEXT.md]- Chosen: Add the
check_suspectclass. A gate defect is no body defect, so it must not count as one, and a total limit still stops a loop. - Rejected: Count it as a plan defect. It holds the row for a defect that no body edit fixes.
- Rejected: No item limit. An unchanged body would loop with no end.
- Chosen: Add the
- Which time guards bound a stage return and an implement round?: A stage return starts only when the elapsed item seconds plus the p90 ask of 728 s plus 120 s fit in 2700 s, and the Service does not drain. An implement round starts only with 1.5 times the longest round plus 300 s left before the 5400 s step limit. The limits stay 5400 s for the step, 12600 s for the item and 14400 s for the Job. (best practice) [sources: src/devops_cli/config/constants.py, docs/ROADMAP_WORKFLOW.md]
- Chosen: A nested guard on the measured ask. It starts no round that overruns its outer limit, and it uses the measured ask length.
- Rejected: No time guard. A round that overruns the step limit is cut, and the work is lost.
- Rejected: A fixed reserve. It ignores the ask length, so it refuses a short ask or starts a long one.
- Which mode does each fix site start in?: A site with evidence starts in mode on: the stage gate, the implement halt, the scope change and the refine judge. A site with fewer than 5 refusals in 7 days, or a fixable share under 2/3, starts in shadow: the stage verify review and alternatives. (best practice) [sources: docs/roadmap/job-success.md, docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md]
- Chosen: Mode on with evidence, else shadow. A site with counted refusals has the evidence to act, and a sparse site records its answer first.
- Rejected: Every site in mode on. A sparse site has too few cases to judge its effect.
- Rejected: Every site in shadow. It delays the sites whose evidence is already counted.
- How does a job hold the 80% success ratio?: A job holds the ratio when its 7-day ratio is 0.80 or more with 30 or more attempts at three daily checks in a row. Infrastructure cuts count as failures and show as their own share. After a hold, a Wilson upper bound under 0.80 ends the hold and sets the points of that job to mode rule. (best practice) [sources: docs/roadmap/job-success.md, CONTEXT.md, src/devops_cli/roadmap/decision_fit.py]
- Chosen: A Wilson upper bound from counted attempts. It is a bounded interval from counted outcomes, and it ends a hold only on evidence.
- Rejected: A plain ratio. A small window moves above and below 0.80 with no evidence of a change.
- Rejected: Prometheus recording rules only. They count but give no interval.
- Which method fits the Phase B values, and where do they live?: statsmodels
proportion_confintgives the Wilson interval andSurvfuncRightgives the time-to-outcome fit. A fit writes its values and cuts to a repository data file by pull request. Each hard ceiling stays a reviewed repository value and never a Valkey value. (best practice) [sources: src/devops_cli/roadmap/decision_fit.py, AGENTS.md, CONTEXT.md]- Chosen: statsmodels. The library is open and maintained, and it gives a bounded interval from counted outcomes.
- Rejected: A hand-written normal approximation. It is code to keep and fix, and it is less accurate near 0.80.
- Rejected: Prometheus recording rules only. They cannot fit a cut or give an interval.
- How do the cap family and the fix family count?: The cap family and the fix family get separate bounded counters.
devops_cli_decision_point_totalkeeps its bound of 60 series. The registry refuses a catalogue overCONST_ROADMAP_DECISION_POINT_MAX_SERIES. (best practice) [sources: src/devops_cli/config/constants.py, src/devops_cli/roadmap/decision_point.py, src/devops_cli/telemetry/instruments.py]- Chosen: Separate bounded counters. Each family keeps its own bound, so a new point adds no unbounded label.
- Rejected: One counter for both families. The label set grows past the bound, and the registry refuses it.
- Rejected: Log lines only. An alert needs a counter.
- Should
service.model_call_concurrencychange to 2 now?: Yes, in an owner session. Patch the ConfigMapdevops-cli-config, then restartdeployment/roadmap-servicewhen no stage round is in flight. Revert to 1 when gateway refusals pass 1% of calls in 24 hours. The Service reads the value once at start, so a restart applies it. (a person decides) [sources: docs/CLUSTER.md, docs/ROADMAP_WORKFLOW.md] - Does the tracker deliver code of its own, and which children are already delivered?: The tracker delivers no code of its own: AGENTS.md rule 8 forbids a pull request that only updates tracking, and each child delivers one part. The repository holds an archived change for fix(roadmap): loosen the caps that turn a stage refusal into a loss #4802 and for feat(roadmap): extend stage gate returns while the plan improves #4851, so a person merged those two children. The archived feat(roadmap): extend stage gate returns while the plan improves #4851 design records that its decision model part waits on feat(roadmap): add the soft-cap and fix-check chain to decision points #4847, with the follow-up feat(roadmap): the decision model judges stage gate extensions #5386. [sources: AGENTS.md, openspec/changes/archive/2026-11-11-4802-loosen-the-caps-that-turn-a/proposal.md, openspec/changes/archive/2026-11-13-4851-extend-stage-gate-returns/design.md]
Open questions
- Should
service.model_call_concurrencychange to 2 now? (a person decides)
Fit
Needs splitting into 15 items:
- feat(roadmap): log one result line for each roadmap job attempt #4845 feat(roadmap): log one result line for each roadmap job attempt (child 2, start now, depends on: none)
- feat(roadmap): keep the stage gate problems as a list with a code #4846 feat(roadmap): keep the stage gate problems as a list with a code (child 3, start now, depends on: none)
- feat(roadmap): add the soft-cap and fix-check chain to decision points #4847 feat(roadmap): add the soft-cap and fix-check chain to decision points (child 4, start now, depends on: none)
- fix(roadmap): refine sends a judge refusal to an agent round #4798 fix(roadmap): refine sends a judge refusal to an agent round (child 5, start now, depends on: none)
- feat(roadmap): fix mechanical stage gate problems with no model call #4853 feat(roadmap): fix mechanical stage gate problems with no model call (child 7, depends on: feat(roadmap): keep the stage gate problems as a list with a code #4846)
- feat(roadmap): an implement refusal halt gets one repair turn #4859 feat(roadmap): an implement refusal halt gets one repair turn (child 8, depends on: feat(roadmap): add the soft-cap and fix-check chain to decision points #4847)
- feat(roadmap): a failed verification command gets a repair round #3577 feat(roadmap): implement stops get one repair round with the finding (child 9, depends on: feat(roadmap): add the soft-cap and fix-check chain to decision points #4847)
- feat(roadmap): allow bounded path additions in implement plan-request #4099 feat(roadmap): allow bounded path additions in implement plan-request (child 10, depends on: feat(roadmap): add the soft-cap and fix-check chain to decision points #4847)
- feat(roadmap): extend implement repair rounds while the errors fall #4861 feat(roadmap): extend implement repair rounds while the errors fall (child 11, depends on: feat(roadmap): add the soft-cap and fix-check chain to decision points #4847)
- feat(roadmap): a refused alternatives reply goes back once #4864 feat(roadmap): a refused alternatives reply goes back once (child 12, depends on: feat(roadmap): log one result line for each roadmap job attempt #4845, feat(roadmap): add the soft-cap and fix-check chain to decision points #4847)
- feat(roadmap): stage review findings run the fixable check #4866 feat(roadmap): stage review findings run the fixable check (child 13, depends on: feat(roadmap): add the soft-cap and fix-check chain to decision points #4847)
- feat(roadmap): the refine judge asks the decision model before a refusal #4867 feat(roadmap): the refine judge asks the decision model before a refusal (child 14, depends on: feat(roadmap): add the soft-cap and fix-check chain to decision points #4847, fix(roadmap): refine sends a judge refusal to an agent round #4798)
- feat(monitoring): show soft-cap and fix-check results with alerts #4868 feat(monitoring): show soft-cap and fix-check results with alerts (child 15, depends on: feat(roadmap): log one result line for each roadmap job attempt #4845, feat(roadmap): add the soft-cap and fix-check chain to decision points #4847)
- chore(k8s): keep the model call concurrency in the ConfigMap template #4870 chore(k8s): keep the model call concurrency in the ConfigMap template (child 16, depends on the live concurrency change and its 24 h check)
- feat(roadmap): fit soft-cap values and cuts from measured outcomes #4871 feat(roadmap): fit soft-cap values and cuts from measured outcomes (child 17, phase B, depends on: feat(roadmap): log one result line for each roadmap job attempt #4845, feat(roadmap): add the soft-cap and fix-check chain to decision points #4847, feat(roadmap): extend stage gate returns while the plan improves #4851, feat(roadmap): split thresholds come from measured job history #4817)
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-27: in-use.
The repository already uses this tool.
Tool: statsmodels (https://pypi.org/project/statsmodels), BSD-3-Clause, last activity 2026-08-30, maintained.
Reason: Searches found no tool that judges progress at a cap or runs a fixable check before refusal; statsmodels covers only the Phase B Wilson interval and time-to-outcome fits, so the soft-cap and repair orchestration stays project code.
Covers:
- Wilson interval from counted attempts (proportion_confint)
- Time-to-outcome survival fit (SurvfuncRight)
- Tested statistics library for the Phase B fits
Lacks:
- Progress-aware soft-cap extension chain at each cap
- Fixable classification and one bounded repair round before refusal
- Per-attempt result lines, 80% hold check and metric counters
- Guards and rule-then-model order of the decision points
Activity
dan-petty commentedon Nov 11, 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.The owner gave explicit direction on 2026-11-11 and the data shows 66 of 110 rounds lost at caps and 28 items stuck after refusal.It targets an 80% success rate across six roadmap jobs and removes the main cause of lost work.It spans two phases, six jobs, a decision model integration, a fix-before-refuse classifier, and logging for every decision.Both loosen stage caps, but the candidate adds a decision model, a fix-before-refuse step, and covers all roadmap jobs while #4802 targets three specific stage caps only.10 remaining items
devops-cli-service commentedon Nov 12, 2026
Refine cannot set this item to Ready at 2c0fe36 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.
devops-cli-service commentedon Nov 13, 2026
Refine cannot set this item to Ready at 2daf63a 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.
service.model_call_concurrencychange to 2 now? (a person decides)devops-cli-service commentedon Nov 14, 2026
Alternatives check: in-use
Reason: The searches found no open tool that ships a progress-aware soft-cap chain, a fix-before-refuse classifier or a per-job success-ratio hold. The closest existing piece is pydantic-ai's DecisionModel with the Jev model through
decide_with_jev, which already supplies the calibrated yes/no progress answer that the issue's cap extensions and repair decisions depend on, while the guard order, per-point modes, counters and fits stay project code.The repository already uses this tool.
Tool: pydantic/pydantic-ai (https://github.com/pydantic/pydantic-ai)
Covers:
DecisionModeland the Jev model viadecide_with_jevLacks:
Tools considered:
Searches run:
Sources:
Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.
dan-petty commentedon Nov 19, 2026
New evidence from the Service config review of 2026-11-19: stage gate returns fix findings, but they also add new ones, and the share of new findings rises with each return.
Findings fixed and new by gate return, 7 d to 2026-11-19 (Loki
{container="stage"} |= "stage gate findings:"):The #6319 attempt shows the pattern. Its findings in, gone and new by return were 9/9/1, 1/1/11, 11/7/1, 5/0/1, 6/6/3, 3/3/6, 6/6/10 and 10/9/1. It got extensions at 3 to 6 findings and at 6 to 10 findings. It ended at return 8 with
stage_problem_no_quoteandstage_problem_module_quote, after 9 plan calls, 16,780,284 tokens and 4746 s. No budget stop ended it.The cause is not measured. A return sends the full earlier reply and its problem (
_Refused.returned,src/devops_cli/roadmap/stage/stage.py:1293-1296), and the planner writes a whole newStageProposal. No data shows yet that the new findings come from sections that passed before. A mechanical fix-before-refuse exists already (#4853,_rewrite_mechanical,stage.py:1921).Proposed order: first measure whether the new findings of a return are in sections that passed the checks before. If they are, send a return as an edit of the refused sections only, or give the planner the deterministic stage checks as a tool, so it can check a section before it replies.
devops-cli-service commentedon Nov 21, 2026
The result in the alternatives block of the issue body changed. Before this check:
in-use, tool https://github.com/pydantic/pydantic-ai. A person decides what the new result means for the item.Searches (5)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 27, 2026
The result in the alternatives block of the issue body changed. Before this check:
in-use, tool https://pypi.org/project/pydantic-ai. A person decides what the new result means for the item.Searches (6)
Tools considered:
Searches run:
Sources: