Skip to content

feat(governance): rewrite Auto-mode inspection onto dedicated tools - #360

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/auto-readonly-tools
Aug 16, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/auto-readonly-tools

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

Auto mode no longer allowlists bash(ls|rg|fd|cat|head|git status|diff|log). Workspace inspection is rewritten onto dedicated tools before HITL:

  • ls / find / fd → ls or fffind
  • rg / grep → ffgrep
  • cat / head / tail → read_file
  • readonly git → the git tool

Compound inspection (ls && find) is redirected instead of prompted. Mutating git, pipes, and real shell work still ask.

This matches how Claude Code / Codex keep listing, search, and git as first-class tools and only send real work to the shell.

Also

  • Adds a confined ls builtin
  • Tightens the system prompt and Accept Edits seed
  • Updates status / transcript labels and README

Validation

  • cargo test --package forge-governance --package forge-tools --package forge-core --locked --all-targets

Map bash ls/find/rg/cat/head/git-read onto ls, fffind, ffgrep, read_file,
and git before HITL so Auto no longer allowlists those shells. Compound
inspection is redirected; real shell work still asks.
@github-actions
github-actions Bot enabled auto-merge (squash) August 16, 2026 08:27
@github-actions
github-actions Bot merged commit 8a5a18a into main Aug 16, 2026
7 checks passed
mohitranka added a commit that referenced this pull request Aug 21, 2026
…360)

Map bash ls/find/rg/cat/head/git-read onto ls, fffind, ffgrep, read_file,
and git before HITL so Auto no longer allowlists those shells. Compound
inspection is redirected; real shell work still asks.
mohitranka added a commit that referenced this pull request Sep 11, 2026
…360)

Map bash ls/find/rg/cat/head/git-read onto ls, fffind, ffgrep, read_file,
and git before HITL so Auto no longer allowlists those shells. Compound
inspection is redirected; real shell work still asks.
mohitranka added a commit that referenced this pull request Sep 11, 2026
…360)

Map bash ls/find/rg/cat/head/git-read onto ls, fffind, ffgrep, read_file,
and git before HITL so Auto no longer allowlists those shells. Compound
inspection is redirected; real shell work still asks.
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