FlowGuard API - v1.2.0-rc.2
    Preparing search index...

    Interface RailContext

    Utilities injected into every rail. These are pure helpers — no business logic, no persistence.

    interface RailContext {
        now: () => string;
        digest: (text: string) => string;
        policy?: FlowGuardPolicy;
    }
    Index

    Properties

    Properties

    now: () => string

    Current ISO-8601 timestamp. Injected for deterministic testing.

    digest: (text: string) => string

    SHA-256 hex digest of a string.

    FlowGuard policy for this session. Undefined → TEAM_POLICY behavior (safe default). Set by the tool layer after resolving from state.policySnapshot or config.