/MRS-Specification-RFC#13-progressive-validation
Validation Pipeline
Stage 1: Syntax Validation
Verifies operations are well-formed.Syntax Errors
Stage 2: Reference Validation
Verifies all references are valid.Reference Errors
Stage 3: Permission Validation
Verifies operations are within granted permissions.Permission Errors
Stage 4: Musical Rule Validation
Verifies musical constraints are satisfied.Structural Rules
Musical Rules
Constraint Rules
Severity Levels
Validation Results
All Pass
Errors Found
Warnings Only
Constraint Validation
Constraints from the Working Set Envelope are checked in Stage 4.Range Constraint
Avoid Constraint
Prefer Constraint
Density Constraint
Partial Application
When some operations fail:Best Practices
For Agent Implementers
- Validate operations locally before sending
- Use tmp-ids consistently within envelope
- Respect constraints from Working Set
- Handle partial success gracefully
For Orchestrator Implementers
- Run all stages; collect all errors
- Provide specific, actionable error messages
- Include operation index in errors
- Support configurable severity thresholds