build-guardrail - Build a self-verifying mechanical guardrail
Turns a specification into a measurable failing check with baselines, ratchets, synthetic injections, and self-verification.
Tags
Updated: 2026-11-04Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Define a countable metric
- Write a falsification statement
- Measure loaded runtime state
- Validate known-answer samples
- Inject faulty and correct inputs
- Verify input entry conditions
- Generate baselines and ratchets
- Record decisions and reasons
- Distinguish execution failures
Inputs
- Specification or measurement target
- Current spec functional requirements
- Codebase and loaded runtime state
- Known-answer samples
- Synthetic test inputs
- Real-world corpus
- Existing baseline files
- Decision records
Outputs
- Failing mechanical checks
- Baseline JSON files
- Decision JSON files
- Reported violations and reasons
- Ratchet status
- Test execution status
Requirements
- Vitest test runner
- Access to loaded runtime state
- Write access to test and baseline files
