Skip to content

feat(roadmap): Refuse stage.explore_stop on mode without fitted cut #4410

Not planned

Description

@devops-cli-service

Split from #4399.

Problem: The decision point stage.explore_stop must refuse the mode on until a fitted cut exists. The mode lives in the registry of decision points, and the registry item delivers it. This repository has no such registry, so the point cannot refuse a mode that no registry holds. Why deferred: The part waits on the registry item. The rest of the item ships the point in shadow mode. Acceptance criteria: The registry refuses the mode on for stage.explore_stop and names the fitted cut that it lacks. The registry accepts the mode shadow for the point. A test asks the registry for the mode on and gets the refusal.

Dependencies

Proposed design

Problem statement

Do not run stage.explore_stop in the mode on before a fitted cut exists. The settings load must refuse on for the point and accept shadow. #4399 registers the point first. #6521 holds the stage work until the re-architecture decides.

Acceptance criteria

Requirement: Refuse mode on without a fitted cut

The settings load SHALL refuse the mode on for stage.explore_stop when the point has no fitted cut in the repository.

Scenario: Mode on refused at settings load

  • WHEN A test writes a config with roadmap.decisions set to {"stage.explore_stop": "on"} and calls load_settings while the point has no cuts file.
  • THEN load_settings raises ConfigurationError, and the message contains stage.explore_stop and states that the point needs a cuts file.

Requirement: Accept mode shadow without a fitted cut

The settings load SHALL accept the mode shadow for stage.explore_stop while the point has no fitted cut in the repository.

Scenario: Mode shadow accepted

  • WHEN A test writes a config with roadmap.decisions set to {"stage.explore_stop": "shadow"} and calls load_settings while the point has no cuts file.
  • THEN load_settings returns settings whose roadmap.decisions is {"stage.explore_stop": "shadow"} and raises no error.

Requirement: Settings test names the point

The settings tests MUST include a test that names stage.explore_stop and asserts the refusal of the mode on.

Scenario: The point refusal test runs

  • WHEN The command uv run pytest tests/config/test_decision_point_settings.py -k explore_stop runs.
  • THEN pytest reports at least one passed test and no failure.

Existing Tool Considered

