feat(pbs): add explicit guest lifecycle hooks
This commit is contained in:
+160
@@ -0,0 +1,160 @@
|
||||
---
|
||||
id: LSN-0097
|
||||
ticket: pbs-guest-lifecycle-hooks
|
||||
title: Explicit Guest Hooks and Preserved Continuations
|
||||
created: 2026-10-28
|
||||
tags: [runtime-integration]
|
||||
---
|
||||
|
||||
# Explicit Guest Hooks and Preserved Continuations
|
||||
|
||||
Owner: `compiler/pbs`, with propagation to `compiler/general` and `studio`.
|
||||
Historical workflow: AGD-0086 → accepted DEC-0081 → completed PLN-0159.
|
||||
The normative language/runtime contracts live in the linked specifications;
|
||||
this lesson explains their implementation and qualification.
|
||||
|
||||
## Original problem
|
||||
|
||||
The runtime already published optional BeforePause and BeforeResume Registry
|
||||
roles. Studio's common IR/PBX represented them, but PBS had no source declaration
|
||||
selecting their targets. Init and Frame were already frontend-owned inputs to a
|
||||
guarded common entry wrapper. Turning them into runtime callbacks would have
|
||||
changed initialization and frame semantics unnecessarily.
|
||||
|
||||
The missing producer capability was explicit selection, validation and metadata
|
||||
propagation, followed by source-to-production-runtime evidence. Existing runtime
|
||||
unit tests were useful oracles but did not prove the PBS producer path.
|
||||
|
||||
## Consolidated decision
|
||||
|
||||
Use marker attributes on nongeneric top-level userland functions:
|
||||
|
||||
```pbs
|
||||
declare global transitions: int = 0;
|
||||
|
||||
[BeforePause]
|
||||
fn preparePause() -> void {
|
||||
transitions += 1;
|
||||
}
|
||||
|
||||
[BeforeResume]
|
||||
fn prepareResume() -> void {
|
||||
transitions += 1;
|
||||
}
|
||||
```
|
||||
|
||||
Each target has zero parameters, logical results and captures. Reading/writing
|
||||
globals is allowed and does not create a function capture. Closures can still be
|
||||
created and used in the body. Markers accept no arguments, cannot combine with
|
||||
another lifecycle marker and may accompany existing Doc metadata.
|
||||
|
||||
Each role is independently optional, with at most one distinct declaration in
|
||||
the compiled image, including imports. No colocation with Frame is required.
|
||||
Repeated imports and reexports preserve the original declaration's identity.
|
||||
Function names do not select roles; an unmarked function named BeforePause is
|
||||
ordinary. A direct call to preparePause is also ordinary and does not request an
|
||||
OS transition or acquire a controlled-call context.
|
||||
|
||||
BeforePause/BeforeResume lower to existing role bytes 1/2. Init, Frame, ordinary
|
||||
functions and physical entry zero retain role None. The selected targets and
|
||||
their dependencies are externally entered retention roots, even without source
|
||||
callers. MemcardBoot selection/bootstrap/persistence remain a separate scope;
|
||||
there is no termination hook or new lifecycle syscall.
|
||||
|
||||
## Implementation result
|
||||
|
||||
The PBS AST/parser recognizes both markers and rejects invalid declaration
|
||||
targets, arguments and lifecycle combinations. Source semantic validation checks
|
||||
empty nongeneric signatures; project validation detects distinct conflicting
|
||||
targets and reports their names/locations. Canonical source spans distinguish a
|
||||
new declaration from the same declaration encountered repeatedly.
|
||||
|
||||
PbsRuntimeTypes emits the role in typed FunctionMetadata. Existing common
|
||||
assembly, lowering, optimization, linking and PBX writing preserve that metadata
|
||||
and retain the functions/callees. The common writer independently rejects
|
||||
captures, invalid typed signatures, duplicate roles and physical entry-zero
|
||||
targets. It consumes neutral roles rather than PBS ASTs or names.
|
||||
|
||||
Editorial token classification recognizes both attributes. The installed
|
||||
knowledge package includes the updated English specs, both hooks in the complete
|
||||
example and a lifecycle guide. The installed-JAR gate compiles the example and
|
||||
checks exactly one target per role. No runtime source or commit was needed.
|
||||
|
||||
## Execution model and qualification
|
||||
|
||||
Home's existing gameplay handoff precedes BeforePause and suspension. Reactivation
|
||||
precedes BeforeResume; normal gameplay becomes eligible after the hook's outer
|
||||
return. Controlled calls use the same stacks, globals and heap roots and restore
|
||||
the interrupted continuation. Init and its guard are not restarted.
|
||||
|
||||
The runtime owns 1,500,000 total virtual cycles per controlled invocation, in
|
||||
slices of at most 250,000 admitted cycles with whole-instruction overshoot.
|
||||
Slices/debugger stops do not renew fuel. FRAME_SYNC traps inside a controlled
|
||||
hook or its callees before frame publication. Fatal trap/fuel failure blocks
|
||||
gameplay through the existing crash path. There is no automatic save, rollback,
|
||||
compensation or wall-clock timeout.
|
||||
|
||||
Qualification used runtime `dcf6561ea73446e0a3e1cf1c73eda20923b38df0`, a clean
|
||||
checkout, on local macOS arm64. Both Rust dev/release profiles executed ordinary
|
||||
and optimized producer images. Seventeen actual PBS-produced images cover both,
|
||||
each and neither hook, ordinary calls, successful multi-slice execution, fatal
|
||||
trap/fuel, and an actual import/alias/reexport project. Two explicitly synthetic
|
||||
binary fixtures cover direct/transitive sync because PBS has no sync syntax.
|
||||
|
||||
The production Firmware/SystemOS foreground path ran on the standard
|
||||
TestPlatform hardware. It checked ordered guest effects, preserved PC, game
|
||||
session tick/frame counters, global/heap state and one Init execution. Direct
|
||||
suspension and Shell handoff added no reaction tick. A partial-frame VM check
|
||||
retained its operand and call frame while both hooks executed. Breakpoint and
|
||||
instruction stepping used the retained total fuel budget. Failure replays made
|
||||
zero subsequent VM steps and produced no additional gameplay frame.
|
||||
|
||||
The guest observation encodes `trace * 10000 + initCount * 100 + heapValue`:
|
||||
|
||||
| Hooks | Trace | Init count | Heap value | Expected observation |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| Both | 23 | 1 | 12 | 230112 |
|
||||
| Pause only | 2 | 1 | 9 | 20109 |
|
||||
| Resume only | 3 | 1 | 10 | 30110 |
|
||||
| Neither | 0 | 1 | 7 | 107 |
|
||||
|
||||
Probe calls are terminal observations after all continuation/frame assertions;
|
||||
they do not instrument or replace the foreground lifecycle path.
|
||||
|
||||
Full Gradle regression and installedKnowledgeTest passed, along with source,
|
||||
semantic/editorial, common Registry/PBX and lifecycle-assembly tests. Commands,
|
||||
suite summaries, profile logs and source/fixture hashes are retained in
|
||||
[evidence](evidence/summary.json). This is local lifecycle qualification;
|
||||
reference-game/installed-runtime qualification remains DSC-0086 and persistence
|
||||
remains DSC-0085. Other platforms are not claimed by this evidence.
|
||||
|
||||
## Pitfalls and reusable patterns
|
||||
|
||||
- **Source selection is not invocation.** Preserve normal function-call behavior;
|
||||
only the OS-controlled boundary changes the execution context.
|
||||
- **No caller does not mean dead.** A runtime role is an external entry edge.
|
||||
Verify final optimized bytes and execution, not just parser acceptance.
|
||||
- **Zero captures does not prohibit globals or internal closures.** Validate the
|
||||
target environment rather than banning ordinary language facilities.
|
||||
- **Count declarations, not import appearances.** Cross-file uniqueness must
|
||||
reject distinct targets while accepting an alias/reexport of the original.
|
||||
- **Check physical IDs after linking.** Frontends select stable callable identity;
|
||||
the common linker/writer validates final entry-zero exclusion.
|
||||
- **Observe the retained session after failure.** A crash activates another UI
|
||||
context. Reading an active-foreground telemetry facade can return the UI's zero
|
||||
counters and produce a false lifecycle failure. Read the game's session counters.
|
||||
- **Keep synthetic instruction tests explicit.** A binary sync oracle qualifies
|
||||
runtime rejection without advertising unsupported PBS syntax.
|
||||
- **Separate producer and provider variants.** Optimized PBS and release Rust are
|
||||
two independent dimensions; qualify both instead of using one as a substitute.
|
||||
|
||||
## References
|
||||
|
||||
- [Static source contract](<../../../docs/specs/compiler-languages/pbs/4. Static Semantics Specification.md>).
|
||||
- [Dynamic execution contract](<../../../docs/specs/compiler-languages/pbs/9. Dynamic Semantics Specification.md>).
|
||||
- [PBS lowering](<../../../docs/specs/compiler-languages/pbs/13. Lowering IRBackend Specification.md>).
|
||||
- [Common typed Registry/PBX](../../../docs/compiler/general/specs/typed-registry-and-pbx-v0.md).
|
||||
- [Source-to-PBX corpus](../../../prometeu-architecture-tests/src/test/java/p/studio/compiler/backend/irvm/PbsGuestLifecycleTest.java).
|
||||
- [Production VM/foreground harness](../../../tools/pbx-conformance/lifecycle.rs).
|
||||
- [Installed lifecycle guide](../../../prometeu-compiler/frontends/prometeu-frontend-pbs/src/main/resources/pbs-knowledge/examples/game/1/LIFECYCLE.md).
|
||||
- Runtime [role binding](../../../../runtime/docs/specs/runtime/02c-program-registry-and-pbx-v0.md) and [controlled execution](../../../../runtime/docs/specs/runtime/09a-coroutines-and-cooperative-scheduling.md).
|
||||
@@ -0,0 +1,32 @@
|
||||
# Lifecycle qualification evidence
|
||||
|
||||
Owner: compiler/pbs, propagating to compiler/general and Studio. Completed under
|
||||
DEC-0081 / PLN-0159. `summary.json` records revision, platform/configuration,
|
||||
commands, results, JUnit suites and the distinction between producer/runtime
|
||||
profiles. All recorded checks completed with exit code zero.
|
||||
|
||||
The source corpus contains 17 production PBS images (eight scenarios in ordinary
|
||||
and optimized form, plus a real workspace import/alias/reexport image). Two
|
||||
separate synthetic PBX images cover direct and transitive FRAME_SYNC rejection.
|
||||
The mandatory runtime driver fails if an expected fixture or probe index is absent.
|
||||
|
||||
- `frontend.log.gz`: focused source diagnostics and editorial classification.
|
||||
- `regression-and-installed.log.gz`: complete Gradle regression and installed-JAR
|
||||
example compilation/metadata validation.
|
||||
- `runtime-dev.log.gz`, `runtime-release.log.gz`: production VM/firmware execution,
|
||||
ordered guest effects, retained state/PC/frames, foreground transitions and
|
||||
failure/budget/debugger checks for both producer variants.
|
||||
- `TEST-*.xml.gz`: final focused source-corpus result, including project imports.
|
||||
- `sources.sha256`: final implementation, test, harness and normative doc hashes.
|
||||
- `fixtures.sha256`: generated PBS sources, PBX images and terminal probe indices.
|
||||
- `SHA256SUMS`: hashes of retained evidence files.
|
||||
|
||||
The full Gradle check preceded a final test-only addition of unmarked functions
|
||||
named BeforePause/BeforeResume to the lifecycle corpus. Its focused regeneration
|
||||
and both final runtime profiles passed afterward; production code was unchanged.
|
||||
|
||||
The runtime checkout stayed clean and uncommitted. Local macOS arm64 is the
|
||||
qualified platform. Installed runtime/reference-game qualification (DSC-0086)
|
||||
and MemcardBoot/persistence (DSC-0085) remain separate. The installed example was
|
||||
compiled from installed JARs and its role metadata checked; this does not claim an
|
||||
installed runtime process test.
|
||||
@@ -0,0 +1,10 @@
|
||||
2c4e57abf13882fb1cf661ed877e37f5e44225b0395fe83a3836e44678b518b4 README.md
|
||||
e520456a82c905db92598e4a314b1614d409358674e73d0dcd61416b146d3c6d TEST-p.studio.compiler.backend.irvm.PbsGuestLifecycleTest.xml.gz
|
||||
638814b1afabc2e156de2eb6f018400aab7fea2c9b69c7f956ab16251dd5ed60 fixtures.sha256
|
||||
ceb059e502313f0327e0560a4532c57f4a341776d054fee1558c54e6de82c4b1 frontend.log.gz
|
||||
44619de3dcc5ca667a2dbe951146eba0cf21a919f8d0a1610dc5fec8ade1f33d regression-and-installed.log.gz
|
||||
cd7051255fed7a2760fbec8be05b9e8a98b224f704828a26e28ee71097810bbf runtime-dev.log.gz
|
||||
3bd1c9aceb4a05bfcd5ddaa4a1d8e2ed96270e3666b7f4ce46a91f7e7bf902ee runtime-release.log.gz
|
||||
bd704a8fe37c15f2b404c3924e49b06f5a8b3a1e389be9252cd3dae953b67f7a sources.sha256
|
||||
867e02d58fcd451a68a54c59ae63e0d57d2c08fc79861d5d0d8b20ee832b5d81 summary.json
|
||||
d7e7bdfdb38395e54163d7b9d24d7a6f1ce5fb5d017feac63c6e0fc463c7afaf workflow.txt
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,43 @@
|
||||
5c2246b38f41115a78a218e18df97100c88766d493618337784d51e91bdd35a1 pbs-lifecycle-both-optimized.pbx
|
||||
3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278 pbs-lifecycle-both-optimized.probe
|
||||
50b428366203d8f48821af5c83235aa1022d284f7575152f75ff266b6299fefd pbs-lifecycle-both.pbs
|
||||
6d4de740a607f6f330fb7e54144a0163ba49f9a2a206a8276f01ae89d96866be pbs-lifecycle-both.pbx
|
||||
3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278 pbs-lifecycle-both.probe
|
||||
07e4f1ce2de6003b54b4b892ca8999eedb6cd57758fece362f97cb8da205599c pbs-lifecycle-direct-optimized.pbx
|
||||
3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278 pbs-lifecycle-direct-optimized.probe
|
||||
ed4ac88be81337c387e315bd1124a66c7beda2723b72a5a9a8d81e0740a0d562 pbs-lifecycle-direct.pbs
|
||||
6ca68fdfa58e57eab8a29a88f39f0ff14913b15df5ef2ff77ed793140b65c92f pbs-lifecycle-direct.pbx
|
||||
3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278 pbs-lifecycle-direct.probe
|
||||
c24146b38d7d588b6c0d8d5e08add0f884b5b2bc580633bad150c6d0c47814ca pbs-lifecycle-fuel-optimized.pbx
|
||||
3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278 pbs-lifecycle-fuel-optimized.probe
|
||||
8b747f16681b209f6ba05ecd41eba266824938fe446a31ddf55d29115c79a563 pbs-lifecycle-fuel.pbs
|
||||
ce037c0e3206add2f07a47ba55276016915cd431f2051b2f9a9082e6bfb3ef78 pbs-lifecycle-fuel.pbx
|
||||
3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278 pbs-lifecycle-fuel.probe
|
||||
dddc982653e21944186c4825839bd6c016e96fad5163dd952ce5785575e818af pbs-lifecycle-imports.pbx
|
||||
889a67c478fb1e7d369bf3c7cef4074033ab9fee7e18d28a7d85b9b2d33ae2b5 pbs-lifecycle-none-optimized.pbx
|
||||
4fc82b26aecb47d2868c4efbe3581732a3e7cbcc6c2efb32062c08170a05eeb8 pbs-lifecycle-none-optimized.probe
|
||||
5cb251da8ea307dd541698651393f2beb38c7cee19aafd074fdca509f0630ef0 pbs-lifecycle-none.pbs
|
||||
8dddca4ceedd591f4189d7855f9bd679642969821000f5bfb82e14fcafd92adc pbs-lifecycle-none.pbx
|
||||
4fc82b26aecb47d2868c4efbe3581732a3e7cbcc6c2efb32062c08170a05eeb8 pbs-lifecycle-none.probe
|
||||
6bf05d7060e7a1d56db90a8af65159fc960396f462bd0f8527b0387e5dd87508 pbs-lifecycle-pause-optimized.pbx
|
||||
6b51d431df5d7f141cbececcf79edf3dd861c3b4069f0b11661a3eefacbba918 pbs-lifecycle-pause-optimized.probe
|
||||
15f6aa8662ed1554e585dd2420bfd276e526384fbdc255d75247688070684282 pbs-lifecycle-pause.pbs
|
||||
34bfe4bd10f3b1520857ad8155f0ee5cb7948f11e69692e6595f2cf442293f1c pbs-lifecycle-pause.pbx
|
||||
6b51d431df5d7f141cbececcf79edf3dd861c3b4069f0b11661a3eefacbba918 pbs-lifecycle-pause.probe
|
||||
6549eb46d2080018054e2c4f2103493a02174b1734951b5d1296c1087e27cd83 pbs-lifecycle-resume-optimized.pbx
|
||||
6b51d431df5d7f141cbececcf79edf3dd861c3b4069f0b11661a3eefacbba918 pbs-lifecycle-resume-optimized.probe
|
||||
d4102af8845a3d744050570aaf51db9b316d226dac39e6da52661f24e61d6313 pbs-lifecycle-resume.pbs
|
||||
408b88e8be1b42ca2491b6316a0ef66c493792114b0d2089f31cd1ce95f65a27 pbs-lifecycle-resume.pbx
|
||||
6b51d431df5d7f141cbececcf79edf3dd861c3b4069f0b11661a3eefacbba918 pbs-lifecycle-resume.probe
|
||||
9c4f993115ceb999ddbba679e3368eba1e219dcf05becf8b2a57a1ee9d15ee0e pbs-lifecycle-slices-optimized.pbx
|
||||
3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278 pbs-lifecycle-slices-optimized.probe
|
||||
a9aa1216c5d86e82e40fd5606147b17fad80d0b4c46462d8756747142fcbf52f pbs-lifecycle-slices.pbs
|
||||
8fa567dafcd4af866991546ee73fdba47e4d0fbaa07ae83d21e814385af84f38 pbs-lifecycle-slices.pbx
|
||||
3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278 pbs-lifecycle-slices.probe
|
||||
f7090ddffc7a9292e740e883bc67b6fccce7afa5961fa1419a650a0689163e22 pbs-lifecycle-trap-optimized.pbx
|
||||
3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278 pbs-lifecycle-trap-optimized.probe
|
||||
103b2afa4ad1d35fda95d17ff91512cca916bd60cc4b9d4c274382c5741ebfe2 pbs-lifecycle-trap.pbs
|
||||
1189b68937613f275c8bedd71d9c002a717a0b10af36561d22cbddd8be2dc548 pbs-lifecycle-trap.pbx
|
||||
3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278 pbs-lifecycle-trap.probe
|
||||
1e9d96319edace744d5beb7668759ce31561334118fa74f5cc14895d34003514 synthetic-lifecycle-sync-direct.pbx
|
||||
f3cb6eedacec1ea0680422d63df61199bd8e5e6b8682d2aff892cbd5a5d2c2ec synthetic-lifecycle-sync-transitive.pbx
|
||||
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,29 @@
|
||||
a42de4571212c8dff1eef91d23c0dba601775f6e0d7955ee4b9b17f6befff274 docs/compiler/general/specs/typed-registry-and-pbx-v0.md
|
||||
63b86268963c8e55a1c696b4d94336e6b7eebcdff4b42c1f779689f5d105dd6d docs/specs/compiler-languages/pbs/11. AST Specification.md
|
||||
2b00db5545a94c8da9924b8199941531e28745d6fdb98661f2483bf2902d286d docs/specs/compiler-languages/pbs/12. Diagnostics Specification.md
|
||||
e92272412d581986bf5fb7cea3d946847422f9ba3bd7c01d6684fd2d84810dc3 docs/specs/compiler-languages/pbs/13. Lowering IRBackend Specification.md
|
||||
e0e81be40ddac4494e8cf0507dd63f95e2f0e88908b75ec9b62a545d40f393c4 docs/specs/compiler-languages/pbs/3. Core Syntax Specification.md
|
||||
40da42be54056b54edc33c83696315fa48df9b34d97e049b8369ce8c20a3be15 docs/specs/compiler-languages/pbs/4. Static Semantics Specification.md
|
||||
73aba41215252a1397c1d0257d4133aca2dba2b28ce9c946bc79b466e5587c5d docs/specs/compiler-languages/pbs/9. Dynamic Semantics Specification.md
|
||||
35c5df2652f4d1573854f6d57fa11b21dc8cb3eb952298f7dc2b500852a0293f docs/specs/compiler/16. Runtime Execution and Initialization Specification.md
|
||||
6c9f5337ce5aa22a455c5e4dbb76206f69a5ff0b9e4110c3792ec6e8f98e7aa6 docs/specs/compiler/19. Verification and Safety Checks Specification.md
|
||||
d8d45d9a8c48ef13b180255bf261847cfed34704a6c63d4ed4a75c80665322e7 docs/specs/compiler/20. IRBackend to IRVM Lowering Specification.md
|
||||
4ecdc9be93b98c016b339ead2e4e90c1785467e844fb68cbf84017052b99074d prometeu-app/src/test/java/p/studio/app/compiler/InstalledKnowledgeProbe.java
|
||||
18f948fb3c87167b8521e28d32a77cad1fab1ed4ab12395f86f12274f3eedb88 prometeu-architecture-tests/src/test/java/p/studio/compiler/backend/irvm/PbsGuestLifecycleTest.java
|
||||
2b8d17e5ba0145e880af4bc76d4ffe56f20094a0528701069edaf790f61d97e1 prometeu-compiler/frontends/prometeu-frontend-pbs/src/main/java/p/studio/compiler/PBSSemanticTokenProvider.java
|
||||
0e0e08da348a921cc0e4ec17e61fcbdd713811bef7bd31dee1738b8666cd83cd prometeu-compiler/frontends/prometeu-frontend-pbs/src/main/java/p/studio/compiler/pbs/ast/PbsAst.java
|
||||
063951bf7ebc9618c1e7868cb44275d4ea01894be94fa4cf4fd9989ebf6173f3 prometeu-compiler/frontends/prometeu-frontend-pbs/src/main/java/p/studio/compiler/pbs/lowering/PbsRuntimeTypes.java
|
||||
02dd5c624df3530054ff35a191fbdac67831c89ef737c59044a1c3cc8b2497d7 prometeu-compiler/frontends/prometeu-frontend-pbs/src/main/java/p/studio/compiler/pbs/parser/PbsDeclarationParser.java
|
||||
17e43cc02a33af36debb05f0af237d05813f61b9cbef15d23d96cc7722819c38 prometeu-compiler/frontends/prometeu-frontend-pbs/src/main/java/p/studio/compiler/pbs/semantics/PbsDeclarationSemanticsValidator.java
|
||||
e31d7159badadbcd3ef5367e72ca6366f91f90a89e9be95d3fcde0115087f246 prometeu-compiler/frontends/prometeu-frontend-pbs/src/main/java/p/studio/compiler/pbs/semantics/PbsLifecycleSemanticsValidator.java
|
||||
26f56b90f647fe8870ae69efe436599ace45358ae7b00536381ee17014217163 prometeu-compiler/frontends/prometeu-frontend-pbs/src/main/java/p/studio/compiler/pbs/semantics/PbsSemanticsErrors.java
|
||||
1390df356accad8c02cf48de94b5d8e34cb7c8cb3843420120cfe2b0f72adac4 prometeu-compiler/frontends/prometeu-frontend-pbs/src/main/java/p/studio/compiler/services/PbsProjectLifecycleSemanticsValidator.java
|
||||
fc078b7f68be79179bddfeeee744e05bf299c32f0ae1352be628a4b4a82a8669 prometeu-compiler/frontends/prometeu-frontend-pbs/src/main/resources/pbs-knowledge/examples/game/1/LIFECYCLE.md
|
||||
eea76258ef59e43be782bba2813e9398952fe97a224e2011f5b8ffbf16bfccae prometeu-compiler/frontends/prometeu-frontend-pbs/src/main/resources/pbs-knowledge/examples/game/1/src/lifecycle.pbs
|
||||
75c5e944a7ca74896cbe526ad5ec40ab64ed8779e2abc22e5c325232c16bbdd5 prometeu-compiler/frontends/prometeu-frontend-pbs/src/main/resources/pbs-knowledge/examples/game/1/src/mod.barrel
|
||||
bafc27685be973fe8d68d16620bab7fabe43e061a84b9f8421bdb5c373257b17 prometeu-compiler/frontends/prometeu-frontend-pbs/src/test/java/p/studio/compiler/services/PbsGuestLifecycleSemanticsTest.java
|
||||
b5e119757386885f332ebd7cbcc335de07ac479f0baa4482b2f9e19aa66bed18 prometeu-compiler/prometeu-build-pipeline/src/test/java/p/studio/compiler/backend/registry/PbxRegistryConformanceTest.java
|
||||
d366e5e5fb34f80cee5eca654c44b26f5a1f2189ecf0550a3aaf0b4637967fd8 tools/pbx-conformance/README.md
|
||||
68e0a22927e79c6081da7bdf13c2d51f0c3481f1da25df7968085a95e0fc71fb tools/pbx-conformance/lifecycle.rs
|
||||
ab99510c78976e62047c88fd0c0f11e16b8bdb66c3a9b6632b263581a7c92528 tools/pbx-conformance/main.rs
|
||||
29e621bb09f768dcd1cd11a69b338f099e378bfc05ab27fd5cacf69141da7803 tools/pbx-conformance/run.py
|
||||
@@ -0,0 +1,104 @@
|
||||
{
|
||||
"recorded_at_utc": "2026-10-28T09:06:34.710754+00:00",
|
||||
"discussion": "DSC-0084",
|
||||
"decision": "DEC-0081",
|
||||
"plan": "PLN-0159",
|
||||
"owners": [
|
||||
"compiler/pbs",
|
||||
"compiler/general",
|
||||
"studio"
|
||||
],
|
||||
"studio_revision": "eb7d6a23988b2e13ab1e91b7663abbd7ab983f4c",
|
||||
"studio_working_tree": "task changes identified in sources.sha256",
|
||||
"runtime_revision": "dcf6561ea73446e0a3e1cf1c73eda20923b38df0",
|
||||
"runtime_working_tree": "clean",
|
||||
"platform": "macOS-27.0.1-arm64-arm-64bit-Mach-O",
|
||||
"architecture": "arm64",
|
||||
"capabilities": "NONE",
|
||||
"limits": "production defaults",
|
||||
"features": [
|
||||
"resource-diagnostics"
|
||||
],
|
||||
"checks": {
|
||||
"frontend": {
|
||||
"command": "./gradlew :prometeu-compiler:frontends:prometeu-frontend-pbs:test --tests '*PbsGuestLifecycleSemanticsTest' --console=plain",
|
||||
"exit_code": 0
|
||||
},
|
||||
"source_corpus": {
|
||||
"command": "./gradlew :prometeu-architecture-tests:test --tests '*PbsGuestLifecycleTest' --console=plain",
|
||||
"exit_code": 0
|
||||
},
|
||||
"regression_and_installed": {
|
||||
"command": "./gradlew test :prometeu-app:installedKnowledgeTest --console=plain",
|
||||
"exit_code": 0
|
||||
},
|
||||
"runtime_dev": {
|
||||
"command": "python3 tools/pbx-conformance/run.py --runtime ../runtime --lifecycle-only",
|
||||
"exit_code": 0
|
||||
},
|
||||
"runtime_release": {
|
||||
"command": "python3 tools/pbx-conformance/run.py --runtime ../runtime --lifecycle-only --release",
|
||||
"exit_code": 0
|
||||
},
|
||||
"workflow": {
|
||||
"command": "discussion validate",
|
||||
"exit_code": 0
|
||||
},
|
||||
"whitespace": {
|
||||
"command": "git diff --check",
|
||||
"exit_code": 0
|
||||
}
|
||||
},
|
||||
"junit_suites": {
|
||||
"prometeu-architecture-tests/build/test-results/test/TEST-p.studio.compiler.backend.irvm.PbsGuestLifecycleTest.xml": {
|
||||
"tests": 3,
|
||||
"failures": 0,
|
||||
"errors": 0,
|
||||
"skipped": 0
|
||||
},
|
||||
"prometeu-compiler/prometeu-build-pipeline/build/test-results/test/TEST-p.studio.compiler.backend.registry.PbxRegistryConformanceTest.xml": {
|
||||
"tests": 18,
|
||||
"failures": 0,
|
||||
"errors": 0,
|
||||
"skipped": 0
|
||||
},
|
||||
"prometeu-compiler/prometeu-build-pipeline/build/test-results/test/TEST-p.studio.compiler.workspaces.stages.AssembleLifecyclePipelineStageTest.xml": {
|
||||
"tests": 3,
|
||||
"failures": 0,
|
||||
"errors": 0,
|
||||
"skipped": 0
|
||||
},
|
||||
"prometeu-compiler/prometeu-build-pipeline/build/test-results/test/TEST-p.studio.compiler.lifecycle.LifecycleAssemblerServiceTest.xml": {
|
||||
"tests": 10,
|
||||
"failures": 0,
|
||||
"errors": 0,
|
||||
"skipped": 0
|
||||
},
|
||||
"prometeu-compiler/frontends/prometeu-frontend-pbs/build/test-results/test/TEST-p.studio.compiler.services.PbsGuestLifecycleSemanticsTest.xml": {
|
||||
"tests": 3,
|
||||
"failures": 0,
|
||||
"errors": 0,
|
||||
"skipped": 0
|
||||
}
|
||||
},
|
||||
"runtime_profiles": [
|
||||
"dev",
|
||||
"release"
|
||||
],
|
||||
"producer_variants": [
|
||||
"ordinary",
|
||||
"optimized"
|
||||
],
|
||||
"source_pbx_images": 17,
|
||||
"synthetic_sync_pbx_images": 2,
|
||||
"known_limits": [
|
||||
"Local macOS arm64 qualification only",
|
||||
"Installed JAR example compiled and role metadata checked; final installed runtime/reference-game qualification belongs to DSC-0086",
|
||||
"MemcardBoot/persistence remain DSC-0085"
|
||||
],
|
||||
"workflow_cli_gap": "The CLI exposes no next-lesson counter query; metadata counter was read without manual index mutation. Lesson registration and allocation remain discussion housekeep operations.",
|
||||
"source_files": 29,
|
||||
"workflow_status": "done",
|
||||
"lesson": "LSN-0097",
|
||||
"runtime_working_tree_after": "clean"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
Discussion: DSC-0084
|
||||
Status: done
|
||||
Ticket: pbs-guest-lifecycle-hooks
|
||||
Title: PBS Guest Lifecycle Hooks
|
||||
Tags: runtime-integration
|
||||
|
||||
Active artifacts:
|
||||
- LSN-0097 (lessons, done, present): discussion/lessons/DSC-0084-pbs-guest-lifecycle-hooks/LSN-0097-explicit-guest-hooks-and-preserved-continuations.md
|
||||
|
||||
Suggested next actions:
|
||||
- none
|
||||
|
||||
Final discussion validate: validation passed
|
||||
Final git diff --check: passed
|
||||
Reference in New Issue
Block a user