Repository navigation
Description
Problem or Motivation
The Service marks a green stage draft ready with draft_readiness (stage_ready.py). Today the decision checks that the check runs pass, the tasks are ticked, the change is archived and the text is no placeholder. It does not read whether the diff delivers the acceptance criteria of the issue. About 10 of 37 plans of 2026-11-01 dropped a criterion. #2867 asks for a full draft evaluator (issue, best practices and project rules, with replays of #2801). This item is the first small part of its source-issue dimension, and it uses a cheap decision model.
TypeSafe Jev (typesafe/jev-1.14) is live through the gateway (PR #4300). It answers many typed questions about one text in one request, with a calibrated probability for each Noul question, no tools and no free text. It costs about 0.042 USD per million input tokens.
Proposed Solution
Add roadmap.stage.jev_completeness (bool, default false). When it is on, and draft_readiness says ready for a stage draft, one Jev request asks one Noul question for each acceptance criterion ("Does the draft deliver the criterion?") and one Score question for test strength. The diff and the criteria are inline text. A diff over a bound from the constants module skips the check with a logged reason.
The check can only hold a draft. A low probability for a criterion, or a Jev error, keeps the pull request a draft and posts one note that lists the criteria in doubt, once for each head commit. It never makes a pull request ready, never merges and never closes. A new counter devops_jev_completeness_total{outcome} counts the outcomes. Thresholds live in the constants module.
Measure offline before the switch goes on: a labelled set of merged pull requests (positives) and synthetic negatives (one hunk removed from a real diff). Report the recall of incomplete drafts and the rate of false holds. The switch stays off if false holds exceed 10 percent or the set is too small to say. A new command devops roadmap eval completeness runs the set.
Target Subsystem
SDLC, Git & PR Governance
Existing Tool Considered
The danger/danger rules engine (named in the alternatives check of #2867) reads rules and file patterns. It does not judge whether a diff delivers a criterion in prose. src/devops_cli/ai/jev.py already holds the Jev client, so this work builds no second client. Cost: about 15K tokens to build, about 2K tokens a quarter to keep, about 0.002 USD for each decision. Elapsed time: one day.
Acceptance Criteria
- With
roadmap.stage.jev_completenessoff, no Jev request is made (test). - With the switch on, one request holds one Noul question for each criterion and one Score question; a probability below the threshold for any criterion keeps the draft a draft and posts one note that names the criteria (test, with a fake of the HTTP edge).
- A Jev error holds the draft, posts one note, and is logged; the same head commit posts no second note (tests).
- A diff over the bound skips the check and logs the reason (test).
- The check never marks a pull request ready by itself (test).
-
devops roadmap eval completenessscores a labelled set and reports recall of incomplete drafts and false holds. - The pull request comment holds the live numbers and the spend.
Related
#2867 (the full evaluator; this item does not close it), #4274, #4300, #4282, #4298.
Activity
dan-petty commentedon Nov 10, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.It is a quality gate that is off by default and is the first small part of a larger effort, so it is not urgent but is planned work.About 10 of 37 plans dropped a criterion, so the check catches real gaps, but it is one dimension of a larger evaluator.The body states one day elapsed time and builds on the existing Jev client in src/devops_cli/ai/jev.py.Both target the draft PR evaluator; the candidate adds the Jev completeness check while #2867 covers the full evaluator including rules and replays.devops-cli-service commentedon Nov 10, 2026
Released in v0.104.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.104.0
devops-cli-service commentedon Nov 10, 2026
Live since 2026-11-10 02:21 UTC