Skip to content

feat(roadmap): Jev decides the labels of an intake proposal #4298

Closed

Description

@dan-petty

Problem

devops roadmap intake asks one LLM call (task triage, schema ModelProposal) for each candidate. The call fills the type (when the title gives none), the priority, the Value, the Effort and the duplicate flag. These fields are fixed lists and yes/no questions, which the TypeSafe Jev System One model (typesafe/jev-1.14) answers with calibrated probabilities and a confidence. An LLM call writes free text and costs more tokens for each candidate.

The owner asked on 2026-11-09: "Use Jev for issue labeling and categorization".

Proposal

Add a setting, off by default, that makes intake ask Jev for the proposal fields. The same ModelProposal goes to the existing checks, so intake still decides which values stand.

  • Type: a Choice question over the declared type/* labels. It runs only when the title and the issue give no type (the Conventional Commit title still gives type/* and scope/*).
  • Priority: a Choice question over P1-High, P2-Medium, P3-Low.
  • Value and Effort: a Score question for each, with three levels.
  • Duplicate flag: one Noul question for each nearest neighbour. A neighbour flags only when its probability reaches a high threshold. A verdict only flags a possible duplicate: intake never drops a candidate and never closes an issue.
  • A Jev error, a timeout or a low confidence falls back to the existing LLM call (fail open).
  • A bounded counter shows how often each field came from Jev or from the fallback.
  • An offline comparison command scores Jev and the current LLM on the same cases. The setting stays off until Jev shows no more false-positive duplicates than the current path.

Jev is not reachable through the gateway yet (#4289). This change is built against a fake of the Jev client and stays ready for the real route.

Feasibility

  • The Jev cookbooks (https://docs.typesafe.ai/cookbooks) group "Classification" under Choice questions (hierarchical classification, classification using confidence), Score questions under routing and matching, and Noul questions under field checks (entity alignment). The index states no limit on options or questions: examples run 75 options in one Choice and 13 questions in one call.
  • The library source confirms the shapes: pydantic_ai/models/decision.py in this venv defines ChoiceQuestion(criteria: dict), ScoreQuestion(criteria: list) and NoulQuestion with NoulCriteria. The answers are ChoiceAnswer(choice, confidence, probabilities), ScoreAnswer(score, confidence, probabilities) and NoulAnswer(noul). SystemOneModel posts to /v1/systemone and requires instructions on each question. So each ModelProposal field except the free-text reasons maps to one question.
  • Jev writes no text. The reason lines of the proposal come from the probabilities and the option text, not from the model. The duplicate shared_change is the title of the flagged neighbour.
  • The cost is about 0.042 USD per 1M input tokens (owner figure, 2026-11-09). One candidate sends about 3k tokens, so one call costs about 0.0001 USD.
  • What is not verified: a live call. POST /v1/systemone gives 404 through the gateway today (fix(ai): the gateway has no route for the Jev Decisions API #4289).

Acceptance criteria

  • With the setting off, intake behaves as today.
  • With the setting on, a candidate gets its fields from one Jev request, and a Jev failure or a low confidence uses the LLM call.
  • A flagged duplicate stays a flag: the candidate is still placed.
  • devops roadmap eval jev compares Jev and the LLM on the duplicate cases and on type, priority, Value and Effort of closed issues, and prints the false-positive duplicate count first.

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/medium
    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/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. Off by default, blocked by gateway route #4289, and reduces cost but does not unblock any user workflow.
    • Value: Medium. Cuts per-candidate token cost and adds calibrated probabilities, but the feature is opt-in and not yet reachable through the gateway.
    • Effort: Medium. Requires mapping five fields to Jev question types, a fallback path, a bounded counter, and an offline comparison command, all against a confirmed library API.
    • Related: feat(roadmap): a Jev screen before the verify step #4282, which asks for a different change. Both use Jev in the roadmap pipeline, but #4282 targets the verify step while this candidate targets the intake labeling step.
  3. added
    priority/p2-medium
    status/in-progress
    and removed
    status/new
    on Nov 10, 2026
  4. added
    status/in-review
    and removed
    status/in-progress
    on Nov 10, 2026
  5. removed
    status/in-review
    on Nov 10, 2026
  6. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-10 02:44 UTC

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