feat(pbs): add Map and read-only Keyval associations
This commit is contained in:
@@ -3,6 +3,42 @@
|
||||
Owner: compiler/general. This harness uses the production runtime loader and VM;
|
||||
it does not implement a Java approximation of runtime admission.
|
||||
|
||||
## PBS Map and Keyval qualification
|
||||
|
||||
Generate the mandatory Map corpus and actual installed-JAR example, then execute
|
||||
the dedicated verifier in both runtime profiles:
|
||||
|
||||
```sh
|
||||
./gradlew :prometeu-architecture-tests:test --tests '*PbsMapKeyvalTest' :prometeu-app:installedKnowledgeTest --console=plain
|
||||
CARGO_TARGET_DIR=/tmp/studio-pbx-map-target python3 tools/pbx-conformance/run.py --runtime ../runtime --map-only
|
||||
CARGO_TARGET_DIR=/tmp/studio-pbx-map-target python3 tools/pbx-conformance/run.py --runtime ../runtime --map-only --release
|
||||
```
|
||||
|
||||
Each non-GC source case has ordinary/optimized PBS producer variants, independent
|
||||
of the Rust dev/release profile. The manifest names every required success/fault,
|
||||
resource, injection, GC, import and installed fixture; missing files fail. The
|
||||
full harness includes Map separately from its historical catch-all PBS verifier.
|
||||
|
||||
The corpus covers typed non-positional keys; default/explicit Identity; optional
|
||||
V and previous-value presence; original-key retention under content policies;
|
||||
read-only Keyval instance identity; collisions/negative full hashes; rehash and
|
||||
capture callback counters; complete tuple/native/contract groups; evaluation order;
|
||||
alias reentrancy and permitted callback reads; and the shared snapshot state table.
|
||||
|
||||
Resource fixtures compare attempted instruction prefixes with successful
|
||||
instruction prefixes under lowered production quotas. They separate installed
|
||||
guard writes from structural mutation and measure old/candidate table/node and
|
||||
snapshot/keyval peaks. A named test-only allocation after the real candidate-table
|
||||
store qualifies permitted post-write incomplete invariants; production SDK has no
|
||||
injected probe. Natural quota refusal counts are reported separately.
|
||||
|
||||
Real safepoints check independent key/value roots, obsolete-value release after
|
||||
replacement, removed-key/value reclamation, Map-node reclamation, captured Keyvals,
|
||||
consumed Cursor prefixes, retained final current and release after all owners exit.
|
||||
Imported/reexported and installed examples execute through the production loader
|
||||
and VM and actually construct the shared entry Cursor. This is local semantic and
|
||||
resource qualification, not a performance benchmark or a new provider contract.
|
||||
|
||||
From the Studio root:
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user