Skip to content

feat(roadmap): a Jev screen before the verify step - #4343

Merged
dan-petty merged 4 commits into
mainfrom
feat/4282-jev-screen-before-verify
Nov 10, 2026
Merged

dan-petty merged 4 commits into
mainfrom
feat/4282-jev-screen-before-verify

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Pilot 1 of the decision steps of ADR 0019. The bar is NOT met: the setting roadmap.stage.jev_screen (off, shadow, on) stays off.

A digest of the plan goes to Jev with nine yes/no questions. The cuts are fitted data in jev_screen_cuts.json. shadow logs and counts the band beside the review (14 series). on skips the review for the band continue. Any Jev error runs the review. devops roadmap eval screen reproduces the numbers (--dry-run makes no request).

The reviewer alone found no serious defect in 9 of 48 cases (19%), so no screen can skip 30% with no loss. The best design skipped 4% with no loss. Numbers are in the first comment.

Closes #4282

Change: openspec/changes/archive/2026-11-10-4282-a-jev-screen-before-the-verify/

Pilot 1 of the decision steps of ADR 0019. The shared decision-step module and the fit hold the bands, the cuts as data and the fixed halves. The screen asks Jev nine yes/no questions about a digest of the plan and, with roadmap.stage.jev_screen set to on, skips the review for the band continue. The setting is off by default. Plans #4282
@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 10, 2026
@dan-petty

dan-petty commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner Author

Result: the bar is NOT met. The setting stays off.

Bar (ADR 0019, set before the fit): on the half that was not fitted, the cascade loses no serious defect (blocker or major) that the reviewer alone finds on the same cases, and it skips at least 30% of the reviewer calls.

Why no screen can meet it on this set

  • The reviewer alone is the model of the task verification, run with deepseek-v4.1-flash-1017 (agent with read tools, 1 run). 48 of the 56 cases have a commit that an agent can read. The other 8 are synthetic gate probes with one defect each; no reviewer ran on them, so they are not scored.
  • The reviewer found 104 of the 177 labelled serious defects of those 48 cases (59%).
  • The reviewer found no serious defect in 9 of the 48 cases (19%), and 5 of the 9 are the good plans. This is the oracle: a screen that knew the answer could skip 19% of the reviews with no loss. 30% is above it. The bar cannot be met on this set by any screen, and it was set before the oracle was known (ADR 0019 now requires the oracle to be checked first).

Attempts (held-out halves of the recorded split, both directions pooled; 48 cases)

Reviewer alone: 0.176 USD per plan (8.46 USD for 48 plans, hosted-equivalent price of devops ai cost), 104 serious defects. Cuts are fitted on the other half, with zero loss on that half. "Kept" is the serious recall of the cascade against the reviewer alone.

design meaning
A the whole input (issue, plan, files) as state, 9 yes/no questions
B one request for each piece (group, criterion, claim, requirement)
C the whole input as state, one question for each piece
D tool facts plus a request for each piece
E a digest with tool facts, 9 questions in one request (shipped)
E3 E with one question for each request
E4 E plus the start of the cited files
E5 E with yes/no descriptions in each question
design cuts
--- ---
A per question
A shared cut
B per question
B shared cut
C per question
C shared cut
D per question
D shared cut
E per question
E shared cut
E3 per question
E3 shared cut
E4 per question
E4 shared cut
E5 per question
E5 shared cut
F per question
F shared cut

False clears: skipped plans that have a labelled serious defect.

Product code (design E, devops roadmap eval screen), recorded split, 56 Jev requests:

cuts fitted on skipped on the other half serious defects lost
shared A 1 of 23 (4%) 0 of 48
shared B 1 of 25 (4%) 0 of 56
per question A 6 of 23 (26%) 6 of 48 (3 cases)
per question B 3 of 25 (12%) 0 of 56

