Repository navigation
Replies: 1 comment 1 reply
|
A related use case is unattended nightly updates of a busy self-hosted server managed by a hand-written systemd user unit, without interrupting agent turns. An idle check outside the server leaves a race with new admissions. At current main, Could this maintenance hold support an update/restart-when-idle operation, such as
This would make the idle check and restart one coordinated operation, while preserving work submitted during the update. |
Uh oh!
There was an error while loading. Please reload this page.
T3's server can continue opening provider sessions, probes, background tasks and terminals during host maintenance. Closing a conversation or seeing an empty session map does not establish that provider and MCP cleanup finished. Session release can be persisted while scope closure is still running.
I propose an opt-in maintenance control for one server environment. Normal behavior and defaults would stay unchanged. The control would keep status and recovery available while it prevents new execution and observes the cleanup of previously admitted work.
Proposed behavior
This would be an environment boundary. Independent CLIs, another server environment and externally hosted providers remain separate operator obligations. T3 must not claim machine-wide exclusion.
Why existing release and retry paths are insufficient
ProviderSessionManager.releaseEntryremoves a live entry before joining its detached scope closure. Its ordinary timeout and release record do not attest completed drain. Cached handles can also resume through the adapter without opening a new manager entry.EffectOutbox.claimNextincrements the attempt count. Routing maintenance through ordinary retry handling can consume the five-attempt budget. Startup reconciliation also cancels pending process-bound effects. A maintenance pause must preserve never-executed work without replaying genuinely process-bound work.ProviderContinuationServiceconsumes a request before dispatch. Its failure path reoffers delegated completion only, so an ordinary maintenance rejection can discard other buffered wakes.Provider completion needs an explicit decision. Some SDK cleanup paths suppress failures, some descendant checks are no-ops, and external OpenCode connections have no owned exit handle. Unsupported completion must block a successful drain receipt.
Implementation and verification scope
Reuse one application-owned Effect service, existing atomic persistence, typed RPC authorization and worker receipt patterns. Avoid a parallel transport, fake maintenance thread or new selective-routing framework.
Focused tests would force these orderings with Deferreds and worker drains:
The proposal does not include installation, live activation, provider shutdown on an operator's machine or a coordinated client upgrade. I would keep the initial implementation unqualified for live cutover wherever an opening path or strict completion contract remains unsupported.
Is this maintenance direction and scope acceptable? If so, which provider completion guarantees should the initial supported cut require? I will link explicit direction and scope approval in any implementation PR.
All reactions