# PR-1.7 — Bytecode Roundtrip Tests (Encode/Decode/Disasm Sanity) ### Briefing Before touching VM behavior, we want confidence that the bytecode toolchain is coherent after the ISA reset. ### Target * Add roundtrip tests that validate: * Encode → decode preserves structure. * Disasm prints stable, readable output. ### Work items * Add a small set of “known-good” bytecode samples built using the new minimal ISA. * Implement tests: * Encode then decode equals original structure. * Disasm output contains expected instruction names and operands. * Keep samples intentionally tiny and deterministic. ### Acceptance checklist * [ ] Roundtrip tests exist and pass. * [ ] Samples do not depend on legacy semantics. * [ ] `cargo test` passes. ### Tests * New unit tests for encode/decode/disasm roundtrip.