Brad Seiler
47e15f7a46
test(relay): classify operator invite mint restrictions
...
Bind the operator invite route to its signed router regression: clear owners and admins mint, while a restricted admin and unauthorized actors are refused.
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
Brad Seiler
7ff87dd84c
test(relay): classify the current FI policy routes
...
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
Brad Seiler
73755caf2f
docs(testing): reflow scanner limitations paragraph
...
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
Brad Seiler
f1e4300386
docs(testing): wrap scanner limitations
...
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
Brad Seiler
3f2fd75400
fix(test): reject unclassified route method chains
...
Classify the complete outer MethodRouter chain and ignore handler and middleware arguments when collecting HTTP methods.
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
Brad Seiler
cac5501106
test(relay): classify merged FI upgrade routes
...
Record the new GET and POST upgrade routes in the operator control plane alongside the existing binding endpoint.
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
Brad Seiler
bf765db97b
fix(test): reject nested Git settings merges
...
Reject the allow-listed settings merge when its parent router has a nest prefix so stale root paths cannot satisfy the route inventory.
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
Brad Seiler
1579157529
test(auth): match Git controls to handler response contracts
...
Co-authored-by: Sarnow <1894dcbafaa4df1ac607a9bf879ac0b7d77fbccb0e0f4619ecc252c8adbad8a2@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
Brad Seiler
0ffb134e34
test(auth): bind route controls to exact outcomes and merged routers
...
Co-authored-by: Sarnow <1894dcbafaa4df1ac607a9bf879ac0b7d77fbccb0e0f4619ecc252c8adbad8a2@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
Luke Tornquist
a6e12232bf
fix(test): consume MembershipWrite in ban-matrix seeds
...
add_relay_member returns a #[must_use] MembershipWrite on main, so
clippy -D warnings rejected the three ban-matrix seed calls. Map to the
outcome before expect, as the neighboring tests do.
Co-authored-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz >
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Signed-off-by: Luke Tornquist <tornquist@squareup.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
Luke Tornquist
9c6aa98f9e
fix(test): pass relay_keypair to add_relay_member in ban-matrix tests
...
Main (#8482 ) added a relay_keypair parameter to Db::add_relay_member.
The merge in 60df78770 kept three ban-matrix test call sites at four
arguments, so the buzz-relay lib tests did not compile. Pass a
generated key, as the other tests do.
Co-authored-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz >
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Signed-off-by: Luke Tornquist <tornquist@squareup.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
Luke Tornquist
aaf633653b
fix(test): pin unrouted registrations and reject repeated nests
...
The route inventory allow-listed every `.fallback_service` inside
`router::build_router`, and did not scan `.fallback` at all, so a new
sub-router fallback could add an unclassified handler without changing
the inventory. Allow-list entries now name the builder, call, and exact
whitespace-normalized argument, and each may appear once. The existing
buzz_v1 404 fallback is allow-listed explicitly.
`builder_prefixes` kept one prefix per builder, so nesting a builder at
a second prefix silently overwrote the first. A repeated nest is now a
hard error.
Five new fixtures cover a non-SPA fallback service, a repeated SPA
fallback, a handler fallback inside and outside build_router, and a
builder nested twice. All five fail against the previous scanner.
Co-authored-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz >
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Signed-off-by: Luke Tornquist <tornquist@squareup.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
Luke Tornquist
43e1c24e6c
fix(test): fail the route inventory on every shape it cannot classify
...
The scanner keyed `&str` route constants by bare name, so main's
`api::profiles::SEARCH_PATH` collided with `api::gifs::SEARCH_PATH` and
reported a false duplicate. Key constants by module and resolve qualified
references against that module.
Unclassified registrations are now hard errors instead of silent passes:
`.route_service`, `.nest_service`, and `.fallback_service` (except the
allow-listed SPA fallback in `build_router`), `.nest` outside
`router::build_router`, and nest targets that do not resolve to exactly
one router builder. A fixture self-test pins each shape and runs in
`just test-unit` and `scripts/run-tests.sh unit`.
Classify the three routes main added: `POST /profiles/search` (member
gate, now in the HTTP ban matrix) and the operator-plane
`GET /operator/communities/joined` and
`GET /operator/communities/nip-fi-binding`.
Co-authored-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz >
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Signed-off-by: Luke Tornquist <tornquist@squareup.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
Local Builder
1d1dd588a1
docs(testing): distinguish invite policy from implementation
...
Signed-off-by: Local Builder <1c476cb1127ea270cb900bdc3891060140bdd1173f91498030ee9b4db01c2f20@buzz.block.builderlab.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
Local Builder
29a3447ec7
docs(testing): distinguish pending sibling ban contracts
...
Signed-off-by: Local Builder <1c476cb1127ea270cb900bdc3891060140bdd1173f91498030ee9b4db01c2f20@buzz.block.builderlab.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
Brad Seiler
3a2947d9bb
test(relay): enable accessory routes in the ban matrix
...
Co-authored-by: Codex <codex@openai.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
Brad Seiler
fba01dd3c7
test(relay): cover current community entry points
...
Keep invitation and webhook-owner gaps explicit until their implementations are integrated.
Co-authored-by: Codex <noreply@openai.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
seiler
7cb9312c8f
test(relay): align timeout admin regression
...
Signed-off-by: seiler <seiler@squareup.com >
Co-authored-by: Codex <noreply@openai.com >
(cherry picked from commit 31968772ebe1b30c2862966e46b75a9ad4b967b6)
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
seiler
d1add801cc
docs(testing): clarify webhook ban classification
...
Signed-off-by: seiler <seiler@squareup.com >
Co-authored-by: Codex <noreply@openai.com >
(cherry picked from commit 2374e1c05352db37eafa42d502a148b57dc21080)
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
seiler
b0b40fea7b
docs(testing): clarify invite ban regression contract
...
Signed-off-by: seiler <seiler@squareup.com >
Co-authored-by: Codex <noreply@openai.com >
(cherry picked from commit 5bbf2b64a82115c40fdadeb981dbfdf7122241f2)
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
seiler
1091eadb19
test(relay): map community ban routes and regressions
...
Signed-off-by: seiler <seiler@squareup.com >
Co-authored-by: Codex <noreply@openai.com >
(cherry picked from commit dcb83eaec669ed044ab2f16c8b7612bd54ed1d9c)
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:04 -08:00
Brad Seiler
d91fe8c485
fix(relay): log unavailable live authorization disconnects
...
Preserve the explicit access-log reason after the disconnect-reason match introduced on main. Extend the selected revalidation outage journey through the production close-reason reader.
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
Brad Seiler
8500e375c9
style(db): format rebased authorization exports
...
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
Brad Seiler
2900b9d4bc
fix(relay): stagger authorization outage disconnects
...
Spread failed-lookup closes across scans with a stable per-socket offset, keeping the conservative revocation bound at 30 seconds. Share the database query deadline and verify sibling sockets close across three sweeps.
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
Brad Seiler
d155b310a0
fix(db): bound live authorization statements and cancellation
...
Apply a transaction-local server deadline below the caller timeout, preserve tighter operator limits, and close cancelled or failed checkouts. Verify blocked-query cancellation, pool recovery, and writer timeout restoration on the same backend.
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
Brad Seiler
d7afb40e95
test(relay): run live revalidation accounting regression in CI
...
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
Brad Seiler
70c9f66c69
fix(relay): preserve refusal accounting across live admission
...
Restore audio stored-owner failure accounting and keep live policy revalidation separate from deny-set revocation. Preserve denied-only priority over weak removal claims; cover denied and unavailable root closes.
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
Brad Seiler
599a59f5cd
test(relay): run live revalidation contracts in the unit lane
...
Co-authored-by: Sarnow <1894dcbafaa4df1ac607a9bf879ac0b7d77fbccb0e0f4619ecc252c8adbad8a2@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
Brad Seiler
15af4d0288
fix(relay): preserve token-owner admission during revalidation
...
Keep NIP-FI owner delegation independent of the NIP-OA flag. Adapt membership fixtures and session identities to current main, and cover final admission through owner removal for both socket routes.
Co-authored-by: Sarnow <1894dcbafaa4df1ac607a9bf879ac0b7d77fbccb0e0f4619ecc252c8adbad8a2@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
seiler
8fff21729e
fix(auth): log captured owner membership failures
...
Signed-off-by: seiler <seiler@squareup.com >
Co-authored-by: Codex <noreply@openai.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
seiler
d9c1846a8c
fix(relay): prioritize stale authorization targets
...
Signed-off-by: seiler <seiler@squareup.com >
Co-authored-by: Codex <noreply@openai.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
seiler
109edb0312
fix(desktop): retry transient relay auth failures
...
Signed-off-by: seiler <seiler@squareup.com >
Co-authored-by: Codex <noreply@openai.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
Brad Seiler
00fc8e3467
test(relay): admit live agents through owners before revalidation
...
Keep a clear audio participant present through policy eviction so the huddle remains active for the database-failure phase. Reject bare closes with a labeled diagnostic.
Co-authored-by: Codex <noreply@openai.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
Brad Seiler
c2b52599b3
test(relay): classify live revalidation as external network infrastructure
...
Co-authored-by: Codex <codex@openai.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
Brad Seiler
d704dfcac3
test(relay): bound live workflow handshake and control reads
...
Co-authored-by: Codex <codex@openai.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
Brad Seiler
b4d6481b3c
test(relay): measure live revocation without Redis delivery
...
Exercise signed root and audio admission against an isolated running relay, durable direct-member and owner bans, a responsive bystander, and bounded database-failure closure.
Co-authored-by: Codex <codex@openai.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
Brad Seiler
da5a3aba9d
test(relay): import root fixture shared ownership type
...
Co-authored-by: Codex <codex@openai.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
Brad Seiler
1d633b9cbb
test(relay): retain root lifecycle registration during revalidation
...
Co-authored-by: Codex <codex@openai.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
Brad Seiler
abb6bfce1e
test(relay): bind durable revocation to socket admission
...
Authenticate through root and audio handlers before a durable-only ban. Removing either production enrollment call must fail its regression.
Co-authored-by: Codex <noreply@openai.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
seiler
c4dfcea102
refactor(relay): address revalidation review
...
Restore CommunityDisconnectReason near the top of state.rs and document scan deadline and reconnect-load limitations. Authorization behavior is unchanged.
Signed-off-by: seiler <seiler@squareup.com >
Co-authored-by: Codex <noreply@openai.com >
(cherry picked from commit a4d1ab288d761d44eba25cc62d25b7d2858788dc)
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
seiler
fc0b1ca05c
Add durable live member authorization checks
...
Signed-off-by: seiler <seiler@squareup.com >
Co-authored-by: Codex <noreply@openai.com >
(cherry picked from commit 92f13229ed3038d63f2a2d9c889bfd4c212e38e2)
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:03 -08:00
Brad Seiler
4a3ee15016
test(db): keep invite repair communities valid under schema constraints
...
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:01 -08:00
Brad Seiler
ea76471069
test(db): use async URI-based invite repair processes
...
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:01 -08:00
Brad Seiler
0bbeca8d8b
docs(db): explain invite repair recovery after lock timeout
...
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:01 -08:00
Brad Seiler
0252728a00
fix(db): fail invite repair when validation remains nonzero
...
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:01 -08:00
Brad Seiler
0ffdda448a
fix(db): seek directly between invite repair communities
...
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:01 -08:00
Brad Seiler
b068d59e5f
fix(db): make invite repair run budget configurable
...
Retain the finite default and explain timeout recovery across committed batches so large repairs can finish with a reviewed invocation budget.
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:01 -08:00
Brad Seiler
be76ecec39
docs(db): align invitation repair with schema 0075
...
Co-authored-by: Sarnow <1894dcbafaa4df1ac607a9bf879ac0b7d77fbccb0e0f4619ecc252c8adbad8a2@seiler-test.communities.public.builderlabstaging.xyz >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:01 -08:00
Brad Seiler
2d5b2cd6a4
Add invitation history repair as a separate maintenance change
...
Revoke historical legacy candidates and clear examined admission markers
under the deletion/admission locks. Require separate approval before core
deployment and a controlled rollout that prevents new timeout/mute history.
Co-authored-by: Codex <noreply@openai.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
Signed-off-by: seiler <seiler@squareup.com >
Signed-off-by: Brad Seiler <seiler@squareup.com >
2026-11-09 22:21:01 -08:00
klopez4212
44b3c4823f
Add swipeable photo stacks and native iOS gallery preview ( #9259 )
...
## Summary
Replace bubble photo carousels with swipeable, overlapping photo stacks,
with distinct sent/received layouts and a stationary photo count.
Opening and closing the gallery preserves the selected photo. Photo
frames follow the active theme.
Add an opt-in iOS 18+ native zoom gallery
(`BUZZ_NATIVE_PHOTO_ZOOM=true`) with paging, continuous dot scrubbing,
preview-backed loading, Reply/More actions, and Liquid Glass controls on
iOS 26+. The existing gallery remains the fallback. UIKit’s late corner
settling and brief return-transition input lockout remain known preview
limitations.
### Related issue
None found.
### Testing
Validation: full mobile pre-push checks/tests passed on `2b5bac3075`;
light/dark sent/received widget renders verified. Earlier native
simulator checks covered paging, scrubbing, downward close, and Reply.
Snapshots below are actual Flutter widget renders with sample photos
(not device screenshots).
| Before: carousel | After: sent | After: received |
| --- | --- | --- |
| 
| 
| 
|
| Dark mode: sent | Dark mode: received |
| --- | --- |
| 
| 
|
---------
Signed-off-by: kenny lopez <klopez4212@gmail.com >
Co-authored-by: Terp <5856f6900e8e0a4e0ea1f4f8d2ee33e4753d2119bc122f94ecafc660b46c0511@buzz.block.builderlab.xyz >
mobile-v0.28.0-rc.11
2026-11-09 16:52:02 -08:00