Output & Action Invariant Checks
Checks data shapes, math totals, and business invariants before drafts finish or actions run.
Invalid drafts or malformed structured outputs slip through to downstream consumers.
Structural and numerical invariants are checked automatically before completion.
What It Does (In Plain English)
Validators plugs deterministic invariant checks into both action.authorize and task.complete (and optionally memory.admit). If an output violates a required field, range, or structural invariant, Validators refuses it on the first failure.
Real-World Example
- 1An agent drafts a JSON invoice summary where line items do not add up to the total.
- 2Validators checks the invariant on
task.completeand rejects the broken draft. - 3The agent corrects the arithmetic and submits a valid artifact.
When Should You Turn It On?
Required automatically at Level 2 (draft) and above.
Safety level note: Level 2 · Draft — Can create saved drafts and run offline sandbox checks.
How to Add It (workspace.yaml)
level: draft
kits:
- "@neusym/kit-validators@0.1.0"Technical Details & Configuration Options (0 settings)
| Package | @neusym/kit-validators |
|---|---|
| Provides Ports | None |
| Requires Ports | None |
| Optional Ports | None |
| Publishes Events | None |
| Owned DB Collections | None |
This kit requires zero custom configuration options.