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
4 changes: 2 additions & 2 deletions docs/CLUSTER.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/ERRORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ Each exception class declares its `error_code` and `exit_code`. A command that a
| `RoadmapIntakeError` | `ROADMAP_INTAKE_FAILED` | `1` | Roadmap | Raised after an intake round in which the writes failed for one or more candidates. |
| `RoadmapItemChangedError` | `ROADMAP_ITEM_CHANGED` | `1` | Roadmap | Raised before a job's field write that would revert a change made since it read the Item. |
| `RoadmapMcpUnavailableError` | `ROADMAP_MCP_UNAVAILABLE` | `1` | Roadmap | Raised when the MCP server is unavailable at job start (#3221). |
| `RoadmapPlanReadBackError` | `ROADMAP_PLAN_READ_BACK_MISMATCH` | `1` | Roadmap | Raised when the plan reader cannot read back the rendered files of a plan, or reads facts |
| `RoadmapPlanRewriteError` | `ROADMAP_PLAN_REWRITE_REFUSED` | `1` | Roadmap | Raised when `devops roadmap plan-recheck --confirm` refuses to write a rewritten plan (#3556). |
| `RoadmapRecordMarkLostError` | `ROADMAP_RECORD_MARK_LOST` | `1` | Roadmap | Raised after a job record write when a mark remains missing after two rewrites (#4555). |
| `RoadmapRefineError` | `ROADMAP_REFINE_FAILED` | `1` | Roadmap | Raised after a refine run in which the model call failed for one or more items. |
Expand Down
5 changes: 3 additions & 2 deletions docs/ROADMAP_WORKFLOW.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ These are all the keys of the job record, by the job that writes them:
| Fix-plan | `fix_plan.key`, `fix_plan.attempts` | The plan pull request and the head of the last attempt of the step `fix-plan`, as `<pull>:<head>`, and the attempts on that head. The step reads the plan of the head first, and writes both before its first model call, so a deadline kill counts the attempt. An evicted attempt gets the count before it back, for 3 evicted attempts on a head (#5413). A plan that the plan reader refuses changes neither key. After a push, the key names the new head with 0 attempts. An Item with `roadmap.fix_plan.head_attempts` attempts on the head of its plan (default 2) is left out (#5061, #5440), except for one more attempt of a named run with `--skip-wait` when the attempts ran on an older release |
| Fix-plan | `fix_plan.revisions`, `fix_plan.at`, `fix_plan.result` | The revisions that the step pushed to the pull request of the key (at most `roadmap.fix_plan.revisions`, default 3), the time of the last attempt (the next waits 6 hours), and its result: `revised`, `cleared`, `regated`, `dismissed`, `unchanged`, `stopped`, `failed`, `unreadable`, `timeout` (the time budget of the step ended, #5363, or SIGTERM came after it) or `evicted` (an eviction, a node drain or a stop of the Service ended the attempt, #5413). A plan that the reader refuses writes only `fix_plan.at` and `fix_plan.result` `unreadable`, so the next read waits 6 hours and uses no attempt (#5213) |
| Fix-plan | `fix_plan.version`, `fix_plan.evicted` | The release of devops-cli that ran the last counted attempt, and the evicted attempts on the head of the key that did not count (at most 3, reset with the head). A free evicted attempt gets `fix_plan.at` and `fix_plan.version` of the attempt before it back (#5413) |
| Stage | `stage.failed_at`, `stage.failed_error`, `stage.failed_step`, `stage.failed_class` | When the last plan or write of the Item failed, the type of its error, the step that failed (`plan` or `apply`) and the failure class (a value of the taxonomy, such as `provider` or `plan_defect`). The class comes from the type of the error. The job leaves the Item out for the wait of its class (1 hour for `provider`, `plan_defect` and `ci_infra`, 6 hours for `parser`, none for `head_moved`); a staged Item or an Item stopped on the budget clears all four |
| Stage | `stage.plan_defects`, `stage.plan_defects_body` | The count of the `plan_defect` failures of the Item on the same body, and the hash of that body without the block of the alternatives job. A body edit starts a new count, and a failure of another class keeps it. The failure that reaches `roadmap.stage.plan_defect_limit` (default 3) returns the Item to New with one comment that lists the problems of the last plan, and clears both keys; a staged Item clears both |
| Stage | `stage.failed_at`, `stage.failed_error`, `stage.failed_step`, `stage.failed_class` | When the last plan or write of the Item failed, the type of its error, the step that failed (`plan` or `apply`) and the failure class (a value of the taxonomy, such as `provider` or `plan_defect`). The class comes from the type of the error. The job leaves the Item out for the wait of its class (1 hour for `provider`, `plan_defect` and `ci_infra`, 6 hours for `parser` and `plan_unreadable`, none for `head_moved`); a staged Item or an Item stopped on the budget clears all four |
| Stage | `stage.plan_defects`, `stage.plan_defects_body` | The count of the `plan_defect` and `plan_unreadable` failures of the Item on the same body, and the hash of that body without the block of the alternatives job. A body edit starts a new count, and a failure of another class keeps it. The failure that reaches `roadmap.stage.plan_defect_limit` (default 3) returns the Item to New with one comment that lists the problems of the last plan, and clears both keys; a staged Item clears both |
| Implement | `implement.group`, `implement.sha`, `implement.branch`, `implement.pr` | The last group that passed, the last commit, the branch and the pull request |
| Implement | `implement.repair_rounds` | The count of repair rounds that the steps of the run spent on failed static checks and scoped checks |
| Implement | `implement.stopped`, `implement.failure`, `implement.spend`, `implement.trace` | The step that stopped the Item, the class of its failure, the spend of its steps with the input tokens of the first request of each step (`steps`, kept apart from the trace, which drops its oldest model events first), and the trace of its last run. The spend is the sum of all Jobs of the Item: each passed group writes it, and a retry by a person and a return to New clear it |
Expand Down Expand Up @@ -223,6 +223,7 @@ A stop has a class (`roadmap/failure.py`, #3065). A stop site that knows its cau
| `read_only_path` | `wait` | A command wrote to a path that the Job mounts read-only. A new attempt or a new runner image writes to the same path, so a person fixes the cause |
| `outside_plan` | `wait` | A fix step changed, added or deleted a path that the plan does not name (a path in a code span of any group, or a file of the change folder). The stop names the paths and holds the discarded diff. A person decides whether the plan changes |
| `git_config` | `wait` | The git settings of the checkout hold a key that the job does not allow, an attribute names a filter, or a diff or merge driver that git does not define, or the clone has an alternates file. The job checks them when each turn of the agent ends and before each git call that reaches `origin`. The stop names each key, or each attribute and its first path, and no value, and pushes nothing. A person removes the setting and its cause |
| `plan_unreadable` | `wait` | The plan reader cannot read back the rendered files of a plan, or reads facts that differ from the proposal (#5214) |

The Job runs these actions by itself:
- the fix rounds of `roadmap.implement.repair_rounds` for a failed check,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ date: 2026-11-09
decision-makers: [owner]
issue: 4326
amended-by: ["0020"]
body-hash: 7350fe6b7ca479150f59a95dfda2eec2aa3acaaf642b160b53fc3f27fc0fb81b
body-hash: 45e279c3cfa96d7f852c2f9948aac1486600b61d81e42da685139adfb0249ec2
---

# A decision step asks Jev short closed questions about evidence that tools extract
Expand Down Expand Up @@ -46,7 +46,7 @@ One small module holds the shared parts: the typed question set, the request bui
| Rank | Decision point | Outcomes | Why it fits | Status |
| :--- | :--- | :--- | :--- | :--- |
| 1 | The screen before the verify step (#4282): skip the tool-using reviewer, or run it | skip, run, flag | The outcome is binary. The golden set labels the defects. The reviewer is the fallback. A skip saves an agent run. | Pilot 1 |
| 2 | The class of a failure when no regex rule matches (`src/devops_cli/roadmap/failure.py`) | one of the 19 `FailureClass` values, or `ci_infra` | A closed choice. The default is known. The stored failures are labelled by their typed causes. | Pilot 2, no go: a rule fixes it (#4390) |
| 2 | The class of a failure when no regex rule matches (`src/devops_cli/roadmap/failure.py`) | one of the 20 `FailureClass` values, or `ci_infra` | A closed choice. The default is known. The stored failures are labelled by their typed causes. | Pilot 2, no go: a rule fixes it (#4390) |
| 3 | The tier of a stage run (#4284) | tier, high risk | A closed choice with a score. The real result is the label. | Shadow only, after the pilots |
| 4 | The `type/*` label of an intake item when the title gives none | one of the type labels | A closed choice over a short title. | Later, with bands |
| 5 | A tool call of an agent (`gate_tool_call_with_jev`) | run, review, block | Short evidence: the tool name and the arguments. | Never alone: it adds to a deterministic control |
Expand Down
2 changes: 1 addition & 1 deletion docs/roadmap/job-success.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ A line holds no text of an issue, of a model or of a log. Each value is a number
| `refine_judge` | Each review of the proposal for an item that a bot opened that calls the model. A kept approval writes no line. | `approved`, `refused` | `approved` | `round`, `findings` |
| `alternatives` | Each check that the round wrote, and each failed check. | The verdict, `refused` or `failed` | Each verdict | `searches`, `returns`, `reason` (the skip class, or the code of the error) |
| `intake` | Each candidate that a round wrote. | `placed`, `duplicate`, `skipped`, `failed` | `placed` and `duplicate` | `fallbacks` |
| `fix_plan` | Each attempt of the step `fix-plan` on a plan pull request with `plan/needs-fix`. A plan that the selection or the branch check leaves out writes no line, and a plan that the plan reader refuses (`unreadable`) writes no line, because the defect is in the writer or the reader of the plan. An attempt that an eviction, a node drain or a stop of the Service ends (`evicted`) writes no line, and an attempt that SIGTERM ends after its time budget, at the deadline of its Job, writes `timeout` with `kill=deadline` (#5413). | `revised`, `cleared`, `regated`, `dismissed`, `unchanged`, `stopped`, `failed`, `timeout` | `revised` and `cleared`: the step pushed a repair whose reviews fixed more open findings of the review of the head than they added, in the same attempt (#5409). `regated`, `dismissed`, `unchanged`, `stopped`, `failed` and `timeout` repair no finding of that review. | `plan_calls`, `gate_returns`, `verify_rounds`, `tokens`, `seconds`, `comment` (the open findings that the last plan comment lists), `before` (the review of the head, only when it ran), `after` (the last review of the revision, only when one ran). A stop adds `stop`, and a failure and a `timeout` add `step`. A deadline kill holds only `comment`, and adds `kill=deadline`. |
| `fix_plan` | Each attempt of the step `fix-plan` on a plan pull request with `plan/needs-fix`. A plan that the selection or the branch check leaves out writes no line, and a plan that the plan reader refuses (`unreadable`) writes no line, because the defect is in the writer or the reader of the plan. An attempt that an eviction, a node drain or a stop of the Service ends (`evicted`) writes no line, and an attempt that SIGTERM ends after its time budget, at the deadline of its Job, writes `timeout` with `kill=deadline` (#5413). A revision that fails the read-back writes its line with the class `plan_unreadable` (`failed`, or `regated` when a gated plan exists) (#5214). | `revised`, `cleared`, `regated`, `dismissed`, `unchanged`, `stopped`, `failed`, `timeout` | `revised` and `cleared`: the step pushed a repair whose reviews fixed more open findings of the review of the head than they added, in the same attempt (#5409). `regated`, `dismissed`, `unchanged`, `stopped`, `failed` and `timeout` repair no finding of that review. | `plan_calls`, `gate_returns`, `verify_rounds`, `tokens`, `seconds`, `comment` (the open findings that the last plan comment lists), `before` (the review of the head, only when it ran), `after` (the last review of the revision, only when one ran). A stop adds `stop`, and a failure and a `timeout` add `step`. A deadline kill holds only `comment`, and adds `kill=deadline`. |
| `retitle` | Each item that the retitle job decides (#5168). | `retitled`, `kept`, `failed` | `retitled` and `kept`: the title summary is within the limit or kept for an unlisted type. | none |

A `stage` item that is staged with an open finding of the review is `failed` with the class `plan_defect`. An `implement` Job that recorded no result, such as a pod that the kernel killed, is `stopped`. Its `seconds` run from the start of its pod to its end, and are 0 when the Job is gone.
Expand Down
Loading