Fix issues regarding event ordering in state res #2621

Merged
nex merged 4 commits from jade/oldest-events into main 2026-11-30 17:57:30 +00:00

2026-11-30

refactor: Use concrete UserPowerLevel type
All checks were successful
Checks / Prek / Check changed files (pull_request) Successful in 6s
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 7s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m30s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m31s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 8m15s
2026-11-30 17:42:27 +00:00

2026-11-28

chore: Changelog fragment
All checks were successful
Checks / Prek / Check changed files (pull_request) Successful in 6s
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 8s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 38s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m32s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 8m25s
2026-11-28 17:26:46 +00:00
fix(state-res): Use infinite power level for v12 room creators
Some checks failed
Auto Labeler / Apply labels based on changed files (pull_request_target) Successful in 3s
Checks / Prek / Check changed files (pull_request) Successful in 6s
Documentation / Build and Deploy Documentation (pull_request) Successful in 33s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m27s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 13m59s
Checks / Changelog / Check changelog is added (pull_request_target) Failing after 6s
Representing v12 creators as Int::MAX allowed a non-creator explicitly
assigned Int::MAX to tie with a room creator during reverse topological
power sorting instead of ranking strictly below them.
2026-11-28 16:36:42 +00:00
fix(state-res): Order no-ancestor events before oldest mainline power level
Assigning depth 0 to the oldest mainline power-levels event collided
with the 0 sentinel for events with no mainline ancestor, breaking ties
by timestamp instead of sorting no-ancestor events strictly earlier as
required by the Matrix spec.
2026-11-28 16:33:19 +00:00