Troubleshoot Invalid Workloads in VB-OS
Common Issues
Section titled “Common Issues”Missing Required Fields
Section titled “Missing Required Fields”The boundary declares require_evidence: field_name but the workload does not include it.
Fix: Add the field to the workload with a non-null value.
Wrong Field Types
Section titled “Wrong Field Types”The boundary declares require_type: field: integer but the workload sends a string or boolean.
Fix: Ensure the field value matches the declared type. VBL expressions operate on integers only. require_type accepts integer, string, and boolean as compiler metadata validation, but all VBL comparison and arithmetic expressions use integer values.
Integer Representation
Section titled “Integer Representation”VBL is integer-only. Decimal values must be converted to integers before submission:
| Real Value | Integer Representation |
|---|---|
| $150.00 | 15000 (cents) |
| 99.5% | 9950 (basis points) |
Null Values
Section titled “Null Values”Required fields must have non-null values. A field that is present but null fails the admissibility check.
Extra Fields
Section titled “Extra Fields”Fields not referenced by the boundary are ignored. Extra fields do not cause failures (unless they match a prohibit_evidence declaration).
Next Steps
Section titled “Next Steps”- Evidence: workload structure
- Evidence Requirements: require_evidence syntax
- Integer Semantics: integer-only arithmetic
