Repository navigation
Description
Problem or Motivation
The point stage.verify_screen (ADR 0020) asks Jev 9 Noul questions about a plan digest (src/devops_cli/roadmap/stage/stage_jev_screen.py:63-88). In the live shadow data, the band continue is 0 of 44 decisions. false_premise is at or above the shared cut of 0.595 in 43 of 44 records. The lowest highest answer is 0.62.
A review of the questions against the decision-model documents (2026-11-12, origin/main 7a158c4, pydantic-ai 2.59.0) found that the questions break five documented rules.
- 7 of 9 questions join conditions.
spec_delta_wrongandcontrived_testjoin three.false_premise,task_order,ignores_existing_codeandverify_form("the tests or the work") join two with "or".missing_pathjoins "not found" with "no earlier group creates it". Onlycriterion_droppedasks one thing.- "Ask one yes/no question per Noul. If a question has two conditions ... the model has to judge both at once and the value means less. Ask two Nouls and combine them in code." (https://docs.typesafe.ai/primitives/noul.md, Instruction phrasing)
- "A question that weighs several things at once does not fail -- it returns a plausible answer with low confidence" (https://pydantic.dev/docs/ai/models/decision/#ask-one-thing-per-field)
otheris a catch-all. It asks for "a defect that fits no other question". But Jev answers each question alone, and it cannot see the other questions.- "Broad questions hide several judgments behind one answer." (https://docs.typesafe.ai/concepts/how-to-build-with-system-one.md)
verify_formholds a negation ("does ... not run"). Yes means a defect, as in the other questions, but Jev reads the negation literally.- "Scoping words, negations, and implied conditions are read at face value." (https://docs.typesafe.ai/model-jaggedness.md, Literal reading)
- Code already has two of the answers. For each group, the digest computes
paths_not_found_in_repo. That list already leaves out the paths that earlier groups create, so it is the exact answer tomissing_path. Jev only reads if a list is empty. The digest also computesverify_names_a_test_file_of_the_group, which answers the test-file part ofverify_form(stage_jev_screen.py:103-124).- "Keep deterministic work in code. It is reliable and cheap." (https://docs.typesafe.ai/concepts/how-to-build-with-system-one.md)
- "Compute these in Python and ask Jev about the result." (https://pydantic.dev/docs/ai/models/typesafe/#what-jev-answers-badly)
- The state does not hold the evidence that the questions name. The digest holds
issue_title,acceptance_criteria,plan_summary,feasibility_claims, the names of the changed requirements, and short group rows. It holds no file contents, no dependency list, no spec scenarios and no list of the existing requirements. Butfalse_premiseandignores_existing_codeask about "the files".ignores_existing_codeasks about "a library of the project".spec_delta_wrongasks if a changed requirement exists, and asks about scenarios.false_premiseasks if "nothing in the input supports" a claim. Read literally, that is true for almost every claim in a digest with no files. This is a likely cause (an inference) of thefalse_premiseresult above. No question names a state field.- "Jev sees only the evidence in your request." (https://openrouter.ai/docs/cookbook/coding-agents/auto-approve-permission-prompts-with-jev.md)
- "A question can point at a part of the state by its name ... which TypeSafe recommend" (https://pydantic.dev/docs/ai/models/decision/#where-the-wording-comes-from)
The documents also give the order of the work: "When a tag's precision stays low at every threshold, fix the question rather than the threshold." (https://openrouter.ai/docs/cookbook/evaluate-and-optimize/jev-classification.md). So this item comes before any new fit of the cuts (#5273).
Proposed Solution & Architectural Design
missing_pathbecomes a rule of the point (ADR 0020: a rule goes first). A group with a path inpaths_not_found_in_repogives a flag. Delete the question.- The test-file part of
verify_formbecomes a rule fromverify_names_a_test_file_of_the_group. Ask Jev only the part that needs judgement, for a group whose verify command names no test file. Write that question with no negation. The code can invert the value, so a positive question is permitted. - Split each other compound question into atomic Nouls, and combine them in code. An old finding type is yes when one of its atomic questions is above its cut. So the outcome records of feat(roadmap): the verify screen records serious findings for a live fit #5273 keep the same finding types. Example for
task_order: "Does a task in tasks need the result of a later task?" and "In a group of new behavior, does a test come after the code that it tests?" - Delete
other. - Give each remaining question its evidence. For each question, do one of these: put the evidence into the state as a named field, compute the fact by a rule (for example, if a modified requirement exists in
openspec/specs), or delete the question. Name the field in the question. Example: "Does a claim in feasibility_claims contradict the issue_title or the acceptance_criteria?" - Test the two forms of each question. Run each question with and without true/false criteria (
NoulCriteria) on the labelled cases, and keep the better form. The documents make criteria optional ("When the boundary is subtle, add criteria", https://docs.typesafe.ai/primitives/noul.md). - Cap the digest. Add a total byte cap to the digest, because the count of groups and paths has no cap now. Keep the state and the questions under about 32,000 bytes. Requests with "more than about 32,000 bytes of text ... run in TypeSafe's long-context mode, which TypeSafe says is slower and less accurate" (https://openrouter.ai/docs/guides/community/jev, FAQ).
- Keep the point in shadow. The cuts in
jev_screen_cuts.jsondo not apply to new questions. Fit new cuts on the golden set withdevops roadmap eval screen, or write a prior file (docs(adr): one decision-model record supersedes ADR 0019 and ADR 0020 #5239 permits a prior cut in shadow only). The fit on live outcomes is feat(roadmap): the verify screen records serious findings for a live fit #5273.
Files: src/devops_cli/roadmap/stage/stage_jev_screen.py, src/devops_cli/roadmap/stage/stage_screen_eval.py, src/devops_cli/roadmap/stage/jev_screen_cuts.json, ADR 0020 (section stage.verify_screen), tests/roadmap/stage/.
Target Subsystem
SDLC, Git & PR Governance (src/devops_cli/roadmap/stage/, the decision point stage.verify_screen).
Existing Tool Considered
pydantic-ai NoulQuestion and NoulCriteria (pinned 2.59.0), and the project command devops roadmap eval screen. No new tool. Cost: about 0.5M tokens and 4 hours to build and test. The golden-set runs cost less than 0.01 USD.
Acceptance Criteria
- A test: a digest with a path in
paths_not_found_in_repogives the bandflagfrom the rule. The request holds no question namedmissing_path. - A test: a group whose verify command names no test file of the group gets a flag from the rule. The request holds no test-file question.
- A test: the request holds no question named
other, and each question text names at least one key of the state. - A test: the combine code gives yes for an old finding type when one of its atomic questions is above its cut.
- A test: a digest over the byte cap is cut to the cap, and the request body is less than 32,000 bytes.
-
uv run devops roadmap eval screenruns each question with and without criteria on the golden set. The pull request records the result and the selected form of each question. - ADR 0020, or the record of docs(adr): one decision-model record supersedes ADR 0019 and ADR 0020 #5239, lists the new questions and the two rules.
Related
- feat(roadmap): the verify screen records serious findings for a live fit #5273: the live fit of one cut for each question, after this item.
- docs(adr): one decision-model record supersedes ADR 0019 and ADR 0020 #5239: one decision-model record.
- fix(roadmap): decision points need cuts for shadow and run in async code #5272: shadow needs a cuts file.
- chore(roadmap): track the decision model workflows #4408: the tracker of the decision model workflows.
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-28: in-use.
The repository already uses this tool.
Tool: pydantic/pydantic-ai (https://github.com/pydantic/pydantic-ai), MIT, last activity 2026-11-28, maintained.
Reason: Searches found no tool that rewrites compound prompts into atomic questions; only the already-pinned pydantic-ai decision model maps one output field to one typed yes/no question, leaving the rewrite, rules, digest cap and form choice to the project.
Covers:
- Each output-type field becomes one typed yes/no question
- BoolCriteria states what yes and no mean for subtle lines
- DecisionModel runs the same agent on a decision backend
Lacks:
- No rewrite of a compound question into atomic Nouls
- No deterministic rule before the model call
- No digest byte cap or named evidence fields
- No per-question form choice from a golden set
Proposed design
Problem statement
The decision point stage.verify_screen asks Jev nine questions about a plan digest. Seven of the nine questions join two or three conditions, other is a catch-all, verify_form holds a negation, and the digest already computes two of the answers. In live shadow data the band continue never fires, at 0 of 44 decisions, and false_premise is at or above the shared cut in 43 of 44 records. The digest holds no evidence for the questions that name the files and has no byte cap. This item rewrites the questions as atomic questions, turns missing_path and the test-file part of verify_form into rules, deletes other, gives each remaining question its evidence, and caps the digest. The item waits on #6521 before stage or implement work.
Acceptance criteria
Requirement: A missing path is a rule
The verify screen SHALL decide a path that no earlier group creates with a rule before the decision model.
Scenario: A group reads a path in paths_not_found_in_repo
- WHEN a test builds a digest whose group reads a path in
paths_not_found_in_repo - THEN the screen returns the band
flagfrom the rule, andQUESTIONSholds nomissing_path
Requirement: The verify form is a rule plus one positive question
The verify screen SHALL decide the test-file part of the verify form with a rule and SHALL ask the decision model only the part that needs judgement.
Scenario: A verify command that names no test file of its group
- WHEN a test builds a digest whose group verify command names no test file of the group
- THEN the rule marks that group, the request holds one question about the verify command of that group, the question text holds no
notand non't, andQUESTIONSholds no question that names a test file
Requirement: Each question is atomic and names a state field
The verify screen MUST map each old finding type to atomic questions, and each question MUST name a digest state field.
Scenario: The question set of the screen
- WHEN a test reads
QUESTIONSinsrc/devops_cli/roadmap/stage/stage_jev_screen.py - THEN
QUESTIONSholds noother, and each question text names at least one key thatdigestreturns
Requirement: One atomic question above its cut answers the finding type
The verify screen SHALL answer an old finding type with yes when one of its atomic questions is at or above its cut.
Scenario: One atomic question at its cut
- WHEN a test gives one atomic question of a finding type a probability at its cut and the other atomic questions of that type a probability below their cuts
- THEN the finding type answers yes
Requirement: The digest has a byte cap
The verify screen MUST cut the digest so that the serialized request stays under 32,000 bytes.
Scenario: A digest larger than the cap
- WHEN a test builds a digest whose text is larger than the cap
- THEN the request body is smaller than 32,000 bytes
Requirement: The golden set picks the form of each question
The pull request MUST run each question with and without NoulCriteria on the golden set and MUST keep the better form.
Scenario: The screen eval on the golden set
- WHEN the pull request runs
uv run devops roadmap eval screenon the golden set - THEN the report gives the score of each question with and without criteria and names the better form
Requirement: ADR 0020 records the new questions and the two rules
The change MUST add one dated Status History line to ADR 0020 that names the living detail, and MUST list each new question and the two rules in the The verify screen section of docs/roadmap/stage.md.
Scenario: The Status History of ADR 0020 and the screen page
- WHEN a test reads the
Status Historyof ADR 0020 and theThe verify screensection ofdocs/roadmap/stage.md, anduv run devops ci test tests/invariants/test_adr_records.pyruns - THEN the
Status Historyholds the dated line, the section names each question and the two rules, and the ADR test passes
Existing Tool Considered
pydantic-ai 2.75.0 (pyproject.toml:40), the open MIT library that the project already pins (src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai_harness.md:30), provides NoulQuestion, NoulCriteria and DecisionRequest (src/devops_cli/ai/jev_ask.py:28-38, src/devops_cli/roadmap/stage/stage_jev_screen.py:34,174). It asks only the questions it is given: it does not split a compound question into atomic ones, turn a digest fact into a deterministic rule, cap the digest bytes, or choose the better question form. The alternatives check of 2026-11-22 found no external tool that covers those parts. The change builds them in the project with the pinned library and devops roadmap eval screen. Cost: about 0.5M tokens and 4 hours to build and test, and about 10k tokens a month to keep and fix the questions and the two rules; the golden-set runs cost less than 0.01 USD.
Key questions
- Should
missing_pathand the test-file part ofverify_formbecome rules, and shouldothergo?: Yes. ADR 0020 puts a proven rule before the decision model. The digest already computespaths_not_found_in_repoandverify_names_a_test_file_of_the_group(src/devops_cli/roadmap/stage/stage_jev_screen.py:103-127), so the rule is exact and cheap. Deleteotherbecause Jev answers each question alone and cannot see the other questions, so a catch-all hides several judgments behind one answer. (best practice) [sources: docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md:34, src/devops_cli/roadmap/stage/stage_jev_screen.py:103, src/devops_cli/roadmap/stage/stage_jev_screen.py:63]- Chosen: Rule for
missing_path.paths_not_found_in_repoalready leaves out the paths that earlier groups create. - Rejected: Keep the
missing_pathquestion. The question asks what the code already knows, and Jev only reads whether a list is empty. - Chosen: Rule for the test-file part of
verify_form.verify_names_a_test_file_of_the_groupanswers the test-file part with no model call. - Chosen: Delete
other.otheris a catch-all, and Jev cannot see the other questions. - Rejected: Keep
other. A broad question hides several judgments behind one answer.
- Chosen: Rule for
- Which questions remain, and what evidence does each question name?: Each remaining question is atomic and names at least one field of the digest state. A question whose evidence the state cannot hold gets a named state field, a rule, or no place. The state already holds
issue_title,acceptance_criteria,plan_summary,feasibility_claims,spec_requirementsand thegroupsrows (src/devops_cli/roadmap/stage/stage_jev_screen.py:130-157).missing_pathbecomes a rule, the test-file part ofverify_formbecomes a rule, andotheris deleted. The other finding types keep one atomic question for each judgement they held:false_premiseasks whether a claim infeasibility_claimscontradictsissue_title,acceptance_criteriaorplan_summary;spec_delta_wrongasks whether a name inspec_requirementsis missing from the base spec or duplicates another, and whether a scenario has no test ingroups;verify_formasks whether theverifycommand of a group runs theworkof that group;task_orderasks whether a task ingroupsneeds a later task and whether a test ingroupscomes after the code it tests;criterion_droppedasks whether an acceptance criterion inacceptance_criteriahas no group ingroupsthat delivers it;ignores_existing_codeasks whether a group ingroupsbuilds a path that the repository already holds or a library inproject_librariesalready covers; andcontrived_testasks whether a test ingroupsonly repeats the code, tests a mock, or passes whatever the code does. A fact that code can compute, such as whether a modified requirement exists inopenspec/specs, becomes a rule or a named state field, not a question. (best practice) [sources: src/devops_cli/roadmap/stage/stage_jev_screen.py:63, src/devops_cli/roadmap/stage/stage_jev_screen.py:130, docs/adr/0019-a-decision-step-asks-jev-short-closed-questions-about-evidence-that-tools-extract.md:29]- Chosen: One atomic question for each finding type, with its state field named in the text. The state holds the title, criteria, summary, claims, requirement names and group rows, and a Noul judges one proposition.
- Rejected: Keep the compound questions and add criteria text. A question that weighs several things at once returns a plausible answer with low confidence.
- Rejected: Move each question into code. A rule needs a deterministic fact, and the judgement parts have none.
- Do the questions keep their
NoulCriteriatrue/false text?: Run each question with and withoutNoulCriteriaon the labelled cases and keep the better form of that question. The Noul documentation makescriteriaoptional and says that a Noul judges one proposition; a criterion is worth its extra text only where the boundary is subtle. The golden set measures which form is better for each question. (best practice) [sources: src/devops_cli/ai/jev_ask.py:158, src/devops_cli/roadmap/stage/stage_screen_eval.py:1]- Chosen: Choose the form of each question from the golden-set run. The labelled cases measure which form is better, and a criterion adds text to a question.
- Rejected: Give every question criteria. No measurement supports it, and the Noul documentation makes criteria optional.
- Rejected: Give no question criteria. A subtle boundary may need criteria.
- What byte cap does the digest get?: Cap the digest so the serialized request stays under 32,000 bytes. That is about 8,000 tokens, a quarter of the 32,000-token window that the project reads for
typesafe/jev-1.14from genai-prices, and it follows the project's rule that the diff cap is a fourth of the window. The count of groups and paths has no cap now. (best practice) [sources: openspec/specs/jev-limits/spec.md:13, src/devops_cli/ai/jev.py:62, src/devops_cli/roadmap/stage/stage_jev_screen.py:130]- Chosen: A total cap of 32,000 bytes on the serialized request. The count of groups and paths has no cap now, and 32,000 bytes is about a quarter of the 32,000-token window.
- Rejected: No cap. A large digest can exceed the model's window.
- Rejected: A cap on each group row only. Many groups still push the request over the limit.
- Do the cuts in
jev_screen_cuts.jsonapply to the new questions, and where do the new cuts come from?: No. The point stays in shadow and the old cuts do not apply to the new questions. Fit new cuts on the golden set withdevops roadmap eval screen, or write a start cuts file for shadow only. A point inshadowneeds a cuts file, andonwaits for the live fit of feat(roadmap): the verify screen records serious findings for a live fit #5273. (best practice) [sources: src/devops_cli/roadmap/stage/jev_screen_cuts.json:1, src/devops_cli/roadmap/stage/stage_screen_eval.py:1, docs/CONFIGURATION.md:341, docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md:139]- Chosen: Stay in shadow and fit new cuts on the golden set. The questions changed, so the old cuts have no meaning. Shadow keeps the point off the live path.
- Rejected: Keep the old cuts. The old cuts were fitted on the old question texts.
- Rejected: Turn the point on with the new questions. The new questions have no fitted cuts and no live evidence.
- Where does the change record the new questions and the two rules?: The change adds one dated
Status Historyline to ADR 0020 of the formLiving detail moved to docs/roadmap/stage.md (#5281).and lists each new question and the two rules in theThe verify screensection ofdocs/roadmap/stage.md.docs/adr/README.md:42-50freezes the body of an accepted record and allows only a status key, one datedStatus Historyline, or a broken-link fix; an edit of thestage.verify_screensection would failtests/invariants/test_adr_records.py. A new ADR is unnecessary because the project records theLiving detail moved to <path>form for changed living detail, and docs(adr): one decision-model record supersedes ADR 0019 and ADR 0020 #5239 already plans the record that supersedes ADR 0019 and ADR 0020. (best practice) [sources: docs/adr/README.md:42, docs/adr/README.md:54, docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md:238, docs/roadmap/stage.md:174]- Chosen: Add a dated
Status Historyline to ADR 0020 and put the questions and rules indocs/roadmap/stage.md. The project freezes the body of an accepted record and gives theLiving detail moved to <path>form; the page already holds the screen's living detail. - Rejected: Edit the
stage.verify_screensection of ADR 0020. The body hash fails, and an agent never edits the body of an accepted record. - Rejected: Write a new ADR. The project records a lighter
Status Historyform for changed living detail, and docs(adr): one decision-model record supersedes ADR 0019 and ADR 0020 #5239 already plans the record that supersedes ADR 0020.
- Chosen: Add a dated
- Does this item wait on chore(roadmap): hold incremental stage and implement work #6521?: Yes. The reply of 2026-11-20 records chore(roadmap): hold incremental stage and implement work #6521 as the hold issue, and
docs/roadmap/refine.md:24states that chore(roadmap): hold incremental stage and implement work #6521 has no sub-issue and notype/epiclabel, so it is no tracker and holds the item back. The item's Dependencies section names chore(roadmap): hold incremental stage and implement work #6521 first. Stage and implement leave the item while chore(roadmap): hold incremental stage and implement work #6521 is open; when the experiments of refactor(roadmap): re-architect stage and implement on Coder #6519 decide, a person closes chore(roadmap): hold incremental stage and implement work #6521 or closes this item as not planned. [sources: docs/roadmap/refine.md:24, docs/roadmap/refine.md:32, openspec/specs/roadmap-refine/waits/spec.md:229]
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 12, 2026
Both target the verify screen, but #5273 records findings for a threshold fit while this item rewrites the questions to be atomic.devops-cli-service commentedon Nov 16, 2026
Alternatives check: none
Reason: The searches surfaced decision-model tooling and guidance (pydantic-ai's decision models with NoulQuestion/NoulCriteria, Microsoft-Decision-1, and an article on breaking judgments into atomic questions), but none of these is an open tool that covers this issue's need. The issue itself states "No new tool": it is a rewrite of the project's own verify-screen questions (atomic Nouls, two code rules, a digest byte cap) using the already-pinned pydantic-ai NoulQuestion/NoulCriteria and the project's
devops roadmap eval screencommand, so no external tool covers the need.Tool: none found
Lacks:
Searches run:
Sources:
Checked on 2026-11-16. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 17, 2026
Status set to Ready at e6f5718 (see proposed design in issue body).
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 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.
devops-cli-service commentedon Nov 28, 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 (4)
Tools considered:
Searches run:
Sources:
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.