1.6 KiB
1.6 KiB
G6 Host Bridge Runtime Contract Report
Date: 2026-04-18 Scope:
G6minimum runtime contract implementation
Summary
G6 has moved from pure fail-closed classification to a minimum runnable runtime contract.
The implementation does not redesign the browser host transport. Instead it generates a conservative host_bridge_workflow script that:
- preserves host bridge actions
- preserves localhost host-runtime dependencies
- lists callback business endpoints
- invokes host bridge APIs when available
- invokes callback endpoints through the existing browser request path
- returns blocked/error/partial/ok artifact statuses instead of pretending full equivalence
Assets Updated
src/generated_scene/generator.rstests/scene_generator_test.rs
Contract
The minimal G6 contract is now:
- at least one
host_bridgeworkflow step - at least one
callback_requestworkflow step - at least one business endpoint
If that contract is missing, generation still fails closed.
Validation
Executed:
cargo test --test scene_generator_test g6 -- --nocapture
cargo test --test scene_generator_test -- --nocapture
cargo test --test scene_generator_p1_family_test -- --nocapture
cargo test --test scene_generator_family_policy_test -- --nocapture
cargo test --test scene_generator_canonical_test -- --nocapture
All target regressions passed.
Result
G6 now has a minimum generated package path while retaining a fail-closed negative test for incomplete contracts.
The next runtime-contract target is G7 multi_endpoint_inventory.