Expand description
Dialogue rules (spec §16): normative conversation policy.
A language has discourse structure: after a given performative, only
certain replies are legal. dialogue_legal(prev, reply) is the machine-
checkable form; receivers SHOULD reject off-policy replies, sessions
MAY enforce it strictly.
Structs§
- Dialogue
Tracker - §16 enforcement: tracks the last performative this side SENT and validates each incoming reply against the matrix. Off-policy replies are reported (receivers SHOULD reject them; strict enforcement is a session policy choice).
Functions§
- dialogue_
legal - Is
replya legal move afterprev? - legal_
replies - Replies legal immediately after
prev(the client’s turn) — the server’s legal next moves.