/**
 * Session domain state — tracks the active host session lifecycle,
 * recovery machine state, lineage, and identity metadata.
 */
/**
 * Returns the default initial state for the session domain.
 */
export function createInitialSessionState() {
    return {
        revision: 0,
        lastUpdatedAt: 0,
        source: 'init',
        id: '',
        projectRoot: '',
        userId: undefined,
        status: 'initializing',
        startedAt: 0,
        endedAt: undefined,
        recoveryState: 'loading',
        isResumed: false,
        resumedFromId: undefined,
        wasRepaired: false,
        recoveryError: undefined,
        lineageId: '',
        lineage: [],
        compactionState: 'idle',
        lastCompactedAt: undefined,
        compactionMessageCount: undefined,
    };
}
