/**
 * Trust assessment — frozen result of evaluating writer trust.
 *
 * The verdict is derived at construction and immutable. The assessment
 * captures a complete snapshot of the evaluation: which writers were
 * checked, why each passed or failed, and the evidence summary.
 *
 * @module domain/trust/TrustAssessment
 * @see docs/specs/TRUST_CRYPTO_ALGORITHM.md Section 12
 */
import { deriveTrustVerdict } from "./verdict.js";
// -- TrustAssessment class ----------------------------------------------------
class TrustAssessment {
    trustSchemaVersion = 1;
    mode = 'signed_evidence';
    trustVerdict;
    trust;
    constructor(detail) {
        const input = {
            status: detail.status,
            untrustedWriters: detail.untrustedWriters,
        };
        this.trustVerdict = deriveTrustVerdict(input);
        this.trust = Object.freeze(detail);
        Object.freeze(this);
    }
}
export { TrustAssessment };
