# PBS ⇄ VM Alignment — Junie PRs (HIP Semantics Hardening) > **Purpose:** fix semantic mismatches between the PBS frontend (Core IR) and the VM **before** any VM heap/gate implementation. > > These PRs are **surgical**, **mandatory**, and **non-creative**. > Junie must follow them **exactly**. > **Context:** > > * PBS frontend is implemented and produces Core IR. > * Bytecode stability is a hard requirement. > * VM currently has stack + const pool; heap exists but is unused. > * HIP semantics (gates/storage) are currently **incorrectly lowered**. > * `ir_vm` is feature-frozen at the moment. we are going to validate only `ir_core` > * Lowering is the only place `ir_core` and `ir_vm` touch each other. > - VM IR is never imported from Core IR. > - Core IR never imports VM IR. --- ## Global Rules (Read Before Any PR) 1. **No new features.** Only semantic correction. 2. **No new VM opcodes yet.** VM changes come later. 3. **No fallback values** (e.g. `FunctionId(0)`). Fail with diagnostics. 4. **Every PR must include tests** (golden or unit). 5. **Core IR is the source of semantic truth.**