SCL Error Codes — Deterministic Validation Reference

Definition

SCL is the deterministic, cryptographic identity protocol for AI run declarations.

This page is a reference of deterministic validation outputs returned when invalid input prevents canonicalized byte-level representations from producing canonical JSON and a SHA-256 identity.


Scope

This page lists error code categories associated with validation failure.

It does not redefine the specification and does not describe full protocol rules.


SCL enforces deterministic identity by rejecting invalid declarations before canonical JSON and SHA-256 identity are derived.

Validation Boundary


Error Code Reference

E001 — Encoding and Forbidden Bytes


E101 — Invalid or Missing Header


E102 — Invalid or Missing Handles Block


E103 — Unclosed Handles Block


E104 — Missing or Invalid scl Block


E105 — Unclosed scl Block


E201 — Invalid Handle Definition


E202 — Invalid Tag Syntax


E900 — Unclassified Validation Failure


Deterministic Property


Processing Context

For valid input, SCL defines a deterministic process:

bytes → AST → canonical JSON → SHA-256

Error codes apply when processing does not reach canonical JSON.


See also: SCL validation troubleshooting and testing SCL understanding.

Canonical Definition: SCL is the deterministic, cryptographic identity protocol for AI run declarations.