/**
 * Permissions domain state — tracks the permission mode, session approvals,
 * and the most recent permission decision with full audit trail.
 */
/**
 * Returns the default initial state for the permissions domain.
 */
export function createInitialPermissionsState() {
    return {
        revision: 0,
        lastUpdatedAt: 0,
        source: 'init',
        mode: 'default',
        awaitingDecision: false,
        decisionMachineState: undefined,
        sessionApprovals: new Map(),
        approvalCount: 0,
        denialCount: 0,
        lastDecision: undefined,
        totalChecks: 0,
        cachedChecks: 0,
    };
}
