Skip to content

feat(roadmap): ask the verify screen one atomic question each #5281

Not planned

Description

@dan-petty

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.

  1. 7 of 9 questions join conditions. spec_delta_wrong and contrived_test join three. false_premise, task_order, ignores_existing_code and verify_form ("the tests or the work") join two with "or". missing_path joins "not found" with "no earlier group creates it". Only criterion_dropped asks one thing.
  2. other is 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.
  3. verify_form holds a negation ("does ... not run"). Yes means a defect, as in the other questions, but Jev reads the negation literally.
  4. 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 to missing_path. Jev only reads if a list is empty. The digest also computes verify_names_a_test_file_of_the_group, which answers the test-file part of verify_form (stage_jev_screen.py:103-124).
  5. 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. But false_premise and ignores_existing_code ask about "the files". ignores_existing_code asks about "a library of the project". spec_delta_wrong asks if a changed requirement exists, and asks about scenarios. false_premise asks 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 the false_premise result above. No question names a state field.

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

  1. missing_path becomes a rule of the point (ADR 0020: a rule goes first). A group with a path in paths_not_found_in_repo gives a flag. Delete the question.
  2. The test-file part of verify_form becomes a rule from verify_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.
  3. 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?"
  4. Delete other.
  5. 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?"
  6. 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).
  7. 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).
  8. Keep the point in shadow. The cuts in jev_screen_cuts.json do not apply to new questions. Fit new cuts on the golden set with devops 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_repo gives the band flag from the rule. The request holds no question named missing_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 screen runs 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

Source: https://pydantic.dev/docs/ai/models/decision/

Dependencies

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 flag from the rule, and QUESTIONS holds no missing_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 not and no n't, and QUESTIONS holds 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 QUESTIONS in src/devops_cli/roadmap/stage/stage_jev_screen.py
  • THEN QUESTIONS holds no other, and each question text names at least one key that digest returns

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 screen on 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 History of ADR 0020 and the The verify screen section of docs/roadmap/stage.md, and uv run devops ci test tests/invariants/test_adr_records.py runs
  • THEN the Status History holds 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_path and the test-file part of verify_form become rules, and should other go?: Yes. ADR 0020 puts a proven rule before the decision model. The digest already computes paths_not_found_in_repo and verify_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. Delete other because 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_repo already leaves out the paths that earlier groups create.
    • Rejected: Keep the missing_path question. 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_group answers the test-file part with no model call.
    • Chosen: Delete other. other is a catch-all, and Jev cannot see the other questions.
    • Rejected: Keep other. A broad question hides several judgments behind one answer.
  • 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_requirements and the groups rows (src/devops_cli/roadmap/stage/stage_jev_screen.py:130-157). missing_path becomes a rule, the test-file part of verify_form becomes a rule, and other is deleted. The other finding types keep one atomic question for each judgement they held: false_premise asks whether a claim in feasibility_claims contradicts issue_title, acceptance_criteria or plan_summary; spec_delta_wrong asks whether a name in spec_requirements is missing from the base spec or duplicates another, and whether a scenario has no test in groups; verify_form asks whether the verify command of a group runs the work of that group; task_order asks whether a task in groups needs a later task and whether a test in groups comes after the code it tests; criterion_dropped asks whether an acceptance criterion in acceptance_criteria has no group in groups that delivers it; ignores_existing_code asks whether a group in groups builds a path that the repository already holds or a library in project_libraries already covers; and contrived_test asks whether a test in groups only 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 in openspec/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 NoulCriteria true/false text?: Run each question with and without NoulCriteria on the labelled cases and keep the better form of that question. The Noul documentation makes criteria optional 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.14 from 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.json apply 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 with devops roadmap eval screen, or write a start cuts file for shadow only. A point in shadow needs a cuts file, and on waits 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 History line to ADR 0020 of the form Living detail moved to docs/roadmap/stage.md (#5281). and lists each new question and the two rules in the The verify screen section of docs/roadmap/stage.md. docs/adr/README.md:42-50 freezes the body of an accepted record and allows only a status key, one dated Status History line, or a broken-link fix; an edit of the stage.verify_screen section would fail tests/invariants/test_adr_records.py. A new ADR is unnecessary because the project records the Living 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 History line to ADR 0020 and put the questions and rules in docs/roadmap/stage.md. The project freezes the body of an accepted record and gives the Living detail moved to <path> form; the page already holds the screen's living detail.
    • Rejected: Edit the stage.verify_screen section 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 History 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 0020.
  • 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:24 states that chore(roadmap): hold incremental stage and implement work #6521 has no sub-issue and no type/epic label, 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.

Dependencies

#6521

Activity

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

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 12, 2026
  4. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    Contributor

    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 screen command, so no external tool covers the need.

    Tool: none found

    Lacks:

    • No external tool splits the project's compound stage.verify_screen questions into atomic Nouls and recombines them in code.
    • No external tool turns missing_path and the test-file part of verify_form into rules over the digest.
    • No external tool supplies the digest byte cap or the new cuts fit for stage.verify_screen; the work is internal code and the issue asks for no new tool.

    Searches run:

    • pydantic-ai NoulQuestion NoulCriteria one question per field decision model, results: 5
    • split compound yes/no question into atomic questions decision model library, results: 5

    Sources:

    Checked on 2026-11-16. A person decides what this means for the item. The check changes no label and closes no issue.

  5. added
    status/ready
    and removed
    status/new
    on Nov 17, 2026
  6. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at e6f5718 (see proposed design in issue body).

  7. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor

    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.

  8. added
    status/new
    and removed
    status/ready
    on Nov 27, 2026
  9. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    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.

  10. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    Contributor

    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:

    • pydantic-ai Noul atomic yes/no question decision model, results: 5
    • LLM classification one question per field atomic questions compound condition, results: 5
    • typesafe noul ask one yes or no question per noul criteria, results: 5
    • open source library decompose compound question into atomic boolean questions LLM classifier, results: 5

    Sources:

  11. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor

    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.

  12. removed
    status/new
    on Nov 30, 2026
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/mediumpriority/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