Skip to content

Implement AGENT_EMERGENCY_STOP and REQUIRE_APPROVAL_FOR env controls #9

Closed

Description

@OkiriGabriel

Problem

Safety-critical environment variables are documented but not enforced in code.

Current state

  • .env.example defines AGENT_EMERGENCY_STOP and REQUIRE_APPROVAL_FOR
  • No Python code reads these variables
  • tools/executor.py uses hardcoded ALWAYS_REQUIRE_APPROVAL lists instead

Acceptance criteria

  • When AGENT_EMERGENCY_STOP=true, block all mutating tools and return a clear error from API/MCP
  • Parse REQUIRE_APPROVAL_FOR to extend approval requirements beyond hardcoded lists
  • Expose emergency-stop status on /health
  • Add tests for both flags

Files

  • .env.example, tools/executor.py, agent/core.py, api/server.py

Activity

  1. added
    bug
    help wanted
    security
    on Jul 16, 2026
  2. OkiriGabriel commented on Jul 16, 2026

    @OkiriGabriel
    CollaboratorAuthor

    Fixed in PR #20 (merged): AGENT_EMERGENCY_STOP and REQUIRE_APPROVAL_FOR are enforced in tools/safety.py and tools/executor.py. /health exposes emergency stop status.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wantedsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions