pub fn resolve_logos_index(index: i64, len: usize) -> usizeExpand description
Resolve a 1-based LOGOS index (negative = end-relative: -1 is the last
element) to a 0-based offset, with the canonical loud errors. ONE
definition — every engine’s indexing goes through this rule.