Repository navigation
Description
Split from #5239.
The decision registry does not hold implement.extension. ADR 0020 gives the resolver chain, but only 1 of the 8 catalogue points is registered. Jev in shadow needs the point to run beside its rule, before the decision model answers alone. See ADR 0041, which supersedes ADR 0019 and ADR 0020, and issue #5239. Source: https://github.com/dan-petty/devops-cli/issues/5233. Why deferred: the registration is code work, not a record change. It needs a registry entry, its fixed questions, its evidence builder, its bands, a cuts file and a shadow mode in roadmap.decisions. Issue #5239 changes records, the catalogue, tests and citations only. Acceptance criteria: - The decision registry holds implement.extension with its fixed questions, its evidence builder, its bands and its cuts file. - The mode of implement.extension is shadow in roadmap.decisions, and the proven rule answers before Jev. - A test checks that the point returns a band and never a text. - docs/roadmap/decision-points.md holds the bar of implement.extension, written before the data. - A test refuses a module-level cut constant for implement.extension.
Proposed design
Problem statement
The point implement.extension is already in the decision registry, but it has no cuts file and its chain never asks Jev in shadow. This item adds start cuts, makes shadow ask the model after the rule and record both bands, sets the point to shadow in the settings, and updates the bar document. The registry entry and the fit-bar refusal of on already exist.
Acceptance criteria
Requirement: Registry entry of the point
The decision registry SHALL expose implement.extension with its fixed questions, evidence builder, bands and cuts path.
Scenario: The registry returns the point
- WHEN A test reads
REGISTRY.point("implement.extension") - THEN The point has the questions
making_progressandsafe_headroom, a non-empty evidence builder, the bandscontinue,reviewandflag, and the cuts pathsrc/devops_cli/roadmap/implement/implement_extension_cuts.json.
Requirement: Cuts file of the point
The point implement.extension SHALL read its start cuts from src/devops_cli/roadmap/implement/implement_extension_cuts.json.
Scenario: The start cuts load
- WHEN A test loads the cuts file of the point with
Thresholds.load - THEN The result names the step
implement.extension, holdscases0, and holds one cut for each of the questionsmaking_progressandsafe_headroom.
Requirement: Shadow mode loads
The settings SHALL accept the mode shadow for the point implement.extension when its cuts file exists.
Scenario: Shadow loads with the start cuts
- WHEN A test calls
check_modeswith{"implement.extension": "shadow"}and the cuts file of the point - THEN
check_modesreturns with no error.
Requirement: On waits for the fit bar
The settings MUST refuse the mode on for implement.extension until its cuts pass the fit bar.
Scenario: On is refused with zero cases
- WHEN A test calls
check_modeswith{"implement.extension": "on"}and the start cuts - THEN
check_modesraisesValueErrorand the message namesimplement.extensionand the fit bar.
Requirement: The rule band stands beside the model band
In the mode shadow, the resolver chain SHALL return the band of the proven rule and SHALL record the band of the decision model.
Scenario: The rule answers and the model is still asked
- WHEN A test resolves the point in
shadowwith a stub rule that returnscontinueand a stub model that returnsflag - THEN The record has the resolver
rule, the bandcontinue, the rule bandcontinueand the model bandflag, and the stub model got one request.
Requirement: A band is never a text
A decision of implement.extension SHALL hold a band of the closed set and MUST NOT hold a text.
Scenario: The record holds bands
- WHEN A test resolves the point with a stub model that answers each question
- THEN
record.bandandrecord.model_bandareBandmembers, andrecord.digestholds the counts with no text.
Requirement: No module-level cut constant
The module that holds implement.extension MUST NOT hold a cut as a module-level name.
Scenario: A module-level cut constant is refused
- WHEN A test parses
src/devops_cli/roadmap/implement/implement_limits.pywithastand lists each module-level name - THEN No module-level name equals the name of a cut in the cuts file of the point.
Requirement: The bar in the document
docs/roadmap/decision-points.md SHALL state the bar of implement.extension and that the point starts in shadow.
Scenario: The docs check passes
- WHEN
uv run devops ci --check --only docsruns on the pull request - THEN The check exits 0 and reports no error for
docs/roadmap/decision-points.md.
Requirement: The spec delta holds the bar before the data
The change's decision-workflows spec delta SHALL state the shadow rule and the fit bar of implement.extension before the cuts data.
Scenario: The openspec check passes
- WHEN
uv run devops ci --check --only openspecruns on the pull request - THEN The check exits 0 and reports no error for the change's
decision-workflowsspec delta.
Requirement: The example ConfigMap names the shadow mode
The example ConfigMap SHALL set implement.extension to shadow under roadmap.decisions.
Scenario: The k8s check passes
- WHEN
uv run devops ci --check --only k8sruns on the pull request - THEN The check exits 0 and reports no error for
k8s/devops/configmap.example.yaml.
Requirement: Pending a person after the merge
A person SHALL set the mode of implement.extension to shadow in the live devops-cli-config ConfigMap after the merge.
Scenario: The live settings name the shadow mode
- WHEN A person runs
kubectl -n devops exec deploy/mcp-server -- devops config get roadmap.decisionsafter setting the key - THEN The command prints a value that holds
implement.extensionatshadowand exits 0.
Existing Tool Considered
No alternatives check has run. pydantic-ai already supplies DecisionModel and the project uses it for the decision model, but it lacks this project's registry entry, cuts file, bands and shadow chain. The change builds that project code. Cost to build, keep and fix it: about 12,000 output tokens, about 2,000 tokens a year, and 1 day elapsed.
Key questions
- Does the decision registry already hold
implement.extension?: Yes.REGISTRYlistsimplement.extension, andIMPLEMENT_EXTENSIONholds the questionsmaking_progressandsafe_headroom,evidence=dict, the bandscontinue,reviewandflag, the cuts pathsrc/devops_cli/roadmap/implement/implement_extension_cuts.json, the rule andasks_model=True. The premise of the issue that the registry does not hold the point is stale. [sources: src/devops_cli/roadmap/decision_registry.py, src/devops_cli/roadmap/implement/implement_limits.py, docs/roadmap/decision-points.md] - Which record gives the resolver chain and the shadow mode?: ADR 0044,
The decision model holds rules and a resolver chain, is the record in force.docs/roadmap/decision-points.mdcites ADR 0044 and says#7381adds Jev inshadowbeside the rule. ADR 0041 isOpenTofu holds the repository settings, so it does not supersede ADR 0019 or ADR 0020. [sources: docs/adr/0044-the-decision-model-holds-rules-and-a-resolver-chain.md, docs/adr/0041-opentofu-holds-the-repository-settings.md, docs/roadmap/decision-points.md] - Which mode does
implement.extensiontake at first?:shadow, with start cuts andcases: 0. The rule's band stands and Jev's band is recorded beside it.onwaits for the fit bar. (best practice) [sources: docs/roadmap/decision-points.md, src/devops_cli/roadmap/references/reference_relevance_cuts.json, src/devops_cli/roadmap/decision_table.py]- Chosen: shadow. ADR 0044 and the catalogue start the point in shadow, and the start cuts of
brain.reference_relevanceshow the shape that loads before data. - Rejected: off. Off gives no shadow record and no agreement data for the rule and the model.
- Rejected: rule. Rule mode records no model band beside the rule and asks the model only when the rule defers.
- Rejected: on.
check_modesrefusesonfor a fit-bar point withcases: 0.
- Chosen: shadow. ADR 0044 and the catalogue start the point in shadow, and the start cuts of
- Where do the cuts of the point live?: In
src/devops_cli/roadmap/implement/implement_extension_cuts.json, named byDecisionPoint.cutsand byPOINT_CUTS. The file is absent now, andtests/roadmap/test_roadmap_decision_table.pyasserts that it is absent. [sources: src/devops_cli/roadmap/implement/implement_limits.py, src/devops_cli/roadmap/decision_table.py, tests/roadmap/test_roadmap_decision_table.py] - How does
shadowask Jev after the proven rule?: Inshadow, the chain sends one model request after the rule answers, recordsmodel_bandbesiderule_band, and returns the rule's band and resolver. The workflow then acts as withoff. (best practice) [sources: src/devops_cli/roadmap/decision_point.py, src/devops_cli/roadmap/implement/implement_limits.py, docs/roadmap/decision-points.md]- Chosen: Rule answers and the model is still asked in shadow. The issue requires Jev beside the rule, and the record already holds
rule_bandandmodel_band. - Rejected: Rule answers and no model request. That is the base behavior and it gives no shadow data beside the rule.
- Rejected: Model answers alone in shadow. The issue says the proven rule answers before Jev, and the model has no fitted cuts.
- Rejected: Set the point to on. The fit bar refuses
onwithcases: 0, and the model has no data.
- Chosen: Rule answers and the model is still asked in shadow. The issue requires Jev beside the rule, and the record already holds
- Where does the mode of a point live in the settings?: In the
roadmap.decisionsmapping. The default is{}, and the example ConfigMap setsstage.verify_screen: shadowunderroadmap.decisions. [sources: src/devops_cli/config/settings.py, tests/config/test_decision_point_settings.py, k8s/devops/configmap.example.yaml] - Which document holds the bar, and which check proves it?:
docs/roadmap/decision-points.mdholds the bar and cites ADR 0044. Thedocsrow runsuv run devops docs check, souv run devops ci --check --only docsproves the document. Theopenspecrow runsuv run devops openspec check, souv run devops ci --check --only openspecproves the change's spec delta. [sources: docs/roadmap/decision-points.md, src/devops_cli/commands/ci.py, openspec/specs/decision-workflows/spec.md] - Which evidence does the builder of
implement.extensionread?: The builder isdict.StepBudget._decision_statepasses numeric counts:used,step,hard_ceiling,window_share, the remaining step and item seconds, the remaining item tokens, the item token margin,min_calls,calls,edits,identical_call_answersandidentical_failing_calls. It reads counts only, so the record may hold the digest. [sources: src/devops_cli/roadmap/implement/implement_limits.py]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 27, 2026
Both register a specific decision point with Jev in shadow, but the candidate targets implement.extension while #5897 targets the refine judge fixable point.devops-cli-service commentedon Nov 28, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
devops-cli-service commentedon Nov 29, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.