Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix: prioritize scope violations over file-read review

8 months ago

824b207
Authored
mweinbach2/14/2026, 4:52:49 PM
Report outside_allowed_scope before file_read_command_requires_review so out-of-scope cat/head/tail/man commands surface the more security-relevant risk code. Add regression tests for both out-of-scope and in-scope file-read classification.

Co-authored-by: Cursor <cursoragent@cursor.com>

Parent11adce3

2 files changed
  • src/utils/approval.ts+4−4
  • test/approval.test.ts+27−0