# refactor\(server\): classify orchestration exports · PR \#10275 · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/pull/10275)

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

Visibility: public

State: merged

Source repository: pingdotgg/t3code

Source branch: cleanup-server/orchestration-internals

Target branch: cleanup-server/runtime-internals

Head commit: 1c4dfeec34410f080a13c3201fd45494fea2350b

[Discussion and reviews](https://git.cafe/pingdotgg/t3code/pull/10275)

[Commits](https://git.cafe/pingdotgg/t3code/pull/10275/commits?format=markdown)

[Files changed](https://git.cafe/pingdotgg/t3code/pull/10275/diffs?format=markdown)

## Description

---

Orchestration modules had 11 unclassified runtime exports. This keeps the ThreadSettlementReactor service constructor public, narrows seven implementation values, and deletes three unused error adapters without changing command, event, or projection contracts.

This is layer 2 of 9 in the server Knip cleanup stack.

The reactor constructor added on main uses the same explicit `@public` annotation.

Verification after rebasing onto current main: server typecheck and the server-only Knip export audit pass. Changed-file lint and formatting pass, with one existing lint warning. Focused auth, provider, source-control, preview toolkit, orchestration, and Knip preprocessor tests pass: 90 tests across 9 files. This changes server export visibility and static analysis; screenshots do not apply.

Model: gpt-6 astra. Harness: Codex in T3 Code.

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **Refactor**
  - Reduced the public surface of orchestration internals by making implementation details private.
  - Removed several internal error-construction helpers from the public API.
  - Kept orchestration behavior and budget limits unchanged.
  - No user-facing behavior changes.

- **Documentation**
  - Clarified which orchestration service construction APIs are public.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
