Type Alias SemanticCompilationResult<TArtifact>Experimental

SemanticCompilationResult<TArtifact>: {
    artifact: TArtifact;
    fidelity: SemanticCompilerFidelity;
    losses: readonly SemanticCompilerLoss[];
    outcome: "compiled";
} | {
    diagnostics: readonly [SemanticCompilerDiagnostic, ...SemanticCompilerDiagnostic[]];
    fidelity: "unsupported";
    outcome: "unsupported";
}

A compiler never silently drops a node. Valid but non-representable queries produce an explicit unsupported result; malformed queries still throw the common planning error before an artifact can be constructed.

Type Parameters

  • TArtifact