Skip to content

MSC4354: Sticky Events - #4354

Merged
turt2live merged 127 commits into
mainfrom
kegan/persist-edu
Oct 20, 2026
Merged

turt2live merged 127 commits into
mainfrom
kegan/persist-edu

Conversation

@kegsay

@kegsay kegsay commented Sep 16, 2025 •

Copy link
Copy Markdown
Member

@kegsay kegsay changed the title Sticky Events MSC4354: Sticky Events Sep 16, 2025
It wasn't particulalry useful for clients, and doesn't help equivocation much.
Comment thread proposals/4354-sticky-events.md Resolved
@turt2live turt2live added proposal A matrix spec change proposal. Process state. A-Client Server Client-Server API kind:core MSC which is critical to the protocol's success needs-implementation This MSC does not have a qualifying implementation for the SCT to review. The MSC cannot enter FCP. labels Sep 16, 2025
@github-project-automation github-project-automation Bot moved this to Tracking for review in Spec Core Team Workflow Sep 16, 2025
@turt2live turt2live added the matrix-2.0 Required for Matrix 2.0 (note: do not rename - used in reports/links) label Sep 16, 2025
Comment thread proposals/4354-sticky-events.md Resolved
Comment thread proposals/4354-sticky-events.md Resolved
Comment thread proposals/4354-sticky-events.md Resolved
Comment thread proposals/4354-sticky-events.md Resolved
Comment thread proposals/4354-sticky-events.md Resolved
Comment thread proposals/4354-sticky-events.md Resolved
@richvdh

richvdh commented Oct 15, 2026

Copy link
Copy Markdown
Member

@mscbot resolve delayed_event endpoint lacks real-world testing
@mscbot resolve server-side implementation still in flux
@mscbot resolve multiple outstanding comment threads

@mscbot

mscbot commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

🔔 This is now entering its final comment period, as per the review above. 🔔

@mscbot mscbot added final-comment-period Process state to accept, reject, or postpone an MSC. and removed proposed-final-comment-period Currently awaiting signoff of a majority of team members in order to enter the FCP. Process state. unresolved-concerns This proposal has at least one outstanding concern. Process state. labels Oct 15, 2026
@turt2live turt2live removed the 00-weekly-pings Tracking for weekly pings in the SCT office. 00 to make it first in the labels list. label Oct 15, 2026
@turt2live turt2live moved this from Ready for FCP ticks to In FCP in Spec Core Team Workflow Oct 15, 2026
Comment thread proposals/4354-sticky-events.md Resolved
tsutsui pushed a commit to tsutsui/pkgsrc that referenced this pull request Oct 17, 2026
Tested on NetBSD 9 amd64 by reporting pyproject.toml buglets upstream!

# Synapse 1.148.0 (2026-02-24)

## Features

- Support sending and receiving [MSC4354 Sticky Event](matrix-org/matrix-spec-proposals#4354) metadata. ([\#19365](element-hq/synapse#19365))

## Deprecations and Removals

- Remove support for [MSC3244: Room version capabilities](matrix-org/matrix-spec-proposals#3244) as the MSC was rejected. ([\#19429](element-hq/synapse#19429))
tsutsui pushed a commit to tsutsui/pkgsrc that referenced this pull request Oct 17, 2026
Tested on NetBSD 10 amd64 with 2026Q2 environment.

# Synapse 1.156.0 (2026-07-07)

## Features

- Expose [MSC4354 Sticky Events](matrix-org/matrix-spec-proposals#4354) over [MSC4186 (Simplified) Sliding Sync](matrix-org/matrix-spec-proposals#4186). ([\#19591](element-hq/synapse#19591))
- Stabilize support for sending ephemeral events to application services, as per [MSC2409](matrix-org/matrix-spec-proposals#2409). Contributed by @jason-famedly @ Famedly. ([\#19758](element-hq/synapse#19758))
- Include `allowed_room_ids` in the `/summary` client-server API response for rooms with restricted join rules, as required by Matrix 1.15.
  Contributed by @FrenchGithubUser @famedly. ([\#19762](element-hq/synapse#19762))
- [MSC4140: Cancellable delayed events](matrix-org/matrix-spec-proposals#4140): Allow authentication on delayed event management endpoints (such as `/restart`) to bypass ratelimits for unauthenticated requests based on the client IP address. ([\#19794](element-hq/synapse#19794))
- Add new metric `synapse_non_deactivated_user_count` which tracks the number of non-deactivated users in the database, split by `app_service`. ([\#19848](element-hq/synapse#19848))
- The `GET /_matrix/client/unstable/org.matrix.msc1763/retention/configuration` endpoint is now provided when retention
  is enabled and `experimental_features.msc1763_enabled` is enabled, based on
  [MSC1763](matrix-org/matrix-spec-proposals#1763). ([\#19853](element-hq/synapse#19853))
- Add experimental support for [MSC4491: Invite reasons in room creation](matrix-org/matrix-spec-proposals#4491). ([\#19874](element-hq/synapse#19874))


# Synapse 1.155.0 (2026-06-16)


# Synapse 1.154.0 (2026-06-04)

## Features

- Add support for [MSC4452: Preview URL capabilities API](matrix-org/matrix-spec-proposals#4452) which exposes a `io.element.msc4452.preview_url` capability.
  If `experimental_features.msc4452_enabled` is `true`, the `/_matrix/(client/v1/media|media/v3)/preview_url` endpoint
  now responds with a 403 status code when the capability is disabled. ([\#19715](element-hq/synapse#19715))


# Synapse 1.153.0 (2026-05-19)

## Features

- Make ACLs apply to EDUs per [MSC4163](matrix-org/matrix-spec-proposals#4163). ([\#18475](element-hq/synapse#18475))
- Stabilize [MSC3266: Room summary API](matrix-org/matrix-spec-proposals#3266), removing the experimental config flag `msc3266_enabled`. Contributed by @dasha-uwu. ([\#19720](element-hq/synapse#19720))
- Partial [MSC4311](matrix-org/matrix-spec-proposals#4311) implementation: `m.room.create` is now a required part of stripped `invite_state`/`knock_state` . Contributed by @FrenchGithubUser @famedly. ([\#19722](element-hq/synapse#19722))
- Expose `tombstoned` and `replacement_room` in room details on admin API endpoint `GET /_synapse/admin/v1/rooms/<room_id>`. Contributed by Noah Markert. ([\#19737](element-hq/synapse#19737))


# Synapse 1.152.1 (2026-05-07)


# Synapse 1.152.0 (2026-04-28)

## Features

- Add a ["Listing quarantined media changes" Admin API](https://element-hq.github.io/synapse/latest/admin_api/media_admin_api.html#listing-quarantined-media-changes) for retrieving a paginated record of when media became (un)quarantined. ([\#19558](element-hq/synapse#19558), [\#19677](element-hq/synapse#19677), [\#19694](element-hq/synapse#19694))
- Advertise [MSC4445](matrix-org/matrix-spec-proposals#4445) sync timeline order in `unstable_features`. ([\#19642](element-hq/synapse#19642))
- Report the Rust compiler version used in the Prometheus metrics. Contributed by Noah Markert. ([\#19643](element-hq/synapse#19643))
- Passthrough 'article' and 'profile' OpenGraph metadata on URL preview requests. ([\#19659](element-hq/synapse#19659))
- Add a way to re-sign local events with a new signing key. ([\#19668](element-hq/synapse#19668))
- Support [MSC4450: Identity Provider selection for User-Interactive Authentication with Legacy Single Sign-On](matrix-org/matrix-spec-proposals#4450). ([\#19693](element-hq/synapse#19693))
- Add experimental support for [MSC4242](matrix-org/matrix-spec-proposals#4242): State DAGs. Excludes federation support. ([\#19424](element-hq/synapse#19424))
- Adds [Admin API](https://element-hq.github.io/synapse/latest/usage/administration/admin_api/index.html) endpoints to
  list, fetch and delete user reports. ([\#19657](element-hq/synapse#19657))
- Reduce database disk space usage by pruning old rows from `device_lists_changes_in_room`. ([\#19473](element-hq/synapse#19473), [\#19709](element-hq/synapse#19709))


# Synapse 1.151.0 (2026-04-07)

## Features

- Add stable support for [MSC4284](matrix-org/matrix-spec-proposals#4284) Policy Servers. ([\#19503](element-hq/synapse#19503))
- Update and stabilize support for [MSC2666](matrix-org/matrix-spec-proposals#2666): Get rooms in common with another user. Contributed by @tulir @ Beeper. ([\#19511](element-hq/synapse#19511))
- Updated experimental support for [MSC4388: Secure out-of-band channel for sign in with QR](matrix-org/matrix-spec-proposals#4388). ([\#19573](element-hq/synapse#19573))
- Stabilize `room_version` and `encryption` fields in the space/room `/hierarchy` API (part of [MSC3266](matrix-org/matrix-spec-proposals#3266)). ([\#19576](element-hq/synapse#19576))
- Introduce a [configuration option](https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html#matrix_authentication_service) to allow using HTTP/2 over plaintext when Synapse connects to Matrix Authentication Service. ([\#19586](element-hq/synapse#19586))

## Deprecations and Removals

- Remove support for [MSC3852: Expose user agent information on Device](matrix-org/matrix-spec-proposals#3852) as the MSC was closed. ([\#19430](element-hq/synapse#19430))


# Synapse 1.150.0 (2026-03-24)

## Features

- Add experimental support for the [MSC4370](matrix-org/matrix-spec-proposals#4370) Federation API `GET /extremities` endpoint. ([\#19314](element-hq/synapse#19314))
- [MSC4140: Cancellable delayed events](matrix-org/matrix-spec-proposals#4140): When persisting a delayed event to the timeline, include its `delay_id` in the event's `unsigned` section in `/sync` responses to the event sender. ([\#19479](element-hq/synapse#19479))
- Expose [MSC4354 Sticky Events](matrix-org/matrix-spec-proposals#4354) over the legacy (v3) /sync API. ([\#19487](element-hq/synapse#19487))
- When Matrix Authentication Service (MAS) integration is enabled, allow MAS to set the user locked status in Synapse. ([\#19554](element-hq/synapse#19554))
gamesguru pushed a commit to gamesguru/dendrite that referenced this pull request Oct 18, 2026
Implement [MSC4354](matrix-org/matrix-spec-proposals#4354) sticky events with the unstable names, which Element Call's `matrix_2_0` MatrixRTC mode requires.

Tracked in element-hq#500.
Depends on pat-s/gomatrixserverlib#26: `go.mod` pins its unreleased commit, so bump to the released version before merging.

## Changes

- Sending: `PUT /rooms/{roomId}/send/{eventType}/{txnId}?org.matrix.msc4354.sticky_duration_ms=N` adds a top-level `msc4354_sticky` key; negative or non-integer values return 400 `M_INVALID_PARAM`, and values over one hour count as one hour, as in Synapse.
- Storage: a new `syncapi_sticky_events` table (PostgreSQL and SQLite) with its own stream position, filled as the syncapi writes new and backfilled events, with expiry `min(received, origin_server_ts) + min(duration, 1h)`.
- Redactions remove an event's stickiness, and expired rows are cleaned up on insert.
- The sync token gains a tenth position; old tokens parse with it at zero, and older builds ignore it, so rollback stays safe.
- Sync v2: a per-room `msc4354_sticky.events` section with `unsigned.msc4354_sticky_duration_ttl_ms`, without events already in the timeline, at most 100 per response, all unexpired events on join, ignored users omitted, and sticky senders included in lazy-loaded members.
- Sliding sync: the `org.matrix.msc4354.sticky_events` extension (MSC4480), shaped like Synapse's.
- History visibility no longer hides unexpired sticky events from joined users on `/messages`, `/context`, `/event` and the other filtered endpoints.
- Federation: our own unexpired sticky events are pushed to servers that newly join a room.
- `unstable_features` advertises `org.matrix.msc4354`.
- HA `releaseLevel` goes to 7.
- Docs: `mscs.md`.

## Known gaps

- The set of our sticky events to push to newly joining servers is kept in memory, so after a restart or failover only events sent since then are pushed.
- Soft-failed sticky events are not re-evaluated when room state changes.
- Only `/sync` responses add the TTL field.
- Sending a sticky event with an MSC4140 delay needs element-hq#502 as well, and is left for a follow-up once both land.

## Behaviour change

Clients see a new `msc4354_sticky` sync section only for rooms with unexpired sticky events.
element-hq#502 also raises `releaseLevel` to 7, so whichever merges second needs to go to 8 and regenerate the surface golden.

## Tests

gomatrixserverlib build tests, send endpoint tests, storage tests on both backends, sync v2 and sliding sync extension tests, history visibility and federation push tests.
`go test -tags goolm` over syncapi, clientapi, federationapi, roomserver and setup/ha passes on SQLite and PostgreSQL.

Reviewed-on: https://codefloe.com/pat-s/zendrite/pulls/503
reivilibre and others added 2 commits October 19, 2026 13:59
Co-authored-by: Johannes Marbach <n0-0ne+github@mailbox.org>
@mscbot

mscbot commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

The final comment period, with a disposition to merge, as per the review above, is now complete.

@mscbot mscbot removed the disposition-merge Process state. label Oct 20, 2026
@Johennes

Johennes commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Spec PR: matrix-org/matrix-spec#2475

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

Labels

A-Client Server Client-Server API A-VOIP Any VoIP or MatrixRTC related proposals kind:core MSC which is critical to the protocol's success matrix-2.0 Required for Matrix 2.0 (note: do not rename - used in reports/links) proposal A matrix spec change proposal. Process state. spec-pr-in-review A proposal which has been PR'd against the spec and is in review

Projects

Status: Requires spec PR review

Development

Successfully merging this pull request may close these issues.