feat(ai): add bun/bunx eslint/openspec entries to command-policy allowlist#723
Merged
Conversation
bunx eslint (lint, --fix is git-recoverable) and openspec across its three invocation styles (bunx/npx/bare) were the two tools from the cross-project settings.local.json survey that met the bar: fixed, auditable subcommand surface, no remote write. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
build/outdated/audit/why/info are fixed, bounded operations (build output is deterministic, the rest are read-only registry/lockfile queries). install/add/remove/update/link/unlink/patch/create/publish/ upgrade stay excluded: dependency mutation, arbitrary postinstall scripts, or remote/binary writes. test is the one exception — it runs arbitrary project test-file code rather than a fixed operation, breaking the "bounded surface only" pattern used elsewhere in this catalog. Included anyway: re-approval friction during routine TDD workflows outweighs the risk in practice.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
eslint.toml:bunx eslint= allow (lint by default,--fixis git-recoverable)openspec.toml:bunx openspec/npx openspec/openspec= allow (three invocation styles for the same tool, schema is prefix-keyed)bun.toml:bun build/outdated/audit/why/info/test= allow — fixed/read-only operations, excepttestwhich is a deliberate exception (runs arbitrary project test-file code, kept anyway for TDD workflow convenience)Deliberately excluded:
bun run/barebunx/bun x/repl/exec(unbounded arbitrary code),install/add/remove/update/link/unlink/patch(postinstall lifecycle scripts = supply-chain execution risk),create(downloads+runs template scaffolding),publish(npm registry write),upgrade(mutates the bun binary itself).Follow-up from the cross-project
.claude/settings.local.jsonsurvey noted in PR #719.Test plan
chezmoi data --format jsonconfirms new keys present inai.command_policy.commandschezmoi diffshows correct render into both~/.claude/settings.json(Bash(<cmd>:*)) and Antigravity'ssettings.json(command(<cmd>))