Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / pairDraftClaims

Function: pairDraftClaims()

ts
function pairDraftClaims(
   draftText, 
   rows, 
   options?): ClaimPairsFold;

Defined in: packages/core/src/orchestrator/consistency.ts:233

Folds the composed draft against the settled pool it composed from: every draft sentence citing an anchor is paired with the pool sentences citing an intersecting span of the same file, verbatim agreement dropped. Pure and deterministic: the output depends only on the input order and bytes, so a resumed run re-derives it without journaling anything (the findContradictions precedent).

Parameters

ParameterType
draftTextstring
rowsreadonly ContradictionSource[]
options?ClaimPairOptions

Returns

ClaimPairsFold