Expand description
Public Rust facade for DAG-ML.
Modules§
- aggregation
- archive_
workspace - Archive V2 replay-member assembly owned by DAG-ML.
- bundle
- campaign
- canonical
- DAG-ML Typed Canonical Value v1 (TCV1).
- chain_
effect - Chain-effect analysis contract + per-dataset score normalization.
- conformal
- Native split-conformal regression kernels.
- conformal_
runtime - Durable, identity-keyed wiring for the native split-conformal kernel.
- controller
- controller_
adapter - Mechanical derivation of
ControllerManifests from a thin host-controller descriptor — the dag-ml side of theOperatorController -> ControllerManifestadapter (DEC-CTRL-001/ the “B1” adapter). - controller_
registry - Loader for declarative
*.controller.yamlregistries. - criteria
- Backend-neutral training-loss and metric semantic contracts.
- data
- dsl
- Pipeline DSL: parse, validate, and compile the declarative pipeline spec
into a
GraphSpec/CompiledPipelineDsl. - error
- fold
- generation
- graph
- hpo
- Native Methods HPO controller.
- ids
- implementation_
registry - Process-local executable implementation registry.
- metric_
provider - Typed metric-provider dispatch shared by native and binding-local implementations.
- metrics
- observability
- ADR-12 observability hooks.
- oof
- phase
- plan
- policy
- provenance
- relation
- replay
- Public training replay contracts.
- rng
- runtime
- Runtime execution: schedulers, controllers, stores, OOF/merge logic.
- selection
- training
- Frozen W1 training and portable-predictor contracts.
- training_
runtime - Native training orchestration outcome and common runtime entry point.
Structs§
- Aggregate
Representation - Aggregated
Prediction Block - Aggregation
Controller Result - Aggregation
Controller Spec - Aggregation
Controller Task - Aggregation
Policy - Archive
V2Replay Payloads - Exact bytes and manifest handed to the Core Archive V2 writer.
- Artifact
Handle Record - Artifact
Id - Artifact
Input Spec - Artifact
Materialization Request - Artifact
Payload Materialization Record - Artifact
Ref - Attached
Training Replay Input - Augmentation
Policy - Bound
Training Output - One resolved output binding and the actual portable blocks it selected.
- Branch
Id - Branch
View Plan - Bundle
Data Requirement - Bundle
Id - Bundle
Prediction Block Cache Record - Bundle
Prediction Cache Payload - Bundle
Prediction Cache Payload Set - Bundle
Prediction Cache Record - Bundle
Prediction Requirement - Bundle
Replay Execution - Cache
Namespace - Candidate-cache identity. Every field that can change predictions is part of the TCV1 namespace; a requirement key alone is deliberately insufficient.
- Campaign
Fingerprint Spec - Campaign
Spec - Candidate
Score - Cartesian
Product Representation - Chain
Effect Analysis - The serialized chain-effect analysis artifact.
- Chain
Effect Metric - The metric the scores are expressed in, plus its optimization direction.
- Chain
Effect Point - One chain projected to a comparable goodness (higher = better).
- Chain
Effect Step - One node occurrence inside a chain.
- Chain
Observation - Host-supplied observation: one executed chain with a comparable score.
- Choice
Ref - A reference to a single dimension choice —
dimensionis aGenerationDimension::nameandlabelaGenerationChoice::labelwithin it. Generation constraints are expressed as sets of these refs; a variant “contains” the ref when its selected choice fordimensioncarrieslabel. - Columnar
Prediction Cache Block - Columnar
Prediction Cache Manifest - Columnar
Prediction Cache Store - Combination
Plan - Compiled
Pipeline Dsl - Conformal
Calibration - Closed, self-fingerprinted split-conformal state retained beside a bundle.
sample_idsis the calibration order, not an interchangeable set: this makes accidental positional joins fail before residuals are calculated. - Conformal
Calibration Cohort - Relation-derived calibration cohort. Physical and origin identities are
both retained so a relation-expanded training cohort cannot be bypassed by
presenting only one namespace. The attachment boundary derives and checks
these fields from an authoritative
crate::relation::SampleRelationSet. - Conformal
Calibration Context - Complete, canonical provenance closure supplied by the replay boundary. These are not optional hints: attached calibration checks every member against the exact source outcome and replay before it is persisted.
- Conformal
Calibration Ref - Typed reference retained by portable execution bundles. It contains no
host object or duplicate algorithm state; the complete state stays in the
matching
TrainingOutcome. - Conformal
Calibration Truth - Truth supplied by the data layer for a calibration replay. It carries the
same stable physical sample ids as the point block so a host can never
smuggle a positional
y_truematrix across a reordered replay. - Conformal
Interval Block - Identity-preserving interval result for one replayed point block.
- Controller
Id - Controller
Influence Requirement - Controller
Manifest - Controller
Registry - Cross
Fold Validation - The output of
cross_fold_validation_reports: the scalar cross-fold OOF average reports (one per producer,fold_id = "avg") plus — purely additively — the per-sample OOF average block +y_trueeach report was computed from.reportsis byte-identical to the historicalVecreturn; callers that only need the scalars readreportsand ignoreoof_averages. - DagMl
Error Descriptor - A stable ADR-11 error payload that can be serialized across bindings.
- Data
Binding - Data
Handle Record - Data
Materialization Request - Data
Model Shape Plan - Data
Output Provenance - Data
Plan - Data
Plan Step - Data
Provider View Spec - Data
View Handle Record - Data
View Policy - Data
View Request - Data
View Selector - Early
Stopping Record - Controller-reported early-stopping outcome, kept separate from persisted OOF/reporting scores and bound to one exact metric role and task scope.
- Edge
Contract - Edge
Spec - Envelope
Attested Runtime Data Provider - Owns a host data provider while supplying envelope-backed identities at the runtime trust boundary. A complete training identity is available only when the envelope carries feature, target and relation fingerprints.
- Evaluation
Result - Execution
Bundle - Execution
Plan - Execution
Scope Plan - Explanation
Block - An EXPLAIN-phase output block (ADR-12 explain contract). Explanations are a
node output returned in the
NodeResult— like predictions, they cross as data, not as an opaque host handle. Thepayloadshape is controller-defined (e.g. per-feature importances); the core does not interpret it. Explanations are only valid in theEXPLAINphase. - External
Data Plan Envelope - Feature
Selection Policy - File
Artifact Manifest - Versioned, file-backed artifact manifest. This is a manifest/portability
layer only: it records portable
ArtifactRefmetadata for a bundle’s refit artifacts. It does not deserialize ML objects or materialize artifact payloads; payload stores remain future work. - File
Artifact Manifest Entry - One persisted artifact entry. Mirrors the bundle
RefitArtifactRecordidentity (node, controller, artifact, parameters and training loss) while requiring theArtifactRefto be portable so the manifest stays movable with its payloads. - File
Artifact Manifest Store - File-backed artifact manifest store rooted at a directory.
- File
Artifact Payload Store - File
Prediction Cache Entry - File
Prediction Cache Manifest - File
Prediction Cache Store - FitInfluence
Diagnostic - FitInfluence
Task - Fold
Assignment - FoldId
- FoldSet
- Generation
Choice - Generation
Constraints - Declarative pruning constraints applied to the enumerated variant set BEFORE materialization.
- Generation
Dimension - Generation
Param Override - Generation
Spec - Graph
Interface - Graph
Plan - Graph
Spec - GroupId
- GroupK
Fold Spec - Handle
Ref - Host
Controller Spec - Host-side description of one
OperatorController, the input from which a validatedControllerManifestis mechanically derived. - HpoBatch
- HpoBest
Trial - The native optimizer’s incumbent, retaining the score returned by its
bestcall rather than re-deriving it from a lossy projection. - HpoEvaluation
Boundary - Explicit evaluator boundary. It exposes DAG-ML’s real ownership primitives, not marker enums; the optimizer cannot manufacture folds, scores, lineage, a selection decision, or a refit. Native finetuning remains selection-only.
- HpoFailure
- HpoIntermediate
- HpoNative
Error - Native error data is retained verbatim enough for policy/retry decisions; never flatten it into an opaque display string.
- HpoOptimizer
Config - HpoSearch
Space - HpoStudy
Binding - HpoTrial
- HpoTrial
Parameter - Implementation
Descriptor - InMemory
Aggregated Prediction Store - InMemory
Artifact Store - InMemory
Data Provider - InMemory
Lineage Recorder - InMemory
Prediction Cache Store - InMemory
Prediction Store - KFold
Spec - Leakage
Unit Policy - Lineage
Id - Lineage
Record - Loaded
Predictor - Process-local sidecar. It deliberately implements neither
SerializenorDeserialize, so opaque host objects cannot leak into portable packages. - Loaded
Predictor Replay Input - Local
Implementation Registry - Generic process-local registry keyed by a validated implementation descriptor.
- Loss
Execution Attestation - Loss
Reference - Loss
Resolution Request - Loss
Spec - Manifest
Kind Template - The mechanical, per-
NodeKindportion of aControllerManifest: the fields a host does not need to author because they follow deterministically from the node kind.HostControllerSpec::derivecomposes one of these with the host-supplied identity/selectors/overrides. - Methods
HpoCandidate Evidence - Candidate-level evidence retained because it was needed to produce the selection decision. It is report-grade only and never a training input.
- Methods
HpoCompleted Proposal - A completed native proposal paired with its exact, scheduler-owned plan variant. Native checkpoints alone cannot reconstruct this value.
- Methods
HpoCompleted Report - The sole report permitted to terminalize a persisted trial: the scalar cross-fold validation OOF average used by SELECT.
- Methods
HpoController Manifest - Methods
HpoNative Incumbent - Native optimizer incumbent recorded beside scheduler evidence. This is the
only portable assertion that DAG-ML’s SELECT agrees with Methods
best(). - Methods
HpoOof Average - Per-sample OOF average retained with its matching targets. This is a
serializable equivalent of the transient
OofAverageBlock. - Methods
HpoResume Provenance - Exact coordinator provenance bound to an N4MOPT checkpoint.
- Methods
HpoResume Selection - The scalar selection identity bound into a persisted Methods HPO campaign.
- Methods
HpoResume State - Atomic portable state required to resume a Methods HPO campaign.
- Methods
HpoStudy Config - Configuration that creates one official native optimizer. The optional
dependency is intentionally local/provisional:
n4mis not on crates.io; production builds must supply the matching libn4m through its build script. - Methods
HpoTerminal Evidence - Methods
PlsData - Provider response for one PLS fit/predict invocation.
- Methods
PlsData Request - Scheduler-owned view selection for a portable Methods PLS operation.
- Methods
PlsDataset - One identity-keyed dataset returned by the portable PLS provider capability.
- Methods
PlsMatrix - Row-major
f64matrix passed from an explicitly capable provider to the portable Methods PLS controller. It never crosses the public ABI. - Methods
PlsPredict Data Provider - Native, in-memory data provider for target-free Methods PLS PREDICT.
- Methods
PlsPredict Input - Metric
Evaluation Result - Metric
Evaluation Scope - Metric
Evaluation Task - Metric
Evaluation Value - Metric
Provider Registry - Metric
Reference - Metric
Role Reference - Metric
Spec - Model
Input Fusion Policy - Model
Input Port Spec - Model
Input Spec - Monte
Carlo Cartesian Representation - N4mopt
Checkpoint Artifact - N4mopt
Checkpoint Reference - Durable archive-member reference for a Methods-owned N4MOPT payload.
- Namespaced
Node Parameters - NodeId
- Node
Patch Policy - Node
Plan - Node
Result - Node
Spec - Node
Task - Observation
Id - Observation
Prediction Block - OofAverage
Block - The per-sample cross-fold OOF average of one producer, surfaced alongside its scalar report so the
host can show each OOF sample’s averaged prediction (nirs4all’s
(validation, avg)row y_pred), not only the pooled scalar. The block is keyed byproducer_node/partition = Validation/fold_id = "avg"— identical to the scalarRegressionMetricReportthis pairs with — and they_truecovers exactly the block’s samples (same id set), so the host pairs them by id. This is REPORT-grade output: it carries no variant tag (the block has none; the variant is stamped on the report downstream) and never feeds a training/feature path, so OOF/leakage invariants are unaffected — it is purely the same averaged values the scalar was computed from, exposed per sample. - OofCampaign
- OofMatrix
- Open
Lineage RunEvent Options - Operator
Selector - Operator
Variant Model - An operator-level variant model lowered from a single operator-level generator (Mechanism B’s
PipelineDslStep::Generator): aGenerationDimensionwhose every choice carries anactive_subsequence(the choice’s namespace key) — neverparam_overrides— paired with the EXACT set of namespaced node ids that choice activates. - Output
Binding - A resolved W0 OutputBinding with native port validation.
- Package
Artifact Binding - Parallel
Scheduler - Parameter
Patch - Parameter
Projection - Phase
Execution Schedule - Pipeline
DslBranch - Pipeline
DslBranch Step - Pipeline
DslChoice Ref - Pipeline
DslConcat Branch - Pipeline
DslConcat Transform Step - Pipeline
DslData Port - Pipeline
DslGeneration Choice - Pipeline
DslGeneration Constraints - Pipeline
DslGeneration Dimension - Pipeline
DslGeneration Param Override - Pipeline
DslGenerator Constraints - Operator-content pruning constraints on a
PipelineDslGeneratorStep(ADR-17 1a/1b). Each ref is an operator-content label — a generator branch/option id (_or_) or branch id (_cartesian_), the operator class nirs4all carries in its_mutex_/_requires_/_exclude_. The keywords mirror the nirs4all generation oracle (_generator/constraints.py):mutex= the full group may not all co-occur (issubset),requires=[a, b]means a present requires b present,exclude=[a, b]is a forbidden pair. Compiled to a single-dimensionGenerationConstraintsover the operator dimension and applied during sequence-build, NOT carried ontoOperatorVariantModel.generation_spec. - Pipeline
DslGenerator Stage - Pipeline
DslGenerator Step - Pipeline
DslMerge Model Step - Pipeline
DslMerge Selector - Pipeline
DslMerge Step - Pipeline
DslOperator Step - Pipeline
DslPrediction Port - Pipeline
DslSequence Step - Pipeline
DslShape Plan - Pipeline
DslSpec - Pipeline
DslTuning Spec - Pipeline
DslVariant Choice - PortRef
- Port
Schema - Port
Spec - Portable
Predictor Package - Portable deployment package. It contains only JSON-safe contracts and
artifact descriptors; process-local handles live exclusively in
LoadedPredictor. - Prediction
Block - Prediction
Cache Materialization Record - Prediction
Cache Materialization Request - Prediction
Input Spec - Prediction
Join Policy - Predictor
Template - Ranked
Candidate - Reduction
Plan - Refit
Artifact Record - Refit
Slot Plan - Regression
Conformal Interval - Multi-row, multi-target interval at one coverage.
- Regression
Conformal Metrics - Reconstructed regression interval metrics for one coverage and target scope.
- Regression
Metric Report - Regression
Target Block - Regression
Target Record - A host-emitted
y_trueblock tagged with the prediction it scores (producer/partition/fold), so the runtime can aggregate ground truth across folds to score cross-fold ensembles natively. - Relation
Contract - Replay
Data Identity - Content identity for one external replay input.
- Replay
Phase Request - Representation
Combo Selection Record - Representation
Compatibility Report - Representation
Replay Manifest - Representation
Sample Observation Mapping - Research
Provenance Export - Research
Provenance Package - Research
Provenance Package File - Research
Provenance Package Validation - Resolved
Loss Spec - Resolved
Training Output - RunContext
- RunId
- Runtime
Controller Registry - Runtime
HpoCampaign Result - Runtime
HpoCampaign Task - Typed scheduler operation used to create one invocation-local HPO session.
It deliberately contains no graph
NodePlan: the session controls variant campaigns fortarget_node_id, while all predictor work remains in the ordinary graph execution plan. - Runtime
HpoCandidate Evaluation - Scheduler-owned evidence retained for a successfully completed trial. Candidate OOF data remains report-only and is never reused as a training input; final SELECT/REFIT is intentionally outside this campaign call.
- Runtime
HpoCheckpoint Result - Durable native optimizer state paired with exact coordinator evidence. No native Context or Optimizer object crosses this boundary.
- Runtime
HpoCompleted Report - The one cross-fold OOF report which terminalized a completed native trial. Keeping the native trial id beside report-grade scheduler evidence makes a checkpoint resumable without asking libn4m to invent coordinator scores.
- Runtime
HpoExecution Context - Immutable coordinator evidence for one execution-local HPO campaign.
- Runtime
HpoFailure - Runtime
HpoIncumbent - One typed native incumbent, derived from the optimizer’s
best()only after every scheduler-observed proposal has reached a terminal state. - Runtime
HpoIntermediate - Runtime
HpoProposal - One candidate proposed by a local tuner session. It contains a normal plan variant only; no native optimizer/context can cross the scheduler boundary.
- Runtime
HpoProvenance - Runtime
HpoSelection Target - Runtime
HpoTerminal Snapshot - A controller-attested terminal native trial. The native record is never reconstructed from checkpoint bytes by DAG-ML; it is obtained only from the invocation-local session which owns that checkpoint.
- Sample
Id - Sample
Relation - Sample
Relation Set - Schema
Migration Policy - Score
Set - Seed
Context - Selection
Decision - Selection
Metric - Selection
Policy - Sequential
Scheduler - Shape
Delta - Split
Conformal Quantile - Quantile record for one requested coverage.
- Split
Invocation - Stack
Fixed Representation - Stack
Padded Masked Representation - Stacking
FitContract - Stacking
OofRefit Contract - Stacking
OofRefit Coverage Diagnostic - StratifiedK
Fold Spec - Stratified K-fold: each sample is validated exactly once (OOF-safe like
plain K-fold), but folds are balanced by a per-sample class label so every
fold mirrors the overall class distribution.
stratamaps each sample id to its class label (identity-keyed metadata — never feature values). - Target
Id - Training
Artifact Options - Training
Contract Projection - Training
Data Identity - Content identity paired with one external data requirement.
- Training
Execution Input - Host-owned resources and portable identifiers for one native training run.
- Training
Influence Entry - Training
Influence Manifest - Training
Loss Role Reference - Training
Options - Training
Outcome - Portable result of COMPILE/PLAN/FIT_CV/SELECT and optional REFIT.
- Training
Outcome Ref - Training
Output Request - Requested output metadata before the producing port has been resolved.
- Training
Refit Outcome - Exact W0 refit state embedded in
TrainingOutcome. - Training
Replay Outcome - Training
Replay Request - Training
Request - Training
Resource Limits - Training
Scheduler Options - Validated
Metric Evaluation - Variant
Execution Spec - Variant
Id - Variant
Plan - Variant
Selection - Outcome of native variant selection: the winning variant plus EVERY scored variant’s
cross-validation reports, each tagged with its own
variant_id. - Variant
Selection Outcome - Extended result of native variant selection.
- Variant
Validation Predictions - One scored variant’s VALIDATION (OOF) predictions, captured from its transient FIT_CV
RunContextand re-tagged with the variant’s id + content fingerprint so a host can fill that variant’s per-sample prediction rows. REPORT-grade output paired withVariantSelection::validation_reports: it never feeds a training/feature path (see the field docs onVariantSelection::variant_validation_predictions).
Enums§
- Aggregation
Controller Input - Aggregation
Controller Output - Aggregation
Method - Aggregation
Weights - Artifact
Backend - Artifact
Load Mode - Artifact
Policy - Augmentation
Scope - Branch
View Mode - Canonical
Integer - An integer parsed without passing through binary64.
- Chain
Effect Lens - Normalization lens that makes heterogeneous datasets comparable.
- Chain
Step Role - Coarse role of a chain step; drives color/legend and position/order scoping in downstream consumers.
- Combination
Mode - Conformal
Error - Validation or finite-arithmetic failure in the native conformal kernels.
- Conformal
Measurement Status - Availability of finite width and interval-score summaries.
- Conformal
Multi Target Policy - Multi-target nonconformity reduction for split regression intervals.
- Conformal
Radius - One calibrated radius.
- Conformal
Small Sample Policy - Behavior when
ceil((n + 1) * coverage)exceedsn. - Controller
Capability - Controller
FitScope - Criterion
Input - CvArtifact
Retention - DagMl
Error - Data
Plan Step Kind - Data
Request Partition - Entity
Unit Level - Evaluation
Scope - Feature
Selection Scope - FitBoundary
- FitInfluence
Mechanism - FitInfluence
Policy - Fitted
Artifact Mode - Fold
Partition - Fold
Partition Mode - How validation membership is distributed across a fold set.
- Generation
Strategy - Granularity
- Handle
Kind - HpoCategory
- HpoCategory
Type - HpoDirection
- HpoError
- HpoEvent
- HpoMetric
- HpoNative
Parameter Kind - HpoParameter
- Ordered declaration is intentional: it is part of replay identity and is retained in every trial, unlike a map’s lexical order.
- HpoPruner
- HpoReport
Outcome - HpoSampler
- HpoTerminal
- HpoTrial
Status - Implementation
Capability - Implementation
Semantic Kind - Inference
Features - Learning
Task Kind - Loss
Capability - Loss
Reduction - Loss
Resolution Source - Meta
RowDomain - Meta
Training Features - Methods
HpoCompleted State - Metric
Capability - Metric
Decomposition - Metric
Objective - Metric
Reduction - Metric
Role Kind - Metric
Unit Id - Missing
Metric Policy - Missingness
Policy - Model
Input Fusion Mode - Nested
CvSpec - Inner (nested) cross-validation policy.
- Node
Kind - Output
Order - Parameter
Namespace - Phase
- Pipeline
DslBranch Mode - Pipeline
DslGenerator Mode - Pipeline
DslGenerator Value - Pipeline
DslMerge Output - Pipeline
DslParam Generator - Pipeline
DslSelection Spec - Pipeline
DslStep - Port
Cardinality - Port
Kind - Portability
Class - Prediction
Cache Retention - Prediction
Join Key - Prediction
Kind - Prediction
Level - Prediction
Partition - Prediction
Unit Id - Reduction
Axis - Reduction
Method - Reduction
Role - Reduction
Task Compatibility - Refit
Strategy - Regression
Interval Cell - One regression interval cell.
- Regression
Metric Kind - Replayability
Class - Representation
Cardinality - Representation
Compatibility Outcome - Representation
Compatibility Severity - Representation
Missing Source Policy - Representation
Plan - RngPolicy
- Runtime
HpoIntermediate Outcome - Runtime
HpoTerminal - Selection
Protocol - Semantic
Spec Kind - Shape
Delta Kind - Split
Unit - Stacking
OofRefit Cause - Stacking
OofRefit Decision - Stacking
OofRefit Policy - Tcv1
Error - Parse or encoding failure for the strict TCV1 domain.
- Training
Influence Kind - Training
Refit Status - Training
Scheduler Backend - Training
Scheduler Kind - Typed
Canonical Value - A strict JSON value that retains integer-versus-binary64 token kind.
Constants§
- AGGREGATION_
CONTROLLER_ RESULT_ SCHEMA_ ID - AGGREGATION_
CONTROLLER_ RESULT_ SCHEMA_ VERSION - AGGREGATION_
CONTROLLER_ TASK_ SCHEMA_ ID - AGGREGATION_
CONTROLLER_ TASK_ SCHEMA_ VERSION - ARCHIVE_
V2_ BUNDLE_ MEMBER - ARCHIVE_
V2_ CACHE_ MEMBER - ARCHIVE_
V2_ GRAPH_ MEMBER - ARCHIVE_
V2_ OUTCOME_ MEMBER - ARCHIVE_
V2_ PACKAGE_ MEMBER - ARCHIVE_
V2_ SCORE_ MEMBER - BOUND_
TRAINING_ OUTPUT_ SCHEMA_ VERSION - BUNDLE_
PREDICTION_ CACHE_ FORMAT - CACHE_
NAMESPACE_ SCHEMA_ ID - CACHE_
NAMESPACE_ SCHEMA_ VERSION - CAMPAIGN_
SPEC_ SCHEMA_ ID - CAMPAIGN_
SPEC_ SCHEMA_ VERSION - CHAIN_
EFFECT_ SCHEMA_ ID - Stable
$idof the serialized chain-effect analysis schema. - CHAIN_
EFFECT_ SCHEMA_ VERSION - Current schema version of
ChainEffectAnalysis. - CONFORMAL_
RUNTIME_ SCHEMA_ VERSION - V1 did not bind calibration to the training/replay provenance closure. It is deliberately not accepted: callers must migrate to this closed V2 form.
- CONFORMAL_
TRAINING_ REPLAY_ OUTCOME_ SCHEMA_ VERSION - CONTROLLER_
MANIFEST_ SCHEMA_ ID - CONTROLLER_
MANIFEST_ SCHEMA_ VERSION - DAGML_
OPENLINEAGE_ FACET_ SCHEMA_ URL - DATA_
OUTPUT_ PROVENANCE_ KEY - DATA_
OUTPUT_ PROVENANCE_ SCHEMA_ ID - DATA_
OUTPUT_ PROVENANCE_ SCHEMA_ VERSION - DATA_
PLAN_ SCHEMA_ ID - DATA_
PLAN_ SCHEMA_ VERSION - DSL_
DATA_ AWARE_ FANOUT_ METADATA_ KEY - Metadata key under which
fan_out_data_aware_branchesrecords the deterministic fingerprint of the discovered partition set, so identical data always expands to a byte-identical spec (and therefore a byte-identical graph/campaign fingerprint downstream). - EARLY_
STOPPING_ RECORD_ SCHEMA_ ID - EARLY_
STOPPING_ RECORD_ SCHEMA_ VERSION - EXECUTION_
BUNDLE_ FILE - EXECUTION_
BUNDLE_ SCHEMA_ VERSION - EXECUTION_
PLAN_ FILE - EXECUTION_
PLAN_ SCHEMA_ ID - EXECUTION_
PLAN_ SCHEMA_ VERSION - EXTERNAL_
DATA_ PLAN_ ENVELOPE_ SCHEMA_ VERSION - FILE_
ARTIFACT_ MANIFEST_ FILE - FILE_
ARTIFACT_ MANIFEST_ SCHEMA_ VERSION - FILE_
PREDICTION_ CACHE_ MANIFEST_ FILE - FILE_
PREDICTION_ CACHE_ STORE_ SCHEMA_ VERSION - GRAPH_
SPEC_ SCHEMA_ ID - GRAPH_
SPEC_ SCHEMA_ VERSION - HPO_
MANIFEST_ SCHEMA_ VERSION - IMPLEMENTATION_
DESCRIPTOR_ SCHEMA_ ID - IMPLEMENTATION_
DESCRIPTOR_ SCHEMA_ VERSION - LEGACY_
BUNDLE_ PREDICTION_ CACHE_ FORMAT - LEGACY_
EXECUTION_ BUNDLE_ SCHEMA_ VERSION - LEGACY_
PORTABLE_ PREDICTOR_ PACKAGE_ SCHEMA_ VERSION - LEGACY_
PREDICTION_ CACHE_ PAYLOAD_ SCHEMA_ VERSION - LEGACY_
SCORE_ SET_ SCHEMA_ VERSION - LEGACY_
TRAINING_ OUTCOME_ SCHEMA_ VERSION - LEGACY_
TRAINING_ REPLAY_ OUTCOME_ SCHEMA_ VERSION - LINEAGE_
RECORDS_ FILE - LOSS_
EXECUTION_ ATTESTATION_ SCHEMA_ ID - LOSS_
EXECUTION_ ATTESTATION_ SCHEMA_ VERSION - LOSS_
ROLE_ SCHEMA_ VERSION - LOSS_
SPEC_ SCHEMA_ ID - LOSS_
SPEC_ SCHEMA_ VERSION - MAX_
CONFORMAL_ SAMPLE_ COUNT - Largest calibration sample count accepted by the exact rank routine.
- MAX_
N4MOPT_ CHECKPOINT_ BYTES - This mirrors the bound enforced by the official Rust binding and native decoder. Check it before any checkpoint is passed to a native loader.
- METHODS_
HPO_ RESUME_ STATE_ SCHEMA_ VERSION - Schema version for the durable, self-contained Methods HPO resume state.
- METHODS_
PLS_ CONTROLLER_ ID - Stable controller identity for the only portable numerical model admitted to the first Methods HPO route. Other model classes stay host/plugin-owned and are rejected during HPO preflight rather than being silently evaluated by a fixture or a replacement implementation.
- METHODS_
PLS_ PREDICT_ CONTENT_ PROFILE - One host-materialized X-only cohort offered to the native Methods PLS controller for a fresh PREDICT replay.
- METRIC_
EVALUATION_ RESULT_ SCHEMA_ ID - METRIC_
EVALUATION_ RESULT_ SCHEMA_ VERSION - METRIC_
EVALUATION_ TASK_ SCHEMA_ ID - METRIC_
EVALUATION_ TASK_ SCHEMA_ VERSION - METRIC_
ROLE_ SCHEMA_ ID - METRIC_
ROLE_ SCHEMA_ VERSION - METRIC_
SPEC_ SCHEMA_ ID - METRIC_
SPEC_ SCHEMA_ VERSION - MIN_
READABLE_ EXECUTION_ BUNDLE_ SCHEMA_ VERSION - MIN_
READABLE_ PORTABLE_ PREDICTOR_ PACKAGE_ SCHEMA_ VERSION - MIN_
READABLE_ PREDICTION_ CACHE_ PAYLOAD_ SCHEMA_ VERSION - MIN_
READABLE_ SCORE_ SET_ SCHEMA_ VERSION - MIN_
READABLE_ TRAINING_ OUTCOME_ SCHEMA_ VERSION - MIN_
READABLE_ TRAINING_ REPLAY_ OUTCOME_ SCHEMA_ VERSION - MIN_
WRITABLE_ EXECUTION_ BUNDLE_ SCHEMA_ VERSION - MIN_
WRITABLE_ PREDICTION_ CACHE_ PAYLOAD_ SCHEMA_ VERSION - MODEL_
INPUT_ SPEC_ SCHEMA_ ID - MODEL_
INPUT_ SPEC_ SCHEMA_ VERSION - N4MOPT_
ARTIFACT_ KIND - N4MOPT_
CHECKPOINT_ SCHEMA_ VERSION - N4MOPT_
FORMAT - NODE_
RESULT_ SCHEMA_ ID - NODE_
RESULT_ SCHEMA_ VERSION - NODE_
TASK_ SCHEMA_ ID - NODE_
TASK_ SCHEMA_ VERSION - OBSERVABILITY_
FIELD_ ALLOWLIST - Frozen ADR-12 telemetry field allowlist. Every field emitted by this module must appear here, and each entry is an identifier or a count — never data. Adding a field requires an ADR-12 update and a review per the privacy rule.
- OPENLINEAGE_
RUN_ EVENT_ SCHEMA_ URL - OUTPUT_
BINDING_ SCHEMA_ VERSION - PARAMETER_
PATCH_ SCHEMA_ VERSION - PARAMETER_
PROJECTION_ SCHEMA_ VERSION - PIPELINE_
DSL_ SCHEMA_ ID - PIPELINE_
DSL_ SCHEMA_ VERSION - PORTABLE_
PREDICTOR_ PACKAGE_ SCHEMA_ ID - PORTABLE_
PREDICTOR_ PACKAGE_ SCHEMA_ VERSION - V2 is the first package family permitted to carry closed conformal state.
- PREDICTION_
CACHE_ PAYLOAD_ SCHEMA_ VERSION - PROV_
JSONLD_ FILE - REPRESENTATION_
TABULAR_ NUMERIC - Frozen representation id for a generic numeric feature table — the
modality-neutral default stamped on data ports of a derived manifest.
Published by the dag-ml-data representation registry
(
docs/contracts/representation_registry.v1.json, registry iddag-ml-data.representation_registry.v1,type_id = "table"). - REPRESENTATION_
TARGET_ NUMERIC - Frozen representation id for a generic numeric target — the modality-neutral
default stamped on target ports of a derived manifest. Published by the
same registry (
type_id = "target"). This replaces the previous coarse behaviour that (incorrectly) stamped the feature-table id on target ports. - RESEARCH_
PROVENANCE_ SCHEMA_ VERSION - RO_
CRATE_ METADATA_ FILE - SCORE_
SET_ SCHEMA_ VERSION - Current on-disk schema version for newly written
ScoreSetdocuments. - SELECTION_
DECISION_ SCHEMA_ ID - SELECTION_
DECISION_ SCHEMA_ VERSION - SELECTION_
POLICY_ SCHEMA_ ID - SELECTION_
POLICY_ SCHEMA_ VERSION - SOURCE_
INDEX_ METADATA_ KEY - STACKING_
OOF_ REFIT_ CONTRACT_ METADATA_ KEY - TCV1_
PREFIX - Domain separator prepended to every TCV1 value before hashing.
- TRAINING_
INFLUENCE_ MANIFEST_ SCHEMA_ VERSION - TRAINING_
LOSS_ ROLE_ SCHEMA_ ID - TRAINING_
OUTCOME_ SCHEMA_ ID - TRAINING_
OUTCOME_ SCHEMA_ VERSION - TRAINING_
REPLAY_ OUTCOME_ SCHEMA_ VERSION - V3 permits target-free external data identities for PREDICT/EXPLAIN while retaining V2’s typed conformal-interval closure for target-bound replays. The training-only identity remains deliberately target-bound; a replay on a fresh unlabeled cohort must not invent a target fingerprint simply to fit that training attestation type.
- TRAINING_
REPLAY_ REQUEST_ SCHEMA_ VERSION - TRAINING_
REQUEST_ SCHEMA_ ID - TRAINING_
REQUEST_ SCHEMA_ VERSION
Traits§
- HpoEvaluator
- HpoIntermediate
Reporter - Metric
Provider - Runtime
Artifact Store - Runtime
Controller - Runtime
Data Provider - Runtime
Prediction Cache Store - Runtime
Tuner Session - Per-campaign tuner state. Deliberately no
SendorSyncsupertrait: libn4m’s Context and Optimizer are thread-affine. The session proposes a portable variant; the scheduler evaluates its FIT_CV/OOF evidence and feeds the scalar intermediate/terminal state back here. This avoids a controller-owned CV loop and prevents native state from entering aSendscheduler worker or registry.
Functions§
- aggregate_
observation_ predictions - aggregate_
sample_ predictions_ by_ unit - apply_
split_ absolute_ residual - Apply calibrated radii to a finite multi-target prediction matrix.
- build_
aggregated_ prediction_ cache_ payload - build_
aggregated_ prediction_ cache_ record - build_
archive_ v2_ native_ portable_ payloads - Assemble the strict ADR-23 P0 replay closure from real DAG-ML contracts.
- build_
execution_ bundle - build_
execution_ bundle_ with_ prediction_ contracts - build_
execution_ bundle_ with_ prediction_ requirements - build_
execution_ plan - build_
oof_ prediction_ cache_ payloads - build_
oof_ prediction_ cache_ records - build_
oof_ prediction_ requirements - Derive portable OOF requirements from the blocks produced by an existing FIT_CV execution. Shared by the training operation and host capture paths.
- build_
openlineage_ run_ event - build_
openlineage_ run_ event_ from_ package_ files - build_
prediction_ cache_ payload - build_
prediction_ cache_ record - build_
research_ provenance_ export - build_
research_ provenance_ package - builtin_
loss_ catalog - builtin_
metric_ catalog - builtin_
metric_ reference - builtin_
metric_ registry - bundle_
prediction_ requirement_ key - calibrate_
attached_ training_ replay - Calibrate a just-replayed output, then persist the signed native state on the owning training outcome and its execution bundle. The replay must have targeted the pre-calibration outcome; attachment deliberately produces a new outcome fingerprint for the portable predictor state.
- campaign_
fingerprint - capabilities_
support_ fit_ influence - chain_
role_ for_ node_ kind - Map a graph
NodeKindto its coarseChainStepRole. - compile_
operator_ variant_ models - Opt-in: lower the spec’s operator-level generators (Mechanism B’s
PipelineDslStep::Generator) into oneOperatorVariantModeleach — anactive_subsequence-only operator dimension plus the exact per-choice active-node-id set. - compile_
pipeline_ dsl - compile_
pipeline_ dsl_ with_ controller_ registry - compile_
pipeline_ dsl_ with_ generation - compile_
pipeline_ dsl_ with_ generation_ and_ controller_ registry - cross_
fold_ validation_ reports - Score the cross-fold OOF average per producer port: concatenate each
(producer_node, producer_port)pair’s per-fold VALIDATION predictions into one block and score it against the matching combinedy_true. Yields one report per producer port withfold_id = "avg"— nirs4all’scv_best_scorerow — plus, additively, the per-sample OOF average block +y_trueeach report was computed from (so the host can fill the(validation, avg)row’s per-sample y_pred, not only the scalar). The per-fold join is identity-keyed; producer ports with a single fold are skipped (nothing to ensemble). - data_
binding_ requirement_ key - Return the stable wire key used to bind one node input to its external data requirement.
- derive_
host_ controller_ registry - Derive every spec and register the manifests into a fresh
ControllerRegistry, surfacing the first derivation or duplicate-id error. This is the one call a runtime needs to turn its declared host controllers into a resolvable registry — the replacement for a hardcoded static node registry. - deserialize_
external_ contract - Deserialize one public JSON contract while rejecting serde’s positional sequence representation for structs. Semantic validation remains the owning type’s responsibility after this shape-preserving decode.
- deserialize_
external_ value - Deserialize a public contract that has already crossed a structured host
boundary (for example a Python mapping), while preserving the same
object/array rules as
deserialize_external_contract. - dispatch_
custom_ aggregation_ task - dispatch_
custom_ observation_ aggregation - dispatch_
custom_ sample_ aggregation - emit_
oof_ refusal - Emit the ADR-12 out-of-fold leakage refusal event with stable taxonomy fields
(
category/codemirrorcrate::DagMlError::OofLeakage) so log consumers can alert on refusals without parsing messages. - enumerate_
variants - execute_
attached_ training_ replay - execute_
loaded_ predictor_ replay - execute_
training - Execute COMPILE/PLAN -> FIT_CV -> SELECT -> optional REFIT and return the complete portable W0 outcome.
- execution_
bundle_ schema_ migration_ policy - fan_
out_ data_ aware_ branches - Plan-time, data-aware branch fan-out (the keystone of native branch
support). Given a parsed pipeline DSL spec and the coordinator data-plan
envelope, this turns each auto-separation branch step — a single-template
branch over a
by_metadatakey orby_tagcriterion, markedmetadata.auto_separate=true— into an explicit branch step with one concrete branch per discovered partition value, retaining ALL of them. - finite_
sample_ conformal_ rank - Compute
ceil((n + 1) * coverage)from the binary64 shortest decimal. - fold_
set_ fingerprint - generation_
spec_ fingerprint - implementation_
dispatch_ key - Return the canonical process-local dispatch key for an implementation.
- join_
oof_ campaign_ features - join_
oof_ features - load_
yaml_ manifest_ from_ path - Load and validate a single manifest from disk.
- load_
yaml_ manifests_ from_ dir - Walk a directory for
*.controller.yamlfiles and return a deterministically ordered, validated manifest list. Duplicatecontroller_ids across files are rejected so a directory cannot silently ship two definitions of the same controller. - lower_
nirs4all_ compat_ pipeline_ dsl - manifest_
kind_ template - Return the deterministic manifest defaults for
kind. - median
- Median of the finite values (linear interpolation at the midpoint).
- methods_
hpo_ resume_ state_ from_ json - Strictly decode the complete, current Methods HPO resume state.
- methods_
hpo_ resume_ state_ from_ package_ json - Deserialize a portable predictor package and extract its complete Methods HPO resume state. This deliberately accepts package JSON rather than a checkpoint/descriptor value: a resume is authorized only by state that has survived the package’s strict deserialization and cross-link validation.
- methods_
optimizer_ preflight - A default-build preflight that fails before allocation, host data work, or any attempted replacement optimizer.
- methods_
pls_ predict_ feature_ content_ fingerprint - Compute the published X-only content identity for a Methods PLS cohort.
- node_
span - Build the per-node span (ADR-12), nested under the current phase span so node telemetry is attributed to its run, plan and controller. Identifiers only.
- oof_
campaign_ fingerprint - operator_
variant_ canonical_ value - Build the canonical
serde_json::Value(the JSON array of{"kind", "class", "params"}steps) for a lowered operator sub-sequence — the exact valueoperator_variant_labelhashes. Exposed so a host binding can render the SAME canonical text (and so callers can inspect it in tests). - operator_
variant_ label - Compute a choice’s
variant_label: the cross-language content fingerprint (hex sha256) of a LOWERED operator sub-sequence (Phase 5). - operator_
variant_ label_ from_ steps_ json - Cross-language entry point: compute the
variant_label(hex sha256) of a lowered operator sub-sequence supplied as JSON (steps_json— a JSON array ofPipelineDslSteps, the same shape each generator branch carries). The nirs4all host calls THIS through the dag-ml-py binding so it computes the fingerprint over the EXACT SAME canonicalization +serde_json::to_vec(ryu) codepath dag-ml uses to stamp reports — instead of re-deriving it in pure Python, whosejson.dumpsfloat formatting diverges from Rust’s for common params (1e-05,1e-7, 1-ULP shortest decimals). Sharing this one function makes the host label byte-identical to the report label by construction. - orient
- Orient a score so higher is always better.
- parse_
pipeline_ dsl_ json - parse_
typed_ json - Parse exactly one strict JSON document while retaining numeric token kind.
- parse_
typed_ json_ bytes - Parse exactly one strict UTF-8 JSON document while retaining numeric kind.
- parse_
yaml_ manifest - Parse a single YAML manifest from raw text. The same
ControllerManifestdeserializer is reused so YAML and JSON cannot drift on field shape. - percentile_
ranks - Percentile rank of each value in
[0, 1](1 = largest); average ties. - phase_
span - Build the per-phase-scope span (ADR-12).
run_id/plan_idcorrelate concurrent or overlapping runs; emptyvariant_id/fold_idmean the field is not applicable to the current phase. Fields are identifiers only. - plan_
oof_ partition_ mode - The OOF
FoldPartitionModefor a plan: its fold set’s mode, orPartition(the clean-OOF default) when the plan carries no fold set. Used to make the cross-fold scoring gate mode-aware soResampled(ShuffleSplit / repeated CV) campaigns, where a sample is validated in several folds, are not rejected by thePartitionexactly-once uniqueness rule. - prediction_
cache_ payload_ schema_ migration_ policy - project_
parameter_ patches - Clone and deeply apply typed patches. Intermediate path segments must already exist and be objects; only the final object key may be new. Arrays are never addressable in V1.
- prune_
plan_ to_ active - Prune
plan(a Mechanism-B operator-generator UNION plan, compiled as a STACKING graph: every choice’s terminal model fans intomerge:generator_predictions -> model:meta) down to a single operator-SELECT candidate: the one operator choice inactive_nodesplus the prefix it shares with the other choices, with the generator merge + meta-model + every inactive choice physically removed (C Phase 4, #23). - reassemble_
merge_ targets - Mandatory, central merge target-coverage invariant — the single gate every merge reassembly
handler (separation/concat, fusion, off-fold) must pass through before emitting (or declining to
emit) a producer-level
RegressionTargetBlockfor a reassembled merge prediction. It closes audit R-P1-9: a merge that should be scored must never silently produce no score. - reduce_
predictions_ across_ branches - Reduce one prediction block per branch (each from a different producer/model) into a single
fused block under
merge_node, keyed bysample_id. This is the cross-branch analogue ofreduce_predictions_across_folds: where that joins folds of one producer, this joins branches of one merge point. Asymmetric-branch fusion is intrinsic — a modelless branch simply emits noPredictionBlock, so it is absent frombranch_blocksand contributes nothing. A sample is averaged over exactly the model-bearing branches that predicted it (its branch coverage), never over a fixed denominator, so partial coverage does not silently down-weight a sample. The join is identity-keyed and the union sample order is first-seen; positional joins are never used. - reduce_
predictions_ across_ folds - Reduce per-fold prediction blocks (same producer + partition) into one block, keyed by
sample_id— the native cross-fold ensemble dag-ml previously lacked. A sample that appears in exactly one fold (the disjoint OOF/validation case) passes through unchanged (mean-of-one); a sample predicted by several folds (the shared train/test case) is (weighted) averaged.avg= no weights;w_avg= per-fold weights (e.g.1/shifted_val_rmse). First-seen sample order is preserved; the join is identity-keyed, never positional. - reduce_
proba_ mean_ across_ branches - Probability-mean fusion for classification: average per-class probability rows across branches,
keyed by
sample_id, undermerge_node. Each row of every branch block is treated as a probability vector over the samewidthclasses; rows must be finite, non-negative and sum to 1 (withinPROBA_SUM_TOLERANCE). Likereduce_predictions_across_branchesthis is asymmetric-branch safe — modelless branches contribute no block — and each sample is averaged only over the branches that predicted it. The fused rows are renormalized so each output row is itself a valid probability distribution (it already sums to 1 under equal per-branch weight, but renormalization keeps the contract exact under floating-point and partial coverage). - refit_
artifact_ input_ key - regression_
conformal_ metrics - Reconstruct regression coverage, width, and Winkler interval score.
- regression_
report_ to_ candidate_ score - relation_
set_ fingerprint - representation_
type_ id - Return the frozen
type_idregistered forrepresentation_id, orNonewhen the id is outside the mirrored registry subset. Hosts use this to type a port while building an explicitdata_requirementsoverride; the adapter uses it to synthesize the default one. - resolve_
inner_ cv - Resolve the effective inner-CV policy for a node: a node-local policy
overrides the campaign-global default;
Nonemeans no nested CV. - resolve_
pipeline_ dsl_ minimal_ aliases - score_
regression_ aggregated_ block - score_
regression_ prediction_ block - select_
best_ operator_ variant_ by_ cv - Pick the best OPERATOR variant of an operator-generator UNION plan by its cross-validation score.
- select_
best_ operator_ variant_ from_ models - Route operator-SELECT from the operator-variant models lowered off a pipeline DSL
(
compile_operator_variant_models). - select_
best_ variant_ by_ cv - Pick the best variant of a multi-variant plan by its cross-validation score, natively.
- select_
best_ variant_ outcome_ by_ cv - Select the best plan variant and retain the exact decision produced by the shared native ranking pass.
- select_
best_ variant_ outcome_ by_ cv_ for_ target - Select a plan variant using only the cross-fold OOF average emitted by one explicitly resolved score-target producer. All producers’ validation reports remain retained in the returned outcome for audit.
- select_
candidate - select_
candidate_ groups - split_
absolute_ residual_ quantiles - Calibrate split absolute-residual radii for every requested coverage.
- tcv1_
encode - Encode one value using the DAG-ML TCV1 binary grammar.
- tcv1_
preimage - Return the domain-separated preimage
DAGML-TCV1\0 || encode(value). - tcv1_
sha256 - Return lowercase SHA-256 of
tcv1_preimage. - validate_
conformal_ coverages - Validate a non-empty, strictly increasing list of finite binary64 coverages.
- validate_
data_ binding_ envelope - validate_
inner_ fold_ set_ within_ outer - Enforce the nested-CV invariant: every sample in
inner— both the top-level universe and every fold’s train/validation members — must be an outer-fold training sample (never an outer-validation sample). Holds by construction for dag-ml-built inner folds, and also validates inner folds supplied from elsewhere. Refuses with an OOF-validation error on any leaking sample. - validate_
oof_ campaign - validate_
prediction_ blocks_ against_ folds - validate_
prediction_ blocks_ are_ oof - validate_
prediction_ cache_ payload_ matches_ record - validate_
producer_ oof_ coverage - Mandatory, central OOF coverage invariant — the single gate every path that concatenates a
producer’s per-fold validation predictions into one out-of-fold set must pass through. Spec
COORDINATOR_SPEC.md§“OOF And Leakage Rules” rule 3: every producer must provide exactly one validation prediction per requested sample unless an explicit aggregation policy says otherwise. - validate_
research_ provenance_ package_ files - validate_
stacking_ oof_ refit_ contract - validate_
typed_ serde_ value - Validate a structured
serde_jsonvalue against the same finite-number, nesting and NFC-key rules as a raw TCV1 document. - z_
scores - Sample z-scores (mean 0, unit sd,
n - 1divisor); zero variance → all0.