Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ roadmap configuration settings.
|---|---|---|---|---|
| `alternatives` | `AlternativesConfig` | `limit=5 first_pass_limit=20 recheck_days=30 retry_days=3` | - | - |
| `stage` | `RoadmapStageConfig` | `filter=['status=ready'] limit=3 planned_limit=20 step_tokens=64000 retry_hours=6 toolset='extended'` | - | - |
| `implement` | `RoadmapImplementConfig` | `effort=['low', 'medium'] in_runner=False repair_rounds=3 step_token_budget=8000000 item_token_budget=20000000 step_time_limit_seconds=5400 item_time_limit_seconds=12600 digest_clears_per_class=1 digest_clears_per_item=3 continuations_per_item=2 ladder={'plan': ['devops-coder'], 'edit': ['devops-coder'], 'repair': ['devops-coder'], 'review': ['devops-coder']} request_timeout_seconds=1200 command_timeout_seconds=1800 monitor_timeout_seconds=3600 deadline_stall_seconds=4200 deadline_extension_seconds=5400 deadline_ceiling_seconds=14400` | - | - |
| `implement` | `RoadmapImplementConfig` | `effort=['low', 'medium'] in_runner=False repair_rounds=3 step_token_budget=8000000 item_token_budget=20000000 step_time_limit_seconds=5400 item_time_limit_seconds=12600 digest_clears_per_class=1 digest_clears_per_item=3 continuations_per_item=2 ladder={'plan': ['devops-coder'], 'edit': ['devops-coder'], 'repair': ['devops-coder'], 'review': ['devops-coder']} request_timeout_seconds=1200 command_timeout_seconds=1800 monitor_timeout_seconds=3600 deadline_stall_seconds=4200 deadline_extension_seconds=5400 deadline_ceiling_seconds=14400 max_memory_limit='8Gi'` | - | - |
| `inbox` | `RoadmapInboxConfig` | `draft_days=7 wait_days=7` | - | - |

## Firecrawl Configuration (`firecrawl`)
Expand Down
1 change: 1 addition & 0 deletions docs/ENV_VARS.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ All configuration options for `devops-cli` can be overridden via environment var
| `DEVOPS_CLI_ROADMAP_IMPLEMENT_ITEM_TIME_LIMIT_SECONDS` | `roadmap.implement.item_time_limit_seconds` | No | The most seconds that one run of an item may take for its steps, counted from the start of the run. It must not be above `deadline_ceiling_seconds`, so the stop names this setting before the deadline ends the Job without a comment |
| `DEVOPS_CLI_ROADMAP_IMPLEMENT_ITEM_TOKEN_BUDGET` | `roadmap.implement.item_token_budget` | No | The most input tokens that all the steps of one run of an item may use, the fix steps included. A step that starts after the budget is spent makes no request, and the item stops with the class `limit_reached`. A new run after a stop starts a new count |
| `DEVOPS_CLI_ROADMAP_IMPLEMENT_LADDER` | `roadmap.implement.ladder` | No | The model tiers of each step class (`plan`, `edit`, `repair`, `review`), one tier per attempt, weakest first. A step moves to the next tier when a failure class selects `change_tier`, or when its run ends on a provider error, and the move spends no repair round. The gateway's health is read before a tier is chosen, and an unhealthy tier is skipped. A tier is a local gateway group, a hosted group that this setting names, or an `ollama:<tag>` model. The default names the local `devops-coder` group only |
| `DEVOPS_CLI_ROADMAP_IMPLEMENT_MAX_MEMORY_LIMIT` | `roadmap.implement.max_memory_limit` | No | The memory limit of every runner Job that the Service creates, as a whole number of Gi such as `8Gi`. The memory request follows the size of the plan (2Gi or 6Gi), and this limit is the burst class above it. It must not be below the largest request, 6Gi, and it must fit the smallest node of the cluster: a Job that bursts past the node memory starves the other pods |
| `DEVOPS_CLI_ROADMAP_IMPLEMENT_MONITOR_TIMEOUT_SECONDS` | `roadmap.implement.monitor_timeout_seconds` | No | The most seconds that the implement job waits for the checks of a pull request to settle after a push. When it runs out, the item stops |
| `DEVOPS_CLI_ROADMAP_IMPLEMENT_REPAIR_ROUNDS` | `roadmap.implement.repair_rounds` | No | The most extra turns that one implementation step gives the agent after its first run: one for each failed `ruff`, `mypy` or hook of the project. A missing tick takes no round, because the job ticks the group when its checks pass. The same number bounds the fix steps that the scoped checks before a push cause. When no round is left, the step or the item stops. 0 gives the agent no extra turn |
| `DEVOPS_CLI_ROADMAP_IMPLEMENT_REQUEST_TIMEOUT_SECONDS` | `roadmap.implement.request_timeout_seconds` | No | The seconds that one model call of an implementation step may take, the read of its stream included. A call that runs past it ends the step as stopped. Keep it under the timeout of the LLM gateway router (1500 s in the stack), or the router ends the call first |
Expand Down
2 changes: 1 addition & 1 deletion docs/ROUTINE_TASKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ Executed on workspace initialization (DevContainer startup) or on-demand.

