Skip to content

fix(server): keep standing role turns off the laptop - #261

Open
nullStack65 wants to merge 2 commits into
release/native-0.1.10from
fix/standing-placement-off-laptop
Open

nullStack65 wants to merge 2 commits into
release/native-0.1.10from
fix/standing-placement-off-laptop

Conversation

@nullStack65

Copy link
Copy Markdown
Owner

Problem

Standing role threads (the long-lived CoS, CTO, CEO, CFO and Product Designer threads) could start turns on the primary laptop. The laptop is a person's working machine and should only run work that is explicitly bound to it.

Change

  • Turn-start guard: when a standing role thread that lives on the laptop gets a queued turn, the server no longer starts it locally. It forwards the turn to the role's executor on the always-on server (R720) first and on ASUS second, using the existing peer links and remote delegation. If neither is reachable, the turn stays queued with a visible reason (held) instead of running on the laptop.
  • New standingThreadExecutors setting maps a laptop thread id to its { r720?, asus? } executor thread ids. Payloads the forwarder cannot carry (for example scratch threads) are held with reason unsupported-payload.
  • Environment ids for the laptop, R720 and ASUS are exported once from settings.ts and reused by the placement defaults.
  • DEFAULT_MODEL_ALERT_WATCHER now points at the CoS thread on R720 instead of the laptop copy.
  • Structured logging for each hold/forward decision.

Scope

  • In: turn start for threads listed in standingThreadExecutors on the laptop environment, and the alert-watcher default.
  • Out: ASUS failover for threads that already live on R720; enforcing that each standing role exists only once; any UI change.

Prior art

Searched: 2026-12-03, this repository's release/native-0.1.10 (placement settings, RemoteDelegation, PeerLinks, MachinePresence, queued-run order) and upstream pingdotgg/t3code main.

  • Upstream T3 Code: no per-thread host pinning or turn-start placement. Not usable.
  • Existing automaticPlacementByDefault / machinePlacementRole: place new delegated work, not turns on an existing thread. Reused for host ordering, not sufficient alone.
  • Existing RemoteDelegation + PeerMcpClient: reused as the forwarding transport rather than adding a new one.
  • Thread redirect (set_redirect): works only within one environment, so it cannot move a laptop thread's wakes to another machine.

Verification

Run on Node 26.13.1:

  • vp run --filter @t3tools/contracts --filter t3 typecheck: exit 0.
  • vp lint --report-unused-disable-directives on changed files: exit 0.
  • Focused server tests (StandingThreadExecution.test.ts, ProviderTurnStartService.test.ts, Orchestrator.control-reads.test.ts): 150/150.
  • packages/contracts tests: 313/313.

Not verified: the full server suite (unrelated Claude adapter wake tests hang locally), and a live forward on the fleet, which is checked after deploy.

Browser proof

None: server-only change, no UI.

Deploy: fleet

Model: Claude Opus 5.5 (claude-opus-5-5), Claude Code harness.

🤖 Generated with Claude Code

nullStack65 and others added 2 commits December 3, 2026 17:33
The CoS standing role moved off the laptop to R720, so the default alert
watcher target follows it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
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