The first split (a shuffle, replaced because the security scan refuses random) gave: shared A 1 of 23 lost 0, shared B 2 of 25 lost 5 (1 case); per question A 3 of 23 lost 2, B 1 of 25 lost 0. One case moves the result, so each half (about 24 cases) is weak evidence.

Findings that I can state

  • Best design: E, one shared cut. It lost no serious defect in 3 of 4 held-out directions and skipped 4% to 8% of the reviews (6% when fitted on all 48 cases: 3 reviews). It saves about 0.011 USD per plan (Jev costs 0.00007 USD per plan, 1,700 input tokens).
  • Per-question cuts skip more (12% to 26%) and lose serious defects. They overfit halves of 24 cases.
  • A digest of tool facts (path not in the repository; verify command names no test file) beat the whole input as state. The per-question AUC for the labelled defect types was 0.87 for missing_path and 0.73 for verify_form with the digest, and 0.46 and 0.67 with the whole input.
  • Nine questions in one request ranked the cases as well as nine requests (E against E3), at one ninth of the tokens. File starts (E4), question descriptions (E5) and Score levels (F) did not help.
  • Jev answers are not exactly repeatable: the same request twice gave a mean absolute difference of 0.019 in probability (maximum 0.12) over 200 answers.
  • False-clear rate of E with the shipped cut (fitted on all 48 cases): 1 of 43 plans with a labelled serious defect is cleared (2%); 1 of the 3 cleared plans has one (the reviewer alone found none in it). This is the fit on all cases, so it is not a held-out number.

What I could not verify

  • One run of the reviewer is the label; the reviewer is stochastic, and a second run costs about 8 USD (not affordable under the cap).
  • The 8 synthetic cases and the live Service are not covered. Only 5 good plans exist, so the false-clear rate of the screen on clean plans is weak.
  • The match of a finding to a defect is by type, as devops roadmap eval verify does it.
  • shadow has not run in the live Service; nothing was turned on.

Spend

Jev: about 0.2 USD (scratch designs and the 56 requests of the product run). DeepSeek: 8.46 USD (reviewer alone). Ledger: .data/agent/scratch/decision-ledger.md. Total under 9 USD.

ConfigMap (nothing applied)

To start the shadow log, after the image with this change runs, add under roadmap.stage of devops-cli-config:

        jev_screen: "shadow"

and restart the Service. The default is off. The example is in k8s/devops/configmap.example.yaml.

Dependency

decide_all sends each request through one function (_decide_one in decision_step.py). When #4331 (decide_with_jev) merges, its call replaces the body of that function.

Reproduce: devops roadmap eval screen --reviewer <reports of devops roadmap eval verify> --reviewer-usd 0.176 (asks Jev 56 times), or --from <report> and --dry-run (no request).

@dan-petty
dan-petty marked this pull request as ready for review November 10, 2026 05:15
@dan-petty
dan-petty enabled auto-merge (squash) November 10, 2026 06:21
@dan-petty
dan-petty merged commit c60efed into main Nov 10, 2026
26 checks passed
@dan-petty
dan-petty deleted the feat/4282-jev-screen-before-verify branch November 10, 2026 06:48
dan-petty pushed a commit that referenced this pull request Nov 10, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.107.0](v0.106.1...v0.107.0)
(2026-11-10)


### Features

* **roadmap:** a Jev screen before the verify step
([#4343](#4343))
([c60efed](c60efed))


### Bug Fixes

* **roadmap:** end a cut tool answer at a whole line with a notice
([#4342](#4342))
([469906d](469906d))
* **roadmap:** name the reason of a failed stage model call
([#4339](#4339))
([1ec8d4c](1ec8d4c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
dan-petty added a commit that referenced this pull request Nov 11, 2026
The `pull_request_body` of the case is now the body that the stage job wrote with the plan of PR #3408. The later body said that the change widens `missing_path`, which is the corrected premise, and the pass reads the whole plan. The match test calls `matched_defects` and starts no git. The guide gives the oracle of the screen in the past tense with its run of #4343.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): a Jev screen before the verify step

1 participant