No alternatives check has run. Pydantic is the open, maintained validation library already in use. It validates the mode values, but it lacks the fitted-cut precondition and the registry lookup. The project registry supplies the point and its fit bar. The change reuses the existing load_settings check and adds one settings test of about 30 lines: about 1,500 tokens to write, about 500 tokens a year to keep, and about 30 minutes of elapsed time. OpenFeature (https://github.com/open-feature/python-sdk) is an open, maintained feature-flag library, but it has no cuts file and no fitted-cut precondition.

Key questions

  • Is stage.explore_stop a registered decision point at this commit?: No. The registry holds alternatives.reply_fixable, brain.reference_relevance, implement.extension and stage.verify_screen. It does not hold stage.explore_stop. A key for stage.explore_stop stops the settings load as an unknown point. feat(roadmap): shadow the stage planner exploration stop #4399 must register the point first. [sources: src/devops_cli/roadmap/decision_registry.py, tests/config/test_decision_point_settings.py]
  • Which mode does stage.explore_stop take until its cut is fitted?: shadow. (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, openspec/specs/decision-workflows/spec.md]
    • Chosen: shadow. ADR 0020 gives the point shadow only. A new point starts in shadow, and its records supply the labelled data for the fit.
    • Rejected: off. It records no band data, so the point never gets a fitted cut.
    • Rejected: on. It runs before a fitted cut exists, which is the risk this item removes.
  • Where does the settings load refuse the mode on for a point with no fitted cut?: At settings load. load_settings raises ConfigurationError and names the point and the missing cuts file. The existing check refuses on for a registered point that requires a fit bar and has no cuts file. (best practice) [sources: src/devops_cli/config/settings.py, tests/config/test_decision_point_settings.py, openspec/specs/decision-workflows/spec.md]
    • Chosen: Typed error at settings load. It stops the wrong mode before a run and names the point and the missing cut.
    • Rejected: Rewrite on to shadow silently. The silent change hides the wrong setting from the person who set it.
    • Rejected: Accept on and check at run time. The point then runs with no fitted cut, which is the risk this item removes.
  • What is a fitted cut of a decision point?: A cut is the threshold of the point, stored as data in the repository. The file records the model, the date, the cases, the split and the numbers that gave it. A cut in a constant is a guess, and a test refuses it. [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, openspec/specs/decision-workflows/spec.md]
  • How does the settings load treat the mode shadow for a point without a fitted cut?: It accepts shadow for stage.explore_stop because the point has a model resolver and shadow records answers without a band. It still refuses shadow for a rule-only point without cuts, as test_mode_rule_loads_without_cuts_file_for_implement_extension shows. (best practice) [sources: tests/config/test_decision_point_settings.py, openspec/specs/decision-workflows/spec.md, 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]
    • Chosen: Accept shadow for a model point without cuts. Shadow records the model answers, and the record is the data for the later fit.
    • Rejected: Require cuts for shadow. The point cannot collect the shadow record that the fit needs.
    • Rejected: Accept shadow for every point without cuts. A rule-only point has no model answer to record, so its shadow mode has no purpose.
  • Where does the test of the point refusal go?: tests/config/test_decision_point_settings.py. (best practice) [sources: tests/config/test_decision_point_settings.py, openspec/specs/decision-workflows/spec.md]
    • Chosen: tests/config/test_decision_point_settings.py. The refusal happens at settings load, and this file holds the settings-load tests of the decision points.
    • Rejected: tests/roadmap/test_roadmap_decision_point.py. It tests the point and the chain, not the settings load.
  • Does the change need new runtime code?: No. The existing generic check in load_settings already refuses on for a registered point that requires a fit bar and has no cuts file. The change adds a settings test that names stage.explore_stop. feat(roadmap): shadow the stage planner exploration stop #4399 adds the registry entry and its fit bar. [sources: src/devops_cli/config/settings.py, tests/config/test_decision_point_settings.py, src/devops_cli/roadmap/decision_registry.py]
  • What happens when feat(roadmap): shadow the stage planner exploration stop #4399 is not delivered?: The settings load refuses stage.explore_stop as an unknown point. It does not reach the fitted-cut check. The issue waits for feat(roadmap): shadow the stage planner exploration stop #4399. [sources: src/devops_cli/roadmap/decision_registry.py, tests/config/test_decision_point_settings.py]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#4399, #6521

Watched files

A commit on the default branch that changes one of these files starts the next refine round.

  • src/devops_cli/roadmap/decision_registry.py

Activity

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

    @devops-cli-service
    ContributorAuthor

    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. The change protects a rollout mode but has no security or outage impact.
    • Value: Medium. It prevents an invalid on mode and gives a clear refusal to users.
    • Effort: Low. The change adds one registry refusal and one test after #4397 lands.
    • Related: feat(roadmap): shadow the stage planner exploration stop #4399, which asks for a different change. #4399 ships the shadow mode of stage.explore_stop, and the candidate adds the refusal of the on mode.
  3. changed the title [-]feat(roadmap): refuse the on mode of stage.explore_stop until a fitted cut exists[/-] [+]feat(roadmap): Refuse stage.explore_stop on mode without fitted cut[/+] on Nov 10, 2026
  4. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    ContributorAuthor

    The job shortened the title of this item. The summary had 66 characters, and the limit is 60. The type and the scope stay.

    • Before: feat(roadmap): refuse the on mode of stage.explore_stop until a fitted cut exists
    • After: feat(roadmap): Refuse stage.explore_stop on mode without fitted cut
    • Source of the summary: the background model
  5. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at e590fa3 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/config/settings.py.

  6. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 3180bf1 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.

  7. dan-petty commented on Nov 11, 2026

    @dan-petty
    Owner

    PR #4453 (for #4397) delivers the general rule that this item asks for. Registry.check in src/devops_cli/roadmap/decision_point.py refuses the mode on for each registered point whose cuts file is not in the repository. The settings run the check when they load roadmap.decisions, and the error names the point and the path of its cuts file. The mode shadow stays accepted.

    • test_the_registry_refuses_on_for_a_point_with_no_fitted_cuts asks for on for a point with no cuts file, gets the refusal with the point and the file, and then gets shadow accepted.
    • test_the_registry_accepts_on_for_a_point_with_fitted_cuts proves the case after a fit.

    When #4399 registers stage.explore_stop in src/devops_cli/roadmap/decision_registry.py with the path of its cuts file, the rule applies to it with no new code. What stays for this item: a test that names stage.explore_stop, after #4399 merges. PR #4453 does not close this item.

  8. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 9208717 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.

  9. dan-petty commented on Nov 15, 2026

    @dan-petty
    Owner

    Returned: #4399 is open with no branch, and stage.explore_stop is in neither src/devops_cli/roadmap/decision_registry.py nor the roadmap.decisions table, so the registry test that this item asks for names a point that does not exist. The general refusal is already in Registry.check, as the refine records. Add the test with #4399.

  10. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at ca62d6a 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_registry.py, src/devops_cli/roadmap/decision_table.py.

  11. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at b1c4892 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.

  12. dan-petty commented on Nov 20, 2026

    @dan-petty
    Owner

    Frozen on 2026-11-20. The stage, implement and fix-checks jobs grade under 60%, so the owner rule asks for a re-architecture before more fixes inside the current design (tracker #6519). This item is incremental work on those jobs, so its Dependencies section now names #6521 first. Stage and implement leave this item while #6521 is open. When the experiments of #6519 decide, a person closes #6521 (this item can then continue) or closes this item as not planned.

  13. devops-cli-service commented on Nov 20, 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.

  14. devops-cli-service commented on Nov 29, 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.

  15. dan-petty commented on Nov 30, 2026

    @dan-petty
    Owner

    Triage under #6519 (owner instruction of 2026-11-30), before the hold #6521 closes. This item adds or extends a gate, refusal, screen, cap, limit, retry, result line, shell allowlist, tool catalog or plan-shape rule of the stage, implement or fix-checks job. #6519 found that 263 of about 900 issues in four weeks added such rules and none replaced the engine. Stage now runs on stock Coder (grade 60 on 30 graded attempts), where the agent reads the repository, runs the checks in its loop and has a real shell; implement follows (#6527). The code paths that this item names have also moved. If the failure class still shows in graded attempts, file a new item from that evidence. Closed as not planned; a person may reopen it.

  16. removed
    status/new
    on Nov 30, 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/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions