docs: add presentation projection comment to projectTransientState

This commit is contained in:
lda
2026-07-09 15:29:20 +07:00 Verified
parent 4b9fc58097
commit bc3d912537
@@ -106,6 +106,9 @@ export const useDemoTimeline = (
setTrace(null); setTrace(null);
}, []); }, []);
// Presentation-only projection: derive transient state (interrupt payload,
// output, trace) from the canonical recording without executing live runtime
// steps. This is a display projection over recorded data, not live evidence.
const projectTransientState = useCallback((events: ReadonlyArray<DemoEvent>, appliedCount: number) => { const projectTransientState = useCallback((events: ReadonlyArray<DemoEvent>, appliedCount: number) => {
const appliedEvents = events.slice(0, appliedCount); const appliedEvents = events.slice(0, appliedCount);
const interruptEvent = appliedEvents.find((event) => event.stage === "interrupt"); const interruptEvent = appliedEvents.find((event) => event.stage === "interrupt");