1.1 KiB
1.1 KiB
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_vmis feature-frozen at the moment. we are going to validate onlyir_core- Lowering is the only place
ir_coreandir_vmtouch each other. > - VM IR is never imported from Core IR.
- Core IR never imports VM IR.
Global Rules (Read Before Any PR)
- No new features. Only semantic correction.
- No new VM opcodes yet. VM changes come later.
- No fallback values (e.g.
FunctionId(0)). Fail with diagnostics. - Every PR must include tests (golden or unit).
- Core IR is the source of semantic truth.