# perf\(orchestration\): bound history reads in SQL · stienswout/t3code

[View on GitCafe](https://git.cafe/stienswout/t3code/commit/5001e5641c8f55e8a888692ca018e1486ab64b2e)

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

Visibility: public

Requested revision: 5001e5641c8f55e8a888692ca018e1486ab64b2e

Requested commit: 5001e5641c8f55e8a888692ca018e1486ab64b2e

Commit: 5001e5641c8f55e8a888692ca018e1486ab64b2e

Tree: c2ccc630d729303f3a7eade95800852157131b89

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
perf(orchestration): bound history reads in SQL

Load at most one turn-item page per thread in a fork lineage before decoding, keyed by the stable history cursor. Restrict message, plan, and handoff reads to that page plus live actionable state so cold opens and older-page requests no longer decode complete historical tables.

Finding: P01

Implemented by GPT-5.6 Sol in Codex.

```

## Parents

- [1cefb8d9bb1e842fde6359a2d8c11d09f1ef31e0](https://git.cafe/stienswout/t3code/commit/1cefb8d9bb1e842fde6359a2d8c11d09f1ef31e0?format=markdown)

[Source at this commit](https://git.cafe/stienswout/t3code/tree/5001e5641c8f55e8a888692ca018e1486ab64b2e?format=markdown)
