# Persist turn diffs and checkpoint reverts in orchestration · gitcafe/t3code

[View on GitCafe](https://git.cafe/gitcafe/t3code/commit/4f4691676acad990c6a51221e2522d4ffb131415)

Repository: [gitcafe/t3code](https://git.cafe/gitcafe/t3code)

Visibility: public

Requested revision: 4f4691676acad990c6a51221e2522d4ffb131415

Requested commit: 4f4691676acad990c6a51221e2522d4ffb131415

Commit: 4f4691676acad990c6a51221e2522d4ffb131415

Tree: 9b498f596cfa0e5cc09df76e3ae684ef2f9f9178

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Persist turn diffs and checkpoint reverts in orchestration

- map `checkpoint/captured` to `thread.turnDiff.complete` and record turn status/id
- handle `thread.revert` to truncate messages and turn summaries in read model
- migrate event store from `better-sqlite3` to `node:sqlite` and add safe close/idempotent stop tests

```

## Parents

- [483a1ae3718e39269075e99ea84e437d4cfad591](https://git.cafe/gitcafe/t3code/commit/483a1ae3718e39269075e99ea84e437d4cfad591?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/t3code/tree/4f4691676acad990c6a51221e2522d4ffb131415?format=markdown)
