rulvar API reference / @rulvar/core / validateEditorialCommit
Function: validateEditorialCommit()
ts
function validateEditorialCommit(
ops,
claimsAfter,
options?): void;Defined in: packages/core/src/knowledge/claims.ts:240
The commit-batch validation: op shapes and gates first (GATE-DRIVEN since M11-T01: the human gate carries editorial claims, the eval-committer gate carries eval-measured claims with metrics), the post-apply cap second. Throws one ConfigError carrying every issue, so a maintenance caller fixes the batch in one round trip.
Parameters
| Parameter | Type |
|---|---|
ops | readonly ClaimOp[] |
claimsAfter | readonly ModelClaim[] |
options? | ClaimValidationOptions & { cap?: number; } |
Returns
void