feat(pbs): implement typed arrays, optional binding and contract execution
This commit is contained in:
@@ -7,7 +7,7 @@ From the Studio root:
|
||||
|
||||
```sh
|
||||
./gradlew :prometeu-compiler:prometeu-build-pipeline:test --tests '*LinkedRegistryTest' --tests '*PbxRegistryConformanceTest' --tests '*TypedCommonPipelineTest' --tests '*RuntimeCatalogPipelineTest'
|
||||
./gradlew :prometeu-architecture-tests:test --tests '*PbsRuntimeAlignmentTest'
|
||||
./gradlew :prometeu-architecture-tests:test --tests '*PbsRuntimeAlignmentTest' --tests '*PbsStructuredValuesTest'
|
||||
python3 tools/pbx-conformance/run.py --runtime ../runtime
|
||||
```
|
||||
|
||||
@@ -87,3 +87,28 @@ missing PBS fixtures. Integer arithmetic wrapping is distinct from checked
|
||||
Int64-to-Int32 narrowing and Float numeric-range faults. The full installed
|
||||
knowledge gate remains separate and mandatory for SDK resource/producer
|
||||
integration.
|
||||
|
||||
## PBS typed arrays, optional and Struct/contract execution
|
||||
|
||||
`PbsStructuredValuesTest` generates 27 mandatory `pbs-structured-*` fixtures.
|
||||
They cover contextual arrays, nested levels, vacancy/zero, clear/length, aliasing,
|
||||
int/long bounds, single evaluation, lazy optional fallback, inferred/explicit
|
||||
optional tuples, native vec2 groups, fields and constructors, overloads and Self,
|
||||
contract elements/dispatch, imported services/structs/contracts, global file-init,
|
||||
and the installed example. The runtime harness names every required fixture;
|
||||
a missing file is an error.
|
||||
|
||||
Eighteen additional runs lower GuestBytes or HandleSlots to 0, 1 or 2. They assert
|
||||
resource faults, bounded accounting, no object publication at zero quota, and
|
||||
release of session ownership. The integer-storage fixture succeeds with one
|
||||
handle total, proving that its three integers do not allocate individual boxes.
|
||||
String session accounting is checked after each structured execution.
|
||||
|
||||
The GC fixture compiles all allocations, roots and post-collection reads from PBS.
|
||||
A test-only driver hook replaces one isolated marker assignment with FRAME_SYNC
|
||||
and NOPs without changing code offsets; it does not add PBS sync syntax. At the
|
||||
real runtime safepoint, at least 1,100 discarded objects are reclaimed while
|
||||
nested references, tuples and strings remain readable. `resource-diagnostics`
|
||||
is enabled solely for observation. Default production ceilings and GC threshold
|
||||
are unchanged outside the explicitly lowered quota runs. This is semantic and
|
||||
resource conformance, not a performance benchmark or installed game qualification.
|
||||
|
||||
Reference in New Issue
Block a user