An interrupted attempt could continue provider setup after policy resolution or session opening. Persistent delegated-completion delivery failures could retry indefinitely and retain retry state. Failed or missing worktree project reads lacked a useful diagnostic.
Recheck ownership before session opening and before loading or forking its thread. Bound each delivery chain to eight retries, log exhaustion and remove its retry state. A durable mailbox offer remains readable and can receive a fresh budget on a later re-offer, including in the same process. Cancellation stops the chain. Log failed and missing worktree project reads while preserving upstream ownership-read failure propagation.
Verification:
- Five focused setup, delivery and recovery suites passed 65 tests across the follow-up checks, including real SQLite delivery.
- After dependency alignment, setup and continuation passed 41 tests. After merging captured main
4ee6bfd50e, setup and both affected recovery suites passed 35 tests.
- TestClock cases cover exhaustion, fresh same-process budgets and worker cancellation. Deferred startup cases prove a stopped attempt does not load a provider thread; deleting the post-open guard makes its test fail.
- Scoped server typecheck and changed-file lint/format passed. No live-client verification or performance measurement was performed.
Draft for maintainer scope review. No prior maintainer approval is claimed. Exhaustion has no dedicated client warning; delivery recovery retains the existing mailbox workflow.
Implemented with GPT-6.1 Sol through Codex. Audited with Ling 3.1 Flash Free and Space Bunny through OpenCode, plus Codex integration reviews.
Replaced by https://github.com/pingdotgg/t3code/pull/15784, https://github.com/pingdotgg/t3code/pull/15785 under the requested eight-PR split. The existing implementation was reused on clean independent branches against main; the original branch and commits are retained for provenance. Standalone missing-project diagnostics and recovery type cleanup are deferred and preserved on this original branch, rather than included in the startup or completion-delivery replacements.