fix(state-res): Skip rejected events in iterative auth checks #2620

Merged
Jade merged 2 commits from eleboucher/continuwuity:fix/rejected-events-in-state into main 2026-11-28 16:29:56 +00:00

2026-11-28

fix(state-res): Re-authenticate rejected events in iterative auth checks
Some checks failed
Checks / Prek / Check changed files (pull_request) Successful in 6s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m22s
Documentation / Build and Deploy Documentation (push) Has been cancelled
Checks / Prek / Pre-commit & Formatting (push) Has been cancelled
Checks / Prek / Check changed files (push) Has been cancelled
Checks / Prek / Clippy and Cargo Tests (push) Has been cancelled
Release Docker Image / Build linux-amd64 (release) (push) Has been cancelled
Release Docker Image / Build linux-arm64 (release) (push) Has been cancelled
Release Docker Image / Create Multi-arch Release Manifest (push) Has been cancelled
Release Docker Image / Build linux-amd64 (max-perf) (push) Has been cancelled
Release Docker Image / Build linux-arm64 (max-perf) (push) Has been cancelled
Release Docker Image / Create Max-Perf Manifest (push) Has been cancelled
Release Docker Image / Release Binaries (push) Has been cancelled
Release Docker Image / Mirror Images (push) Has been cancelled
Documentation / Build and Deploy Documentation (pull_request) Successful in 2m0s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 15m41s
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 9s
The Matrix state resolution spec requires events rejected under
state-at-event checks to be re-authenticated during iterative auth
checks to avoid state divergence across servers; only rejected auth
events should be excluded.

Prefetch rejection status concurrently once per unique event ID to
avoid repeated sequential lookups inside the loop.
2026-11-28 16:27:26 +00:00