feat(chat): integrate Chat host authority above PolkaVM runtime - #236
Merged
Merged
Conversation
…-host-runtime # Conflicts: # apps/sandbox/public/polkavm-runtime/SHA256SUMS # apps/sandbox/public/polkavm-runtime/SOURCE.json # apps/sandbox/public/polkavm-runtime/polkavm-browser-runtime.wasm # apps/sandbox/public/polkavm-runtime/polkavm-worker.js # scripts/polkavm-runtime.lock.json # vendor/truapi-host.lock.json # vendor/truapi-host/dist/wasm/web/truapi_server.d.ts # vendor/truapi-host/dist/wasm/web/truapi_server.js # vendor/truapi-host/dist/wasm/web/truapi_server_bg.wasm # vendor/truapi-host/dist/wasm/web/truapi_server_bg.wasm.br # vendor/truapi-host/dist/wasm/web/truapi_server_bg.wasm.d.ts # vendor/truapi-host/dist/wasm/web/truapi_server_bg.wasm.gz
replghost
requested review from
BigTava,
Cyr06130,
KarimJedda,
ba1uev,
justraman,
leonardocustodio and
tallesborges
as code owners
September 12, 2026 17:22
Contributor
Bundle Size ReportChunks over 500 KB:
All files
Commit: 3fae928 |
replghost
temporarily deployed
to
westendli.dev
September 12, 2026 17:27 — with
GitHub Actions
Inactive
Contributor
|
The truapi-host CLI could not complete pairing (testnet chains or Logs: https://github.com/paritytech/dotli-community/actions/runs/35003032097 |
replghost
temporarily deployed
to
westendli.dev
September 12, 2026 18:31 — with
GitHub Actions
Inactive
replghost
temporarily deployed
to
westendli.dev
September 14, 2026 19:58 — with
GitHub Actions
Inactive
replghost
temporarily deployed
to
westendli.dev
September 14, 2026 21:18 — with
GitHub Actions
Inactive
# Conflicts: # vendor/truapi-host.lock.json # vendor/truapi/dist/playground/codegen/truapi-dts.d.ts # vendor/truapi/dist/playground/codegen/truapi-dts.js
# Conflicts: # vendor/truapi-host.lock.json # vendor/truapi/dist/playground/codegen/truapi-dts.d.ts # vendor/truapi/dist/playground/codegen/truapi-dts.js
replghost
temporarily deployed
to
westendli.dev
September 15, 2026 01:39 — with
GitHub Actions
Inactive
…ate/wallet-chat-followup-20260914
…ate/wallet-chat-followup-20260914
replghost
temporarily deployed
to
westendli.dev
September 15, 2026 02:36 — with
GitHub Actions
Inactive
This was referenced Sep 15, 2026
…ate/wallet-chat-followup-20260914
…fix/chat-authority-review-236
…hority-review-236
…hority-review-236
Contributor
|
❌ E2E Product suite failed on Failed tests:
Logs: https://github.com/paritytech/dotli-community/actions/runs/35036355258 |
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
Dedicated Chat integration above the PolkaVM browser runtime. Adds Chat identity authority permissions and consumes the corresponding native Chat host APIs. The experimental debug-only browser wallet is inherited from #238, not introduced in this PR’s own diff.
Stack and dependencies
main → #238 → #185 → #236.Chat-specific host APIs remain separate from the native PolkaVM base. Client, host bindings, and WASM must be generated as a matching package set from the Chat host source.
History
Continues the Chat integration originally reviewed in #226. #226 is merged; this reopened PR is the active Chat integration and RFC reference.
Earlier staging verification
Deployed revision
a7f6f7e00705cb76cae7a2c528dcee85bf044315to https://westendli.dev with debug wallets enabled (APP_DEBUG=true; networkspaseo-next-v2,previewnet). Deployment and quality gate passed, including all 8 published-product smoke scenarios. The live host bundle advertises the same revision.Live Chromium verification: amber flask account control without a full-width warning strip; header Disconnect preserving the wallet and opening a real Mobile pairing QR; 24-word phrase export; deletion followed by import restoring the same native account keys; and reachable narrow-screen recovery controls. The disposable test wallet and isolated browser profile were removed.
Activation-first wallet staging verification
Deployed
a144ce7198d28029ecbbfe7a3d413c913563c6b1to https://westendli.dev. Deployment, quality gate, and published-product smoke passed. This inherits the wallet activation, claimed-state, and docking improvements through #238 and #185.The matching Chat client/host packages use native source
8911041a4dd85fbd8ff1c2f283dca04d51bd2b6afrom paritytech/host-rust-core#709. The complete unchanged WASM/glue subtree remains pinned toccf2fc918f35a7ac35c5b0907c99ef33bf997bf6; generated wire/client/host bindings match it byte-for-byte. Provenance and package digests are recorded invendor/truapi-host.lock.json.Live Chromium verification: activation is the first Overview action and username controls remain hidden until activation completes. A fresh disposable Lite claim confirmed on chain while the inspector was closed, updated the footer and panel automatically, and replaced the claim form with the confirmed name. Docking reflows the landing page and keeps the inspector between the header and debug footer. The identity proxy returns its JSON attester response.
Chat authority review follow-up (not deployed)
7a67a6ee9bc2eeedd77a3c2dae78cbb6b5e4ff31; restacked on feat(polkavm): run App Manifest v2 runtimes in Dotli #185 at3612f72bfd534736c76118669d3f274293a351e3ddccbac617a7490dc57ed25040e460bfdc4a1b65; the oldccf2fc9Wasm is no longer reusedvendor/truapi-host.lock.jsonbd9259c586ae38e62d4d87a8bcc338e721355367af1263f60327f171e38dff32Verification of this update
Earlier staging deployments above predate this permission correction. This update has not been deployed or released. Native SDK rebuild and signed Epoca test compilation passed locally; the phone is unavailable, so on-device messaging remains unverified.
For local retesting after pulling these vendored package updates, run
bun install --force --frozen-lockfileto refresh cached local-file dependencies before starting the existing development/build commands.