Expand description
Cooperative cancel and FINALIZE ledger. One-shot lifecycle: INIT → EXECUTE → FINALIZE → EXIT.
§Flow
Lifecycle::newcreates cancel token and resource ledger- Commands may mark Chrome PID / profile in
ResourceLedger Lifecycle::finalizeis idempotent and safe to call multiple timesDropalso calls finalize as a safety net
§Safety
On Unix, finalize may send SIGTERM/SIGKILL to a recorded Chrome PID as
last resort when primary Browser.close reap did not clear the ledger.
Profile dirs and Chrome Singleton side-channels are wiped only when
recorded in this ledger (never a host-wide chrome wipe).
Structs§
- Lifecycle
- Runtime token for cooperative cancel and FINALIZE.
- Resource
Ledger - Ledger of resources owned by this invocation (browser, profile, temp dirs).
Functions§
- mark_
profile_ dir - Record a temporary Chrome profile directory on the ledger for FINALIZE wipe.
- mark_
side_ channel - Record a side-channel path (SingletonLock, etc.) owned by this launch.