Rulvar API reference / @rulvar/core / synthesizeSpanClassOf
Function: synthesizeSpanClassOf()
ts
function synthesizeSpanClassOf(label): "composition" | "claim-judge" | "citation-judge" | "unclassified";Defined in: packages/core/src/l0/telemetry-reduce.ts:554
The ONE synthesize-span classifier both reducers fold through (RV4206, the RV3302 doctrine extended from a judge predicate to the whole vocabulary): the sixth comparison experiment's citation judge (label CITATION_JUDGE_LABEL, role 'synthesize') was recognized by neither reducer and fell into finalCompositionMs on both, so the run's 368889 ms "composition" was half verdict, its compositionSpans: 2 faked a repair round's signature on a clean run, and lastCandidateMs overshot the candidate by 154 seconds.
- 'claim-judge': claimJudgeStageOf recognizes the label.
- 'citation-judge': citationJudgePassOf recognizes it.
- 'composition': the engine's own composition labels (FINAL_COMPOSITION_LABEL, SYNTHESIS_NOTE_LABEL, suffixed variants included) and every UNLABELLED span: streams recorded before RV2901 carry no labels, and composition was the only unlabelled engine dispatch, so absence keeps its historical reading.
- 'unclassified': any OTHER label. A present label this classifier does not know is a NEW vocabulary member, and folding it silently into composition is exactly the failure this function exists to end; the reducers bucket it under
unclassifiedSynthesisMswith its own nonzero span counter.
Parameters
| Parameter | Type |
|---|---|
label | string | undefined |
Returns
"composition" | "claim-judge" | "citation-judge" | "unclassified"