Skip to content

feat(orchestration): show and read a chat worker on a paired server - #40169

Closed
Jinwoo-H wants to merge 1 commit into
jinwoo/orch-stage2-remote-chat-workersfrom
jinwoo/orch-stage2-remote-chat-reuse
Closed

Jinwoo-H wants to merge 1 commit into
jinwoo/orch-stage2-remote-chat-workersfrom
jinwoo/orch-stage2-remote-chat-reuse

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

A chat worker started on another computer couldn't be checked from home: worker-show and worker-read said reading it wasn't supported yet. Now they show its state and its transcript, the same way they do for a chat worker on your own computer.

Stacked on #40151 (base branch jinwoo/orch-stage2-remote-chat-workers).

Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​14 $\color{#cf222e}{\Huge{\mathbf{−}}}$​10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4
Prod 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​55 $\color{#cf222e}{\Huge{\mathbf{−}}}$​30 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​25

What Changed

Before (A is paired to server devB, which runs chat worker ctx_W):

orca orchestration worker-show --dispatch ctx_W --json --full
# -> liveness: unverifiable, reason: "Orca cannot read the state of a chat worker on a paired server yet; ..."
orca orchestration worker-read --dispatch ctx_W
# -> capability_unsupported: Orca cannot read the state of a chat worker on a paired server yet; ...

After:

orca orchestration worker-show --dispatch ctx_W
# -> ... state=ready liveness=live terminal=structworker_...
orca orchestration worker-read --dispatch ctx_W
# -> source transcript, liveness live: the task brief, then the worker's replies
# after worker-stop or worker-release: liveness=exited

Mechanism (server side):

  • federationShow and federationFleetSnapshot report the chat's session verdict through the same lineage walk a local chat worker uses (observeStructuredWorkerHold, taken out of inspectSessionWorker unchanged).
  • federationReadOutput reads the chat's transcript with readStructuredWorkerOutput. That function now takes the worker's identity when no local Dispatch row names it. Reads of a stored archive after release work as before.
  • federationRead (the older terminal-screen read) refuses a chat plainly. A chat has no terminal, so its transcript is read with worker-read.

Why

PR #40151 made remote chat workers start and report, but left reads saying they weren't supported. This finishes that, reusing the local chat worker's observation and transcript reader instead of adding remote copies.

Linked Issue

Part of the cross-machine orchestration plan (gap W2, reads).

Visual Proof

N/A: no UI change. CLI before/after is above.

Testing

  • I manually tested this on two isolated paired dev Orcas built from this branch, with a real Claude chat worker from the normal user setup. The worker started with --on and mode: structured. While it waited, worker-show said liveness=live and worker-read returned its transcript (the brief, then its reply). After its report and worker-release, worker-show said liveness=exited. A second worker's worker-stop closed its chat, and worker-show then said exited.
  • Automated tests: remote-chat-worker-attach.test.ts now checks that show, fleet snapshot and read-output return the chat's live state and transcript, that the terminal-screen read is refused, and that show says exited after stop. These assertions fail without this change.

pnpm tc:node, the orchestration suites (1185 tests), the changed-code quality gate and pnpm check:changed (25/25) pass. Codex adversarial review of this commit and of #40151's protocol-gate commit: ship, no findings.

Found while testing, not changed here: after a home re-pairs with a server, worker-list --include-remote shows every worker on that server as host_unavailable. The server's fleet snapshot fails the whole batch when one Dispatch belongs to the earlier pairing. Main does the same; I'll fix it separately.

Risk

Level: Low

  • Only paths for a chat worker that a coordinator on another computer started change. Local observation code moved into a helper with the same behaviour.
  • Revert is a plain revert: reads go back to saying they aren't supported.

Review

Self-review plus adversarial Codex review; verdict ship.

Agent skill upstream boundary

  • Not applicable.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I stated the risk
  • N/A for screenshots (CLI only)
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (runtime logic only)
  • Typecheck, tests and pnpm check:changed pass locally; CI covers the rest

worker-show, the worker list and worker-read now report a remote chat
worker's state and transcript, read on its server the same way a local
chat worker's are, instead of saying reads are not supported.
@Jinwoo-H
Jinwoo-H force-pushed the jinwoo/orch-stage2-remote-chat-workers branch from 063a3df to ba767ed Compare November 9, 2026 08:49
@Jinwoo-H
Jinwoo-H force-pushed the jinwoo/orch-stage2-remote-chat-reuse branch from f72d454 to 67ac363 Compare November 9, 2026 08:49
@Jinwoo-H

Copy link
Copy Markdown
Contributor Author

Closing in favour of a different design. A worker started on a paired server will become an ordinary worker owned by that server, and the coordinator's computer forwards commands and records results. Follow-ups, chat workers and reads then use the same code as local workers, instead of a separate remote path. The test scenarios from this PR carry over to that work.

@Jinwoo-H Jinwoo-H closed this Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant