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

  1. The switch is signalled explicitly; it is never inferred from content.
  2. Revert pops the most recent switch, not an arbitrary one.
  3. Scoped to one conversation or channel, unlike an ambient Mode change.

Risks

Failure modes

  1. Unbalanced stack

    a switch is never reverted, so the ruleset outlives the exchange it was for.

  2. Scope leak

    messages outside the switched channel are interpreted under the new ruleset.

Relationships

Builds on

Accepts

Infrastructure

Context

Portable execution environment with inherited constraints

References

Mind

Agent

Autonomous Goal-Directed Entity

Infrastructure

Mode

A discrete configuration of agency

Used by

References

WorkerMode

Claim tasks and become the assigned persona

Reference

Identity

Ref
ContextSwitch#aa92
Sema ID
sema:ContextSwitch#mh:SHA-256:aa928020743949b151e03433b563540eaf1bb56dad262297d2907bd0473931e2
Ring
0
Tier
1
Updated
2026-11-11
Supersedes
  • sema:ContextSwitch#mh:SHA-256:42cd102f1c3a2cba8029abd03d5949fb5b75b3df128016ef8bcb97f9304d8aef
  • sema:ContextSwitch#mh:SHA-256:67b2747f9e0dc041462f36df02e5b33540c2feb0d83bf40c580ea122d8f9ec06
  • sema:ContextSwitch#mh:SHA-256:f8c3d5f265624d0ff6af28dc26f6f347ae6286a04bde02398818e9bb12d761db