Repository navigation
Description
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
- chore(roadmap): hold incremental stage and implement work #6521 (hold: incremental work on the stage, implement and fix-checks jobs waits for the re-architecture)
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.decisionsset to{"stage.explore_stop": "on"}and callsload_settingswhile the point has no cuts file. - THEN
load_settingsraisesConfigurationError, and the message containsstage.explore_stopand 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.decisionsset to{"stage.explore_stop": "shadow"}and callsload_settingswhile the point has no cuts file. - THEN
load_settingsreturns settings whoseroadmap.decisionsis{"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_stopruns. - 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_stopa registered decision point at this commit?: No. The registry holdsalternatives.reply_fixable,brain.reference_relevance,implement.extensionandstage.verify_screen. It does not holdstage.explore_stop. A key forstage.explore_stopstops 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_stoptake 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
shadowonly. 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.
- Chosen: shadow. ADR 0020 gives the point
- Where does the settings load refuse the mode
onfor a point with no fitted cut?: At settings load.load_settingsraisesConfigurationErrorand names the point and the missing cuts file. The existing check refusesonfor 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
shadowfor a point without a fitted cut?: It acceptsshadowforstage.explore_stopbecause the point has a model resolver and shadow records answers without a band. It still refusesshadowfor a rule-only point without cuts, astest_mode_rule_loads_without_cuts_file_for_implement_extensionshows. (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_settingsalready refusesonfor a registered point that requires a fit bar and has no cuts file. The change adds a settings test that namesstage.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_stopas 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
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
devops-cli-service commentedon Nov 10, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.The change protects a rollout mode but has no security or outage impact.It prevents an invalid on mode and gives a clear refusal to users.The change adds one registry refusal and one test after #4397 lands.#4399 ships the shadow mode of stage.explore_stop, and the candidate adds the refusal of the on mode.[-]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[/+]devops-cli-service commentedon Nov 10, 2026
The job shortened the title of this item. The summary had 66 characters, and the limit is 60. The type and the scope stay.
feat(roadmap): refuse the on mode of stage.explore_stop until a fitted cut existsfeat(roadmap): Refuse stage.explore_stop on mode without fitted cutdevops-cli-service commentedon Nov 10, 2026
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.devops-cli-service commentedon Nov 11, 2026
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.
dan-petty commentedon Nov 11, 2026
PR #4453 (for #4397) delivers the general rule that this item asks for.
Registry.checkinsrc/devops_cli/roadmap/decision_point.pyrefuses the modeonfor each registered point whose cuts file is not in the repository. The settings run the check when they loadroadmap.decisions, and the error names the point and the path of its cuts file. The modeshadowstays accepted.test_the_registry_refuses_on_for_a_point_with_no_fitted_cutsasks foronfor a point with no cuts file, gets the refusal with the point and the file, and then getsshadowaccepted.test_the_registry_accepts_on_for_a_point_with_fitted_cutsproves the case after a fit.When #4399 registers
stage.explore_stopinsrc/devops_cli/roadmap/decision_registry.pywith the path of its cuts file, the rule applies to it with no new code. What stays for this item: a test that namesstage.explore_stop, after #4399 merges. PR #4453 does not close this item.devops-cli-service commentedon Nov 12, 2026
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.
dan-petty commentedon Nov 15, 2026
Returned: #4399 is open with no branch, and
stage.explore_stopis in neithersrc/devops_cli/roadmap/decision_registry.pynor theroadmap.decisionstable, so the registry test that this item asks for names a point that does not exist. The general refusal is already inRegistry.check, as the refine records. Add the test with #4399.devops-cli-service commentedon Nov 15, 2026
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.devops-cli-service commentedon Nov 16, 2026
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.
dan-petty commentedon Nov 20, 2026
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.
devops-cli-service commentedon Nov 20, 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 29, 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.
dan-petty commentedon Nov 30, 2026
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.