logical.PolicyResulttypeno test imports ittype PolicyResult = { readonly id: string; readonly status: "pass" | "fail" | "warn" | "accepted" | "waiting" };A policy's result as a check of an asset gives it.
Evidence from what a tool checked (0002-objective-evidence FR-005): the results of a machine's policies, each bound to the objectives it gives evidence for, become records of the method test by a tool, one per bound objective. A policy that is waiting (the machine was not observed) gives no evidence; one that warns gives none either, because a warning is not a pass; an accepted risk is a person's decision and gives none from a tool. A passing or failing result gives a record, and no record of a tool determines an objective.
import { evidenceFromPolicies } from "./bind.ts";
evidenceFromPolicies([], {}, { framework: "f", at: "2026-11-21T00:00:00Z", tool: "probe", asset: "athens" }); // []logical.PolicyResulttypeno test imports ittype PolicyResult = { readonly id: string; readonly status: "pass" | "fail" | "warn" | "accepted" | "waiting" };A policy's result as a check of an asset gives it.
logical.Bindingstypeno test imports ittype Bindings = Readonly<Record<string, readonly string[]>>;Which objectives each policy gives evidence for, by policy id.
logical.Runtypeno test imports ittype Run = { readonly framework: string; readonly at: string; readonly tool: string; readonly asset: string; readonly validUntil?: string };The context of one run of the checks.
logical.evidenceFromPoliciesfunctionno test imports itfunction evidenceFromPolicies(results: readonly PolicyResult[], bindings: Readonly<Record<string, readonly string[]>>, run: Run): readonly Evidence[]The evidence a run of the policies gives, in a stable order.
PolicyResulttypeno test imports ittype PolicyResult = { readonly id: string; readonly status: "pass" | "fail" | "warn" | "accepted" | "waiting" };A policy's result as a check of an asset gives it.
Bindingstypeno test imports ittype Bindings = Readonly<Record<string, readonly string[]>>;Which objectives each policy gives evidence for, by policy id.
Runtypeno test imports ittype Run = { readonly framework: string; readonly at: string; readonly tool: string; readonly asset: string; readonly validUntil?: string };The context of one run of the checks.
evidenceFromPoliciesfunctionfunction evidenceFromPolicies(results: readonly PolicyResult[], bindings: Readonly<Record<string, readonly string[]>>, run: Run): readonly Evidence[]The evidence a run of the policies gives, in a stable order.