Repository navigation
Description
Problem or Motivation
The roadmap jobs carry about 55 limits in config/constants.py and config/defaults.py that cut work short. They were set when the jobs were new and the models were small. Examples on main:
- Stage planner: 30 tool calls, 40 requests, 50,000 output tokens (
CONST_ROADMAP_STAGE_*); verification caps of 6,000 body tokens, 1,500 tokens per file and 30 files. - Refine investigation: 12 requests, 20 tool calls, 4,000 characters per tool answer; alternatives: 3 searches, 6 fact reads.
- Implement: 80 requests, 240 tool calls, 16,384 output tokens, 3,000 tokens per file, 20,000 characters of diff, 6,000 characters of log.
- Timeouts: 600 s for a model request, 900 s for a command, 1,800 s to watch pull request checks.
- A step budget of 40,000 tokens (
DEFAULT_ROADMAP_STAGE_STEP_TOKENS) that a group must fit.
A cap that cuts a plan or a step costs a failed run, a retry, or a plan with less evidence. The owner asks to remove the time limits and token constraints where that is possible.
Proposed Solution & Architectural Design
Classify each limit with evidence, then change it:
- Remove a limit whose library accepts none (for example the
UsageLimitsfields of pydantic-ai acceptNone) and that guards nothing the Job deadline, the memory limit or the budget of feat(roadmap): cost and token budgets per item and per day #3066 does not already guard. - Raise a limit to a share of the model's context window (read from the task's
context_windowsetting), when the limit is a copy of an old window size. The step budget and the context shares are the main cases. - Keep a limit that an outside system sets: the GitHub comment and body size, the project's own 1,000-character pull request body rule (CONTRIBUTING.md), the 60-character title summary, the model's real context window, the Kubernetes Job deadline and memory limit, the RBAC and the admission cap. The change records each kept limit with the reason.
- Make a kept project limit a setting with an environment variable (the
Variablepattern ofconfig/env.py), so a person can change it without a code change, where it is a number that people will tune. - The request timeouts (600 s, 900 s, 1,800 s) become settings with higher defaults. A hung call is still ended by the Job deadline, which the progress-based deadline of feat(roadmap): long-running tasks: progress-based deadlines instead of a fixed two hours #3063 (PR feat(roadmap): extend the runner Job deadline on progress #3196) extends only while the log changes.
- Do not touch the Job deadline,
activeDeadlineSeconds, the admission policy, the Role or the memory limit. Those are decided in feat(roadmap): long-running tasks: progress-based deadlines instead of a fixed two hours #3063. - Add a test that lists every
CONST_ROADMAP_*limit by name and fails when a new one is added without a class (removed, raised, kept), so the list stays in step.
Open questions for the refine step: which limits protect against a model loop that spends tokens without bound (a cost budget, #3066, should exist before the tool-call and request caps go); whether any local model in configmap.example.yaml has a window smaller than a raised cap (the example shows 65,536 for the planner); and whether devops ci (rule 5 of AGENTS.md: a check over 5 minutes is a P0 bug) has its own time limits that this issue must leave alone.
Target Subsystem
src/devops_cli/config/constants.py, src/devops_cli/config/defaults.py, src/devops_cli/config/settings.py, src/devops_cli/roadmap/, src/devops_cli/ai/.
Existing Tool Considered
No tool sets these. pydantic-ai's UsageLimits already accepts no limit, and the settings layer already has the Variable pattern. Cost to build: about 120k tokens and 6 hours. To keep: one class table and its test. The cost of the status quo is failed or weak runs from caps that cut work.
Related: #3063 (progress-based deadlines, PR #3196), #3066 (cost and token budgets), #3065, #3060 (model ladder).
Activity
devops-cli-service commentedon Nov 2, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
perfprefix of the title gives the type.(roadmap)scope of the title gives the scope.It reduces failed runs from caps that cut work, but it is an optimisation, not a fix for a broken feature.It removes the cost of failed or weak runs caused by outdated caps, but the jobs still function today.The body estimates about 120k tokens and 6 hours to classify 55 limits, add settings, and write a guard test.Both work on roadmap job time limits, but #3063 changes the Job deadline while the candidate raises or removes the internal soft caps and request timeouts.