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
20 changes: 20 additions & 0 deletions docs/CLI_REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7230,6 +7230,26 @@ devops roadmap eval verify [OPTIONS]
| `--cases` | `path` | - | Folder of the cases. Default: tests/fixtures/roadmap_eval/stage. |
| `--source` | `path` | - | Repository that holds the staging commits of the cases. Default: this checkout. |

#### `devops roadmap eval screen`

**Score the Jev screen before the verify step against the reviewer alone. For each case of the golden set the command asks Jev the questions of the screen about the digest of the plan, and reads what stored runs of the reviewer (devops roadmap eval verify) found there. It fits the cuts on one fixed half of the cases, scores them on the other half, and repeats with the halves swapped. It prints the skipped reviews, the serious defects that the cascade loses, the false clears, the cost, and whether the bar of the pilot is met. It calls no reviewer. It stores the report as JSON under the data directory.**

```bash
devops roadmap eval screen [OPTIONS]
```

**Options:**

| Option / Flag | Type | Default | Description |
|---|---|---|---|
| `--reviewer` | `path` | - | A report of devops roadmap eval verify with the reviewer alone. Repeat the option to merge reports; a later report wins for a case. |
| `--from` | `path` | - | A report of this command. Fit again from its rows and make no request. |
| `--reviewer-usd` | `float` | - | The price in USD of one review of the reviewer alone, for the cost line. |
| `--write-cuts` | `boolean` | - | Fit the cuts on all the reviewed cases and write the data file of the screen. |
| `--json` | `boolean` | - | Print the report as JSON in place of the table. |
| `--dry-run` | `boolean` | - | Make no request: list the cases and the model calls that a run makes. |
| `--cases` | `path` | - | Folder of the cases. Default: tests/fixtures/roadmap_eval/stage. |

#### `devops roadmap eval completeness`

