Source-valid byte-slice domain evidence Pinned toolchain commands, run from the repository root: rustc --version --verbose rustc --print cfg | rg 'target_(arch|pointer_width)' rustc .trellis/scratch/source_valid_slice_probe.rs -o /tmp/source_valid_slice_probe /tmp/source_valid_slice_probe Raw configuration and probe output: rustc 1.98.0-nightly (14210df0e 2026-05-31) host: x86_64-unknown-linux-gnu target_arch="x86_64" target_pointer_width="64" arch=x86_64 usize_bits=64 isize_max=9223372036854775807 u8_size=1 Pinned core-library source: /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/slice/mod.rs:801 states that a slice is never larger than isize::MAX bytes. The same toolchain's core/src/num/int_macros.rs:47 defines a signed integer's MAX as the corresponding unsigned MAX shifted right by one. /home/leanagent/.rustup/toolchains/nightly-2026-06-01-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/str/mod.rs:507-510 requires the contents of a str to remain valid UTF-8 and states that using a str whose contents are not valid UTF-8 is undefined behavior. Consequently, on the configured 64-bit target a &[u8] has at most 9223372036854775807 elements. This is a byte-count condition only: &[u8] does not impose UTF-8 validity or restrict the values of its u8 elements. A Rust str has the same inherent byte-length bound and additionally consists of valid UTF-8 bytes.