MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / lifecycle_lookup

Function lifecycle_lookup

libatomic/src/daemon/provenance_core.rs:350–358  ·  view source on GitHub ↗
(
    store: &RedbChangeStore,
    session_id: &str,
    turn_number: u32,
)

Source from the content-addressed store, hash-verified

348}
349
350fn lifecycle_lookup(
351 store: &RedbChangeStore,
352 session_id: &str,
353 turn_number: u32,
354) -> Result<Option<StoredProvenanceTurn>, JournalError> {
355 store
356 .get_provenance_turn_for(session_id, turn_number)
357 .map_err(|error| JournalError::store(ErrorCode::ProvenanceLifecycle, error))
358}
359
360/// Stop a running turn. Like the legacy owner, the looked-up turn's own
361/// current generation performs the transition — a lookup never grants a

Callers 4

stop_turnFunction · 0.85
resume_turnFunction · 0.85
abandon_turnFunction · 0.85
get_turnFunction · 0.85

Calls 2

storeFunction · 0.85

Tested by

no test coverage detected