Skip to main content

Module dialogue

Module dialogue 

Source
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§

DialogueTracker
§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 reply a legal move after prev?
legal_replies
Replies legal immediately after prev (the client’s turn) — the server’s legal next moves.