Skip to content

fix(roadmap): decision points need cuts for shadow and run in async code #5272

Closed

Description

@dan-petty

Problem Description

The decision point framework of ADR 0020 has four gaps. They make shadow data weak, make a point crash inside an event loop, and stop the registration of the full catalogue. The decision-model study of 2026-11-12 found them on origin/main 5645b63. #5206 found the first three for the command gate.

  1. Shadow loads with no cuts file. check_modes (src/devops_cli/roadmap/decision_table.py:33-47) refuses the mode on when the cuts file of a point is not in the repository. It does not refuse shadow. In shadow, ResolverChain._resolve gets the answers of the model, and then Thresholds.load raises FileNotFoundError. That error is an OSError in FAILED, so each decision becomes resolver="fallback" with the band none. The record keeps the answers, but the band and the counter show only the fallback. A missing file then looks the same as a failed request.
  2. decide raises inside an event loop. ResolverChain.decide calls decide_all, and decide_all calls asyncio.run (src/devops_cli/roadmap/decision_step.py:207). Inside a running event loop, for example a pydantic-ai agent run or a tool hook, asyncio.run raises RuntimeError. RuntimeError is not in FAILED (decision_step.py:66-74). So decide raises, although its docstring says that it never raises an error of the model.
  3. No duration and no failure class. A decision record holds no time, and no metric gives the time of a decision. An error, a timeout, a reply that does not parse, a secret in the digest and a missing cuts file all count as resolver="fallback" on devops_cli_decision_point_total, with no class. So the p95 time of a point and its share of failed requests are not known. Today the only times come from the gateway: about 3,373 Jev requests in 7 days, p95 0.40 s (litellm_request_total_latency_metric{model="typesafe/jev-1.14"}).
  4. The series bound is behind the ADR. CONST_ROADMAP_DECISION_POINT_MAX_SERIES is 60 (src/devops_cli/config/constants.py:3816). ADR 0020 section 7, as docs(adr): add the resolve, group, split and step rows #4792 and ADR 0023 amend it, gives at most 92 series: 60 for the first catalogue, 24 for the three brain.* points of ADR 0023, and 8 for resolve.question_class. Registry.__init__ raises when the count is more than the constant (src/devops_cli/roadmap/decision_point.py:413). So the import of decision_registry fails when the catalogue is registered.

Reproduction Steps

  1. Load the settings with roadmap.decisions: {"stage.verify_screen": "shadow"} and point POINT_CUTS at a path that does not exist. The settings load. Each decision is a fallback.
  2. In a test, call chain.decide(given, subject=1) from inside a coroutine that asyncio.run runs, with a fake decision model. The call raises RuntimeError: asyncio.run() cannot be called from a running event loop.
  3. Build Registry with points that hold 61 to 92 series. It raises ValueError.

Expected vs Actual Behavior

Gap Expected Actual
1 shadow needs a cuts file in the repository: a fitted file, or a prior file that #5239 allows in shadow only. shadow loads with no file, and every decision is a fallback.
2 decide works from a thread with a running loop. Any error of the chain gives the fallback. RuntimeError escapes decide.
3 A histogram gives the time of each decision, and a counter gives each failed request by class. Neither exists.
4 The bound is the 92 series of ADR 0020 section 7. The bound is 60.

Proposed fix

  • check_modes: refuse shadow and on for a point whose cuts file is not in the repository. The error names the point and the path.
  • decide: send the requests on the anyio blocking portal that decide_with_jev already uses (src/devops_cli/ai/jev.py:182), not through asyncio.run. Add adecide, which awaits _decide_gathered, for a caller that runs in an event loop. feat(roadmap): ask Jev if a command off the lists is dangerous, in shadow #5206 then uses the framework method and adds no second one.
  • Add the histogram devops_cli_decision_point_duration_seconds (labels point and resolver) and the counter devops_cli_decision_point_failed_total (labels point and error, with a fixed set: timeout, model_error, parse, secret, no_cuts, model_mismatch, other). A test bounds the series of both.
  • Record response.model_name, the dated model that answered, in the decision record. When the model of the cuts file differs from ai.decision_model, give the fallback (band none) before any request, and count the class model_mismatch (owner approval, comment of 2026-11-12 23:41Z).
  • Set CONST_ROADMAP_DECISION_POINT_MAX_SERIES to 92. The comment gives the reason: ADR 0020 section 7 allows 60 + 24 + 8 series.
  • Amend ADR 0020 section 7 to name the two new instruments, and update docs/TELEMETRY.md and docs/CONFIGURATION.md (shadow needs a cuts file).

Files: src/devops_cli/roadmap/decision_table.py, decision_point.py, decision_step.py; src/devops_cli/config/constants.py; src/devops_cli/telemetry/instruments.py; src/devops_cli/lang/en/messages.py; ADR 0020; docs/TELEMETRY.md; docs/CONFIGURATION.md; tests/roadmap/test_roadmap_decision_point.py; tests/config/test_decision_point_settings.py.

Environment Diagnostics

origin/main 5645b63. The live ConfigMap sets ai.decision_model: typesafe/jev-1.14 and roadmap.decisions: {"stage.verify_screen": "shadow"}. stage.verify_screen has a cuts file, so gap 1 has no live effect today. It affects each new point that starts in shadow.

Existing Tool Considered

anyio BlockingPortal (already a dependency; ai/jev.py uses it) and the project instruments (telemetry/instruments.py, which has histograms). No new tool. Cost: about 0.4M tokens and 3 hours.

Acceptance Criteria

  1. uv run devops ci fail-to-pass --base origin/main shows tests that fail on main and pass on the branch:
    • Settings with shadow for a point with no cuts file stop the load, and the error names the point and the path.
    • decide, called inside a running event loop with a fake decision model, gives a model decision. With a model that raises RuntimeError, it gives the fallback.
    • One decision adds one sample to the duration histogram. A timeout adds one count with error="timeout".
    • A registry of 92 series loads, and a registry of 93 series raises.
    • A cuts file of model A with ai.decision_model set to model B gives the fallback, and the failed counter holds model_mismatch. A reply that names a dated model puts that dated name in the decision record.
  2. No test holds the number 60 for the bound; each bound test reads the constant.

Related

Source: https://github.com/dan-petty/devops-cli/blob/main/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

Proposed design

Problem statement

The decision point framework of ADR 0020 has four gaps. A point in shadow loads with no cuts file, so each decision becomes a fallback. decide raises RuntimeError inside a running event loop. A decision records no time and no failure class. The registry refuses a catalogue above 60 series, while ADR 0020 section 7 allows 92. The review of the decision-model documents adds a fifth gap: the record stores the configured model name, not the dated model that answered.

Acceptance criteria

Requirement: A shadow point needs a cuts file

check_modes SHALL refuse the mode shadow for a point whose cuts file is not in the repository, as it refuses on.

Scenario: Shadow with no cuts file

  • WHEN The settings name shadow for a point whose cuts file is not in the repository.
  • THEN The settings load stops with an error that names the point and the path.

Requirement: A decision runs on the blocking portal

ResolverChain.decide SHALL send its request on the anyio blocking portal and SHALL NOT call asyncio.run.

Scenario: A decision inside a running loop

  • WHEN A test calls chain.decide from a coroutine that asyncio.run runs, with a fake decision model.
  • THEN The call returns a model decision and raises no RuntimeError.

Requirement: A chain error gives the fallback

ResolverChain.decide SHALL return the fallback when the chain raises any error, and SHALL NOT raise it to the caller.

Scenario: A model that raises RuntimeError

  • WHEN The decision model raises RuntimeError inside the event loop.
  • THEN decide returns the fallback with the band none, and the failed counter holds the class other.

Requirement: An async caller awaits the decision

The chain SHALL give adecide, which awaits the gathered request, for a caller that runs in an event loop.

Scenario: A caller awaits adecide

  • WHEN A coroutine awaits chain.adecide(given, subject=1).
  • THEN It returns the decision of the model and uses no blocking portal.

Requirement: Each decision adds its duration

Each decision SHALL add one observation to devops_cli_decision_point_duration_seconds, with the labels point and resolver.

Scenario: One decision, one sample

  • WHEN A point decides one case.
  • THEN The duration histogram holds one sample for that point and resolver.

Requirement: Each failed request counts by class

Each failed request SHALL add one to devops_cli_decision_point_failed_total, with the labels point and error from the fixed set.

Scenario: A timeout

  • WHEN The decision model times out.
  • THEN The counter adds one count with error="timeout".

Requirement: The new instruments stay within the bound

A point SHALL add at most 3 series to the duration histogram and at most 7 to the failed counter.

Scenario: The series of the new instruments

  • WHEN A test builds the full catalogue and counts the label sets of the two new instruments.
  • THEN Each point has at most 3 duration series and 7 failed series.

Requirement: The series bound is 92

CONST_ROADMAP_DECISION_POINT_MAX_SERIES SHALL be 92.

Scenario: The bound of ADR 0020 section 7

  • WHEN A test reads CONST_ROADMAP_DECISION_POINT_MAX_SERIES.
  • THEN The value is 92.

Requirement: A registry at the bound loads and above it raises

Registry SHALL accept a catalogue of 92 series and SHALL raise a ValueError for a catalogue above 92 series.

Scenario: The catalogue at the bound

  • WHEN A test builds a registry of 92 series and a registry of more than 92 series.
  • THEN The first registry loads and the second raises a ValueError.

Requirement: A bound test reads the constant

Each test of the series bound SHALL read CONST_ROADMAP_DECISION_POINT_MAX_SERIES and SHALL NOT hold the number 60.

Scenario: The bound test at 92

  • WHEN The bound test builds a catalogue above the constant.
  • THEN The size of the catalogue comes from the constant, and the test passes at 92.

Requirement: The record holds the dated model name

The decision record SHALL hold response.model_name, the dated snapshot that served the request.

Scenario: A reply names its dated model

  • WHEN The decision model answers with the model name typesafe/jev-1.14-20261014.
  • THEN The record holds that dated name, not the configured name.

Requirement: A cuts file of another model gives the fallback

The chain SHALL give the fallback when the model of the cuts file differs from the model in use.

Scenario: Cuts of model A, model B in use

  • WHEN The cuts file names model A and ai.decision_model names model B.
  • THEN The decision is the fallback with the band none, and the failed counter holds model_mismatch.

Requirement: The settings description names the shadow rule

The description of roadmap.decisions SHALL state that a shadow point needs a cuts file.

Scenario: The description of the setting

  • WHEN A test reads the description of the roadmap.decisions field.
  • THEN The description names shadow and says that a point in shadow needs a cuts file.

Requirement: The amended ADR keeps a valid body hash

The amended ADR 0020 SHALL hold a body-hash that matches its new body.

Scenario: The body hash of the ADR

  • WHEN A test reads ADR 0020 and computes the hash of its body.
  • THEN The hash in the front matter matches the body.

Existing Tool Considered

No alternatives check has run. The need is covered by anyio's BlockingPortal, which is already a dependency and which src/devops_cli/ai/jev.py uses, and by the project's own instruments in src/devops_cli/telemetry/instruments.py. BlockingPortal lacks a non-blocking entry for a caller that is already in an event loop, so the change adds adecide. No new dependency. Cost of the code that remains: about 0.4M tokens and 3 hours.

Key questions

  • Which async bridge runs the gathered decision request from a sync caller?: anyio's blocking portal, which decide_with_jev already uses. (best practice) [sources: src/devops_cli/ai/jev.py, src/devops_cli/roadmap/decision_step.py]
    • Rejected: asyncio.run. It raises RuntimeError inside a running event loop.
    • Chosen: anyio BlockingPortal. It runs the coroutine on a new loop in a new thread, and the project already uses it.
    • Rejected: A new thread with asyncio.new_event_loop. It duplicates the portal that anyio gives.
  • Does decide catch every exception of the chain, or only the errors in FAILED?: It catches Exception and gives the fallback, and an error outside the fixed classes counts as other. (best practice) [sources: src/devops_cli/roadmap/decision_step.py]
    • Rejected: Add RuntimeError to FAILED. The next unlisted error escapes again, and the docstring promises that no error escapes.
    • Chosen: Catch Exception and classify an unlisted error as other. The contract holds for every error, and the counter names the class.
  • Which model does the cuts check compare: the configured model or the model that answered?: The configured model, before the request. The record holds the dated model that answered. (best practice) [sources: src/devops_cli/roadmap/decision_point.py]
    • Chosen: Compare the configured model before the request. A mismatch gives the fallback with no request to a model that the cuts do not cover.
    • Rejected: Compare the answered model after the request. It spends a request on a model that the cuts do not cover.
  • What bound do the two new instruments have?: A point adds at most 3 duration series and at most 7 failed series. (best practice) [sources: src/devops_cli/roadmap/decision_point.py, src/devops_cli/telemetry/instruments.py]
    • Chosen: Bound each point at 3 and 7 series. The 92 series of the catalogue then bound the total of the new instruments.
    • Rejected: Give the new instruments no bound. An unbounded label set breaks the series budget of the registry.
  • Does the shadow check accept a prior cuts file that docs(adr): one decision-model record supersedes ADR 0019 and ADR 0020 #5239 allows?: The check reads one path for each point, POINT_CUTS[name], and it refuses shadow when that file is absent. The code holds no prior path; docs(adr): one decision-model record supersedes ADR 0019 and ADR 0020 #5239 adds that path. [sources: src/devops_cli/roadmap/decision_table.py]
  • Does the change record the dated model name and refuse the cuts of another model?: Yes. The record holds response.model_name, and a cuts file whose model differs from ai.decision_model gives the fallback with the class model_mismatch. (best practice) [sources: src/devops_cli/roadmap/decision_point.py, src/devops_cli/roadmap/decision_step.py]
    • Rejected: Keep the configured name only. Another System One model silently uses the jev-1.14 cuts.
    • Chosen: Record the dated name and compare the cuts model. The owner approved it, and the dated name shows which snapshot answered.
  • Why is the series bound 92 and not 60?: ADR 0020 section 7 allows 60 series for the first catalogue, 24 for the three brain.* points of ADR 0023 and 8 for resolve.question_class. [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/config/constants.py]
  • Which file holds the text of the roadmap.decisions row in docs/CONFIGURATION.md?: src/devops_cli/config/settings.py holds the field description, and the docs check regenerates the row from it. [sources: docs/CONFIGURATION.md, src/devops_cli/config/settings.py]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/high
    effort/medium
    on Nov 12, 2026
  2. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
    • Priority: P1-High. Gap 4 blocks registration of the full catalogue and gap 2 crashes inside a running event loop.
    • Related: feat(roadmap): add the soft-cap and fix-check chain to decision points #4847, which asks for a different change. Both work on the decision point framework and note the async-safety gap and the 60-series bound, but the candidate fixes those gaps while #4847 adds a soft-cap and fix-check chain.
  3. added
    priority/p1-high
    on Nov 12, 2026
  4. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    Scope addition from the decision-model docs review of 2026-11-12. The owner approved it on 2026-11-12.

    The documents say:

    Now: we pin typesafe/jev-1.14, which is correct. But the decision record stores the configured model name, not response.model_name (the dated id, for example typesafe/jev-1.14-20261014). Thresholds.model is loaded but never compared with ai.decision_model or with the model that answered (src/devops_cli/roadmap/decision_point.py:238-293,311). So another System One model silently uses the jev-1.14 cuts.

    Add to this item:

    1. Record response.model_name (the dated snapshot) in the decision record.
    2. When the model of the cuts file does not match the model in use, give the fallback (no band). Count it with its own failure class.
    3. A test: cuts for model A and a configured model B give the fallback, and the record holds the dated model name of the reply.
  5. added
    status/ready
    and removed
    status/new
    on Nov 13, 2026
  6. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 7a158c4 (see proposed design in issue body).

  7. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Staged: branch fix/5272-decision-points-need-cuts-for-shadow, draft pull request #5390. The pull request plans the item and closes no issue.

    The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:

    1. Refuse shadow for a point with no cuts file: 21305 tokens
    2. Name the shadow rule in the setting description: 21536 tokens
    3. Declare the duration histogram and the failed counter: 51839 tokens
    4. Send the decision requests on the Jev portal: 32219 tokens
    5. Answer a chain decision inside a running event loop: 22226 tokens
    6. Give the fallback for every error and count its class: 37289 tokens
    7. Record the dated model that answered: 22247 tokens
    8. Add the duration of each decision: 22248 tokens
    9. Raise the series bound to 92: 30370 tokens
    10. Name the new bound in the table of roadmap limits: 28229 tokens
    11. Regenerate the configuration and variable documents: 33244 tokens
    12. Record the instruments in the Status History of ADR 0020: 35327 tokens

    A model review of the plan found these open findings. The stage keeps this pull request a draft with the label plan/needs-fix until a later round clears them:

    • criterion_dropped at specs (decision-workflows) and decision 14: The issue's acceptance criteria require the chain to give the fallback when the cuts file names another model than the one in use, and the plan deliberately drops that requirement: no group and no spec delta of the plan holds a task or a scenario for it. Evidence: "The chain SHALL give the fallback when the model of the cuts file differs from the model in use."

    A model review of the plan found these points. They stop no draft, and a person judges them:

    • verify_form at group 11: Group 11 sets the real ADR 0020 body-hash, but its verify runs tests/docs/test_docs_adr_records.py, which builds synthetic records and never reads the ADR directory, so the group's change is unchecked. The repository's check of the real records is tests/invariants/test_adr_records.py. Evidence: "uv run devops ci test tests/invariants/test_adr_records.py gives the hash of the body when the front matter has none."
    • false_premise at group 11: Group 11 edits the body of ADR 0020, whose front matter says status: accepted, and recomputes body-hash. The repository's ADR rules forbid editing the body of an accepted record; the change must add a Status History line or a new record that amends 0020, not rewrite section 7 in place. Evidence: "An agent never edits the body of an accepted record."
    • criterion_dropped at groups 6 and 7: No task tests the timeout class: group 6 tests only the other class and group 7 tests only the duration sample, so the counter's timeout class has no test although the issue's acceptance criteria name it. Evidence: "A timeout adds one count with error="timeout"."
    • criterion_dropped at group 5: No task calls decide from inside a running event loop and asserts a model decision: group 5 tests adecide and group 6 tests decide only with a model that raises, so the success path of the criterion is untested. Evidence: "decide, called inside a running event loop with a fake decision model, gives a model decision."
    • criterion_dropped at decisions and specs: The issue's refine block states a fifth gap and an acceptance criterion that the record hold the dated model that answered, but the plan keeps the configured model name and gives the criterion no task and no spec requirement. Evidence: "The decision record SHALL hold response.model_name, the dated snapshot that served the request."
    • missing_path at group 11: Group 2 changes the description of the roadmap.decisions field, but the generated docs/ENV_VARS.md row holds the same description and no group regenerates or edits it. The docs check in group 11 therefore reports a generated document that differs from its source. Evidence: "| DEVOPS_CLI_ROADMAP_DECISIONS | roadmap.decisions | No | The mode of each decision point of the roadmap jobs (ADR 0020), by the name of the point, as a JSON object such as {"stage.verify_screen": "shadow"}."
    • contrived_test at group 8: The test counts the label sets that one successful run emits. A run with no failure writes no series of the failed counter, so the assertion of at most six series passes whatever the class set of the code holds. Evidence: "the second runs one point in both modes with the rule, the model and the fallback and counts the label sets of both instruments"
    • other at group 1: Group 1 tests check_modes with a fabricated cuts table whose point is not registered and never loads the settings, so the criterion that the settings load stops is shown at the level of the helper only, not as the issue states it. Evidence: "Settings with shadow for a point with no cuts file stop the load, and the error names the point and the path."
    • other at group 3 (and the row edit of group 9): The plan edits docs/TELEMETRY.md by hand, but that page is generated from INSTRUMENTS by generate_telemetry_docs, so the docs gate refuses a hand-written row that differs from the generator output; the plan regenerates docs/CONFIGURATION.md and docs/ENV_VARS.md in group 11 but never regenerates this page, and group 3's verify runs only the telemetry test. Evidence: "docs/TELEMETRY.md is generated by generate_telemetry_docs in src/devops_cli/docs/generator.py from INSTRUMENTS, so the document needs no hand edit."
    • other at dependencies and group 12: The plan amends ADR 0020 and narrows the shadow rule without listing open docs(adr): one decision-model record supersedes ADR 0019 and ADR 0020 #5239, which supersedes ADR 0019 and ADR 0020 and allows a prior cuts file in shadow; if docs(adr): one decision-model record supersedes ADR 0019 and ADR 0020 #5239 merges first, group 12 amends a superseded record and group 1 refuses the prior file that docs(adr): one decision-model record supersedes ADR 0019 and ADR 0020 #5239 allows. Evidence: "docs(adr): one decision-model record supersedes ADR 0019 and ADR 0020 #5239 open docs(adr): one decision-model record supersedes ADR 0019 and ADR 0020"

    The runs of the planner and the review made 153 model request(s), and used 12552691 input tokens and 303588 output tokens. The tool calls, in order:

    1. read_file({"path":"src/devops_cli/roadmap/decision_table.py"})
    2. file_symbols({"path":"src/devops_cli/roadmap/decision_step.py"})
    3. read_file({"path":"src/devops_cli/roadmap/decision_step.py","start_line":1,"end_line":260})
    4. read_file({"path":"src/devops_cli/roadmap/decision_step.py","start_line":200,"end_line":240})
    5. file_symbols({"path":"src/devops_cli/roadmap/decision_point.py"})
    6. read_file({"path":"src/devops_cli/roadmap/decision_point.py","start_line":1,"end_line":160})
    7. read_file({"end_line":440,"path":"src/devops_cli/roadmap/decision_point.py","start_line":157})
    8. read_file({"end_line":442,"path":"src/devops_cli/roadmap/decision_point.py","start_line":400})
    9. read_file({"end_line":3940,"path":"src/devops_cli/config/constants.py","start_line":3900})
    10. search_code({"text":"DECISION_POINT_TOTAL"})
    11. search_code({"text":"decision_point_unfitted"})
    12. search_code({"text":"devops_cli_decision_point_total"})
    13. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":5500,"end_line":5560})
    14. search_code({"text":"DECISION_POINT_TOTAL"})
    15. search_code({"text":"Histogram("})
    16. search_code({"text":"DECISION_POINT"})
    17. read_file({"path":"src/devops_cli/telemetry/instruments.py","start_line":1,"end_line":120})
    18. search_code({"text":"DECISION_POINT_TOTAL = Instrument"})
    19. search_code({"text":"INSTRUMENTS"})
    20. read_file({"path":"src/devops_cli/telemetry/instruments.py","start_line":355,"end_line":420})
    21. read_file({"path":"src/devops_cli/ai/jev.py","start_line":150,"end_line":230})
    22. read_spec({"capability":"decision-workflows"})
    23. read_spec({"capability":"decision-steps"})
    24. read_spec({"capability":"decision-workflows","requirement":"The registry bounds the series of its catalogue"})
    25. read_spec({"capability":"decision-workflows","requirement":"The settings check the modes without the points"})
    26. read_spec({"capability":"decision-workflows","requirement":"A point fails back"})
    27. read_spec({"capability":"decision-steps","requirement":"Decision requests use one event loop and a time limit"})
    28. read_spec({"capability":"decision-workflows","requirement":"One bounded metric counts the decisions"})
    29. read_spec({"capability":"metric-instruments","requirement":"The step seconds histogram and the gate refusal counter are declared and documented"})
    30. file_symbols({"path":"tests/roadmap/test_roadmap_decision_point.py"})
    31. file_symbols({"path":"tests/config/test_decision_point_settings.py"})
    32. read_file({"path":"tests/roadmap/test_roadmap_decision_point.py","start_line":255,"end_line":360})
    33. read_file({"path":"tests/config/test_decision_point_settings.py","start_line":1,"end_line":130})
    34. read_file({"end_line":70,"path":"tests/roadmap/test_roadmap_limit_classes.py","start_line":1})
    35. file_symbols({"path":"tests/roadmap/test_roadmap_decision_step.py"})
    36. search_code({"text":"check_modes"})
    37. search_code({"text":"CONST_ROADMAP_DECISION_POINT_MAX_SERIES"})
    38. read_file({"path":"tests/roadmap/test_roadmap_decision_table.py"})
    39. read_file({"path":"tests/roadmap/test_roadmap_limit_classes.py","start_line":612,"end_line":640})
    40. search_code({"text":"body-hash"})
    41. read_file({"path":"src/devops_cli/config/settings.py","start_line":1470,"end_line":1530})
    42. read_file({"path":"tests/roadmap/test_roadmap_limit_classes.py","start_line":1,"end_line":70})
    43. read_file({"path":"src/devops_cli/config/constants.py","start_line":3920,"end_line":3935})
    44. search_code({"text":"CONST_ROADMAP_DECISION_POINT_MAX_SERIES"})
    45. read_file({"path":"tests/roadmap/test_roadmap_limit_classes.py","start_line":612,"end_line":632})
    46. read_spec({"capability":"roadmap-stage/tests-gate","requirement":"A test-only other group names its test function"})
    47. search_code({"text":"def test_"})
    48. file_symbols({"path":"tests/roadmap/test_roadmap_limit_classes.py"})
    49. read_file({"path":"tests/roadmap/test_roadmap_limit_classes.py","start_line":30,"end_line":60})
    50. read_file({"path":"src/devops_cli/roadmap/decision_table.py"})
    51. read_file({"path":"src/devops_cli/roadmap/decision_step.py","start_line":40,"end_line":120})
    52. read_file({"path":"src/devops_cli/roadmap/decision_step.py","start_line":150,"end_line":215})
    53. read_file({"path":"src/devops_cli/ai/jev.py","start_line":160,"end_line":200})
    54. read_file({"path":"src/devops_cli/roadmap/decision_point.py","start_line":60,"end_line":140})
    55. read_file({"path":"src/devops_cli/roadmap/decision_point.py","start_line":240,"end_line":430})
    56. read_file({"end_line":3935,"path":"src/devops_cli/config/constants.py","start_line":3915})
    57. read_file({"end_line":390,"path":"src/devops_cli/telemetry/instruments.py","start_line":355})
    58. read_file({"end_line":360,"path":"tests/roadmap/test_roadmap_decision_point.py","start_line":330})
    59. read_file({"end_line":45,"path":"tests/roadmap/test_roadmap_decision_table.py","start_line":1})
    60. read_file({"end_line":1500,"path":"src/devops_cli/config/settings.py","start_line":1478})
    61. read_file({"end_line":5530,"path":"src/devops_cli/lang/en/messages.py","start_line":5510})
    62. list_files({"directory":"tests/config"})
    63. list_files({"directory":"tests/docs"})
    64. search_code({"text":"92 series"})
    65. read_file({"end_line":640,"path":"tests/roadmap/test_roadmap_limit_classes.py","start_line":612})
    66. search_code({"text":"def test_the_registry_refuses_a_catalogue_above_60_series"})
    67. search_code({"text":"def test_decide_all"})
    68. read_file({"end_line":330,"path":"tests/roadmap/test_roadmap_decision_point.py","start_line":255})
    69. file_symbols({"path":"tests/roadmap/test_roadmap_decision_step.py"})
    70. list_files({"directory":"docs"})
    71. list_files({"directory":"tests/telemetry"})
    72. read_file({"end_line":60,"path":"tests/config/test_decision_point_settings.py","start_line":1})
    73. read_file({"end_line":712,"path":"tests/roadmap/test_roadmap_limit_classes.py","start_line":695})
    74. read_file({"end_line":120,"path":"tests/roadmap/test_roadmap_decision_step.py","start_line":55})
    75. references({"name":"_jev_portal"})
    76. read_file({"end_line":45,"path":"src/devops_cli/ai/jev.py","start_line":1})
    77. read_file({"end_line":242,"path":"src/devops_cli/roadmap/decision_point.py","start_line":140})
    78. read_spec({"capability":"decision-workflows"})
    79. read_spec({"capability":"decision-steps"})
    80. read_spec({"capability":"decision-workflows","requirement":"The settings check the modes without the points"})
    81. read_spec({"capability":"decision-workflows","requirement":"The registry bounds the series of its catalogue"})
    82. read_spec({"capability":"decision-workflows","requirement":"A point fails back"})
    83. read_spec({"capability":"decision-steps","requirement":"Decision requests use one event loop and a time limit"})
    84. search_code({"text":"CONST_ROADMAP_DECISION_POINT_MAX_SERIES"})
    85. search_code({"text":"_jev_portal"})
    86. list_files({"directory":"tests/docs"})
    87. list_files({"directory":"tests/invariants"})
    88. search_code({"text":"body-hash"})
    89. read_file({"path":"src/devops_cli/ai/jev.py","start_line":160,"end_line":230})
    90. read_file({"path":"src/devops_cli/roadmap/decision_point.py","start_line":140,"end_line":170})
    91. read_file({"path":"src/devops_cli/roadmap/decision_point.py","start_line":390,"end_line":440})
    92. read_spec({"capability":"decision-workflows"})
    93. read_spec({"capability":"decision-steps"})
    94. read_spec({"capability":"metric-instruments"})
    95. read_file({"path":"src/devops_cli/roadmap/decision_step.py","start_line":170,"end_line":215})
    96. read_file({"path":"src/devops_cli/roadmap/decision_step.py","start_line":60,"end_line":120})
    97. read_file({"path":"tests/roadmap/test_roadmap_decision_point.py","start_line":300,"end_line":420})
    98. search_code({"text":"refuses_a_catalogue"})
    99. search_code({"text":"series_count"})
    100. search_code({"text":"DecisionMode"})
    101. read_file({"path":"tests/roadmap/test_roadmap_decision_point.py","start_line":240,"end_line":300})
    102. read_file({"path":"src/devops_cli/config/settings.py","start_line":1460,"end_line":1510})
    103. read_file({"path":"tests/roadmap/test_roadmap_limit_classes.py","start_line":610,"end_line":640})
    104. read_file({"end_line":400,"path":"src/devops_cli/telemetry/instruments.py","start_line":340})
    105. search_code({"text":"60 series"})
    106. search_code({"text":"decision_point_unfitted"})
    107. read_file({"end_line":5530,"path":"src/devops_cli/lang/en/messages.py","start_line":5510})
    108. read_file({"end_line":60,"path":"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","start_line":40})
    109. search_code({"text":"Status History"})
    110. read_spec({"capability":"decision-workflows","requirement":"The settings check the modes without the points"})
    111. read_spec({"capability":"decision-workflows","requirement":"The registry bounds the series of its catalogue"})
    112. read_spec({"capability":"decision-workflows","requirement":"A point fails back"})
    113. read_spec({"capability":"decision-steps","requirement":"Decision requests use one event loop and a time limit"})
    114. search_code({"text":"__all__"})
    115. search_code({"text":"TELEMETRY.md"})
    116. search_code({"text":"devops_cli_decision_point_total"})
    117. search_code({"text":"CONST_DOCS_INVENTORY"})
    118. read_file({"path":"tests/docs/test_docs.py","start_line":1,"end_line":60})
    119. read_file({"end_line":1545,"path":"src/devops_cli/config/settings.py","start_line":1509})
    120. read_file({"end_line":80,"path":"tests/conftest.py","start_line":60})
    121. read_file({"end_line":150,"path":"tests/docs/test_docs_adr_records.py","start_line":100})
    122. read_file({"end_line":60,"path":"tests/invariants/test_adr_records.py","start_line":1})
    123. search_code({"text":"record_problems"})
    124. read_file({"end_line":260,"path":"src/devops_cli/roadmap/decision_point.py","start_line":205})
    125. read_file({"end_line":350,"path":"src/devops_cli/roadmap/decision_point.py","start_line":260})
    126. read_spec({"capability":"metric-instruments","requirement":"Every metric is a declared instrument sent through emit"})
    127. read_spec({"capability":"decision-workflows","requirement":"One bounded metric counts the decisions"})
    128. search_code({"text":"INSTRUMENTS: Final"})
    129. search_code({"text":"\"DECISION_POINT_TOTAL\""})
    130. search_code({"text":"DECISION_POINT_TOTAL"})
    131. search_code({"text":"INSTRUMENTS"})
    132. read_file({"end_line":920,"path":"src/devops_cli/telemetry/instruments.py","start_line":820})
    133. search_code({"text":"docs generate"})
    134. search_code({"text":"CONST_DOCS_GENERATED"})
    135. search_code({"text":"timeout"})
    136. read_file({"end_line":240,"path":"tests/roadmap/test_roadmap_decision_point.py","start_line":120})
    137. search_code({"text":"asyncio.run"})
    138. search_code({"text":"running event loop"})
    139. read_file({"end_line":300,"path":"src/devops_cli/ai/tools/__init__.py","start_line":260})
    140. read_file({"end_line":180,"path":"src/devops_cli/ai/review/pool.py","start_line":150})
    141. read_file({"end_line":80,"path":"tests/docs/test_docs_adr_records.py","start_line":1})
    142. search_code({"text":"__all__"})
    143. read_file({"end_line":1,"path":"src/devops_cli/ai/jev.py","start_line":1})
    144. list_files({"directory":"tests/invariants"})
    145. read_file({"path":"docs/adr/README.md"})
    146. search_code({"text":"92 series"})
    147. read_file({"path":"tests/invariants/test_adr_records.py"})
    148. search_code({"text":"Living detail moved to"})
    149. file_symbols({"path":"src/devops_cli/docs/adr_records.py"})
    150. read_file({"path":"src/devops_cli/docs/adr_records.py","start_line":40,"end_line":110})
    151. read_file({"path":"src/devops_cli/docs/adr_records.py","start_line":150,"end_line":210})
    152. file_symbols({"path":"src/devops_cli/roadmap/decision_point.py"})
    153. file_symbols({"path":"src/devops_cli/roadmap/decision_step.py"})
    154. read_file({"path":"src/devops_cli/roadmap/decision_point.py","start_line":96,"end_line":320})
    155. read_file({"end_line":320,"path":"src/devops_cli/roadmap/decision_point.py","start_line":275})
    156. read_file({"end_line":210,"path":"src/devops_cli/roadmap/decision_step.py","start_line":53})
    157. search_code({"text":"model_name"})
    158. file_symbols({"path":"src/devops_cli/ai/jev.py"})
    159. read_file({"end_line":52,"path":"src/devops_cli/roadmap/decision_step.py","start_line":1})
    160. read_file({"end_line":225,"path":"src/devops_cli/ai/jev.py","start_line":160})
    161. search_code({"text":"DecisionResponse"})
    162. read_file({"end_line":70,"path":"tests/ai/test_jev_edge_fake.py","start_line":1})
    163. search_code({"text":"DecisionResponse("})
    164. read_file({"path":"tests/support/fakes/jev.py"})
    165. search_code({"text":".model_name"})
    166. read_file({"end_line":120,"path":"tests/ai/test_jev_one_model_many_requests.py","start_line":85})
    167. read_file({"end_line":115,"path":"tests/ai/test_jev_gateway_route.py","start_line":85})
    168. search_code({"text":"loopback_gateway"})
    169. read_file({"end_line":70,"path":"tests/ai/test_jev_one_model_many_requests.py","start_line":1})
    170. read_spec({"capability":"decision-workflows"})
    171. read_spec({"capability":"decision-steps"})
    172. read_spec({"capability":"decision-workflows","requirement":"The settings check the modes without the points"})
    173. read_spec({"capability":"decision-workflows","requirement":"A point fails back"})
    174. read_spec({"capability":"decision-workflows","requirement":"The registry bounds the series of its catalogue"})
    175. read_spec({"capability":"decision-steps","requirement":"Decision requests use one event loop and a time limit"})
    176. read_file({"path":"src/devops_cli/roadmap/decision_table.py"})
    177. read_file({"path":"tests/roadmap/test_roadmap_decision_table.py"})
    178. search_code({"text":"CONST_ROADMAP_DECISION_POINT_MAX_SERIES"})
    179. search_code({"text":"DECISION_POINT_TOTAL = Instrument("})
    180. read_file({"end_line":365,"path":"tests/roadmap/test_roadmap_decision_point.py","start_line":300})
    181. read_file({"end_line":1500,"path":"src/devops_cli/config/settings.py","start_line":1478})
    182. file_symbols({"path":"tests/config/test_decision_point_settings.py"})
    183. file_symbols({"path":"tests/roadmap/test_roadmap_decision_step.py"})
    184. references({"name":"_jev_portal"})
    185. search_code({"text":"CONST_ROADMAP_DECISION_POINT_MAX_SERIES"})
    186. read_spec({"capability":"decision-workflows"})
    187. read_spec({"capability":"decision-steps"})
    188. read_spec({"capability":"metric-instruments"})
    189. read_spec({"capability":"decision-workflows","requirement":"The registry bounds the series of its catalogue"})
    190. read_spec({"capability":"decision-workflows","requirement":"One bounded metric counts the decisions"})
    191. read_spec({"capability":"decision-workflows","requirement":"The settings check the modes without the points"})
    192. read_spec({"capability":"decision-workflows","requirement":"A point fails back"})
    193. read_file({"path":"tests/roadmap/test_roadmap_decision_point.py","start_line":300,"end_line":370})
    194. read_file({"path":"src/devops_cli/roadmap/decision_point.py","start_line":180,"end_line":300})
    195. read_file({"path":"src/devops_cli/roadmap/decision_point.py","start_line":380,"end_line":440})
    196. read_file({"path":"src/devops_cli/roadmap/decision_step.py","start_line":180,"end_line":240})
    197. read_file({"end_line":180,"path":"src/devops_cli/roadmap/decision_point.py","start_line":130})
    198. read_file({"end_line":230,"path":"src/devops_cli/ai/jev.py","start_line":165})
    199. read_file({"end_line":390,"path":"src/devops_cli/telemetry/instruments.py","start_line":355})
    200. read_file({"end_line":1500,"path":"src/devops_cli/config/settings.py","start_line":1460})
    201. search_code({"text":"TELEMETRY.md"})
    202. search_code({"text":"60 series"})
    203. search_code({"text":"decision_point_series"})
    204. search_code({"text":"docs/TELEMETRY"})
    205. search_code({"text":"def test_the_documents_list"})
    206. read_file({"path":"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","start_line":100,"end_line":140})
    207. read_file({"end_line":260,"path":"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","start_line":190})
    208. read_file({"path":"tests/roadmap/test_roadmap_limit_classes.py","start_line":610,"end_line":650})
    209. search_code({"text":"INSTRUMENTS"})
    210. search_code({"text":"DECISION_POINT_TOTAL"})
    211. search_code({"text":"catalogue_above_60"})
    212. search_code({"text":"_jev_portal"})
    213. read_file({"end_line":1560,"path":"src/devops_cli/config/settings.py","start_line":1493})
    214. read_file({"end_line":300,"path":"tests/roadmap/test_roadmap_decision_point.py","start_line":240})
    215. read_file({"end_line":30,"path":"tests/roadmap/test_roadmap_decision_point.py","start_line":1})
    216. search_code({"text":"explore_stop"})
    217. search_code({"text":"shadow"})
    218. read_file({"end_line":12,"path":"docs/ENV_VARS.md","start_line":1})
    219. search_code({"text":"ENV_VARS.md"})
    220. read_spec({"capability":"decision-workflows","requirement":"Shadow records and changes nothing"})
    221. read_spec({"capability":"decision-workflows","requirement":"The two settings of the decision points have variables"})
    222. search_code({"text":"cuts file"})
    223. search_code({"text":"4410"})
    224. list_files({"directory":"openspec/specs"})
    225. read_file({"end_line":182,"path":"src/devops_cli/roadmap/decision_step.py","start_line":150})
    226. read_file({"end_line":100,"path":"tests/conftest.py","start_line":60})
    227. read_file({"end_line":120,"path":"tests/ai/test_jev_one_model_many_requests.py","start_line":100})
    228. search_code({"text":"def jev("})
    229. read_file({"end_line":345,"path":"src/devops_cli/roadmap/decision_point.py","start_line":295})
    230. read_file({"end_line":60,"path":"tests/invariants/test_adr_records.py","start_line":1})
    231. search_code({"text":"Living detail moved to"})
    232. search_code({"text":"test_every_class_in_the_table_is_a_known_class_with_a_reason"})
    233. search_code({"text":"series_count"})
    234. search_code({"text":"decision_point_series"})
    235. read_file({"end_line":565,"path":"src/devops_cli/lang/en/messages.py","start_line":540})
    236. read_file({"end_line":5525,"path":"src/devops_cli/lang/en/messages.py","start_line":5495})
    237. search_code({"text":"decision_point_unfitted"})
    238. callers({"symbol":"check_modes"})
    239. search_code({"text":"roadmap.decisions"})
    240. search_code({"text":"def test_"})
    241. file_symbols({"path":"tests/telemetry/test_telemetry_instruments.py"})
    242. read_issue({"number":5355})
    243. read_issue({"number":5357})
    244. read_issue({"number":5367})
    245. read_issue({"number":5377})
    246. read_issue({"number":5239})
    247. read_issue({"number":5206})
    248. search_code({"text":"__all__"})
    249. search_code({"text":"DEVOPS_CLI_ROADMAP_DECISIONS"})
    250. list_files({"directory":"docs"})
    251. search_code({"text":"ENV_VARS.md"})
    252. search_code({"text":"DEVOPS_CLI_ROADMAP_DECISIONS"})
    253. read_file({"path":"docs/CONFIGURATION.md","start_line":298,"end_line":308})
    254. read_file({"path":"docs/ENV_VARS.md","start_line":119,"end_line":119})
    255. search_code({"text":"CONST_ROADMAP_DECISION_POINT_MAX_SERIES"})
    256. read_file({"path":"src/devops_cli/roadmap/decision_point.py","start_line":380,"end_line":440})
    257. read_file({"path":"src/devops_cli/roadmap/decision_step.py","start_line":190,"end_line":230})
    258. read_file({"path":"src/devops_cli/ai/jev.py","start_line":165,"end_line":225})
    259. read_file({"path":"src/devops_cli/roadmap/decision_point.py","start_line":150,"end_line":300})
    260. read_file({"path":"tests/roadmap/test_roadmap_decision_point.py","start_line":320,"end_line":400})
    261. search_code({"text":"above_60"})
    262. search_code({"text":"60 series"})
    263. search_code({"text":"decision_point_total"})
    264. read_spec({"capability":"decision-workflows"})
    265. read_spec({"capability":"decision-steps"})
    266. read_spec({"capability":"metric-instruments"})
    267. read_file({"path":"tests/roadmap/test_roadmap_decision_point.py","start_line":270,"end_line":320})
    268. read_file({"path":"src/devops_cli/config/settings.py","start_line":1470,"end_line":1510})
    269. search_code({"text":"explore_stop"})
    270. search_code({"text":"decision_point_unfitted"})
    271. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":5505,"end_line":5535})
    272. read_file({"path":"src/devops_cli/telemetry/instruments.py","start_line":355,"end_line":400})
    273. read_file({"path":"src/devops_cli/config/settings.py","start_line":1509,"end_line":1545})
    274. read_file({"path":"tests/roadmap/test_roadmap_decision_table.py","start_line":1,"end_line":40})
    275. read_file({"path":"tests/roadmap/test_roadmap_limit_classes.py","start_line":610,"end_line":640})
    276. search_code({"text":"STATUS_HISTORY"})
    277. callers({"symbol":"check_modes"})
    278. search_code({"text":"## Status History"})
    279. read_file({"path":"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","start_line":180,"end_line":240})
    280. search_code({"text":"TELEMETRY.md"})
    281. list_files({"directory":"tests/invariants"})
    282. list_files({"directory":"src/devops_cli/docs"})
    283. search_code({"text":"Metric Name | Type | Unit"})
    284. read_file({"path":"src/devops_cli/docs/generator.py","start_line":1030,"end_line":1075})
    285. read_file({"path":"tests/docs/test_docs.py","start_line":555,"end_line":595})
    286. read_spec({"capability":"decision-workflows","requirement":"The settings check the modes without the points"})
    287. read_spec({"capability":"decision-workflows","requirement":"The mode of each point is a setting"})
    288. read_spec({"capability":"decision-steps","requirement":"Decision requests use one event loop and a time limit"})
    289. read_spec({"capability":"decision-workflows","requirement":"One bounded metric counts the decisions"})
    290. read_spec({"capability":"decision-workflows","requirement":"The registry bounds the series of its catalogue"})
    291. read_spec({"capability":"decision-workflows","requirement":"A point fails back"})
    292. search_code({"text":"records its band and the real result"})
    293. search_code({"text":"DEVOPS_CLI_ROADMAP_DECISIONS"})
    294. read_file({"path":"src/devops_cli/roadmap/decision_point.py","start_line":295,"end_line":360})
    295. search_code({"text":"failure_class"})
    296. read_file({"path":"tests/invariants/test_adr_records.py","start_line":1,"end_line":60})
    297. read_file({"path":"tests/docs/test_docs_adr_records.py","start_line":1,"end_line":70})
    298. references({"name":"_jev_portal"})
    299. read_file({"path":"tests/conftest.py","start_line":70,"end_line":95})
    300. read_file({"path":"src/devops_cli/roadmap/decision_step.py","start_line":140,"end_line":192})
    301. search_code({"text":"generate_telemetry_docs"})
    302. search_code({"text":"docs/TELEMETRY.md"})
    303. search_code({"text":"== 60"})
    304. search_code({"text":"60"})
    305. read_file({"path":"tests/ai/test_jev_one_model_many_requests.py","start_line":1,"end_line":130})
    306. search_code({"text":"60 series"})
    307. search_code({"text":"more than 60"})
    308. search_code({"text":"shadow' with no cuts"})
    309. search_code({"text":"no cuts file"})
    310. find_issues({"terms":"5239 prior cuts shadow"})
    311. find_issues({"terms":"5206 decision point command gate"})
    312. read_file({"path":"src/devops_cli/docs/adr_records.py","start_line":120,"end_line":230})
    313. search_code({"text":"__all__"})
    314. read_file({"path":"src/devops_cli/ai/jev.py","start_line":380,"end_line":430})

    Tool calls: callers=2 (empty=0), file_symbols=14 (empty=0), find_issues=2 (empty=0), list_files=11 (empty=0), read_file=130 (empty=0), read_issue=6 (empty=0), read_spec=48 (empty=0), references=3 (empty=0), search_code=98 (empty=6)

    The stage job read the open pull requests and their files in 1 GraphQL request(s).

  8. 102 remaining items

  9. added
    status/in-review
    and removed
    status/blocked
    on Nov 14, 2026
  10. removed
    status/in-review
    on Nov 14, 2026
  11. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-14 04:48 UTC

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/p1-highscope/roadmapsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions