Skip to content

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

Closed

Description

@dan-petty

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_completeness off, 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 completeness scores 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

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 10, 2026
  2. dan-petty commented on Nov 10, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. 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.
    • Value: Medium. About 10 of 37 plans dropped a criterion, so the check catches real gaps, but it is one dimension of a larger evaluator.
    • Effort: Low. The body states one day elapsed time and builds on the existing Jev client in src/devops_cli/ai/jev.py.
    • Related: feat(roadmap): Add a draft PR evaluator for issue and rules #2867, which asks for a different change. Both target the draft PR evaluator; the candidate adds the Jev completeness check while #2867 covers the full evaluator including rules and replays.
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 10, 2026
  4. removed
    status/in-progress
    owner/agent
    on Nov 10, 2026
  5. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-10 02:21 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/roadmapsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions