Repository navigation
feat(identity): add native federated sessions - #869
Closed
bradseiler wants to merge 12 commits into
Closed
bradseiler wants to merge 12 commits into
bradseiler wants to merge 12 commits into
Conversation
Share one native session across plugins and protected transports. Keep API forwarding and CLI setup unavailable until their contracts exist. Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Brad Seiler <seiler@squareup.com>
Keep stale read fencing and distinguish a dispatched mutation from sign-in refusal. Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Brad Seiler <seiler@squareup.com>
Keep callback registration and persistence serialized, while snapshots and protected admission remain responsive. Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Brad Seiler <seiler@squareup.com>
Ignore stray indices and retain indexed deletion failures behind the existing pending sign-out fence. Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Brad Seiler <seiler@squareup.com>
Refresh decisions for each socket generation, coalesce discovery, and fence ordinary and protected work through dispatch and completion. Preserve independent socket lifetimes and mandatory fail-closed discovery. Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Brad Seiler <seiler@squareup.com>
Keep explicit credential refusals actionable while connection, discovery and worker-start failures use the existing live reconnect budget. Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Brad Seiler <seiler@squareup.com>
Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Brad Seiler <seiler@squareup.com>
Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Brad Seiler <seiler@squareup.com>
Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Brad Seiler <seiler@squareup.com>
Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Brad Seiler <seiler@squareup.com>
Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Brad Seiler <seiler@squareup.com>
Grant the trusted main webview listen and unlisten access without event emission. Cover the real native event dispatch and preserve fail-closed startup behavior. Co-authored-by: Codex <noreply@openai.com> Co-authored-by: Brad Seiler <seiler@squareup.com> Signed-off-by: bb-expert <51cde9442e46eac81c83ec71552708c3b0cb96a88ff8e1581d8fb4de281afbf3@buzz.block.builderlab.xyz>
wpfleger96
added a commit
that referenced
this pull request
Oct 20, 2026
Layer 1 applied #869's credential-store diff against current main instead of its merge base, which reverted main's license field and other changes. Co-authored-by: Brad Seiler <seiler@squareup.com> Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz> Signed-off-by: Will Pfleger <wpfleger@block.xyz>
wpfleger96
added a commit
that referenced
this pull request
Oct 20, 2026
Apply #869's native HTTP, WebSocket, media and Git assertion changes onto current main, and thread the federated session through the call sites main added since (Huddles membership and publish, paged agent memory reads). Co-authored-by: Brad Seiler <seiler@squareup.com> Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz> Signed-off-by: Will Pfleger <wpfleger@block.xyz>
wpfleger96
added a commit
that referenced
this pull request
Oct 20, 2026
Carry #869's bundled-manifest rewrite: with an FI descriptor, Builderlab and Hosted Communities get exact authority operations in place of their network grant (17 routes, including cancel-agent-turn). Expose the federatedIdentity SDK types and show the grants on plugin import. Co-authored-by: Brad Seiler <seiler@squareup.com> Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz> Signed-off-by: Will Pfleger <wpfleger@block.xyz>
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.
Federated identity native integration
Summary
Candidate and validation
4ad00a8aeabea1b8ab95e7392574223980c95319.84a107c3bb4020ae56f6a1fa8e125ad266921d2d.bin/pnpm check: passed at the parent candidatec00d7106; this follow-up is Rust-only.c00d7106.c00d7106.c00d7106, serial: 546 passed, 3 ignored. McKeon independently ran the full parallel suite at that head: 546 passed, 3 ignored.84a107c3, the four new relay-send, upload, media, and Git transport tests passed individually. The full parallel Rust suite had 547 passed, 3 failed, and 3 ignored; failures were in unchanged Nsec backup-choice and terminal tests. The two backup failures and one hang passed in isolation. Clean-main runs reproduce parallel backup/terminal lock flakes; seeRESEARCH/PR869_REREVIEW_84a107c3.mdand its logs.cargo fmt --all --checkand workspace Clippy passed.CIwas manually dispatched at the published branch head84a107c3; its Windows native validation job is running: https://github.com/block/buzz-app/actions/runs/39475707470. The workflow's manual-dispatch path runs Windows validation only.84a107c3found no blocking implementation defect. It flagged Huddle expiry as a remaining product/acceptance question: the socket closes at assertion expiry, but cached assertions can have as little as about 15 seconds remaining when a Huddle joins. There is no automatic Huddle reconnect; a user rejoin obtains fresh authorization and repeats NIP-42.Open gates
NsecBackupHostcontract. No host-owned credential is forwarded to Builderlab APIs.BUZZ_BUILD_FEDERATED_IDENTITY_CONFIGunset by default. Unconfigured builds retain the existing hosted-community and Builderlab sign-in paths.getUserMediabehavior reproduced in a minimal page with the configured fake-device flags.75d81820, despite the branch ref pointing at84a107c3; no automatic PR suite is attached to the new commit yet. Native macOS/Linux acceptance, an FI-enforcing relay test, and human sign-off remain outstanding.Staged acceptance
Rollback
Do not enable relay enforcement as part of this app change. If a configured build fails acceptance, withdraw that build or revert this change. Protected relays must continue to fail closed; rollback must never use unsigned or legacy credentials for a configured FI request.