Skip to content

feat(roadmap): a Jev completeness check for draft pull requests - #4320

Merged
dan-petty merged 3 commits into
mainfrom
feat/4308-jev-completeness-check-for-draft-prs
Nov 10, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/4308-jev-completeness-check-for-draft-prs

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A green stage draft is marked ready when its checks pass. The checks do not say that the plan delivers the acceptance criteria of its issue.

With the new setting roadmap.stage.jev_completeness (default off), the stage_ready row asks TypeSafe Jev in one request: a Noul question for each criterion and a Score question for the tests. 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.

A labelled set of 47 cases and devops roadmap eval completeness measure the check. The live run gives a recall of 43% and 28% false holds, so the setting stays off. #2867 stays open.

Closes #4308

Change: openspec/changes/archive/2026-11-10-4308-a-jev-completeness-check-for-draft/

A green stage draft is marked ready when its checks pass, and the checks do not say that the plan delivers the acceptance criteria of its issue. With the new setting roadmap.stage.jev_completeness, the stage_ready row asks TypeSafe Jev in one request: a Noul question for each criterion and a Score question for the tests. 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. The setting is off by default.

A labelled set of 47 cases and the command devops roadmap eval completeness measure the check. The live run gave a recall of 43% for incomplete drafts and 28% false holds, so the setting stays off.

Closes #4308
@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

Copy link
Copy Markdown
Owner Author

Measure of the check (live run, 2026-11-10)

Command: devops roadmap eval completeness. Model typesafe/jev-1.14 through the gateway. 47 cases, one request for each, 47 requests, 0.0084 USD spent (cap 1 USD). The thresholds were fixed before the run: a criterion below 0.50, or a test score below 1.0 of 3.

Set Cases Held at the configured thresholds
Incomplete drafts (10 plans with a dropped criterion, 11 merged diffs with one hunk removed) 21 answered 9 held: recall 43%
Complete drafts (12 plans, 13 merged diffs) 25 answered 7 held: false holds 28%

One complete case got no answer: Jev returned a score that the client rejected as inconsistent (a rare error; the same case answered 3 of 3 times on a repeat). The check holds on such an error and asks again in the next round.

Sweep of the criterion threshold (tests ignored): 0.30 gives 29% recall and 16% false holds; 0.50 gives 43% and 28%; 0.70 gives 48% and 48%; 0.90 gives 90% and 84%. No threshold gives a high recall with false holds at or below 10%.

Paired result for the 10 answered removed-hunk cases: the probability of the removed criterion moved by 0.02 or less in 9 pairs, and by 0.15 the wrong way in one. Jev does not see the missing implementation.

Decision: the setting roadmap.stage.jev_completeness stays off (false holds above 10%). The command prints the same decision. #4317 holds the next step (other designs of the question, and the implement job).

Limits of the numbers: the set is small (47 cases) and the complete plans are labelled by the absence of a criterion_dropped defect in a review with 27% recall, so some complete plans may drop a criterion; the false-hold rate is then an upper bound. Positives and removed-hunk negatives share their diffs (paired). The thresholds were not tuned on the set.

Checks

  • devops ci fail-to-pass --base origin/main: 4 of the new tests fail on the base and 2 guard tests pass there; 2 test files fail to collect on the base.
  • Full devops ci at the first push: all gates pass except two failures that this pull request caused (the variable list in test_config_declarations.py and the limit table in test_roadmap_limit_classes.py, fixed in the second commit) and 4 failures plus 4 errors in tests/commands/test_scan.py, which fail the same way on main (host scanner tools; filed as an issue).

ConfigMap

No key is needed: the setting is off by default. To turn it on later, add this line to the ConfigMap devops-cli.yaml of the Service, under roadmap.stage:

roadmap:
  stage:
    jev_completeness: true

Nothing was applied to the cluster.

Metric

devops_cli_roadmap_jev_completeness_total, label outcome (passed, held, error, skipped): 4 series.

@dan-petty
dan-petty marked this pull request as ready for review November 10, 2026 01:53
@dan-petty
dan-petty merged commit e99dc01 into main Nov 10, 2026
26 checks passed
@dan-petty
dan-petty deleted the feat/4308-jev-completeness-check-for-draft-prs branch November 10, 2026 01:53
dan-petty pushed a commit that referenced this pull request Nov 10, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.104.0](v0.103.3...v0.104.0)
(2026-11-10)


### Features

* **ai:** ask-jev command, MCP tool and skill
([#4315](#4315))
([ec160a2](ec160a2))
* **roadmap:** a Jev completeness check for draft pull requests
([#4320](#4320))
([e99dc01](e99dc01))

---
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>
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 completeness check for draft pull requests

1 participant