pr8.1
This commit is contained in:
@@ -1,61 +1,3 @@
|
||||
# PR-8.1 — Disassembler (Roundtrip + Snapshot Reliability)
|
||||
|
||||
## Briefing
|
||||
|
||||
The disassembler must be:
|
||||
|
||||
* Deterministic
|
||||
* Complete
|
||||
* Roundtrip-safe (encode → decode → encode)
|
||||
* Snapshot-friendly
|
||||
|
||||
It must fully support:
|
||||
|
||||
* New opcodes (MAKE_CLOSURE, CALL_CLOSURE, SPAWN, YIELD, SLEEP)
|
||||
* Updated syscall representation
|
||||
* Closure and coroutine instructions
|
||||
|
||||
## Target
|
||||
|
||||
1. Update disassembler to support all new opcodes.
|
||||
2. Guarantee stable formatting.
|
||||
3. Add roundtrip validation tests.
|
||||
|
||||
Formatting rules:
|
||||
|
||||
* No unstable ordering.
|
||||
* No implicit formatting differences across platforms.
|
||||
* Explicit numeric representation where required.
|
||||
|
||||
## Acceptance Checklist
|
||||
|
||||
* [ ] All opcodes supported.
|
||||
* [ ] Deterministic formatting.
|
||||
* [ ] Roundtrip encode/decode test passes.
|
||||
* [ ] Snapshot tests stable.
|
||||
|
||||
## Tests
|
||||
|
||||
1. Encode → disasm → reassemble → byte-equal check.
|
||||
2. Snapshot test for representative programs.
|
||||
3. Closure/coroutine disasm coverage.
|
||||
|
||||
## Junie Instructions
|
||||
|
||||
You MAY:
|
||||
|
||||
* Modify disassembler module.
|
||||
* Add snapshot tests.
|
||||
|
||||
You MUST NOT:
|
||||
|
||||
* Change bytecode encoding format.
|
||||
* Introduce formatting randomness.
|
||||
|
||||
If any opcode semantics unclear, STOP and ask.
|
||||
|
||||
---
|
||||
|
||||
# PR-8.3 — Layered Test Suite Architecture
|
||||
|
||||
## Briefing
|
||||
|
||||
Reference in New Issue
Block a user