feat(truapi-server): add platform runtime and host bridge#250
Open
pgherveou wants to merge 47 commits into
Open
feat(truapi-server): add platform runtime and host bridge#250pgherveou wants to merge 47 commits into
pgherveou wants to merge 47 commits into
Conversation
This was referenced Jun 30, 2026
4b83619 to
4843b5c
Compare
8cceb16 to
36e81a5
Compare
4843b5c to
df4a0ba
Compare
36e81a5 to
b7c0a12
Compare
Adds the canonical testing module (api/testing.rs) and its v01/v02/versioned wiring used by the Rust host runtime and generated clients.
b7c0a12 to
c28f271
Compare
df4a0ba to
1a7d349
Compare
c28f271 to
71a3f71
Compare
71a3f71 to
195a6b7
Compare
This was referenced Jul 1, 2026
195a6b7 to
538cb2e
Compare
4567da7 to
26cc238
Compare
538cb2e to
3e7a360
Compare
26cc238 to
937d576
Compare
New crate defining the host syscall traits (storage, navigation, consent, permissions, ...) that host runtimes implement. Types are re-exported from truapi::versioned/v01 rather than redefined.
2a75bee to
e4d9a0d
Compare
b0c161b to
7ac562a
Compare
Gate identity disclosure and remote submit paths through product-scoped permission state, and cancel pending lifecycle work on abort/dispose.
pgherveou
commented
Jul 6, 2026
Comment on lines
+318
to
+319
| /// Product-scoped permission to disclose the user's primary identity. | ||
| IdentityDisclosure, |
Collaborator
Author
There was a problem hiding this comment.
Temp, maybe we should not add it right now and define it in an RFC first.
cc @filvecchiato what do you think
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the Rust server runtime layer for product-host execution: product runtime state, session/auth orchestration, SSO pairing/signing flows, chain/preimage/statement-store plumbing, subscriptions, and host-core dispatch integration.
This layer also fixes the runtime permission/lifecycle issues found during review:
get_user_idrequires cached identity-disclosure consentStack
Part of the Rust core runtime port umbrella #104. Full port sequence:
truapitesting API and versioned wiring.truapi-platformhost capability traits.@parity/truapi-host-wasmnamespaced callback consumer.Active child #253 is kept tree-equivalent with umbrella #104.
Validation
cargo fmt --all --checkcargo check -p truapi-servercargo test -p truapi-codegen golden_host_callbacks_tscargo test -p truapi-server