**Score the Jev completeness check of the draft pull requests on a labelled set. The set holds the diffs of merged pull requests whose issue lists acceptance criteria (complete drafts), and incomplete drafts: plans that the stage golden set labels with a dropped criterion, and merged diffs from which one hunk is removed. For each case the command makes one request to Jev (a Noul question for each criterion and a Score question for the tests) and prints the recall of the incomplete drafts, the false holds on the complete drafts, the same rates at other thresholds, the spend, and whether the switch roadmap.stage.jev_completeness stays off. It stores the report as JSON under the data directory, with the probability of each criterion.**
Expand Down
2 changes: 1 addition & 1 deletion docs/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ roadmap configuration settings.
| Option | Type | Default | Environment Variable | Description |
|---|---|---|---|---|
| `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 toolset='extended' mcp=False jev_completeness=False` | - | - |
| `stage` | `RoadmapStageConfig` | `filter=['status=ready'] limit=3 planned_limit=20 step_tokens=64000 toolset='extended' mcp=False jev_screen='off' jev_completeness=False` | - | - |
| `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={'edit': ['devops-coder'], 'repair': ['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' mcp=False` | - | - |
| `inbox` | `RoadmapInboxConfig` | `draft_days=7 wait_days=7` | - | - |
| `intake` | `RoadmapIntakeConfig` | `jev=False` | - | - |
Expand Down
1 change: 1 addition & 0 deletions docs/ENV_VARS.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ All configuration options for `devops-cli` can be overridden via environment var
| `DEVOPS_CLI_ROADMAP_MCP_URL` | `roadmap.mcp.url` | No | The base URL of the remote role-scoped MCP server |
| `DEVOPS_CLI_ROADMAP_STAGE_FILTER` | `roadmap.stage.filter` | No | The labels of the items that the stage job takes, as entries `family=value` over the families status, priority, type, value and effort: the values of one family are alternatives, and the families all apply; the job also takes Ready items only |
| `DEVOPS_CLI_ROADMAP_STAGE_JEV_COMPLETENESS` | `roadmap.stage.jev_completeness` | No | Whether the stage_ready row asks TypeSafe Jev if a green plan draft delivers each acceptance criterion of its issue, before it marks the draft ready. A criterion in doubt, a weak test score or an error of Jev keeps the draft a draft and posts one note; the check never marks a draft ready, merges or closes |
| `DEVOPS_CLI_ROADMAP_STAGE_JEV_SCREEN` | `roadmap.stage.jev_screen` | No | What a TypeSafe Jev screen does before the model review of a plan in the stage job (ADR 0019). `off` makes no Jev request. `shadow` asks Jev, logs and counts its band beside the result of the review, and always runs the review. `on` skips the review when the band is continue. An error of Jev runs the review. Jev never rejects a plan |
| `DEVOPS_CLI_ROADMAP_STAGE_LIMIT` | `roadmap.stage.limit` | No | The most items that one run of the stage job takes |
| `DEVOPS_CLI_ROADMAP_STAGE_MCP` | `roadmap.stage.mcp` | No | Whether the stage job adds the remote tools of its role from the MCP server |
| `DEVOPS_CLI_ROADMAP_STAGE_PLANNED_LIMIT` | `roadmap.stage.planned_limit` | No | The count of open Planned items at which the stage job plans only items with the priority P0-Critical or P1-High. The item that `--item` names also passes the limit. `devops roadmap explain` names the limit for an item that it holds, and `devops roadmap inbox` states when it holds |
Expand Down
2 changes: 2 additions & 0 deletions docs/TELEMETRY.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ writes by name.
| `devops_cli_roadmap_alternatives_searches` | Histogram | `1` | Web searches that a provider answered for one alternatives check, by verdict. One observation for each check that the alternatives job writes. A search that no provider answered does not count. A check that the job skips for its item class runs no search and observes 0. |
| `devops_cli_roadmap_page_fetches_total` | Counter | `1` | Calls of the tool fetch_page in refine's investigation and in the alternatives check, by toolset (refine or alternatives) and result: ok for a page whose text the tool returned, refused for a URL that the tool refused before any request (not https, not named by a search result or by the item text, or not on a public host), limit for a call over the limit of fetches for one item, and error for a fetch that failed. The fetches that reach the Crawl4AI service also count in devops_cli_crawl4ai_fetches_total. |
| `devops_cli_roadmap_stage_plan_record_total` | Counter | `1` | Uses of the plan file of the stage job, by result: hit for a plan that the job read from the file and so sent the planner no request, miss for an item with no file of its key, and written for a plan that the job wrote to the file. A miss that plans adds one to miss and one to written. The hit rate is hit divided by the sum of hit and miss. |
| `devops_cli_roadmap_decision_step_total` | Counter | `1` | Decisions of a Jev decision step, by step, mode (shadow or on) and band: continue, review, flag, or error for a Jev request that failed and sent the case to the existing path. |
| `devops_cli_roadmap_decision_step_review_total` | Counter | `1` | Reviews that ran beside a decision step in shadow mode, by step, band of the step and reviewer result (found an open defect, or clean). The false-clear rate of a step is the reviews with the band continue and the result found, divided by all reviews with the band continue. |
| `devops_cli_roadmap_stage_total` | Counter | `1` | Items that a stage round handled, one count for each item, by repository and result: staged for an item written as a branch and a draft pull request, needs_split for an item stopped on a task group over the budget, failed for an item that failed in the plan or in the writes, degenerate for an item whose plan reply was a placeholder in every text (the job sent no second request), and skipped for an item the job left out with a reason. A plan with no write counts nothing. |
| `devops_cli_roadmap_tool_calls_total` | Counter | `1` | Tool calls of the roadmap planner and verifier, by tool, row, toolset and outcome. The outcome ok is a call that gave its result. The outcome empty is a call that ran and found nothing, such as a search with no match. The outcome error is a call that could not run or got no answer. The row is the job row of the run: stage for the planner, stage_verify for the verifier. Each run adds 0 for every tool of its toolset before its first model request. So a tool that no run calls keeps a series. |
| `devops_cli_roadmap_tool_answer_chars` | Histogram | `{char}` | Characters in the answer of each tool call of the roadmap planner and verifier, after the cut of the tool, by tool, row and toolset. The text of a refusal counts. A call that got no answer adds no observation. |
Expand Down
20 changes: 20 additions & 0 deletions docs/commands/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,26 @@ devops roadmap eval verify [OPTIONS]
| `--cases` | `path` | - | Folder of the cases. Default: tests/fixtures/roadmap_eval/stage. |
| `--source` | `path` | - | Repository that holds the staging commits of the cases. Default: this checkout. |

