Repository navigation
Description
Problem or Motivation
The Jev completeness check of #4308 does not see a missing implementation. On the labelled set of #4308, a complete diff and the same diff with the implementing hunk removed get the same probability from Jev: in 10 of 11 pairs the probability of the removed criterion moves by 0.02 or less (one pair moved by 0.15 the wrong way). The recall of incomplete drafts is 43% and the false holds are 28%, so roadmap.stage.jev_completeness stays off. Cases of the stage golden set that drop a criterion show the same weak signal: 5 of 10 are held.
Jev seems to judge whether a criterion sounds delivered by the tests and the text in the diff, not whether the code is there.
Proposed Solution
Try, with the set of #4308 and devops roadmap eval completeness, one change at a time: (1) send the files that a criterion names or that the diff changes in src/ apart from the tests, one Noul question for each file and criterion; (2) a diff with the added lines only; (3) Noul criteria (true and false descriptions) that say what the missing implementation looks like. Keep the thresholds fixed while a design is tried, and report the paired probability change as well as the two rates. Also decide the wiring of the check in the implement job (implement_run.py), which marks its own draft ready in a runner Job. A hold there stops the item, so the wiring needs its own decision.
Existing Tool Considered
src/devops_cli/ai/jev.py and src/devops_cli/roadmap/jev_completeness.py are the client and the check. No second client is built. Cost: about 10K tokens for each design tried and 0.01 USD for each run of the set.
Acceptance Criteria
-
devops roadmap eval completenessgives a recall of incomplete drafts above 70% with false holds at or below 10% on a set of at least 30 cases, for one design. - Or the pull request states, with the numbers, that no design met the bar, and closes the Jev completeness check idea.
- The wiring in the implement job is decided and recorded.
Related
Dependencies
- chore(roadmap): hold incremental stage and implement work #6521 (hold: incremental work on the stage, implement and fix-checks jobs waits for the re-architecture)
Alternatives check of 2026-11-25: in-use.
The repository already uses this tool.
Tool: pydantic/pydantic-ai (https://github.com/pydantic/pydantic-ai), MIT, last activity 2026-11-25, maintained.
Reason: Searches found only generic LLM-eval frameworks (promptfoo, DeepEval); none judges whether a diff implements a criterion. The check's existing pydantic-ai DecisionModel covers the structured closed-question part, while the diff designs and paired report stay project-specific.
Covers:
- Typed structured outputs for closed model questions
- Model-agnostic client that sends each question
- Validation and retries on malformed model answers
Lacks:
- No diff parsing or added-lines-only reduction
- No per-file, per-criterion question builder
- No paired recall and false-hold report
Proposed design
Problem statement
The Jev completeness check does not see a missing implementation. A complete diff and the same diff with the implementing hunk removed get nearly the same probability in 10 of 11 pairs. Recall of incomplete drafts is 43% and false holds are 28%, so the setting stays off. The check sends the whole diff as state. Rebuild the state as per-criterion hunk digests of added lines, bound it by the #5209 budget and a 10 second timeout, and measure the design on the labelled set of #4308.
Acceptance criteria
Requirement: Per-criterion hunk state
The request builder SHALL give each criterion one Noul question and one hunks entry with the hunks of the files that it names.
Scenario: Two criteria and a test file
- WHEN
build_requestruns with two criteria that name two source files of a diff, and the diff also changes a file undertests/ - THEN Each entry holds the hunks of its named file, and no entry holds a test-file hunk.
Requirement: Fallback hunks for an unnamed file
The request builder MUST give a criterion with no named file the hunks of every source file that fits the size budget.
Scenario: A criterion names no file
- WHEN
build_requestruns with a criterion that names no file and a diff that changes two source files and one test file - THEN The criterion entry holds the hunks of the two source files and no hunk of the test file.
Requirement: Added lines only
The hunk digest SHALL hold the added lines of each hunk and SHALL drop the removed and the context lines.
Scenario: A hunk with removed and context lines
- WHEN the hunk digest runs on a hunk that holds added, removed and context lines
- THEN The digest holds the added lines only, and the removed and context lines are absent.
Requirement: State under the size budget
The check SHALL skip with a logged reason when the state of the request is larger than the size budget of #5209.
Scenario: State over the budget
- WHEN
assessruns on a diff whose per-criterion state is larger than the size budget - THEN
assessreturnsskippedwith a reason that names the budget, and sends no model request.
Requirement: Request timeout
The check SHALL send each Jev request with a timeout of 10 seconds.
Scenario: Timeout of the call
- WHEN
assessruns with a fakedecide_with_jevthat records the timeout of its call - THEN The recorded timeout is 10 seconds.
Requirement: Paired report
The eval SHALL report the paired probability change of each pair, the recall of incomplete drafts and the false-hold rate, with fixed thresholds.
Scenario: One design on a small labelled set
- WHEN the eval runs the hunk-digest design on a labelled set with a fake decision model and fixed thresholds
- THEN The report holds the paired change of each pair, the recall and the false-hold rate.
Requirement: Bar verdict
The verdict SHALL mark the bar met only with 30 cases, recall above 70% and false holds at or below 10%.
Scenario: Recall below the bar
- WHEN the verdict gets 30 cases, a recall of 65% and false holds of 5%
- THEN The verdict is not met and names the recall as the reason.
Requirement: Wiring record
The change SHALL record the advice-only use of the check in the implement job in docs/ROADMAP_WORKFLOW.md.
Scenario: The record passes the docs check
- WHEN the change runs
uv run devops ci --check --only docs - THEN The docs check passes.
Existing Tool Considered
pydantic-ai (https://github.com/pydantic/pydantic-ai), verdict in-use in the alternatives check of 2026-11-25 in the issue body. The alternatives check in the issue body lists what the tool covers and lacks. The project builds the hunk digest, added-lines reduction, size cap, 10 second timeout and paired report in src/devops_cli/roadmap/jev_completeness.py and src/devops_cli/roadmap/jev_completeness_eval.py. The issue body gives the cost as about 10K tokens for each design tried and 0.01 USD for each run of the set.
Key questions
- Where does the check build its state and its questions?:
build_requestatsrc/devops_cli/roadmap/jev_completeness.py:103builds the state and the questions.assessat line 143 sends them. The change replaces thediffstate entry with onehunksentry for each criterion. [sources: src/devops_cli/roadmap/jev_completeness.py:103, src/devops_cli/roadmap/jev_completeness.py:143] - Which request design replaces the whole diff?: Give each criterion one Noul question and one
hunksentry with the added lines of the hunks of the files that its text names. Leave test files out. When a criterion names no file, give it the hunks of every source file that fits the size budget. (best practice) [sources: src/devops_cli/roadmap/jev_completeness.py:103]- Chosen: Per-criterion hunk digest. ADR 0019 asks for short questions about evidence that tools extract. Unrelated state lowers model accuracy.
- Rejected: Whole diff with added lines only. The weak signal came from the whole diff. The whole diff also breaks the size budget of fix(ai): set the Jev context window from the model data #5209.
- Rejected: One Noul question for each file and criterion. It sends the same hunks to a question for each file, so the state grows with detail that the criterion does not name.
- Rejected: Noul true and false descriptions for each criterion. It changes the question text and not the state. Keep it as a later design when the bar is not met.
- How does the check bound the size and the time of a request?: Cap the state and the questions at the size budget of fix(ai): set the Jev context window from the model data #5209 and skip the check with a logged reason over it. Send each request with a timeout of 10 seconds. (best practice) [sources: src/devops_cli/ai/jev.py, src/devops_cli/roadmap/jev_completeness.py:143]
- Chosen: Size budget of fix(ai): set the Jev context window from the model data #5209 and a 10 second timeout.
max_diff_tokensalready gives the budget. A hung call would hold a runner slot for the 3600 second default. - Rejected: Token cap on the diff only. It measures the diff and not the state, so the questions can pass the budget.
- Rejected: No timeout. A hung call holds the runner for 3600 seconds.
- Chosen: Size budget of fix(ai): set the Jev context window from the model data #5209 and a 10 second timeout.
- How does the change measure the design against the bar?: Run
devops roadmap eval completenesson the labelled set of feat(roadmap): a Jev completeness check for draft pull requests #4308 with fixed thresholds. Report the paired probability change, the recall of incomplete drafts and the false-hold rate. The verdict requires at least 30 cases, recall above 70% and false holds at or below 10%. (best practice) [sources: src/devops_cli/roadmap/jev_completeness_eval.py, docs/ROADMAP_WORKFLOW.md]- Chosen: One design on the set with fixed thresholds. It isolates the effect of the design. A threshold change cannot hide a weak signal.
- Rejected: All designs at once. A gain cannot be traced to one design.
- Rejected: Tune the thresholds for the design. It fits the thresholds to a small set and gives no honest comparison.
- Does the labelled set of feat(roadmap): a Jev completeness check for draft pull requests #4308 hold at least 30 cases?: Yes. The fixture folder
tests/fixtures/roadmap_eval/completenessholds 47 case folders: 26 complete drafts and 21 incomplete drafts. The eval counts the cases at run time. [sources: src/devops_cli/roadmap/jev_completeness_eval.py] - How does the implement job use the check?: As advice only. The job posts the note of
completeness_noteand never holds the draft or stops the item. The settingroadmap.stage.jev_completenessstays off until a design meets the bar. Record the decision indocs/ROADMAP_WORKFLOW.md. (best practice) [sources: src/devops_cli/roadmap/jev_completeness.py:207, src/devops_cli/roadmap/watch_row.py, CONTEXT.md]- Chosen: Advice only: post a note, never hold. A false hold stops the item and needs
implement: retry. The false-hold rate is 28%. - Rejected: Hold the draft on a doubt. It stops 28% of the correct items.
- Rejected: Do not wire the check in the implement job. The note costs little and gives a person the doubts.
- Chosen: Advice only: post a note, never hold. A false hold stops the item and needs
Fit
Fits in one pull request.
Suspected block
None.
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.The check is currently off and not blocking, but enabling it improves draft quality gates.It would allow the project to turn on a completeness gate that currently cannot meet its bar.It requires trying multiple designs, running paired evaluations, and deciding the implement-job wiring.Both work on the Jev completeness check; #4308 creates it, the candidate fixes its weak signal for removed hunks.devops-cli-service commentedon Nov 10, 2026
Status set to Ready at 699026e (see proposed design in issue body).
devops-cli-service commentedon Nov 11, 2026
Alternatives check: none
Reason: Searches for a tool that judges whether a diff implements each acceptance criterion (PR requirement/ticket-compliance reviewers, changed-line coverage, mutation testing, LLM patch judges) returned no relevant open, maintained project, only unrelated pages. The need is an in-repo change to the existing Jev client and check: three prompt/diff-input designs tried on a labelled set with a paired-probability report and a fixed bar, which no external tool provides.
Tool: none found
Lacks:
Searches run:
Checked on 2026-11-11. A person decides what this means for the item. The check changes no label and closes no issue.
dan-petty commentedon Nov 12, 2026
Scope note from the decision-model docs review of 2026-11-12. The owner approved it on 2026-11-12.
The documents say:
Now: the state is the whole diff and a criteria map (
src/devops_cli/roadmap/jev_completeness.py:104-130,144-176). The check skips the diff only above 65,536 tokens (CONST_ROADMAP_JEV_MAX_DIFF_TOKENS, from the 262,144 hard window). No timeout is set, so the 3600 s default of the project HTTP client applies. ADR 0019 already lists a long text as state as not suited. This is consistent with the no-go result (43% recall, 28% false holds).Change to this item:
devops-cli-service commentedon Nov 18, 2026
The result in the alternatives block of the issue body changed. Before this check:
none, no tool. A person decides what the new result means for the item.Searches (8)
Tools considered:
Searches run:
Sources:
dan-petty commentedon Nov 20, 2026
Frozen on 2026-11-20. The stage, implement and fix-checks jobs grade under 60%, so the owner rule asks for a re-architecture before more fixes inside the current design (tracker #6519). This item is incremental work on those jobs, so its Dependencies section now names #6521 first. Stage and implement leave this item while #6521 is open. When the experiments of #6519 decide, a person closes #6521 (this item can then continue) or closes this item as not planned.
devops-cli-service commentedon Nov 25, 2026
The result in the alternatives block of the issue body changed. Before this check:
partly, tool https://github.com/The-PR-Agent/pr-agent. A person decides what the new result means for the item.Searches (10)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 26, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies and Watched files in the section Proposed design of the body.
devops-cli-service commentedon Nov 27, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
dan-petty commentedon Nov 30, 2026
Triage under #6519 (owner instruction of 2026-11-30), before the hold #6521 closes. This item adds or extends a gate, refusal, screen, cap, limit, retry, result line, shell allowlist, tool catalog or plan-shape rule of the stage, implement or fix-checks job. #6519 found that 263 of about 900 issues in four weeks added such rules and none replaced the engine. Stage now runs on stock Coder (grade 60 on 30 graded attempts), where the agent reads the repository, runs the checks in its loop and has a real shell; implement follows (#6527). The code paths that this item names have also moved. If the failure class still shows in graded attempts, file a new item from that evidence. Closed as not planned; a person may reopen it.