The numbers
In code
Test it against the corpus
cap46-nested-auth-local-0001is a real six-level authorization tree. Every walker should accept it.cap46-scval-limits-synthetic-0001holds anScValclaiming 2³² − 1 elements in 12 bytes, and a vector nested 2,000 deep. A decoder with the caps above refuses both immediately; one that reserves capacity from the length prefix tries to allocate for four billion elements.base-over-max-length-synthetic-0001is a real envelope with a 101st operation, and one with a 29-byte memo. Both must fail to decode.