Skip to content

SAF-001: Kill Switch for All Agent and MCP Operations

This Reference preserves the recorded requirement contract. The front matter states its lifecycle status; this editorial notice does not change that status. An ACTIVE contract is not a historical implementation or qualification result. The statement, rationale, identifiers, and traceability below keep their recorded meaning. The original file is available at source revision 6d35d245f11a.

Statement

The platform shall provide an emergency kill switch (CLI command and UI button) that instantly terminates all MCP server processes and optionally pauses or stops all lab containers, halting all autonomous agent activity.

Rationale

Required before any autonomous agent operation. RedTeamLLM includes a kill switch as a safety requirement. Without one, a misbehaving agent cannot be stopped short of killing the host process.

Traceability

  • DOCUMENTS → GITHUB_ISSUE 229 (SAF-001: Kill Switch for All Agent and MCP Operations)
  • IMPLEMENTS → CODE_FILE src/aptl/core/kill.py (Kill switch core logic)
  • IMPLEMENTS → CODE_FILE src/aptl/cli/kill.py (Kill switch CLI command)
  • IMPLEMENTS → CODE_FILE src/aptl/api/routers/kill.py (Kill switch API endpoint)
  • TESTS → TEST tests/test_kill.py (Kill switch core logic tests)
  • TESTS → TEST tests/test_cli_kill.py (Kill switch CLI tests)
  • TESTS → TEST tests/test_api_kill.py (Kill switch API endpoint tests)