Skip to main content

Module lifecycle

Module lifecycle 

Source
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).