@suluk/harden - v0.2.0
    Preparing search index...

    Interface CombinedGrade

    @suluk/harden — schema hardening as a derived, scored contract facet. Audit a v4 'Suluk' document's INPUT schemas for the validations that keep malformed/oversized input from breaking the system, grade them A–F, surface the grade to incentivise the author, and gate CI on a minimum.

    import { auditDocument, assertGrade } from "@suluk/harden"; const report = auditDocument(doc); // { grade, score, byOperation, findings, bySeverity } assertGrade(doc, "B"); // throws if the contract is too weak (the hard incentive)

    interface CombinedGrade {
        worst: Grade;
        average: Grade;
        grades: Grade[];
    }
    Index

    Properties

    Properties

    worst: Grade

    the WORST letter — a contract is as strong as its weakest graded dimension (the safe value to GATE on).

    average: Grade

    the rounded-mean letter (informational — can mask a single failing dimension, so do not gate on it blindly; ties round toward the HIGHER letter, so the masking is always optimistic).

    grades: Grade[]

    the input letters, as given.