Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / CitationAuditRow

Interface: CitationAuditRow

Defined in: packages/core/src/orchestrator/citation-audit.ts:34

One sampled citation occurrence, before any verdict.

Properties

PropertyTypeDescriptionDefined in
anchorstringThe raw citation text as it appears in the sentence.packages/core/src/orchestrator/citation-audit.ts:42
anchorOrdinal?numberWhich anchor of a compound sentence this row audits (RV4208, resolver v2 only): zero-based, in sentence order. Resolver v1 samples only a sentence's FIRST anchor, so the field is absent there and on every earlier row.packages/core/src/orchestrator/citation-audit.ts:53
clause?stringThe claim clause NEAREST this row's anchor (RV4208, resolver v2 only): the sentence segment, split at clause boundaries, that contains the anchor. A compound sentence cites three files for three different claims; judging each anchor against the WHOLE sentence asks whether the lines entail claims they were never cited for.packages/core/src/orchestrator/citation-audit.ts:62
endLine?numberThe range end when the citation is path:start-end.packages/core/src/orchestrator/citation-audit.ts:46
excerpt?stringThe resolved lines, L<n>: <text> per line. Absent when the FIRST cited line does not resolve in the host snapshot, which is itself an unsupported verdict: a citation nothing resolves is not provenance (the citedValueValidator doctrine).packages/core/src/orchestrator/citation-audit.ts:69
linenumber-packages/core/src/orchestrator/citation-audit.ts:44
pathstring-packages/core/src/orchestrator/citation-audit.ts:43
rownumberZero-based row index, the judge's addressing.packages/core/src/orchestrator/citation-audit.ts:36
sectionstringThe owning H2 marker, or '' for text above the first heading.packages/core/src/orchestrator/citation-audit.ts:38
sentencestringThe citing sentence, verbatim.packages/core/src/orchestrator/citation-audit.ts:40
unit?CitationExcerptUnitWhat resolver v2 excerpted (RV4208): the bounded logical unit's type, its line count, and whether the caps clipped it. Absent under resolver v1, whose window is fixed and self-describing.packages/core/src/orchestrator/citation-audit.ts:75