Skip to content
Developer Preview

session/rulesChanged

Experimental

A rules refresh replaced the rules_file block’s listed sources; clients replace their rules-status snapshot (live host-state projection, not a view event;, ADR 70236 D1).

Type: SessionRulesChangedParams

session/rulesChanged params: a rules refresh replaced the rules_file block’s listed sources. A live host-state projection in the skill/changed mold — not a view event: no viewCursor, no sourceRange, nothing written to the event log, no transcript row, no ordering relative to view events, live-only (resume does not restate it). Broadcast delivery (the session/driveChanged pattern): every bound connection, with the sink’s own opt-out and experimental filters. Experimental tier.

Field Type Stability Presence Description
sessionId string Experimental required The session whose rules refreshed.
sources RulesChangedSource[] Experimental required The refreshed sources in precedence order, mirroring the refreshed RulesStatusSnapshot: one entry per <rules-file> tag the refreshed block lists. Empty when the block was removed.
Source

schema/msp/experimental/msp.schema.json#/notifications/session~2FrulesChanged

{
"description": "A rules refresh replaced the `rules_file` block's listed sources; clients replace their rules-status snapshot (live host-state projection, not a view event;, ADR 70236 D1).",
"params": {
"$ref": "#/$defs/SessionRulesChangedParams"
},
"x-msp-descriptor": "session/rulesChanged",
"x-msp-stability": "experimental"
}