pub const MAX_LENGTH: usize = 1000;
The cost caps (spec §4.2): characters (code points), nesting, steps.