vigiles API reference
    Preparing search index...

    Function decideHook

    • Decide whether a hook result blocked, and the normalized decision. Pure, so the policy is unit-testable independent of spawning anything.

      Folds the closed BLOCK_MECHANISMS table rather than testing three conditions inline, so a mechanism cannot be declared and left unhandled.

      Parameters

      Returns {
          blocked: boolean;
          blockedBy: readonly BlockMechanism[];
          decision: "approve" | "block" | "allow" | "deny" | "ask" | undefined;
          haltsTurn: boolean;
      }