Skip to content

feat(roadmap): register the refine judge fixable decision point #5897

Open

Description

@devops-cli-service

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_fixable is registered in decision_registry.REGISTRY and decision_table.POINT_CUTS with one Noul question 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; on waits 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.REGISTRY after the change
  • THEN the registry holds an entry for refine.judge_fixable with exactly one question, and that question is a Noul.

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 continue band and a fake model that raises if it is called
  • THEN the chain returns the rule resolver and the continue band, 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 continue and 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 continue and a fake model that answers yes
  • THEN the chain returns the model resolver and the continue band.

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_fixable from the roadmap decisions settings and calls check_modes for the point with no POINT_CUTS entry
  • THEN the mode is off, and check_modes returns 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 ResolverChain and the pydantic_ai DecisionModel with a Noul question, 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 ResolverChain stop at the rule when the rule returns a band?: Yes. _resolve returns the band of _started when 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_modes refuse shadow and on for a point with no cuts file?: Yes. _FITTED_MODES holds shadow and on. check_modes refuses a mode in that set when POINT_CUTS has 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_fixable use before its cuts file exists?: Use off. check_modes refuses shadow and on with no cuts file. In off the 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. off is the only mode that check_modes accepts with no cuts file.
    • Rejected: Start in shadow. check_modes refuses shadow for a point with no cuts file.
    • Rejected: Start in on. The point has no fit report, so on would act on an unfitted cuts file.
  • Which question type should refine.judge_fixable use?: Use one Noul question that asks whether one repair round can fix the refusal. A yes returns the continue band. 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 Noul as the yes/no question with a probability. The issue asks for one Noul.
    • Rejected: One Choice question. A Choice question picks one option of a list, but the need is a yes/no answer.
    • Rejected: One Score question. A Score question gives a level of a rubric, but the need is a yes/no answer.
  • Should the cuts fit, the shadow start and the decision telemetry proof be deferred?: Yes. No labelled outcome set of the refine judge's fixable decision exists, and fit_cuts needs labelled cases. In off the point writes no record and no count, so the decision line and the counter sample cannot show here. A new issue fits the cuts, starts shadow and 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 FitCase data. No labelled outcome set exists, and mode off counts 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 off writes no record and no count, so the test cannot observe a sample.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#4847

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/high
    on Nov 15, 2026
  2. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    ContributorAuthor
  3. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    ContributorAuthor

    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.

  4. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    ContributorAuthor

    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.

  5. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

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/highpriority/p2-mediumscope/roadmapsource/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions