Spanda

Kill Switch

Spanda provides first-class kill switch support for emergency stops that bypass noncritical task queues, preempt AI tasks, stop actuators, and record audit events.

Examples:


Syntax

kill_switch EmergencyStop {
    source: hardware.button.E_STOP;
    priority: critical;
    remote_signed;
    action {
        stop_all_actuators();
        enter emergency_mode;
        audit.record("kill_switch_activated");
    }
}

Robot-scoped handler:

robot Rover {
    behavior status() -> Bool {
        return true;
    }

    on kill_switch EmergencyStop {
        stop_all_actuators();
    }
}

Rules

CLI

spanda sim rover.sd --trigger-kill-switch EmergencyStop
# Remote-signed switches require a JSON signature payload at runtime (see spanda_security::SignedMessage)
spanda trace hardware rover.sd   # shows kill switch in traceability matrix