# Own the thread ceiling where the bindings are built · pingdotgg/t3code

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

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

Visibility: public

Requested revision: d3ee18cd2c08b19b54591e7602a0c3d4827d47fc

Requested commit: d3ee18cd2c08b19b54591e7602a0c3d4827d47fc

Commit: d3ee18cd2c08b19b54591e7602a0c3d4827d47fc

Tree: 5c5b2be366fdf5c5912c6020fd81fd62736f1f93

Author: Theo Browne

Committer: Theo Browne

## Message

```
Own the thread ceiling where the bindings are built

The cap was declared in the CLI while the constraint belongs to the
seeder's statements, and the number appeared in three places. That split
is the mechanism behind the last regression: a change to a statement in
the library silently invalidated a bound stated in the CLI, and the
mismatch only surfaced at the maximum — after the target was emptied.

Move it to `MAX_SEED_THREAD_LIMIT` beside the statements that have to
satisfy it, have the flag derive its bound from there, and check it in
`seedDevDatabase` before anything is opened so a caller bypassing the
flag fails while the target is still intact.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

```

## Parents

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

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