Society · Protocols
ContextSwitch
Explicit, scoped protocol-mode toggle with enter/revert boundaries
Definition
Mechanism
Agents explicitly signal a change in Context (protocol Mode), and all subsequent messages are interpreted under the new ruleset until a 'Revert' signal is sent. The new context pushes onto a stack; Revert pops it. Unlike an ambient Mode change (which applies to the whole agent), ContextSwitch is scoped to a specific conversation or channel and carries explicit enter/exit boundaries.
Invariants
- The switch is signalled explicitly; it is never inferred from content.
- Revert pops the most recent switch, not an arbitrary one.
- Scoped to one conversation or channel, unlike an ambient Mode change.
Risks
Failure modes
Unbalanced stack
a switch is never reverted, so the ruleset outlives the exchange it was for.
Scope leak
messages outside the switched channel are interpreted under the new ruleset.
Relationships
Builds on
Accepts
Infrastructure
Portable execution environment with inherited constraints
Used by
References
Claim tasks and become the assigned persona
Reference
