Repository navigation
Closed
Labels
effort/lowEffort Low: little workpriority/p3-lowPriority P3: a small improvementscope/aiAI review pipeline, personas, prompts, LLM client, or RAGsource/agentFiled by an agenttype/refactorType refactor: a new structure, same behaviorvalue/lowValue Low: the delivery of the item matters little
Description
Problem or Motivation
Six functions in src/devops_cli/ai/jev.py have no caller in src (git grep -w on origin/main 5645b63). Only the tests call them:
| Function | Line | Planned caller |
|---|---|---|
route_with_jev |
231 | #4284 (stage.tier_route, status/ready) plans to call it and to add extra_questions. |
select_skill_with_jev |
297 | None found. |
gate_tool_call_with_jev |
371 | None. #5206 rejects it: "guessed thresholds, and no code calls it". |
judge_with_jev |
436 | None found. |
create_jev_judge_evaluators |
504 | None found. |
filter_rag_passages_with_jev |
543 | None found. |
"None found" means that a search of open issues on 2026-11-12 found no issue that names the function.
- Their thresholds are guesses (route 0.75, boolean 0.50, high risk 0.90). ADR 0019 rule 4 says that cuts are fitted and stored as data.
- ADR 0020 says that a new decision goes through a
DecisionPointon the registry, with a mode, a record and fitted cuts. These helpers have none of them.
Proposed Solution & Architectural Design
- Remove
select_skill_with_jev,gate_tool_call_with_jev,judge_with_jev,create_jev_judge_evaluatorsandfilter_rag_passages_with_jev, their constants when no other code uses them, and their tests. - Keep
route_with_jevwhile feat(roadmap): log a Jev tier choice beside each stage run #4284 is open. feat(roadmap): log a Jev tier choice beside each stage run #4284 then calls it, or moves its questions into the pointstage.tier_routeand removes it. - Fix each document that names a removed function: ADR 0019 (the table row 5) and ADR 0020 (Context), and the knowledge base if it names one.
The auto mode (build_auto_tool_model) also has no configured user. It is not in this item.
Files: src/devops_cli/ai/jev.py, src/devops_cli/config/constants.py, tests/ai/test_jev.py, tests/ai/test_jev_one_model_many_requests.py, ADR 0019, ADR 0020.
Target Subsystem
AI & Agentic Review Pipeline (src/devops_cli/ai/jev.py).
Existing Tool Considered
Not applicable: this item removes code. Cost: about 0.2M tokens and 1 hour.
Acceptance Criteria
git grep -wfor each removed name finds no match insrc,testsordocs, exceptCHANGELOG.md.uv run pytest tests/ai/test_jev.py tests/ai/test_jev_one_model_many_requests.pypasses.decide_with_jevandroute_with_jevkeep their tests.
Dependencies
None.
Related
- feat(roadmap): log a Jev tier choice beside each stage run #4284: the planned caller of
route_with_jev. - feat(roadmap): ask Jev if a command off the lists is dangerous, in shadow #5206: the command gate, which uses a decision point and not
gate_tool_call_with_jev. - chore(roadmap): track the decision model workflows #4408: the tracker of the decision model workflows.
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p3-lowPriority P3: a small improvementscope/aiAI review pipeline, personas, prompts, LLM client, or RAGsource/agentFiled by an agenttype/refactorType refactor: a new structure, same behaviorvalue/lowValue Low: the delivery of the item matters little
Activity
dan-petty commentedon Nov 12, 2026
Dead-code removal with no user-facing effect and no blocking dependency.Both remove uncalled functions from src, but #2175 targets five different definitions in streaming.py, unified.py and thinking_stream.py while this item targets five Jev helpers in jev.py.dan-petty commentedon Nov 12, 2026
Scope addition from the decision-model docs review of 2026-11-12. The owner approved it on 2026-11-12.
The documents say:
Add to this item:
create_jev_modelwrites into the model settings (decision_route_threshold0.75 anddecision_boolean_threshold0.50).SystemOneModel.decide()does not read them, so they do nothing on the direct paths. On an Agent path (refactor(ai): ask Jev through Agent output types #5282), they become a guessed global bar. The one live use of the 0.50 cut, in ask-jev, moves to the 0.3/0.7 band in fix(ai): ask-jev refuses no context and reports unsure #5284.CONST_AI_JEV_HIGH_RISK_THRESHOLD(0.90). Onlyroute_with_jevandgate_tool_call_with_jevread it. Delete it with the last of these two helpers (route_with_jevstays while feat(roadmap): log a Jev tier choice beside each stage run #4284 is open).build_auto_tool_model, the model valueautoorauto:<model>), or setfallback_on=DecisionHandOff. Today it usesFallbackModel(fallback_on=(DecisionHandOff, ModelAPIError, UserError)), so a Jev outage goes to the language model with no signal. Nothing in the configuration or the documents sets auto mode (src/devops_cli/ai/pydantic_ai_bridge.py:258-274,324-363).Also a fact for step 1 of the body:
create_jev_judge_evaluatorscannot work as written. It wraps thepydantic_evalsLLMJudge, whoseGradingOutputhas areason: strfield and an unboundedscore: float. A decision model cannot fill a str field.refactor(ai): remove the unused Jev helpers (#5276)
devops-cli-service commentedon Nov 15, 2026
Released in v0.154.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.154.0
devops-cli-service commentedon Nov 15, 2026
Live since 2026-11-15 15:09 UTC