Skip to content

feat(cli): add non-interactive permission controls - #751

Merged
likun666661 merged 1 commit into
apache:mainfrom
likun666661:issue-730-slice3-permission-controls
Jul 12, 2026
Merged

likun666661 merged 1 commit into
apache:mainfrom
likun666661:issue-730-slice3-permission-controls

Conversation

@likun666661

Copy link
Copy Markdown
Member

Summary

  • add --permission-mode explore|execute|bypass to maka run / maka -p while keeping explore as the default and rejecting interactive ask
  • add repeatable --allow / --deny rules for canonical category:<name> matches and exact Bash(<command>) matches
  • evaluate explicit deny before allow and the base mode, including for bypass mode and tools that normally skip permission prompts
  • keep rules invocation-local and emit auditable deny decisions so RuntimeRunner preserves the exit-1 permission failure contract

Part of #730 (Slice 3).

Testing

  • npm --workspace @maka/core test (802 passed)
  • npm --workspace @maka/runtime test (1283 passed, 2 skipped)
  • npm --workspace maka-agent test (272 passed)
  • npm --workspace @maka/headless test (794 passed, 1 skipped)
  • npm run typecheck
  • git diff --check upstream/main...HEAD

@likun666661
likun666661 merged commit ed24550 into apache:main Jul 12, 2026
3 checks passed
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.

1 participant