/** * Trust algebra: concrete semiring operations for agent trust scoring. * * (TrustScores, max, ×, 0, 1) — standard algebraic path problem. * Multiplicative discount for serial chains, max for parallel paths. * * These are protocol-level primitives: any compatible implementation * must compute trust the same way for interoperable routing. */ import type { TrustTransitionThresholds, AgentTrustLevel } from "./index.js"; /** * Canonical AgentTrustLevel → [0,1] mapping (single source of truth). * * Uses string literals instead of enum computed keys to avoid circular * initialization between trust-algebra.ts ↔ index.ts. The values match * AgentTrustLevel enum values exactly. */ export declare const TRUST_LEVEL_SCORES: Record; /** Convert a trust level to its numeric score. */ export declare function trustLevelToScore(level: AgentTrustLevel | string): number; /** Semiring zero — annihilator for ⊗, identity for ⊕. */ export declare const TRUST_ZERO = 0; /** Semiring one — identity for ⊗. */ export declare const TRUST_ONE = 1; /** ⊕: parallel paths — pick the best route. */ export declare function trustAdd(a: number, b: number): number; /** ⊗: serial chain — discount per hop. */ export declare function trustMultiply(a: number, b: number): number; /** Fold a chain of trust scores with ⊗. Empty chain → 1.0 (identity). */ export declare function composeTrustChain(scores: number[]): number; /** Fold parallel route scores with ⊕. No routes → 0.0 (identity). */ export declare function joinParallelRoutes(scores: number[]): number; export declare const REFERENCE_TRUST_THRESHOLDS: TrustTransitionThresholds; //# sourceMappingURL=trust-algebra.d.ts.map