Skip to content

docs(openspec): plan #4004 Add the planner run-command allow-list builder - #4357

Merged
dan-petty merged 1 commit into
mainfrom
feat/4004-allow-list-builder-for-planner-read
Nov 10, 2026
Merged

dan-petty merged 1 commit into
mainfrom
feat/4004-allow-list-builder-for-planner-read

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

Plans #4004

The planner reads files and runs no command, so a plan can rest on a premise that only a run shows. ADR 0018 gives the planner a run tool in a sandbox, and this change adds its first control: the allow-list. The builder reads the read-only rows of the exposure table and narrows each restricted command to its allowed options. A command whose permitted parameters hold a path stays out: a parameter that Typer types as a path, or one that the path confinement table names, such as the text option scan_sast.config. The validator refuses every other command path or option with one reason word, and permits the help form of any command that the Click tree resolves. Tests cover the cases offline, against the real Click tree, and the package layout names the new module.

Change: openspec/changes/4004-allow-list-builder-for-planner-read/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 10, 2026
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 10, 2026 12:47
@dan-petty
dan-petty force-pushed the feat/4004-allow-list-builder-for-planner-read branch 2 times, most recently from e479352 to 811268c Compare November 10, 2026 13:50
@dan-petty
dan-petty force-pushed the feat/4004-allow-list-builder-for-planner-read branch from 811268c to d53e83e Compare November 10, 2026 13:59
@dan-petty
dan-petty merged commit 52d5eb0 into main Nov 10, 2026
25 checks passed
@dan-petty
dan-petty deleted the feat/4004-allow-list-builder-for-planner-read branch November 10, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/openspec OpenSpec changes, specs and their checks type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant