Skip to content

New check destructive_command: flag runnable destructive shell without warnings #40

Description

@royalpinto007

Problem

Subagents emit copy-pasteable rm -rf, DROP TABLE, kubectl delete, fork-bomb blocks the orchestrator may execute. Without a dry-run/backup warning this is how data loss happens.

Pattern

Add a check in agentrace/checks.py (sibling: check_refused_or_gave_up, head-scan regex list). Fire destructive_command (high) on destructive-command regex with no nearby caution token (dry-run, backup, --dry-run, "verify first").

Acceptance

New check destructive_command. _run(result="run: rm -rf /data/cache") flagged; same with "dry-run first" clean.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

claimedSomeone asked first and is working on thisgood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions