Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / FinishRepairHint

Interface: FinishRepairHint

Defined in: packages/core/src/orchestrator/finish-validators.ts:104

One structured repair hint on a failed verdict (RV3801): the exact edit whose application satisfies this validator, precise enough for the HOST to perform without a provider wire. The third comparison run died with its repair pool spent on a failure class whose remedy the evidence-grade verdict already prescribed word for word (write this run's id inside each offending sentence); a remedy that deterministic must not cost a model turn. A hint is advisory: the finish loop attempts the patch only when EVERY failure of the candidate carries hints, re-runs the FULL validator set over the patched document, and falls back to the ordinary model repair pool when the patch does not survive re-validation.

Properties

PropertyModifierTypeDescriptionDefined in
endreadonlynumberOffset one past the offending sentence's last character.packages/core/src/orchestrator/finish-validators.ts:110
insertreadonlystringThe identifier whose insertion the verdict prescribes.packages/core/src/orchestrator/finish-validators.ts:118
mechanismreadonly"insert-run-id"The one host-side edit the loop knows how to apply.packages/core/src/orchestrator/finish-validators.ts:106
sentencereadonlystringThe offending sentence verbatim (never normalized or clipped): the loop refuses the patch unless text.slice(start, end) equals it, so a stale hint can never edit the wrong bytes.packages/core/src/orchestrator/finish-validators.ts:116
startreadonlynumberOffset of the offending sentence's first character in the judged text.packages/core/src/orchestrator/finish-validators.ts:108