/** Reads optional kit.phaseJournal policy flags from effective workspace config. */
export function readPhaseJournalKitPolicy(effective) {
    const kit = effective?.kit;
    if (!kit || typeof kit !== "object" || kit === null || Array.isArray(kit)) {
        return { requirePolicyApprovalForCriticalDismissSupersede: false };
    }
    const pj = kit.phaseJournal;
    if (!pj || typeof pj !== "object" || pj === null || Array.isArray(pj)) {
        return { requirePolicyApprovalForCriticalDismissSupersede: false };
    }
    const flag = pj.requirePolicyApprovalForCriticalDismissSupersede;
    return { requirePolicyApprovalForCriticalDismissSupersede: flag === true };
}
