Expand description
Actor lifecycle operations — freeze, unfreeze, terminate.
Covers: PIP-001 §7 (agent conditional existence), §5/§6 (actor types), whitepaper §3 invariant 6 (governance auditable).
PIP-001 §5/§6: Only humans create agents. Agents cannot manage other agents. §6 corollary: Orphan problem eliminated (human creators cannot be terminated).
Lifecycle operations are triggered by submitting actions with: target = “actor/{actor_id}” action_type = Mutate payload.op = “freeze” | “unfreeze” | “terminate”
Functions§
- check_
lineage_ active - Check existence conditions for an actor (PIP-001 §7).
- execute_
freeze - Execute a freeze operation: set target to frozen status, cascade to dependents.
- execute_
unfreeze - Execute an unfreeze operation: set target to active status.
- execute_
update_ energy_ share - Execute an update_energy_share operation: change the target’s energy_share.
- parse_
lifecycle_ op - Parse a lifecycle operation from an action target + payload.
- validate_
lifecycle_ authorization - Validate that the initiator is authorized to perform a lifecycle operation on the target actor (PIP-001 §5/§6 authorization rules).