Struct RuntimeLifecycleSnapshot
Defined in File runtime-lifecycle.h
Struct Documentation
-
struct RuntimeLifecycleSnapshot
Current milestone and retained terminal outcome, safe after Runtime destruction.
Stopped means ordered cleanup was attempted. A failed cleanup is recorded; it does not establish successful native resource release.
Public Members
-
std::uint64_t session = 0
Checked single-session identity.
-
std::uint64_t sequence = 0
Advances for milestones and request admission/cancellation; not necessarily consecutive per channel.
-
std::chrono::steady_clock::time_point observed_at = {}
Time of the latest committed lifecycle fact.
-
RuntimeStage stage = RuntimeStage::Unstarted
Latest selected milestone.
-
ShutdownCause cause = ShutdownCause::None
Committed shutdown cause, if any.
-
bool reached_ready = false
Ready was reached before shutdown; remains true during teardown.
-
bool stop_requested = false
Shared unconditional/committed stop has been requested.
-
bool closed = false
Terminal source closure; observation remains readable.
-
InitializedCapabilities initialized
Successful startup milestones, including partial startup.
-
std::optional<ShutdownRequest> pending_request
Admitted ordinary request awaiting a decision.
-
std::optional<ShutdownRequest> committed_request
Accepted request that committed shutdown, when applicable.
-
std::optional<ShutdownRequest> superseded_request
Ordinary request displaced by forced stop/failure.
-
RuntimeOutcome outcome = RuntimeOutcome::Pending
Terminal completion/failure, finalized at Stopped.
-
RuntimeFailure primary_failure
Owned primary exception summary; original direct exception still propagates.
-
std::array<RuntimeFailure, 8> secondary_failures = {}
First bounded cleanup/secondary failure summaries.
-
std::uint64_t secondary_failure_count = 0
Total; entries beyond the fixed array are omitted.
-
RuntimeStats stats
Final counters populated at Stopped; not a live scheduler admission policy.
-
std::uint64_t session = 0