### `devops roadmap eval screen`

**Score the Jev screen before the verify step against the reviewer alone. For each case of the golden set the command asks Jev the questions of the screen about the digest of the plan, and reads what stored runs of the reviewer (devops roadmap eval verify) found there. It fits the cuts on one fixed half of the cases, scores them on the other half, and repeats with the halves swapped. It prints the skipped reviews, the serious defects that the cascade loses, the false clears, the cost, and whether the bar of the pilot is met. It calls no reviewer. It stores the report as JSON under the data directory.**

```bash
devops roadmap eval screen [OPTIONS]
```

**Options:**

| Option / Flag | Type | Default | Description |
|---|---|---|---|
| `--reviewer` | `path` | - | A report of devops roadmap eval verify with the reviewer alone. Repeat the option to merge reports; a later report wins for a case. |
| `--from` | `path` | - | A report of this command. Fit again from its rows and make no request. |
| `--reviewer-usd` | `float` | - | The price in USD of one review of the reviewer alone, for the cost line. |
| `--write-cuts` | `boolean` | - | Fit the cuts on all the reviewed cases and write the data file of the screen. |
| `--json` | `boolean` | - | Print the report as JSON in place of the table. |
| `--dry-run` | `boolean` | - | Make no request: list the cases and the model calls that a run makes. |
| `--cases` | `path` | - | Folder of the cases. Default: tests/fixtures/roadmap_eval/stage. |

### `devops roadmap eval completeness`

**Score the Jev completeness check of the draft pull requests on a labelled set. The set holds the diffs of merged pull requests whose issue lists acceptance criteria (complete drafts), and incomplete drafts: plans that the stage golden set labels with a dropped criterion, and merged diffs from which one hunk is removed. For each case the command makes one request to Jev (a Noul question for each criterion and a Score question for the tests) and prints the recall of the incomplete drafts, the false holds on the complete drafts, the same rates at other thresholds, the spend, and whether the switch roadmap.stage.jev_completeness stays off. It stores the report as JSON under the data directory, with the probability of each criterion.**
Expand Down
10 changes: 10 additions & 0 deletions docs/roadmap/stage.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@ In each run the job judges an open item that holds the mark and no `stage.pr`. A

A pushed branch with no mark is never an orphan, because a person or another agent can own it. A retitle between the failure and the next round does not matter, because the job uses the branch of the mark and not the slug of the title. A closed item that holds the mark is not judged. A bad value of the mark counts as no mark.

### The Jev screen

The setting `roadmap.stage.jev_screen` (`off`, `shadow` or `on`; default `off`) puts a TypeSafe Jev screen before the model review of the stage job. It is pilot 1 of the decision steps of [ADR 0019](../adr/0019-a-decision-step-asks-jev-short-closed-questions-about-evidence-that-tools-extract.md). Code builds a digest of the plan: the criteria of the issue, the groups, the paths that the repository does not hold, and whether the verify command of a group names a test file. One Jev request asks nine yes/no questions about it, one for each defect type. The cuts of the questions are data, in `src/devops_cli/roadmap/stage/jev_screen_cuts.json`, with the model, the day and the numbers of their fit.

- `off` makes no Jev request.
- `shadow` asks Jev, logs the band and counts it with `devops_cli_roadmap_decision_step_total` (step, mode, band: 8 series). The review always runs. `devops_cli_roadmap_decision_step_review_total` (step, band, reviewer: 6 series) counts whether the review found an open defect where the screen gave the band, so the false-clear rate comes from real reviews.
- `on` skips the review when every probability is under its cut (the band `continue`). The bands `review` and `flag` run the review.

