This commit is contained in:
bQUARKz 2026-02-19 13:59:48 +00:00
parent cb7f6c8bb4
commit a7a40bd9c1
Signed by: bquarkz
SSH Key Fingerprint: SHA256:Z7dgqoglWwoK6j6u4QC87OveEq74WOhFN+gitsxtkf8

View File

@ -1,53 +1,3 @@
# PR-4.6 — Verifier Error Model Consolidation
### Briefing
Verifier errors must be deterministic, structured, and clearly separated from runtime traps.
### Target
* Introduce a coherent verifier error model.
### Work items
* Define a `VerifierError` enum covering:
* Stack underflow.
* Stack overflow.
* Invalid jump target.
* Invalid function boundary.
* Return slot mismatch.
* Ensure verifier returns structured errors.
* Update tests to expect structured errors.
### Acceptance checklist
* [ ] Verifier errors are structured and deterministic.
* [ ] No reliance on runtime traps for verifier failures.
* [ ] `cargo test` passes.
### Tests
* Update existing tests to assert specific verifier errors.
### Junie instructions
**You MAY:**
* Introduce a new verifier error enum.
* Refactor error returns.
**You MUST NOT:**
* Map verifier errors to runtime traps.
* Change runtime trap behavior.
**If unclear:**
* Ask before merging or renaming error categories.
---
# PR-4.7 — Verifier Golden Test Suite
### Briefing