- message.delta → content.delta with payload.streamKind/delta
- tool.started → item.started with payload.itemType/status/title/detail
- tool.completed → item.completed with payload.itemType/status/title/detail
- approval.requested → request.opened with payload.requestType/detail
and RuntimeRequestId instead of ApprovalRequestId for event requestId
- turn.started now includes payload: {}
- turn.completed uses payload.state instead of top-level status
- runtime.error uses payload.message instead of top-level message
- Activity kind assertions (approval.requested, tool.started, etc.) left unchanged
Co-authored-by: Julius Marminge <[email protected]>
- add `OrchestrationLatestTurn` schema and store full turn state/timestamps/message linkage
- update server projector/snapshot queries to populate `latestTurn` from session + projection_turns
- migrate web store/components to consume `latestTurn` and adjust related tests
- Make `approvalPolicy` and `sandboxMode` required in orchestration contracts and turn-start flow
- Add defaults in provider reactors/ingestion to guarantee values are always set
- Store and hydrate both fields in projection persistence, snapshots, and related tests
- Replace raw `Effect.promise`/generic errors with `Effect.tryPromise` and tagged schema errors
- Improve orchestration harness/test reliability with explicit timeout/runtime error types
- Tighten related tests and error assertions to match typed error flows
- make integration harness dispose path always remove temp root dirs via `Effect.ensuring`
- preserve shutdown failure by surfacing the first teardown error cause
- add integration test that forces `providerService.stopAll` failure and verifies temp dir cleanup
- Require `threadId` when starting provider sessions and route recovery via persisted bindings
- Persist and propagate provider `resumeCursor`/`providerThreadId` instead of synthesizing values
- Expose full session bindings in `ProviderSessionDirectory` and update tests/integration fixtures
- Rename sqlite state file from `orchestration.sqlite` to `state.sqlite`