Module execution_owner

Module execution_owner 

Source
Expand description

Stable execution ownership for warm decoder/router workers. A reservation is owned data, never a mutex/TLS guard, and may survive a scheduling yield.

Structs§

AllocationCost
ExecutionChildCapability
Same-thread capability for a synchronous descendant of active trusted work. It expires at that work’s normal completion or unwind. Child reservations cannot release the root owner’s exclusive reservation.
ExecutionIdentity
Instance plus configuration generation. Opaque and independent of addresses, IFC express ids, allocation reuse, and identical bytes in another decoder.
ExecutionLease
Exclusive product reservation. Send, not Clone: no borrow or thread-bound guard survives a poll. Drop releases admission on normal/error/panic paths. This does not prohibit direct router calls: the executor must keep those calls within its product owner while the reservation is live.
ExecutionLeaseId
Unique reservation identity; a later lease on the same owner is distinct.
ExecutionOwner
Private state of one execution owner. Move preserves identity; construction creates a distinct owner. Ordinary nested geometry calls remain permitted.
ExecutionSourceScope
Thread-bound publication of source-borrow authority. No lock is held while extension work runs. Nested decoder borrows restore the enclosing authority; out-of-order drops remove only their own entry.
ExecutionWork
Short-lived trusted execution scope. It borrows its reservation and is thread-bound; no active scope may cross a yield. Dropping it, including on panic, never acknowledges changed configuration. Normal executor completion must explicitly commit against the same live owner’s fresh identity.
SourceResourceContext
Opaque shared resource account. The resource implementation supplies and recovers its concrete account; source authority is validated independently.
SourceStopHandle
Resource-only stop propagation along the actual active source-owner chain. Reuses existing work-epoch storage; no ambient kernel or diagnostic TLS moves.

Enums§

AllocationClass
Classification within one allowance, never a second resource limit.
ExecutionLeaseError
Why an execution lease, work scope or source borrow was refused. Admission/acceptance failures have no geometry or diagnostic side effects.
StorageEvent

Traits§

AllocationAccount
Implementations must allocate nothing, never panic, and consult no ambient account. Refund is cleanup-only and must validate category and total before subtracting. Admission commits cancellation/terminal checks under its ledger lock. Existing cumulative costs are never refunded. This is not source authority.
AllocationObserver
Captured terminal channels only. Implementations release their own locks before consulting another channel, and grant no decoder or execution rights.