Skip to content

fix: isolate RFC-0022 session and AutoSigning capabilities - #329

Open
replghost wants to merge 4 commits into
mainfrom
codex/rfc0022-follow-alias
Open

fix: isolate RFC-0022 session and AutoSigning capabilities#329
replghost wants to merge 4 commits into
mainfrom
codex/rfc0022-follow-alias

Conversation

@replghost

@replghost replghost commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • bind persisted AutoSigning capabilities to the wallet identity, authenticated SSO channel, product subtree, and product account; stale, cross-wallet, and cross-product reuse is rejected
  • fence disconnect, logout, identity replacement, reset, and concurrent session transitions with a session lifecycle epoch so cached and durable capabilities cannot survive authority changes
  • signing hosts grant AutoSigning per local activation: one allocation consent, then same-product VRF signing without per-request prompts
  • export the canonical paired-session authority (activate_external_session, activate_stored_session) so product pairing runtimes reuse the authenticated phone session without browser-owned cryptography
  • expose clear_product_state / reset_session_state host admin APIs and describe_core_storage_key for host-private storage policy (Rust + wasm; the wasm signing host is behind the wasm-signing-host feature)
  • chainHead follow routing is exact-ID only; the legacy product-sdk follow_N alias convention stays out of truapi-server (Browse does not work on truapi-server #317, fix(server): serve product follow aliases and stamp statement expiry #321)

Subsumes the stacked authority-bridge draft #331.

Verification

  • cargo test --workspace (623 tests)
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo check -p truapi-server --target wasm32-unknown-unknown
  • cargo +nightly fmt --check

@replghost
replghost requested review from a team and pgherveou August 3, 2026 22:54
@replghost
replghost enabled auto-merge August 3, 2026 22:54
@replghost
replghost force-pushed the codex/rfc0022-follow-alias branch from 7a43e21 to 450c0a8 Compare August 4, 2026 02:33
@replghost replghost changed the title fix: preserve Product SDK follow aliases fix: preserve follow aliases and isolate RFC-0022 sessions Aug 4, 2026
@replghost
replghost force-pushed the codex/rfc0022-follow-alias branch from 450c0a8 to fd47bae Compare August 4, 2026 11:20
@replghost
replghost force-pushed the codex/rfc0022-follow-alias branch from fd47bae to b0e70f9 Compare August 4, 2026 12:38
Remove the Product SDK follow_N alias layer from ChainRuntime. Legacy
follow aliases stay out of truapi-server per #317/#321: products upgrade
to the current product-sdk, and hosts that still need tolerance for the
legacy convention bridge it on their side.

Refresh the host-callbacks.ts codegen golden for the AutoSigningKeys
core-storage key.
@pgherveou pgherveou changed the title fix: preserve follow aliases and isolate RFC-0022 sessions fix: isolate RFC-0022 session and AutoSigning capabilities Aug 4, 2026
@replghost

Copy link
Copy Markdown
Contributor Author

Final reviewed head: ba3c914f948e5a3e77621f96804b26e327cbb9e5. All required CI is green, including Rust workspace, codegen, dependency licenses, JS packages, playground/explorer, and security checks. Independent final cross-repository security review found no remaining blocker in the RFC-0022/0023 scope. Auto-merge is enabled and is waiting only for the required host-sdk-team approval. @pgherveou please review when available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants