IF Commons GitHub

physical/dialect/execution

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0004-archon-dialects FR-005

The plan of steps for the executor of headless, made from the plan of Archon and the steps of a dialect. A step that destroys something must be able to check first, and every step names the digest of what was rendered in its argument vector, so that the hash of the execution plan, the one a person approves, covers what is rendered.

import { executionPlanOf } from "./execution.ts";
// executionPlanOf(plan, rendered, dialect.steps(plan, rendered)) is a Result of an ExecutionPlan, or nothing to do

Source: commons/archon/src/physical/dialect/execution.ts

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

ExecutionProblemtypeno test imports it
type ExecutionProblem =
  | { readonly kind: "unknown-entry"; readonly step: number; readonly id: RequirementId }
  | { readonly kind: "digest-not-named"; readonly step: number }
  | { readonly kind: "executor"; readonly message: string };

Why a plan of steps could not be made.

executionPlanOffunction
function executionPlanOf(plan: Plan, rendered: Rendered, steps: readonly DialectStep[]): Result<ExecutionPlan | undefined, readonly ExecutionProblem[]>

The plan of steps for a plan and the steps of a dialect, or why it cannot be made; nothing where the plan changes nothing. A destructive step with no check is refused by the plan of headless, and the problem says so.

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

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