IF Commons GitHub

logical/determine

Written to: 4 requirements: 4 proved, 0 partly, 0 failing, 0 with no test recorded. 0002-objective-evidence FR-002, 0002-objective-evidence FR-003, 0002-objective-evidence FR-004, 0002-objective-evidence FR-006

How objectives and requirements stand from the evidence (0002-objective-evidence FR-002 to FR-004, FR-006): a pure function of the objectives, the evidence and the instant. Within one source and method the latest record is the one that counts; an expired record is stale; any live failure makes the objective not met; an objective is met only where a person has determined it from live passing evidence, or not applicable where a person has said so with a reason; evidence only from tools supports it and nothing more. There is no percentage: the roll-up of a requirement is a standing and the counts beside it.

import { standingOf } from "./determine.ts";
standingOf([], "2026-11-21T00:00:00Z"); // "no-evidence"

Source: commons/assessment/src/logical/determine.ts

2 of 14 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

logical.latestfunctionno test imports it
function latest(evidence: readonly Evidence[]): readonly Evidence[]

The latest record of each source and method: a later result replaces an earlier one of the same kind of look.

logical.standingOffunctionno test imports it
function standingOf(evidence: readonly Evidence[], now: string): "met" | "no-evidence" | "not-applicable" | "not-met" | "stale" | "supported"

How one objective stands from the evidence recorded against it, at an instant.

logical.ObjectiveLinetypeno test imports it
type ObjectiveLine = { readonly objective: Objective; readonly standing: Standing; readonly evidence: readonly Evidence[] };

One objective with its standing and the records that settled it.

logical.RequirementLinetypeno test imports it
type RequirementLine = { readonly requirement: string; readonly rollup: Rollup; readonly counts: Readonly<Record<Standing, number>>; readonly objectives: readonly string[] };

One requirement with its roll-up and the count of its objectives in each standing.

logical.Assessmenttypeno test imports it
type Assessment = { readonly framework: string; readonly now: string; readonly objectives: readonly ObjectiveLine[]; readonly requirements: readonly RequirementLine[]; readonly counts: Readonly<Record<Standing, number>>; readonly strays: readonly string[] };

The whole assessment of a framework.

logical.rollupOffunctionno test imports it
function rollupOf(counts: Readonly<Record<"met" | "no-evidence" | "not-applicable" | "not-met" | "stale" | "supported", number>>): "met" | "no-evidence" | "not-applicable" | "not-met" | "partial"

The roll-up of a requirement from the standings of its objectives.

logical.assessfunctionno test imports it
function assess(framework: string, objectives: readonly Objective[], evidence: readonly Evidence[], now: string): Assessment

The assessment of a framework: each objective's standing, each requirement's roll-up, the counts, and the evidence that names an objective the framework does not have (strays).

latestfunctionno test imports it
function latest(evidence: readonly Evidence[]): readonly Evidence[]

The latest record of each source and method: a later result replaces an earlier one of the same kind of look.

standingOffunction
function standingOf(evidence: readonly Evidence[], now: string): "met" | "no-evidence" | "not-applicable" | "not-met" | "stale" | "supported"

How one objective stands from the evidence recorded against it, at an instant.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

ObjectiveLinetypeno test imports it
type ObjectiveLine = { readonly objective: Objective; readonly standing: Standing; readonly evidence: readonly Evidence[] };

One objective with its standing and the records that settled it.

RequirementLinetypeno test imports it
type RequirementLine = { readonly requirement: string; readonly rollup: Rollup; readonly counts: Readonly<Record<Standing, number>>; readonly objectives: readonly string[] };

One requirement with its roll-up and the count of its objectives in each standing.

Assessmenttypeno test imports it
type Assessment = { readonly framework: string; readonly now: string; readonly objectives: readonly ObjectiveLine[]; readonly requirements: readonly RequirementLine[]; readonly counts: Readonly<Record<Standing, number>>; readonly strays: readonly string[] };

The whole assessment of a framework.

rollupOffunctionno test imports it
function rollupOf(counts: Readonly<Record<"met" | "no-evidence" | "not-applicable" | "not-met" | "stale" | "supported", number>>): "met" | "no-evidence" | "not-applicable" | "not-met" | "partial"

The roll-up of a requirement from the standings of its objectives.

assessfunction
function assess(framework: string, objectives: readonly Objective[], evidence: readonly Evidence[], now: string): Assessment

The assessment of a framework: each objective's standing, each requirement's roll-up, the counts, and the evidence that names an objective the framework does not have (strays).

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.