Repository navigation
feat(server): delegate work across linked environments - #290
Conversation
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
|
Independent review (Sol,
No additional blocking findings in the inspected diff. Coordinator adjudication: accepted; the call order is verified at VERDICT: failure |
|
Independent review (Grok, No blocking or non-blocking findings. Checked: port matches Note: this verdict does not cover Sol's blocking finding (replay through Prism before receipt lookup, comment above); the fix will be a new head and both reviews rerun on it. VERDICT: success |
Port the server peer-link stack from pingdotgg/t3code #16653, #16654, #16655, #16684, #16695 and #16719 at d79fdd537ca222fc43fb41c1496466da77ee3449. Adopt record-first recovery from Lenoridev/t3code bfef03587650a920878d9e65c5c61431c80ad55b (#17051). Keep permanent pairing-code link sessions, persisted target Prism selection and recovery-aware thread waits in fork modules. Add focused two-server, clock, restart and schema proof for #164.
cac69e6 to
8e0c718
Compare
|
Independent review (Sol, Blocking findings: none. Non-blocking findings: none. The previous finding is closed:
The four regressions at VERDICT: success |
|
Independent review (Grok, No blocking or non-blocking findings. Sol's finding is closed: VERDICT: success |
|
Independent review (Sol, No blocking findings.
Optional tests were not run (the presentation test lives at VERDICT: success |
|
Independent review (Grok, Only change since VERDICT: success |
…Rs at it (#296) * docs(map): cross-machine control cites PR #290; network routes become a part Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(agents): PRs keep docs/map.md current for the parts they touch Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(agents): only kept or new map parts cite the PR Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(agents): context and removed map parts take no PR ref Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(agents): only a PR that ships a part's work cites itself on the map Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
What changed: A planner on one machine can
delegate_taskto a linked machine (bestia, rocky, cavallo), track and cancel it, and is woken by its result; links are made headlessly with a pairing code and never expire, but stay revocable.Why: Thread tools only saw the local server, and outside-MCP sign-in hard-expired after 30 days with no refresh and no
delegate_taskor wake-up.So what: After Sol and Grok review this exact head and CI is green, the agent merges; deploy rides the staging/restart rule, then the agent links the machines over SSH and proves a real cross-machine delegation.
Refs #164 (stays open until the real cross-machine proof after deploy).
How
Ports upstream's unmerged peer-link stack as an upstream-sourced fork feature
peer-links(drop our copy when upstream merges):72f69ac543), #16654 keyed launch (1681640c39), #16655 links +t3 environment link|list|unlink(3c08aa1805), #16684 agents use links (40d3e5f077), #16695 link-origin fencing (aa5fdd0f57), #16719 remotedelegate_task(d79fdd537c), server parts only.bfef035876, reviewed like fork code: the remote task is persisted before launch, recovered with its original namespace/key after a restart, attached without an active parent run.Fork hooks (stay ours):
McpOAuth.approvepassespermanent = pairing-code decision && peer-link clientthroughPendingCodetoissueMcpClientSession; TTL toREUSABLE_DEV_SESSION_EXPIRES_AT(apps/server/src/peer/permanentSession.ts). Browser approvals keep 30 days.t3 auth session revokecuts a link off.modelSelectionunlesstarget.modelis set, and carriesprismRole ?? delegatedPrismRole(role),lane,workspaceStrategyand the raw task.waitForThreadfollows a Prism recovery successor of the waited run at the initial read, the event stream and the timeout read (one budget; pending recovery returnstimedOut: true); the follower reads the reply of the run that finished.Links table: fork module with upstream's exact
peer_environment_linksDDL (CREATE TABLE IF NOT EXISTS), no migration 061, pinned by aPRAGMA table_infotest. No web/mobile changes, no version bump.Design: council and three reviewed revisions on #164; revision 3 approved by Sol (
gpt-6.1-sol) and Grok (grok-4.7).Proof
223 focused tests pass at this head (peer, recovery wait, permanent session, CLI, schema, launch, delegation, completion delivery, orchestrator toolkit), server and contracts typecheck, targeted lint,
scripts/fork-check.sh. Commands and results: #164 (comment). Real cross-machine proof follows deploy.Elon record
mainwithout waiting for Absorb upstream main through 8d11fe1261 #166 or upstream merge (user, 2026-10-14); role, lane, Prism, target-side workspace (user, 2026-10-07).cac69e6a, the permanence predicate inMcpOAuth.approve, live reachability of all three servers over Tailscale HTTPS.Built by GPT-6.1-Sol (Codex) in T3 Code; coordinated by Claude Opus 5.5 (Claude Code).
🤖 Generated with Claude Code