10. Configuration and Modes
Configuration parameters affect validation and runtime behavior for a given execution.
10.1 Pipeline Stages
The default execution pipeline is defined in Chapter 9. Configuration may select tooling inputs or policy switches for that pipeline, but it does not redefine the pipeline stages.
Input scope:
- CLI pipeline accepts one entry source for a single run.
- Repeatable CLI input paths are a batch surface; each input is an independent run.
- Frontend resolution performs source load, parse, include dependency loading, and optional library-root import resolution before compile.
- CLI entry behavior follows the Chapter 9 entry-source script and compatibility fallback rules.
10.2 Inventory Check
Inventory check is an optional final-result reconciliation, not an execution mode. For minor-version API compatibility, tooling retains the inventory_check / --inventory-check public name and may attach an external inventory snapshot for comparison with the run-scoped reagent-consumption record.
Rules:
- Runtime binding, insufficient-material failure, and conservation behavior are invariant whether or not an external inventory snapshot is supplied.
- Reconciliation runs after runtime material accounting and adds an inventory result alongside runtime success and the derived run report.
- External shortage is reported by the inventory result and does not change runtime success.
- Reconciliation is read-only with respect to runtime and inventory inputs.
- Core execution has no mode that auto-provisions or tops up material.
10.3 Runtime Error Policy
Runtime error policy controls execution after step failure.
Supported policies:
fail-fast(abort): stop dispatching new steps after failure; remaining pending steps becomeskipped.continue: keep dispatching dependency-satisfied steps while accumulating diagnostics.
Rules:
- Default policy is fail-fast.
- Under fail-fast, downstream steps of failed steps must not execute.
- CLI exposes the default abort/fail-fast behavior only;
continueremains an internal/programmatic runtime option rather than a first-class CLI flag.
10.4 Reference Reuse Policy (include)
Runtime implements reference-group reuse for expanded protocol-reference include blocks.
Mechanism:
- Cache key is derived from
(ref_protocol, call_path). - Input signature is derived from
(ref_protocol, call_path, expanded steps' (op,args)). - Signature match reuses the group without driver execution.
- Cache miss/signature change reruns and updates cache.
Rules:
- Default policy is
auto(signature-match reuse). - Force-reuse/force-rerun are runtime internal policies and not language-level syntax.
10.5 Entry Selection Scope
Configuration surface:
- CLI input paths select entry sources and batch order.
- Entry-source script and compatibility fallback behavior is defined in Chapter 9.
Entry selection contract:
- Script entry selection follows entry-source top-level executable statements.
- CLI input order defines batch item order.
- Unknown protocol references are handled by plan diagnostics defined in Chapter 8.
10.6 Driver and Failure Injection
The runtime is parameterized by a driver interface.
Tooling may support deterministic failure injection for testing:
- A stub driver may mark specific operations as failed.
- Failure injection is tooling behavior, not language semantics.
10.7 Global Material State
Configuration may provide initial material state as execution input. The material-state model and its invariant checks are defined in Chapter 7, and execution/replay artifacts are defined in Chapter 9. External inventory configuration affects only the optional reconciliation result.
10.8 Material Content Classification Policy
Material-content classification modes use the classification vocabulary and constructor field contract defined in Chapter 6. Diagnostic placement is defined in Chapter 8.
Strict material-content validation:
content_whitelist_mode = strict: materialcontent_kindvalues are checked against the Chapter 6 canonical whitelist.content_type_policy = required: materialcontent_typevalues must be present and satisfy the Chapter 6 closed canonical table.
Rules:
- Conformance claims assume strict material
content_kindwhitelist enforcement. - Conformance claims assume required material
content_typeenforcement. - Warning-only or legacy-auto-normalizing material-content classification profiles are compatibility behavior, not the strict canonical conformance baseline.
- Compatibility profiles may accept older custom/unknown type strings, emit a warning, and normalize them to canonical values or the appropriate
other_*fallback.
