Skip to content

feat(agent): enforce readonly execution mode#121

Open
zaixiaziyang wants to merge 1 commit into
Stack-Cairn:mainfrom
zaixiaziyang:codex/readonly-agent-tool-boundary
Open

feat(agent): enforce readonly execution mode#121
zaixiaziyang wants to merge 1 commit into
Stack-Cairn:mainfrom
zaixiaziyang:codex/readonly-agent-tool-boundary

Conversation

@zaixiaziyang

Copy link
Copy Markdown

Summary

  • Add Chat, Read-only Agent, and Agent permission modes across the desktop GUI, WebUI, and Gateway normalization.
  • Apply one allowlist to both model-visible tool schemas and actual tool dispatch; unclassified tools default to denied.
  • Make readonly runtime Memory read-only and disable TodoWrite, hooks, silent memory extraction, uploads, Skills mutation, Cron, SSH, Tunnel, MCP configuration writes, and dynamic MCP tools.
  • Force delegated agents to readonly mode, hide worktree and merge-back fields, and reject invalid batches before worktree creation.

Testing

  • GUI settings, tool-policy, and subagent tests: 69 passed
  • WebUI settings tests: 27 passed; full WebUI frontend suite passed
  • GUI and WebUI production builds
  • Biome diagnostics on changed files and git diff --check

Notes

The full GUI suite has five unrelated Windows baseline failures: one LF-only builtin-skill assertion and four shell parsing tests that fall through to the Tauri mock. The affected readonly tests pass. A Go toolchain was not available locally, so the small Gateway handler normalization test is left to CI.

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