import type { Decision } from './decision.ts'; import { type EpistemicStage, type TrustBand, type UncertaintyLevel } from './policy.ts'; /** Which band `E[p]` falls into. D5. */ export declare function trustBand(mean: number): TrustBand; /** Which band `Var[p]` falls into. D5. */ export declare function uncertaintyLevel(variance: number): UncertaintyLevel; /** * Which epistemic stage an evidence mass falls into. D5, revised. * * `n = alpha + beta`, so a fresh entity is `n = 2`: the prior and nothing else. */ export declare function epistemicStage(mass: number, thresholds?: { developingAt: number; establishedAt: number; }): EpistemicStage; export type TrustAssessment = { readonly mean: number; readonly variance: number; /** Evidence mass, `n = alpha + beta`. A fresh entity reads 2. */ readonly mass: number; readonly stage: EpistemicStage; readonly band: TrustBand; readonly uncertainty: UncertaintyLevel; /** What the trust band alone proposed. */ readonly proposed: Decision; /** The binding ceiling, after epistemic stage, uncertainty and anomaly. */ readonly ceiling: Decision; /** The advice: `proposed`, lowered to `ceiling` if it exceeded it. */ readonly decision: Decision; readonly capped: boolean; readonly reason: string; }; export type AssessOptions = { /** * Whether the anomaly dimension concurs that observed behavior is diverse * enough for low variance to be believed. D37. * * `undefined` means no anomaly data exists yet, which is the current state of * the project: not an assertion that behavior is monotonous. */ readonly anomalyConcurs?: boolean | undefined; /** * Permit a full ceiling on low variance alone, with no anomaly concurrence. * * Defaults to `false`: uniform, high-volume traffic drives variance down while * proving very little, and D37 places the fix here rather than in the trust * mathematics. */ readonly allowEscalationWithoutAnomaly?: boolean; readonly thresholds?: { developingAt: number; establishedAt: number; }; }; /** * Read a trust distribution as advice. D5, with the epistemic stage of the D5 * revision and the anomaly concurrence of D37. * * Three ceilings apply and the lowest binds: * * - epistemic stage: has enough evidence arrived to interpret the mean at all * - uncertainty: is the distribution tight enough to act on * - anomaly concurrence: is that tightness earned by varied behavior * * Advisory only; the host decides what to do with the result. D14. */ export declare function assessTrust(mean: number, variance: number, mass: number, options?: AssessOptions): TrustAssessment; //# sourceMappingURL=assess.d.ts.map