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

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/34c720d50e1586da8434adc5ab1c74bab6ac23c0)

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

Visibility: public

Requested revision: 34c720d50e1586da8434adc5ab1c74bab6ac23c0

Requested commit: 34c720d50e1586da8434adc5ab1c74bab6ac23c0

Commit: 34c720d50e1586da8434adc5ab1c74bab6ac23c0

Tree: 17c5c4afcbdaaee5d7053ff0892a1a344d98a2bd

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

- [9d8ad3a48488305c69446be4e581528f1e2083a1](https://git.cafe/pingdotgg/t3code/commit/9d8ad3a48488305c69446be4e581528f1e2083a1?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/34c720d50e1586da8434adc5ab1c74bab6ac23c0?format=markdown)
