H4Harnessscope: coreweight: 3fix: manual

    H4: No dangerous auto-approve

    Why this rule exists (Empirical Evidence)

    Corpus analysis: 85 repos auto-approve bare Bash (any command), 7 repos approve * (everything), 50 repos auto-approve financial MCP tools, 13 repos use mcp__* wildcard. Bare Bash auto-approve is equivalent to giving the agent root shell access.

    Claude Code Repository Corpus Analysis (2026)
    Anti-pattern (Triggers H4)
    { "permissions": { "allow": ["*", "Bash(*)"] } }  // Unrestricted auto-approve!
    Compliant pattern (Passes H4)
    { "permissions": { "allow": ["Bash(npm test:*)", "Bash(git status)"] } }
    Verify locally or online
    npm install -g agentlint-ai && agentlint check --check H4

    More Harness checks