Repository navigation
Conversation
…for running work ## Problem A driver and supervisor pair that dispatch (the plugin that runs initiatives) starts lives in tmux tabs. RuCode cannot show it, steer it or keep it alive across a restart, and it can restart the server in the middle of a run. ## Change - The server now carries out dispatch's pair intents on RuCode threads: it starts the driver and supervisor as server-launched threads under the planning chat, delivers notes and wake-ups to them, and sends dp (dispatch's command) a receipt for each. Intents have deterministic ids, so a restart replays them without duplicates. - A new service reads dp's pair state and the bridge's own record, and serves the pair RPCs (state subscription plus the operator actions: authorize, decline, not now, start, supervision, check-in, stop, settle, raise ceiling, answer decision, and pack, unpack and release of an initiative). Every action needs `orchestration:operate`. - Threads started by the server can record a parent thread. Pair seats are left out of terminal import and generic restart continuation. - A planned update requested from a client (including the desktop updater) is refused while threads are working or dispatch parts are running, naming what is running. The web asks "Restart while work is running?" and re-sends with `force` after "Restart anyway"; stage-only updates are not guarded. The confirm dialog gained an optional `confirmLabel` for this. - `@t3tools/client-runtime/state/dispatch-pair` gives clients the pair snapshot, the commands, `dispatchPairForThread`, `dispatchPairWaitingOnPerson` and the move sequence for starting a pair on another machine. A move declines the source proposal only after the target confirms it unpacked the same archive. - Wire changes are optional fields, so older clients and servers keep working. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A driver and supervisor pair that dispatch (the plugin that runs initiatives) starts lives in tmux tabs. RuCode cannot show it, steer it or keep it alive across a restart, and it can restart the server in the middle of a run.
Change
orchestration:operate.forceafter "Restart anyway"; stage-only updates are not guarded. The confirm dialog gained an optionalconfirmLabelfor this.@t3tools/client-runtime/state/dispatch-pairgives clients the pair snapshot, the commands,dispatchPairForThread,dispatchPairWaitingOnPersonand the move sequence for starting a pair on another machine. A move declines the source proposal only after the target confirms it unpacked the same archive.Scope
Requested by the maintainer of this fork. Depends on the dp release from the dp-native-pair work: the bridge reports "operator-unbound" instead of looping until dp binds the operator.
Verification
i18n:checkpasses in all eleven web locales.Open points (not blocking)
thread.archivereceipt replays forever; a seat deleted before its receipt keeps its launch retrying.DispatchPairStatereads the thread projection fromProjectionStoreV2where the spec says ProjectionThreads; the state, store and action layers also need the file system and path services.pair_busy) is reported as "failed" with the dp code kept; exit-5 retries make four attempts although the intent text says three.dp initiative pack|unpack|releasetake no operator or confirm flags, so those actions run outside the operator wrapper.Built with Claude Code (Claude Sonnet and Opus models); review by Claude Haiku.
🤖 Generated with Claude Code