# feat\(server\): evaluate automatic thread settlement in the v2 orchestrator · pingdotgg/t3code

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

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

Visibility: public

Requested revision: 41a58eec417497e3c98194873c15eda7241878e8

Requested commit: 41a58eec417497e3c98194873c15eda7241878e8

Commit: 41a58eec417497e3c98194873c15eda7241878e8

Tree: a52c781ba136138065d48aa63c44863076b9f1d4

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
feat(server): evaluate automatic thread settlement in the v2 orchestrator

Ports #8600's server-owned settlement to orchestration v2 instead of
keeping client-side evaluation. A ThreadSettlementService sweep runs at
startup, on auto-settle settings changes, and once per minute: it
evaluates inactivity and merged or closed pull requests over v2 thread
shells and dispatches the new guarded thread.auto-settle command, which
rejects threads that changed after the sweep's snapshot or carry any
explicit override, then reuses the orchestrator's settle lifecycle.
With the server deciding, the clients drop their effectiveSettled
evaluation and partition on the persisted settledOverride like main.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

```

## Parents

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

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