feat(pbs): integrate explicit runtime Random handles
This commit is contained in:
@@ -160,3 +160,39 @@ every run. Optional `CARGO_TARGET_DIR` can retain build artifacts outside the
|
||||
runtime checkout. Each invocation prints runtime revision, platform, profile,
|
||||
features, lockfile and provider catalog/oracle hashes. Local evidence qualifies
|
||||
macOS/arm64 only; macOS/x86_64 and Linux/x86_64 remain pending.
|
||||
|
||||
## PBS explicit Random integration
|
||||
|
||||
`PbsRuntimeRandomTest` adds 226 source fixtures plus one real SDK import/alias
|
||||
fixture. The 48 unchanged provider oracle rows produce 192 exact integer/Float
|
||||
cases (six seeds, eight draws, two output kinds and two optimizer variants).
|
||||
The remaining paired fixtures cover mixed/discarded draws, independent objects,
|
||||
locals/globals/fields/arrays/parameters/results/captures, named/positional effects,
|
||||
unit/extreme ranges, invalid limits, null and typed-null Dynamic storage, real
|
||||
rejection followed by acceptance, and collection roots.
|
||||
|
||||
Each paired fixture runs with single-instruction budgets and twice with full
|
||||
budgets, comparing exact result bits or faults, intrinsic charges and total
|
||||
cycles. Explicit source `as long` conversions are charged separately. The GC
|
||||
fixture reuses the existing test-only FRAME_SYNC marker hook; all allocations,
|
||||
roots and post-collection draws are compiled PBS. At least 1,100 discarded Random
|
||||
objects are reclaimed while array, field and closure references preserve the
|
||||
same generator. The import fixture uses the production workspace builder and
|
||||
lifecycle assembler. The focused driver calls file initializers before Probe.main;
|
||||
it does not claim a new lifecycle API.
|
||||
|
||||
```sh
|
||||
./gradlew :prometeu-architecture-tests:test --tests '*PbsRuntimeRandomTest'
|
||||
python3 tools/pbx-conformance/run.py --runtime ../runtime --random-only
|
||||
python3 tools/pbx-conformance/run.py --runtime ../runtime --random-only --release
|
||||
```
|
||||
|
||||
The driver rejects an oracle copy that differs from the selected provider and
|
||||
prints source/oracle/catalog/lockfile fingerprints and toolchain/profile details.
|
||||
A complete run includes the Random corpus and keeps it separate from the older
|
||||
114 input/type fixtures. Rare synthetic 64-attempt acceptance/cap/rollback,
|
||||
malformed carriers and native provenance are provider tests, not PBS-produced
|
||||
claims. Qualify those separately with the provider's `random_contract` suite and
|
||||
`cargo test -p prometeu-vm --lib random` in debug/release. No alternate RNG or
|
||||
public injection hook is used. Installed knowledge validation remains a separate
|
||||
gate for packaged SDK/spec/example resources.
|
||||
|
||||
Reference in New Issue
Block a user