Integritytypeno test imports ittype Integrity = "hash" | "signature" | "none";How a dialect checks what it installs.
What a dialect of tools says it can guarantee, as data, and whether that meets the control toolIntegrity of a fleet's assurance. A dialect of artifacts and a dialect of a package manager differ a great deal in how exactly they pin and how they check what they install, and a fleet's assurance says how much it needs; this is where the two are compared.
import { meetsIntegrity } from "./guarantees.ts";
// meetsIntegrity("exact-hashed", { pin: "rolling", integrity: "none", ... }) lists the reasons it does notIntegritytypeno test imports ittype Integrity = "hash" | "signature" | "none";How a dialect checks what it installs.
ToolGuaranteestypetype ToolGuarantees = {
/** How exactly it pins. */
readonly pin: PinPolicy;
readonly integrity: Integrity;
/** … (465 characters)type ToolGuarantees = {
/** How exactly it pins. */
readonly pin: PinPolicy;
readonly integrity: Integrity;
/** The scopes it can install in. */
readonly scopes: readonly Scope[];
/** The platforms it can reach. */
readonly platforms: readonly Platform[];
/** Whether it takes the download of a pin or the packages of its manager. */
readonly binds: "pin" | "package";
/** Whether it can build from source. */
readonly sourceBuild: boolean;
};What a dialect of tools guarantees.
ToolDialecttypetype ToolDialect = { readonly id: DialectId; readonly manager?: ManagerId; readonly guarantees: ToolGuarantees };A dialect of tools: its id, the package manager of the ontology it drives where it drives one, and what it guarantees.
pinOfControlfunctionno test imports itfunction pinOfControl(control: "exact-hashed" | "release-line" | "rolling"): PinPolicyHow strictly a control asks tools to be pinned.
pinRankfunctionno test imports itfunction pinRank(pin: PinPolicy): numberThe rank of a pin policy: 0 is the least strict.
meetsIntegrityfunctionfunction meetsIntegrity(control: "exact-hashed" | "release-line" | "rolling", g: ToolGuarantees): readonly string[]Every reason a dialect does not meet the control toolIntegrity; none where it does.