feat(vm)!: implement typed callables and single-context execution
Intrepid/Prometeu/Runtime/pipeline/pr-master This commit looks good
Intrepid/Prometeu/Runtime/pipeline/pr-master This commit looks good
Add structural Fn signatures, typed capture environments, indirect calls and Trait dispatch while preserving logical parameter and result groups, ownership and budgets. Remove guest coroutine execution and legacy loading. Activate bounded sealed PBX v1 with mandatory capture metadata, preserve frame continuations and root return results, and migrate producers and shipped cartridges. Publish coordinated specs, handoffs and the completed runtime lesson. Validation: 880 workspace tests passed, 9 existing tests ignored; both cartridges completed six production-host frames.
This commit is contained in:
@@ -29,7 +29,7 @@ The VM does not own the machine lifecycle. Firmware does.
|
||||
- **PVM**: the VM subsystem that executes cartridge bytecode.
|
||||
- **Cartridge**: the executable package loaded by firmware.
|
||||
- **AppMode**: cartridge mode, currently `Game` or `System`.
|
||||
- **Logical frame**: execution unit completed when the app reaches `FRAME_SYNC`.
|
||||
- **Logical frame**: execution unit completed when the app reaches FRAME_SYNC or successfully returns from its last root. Sync preserves next-PC continuation; root return completes entry.
|
||||
- **Host tick**: the host-driven outer update tick.
|
||||
- **Process**: technical execution owned by POS lifecycle.
|
||||
- **Task**: navigable presence associated with an app flow.
|
||||
@@ -73,7 +73,7 @@ POS is responsible for:
|
||||
At the VM boundary, POS must preserve:
|
||||
|
||||
- logical-frame semantics;
|
||||
- `FRAME_SYNC` as the canonical frame boundary;
|
||||
- `FRAME_SYNC` and successful last-root `RET` as logical frame boundaries;
|
||||
- deterministic transition from host tick to VM slice execution.
|
||||
|
||||
Firmware must not treat a single global VM object as the canonical execution
|
||||
@@ -336,9 +336,9 @@ These states express machine orchestration above the VM. They are not guest-visi
|
||||
For game-mode execution, firmware/runtime coordination preserves:
|
||||
|
||||
- input latched per logical frame;
|
||||
- execution in host-driven slices until `FRAME_SYNC`;
|
||||
- execution in host-driven slices until `FRAME_SYNC` or successful last-root `RET`;
|
||||
- present only when a logical frame completes;
|
||||
- no frame present when budget ends before `FRAME_SYNC`.
|
||||
- no frame present when budget ends before a logical frame boundary.
|
||||
|
||||
This keeps the machine model deterministic and observable.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user