Any error, timeout or missing answer of Jev runs the review. Jev never rejects a plan, and the review of refine always runs. Score the screen with `devops roadmap eval screen --reviewer <report>`: the report is a run of `devops roadmap eval verify` with the reviewer alone. The command fits the cuts on one half of `tests/fixtures/roadmap_eval/stage/split.json`, scores them on the other half, and repeats with the halves swapped. It prints the skipped reviews, the serious defects that the cascade loses, the false clears, the oracle (the most reviews that any screen can skip with no loss) and the cost. On the 48 cases that the reviewer can read, the oracle is 9 (19%), so the bar of 30% skipped reviews with no loss cannot be met on this set. Keep the setting `off` until a person reads the comparison. The key goes in the ConfigMap `devops-cli-config` under `roadmap.stage`. Apply the ConfigMap, then restart the Service after the image of this version runs.

## A plan that a person rejected

A person rejects a plan when they close its pull request with no merge. The reason stays on the closed pull request, so the stage job copies it to the issue. In each run the job reads the plan pull request of each staged item. A staged item is an open New or Ready item that holds `stage.pr` and has no plan on the default branch. With `--item` the job reads the pull request of that item only. For a pull request that is closed and not merged, the job does these things in order:
Expand Down
4 changes: 4 additions & 0 deletions k8s/devops/configmap.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ data:
planned_limit: 20
step_tokens: 64000
toolset: extended
# A TypeSafe Jev screen before the model review of a plan (#4282, ADR 0019): `off` makes no
# request, `shadow` logs and counts its band beside the review, `on` skips the review for
# the band continue. Turn it on only after a person reads the comparison in the pull request.
jev_screen: "off"
# The alternatives row takes `first_pass_limit` items in a round while an item has no
# check, and `limit` items after, when every item has a check and a round only rechecks.
alternatives:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
schema: spec-driven
created: 2026-11-10
skip_specs: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Design

## Decisions

- **A digest, not the payload.** The state of the request is a digest that code builds: the criteria of the issue (cut to 300 characters), the groups of the plan (the work and the test cut to 260 and 220 characters), the paths that the repository does not hold, and whether the verify command names a test file of the group. Measured on the golden set: the whole payload as state (9,800 tokens) ranked the cases worse than the digest (1,700 tokens), and the cited files added to the digest did not help.
- **One request, nine questions.** The nine questions are the nine defect types of `VERIFY_TYPES`. Nine requests of one question gave the same ranking at nine times the tokens.
- **The cuts.** `continue` when every probability is under its cut. `flag` when a probability reaches its `flag_at` cut, which needs three cases above it that must all run. The data file holds one shared cut for all nine questions: on the recorded split it lost no serious defect in either direction, and a cut for each question lost 6 in one direction. An earlier split (a shuffle that the hash split replaced, because the shuffle used a pseudo-random generator that the security scan refuses) showed the reverse for one case, so the evidence is weak. The report gives both ways.
- **Three modes.** `shadow` is the step before a switch: it logs and counts, and the review always runs. The counter `devops_cli_roadmap_decision_step_review_total` gives the false-clear rate from real reviews.
- **Fail open.** `FAILED` in `decision_step.py` lists the errors. The screen logs one warning and counts `error`.
- **Refine stays out.** The judge of refine always runs its reviewer. A clean screen there would approve an item with no review.
- **The label of the fit.** A case must run when the reviewer alone found a serious defect (blocker or major) in it. The reviewer is stochastic. One run of the reviewer is the label, because a second run costs about 8 USD.

## Rejected alternatives

- **Piece-local requests (one request for each group, criterion or claim).** Rejected: 20,000 tokens for each plan, and a worse ranking than the digest.
- **Per-question cuts as the shipped rule.** Rejected as the rule: on halves of about 24 cases the cut of one question moved with one case. The report keeps both rules.
- **A cut in a constant.** Rejected by ADR 0019: the cuts are data with their provenance.
- **Score questions with levels.** Tried: they ranked the cases as well as the yes/no questions, with no gain for the skip rate.
- **A second reviewer run to measure noise.** Rejected on cost.
Loading
Loading