#### 5. Roadmap Implement Job (Runner)
- **Frequency**: Continuous. The Service's row `implement` is due every 7 minutes ([k8s/README.md](../k8s/README.md), Roadmap service step 16).
- **Methodology**: The Service runs no step. In namespace `devops` it makes a runner Job from the suspended CronJob `devops-cli-runner` for the first Staged or Planned item (a Planned item has its plan on the default branch because a person merged the staging pull request; the job makes its branch and its draft pull request), and makes no second Job for the repository while one runs. The runner has the dev tools, 2 CPU, 4 Gi of memory (8 Gi at most) and a deadline that the Service extends while the log of the Job changes, up to 14400 s, and ends after 2400 s without a change (`roadmap.implement.deadline_*`); its pod has no Kubernetes token, and its shell gets none of the variables of the job, except the uv paths and the worker bound of the test runner. The Service's ServiceAccount has a Role that creates, reads and patches Jobs, lists pods and reads pod logs in that namespace, and nothing else ([k8s/README.md](../k8s/README.md), Runner Jobs). A later round comments the state and the end of the log on the item. A Job that leaves its item In Progress, or Ready or Planned with no stop, sets the item Blocked and records `implement.stopped` as `job`. A person's comment `implement: retry` clears the stop. A stop `job` whose class has the action `retry` is also cleared by a continuation, up to `roadmap.implement.continuations_per_item` times (`implement.continuations`). A new runner image also clears a stop. The class of the stop must have the action `retry`, and the limits per class and per item must allow it (`implement.job_digest`, `implement.digest_clears`). A person merges the pull request.
- **Methodology**: The Service runs no step. In namespace `devops` it makes a runner Job from the suspended CronJob `devops-cli-runner` for the first Staged or Planned item (a Planned item has its plan on the default branch because a person merged the staging pull request; the job makes its branch and its draft pull request), and makes no second Job for the repository while one runs. The runner has the dev tools, a CPU and memory request that follow the number of files in the plan (1 CPU and 2 Gi, or 4 CPU and 6 Gi; `roadmap.implement.max_memory_limit`, 8 Gi by default, is the memory limit) and a deadline that the Service extends while the log of the Job changes, up to 14400 s, and ends after 2400 s without a change (`roadmap.implement.deadline_*`); its pod has no Kubernetes token, and its shell gets none of the variables of the job, except the uv paths and the worker bound of the test runner. The Service's ServiceAccount has a Role that creates, reads and patches Jobs, lists pods and reads pod logs in that namespace, and nothing else ([k8s/README.md](../k8s/README.md), Runner Jobs). A later round comments the state and the end of the log on the item. A Job that leaves its item In Progress, or Ready or Planned with no stop, sets the item Blocked and records `implement.stopped` as `job`. A person's comment `implement: retry` clears the stop. A stop `job` whose class has the action `retry` is also cleared by a continuation, up to `roadmap.implement.continuations_per_item` times (`implement.continuations`). A new runner image also clears a stop. The class of the stop must have the action `retry`, and the limits per class and per item must allow it (`implement.job_digest`, `implement.digest_clears`). A person merges the pull request.
- **Commands**:
```bash
kubectl -n devops get jobs -l implement-repo
Expand Down
Loading
Loading