// transports/middleware/overrides.ts — Per-tool middleware override allowlist (SPEC-740)
/**
 * Allowlist of per-tool middleware overrides.
 * Any entry without `justification` will fail the CI lint (overrides-shape.test.ts).
 */
export const TOOL_OVERRIDES = {
    planu_status: {
        skipTelemetry: true,
        justification: 'high-frequency status probe — telemetry would create excessive noise',
    },
};
/**
 * Returns true if the given tool should skip the specified middleware type.
 */
export function shouldSkip(toolName, flag) {
    const override = TOOL_OVERRIDES[toolName];
    if (override === undefined) {
        return false;
    }
    return override[flag] === true;
}
//# sourceMappingURL=overrides.js.map