pr 35
This commit is contained in:
@@ -1,36 +1,3 @@
|
||||
## PR-10 — HIP ABI Freeze v0: Trap Conditions + Debug Surface
|
||||
|
||||
### Goal
|
||||
|
||||
Freeze the runtime-visible ABI behavior for HIP operations.
|
||||
|
||||
### Required Content (Normative)
|
||||
|
||||
Add a document (or module-level docs) defining traps:
|
||||
|
||||
* Invalid `GateId` → trap `TRAP_INVALID_GATE`
|
||||
* Dead gate access → trap `TRAP_DEAD_GATE`
|
||||
* Out-of-bounds offset (`offset >= slots`) → trap `TRAP_OOB`
|
||||
* Type mismatch (if enforced) → trap `TRAP_TYPE`
|
||||
|
||||
Define what a trap includes:
|
||||
|
||||
* opcode
|
||||
* message
|
||||
* optional span (if debug info is present)
|
||||
|
||||
### Required Changes
|
||||
|
||||
* Add trap codes/constants in bytecode/VM interface.
|
||||
* Ensure bytecode format reserves space / structure for propagating trap info.
|
||||
|
||||
### Tests (Mandatory)
|
||||
|
||||
* Unit tests verifying trap codes are stable (numeric values frozen).
|
||||
* Doc tests or snapshot for ABI text.
|
||||
|
||||
---
|
||||
|
||||
## PR-11 — Cross-Layer Conformance Tests: Core→VM→Bytecode (HIP)
|
||||
|
||||
### Goal
|
||||
|
||||
Reference in New Issue
Block a user