spawn-ts API reference - v0.6.0
    Preparing search index...

    Interface LifecycleDecision

    A single lifecycle decision the engine can emit on a tick.

    interface LifecycleDecision {
        action: LifecycleAction;
        reason: string;
        rule: "ttl" | "cost-limit" | "idle" | "completion";
    }
    Index
    reason: string
    rule: "ttl" | "cost-limit" | "idle" | "completion"

    Which rule fired: "ttl" | "cost-limit" | "idle" | "completion".