Emergency Control

Sub-500ms.
Cannot Be Disabled.

Two modes. Eight trigger reasons. Zero bypass paths. When you need to stop your AI, it stops.No user, agent, or policy can prevent it.

<500ms
Response time
2
Kill modes
8
Trigger reasons
0
Bypass paths
Emergency kill switch. Always armed.
Kill Modes

Two Modes. Choose Your Level.

Soft Kill

Completes the current action, then stops all AI operations. Data access is preserved. State remains consistent. This is the graceful shutdown path.

Current operation completes normally
No new operations accepted
Data access preserved for review
Clean state guaranteed
$ qp kill --soft

Hard Kill

Immediate termination of all operations. May leave state inconsistent. Use only in genuine emergencies: when waiting for completion is itself dangerous.

Immediate process termination
All inference halted mid-generation
State may be inconsistent
Emergency use only
$ qp kill --hard

Why It Exists

Real scenarios. Real kill reasons. Every activation is logged.

RUNAWAY_AGENT

Agent consuming unbounded resources or stuck in an infinite loop.

HARMFUL_OUTPUT

Agent producing content that violates safety policies.

POLICY_VIOLATION

Automated policy check detected a governance breach.

HUMAN_OVERRIDE

Operator needs immediate control over AI operations.

RESOURCE_EXHAUSTION

Memory, CPU, or storage approaching critical thresholds.

SECURITY_BREACH

Potential compromise detected by monitoring systems.

DATA_LEAK_RISK

Agent attempting to access or transmit restricted data.

MAINTENANCE

Planned shutdown for system maintenance or upgrades.

The Guarantee

Three Non-Negotiable Properties

Cannot Be Disabled

No user, agent, policy, or configuration can disable the kill switch. It runs on a separate control plane that is architecturally isolated from the AI runtime.

Separate Control Plane

The kill switch operates on its own execution path. Even if the AI runtime is frozen, deadlocked, or unresponsive, the kill signal reaches the process manager.

Immutable Audit Record

Every activation creates a sealed Capsule record with the trigger reason, timestamp, operator identity, and outcome. This record cannot be modified or deleted.

OS Signal Handling

SIGINT to Soft. SIGTERM to Hard.

The kill switch integrates with OS-level signals. Pressing Ctrl+C triggers a soft kill. Sending SIGTERM triggers a hard kill. Both create KillEvent records and run cleanup callbacks.

SIGINT (Ctrl+C): maps to soft kill
SIGTERM: maps to hard kill
Cleanup callbacks for inference pause
Vault isolation on security-triggered kills
Every signal creates an immutable KillEvent
signal_handler
# OS signal handling
$ qp serve
[core] Quantum Pipes v0.51.0 started.
[core] Kill switch armed.
[core] Signal handlers registered.
# User presses Ctrl+C
[kill] SIGINT received. Soft kill initiated.
[kill] Completing current operations...
[kill] Inference paused.
[kill] Vault access preserved.
[kill] KillEvent capsule sealed.
[kill] Reason: HUMAN_OVERRIDE
[kill] Mode: SOFT
[kill] Duration: 127ms

Control That
Means Control.

Not a settings toggle. Not a soft preference. A hardware-grade emergency stop that no software can override. Because AI without a kill switch is not AI you control.

NIST AI RMF ISO 27001 Sub-500ms