Trace Validation Error Codes¶
Catalog of validation_report.json error_code values.
Naming¶
Use lowercase snake case with category prefixes:
schema_*, trace_ref_*, image_*, count_*, version_*, identity_*, io_*, config_*, prompt_*.
Codes by category¶
Schema¶
schema_missing_fieldschema_type_mismatchschema_invalid_valueschema_non_string_keyschema_non_finite_numberschema_unsupported_typeschema_canonicalization_failed
Trace reference¶
trace_ref_missingtrace_ref_not_foundtrace_ref_hash_mismatchtrace_ref_index_out_of_rangetrace_shard_read_failedtrace_shard_manifest_mismatch
Image integrity¶
image_path_not_relativeimage_file_not_foundimage_hash_missingimage_hash_mismatch
Counts¶
count_per_task_shortfallcount_unexpected_task_present
Version¶
version_mixed_instance_versionversion_unsupported_instance_version
Identity¶
identity_instance_id_mismatchidentity_non_deterministic_order
I/O¶
io_trace_write_failedio_atomic_finalize_failedio_validation_report_write_failedio_failure_bundle_write_failed
Config/registry¶
config_task_not_registeredconfig_registry_file_missingconfig_registry_hash_mismatchconfig_build_report_schema_mismatch
Prompt validation¶
prompt_metadata_missingprompt_bundle_not_foundprompt_bundle_invalidprompt_key_missingprompt_variant_count_mismatchprompt_query_id_index_out_of_rangeprompt_required_slot_missingprompt_unresolved_placeholder
Maintenance¶
If a code is added/renamed, update: 1. validator implementation, 2. this catalog, 3. related tests.