implements PLN-0005
This commit is contained in:
@@ -156,6 +156,14 @@ Rules:
|
||||
- user code may import those host owners through ordinary stdlib module imports,
|
||||
- and lowering continues through canonical host identity, `SYSC`, `HOSTCALL`, loader resolution, and final `SYSCALL`.
|
||||
|
||||
Host-backed SDK modules do not own every symbolic authoring surface that may feed them.
|
||||
|
||||
Rules:
|
||||
|
||||
- a stdlib host surface such as `@sdk:asset` may provide the low-level executable callable owner while the backend still owns symbolic authoring resolution;
|
||||
- PBS symbolic asset references (`Addressable`) are not themselves required to be stdlib-imported modules;
|
||||
- backend-owned frontend surface contracts MAY supply symbolic values that later lower into stdlib host-backed APIs.
|
||||
|
||||
## 13. Stdlib Contract Expectations for Builtin MVP
|
||||
|
||||
For the current builtin MVP, stdlib should be able to expose at least:
|
||||
|
||||
@@ -114,6 +114,12 @@ For PBS executable lowering:
|
||||
|
||||
`CALL_HOST` lowers to pre-load `HOSTCALL <sysc_index>`, not raw `SYSCALL`.
|
||||
|
||||
When a host-backed callsite carries backend-owned symbolic asset lowering metadata:
|
||||
|
||||
1. the backend must validate the symbolic asset operand against the backend-owned admitted surface,
|
||||
2. the backend must resolve the symbolic identity to canonical runtime-facing `asset_id`,
|
||||
3. and the final host-backed lowering path must consume the resolved `asset_id`, not the original symbolic address.
|
||||
|
||||
### 9.3 VM-owned intrinsic calls
|
||||
|
||||
`CALL_INTRINSIC` lowers to VM-owned intrinsic path and must remain distinct from host-binding paths.
|
||||
@@ -142,6 +148,7 @@ Before bytecode emission, backend must run structural pre-verification on lowere
|
||||
5. function-id validity,
|
||||
6. callsite arity consistency,
|
||||
7. and structural validity of host/intrinsic call forms.
|
||||
8. and structural validity of backend-owned symbolic-to-operational rewrites such as `Addressable -> asset_id`.
|
||||
|
||||
This pre-verification does not replace runtime verifier authority.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user