feat(pbs): add explicit guest lifecycle hooks

This commit is contained in:
2026-10-28 09:12:48 +00:00
parent eb7d6a2398
commit 9504f4694a
41 changed files with 1209 additions and 24 deletions
@@ -216,3 +216,15 @@ This specification MUST NOT be read as authorizing:
- or reopening lifecycle-assembly ownership.
Platform validators MUST NOT depend on types from the PBS frontend module (`prometeu-frontend-pbs`). The package `p.studio.compiler.pbs` is not the complete boundary; facades shipped by that module remain PBS-owned. Platform validators MUST NOT discover roles from `__pbs.` prefixes.
## Guest hook verification boundary
Frontend diagnostics validate source marker targets/signatures and image-wide
uniqueness. Common typed validation MUST independently reject duplicate roles,
pause/resume parameters/results/captures and final FunctionId-zero targets.
These producer defenses do not replace runtime loading/admission. Assembly and
optimization MUST preserve hook metadata and externally entered bodies/callees.
Regression tests MUST inspect production PBX from source and execute it through
the production runtime. Source errors, common emission errors, loader failures
and executed traps retain distinct diagnostics; preserve the runtime envelope.