Module lifecycle
Expand description
Atomic trial ownership and lifecycle capability.
Storage remains the compatible CRUD/read-model
seam. This module is a
deliberately narrow opt-in capability for backends that can make trial
ownership, leases, and terminal transitions one transaction. The types in
this module are capability values, not wire DTOs: backends may encode them
privately when a transport adapter is added later.
Structs§
- Abandon
Request - Input to the conditional reservation-abandon operation.
- Claim
Request - Input to an atomic claim.
- Fail
Stale Request - Input to conditional stale-worker failure.
- Fenced
Mutation Request - Input to an ownership-fenced mutation.
- Finalized
State Request - A post-terminal, trial-scoped state replacement.
- Lease
Observation - A read-only complete lease observation used for conditional failover.
- Renew
Request - Input to a lease renewal.
- Reserve
AndCreate Request - Input to
TrialLifecycleStorage::reserve_and_create_if_budget. - Terminal
Request - Input to an atomic terminal transition.
- Trial
Owner Token - Opaque owner/epoch fence returned by a successful claim.
- Trial
Reservation - Opaque capability proving that a trial was created by a lifecycle reserve.
Enums§
- Claim
Target - The two trial kinds that can be atomically claimed.
- Fenced
Mutation - One ownership-fenced mutation.
- Reservation
Outcome - The result of an atomic budget reservation.
- Terminal
Outcome - An atomic terminal result.
Traits§
- Trial
Lifecycle Storage - Atomic ownership/lifecycle operations for a storage backend.
Type Aliases§
- Param
Write - One parameter/distribution/value entry written by a lifecycle operation.
- Reserve
Outcome - Alias emphasizing that the outcome belongs to the reserve-and-create operation.