/** * ATR Quality Standard — Confidence Scoring * * Pure function implementing the RFC-001 §2 confidence formula: * * confidence = round( * precision_score * 0.40 * + wild_validation * 0.30 * + coverage_score * 0.20 * + evasion_docs * 0.10 * ) * * @module agent-threat-rules/quality/compute-confidence */ import type { ConfidenceScore, DeploymentRecommendation, RuleMetadata } from "./types.js"; /** * Compute the confidence score for a rule. * * Score is in [0, 100]. Higher is more trustworthy. * * @param rule - Rule metadata (vendor-agnostic) * @returns Score breakdown and total */ export declare function computeConfidence(rule: RuleMetadata): ConfidenceScore; /** * Map a confidence score to a deployment recommendation. * * This is the consumer-facing signal: "should I deploy this rule in * blocking mode, alert mode, or not at all?" */ export declare function deploymentFor(score: number): DeploymentRecommendation; /** * Apply the cross-context penalty to a match's contribution. * * When a rule designed for one scan context (e.g. MCP runtime) fires in * a different context (e.g. SKILL.md static scan), the match's contribution * is downweighted by 0.7. This prevents cross-context noise from inflating * overall detection confidence. * * @param score - The base confidence score of the rule * @param isCrossContext - True if the match is outside the rule's native context * @returns Adjusted score */ export declare function applyCrossContextPenalty(score: number, isCrossContext: boolean): number; //# sourceMappingURL=compute-confidence.d.ts.map