pub async fn assert_lifecycle_store_conformance(
store: &dyn LifecycleStore,
present: &AgentId,
absent: &AgentId,
)Expand description
Assert that a LifecycleStore implementation honors the trait contract.
Drives store through &dyn LifecycleStore and checks:
registerthenheartbeatsucceeds for a registered agentheartbeaton an unregistered agent returnsStorageError::NotFoundderegisterremoves the registration, after whichheartbeatreturnsStorageError::NotFoundderegisteris idempotent for both registered and absent agents
present is registered and deregistered by the harness; absent must be an
agent the store never holds. Panics on the first violated invariant.