/**
 * NullPolicyEngine — allows everything, zero overhead.
 *
 * ADR-025: Feature flag OFF. Default engine when no security config is set.
 * Returns a pre-allocated frozen object — no allocation per call.
 */
import { POLICY_ALLOW, type IPolicyEngine, type IPolicyDecision, type IPolicyRequest } from './IPolicyEngine.js';

export class NullPolicyEngine implements IPolicyEngine {
  readonly name = 'null';

  evaluate(_request: IPolicyRequest): IPolicyDecision {
    return POLICY_ALLOW;
  }
}
