Generated Tripwire structural admission
SDK 4af0ec83b12d107dfc9ac77462767faf2fe83959, based on hygiene + cold rejection
SDK 205eb83, checks the complete cumulative-end directory before a generated
handler runs. It contains no cold executor outlining or shared writer change.
Patch, native results.
For E stored ends, generated const-offset reads load E u32 words from the fixed
area. E−1 adjacent comparisons establish nondecreasing order; one final comparison
bounds the last end by admitted message length minus FIXED_LEN. Transitivity then
bounds every interval. Zero/one-variable records have no stored ends and add no
checks. The malformed literal ends [4,2] with six payload bytes are retained in
tests/structure.rs: nonadjacent or scalar-only callback paths now reject before
entry instead of observing overlapping fields.
Measured source-spy work for the three-variable interleaved record remains one length read and one 17-byte fixed-area copy, with no payload bytes fetched. Nested opening copies exactly the outer and child fixed areas (8 +17 bytes). No generated heap operation, parser table, schema hash or new public/unchecked API is added. Header-word comparison counts are source accounting, not IC costs.
Selected byte limits, bool representation and fetched UTF-8 stay lazy; raw Request callers remain responsible for their complete directory. Authentication, business budgets and matching codec contracts are still required. Existing checked getters remain: avoiding their repeated checks would require a new validated-layout proof/API, which this change deliberately does not add.
Final native gates passed 73 tests and 8 doctests, including seven structural source-spy tests. Full locked offline metadata retained 140 packages/31 members; source hashes were unchanged during final testing. The initial facade failure expected the retired ignored-malformed-directory behavior; its log is retained, and the corrected test still proves valid early rejection needs no payload read. No standalone Wasm/IC measurement isolated this change. It was qualified in the combined Stage C workload; its individual instruction contribution is not attributed.