footprintjs - v11.2.0
    Preparing search index...

    Interface SubtreeSnapshot

    The result of navigating to a subtree within a snapshot.

    interface SubtreeSnapshot {
        executionTree: StageSnapshot;
        history?: readonly unknown[];
        initialState?: Record<string, unknown>;
        narrativeEntries?: CombinedNarrativeEntry[];
        sharedState?: Record<string, unknown>;
        subflowId: string;
    }
    Index
    executionTree: StageSnapshot

    The execution tree rooted at this subflow.

    history?: readonly unknown[]

    The subflow's OWN commit log (treeContext.history) — the per-subflow audit trail. This is the public door to a subflow's commits (the run-level commitLog carries only the subflow's MOUNT boundary, not its inner stages — subflows run in isolated runtimes; see docs/design/subflow-commit-visibility.md). findLastWriter/causalChain/ commitValueAt can run PER-SCOPE over this. Absent when subflowResults was not populated. For a LOOPING subflow this is the LAST iteration; address a specific iteration by passing its mount runtimeStageId as the path.

    initialState?: Record<string, unknown>

    The subflow's OWN fold base — the state its isolated runtime started from, before its first commit (treeContext.initialState). Pair it with history to fold the subflow's state at any of its commits: stateAt(subtree, i) from foottrace reads exactly these two fields. Normally {} — a subflow's inputMapper seed is its first COMMIT, not a pre-run base.

    narrativeEntries?: CombinedNarrativeEntry[]

    Narrative entries scoped to this subflow (between entry/exit events).

    sharedState?: Record<string, unknown>

    Shared state scoped to this subflow (from subflowResults if available).

    subflowId: string

    The subflow ID that was matched (last segment of the path).