Skip to content

feat(roadmap): register implement.extension with Jev in shadow #7381

Backlog

Description

@devops-cli-service

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_progress and safe_headroom, a non-empty evidence builder, the bands continue, review and flag, and the cuts path src/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, holds cases 0, and holds one cut for each of the questions making_progress and safe_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_modes with {"implement.extension": "shadow"} and the cuts file of the point
  • THEN check_modes returns 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_modes with {"implement.extension": "on"} and the start cuts
  • THEN check_modes raises ValueError and the message names implement.extension and 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 shadow with a stub rule that returns continue and a stub model that returns flag
  • THEN The record has the resolver rule, the band continue, the rule band continue and the model band flag, 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.band and record.model_band are Band members, and record.digest holds 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.py with ast and 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 docs runs 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 openspec runs on the pull request
  • THEN The check exits 0 and reports no error for the change's decision-workflows spec 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 k8s runs 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.decisions after setting the key
  • THEN The command prints a value that holds implement.extension at shadow and 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. REGISTRY lists implement.extension, and IMPLEMENT_EXTENSION holds the questions making_progress and safe_headroom, evidence=dict, the bands continue, review and flag, the cuts path src/devops_cli/roadmap/implement/implement_extension_cuts.json, the rule and asks_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.md cites ADR 0044 and says #7381 adds Jev in shadow beside the rule. ADR 0041 is OpenTofu 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.extension take at first?: shadow, with start cuts and cases: 0. The rule's band stands and Jev's band is recorded beside it. on waits 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_relevance show 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_modes refuses on for a fit-bar point with cases: 0.
  • Where do the cuts of the point live?: In src/devops_cli/roadmap/implement/implement_extension_cuts.json, named by DecisionPoint.cuts and by POINT_CUTS. The file is absent now, and tests/roadmap/test_roadmap_decision_table.py asserts 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 shadow ask Jev after the proven rule?: In shadow, the chain sends one model request after the rule answers, records model_band beside rule_band, and returns the rule's band and resolver. The workflow then acts as with off. (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_band and model_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 on with cases: 0, and the model has no data.
  • Where does the mode of a point live in the settings?: In the roadmap.decisions mapping. The default is {}, and the example ConfigMap sets stage.verify_screen: shadow under roadmap.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.md holds the bar and cites ADR 0044. The docs row runs uv run devops docs check, so uv run devops ci --check --only docs proves the document. The openspec row runs uv run devops openspec check, so uv run devops ci --check --only openspec proves 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.extension read?: The builder is dict. StepBudget._decision_state passes 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_answers and identical_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

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

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

    @devops-cli-service
    ContributorAuthor

    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.

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