Repository navigation
Description
Problem or Motivation
Three trials treated TypeSafe Jev (typesafe/jev-1.14, a System One decision model) as a cheaper model, and all three failed their gates (2026-11-10):
- The Jev completeness check of a draft pull request (feat(roadmap): a Jev completeness check for draft pull requests #4320, switch off) gave 28% false holds and 43% recall. The probability moved 0.02 or less when a hunk left a long diff that was given as state.
- The Jev labels of intake (feat(roadmap): Jev decides the labels of an intake proposal #4323, switch off) are behind the triage model on priority, Value and Effort, found 0 of 3 true duplicates, and used guessed thresholds (0.90, 0.60) on score confidences of 0.25 to 0.55.
- The Jev screen before the verify step (feat(roadmap): a Jev screen before the verify step #4282) has a guessed threshold (0.05) and no data.
Jev works on short, closed questions (devops ai ask-jev). The workflows must change to fit a decision model: a decision model is no drop-in replacement for a model that writes text. The owner decided this on 2026-11-10. The project has no record of how a Jev decision point is built, so each trial made its own choices.
Proposed Solution & Architectural Design
Write the design record, and nothing else:
- An ADR in
docs/adr/that decides the pattern of a decision step: a decision point and not a generation point; tools extract the evidence and Jev judges a short closed question about each piece; many small questions in one request; thresholds fitted for each question on labelled data, with a fixed split of the cases and a swapped repeat; action bands (continue, send to the reviewer, flag) and not pass or fail; a shadow log before any switch; fail open to the existing path; a Jev answer is evidence and never the only security control. - An OpenSpec capability spec
decision-stepswith the requirements: closed question set, evidence builder, fitted thresholds stored as data, action bands, shadow log, fail-open. - The candidate decision points ranked by fit. Pilot 1 is the verify screen (feat(roadmap): a Jev screen before the verify step #4282: skip the tool-using reviewer or run it). Pilot 2, later, is the tail of the failure classes (a choice over the 19
FailureClassvalues when no regex rule matches). The record names the success bar of each pilot and lists what is not suited to a decision model.
Target Subsystem
Roadmap Service workflows (src/devops_cli/roadmap), AI client (src/devops_cli/ai/jev.py), docs and specs.
Existing Tool Considered
TypeSafe Jev through the pydantic_ai DecisionModel (src/devops_cli/ai/jev.py, jev_ask.py) and the TypeSafe cookbooks. This item builds no code. The code of pilot 1 is in #4282. Cost: one ADR and one spec in one pull request.
Related: #4282, #4284, #4309, #4317, #4319, #4320, #4323.
Standards Compliance
- I confirm this proposal aligns with AGENTS.md engineering principles (cyclomatic complexity <= 10, nesting <= 5, zero bare exceptions, tests that cover the changed lines).
- I am willing to submit a pull request implementing this feature with accompanying tests.
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.
docsprefix of the title gives the type.(roadmap)scope of the title gives the scope.Three failed trials show the need, but no user-facing defect is blocked by the absence of the record.It stops each future trial from making its own untested choices and gives a shared reference for the pattern.The body states the cost is one ADR and one spec in one pull request.Both concern the Jev decision-step pattern for the verify screen, but the candidate delivers the design record and #4282 delivers the code implementation.docs(roadmap): the decision-step pattern for Jev decision points
docs(roadmap): the decision-step pattern for Jev (#4340)