Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / semanticTerminalVerdictOf

Function: semanticTerminalVerdictOf()

ts
function semanticTerminalVerdictOf(input): 
  | SemanticTerminalVerdict
  | undefined;

Defined in: packages/core/src/orchestrator/semantic-verdict.ts:110

Folds the one semantic verdict out of envelope facts (RV4209). Returns undefined when NO semantic meta is present: nothing was configured, nothing judged anything, and absence must keep meaning NOT RECORDED rather than a fabricated verdict. Never throws on malformed shapes, and malformation degrades toward 'not-judged', the fail-closed direction (RV4402): a meta that carries NO evidence anything judged (no judgedHash/auditedHash, no judgeInvoked, no judge flag, no judgedStage) folds 'not-judged' with a trust code, never 'clean', and a counter that is present but not a count taints its meta the same way. An ABSENT field still reads absent: absence is honest, garbage is not.

Parameters

ParameterType
inputSemanticVerdictInput

Returns

| SemanticTerminalVerdict | undefined