# fix\(orchestration\): select visible history before limiting SQL · pingdotgg/t3code

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

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

Visibility: public

Requested revision: bb95b1f5e49a007a1e7c0551bfde43078e4937da

Requested commit: bb95b1f5e49a007a1e7c0551bfde43078e4937da

Commit: bb95b1f5e49a007a1e7c0551bfde43078e4937da

Tree: d667d065bb828843c443235425b2163aa078b018

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(orchestration): select visible history before limiting SQL

Keep hidden local and inherited rows from consuming history pages. Preserve stop-request dependencies, source-run cutoffs, and imported history while loading related metadata from the selected cohort and using indexed watermark lookups.

Finding: P01 bounded history visibility

Model: GPT-5.6 Sol via Codex

```

## Parents

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

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