Preserve reconstructed and cancelled turn states

Signed-off-by: kenny lopez <klopez4212@gmail.com>
This commit is contained in:
kenny lopez
2026-08-17 18:48:34 +01:00
parent d5b96f9a27
commit e7eb73bf53
7 changed files with 204 additions and 18 deletions
+10
View File
@@ -111,8 +111,18 @@ Unknown `kind` values MUST be ignored.
| `acp_read` | Inbound ACP protocol frame (model → harness) |
| `acp_write` | Outbound ACP protocol frame (harness → model) |
| `turn_started` | A new agent turn has begun |
| `turn_liveness` | The current turn is still active |
| `turn_completed` | The current turn ended, optionally with an outcome |
| `turn_error` | The current turn stopped with an error |
| `agent_panic` | The agent task terminated unexpectedly |
| `session_resolved` | Session completed or terminated |
`turn_completed.payload.outcome` MAY be `"cancelled"` when the turn was
explicitly cancelled. A missing outcome retains the legacy completion semantics
and SHOULD be treated as finished unless a more specific terminal frame exists.
`turn_started` and `turn_liveness` carry `livenessIntervalSecs`; other mid-turn
frames are not required to repeat it.
### Control (`frame=control`)
The `content` field decrypts to: