Repository navigation
Description
Split from #4867.
Problem: the refine judge's fixable check answers from the #4798 rule only. Owner requirement 4 asks the decision model "can one repair round fix this?" at the refusal site.
Why deferred: the decision-point chain that lets a model add to a rule is not built (#4847 is unmerged and its refined design deferred the fix-check chain), and no labelled outcome of the refine judge's fixable decision exists, so no cut can be fitted (ADR 0020 section 3). ResolverChain stops at the rule when the rule answers (src/devops_cli/roadmap/decision_point.py:403-407), and check_modes refuses shadow and on for a point with no cuts file (src/devops_cli/roadmap/decision_table.py:22-23).
Acceptance criteria:
refine.judge_fixableis registered indecision_registry.REGISTRYanddecision_table.POINT_CUTSwith oneNoulquestion and a cuts file fitted on labelled outcomes.- With a fake model, a model yes and a rule no takes the agent round, and a model error takes the rule.
- A rule yes stands before the model and sends no request.
- Each decision writes the decision line and increments
devops_cli_decision_point_total. - The point starts in
shadow;onwaits for the fit report.
Proposed design
Problem statement
The refine judge answers whether one repair round can fix a refusal from the #4798 rule alone. Owner requirement 4 asks the decision model this question at the refusal site. No registered decision point holds it. This change registers refine.judge_fixable in mode off with one Noul question. It defers the cuts fit and the shadow start to a new issue.
Acceptance criteria
Requirement: Point registration
refine.judge_fixable SHALL be registered in decision_registry.REGISTRY with exactly one question of type Noul.
Scenario: Registry entry
- WHEN the test loads
decision_registry.REGISTRYafter the change - THEN the registry holds an entry for
refine.judge_fixablewith exactly one question, and that question is aNoul.
Requirement: Rule band short-circuits
refine.judge_fixable SHALL send no model request when the rule returns a band.
Scenario: Rule returns continue
- WHEN the test runs the point with a rule that returns the
continueband and a fake model that raises if it is called - THEN the chain returns the rule resolver and the
continueband, and the fake model received no request.
Requirement: Model error keeps the rule band
refine.judge_fixable MUST keep the rule band when the model request raises an error.
Scenario: Fake model raises
- WHEN the test runs the point with a rule that returns a band other than
continueand a fake model that raises an error - THEN the chain returns the rule resolver and that rule band, and the point writes no model result.
Requirement: Model yes takes the agent round
refine.judge_fixable SHALL return the continue band when the rule returns a band other than continue and the model answers yes.
Scenario: Fake model answers yes
- WHEN the test runs the point with a rule that returns a band other than
continueand a fake model that answers yes - THEN the chain returns the model resolver and the
continueband.
Requirement: Point starts in off
refine.judge_fixable SHALL run in the off mode until a cuts file exists.
Scenario: Mode is off
- WHEN the test reads the mode of
refine.judge_fixablefrom the roadmap decisions settings and callscheck_modesfor the point with noPOINT_CUTSentry - THEN the mode is
off, andcheck_modesreturns no refusal.
Existing Tool Considered
No alternatives check has run on this item. No open, maintained tool or library covers an internal roadmap decision-point registration. The change reuses the existing ResolverChain and the pydantic_ai DecisionModel with a Noul question, as ADR 0020 decides. It adds one registry entry and about two test files, with no new dependency. The build cost of that code is about 30k tokens and half a day. The keep cost is near zero, because the entry reuses the existing chain and telemetry.
Key questions
- Which open, maintained tool or library covers the need?: No external tool covers an internal roadmap decision-point registration. Use the existing
ResolverChainand the pydantic_aiDecisionModelwith aNoulquestion, as ADR 0020 decides. (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, src/devops_cli/roadmap/decision_point.py:243]- Chosen: Use the existing ResolverChain and Noul. ADR 0020 selects this chain and this question type. The change only registers a point.
- Rejected: Add an external decision-table library. No alternatives check names one, and no external tool covers an internal roadmap decision point.
- Does
ResolverChainstop at the rule when the rule returns a band?: Yes._resolvereturns the band of_startedwhen the rule gives a band. The chain reaches the model only when the rule returns None. The chain change that lets a model add to a rule waits on feat(roadmap): add the soft-cap and fix-check chain to decision points #4847. [sources: src/devops_cli/roadmap/decision_point.py:403-407] - Does
check_modesrefuseshadowandonfor a point with no cuts file?: Yes._FITTED_MODESholdsshadowandon.check_modesrefuses a mode in that set whenPOINT_CUTShas no entry for the point. [sources: src/devops_cli/roadmap/decision_table.py:22-23, src/devops_cli/roadmap/decision_table.py:38] - Which mode should
refine.judge_fixableuse before its cuts file exists?: Useoff.check_modesrefusesshadowandonwith no cuts file. Inoffthe point sends no request and writes no record and no count. (best practice) [sources: src/devops_cli/roadmap/decision_table.py:22-23, docs/roadmap/stage.md:176]- Chosen: Start in off.
offis the only mode thatcheck_modesaccepts with no cuts file. - Rejected: Start in shadow.
check_modesrefusesshadowfor a point with no cuts file. - Rejected: Start in on. The point has no fit report, so
onwould act on an unfitted cuts file.
- Chosen: Start in off.
- Which question type should
refine.judge_fixableuse?: Use oneNoulquestion that asks whether one repair round can fix the refusal. A yes returns thecontinueband. A no or an error keeps the rule band. (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, src/devops_cli/roadmap/decision_point.py:243]- Chosen: One Noul question. ADR 0020 defines
Noulas the yes/no question with a probability. The issue asks for oneNoul. - Rejected: One Choice question. A
Choicequestion picks one option of a list, but the need is a yes/no answer. - Rejected: One Score question. A
Scorequestion gives a level of a rubric, but the need is a yes/no answer.
- Chosen: One Noul question. ADR 0020 defines
- Should the cuts fit, the
shadowstart and the decision telemetry proof be deferred?: Yes. No labelled outcome set of the refine judge's fixable decision exists, andfit_cutsneeds labelled cases. Inoffthe point writes no record and no count, so the decision line and the counter sample cannot show here. A new issue fits the cuts, startsshadowand proves the telemetry. (best practice) [sources: src/devops_cli/roadmap/decision_fit.py:24, src/devops_cli/roadmap/decision_table.py:22-23, src/devops_cli/telemetry/instruments.py, docs/roadmap/stage.md:176]- Chosen: Defer the fit and the shadow start. The fit needs labelled
FitCasedata. No labelled outcome set exists, and modeoffcounts nothing. - Rejected: Hand-write the cuts file. A hand-written file has no labelled fit and cannot show the false-clear rate.
- Rejected: Prove the telemetry in this issue. A point in mode
offwrites no record and no count, so the test cannot observe a sample.
- Chosen: Defer the fit and the shadow start. The fit needs labelled
Fit
Fits in one pull request.
Suspected block
None.
Activity
devops-cli-service commentedon Nov 15, 2026
Both items work on the refine judge fixable decision; #4867 asks for the model to answer before a refusal, and the candidate asks to register the point and its cuts file.devops-cli-service commentedon Nov 18, 2026
Refine cannot set this item to Ready at 86358b6 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
The next refine round also looks at the item again when a commit on the default branch changes one of these files:
src/devops_cli/roadmap/decision_point.py,src/devops_cli/roadmap/decision_table.py.devops-cli-service commentedon Nov 25, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies and Watched files in the section Proposed design of the body.
devops-cli-service commentedon Nov 25, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.