Skip to content

LastTurn

The last turn/completed the session-view fold applied, restated on session/resume and session/read so a reopened session can report a failed last turn.

  • error
  • reason
  • terminal
  • turnId
Source

schema/msp/experimental/msp.schema.json#/types/LastTurn

{
"description": "The last `turn/completed` the session-view fold applied, restated on\n`session/resume` and `session/read` so a reopened session can report a\nfailed last turn.",
"properties": {
"error": {
"$ref": "#/$defs/TurnError",
"description": "Copied when the `turn/completed` carried it: runtime `failed`\nterminals do, host-death `failed` terminals do not (ADR 36635 D2)."
},
"reason": {
"description": "Copied when the `turn/completed` carried it; a synthesized host-death\n`failed` terminal carries only this (`crash`, `crash_inferred`, or\n`incomplete`). Free display text: clients never branch on it.",
"type": "string"
},
"terminal": {
"$ref": "#/$defs/TurnTerminal",
"description": "The turn's terminal."
},
"turnId": {
"description": "The turn's id, as on its `turn/completed`; clients deduplicate a\nlive `turn/completed` against this member by it (ADR 36635 D2).",
"type": "string"
}
},
"required": [
"terminal",
"turnId"
],
"type": "object"
}