Skip to content

docs(cli): document commandBlocklist hard command-rejection setting#1210

Merged
shashank-factory merged 3 commits into
mainfrom
ssharma/docs-command-blocklist
Jun 12, 2026
Merged

docs(cli): document commandBlocklist hard command-rejection setting#1210
shashank-factory merged 3 commits into
mainfrom
ssharma/docs-command-blocklist

Conversation

@shashank-factory

Copy link
Copy Markdown
Contributor

Summary

Documents the new commandBlocklist CLI setting (hard command rejection) that ships in the factory-mono PR for cli-791. Blocklisted commands can never run: there is no approval prompt and the block holds even under full autonomy, auto-run, or --skip-permissions-unsafe. Enforcement resolves the actual program being invoked, so wrapper shells, absolute paths, quoting tricks, and command substitution cannot bypass it.

Changes

  • docs/cli/configuration/settings.mdx – new settings-table row, renamed "Command allowlist, denylist & blocklist" section, commandBlocklist bullet, precedence note (blocklist > deny/allow), and example JSON.
  • docs/cli/user-guides/auto-run.mdx – command-policy bullets updated + a <Warning> explaining bypass resistance.
  • docs/enterprise/hierarchical-settings-and-org-control.mdxcommandBlocklist ResponseField in the org-managed settings schema + org example JSON.
  • Mirrored all of the above in the jp/ counterparts.

Notes

Paired with the implementation + review-remediation PR in factory-mono (branch ssharma/cli-791-add-hard-command-rejection-rules-without-approval). No behavior changes here; docs only.

Add the new commandBlocklist option (hard-blocked commands that can never
run, even under full autonomy/auto-run/--skip-permissions-unsafe) alongside
the existing allowlist/denylist docs:

- cli/configuration/settings.mdx: settings table row, section rename, bullet,
  precedence note, and example JSON
- cli/user-guides/auto-run.mdx: command-policy bullets + bypass-resistance
  warning
- enterprise/hierarchical-settings-and-org-control.mdx: ResponseField +
  org example
- mirrored all of the above in the jp/ counterparts
@factory-droid

factory-droid Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Droid finished @shashank-factory's task —— View job


Security Review

The new commandBlocklist docs are clear and consistent across EN/JP. A couple of earlier autonomy-level lines still omit the hard-stop behavior, and the EN enterprise schema appears incomplete (missing wikiCloudSync), so small wording/schema tweaks would prevent confusion between denylist and blocklist.

@mintlify

mintlify Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
factory 🟢 Ready View Preview Jun 9, 2026, 10:33 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Comment thread docs/cli/user-guides/auto-run.mdx
Comment thread docs/jp/cli/user-guides/auto-run.mdx
Comment thread docs/enterprise/hierarchical-settings-and-org-control.mdx
Comment thread docs/enterprise/hierarchical-settings-and-org-control.mdx Outdated
Comment thread docs/jp/enterprise/hierarchical-settings-and-org-control.mdx Outdated
…arma/docs-command-blocklist

# Conflicts:
#	docs/jp/cli/user-guides/auto-run.mdx
@shashank-factory shashank-factory merged commit 49b6625 into main Jun 12, 2026
4 checks passed
@shashank-factory shashank-factory deleted the ssharma/docs-command-blocklist branch June 12, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants