Skip to content

docs(roadmap): the decision-step pattern for Jev decision points #4326

Closed

Description

@dan-petty

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):

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-steps with 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 FailureClass values 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

  1. added
    source/agent
    type/docs
    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/docs. The docs prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. Three failed trials show the need, but no user-facing defect is blocked by the absence of the record.
    • Value: Medium. It stops each future trial from making its own untested choices and gives a shared reference for the pattern.
    • Effort: Low. The body states the cost is one ADR and one spec in one pull request.
    • Related: feat(roadmap): a Jev screen before the verify step #4282, which asks for a different change. Both concern the Jev decision-step pattern for the verify screen, but the candidate delivers the design record and #4282 delivers the code implementation.
  3. added
    priority/p2-medium
    owner/agent
    on Nov 10, 2026
  4. added
    status/in-review
    and removed
    status/new
    on Nov 10, 2026
  5. added a commit that references this issue on Nov 10, 2026
    f8bd761
  6. removed
    status/in-review
    owner/agent
    on Nov 10, 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/lowpriority/p2-mediumscope/roadmapsource/agenttype/docsvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions