Skip to content

feat(roadmap): ask Jev if a command off the lists is dangerous, in shadow #5206

Open

Description

@dan-petty

Problem or Motivation

With the lists only (#5201), the gate refuses every command that no entry matches: 48 of 175 refusals in 7 days (S7 8, S9 37, sed 2, cd 1), and each new tool. The owner asked for this model: the configured lists decide first, and for the rest Jev answers "Is this command dangerous, given the constraints of the Job environment and its access?". The default is allow.

ADR 0019 rule 7 (docs/adr/0019-*.md:29) and the ADR 0020 catalogue allow Jev only as a part beside a deterministic control. Only stage.verify_screen is registered today (decision_registry.py:17). The decision framework has three limits for this use:

  • ResolverChain.decide calls decide_all, which calls asyncio.run (decision_step.py:208). That raises RuntimeError inside the event loop of the agent. RuntimeError is not in FAILED (decision_step.py:63-71), so the step crashes.
  • check_modes lets shadow load with no cuts file. Then every shadow decision is a fallback (decision_point.py:282-293).
  • The framework records no duration.

Proposed Solution & Architectural Design

Add command_gate/jev.py, evidence.py and nearest.py:

  • The DecisionPoints implement.command_gate and implement.command_audit, with the one fixed Noul question dangerous.
  • The evidence builder: the environment facts of feat(roadmap): build the command gate facts from the manifests and a probe #5203, the canonical argv with typed placeholders, the parse facts, a fixed core of the 6 floor block entries, and the nearest entries of each list with their reasons. Jev reads the block entries as the examples of dangerous and the allow entries as the examples of safe (owner decision 1 of 2026-11-12).
  • The bands: continue runs the command; review and flag refuse it. In mode on, a flag ends the step and marks the coarse key as a blocklist candidate. The cuts path is command_gate/jev_cuts.json, and the timeout is 5.0 s.
  • An async ResolverChain.adecide that awaits _decide_gathered directly. The gate awaits it in _RefusingToolset.call_tool. Any exception of the chain gives the fallback.
  • One request for each rest part (at most max_rest_parts), sent at the same time. The strictest answer wins.
  • Sticky refusals by coarse key, a budget of 5 Jev refusals for each Job, and a pybreaker breaker for each Job (pybreaker 1.4.1 is a dependency, pyproject.toml:77).
  • A cache for the run (a dict), keyed on the full canonical argv. A hit counts on the gate counter with source cache and writes no record.
  • Fallback (owner decision 1): an error, a timeout, a missing answer or cut, a secret in the evidence, jev_allowed=false from the facts probe, or an open breaker refuses the command with source fallback. This is today's behavior: the text says that the command was not judged and names the 3 nearest allowed forms. ToolCallLog counts the refusal toward the run of 3 and the total of 30.
  • seconds on the Command gate: line.
  • Kept text (owner decision 3): each command that goes to Jev adds its masked text to the job record of the item, in the limits of feat(roadmap): check shell commands with a parser and configured lists #5201 (300 characters, 20 commands for each Job, 14 days, after mask_secrets and mask_private_hosts).

Register both points in decision_registry.REGISTRY and decision_table.POINT_CUTS. Extend check_modes: refuse shadow with no cuts file for implement.command_gate, and refuse on for implement.command_audit. Amend the ADR 0020 catalogue with the two rows: their question, evidence, label source and bar. Amend ADR 0019 rule 7: Jev may admit a command only inside the bounds of the parse tier, the blocklist and the pod. Keep CONST_ROADMAP_DECISION_POINT_MAX_SERIES at 60; the registry holds 24 series.

Files: src/devops_cli/roadmap/command_gate/ (jev.py, evidence.py, nearest.py, gate.py); src/devops_cli/roadmap/ (decision_point.py, decision_step.py, decision_registry.py, decision_table.py); src/devops_cli/roadmap/implement/implement_tool_log.py; src/devops_cli/config/constants.py; src/devops_cli/config/settings.py; src/devops_cli/telemetry/instruments.py; src/devops_cli/lang/en/messages.py; docs/adr/0019-a-decision-step-asks-jev-short-closed-questions-about-evidence-that-tools-extract.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; docs/CONFIGURATION.md; docs/TELEMETRY.md; tests/roadmap/command_gate/ (test_roadmap_command_gate_jev.py, _evidence.py, _nearest.py); tests/roadmap/test_roadmap_decision_point.py; tests/config/test_decision_point_settings.py.

Target Subsystem

SDLC, Git & PR Governance (src/devops_cli/roadmap/, the implement runner) and AI & Agentic Review Pipeline (the decision points).

Existing Tool Considered

  • The project's DecisionPoint, ResolverChain and decision_fit (ADR 0020), and pybreaker.
  • Not used: the pydantic-ai-harness ApprovalReviewer approves on an argmax 'no' with no cut, no shadow mode and no record. gate_tool_call_with_jev (jev.py:371-433) has guessed thresholds, and no code calls it.
  • Cost: about 1.0M tokens and 1.5 days.

Acceptance Criteria

  1. tests/roadmap/command_gate/test_roadmap_command_gate_jev.py, with a fake decision model, in mode on: p below continue_below runs the command with source jev; p at the cut refuses it; p at flag_at refuses it and ends the step; a timeout refuses it with source fallback, the text says "not judged", and the refusal counts toward the run of 3.
  2. tests/roadmap/command_gate/test_roadmap_command_gate_jev.py: a rest command goes through a real _RefusingToolset.call_tool inside a pydantic-ai agent run (FunctionModel), with a decision model that raises RuntimeError. The step continues, and the verdict is a fallback refusal.
  3. tests/roadmap/command_gate/test_roadmap_command_gate_jev.py: in mode shadow, a rest command is refused with source default, one decision record is written for each rest part, and devops_cli_decision_point_total{point="implement.command_gate",mode="shadow"} rises by the number of parts.
  4. tests/roadmap/command_gate/test_roadmap_command_gate_jev.py: after a review answer for curl -sI https://github.com/a, curl -sI https://github.com/b is refused with source sticky and sends no request. After 5 Jev refusals, the next rest part is refused as in mode off. After 2 failures, the next call sends no request and is refused with source fallback.
  5. tests/roadmap/command_gate/test_roadmap_command_gate_evidence.py: a quoted word with spaces becomes a <str> placeholder; a URL host appears in IDNA; no comment and no word over 64 characters is in the state; the state is at most 6,000 characters.
  6. tests/roadmap/command_gate/test_roadmap_command_gate_nearest.py: for git fetch origin, dangerous_examples holds the 6 floor core entries and at most 3 other block entries, with git entries first, and safe_examples holds at most 3 entries. A program that is not in the program table gets the tag unknown. In a fixture profile with no block entries, dangerous_examples is empty.
  7. tests/roadmap/command_gate/test_roadmap_command_gate_jev.py: a second call with the same canonical argv sends no request; a changed argument word or a changed lists digest is a miss. A command that goes to Jev adds one masked entry to the job record.
  8. tests/roadmap/test_roadmap_decision_point.py and tests/config/test_decision_point_settings.py: the registry and POINT_CUTS hold both points; REGISTRY.series_count == 24 and stays at most 60; shadow with no jev_cuts.json stops the settings load; on for implement.command_audit stops the settings load.
  9. Real transcripts, before the merge: the S7-S9 commands of cases_2026_11.json go through the gate in mode shadow with a fake model. Each gives one record for each rest part, and the pull request comment shows 3 evidence states.

Dependencies

Related

Source: #5199

Alternatives check of 2026-11-19: in-use.
The repository already uses this tool.
Tool: pydantic/pydantic-ai (https://github.com/pydantic/pydantic-ai), MIT, last activity 2026-11-19, maintained.
Reason: Searches found generic guardrail frameworks and the already-integrated pydantic-ai approval tool; it refuses unapproved calls but has no command-danger model, cuts, shadow mode, or decision records, so it covers only the gate part.

Covers:

  • Refuses an unapproved tool call
  • Runs inside the pydantic-ai agent loop
  • Raises ApprovalRequired before execution

Lacks:

  • No LLM judgment of command danger
  • No fitted probability cuts or bands
  • No shadow mode, cache, or decision records
  • No lists-first evidence or nearest examples

Proposed design

Problem statement

The command gate refuses every shell command that no list entry matches: 48 of 175 refusals in 7 days, and each new tool. The configured lists must decide first. A decision model then answers whether each rest part is dangerous in the sandbox of the Job, and the default is allow. This change adds the implement.command_gate decision point, its evidence builder, the nearest examples, the bands, the fallback, the run cache, the budget and the breaker. It ships in shadow.

Acceptance criteria

Requirement: Mode on runs a safe rest command

In mode on, the command gate SHALL run a rest command whose dangerous probability is below continue_below, and SHALL record the decision with source jev.

Scenario: A safe rest command runs

  • WHEN tests/roadmap/command_gate/test_roadmap_command_gate_jev.py runs the gate in mode on with a fake decision model that answers dangerous below continue_below
  • THEN _RefusingToolset.call_tool runs the command, and the gate counter holds one decision with source jev

Requirement: A rest command at the review cut is refused

In mode on, the command gate SHALL refuse a rest command whose dangerous probability is at or above continue_below, with the band review.

Scenario: A rest command at the review cut is refused

  • WHEN the fake decision model answers dangerous with a probability at continue_below
  • THEN the gate refuses the command, and the decision record holds the band review

Requirement: A flag ends the step

In mode on, the command gate SHALL refuse a rest command whose dangerous probability is at or above flag_at, and SHALL end the step with the coarse key marked as a blocklist candidate.

Scenario: A rest command at the flag cut ends the step

  • WHEN the fake decision model answers dangerous with a probability at flag_at
  • THEN the gate refuses the command, the step ends, and the coarse key is marked as a blocklist candidate

Requirement: A timeout falls back to a refusal

When the decision model gives no answer within 5.0 s, the command gate SHALL refuse the command with source fallback and the text that says the command was not judged.

Scenario: A timeout refuses with the not-judged text

  • WHEN the fake decision model takes longer than the 5.0 s timeout
  • THEN the gate refuses the command with source fallback, the text says that the command was not judged and names the 3 nearest allowed forms, and the refusal counts toward the run of 3 and the total of 30

Requirement: The gate awaits the async chain

The command gate SHALL await ResolverChain.adecide in _RefusingToolset.call_tool, so that an error of the chain gives a fallback refusal and never a crashed step.

Scenario: A raising decision model gives a fallback refusal

  • WHEN a rest command goes through _RefusingToolset.call_tool in a pydantic-ai agent run with FunctionModel, and the decision model raises RuntimeError
  • THEN the step continues, and the verdict is a refusal with source fallback

Requirement: Shadow mode records and refuses with the default

In mode shadow, the command gate SHALL refuse a rest command with source default, and SHALL write one decision record for each rest part.

Scenario: A shadow run counts one series for each part

  • WHEN the gate runs in mode shadow on a rest command with two rest parts
  • THEN the gate refuses with source default, two decision records are written, and devops_cli_decision_point_total{point="implement.command_gate",mode="shadow"} rises by 2

Requirement: A sticky refusal covers the coarse key

After a review answer for one command, the command gate SHALL refuse a second command with the same coarse key with source sticky, and SHALL send no request.

Scenario: A second curl command is refused as sticky

  • WHEN the gate refused curl -sI https://github.com/a with the band review, and curl -sI https://github.com/b follows
  • THEN the second command is refused with source sticky, and no request goes to the decision model

Requirement: The budget and the breaker stop the calls

The command gate SHALL refuse the next rest part as in mode off after 5 Jev refusals for one Job, and SHALL send no request and refuse with source fallback after 2 failures.

Scenario: The budget and the breaker stop a Job

  • WHEN one Job has 5 Jev refusals and then 2 failures
  • THEN the next rest part is refused as in mode off, and the call after the second failure sends no request and is refused with source fallback

Requirement: The evidence state is bounded and masked

The evidence builder SHALL replace a quoted word with spaces by a <str> placeholder, show a URL host in IDNA, hold no comment and no word over 64 characters, and stay at most 6,000 characters.

Scenario: A long quoted argument gives a bounded state

  • WHEN tests/roadmap/command_gate/test_roadmap_command_gate_evidence.py builds the state of a command with a quoted word with spaces, a URL and a comment
  • THEN the state holds a <str> placeholder for the quoted word, the URL host in IDNA, no comment, no word over 64 characters, and at most 6,000 characters

Requirement: The nearest examples are bounded

The evidence builder SHALL put the 6 floor block entries and at most 3 other block entries in dangerous_examples with git entries first, put at most 3 entries in safe_examples, and give the tag unknown to a program that the program table does not hold.

Scenario: A git command gets the floor examples first

  • WHEN tests/roadmap/command_gate/test_roadmap_command_gate_nearest.py builds the examples of git fetch origin, of a program that the program table does not hold, and of a profile with no block entries
  • THEN dangerous_examples holds the 6 floor entries and at most 3 other block entries with git entries first, safe_examples holds at most 3 entries, the unknown program gets the tag unknown, and the profile with no block entries still holds the 6 floor entries

Requirement: The run cache answers a repeated command

The command gate SHALL send no request for a second call with the same canonical argv, SHALL treat a changed argument word or a changed lists digest as a miss, and SHALL count a hit with source cache and write no decision record.

Scenario: A repeated command hits the cache

  • WHEN tests/roadmap/command_gate/test_roadmap_command_gate_jev.py calls the gate twice with the same canonical argv, then with a changed argument word, then with a changed lists digest
  • THEN the second call sends no request and counts with source cache, each change is a miss, and the hit writes no decision record

Requirement: A command that goes to the model is kept masked

The command gate SHALL add one masked entry to the job record of the item for each command that goes to the decision model, within 300 characters and 20 commands for each Job.

Scenario: A judged command reaches the job record

  • WHEN tests/roadmap/command_gate/test_roadmap_command_gate_jev.py sends a command with a secret and a private host to the decision model
  • THEN the job record holds one entry with the secret and the private host masked, at most 300 characters, and at most 20 entries for the Job

Requirement: The registry holds the gate point under the cap

The registry and POINT_CUTS SHALL hold implement.command_gate, REGISTRY.series_count SHALL stay at most CONST_ROADMAP_DECISION_POINT_MAX_SERIES, and a shadow mode with no jev_cuts.json SHALL stop the settings load.

Scenario: The settings load refuses shadow with no cuts file

  • WHEN tests/roadmap/test_roadmap_decision_point.py and tests/config/test_decision_point_settings.py read the registry and load the settings in mode shadow with jev_cuts.json absent
  • THEN implement.command_gate is in the registry and in POINT_CUTS, REGISTRY.series_count is at most 60, and the shadow load stops with an error that names the missing cuts file

Requirement: The gate line holds the duration

The Command gate: line SHALL hold seconds, the time of the awaited chain.

Scenario: A judged command logs its duration

  • WHEN tests/roadmap/command_gate/test_roadmap_command_gate_jev.py runs one command through the gate with a fake decision model
  • THEN the Command gate: line holds a seconds value that is at least zero

Requirement: Pending a person after the merge

This change SHALL leave implement.command_gate in shadow, and the owner SHALL change the mode to on only after the shadow record and the fit report show the point meets its bar.

Scenario: The owner reads the shadow record after the merge

  • WHEN the change is merged and the point has run in shadow
  • THEN the mode stays shadow until the owner sets it to on

Existing Tool Considered

pydantic/pydantic-ai (MIT, maintained): the alternatives check of 2026-11-19 in the issue body gives the verdict in-use, and its block lists what the tool covers and lacks. The repository already uses it. The change adds what the block lacks: the dangerous question with its evidence state, the fitted cuts and bands of command_gate/jev_cuts.json, the shadow mode with decision records, the lists-first evidence with nearest examples, the run cache, the budget and the breaker. The project's DecisionPoint and ResolverChain (ADR 0020) hold the chain and the cuts, and pybreaker holds the breaker, so the change builds no approval tool. The code that the change builds, command_gate/jev.py, evidence.py and nearest.py, costs about 1.0M tokens and 1.5 days.

Key questions

  • How does the gate call the resolver chain inside the event loop of the agent?: Add ResolverChain.adecide, which awaits _decide_gathered on the loop of the caller. The gate awaits it in _RefusingToolset.call_tool. decide_all calls asyncio.run, which raises RuntimeError in a running loop, and this path never runs it. Any exception of the chain gives the fallback refusal, so the step never crashes. (best practice) [sources: src/devops_cli/roadmap/decision_point.py, src/devops_cli/roadmap/decision_step.py, 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: Add adecide that awaits _decide_gathered. It runs the chain on the loop of the caller, so asyncio.run never runs inside the event loop of the agent.
    • Rejected: Call decide from the event loop. decide_all calls asyncio.run, which raises RuntimeError inside a running loop.
    • Rejected: Add RuntimeError to FAILED. The awaited path raises no RuntimeError, so the set of failed errors does not change.
  • Which cuts file and timeout does implement.command_gate use?: A dedicated command_gate/jev_cuts.json with the dangerous cut and the flag_at of this point, and a timeout of 5.0 s. It declares the path in cuts and the time in timeout. (best practice) [sources: src/devops_cli/roadmap/decision_table.py, src/devops_cli/roadmap/decision_point.py, 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: A dedicated command_gate/jev_cuts.json. It holds the dangerous cut and the flag_at of this point, apart from the other points.
    • Rejected: The cuts file of another point. It holds no dangerous question and no flag_at for this point.
    • Rejected: No cuts file. A shadow load with no cuts file makes every shadow decision a fallback, so the point needs its file.
  • Which mode may the new point run in?: It starts in shadow and needs its cuts file. check_modes stops a shadow load of implement.command_gate with no jev_cuts.json, so no shadow decision is a fallback. (best practice) [sources: src/devops_cli/roadmap/decision_table.py, 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: Start in shadow with a required cuts file. ADR 0020 starts a new point in shadow, and the required cuts file keeps every shadow decision out of the fallback.
    • Rejected: Start in mode on. No shadow record exists yet, so no fit report supports the cuts of a live mode.
    • Rejected: Start in shadow with no cuts file. Every shadow decision is then a fallback, so the shadow record measures nothing.
  • How does the gate record the duration of a decision?: The gate adds seconds to its own Command gate: line around the awaited call. It adds no second histogram, so the registry keeps its series under the cap of 60. (best practice) [sources: src/devops_cli/roadmap/implement/implement_tool_log.py, src/devops_cli/config/constants.py:4474]
    • Chosen: seconds on the Command gate: line. The line gives the time of the command, and it adds no series.
    • Rejected: A histogram for each decision. It adds series to a registry that has a cap of 60.
    • Rejected: Record no duration. A timeout could not be told from a slow answer.
  • What does the gate do when the decision model gives no usable answer?: It refuses the command with source fallback. The text says that the command was not judged and names the 3 nearest allowed forms. The refusal counts toward the run of 3 and the total of 30. This is today's behavior. (best practice) [sources: docs/adr/0019-a-decision-step-asks-jev-short-closed-questions-about-evidence-that-tools-extract.md, src/devops_cli/roadmap/implement/implement_tool_log.py]
    • Chosen: Refuse with source fallback. It is today's behavior, and ADR 0019 rule 7 lets the model admit a command only beside a deterministic control.
    • Rejected: Allow the command. No control judged the command, which breaks the bound of ADR 0019 rule 7.
  • How many requests does one rest command send?: One request for each rest part, at most max_rest_parts, sent at the same time. The strictest answer wins. A compound command hides a dangerous part, and the parts sent together add no latency. (best practice) [sources: docs/adr/0019-a-decision-step-asks-jev-short-closed-questions-about-evidence-that-tools-extract.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: One request for each rest part, sent together. Each part gets its own answer, and the requests cost the latency of the slowest one.
    • Rejected: One request for the whole command. A dangerous part of a compound command gets no answer of its own.
    • Rejected: One request for each part, in sequence. It adds the latency of each part and gains nothing.
  • Which limits stop the calls for one Job?: Sticky refusals by coarse key, a budget of 5 Jev refusals for each Job, and a pybreaker breaker for each Job. pybreaker is already a dependency, so the change keeps no breaker code of its own. (best practice) [sources: pyproject.toml, docs/adr/0019-a-decision-step-asks-jev-short-closed-questions-about-evidence-that-tools-extract.md]
    • Chosen: pybreaker, a budget of 5 and sticky keys. pybreaker is already a dependency, so the project keeps no breaker code of its own.
    • Rejected: A hand-written counter and a timer. It builds code that the project must keep and fix.
  • What does the run cache key on, and what does a hit write?: A dict for the run, keyed on the SHA-256 of the evidence state. The state holds the canonical argv and the lists digest, so a change in either is a miss. A hit counts on the gate counter with source cache and writes no decision record. (best practice) [sources: src/devops_cli/roadmap/decision_point.py]
    • Chosen: The SHA-256 of the evidence state. It covers the canonical argv and the lists digest, so a change in either is a miss.
    • Rejected: The canonical argv only. A changed lists digest would hit a verdict that the lists no longer support.
    • Rejected: The coarse key. It answers for a command that the model never saw.
    • Rejected: Write a record on a hit. No model call happened, so a record would state one that did not.
  • Which text does the job record keep of a command that goes to the model?: The masked text, after the mask of secrets and the mask of private hosts, bounded as logged_command bounds a logged command: 300 characters and 20 commands for each Job. The entry expires after 14 days. (best practice) [sources: src/devops_cli/security/sanitizer.py, src/devops_cli/roadmap/implement/implement_tool_log.py, src/devops_cli/roadmap/agent_run.py]
    • Chosen: Keep the masked text. The mask keeps a secret and a private host out of the record, and the text is the evidence of what the model judged.
    • Rejected: Keep the raw text. A secret in an argument would reach the job record.
    • Rejected: Keep no text. The record would then show no evidence of what the model judged.
  • Which question and evidence does the point carry?: One fixed Noul question, dangerous. The evidence holds the environment facts of feat(roadmap): build the command gate facts from the manifests and a probe #5203, the canonical argv with typed placeholders, the parse facts, the 6 floor block entries, and the nearest entries of each list with their reasons. The model reads the block entries as the examples of dangerous and the allow entries as the examples of safe. (best practice) [sources: docs/adr/0019-a-decision-step-asks-jev-short-closed-questions-about-evidence-that-tools-extract.md, src/devops_cli/roadmap/decision_point.py, src/devops_cli/ai/jev.py]
    • Chosen: One fixed Noul question dangerous. ADR 0019 asks short closed questions, and one question keeps the evidence and the cuts small.
    • Rejected: A question for each risk kind. It adds cuts and series, and no labelled data exists for the extra questions.
    • Rejected: A free-text question. A decision point returns a band and never a text (ADR 0020).
  • Which examples does the evidence builder give the model?: The 6 floor block entries, with git entries first, plus at most 3 other block entries as dangerous_examples. At most 3 allow entries as safe_examples. A program that the program table does not hold gets the tag unknown. (best practice) [sources: docs/adr/0019-a-decision-step-asks-jev-short-closed-questions-about-evidence-that-tools-extract.md]
    • Chosen: The 6 floor entries plus the nearest entries. The fixed core gives each request the same examples of dangerous, and the nearest entries give the context of this command.
    • Rejected: The nearest block entries only. A profile with no block entries would give the model no example of dangerous.
    • Rejected: Every block entry. It spends the evidence budget and hides the nearest entry.
  • How is the size of the evidence state bounded?: A quoted word with spaces becomes a <str> placeholder. A URL host appears in IDNA. The state holds no comment and no word over 64 characters, and it stays at most 6,000 characters. (best practice) [sources: docs/adr/0019-a-decision-step-asks-jev-short-closed-questions-about-evidence-that-tools-extract.md]
    • Chosen: Typed placeholders and a bound of 6,000 characters. A long state spends tokens and hides the argument that matters.
    • Rejected: Send the argv as it is. A comment or a long word spends the budget and can carry a secret.
    • Rejected: Cut the state to 6,000 characters only. A secret in a short word survives the cut.
  • Does the registry stay under the series cap after the new point?: Yes. CONST_ROADMAP_DECISION_POINT_MAX_SERIES is 60, and the gate point alone stays below the cap. [sources: src/devops_cli/config/constants.py:4474, src/devops_cli/roadmap/decision_point.py, tests/roadmap/test_roadmap_decision_point.py]
  • Which parts of the issue cannot land in this change?: The implement.command_audit point and the S7-S9 replay. The audit point has no named consumer. The replay needs a transcript corpus and a live run against Job logs, and its result is a pull request comment. Each part becomes its own issue. (best practice) [sources: src/devops_cli/roadmap/decision_registry.py, src/devops_cli/roadmap/decision_table.py]
    • Chosen: Defer the audit point and the replay. The gate point is the scope of the title, and neither deferred part has a consumer or its data.
    • Rejected: Build both in this change. The replay has no corpus, and the audit point has no caller.
    • Rejected: Drop both. The audit record and the replay are still wanted.
  • Who turns the point from shadow to on?: The owner, after reading the shadow record and the fit report. This change registers the point and leaves it in 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]
    • Chosen: Leave the point in shadow. No shadow record exists yet, so no fit report supports a live mode.
    • Rejected: Turn the point on in this change. It would run an unfitted cut on live commands.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#6521, #5203, #5204

Activity

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

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    on Nov 12, 2026
  5. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Owner question: Who turns the point from shadow to on? (a person decides)

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

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

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (10)

    Tools considered:

    Searches run:

    • LLM judge dangerous shell commands allowlist blocklist agent guardrails, results: 5
    • runtime command guardrails for AI coding agents shadow mode decision records, results: 5
    • open source guardrail shell command safety LLM agent tool call, results: 5
    • LlamaFirewall GitHub Meta open source LLM guardrail agent command, results: 5
    • Invariant Labs guardrails agent tool call policy runtime open source, results: 5
    • Guardrails AI runtime guardrails for tool calls shell command, results: 5
    • "LlamaFirewall" GitHub, results: 5
    • "guardrails-ai" GitHub runtime guards, results: 5
    • "Invariant" guardrails GitHub agent security, results: 5
    • NVIDIA NeMo Guardrails tool call safety documentation, results: 5

    Sources:

  7. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor

    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.

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

    @devops-cli-service
    Contributor

    Owner question: See the first point of Open questions in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  9. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    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.

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/highpriority/p2-mediumscope/roadmapsource/agentstatus/newtype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions