Authority::handle now returns Handled: the effects to deliver and an Outcome that each branch writes from its own result. A rejection carries its code and room. A committed turn names the durable record it changed (the acting user, the header, or a summary a host committed), the hosted room creation or deletion its storage owner must finish, and whether its last event is a request for the room writer. Admission reports a new user or renewed owner credential, the channel reports profile and domain changes, and the host branches report directory changes. For a change that is undone when it cannot be saved, the Core hands back the authority from before the turn. The Server hub saves, undoes or keeps what the outcome tells it, so changes_metadata, the hub's command matching, the inference from the last event and the stripping of deferred replies are gone, along with Event::Deferred. A completion without a request ID now exists only for a failure. In hosted mode the Core leaves the creation or pending deletion answer to the hosting owner instead of emitting a reply for the hub to remove. Hosted room creation decides whether to keep a reservation from a typed OpenRoomError::MayExist instead of matching error strings, with the codes sent to clients unchanged. Tests that asserted the removed prediction or the internal deferred event now assert the same behaviour through the outcome or through a reply with a request ID.
a0af7755f7
·
2026-11-29 12:05:28 +08:00
History