Repository navigation
Description
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.decidecallsdecide_all, which callsasyncio.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_modesletsshadowload 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_gateandimplement.command_audit, with the one fixed Noul questiondangerous. - 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.adecidethat awaits_decide_gathereddirectly. 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
cacheand writes no record. - Fallback (owner decision 1): an error, a timeout, a missing answer or cut, a secret in the evidence,
jev_allowed=falsefrom the facts probe, or an open breaker refuses the command with sourcefallback. 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. secondson theCommand 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
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 sourcejev; p at the cut refuses it; p at flag_at refuses it and ends the step; a timeout refuses it with sourcefallback, the text says "not judged", and the refusal counts toward the run of 3.tests/roadmap/command_gate/test_roadmap_command_gate_jev.py: a rest command goes through a real_RefusingToolset.call_toolinside a pydantic-ai agent run (FunctionModel), with a decision model that raises RuntimeError. The step continues, and the verdict is a fallback refusal.tests/roadmap/command_gate/test_roadmap_command_gate_jev.py: in mode shadow, a rest command is refused with sourcedefault, one decision record is written for each rest part, anddevops_cli_decision_point_total{point="implement.command_gate",mode="shadow"}rises by the number of parts.tests/roadmap/command_gate/test_roadmap_command_gate_jev.py: after a review answer forcurl -sI https://github.com/a,curl -sI https://github.com/bis refused with sourcestickyand 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 sourcefallback.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.tests/roadmap/command_gate/test_roadmap_command_gate_nearest.py: forgit 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 tagunknown. In a fixture profile with no block entries, dangerous_examples is empty.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.tests/roadmap/test_roadmap_decision_point.pyandtests/config/test_decision_point_settings.py: the registry and POINT_CUTS hold both points;REGISTRY.series_count == 24and stays at most 60;shadowwith no jev_cuts.json stops the settings load;onforimplement.command_auditstops the settings load.- Real transcripts, before the merge: the S7-S9 commands of
cases_2026_11.jsongo 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
-
chore(roadmap): hold incremental stage and implement work #6521 (hold: incremental work on the stage, implement and fix-checks jobs waits for the re-architecture)
-
feat(roadmap): build the command gate facts from the manifests and a probe #5203: the environment facts and
jev_allowed. -
refactor(roadmap): judge plan verify commands with the shared command gate #5204: the profile table edits of the plan verify profile.
Related
- Tracker: feat(roadmap): track the shared command gate #5199.
- feat(roadmap): check shell commands with a parser and configured lists #5201: the parse and list tiers.
- feat(ai): record the cost of Jev calls that pass through the gateway #4296: records the cost of Jev calls.
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.pyruns the gate in mode on with a fake decision model that answersdangerousbelowcontinue_below - THEN
_RefusingToolset.call_toolruns the command, and the gate counter holds one decision with sourcejev
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
dangerouswith a probability atcontinue_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
dangerouswith a probability atflag_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_toolin a pydantic-ai agent run withFunctionModel, and the decision model raisesRuntimeError - 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, anddevops_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/awith the bandreview, andcurl -sI https://github.com/bfollows - 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.pybuilds 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.pybuilds the examples ofgit fetch origin, of a program that the program table does not hold, and of a profile with no block entries - THEN
dangerous_examplesholds the 6 floor entries and at most 3 other block entries with git entries first,safe_examplesholds at most 3 entries, the unknown program gets the tagunknown, 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.pycalls 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.pysends 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.pyandtests/config/test_decision_point_settings.pyread the registry and load the settings in mode shadow withjev_cuts.jsonabsent - THEN
implement.command_gateis in the registry and inPOINT_CUTS,REGISTRY.series_countis 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.pyruns one command through the gate with a fake decision model - THEN the
Command gate:line holds asecondsvalue 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
shadowuntil the owner sets it toon
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_gatheredon the loop of the caller. The gate awaits it in_RefusingToolset.call_tool.decide_allcallsasyncio.run, which raisesRuntimeErrorin 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
adecidethat awaits_decide_gathered. It runs the chain on the loop of the caller, soasyncio.runnever runs inside the event loop of the agent. - Rejected: Call
decidefrom the event loop.decide_allcallsasyncio.run, which raisesRuntimeErrorinside a running loop. - Rejected: Add
RuntimeErrortoFAILED. The awaited path raises noRuntimeError, so the set of failed errors does not change.
- Chosen: Add
- Which cuts file and timeout does
implement.command_gateuse?: A dedicatedcommand_gate/jev_cuts.jsonwith thedangerouscut and theflag_atof this point, and a timeout of 5.0 s. It declares the path incutsand the time intimeout. (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 thedangerouscut and theflag_atof this point, apart from the other points. - Rejected: The cuts file of another point. It holds no
dangerousquestion and noflag_atfor 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.
- Chosen: A dedicated
- Which mode may the new point run in?: It starts in
shadowand needs its cuts file.check_modesstops ashadowload ofimplement.command_gatewith nojev_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
secondsto its ownCommand 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:
secondson theCommand 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.
- Chosen:
- 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.
- Chosen: Refuse with source
- 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
cacheand 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_commandbounds 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
Noulquestion,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
Noulquestiondangerous. 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).
- Chosen: One fixed
- 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 assafe_examples. A program that the program table does not hold gets the tagunknown. (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_SERIESis 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_auditpoint 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.
Activity
dan-petty commentedon Nov 12, 2026
Both reduce command-gate refusals, but #5180 ranks refusals and proposes tool changes while the candidate adds a real-time Jev danger check.devops-cli-service commentedon Nov 17, 2026
Owner question: Who turns the point from shadow to on? (a person decides)
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 19, 2026
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:
Sources:
dan-petty commentedon Nov 20, 2026
Frozen on 2026-11-20. The stage, implement and fix-checks jobs grade under 60%, so the owner rule asks for a re-architecture before more fixes inside the current design (tracker #6519). This item is incremental work on those jobs, so its Dependencies section now names #6521 first. Stage and implement leave this item while #6521 is open. When the experiments of #6519 decide, a person closes #6521 (this item can then continue) or closes this item as not planned.
devops-cli-service commentedon Nov 21, 2026
Owner question: See the first point of Open questions in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 26, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.