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

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

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

Visibility: public

Requested revision: f51d14f281641fb863702de2095e90904bdceac6

Requested commit: f51d14f281641fb863702de2095e90904bdceac6

Commit: f51d14f281641fb863702de2095e90904bdceac6

Tree: 0f446445473eb1928adb07af06c6da0790a0fa63

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

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

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