Skip to content
1 min read · 154 words

Interface: OrderRule

Defined in: src/batteries/validation/types.ts:27

Relative order required between two primitive kinds.

Properties

PropertyTypeDescriptionDefined in
afterOrderingPrimitiveKindPrimitive that must occur after OrderRule.before.src/batteries/validation/types.ts:35
beforeOrderingPrimitiveKindPrimitive that must occur first.src/batteries/validation/types.ts:33
idstringStable identifier used in violations and advisory configuration.src/batteries/validation/types.ts:31
onlyLatestGroup?booleanWhen true, evaluate only the current/latest group; earlier malformed historical groups are intentionally ignored, as with Anthropic's current-turn thinking requirement.src/batteries/validation/types.ts:42
scope"adjacent-same-role-group" | "entire-turn"Whether the relationship is local to a role group or spans the whole turn.src/batteries/validation/types.ts:37
type"order"Discriminator selecting the relative-order evaluator.src/batteries/validation/types.ts:29