Skip to content

feat(bin): add an explicit-only T3 Code runtime backend - #7518

Merged
kunchenguid merged 91 commits into
kunchenguid:mainfrom
arthurcruzd:fm/t3-5596-successor-v3
Oct 24, 2026
Merged

kunchenguid merged 91 commits into
kunchenguid:mainfrom
arthurcruzd:fm/t3-5596-successor-v3

Conversation

@arthurcruzd

@arthurcruzd arthurcruzd commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Supersedes #5596, carried forward as its successor.
The backend is @bryceeppler's work: his 49 commits keep their original authorship, plus the Orchestrator V2 /mcp move contributed through bryceeppler#5.

Fixes #6904

Successor notes

  • Explicit-only: t3code is selected only by config/backend=t3code, FM_BACKEND=t3code, or --backend t3code with a signed-in credential; fm_backend_detect has no T3 arm, and it sits beside rex and paseo in the backend lists.
  • Rebased onto current main; conflicts with the Rex, Paseo, OpenCode 2, and managed-approval work were resolved as unions (listed in a PR comment).
  • T3 always runs workers at its full-access mode, so a T3 spawn refuses config/claude-permission-mode=auto, config/codex-approval-mode=approve-for-me, and config/codex-permission-mode=restricted, and bin/fm-approval-failover.sh will not save either setting for a T3 task.
  • CI: the two new T3 suites run in the portable parallel lanes, so the serial lane stays within its nine shards; no workflow file changes.
  • Every CI check passes on the current head.

Follow-ups

  • Native exit and relaunch on T3 stay refused on t3code; enabling them is a separate follow-up.
  • Away mode on T3: a supervisor thread whose last run failed keeps deferring digests until a human intervenes; this is the documented behavior here, to be revisited separately.
  • Known limitation: T3 request-id deduplication holds within one T3 auth session, so a resend after a re-login can deliver a message twice.
  • Codex workers on T3 need the project trusted in the Codex configuration T3 uses; spawn warns when that trust cannot be confirmed.

Intent

yes, take over upstream PR #5596 as a successor PR, as the maintainer invited: rebase the commits onto current main, fix lint, run no-mistakes, live-test on stable T3 v0.1.0, open it ready (not draft) before the stale close around 2026-10-30, crediting Bryce. Native exit and relaunch stay a separate follow-up.

Context needed to read that answer. #5596 is bryceeppler's draft PR adding an explicit-only t3code runtime backend (selected only by config/backend=t3code plus a bearer token), branch bryceeppler/firstmate:t3code-backend, head 6049a5f. It already carries the move onto T3 Orchestrator V2's /mcp transport contributed through bryceeppler#5, and references #6904. On 2026-10-16 bryceeppler wrote that he will not keep the PR up and others may continue the work. The maintainer's triage comment (#5596 (comment)) says the PR is a draft, conflicts with main, and fails Lint 1, will not merge as-is, and will close under the 14-day stale rule about two weeks after the last author activity. It invites arthurcruzd to carry it forward as a successor PR from his own branch with these changes:

  1. Keep bryceeppler's commits (and the feat(t3code): move the backend onto T3 Orchestrator V2's /mcp transport bryceeppler/firstmate#5 commits) intact so authorship is preserved, and rebase onto current main.
  2. Fix the lint failure.
  3. Raise it through git push no-mistakes so the attestation binds to the new head.
  4. Live-test against stable T3 v0.1.0 and post the evidence in the PR.
  5. Mark it ready, not draft.
    Once the successor is open the maintainer will close feat: add experimental T3 Code runtime backend #5596 as superseded. The successor gets a full fresh review, including confirming that homes without config/backend=t3code are unchanged, because the rework edits default-path files (herdr.sh, fm-supervise-daemon.sh, fm-control.sh, fm-spawn.sh, the opencode plugin). The native exit/relaunch direction (interrupt then archive; resume or new thread) would be judged on its own, so it stays a separate follow-up.

What Changed

  • Adds an experimental t3code runtime backend (bin/backends/t3code.sh). It runs claude and codex tasks and secondmates as T3 Code threads inside Treehouse worktrees. It talks to T3's Orchestrator V2 /mcp endpoint through bin/fm-t3-mcp.mjs, which owns three things: the captain-run OAuth mcp-client sign-in (stored in config/t3code-token), the capability gate, and the telemetry check. Two new helpers come with it: bin/fm-t3-answer.sh reads and answers a worker's pending questions, and bin/fm-t3code-codex-env.sh manages the per-worktree Codex environment overlay. The backend is chosen only by config/backend, FM_BACKEND, or --backend t3code. Auto-detection never picks it. This carries forward Bryce Eppler's commits from feat: add experimental T3 Code runtime backend #5596, with their authorship kept.
  • Handles backend=t3code in spawn, send, watch, control, teardown, and the supervise daemon. The daemon injects messages with t3_thread_send and only finds a T3 supervisor thread when T3 was explicitly selected. The same goes for busy/classify state, secondmate liveness and restart, and config inheritance, which now passes config/t3code-instances to secondmates. Anything T3 cannot honor is refused before any change is made: other harnesses, a raw launch command, fm-control.sh exit and relaunch, managed approval failover, and the Codex approve-for-me and restricted modes.
  • Adds docs/t3code-backend.md and T3 Code sections in docs/verification/runtime-backends.md, including the 2026-10-17 live run on stable T3 v0.1.0. Updates the configuration, architecture, scripts, and skill docs. Adds tests that run against a fake T3 server (fm-backend-t3code, fm-t3-mcp, fm-watch-inbox-meta), registered in bin/fm-test-run.sh's portable lanes, plus opt-in live e2e tests. Also raises two too-short timing bounds in existing tests (fm-watcher-lock, fm-remote-secondmate-lifecycle-e2e).

🤖 Generated with Claude Code

Risk Assessment

⚠️ Medium: A large, experimental, explicit-only backend touches many default-path scripts, but every behavior change I traced is gated on backend=t3code. The newest approval-refusal commits are correct and backed by behavior tests, so the remaining risk comes from the size of the surface rather than any defect I found.

Testing

I stood up a disposable stable T3 v0.1.0 server (with telemetry off) and marked lab homes. Against them I drove the T3 path end to end on HEAD 75f85506: - sign-in, status and the live transport guard; - a Claude scout spawn whose turn finished done, with state, crew-state and peek read from T3; - a steer into a long tool call; while it ran, approval failover refused, left config unchanged and did not stop the run or its process; - interrupt cancelled the run and killed the tool process; exit and relaunch were refused; - Codex approve-for-me, Codex restricted and Claude auto spawns each refused before any thread, lease, record or temp dir existed; - an explicit Codex bypass spawn launched (its turn then hit the machine's Codex usage limit, which is outside Firstmate); - failover on a live Codex T3 task refused; - teardown archived every thread (archived:true, no active run) and returned clean slots; - the Claude pull-request-tools live guard passed with Claude Code 2.1.310. For homes without config/backend=t3code, I built tmux 3.5a inside the lab and ran a home holding a working T3 credential through spawn, send, interrupt, crew-state, teardown and approval failover. I ran it on base 6c87d7bb and on HEAD. After normalizing paths, generation stamps and pids, the two transcripts were identical, and no T3 thread was ever created. The targeted failover suite and the fake-server T3 suite both exited 0, including the new refusal and bypass cases. They are automated fake-server suites, not live runs, so that scenario is recorded as untested; the behavior they cover was driven live in the scenarios above. The real-Herdr e2e suites could not run. All lab servers, sockets and directories were removed and the worktree is clean. This is CLI-only, so there are no visual artifacts.

  • Live validation: ✅ go - 11 of 13 scenarios driven live against the product
Scenario Result Live Evidence
The captain signs Firstmate in to stable T3 v0.1.0 at full access; status reports server 0.1.0 with telemetry off, and the live transport guard passes ✅ pass live 01-t3-v0.1.0-signin-status-live-guard.txt
A Claude scout dispatched on config/backend=t3code becomes a T3 thread in a Treehouse worktree, finishes its turn with a done line, and crew-state and peek read it from T3 ✅ pass live 02-t3-claude-scout-spawn.txt, 03-t3-claude-scout-done-state-peek.txt
fm-send steers the T3 worker into a new turn, and fm-control interrupt cancels the running turn and its tool process ✅ pass live 04-steer-failover-midrun-interrupt-exit-relaunch.txt
fm-control exit and relaunch on a T3 task are refused with a reason, and the thread is left unchanged (native exit and relaunch stay a follow-up) ✅ pass live 04-steer-failover-midrun-interrupt-exit-relaunch.txt
Adversarial: managed approval failover on a running Claude T3 task refuses, saves no setting, and does not stop the active run or its tool process ✅ pass live 04-steer-failover-midrun-interrupt-exit-relaunch.txt
Adversarial: managed approval failover on a live Codex T3 task refuses, naming config/codex-approval-mode=approve-for-me, and saves nothing ✅ pass live 09-t3-codex-task-approval-failover-refused.txt
Adversarial: a T3 spawn with codex-approval-mode=approve-for-me, codex-permission-mode=restricted, or claude-permission-mode=auto refuses, naming that exact setting, before any thread, lease, record o… ✅ pass live 05-t3-spawn-approval-posture-refusals.txt
A Codex T3 spawn with an explicit codex-approval-mode=bypass still launches and records approval_mode=bypass ✅ pass live 06-t3-codex-scout-explicit-bypass-launches.txt
Teardown archives every T3 thread (archived:true, no active run), returns the Treehouse slots clean, and removes the task records ✅ pass live 07-t3-teardown-archives-threads-returns-slots.txt
Claude pull-request tools (link, list, unlink) work in a T3 0.1.0 Claude thread ✅ pass live 11-claude-pr-tools-live-guard.txt
Adversarial: a home without config/backend, even holding a working T3 credential, never selects T3; its tmux spawn, send, interrupt, crew-state, teardown and approval failover give identical output on… ✅ pass live 08-non-t3-home-tmux-lifecycle-and-failover-base-vs-head.txt
The targeted fake-server T3 suite passes, including the new Codex approve-for-me and restricted refusals and the bypass launch, and the failover suite passes, including the t3code refusals ⏸️ untested no The prior payload recorded this as an automated fake-server suite run (live=false), not a run against the live product, so it did not establish a live result. The suites' exit-0 log is kept as the 10-…
A non-T3 home on a real Herdr lab session keeps main's lifecycle (Herdr control smoke and workspace-per-home e2e) ⏸️ untested no I ran tests/fm-control-herdr-smoke.test.sh and tests/fm-backend-herdr-workspace-per-home-e2e.test.sh through bin/fm-herdr-lab.sh. The helper refused with 'fleet-state tripwire requires exactly one run…
Evidence: T3 v0.1.0 sign-in, status and live transport guard

Source: T3 v0.1.0 sign-in, status and live transport guard

## commit under test: 75f85506 (base 6c87d7bb); T3 server: t3 v0.1.0 (cached npx t3@0.1.0 native binary) serve --host 127.0.0.1 --port <port> --no-browser --base-dir <lab>/t3, T3CODE_TELEMETRY_ENABLED=false
## lab home minted with bin/fm-lab-home.sh create; FM_HOME=<lab>/home; config/backend=t3code
$ FM_HOME=<lab>/home bin/fm-t3-mcp.mjs login --access full-access --url http://127.0.0.1:<port> --t3 <lab>/bin/t3 --base-dir <lab>/t3   (token never printed)
{"ok":true,"tokenFile":"<lab>~/t3code-token","origin":"http://127.0.0.1:<port>","access":"full-access","scope":"orchestration:read orchestration:operate settings:write source-control:write","expiresAt":"2026-11-23T11:10:33.890Z","environmentId":"5b0af9f8-5469-485f-96d5-3fdd0ecfc728","serverVersion":"0.1.0"}
exit=0
token file mode: -rw-------
$ FM_HOME=<lab>/home bin/fm-t3-mcp.mjs status
{"ok":true,"origin":"http://127.0.0.1:<port>","access":"full-access","expiresAt":"2026-11-23T11:10:33.890Z","daysLeft":30,"environmentId":"5b0af9f8-5469-485f-96d5-3fdd0ecfc728","serverVersion":"0.1.0","recordedServerVersion":"0.1.0","telemetry":"off"}
exit=0
$ FM_T3CODE_LIVE_E2E=1 FM_CONFIG_OVERRIDE=<lab>~ bin/fm-test-run.sh tests/fm-backend-t3code-live-e2e.test.sh
FM_TEST_BEGIN 2026-10-24T11:10:34Z tests/fm-backend-t3code-live-e2e.test.sh family=live-harness-optin expected_gate_skip=live-capability
ok - t3code live transport: T3 0.1.0 environment 5b0af9f8-5469-485f-96d5-3fdd0ecfc728 passes the gate (telemetry=off)
FM_TEST_END 2026-10-24T11:10:34Z tests/fm-backend-t3code-live-e2e.test.sh exit=0 duration_ms=687 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=757
FM_TEST_SUMMARY_FAMILY family=live-harness-optin count=1 duration_ms=687 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-backend-t3code-live-e2e.test.sh duration_ms=687
exit=0
Evidence: Claude scout spawn on T3 and task record

Source: Claude scout spawn on T3 and task record

$ FM_HOME=<lab>/home TREEHOUSE_ROOT=<lab>/pool bin/fm-spawn.sh lab1 <lab>~/labproj --scout --harness claude --model claude-haiku-5-5 --effort low
fm-gate-refuse: gate agent lifecycle permitted only against lab home <lab>/home

🌳 Setting up worktree...
🌳 Leased worktree at <lab>/pool/.treehouse/labproj-4d0f63/1/labproj. Run 'treehouse return <lab>/pool/.treehouse/labproj-4d0f63/1/labproj' to release it.
spawned lab1 harness=claude kind=scout window=fm-lab1 worktree=<lab>/pool/.treehouse/labproj-4d0f63/1/labproj
exit=0
$ cat <lab>~/lab1.meta
window=fm-lab1
endpoint_task_id=lab1
worktree=<lab>/pool/.treehouse/labproj-4d0f63/1/labproj
project=<lab>~/labproj
harness=claude
approval_mode=bypass
kind=scout
tasktmp=/tmp/fm-lab1
model=claude-haiku-5-5
effort=low
busy_gen=g1792840255.22227.9470
spawn_gen=s1792840256.20579.5053
backend=t3code
t3_thread_id=mcp:c0c22c46-4a57-4b73-ac95-a397eadb9de9
t3_project_id=mcp:43feb14f-0da8-4069-902b-1304443b64d9
exit=0
Evidence: Scout done: thread state, crew-state, peek

Source: Scout done: thread state, crew-state, peek

$ bin/fm-t3-mcp.mjs state --thread <thread>
{"ok":true,"threadId":"mcp:c0c22c46-4a57-4b73-ac95-a397eadb9de9","exists":true,"archived":false,"status":"completed","activeRunId":null,"pendingRequestCount":0,"worktreePath":"<lab>/pool/.treehouse/labproj-4d0f63/1/labproj","turnAt":"2026-10-24T11:11:23.467Z"}
exit=0
$ cat <lab>~/lab1.status
done [at=1792840266]: labproj README first line is '# labproj README first line'; report written, captain-hold inventory empty (firstmate to run complete --none)
exit=0
$ FM_HOME=<lab>/home bin/fm-crew-state.sh lab1
state: done · source: status-log · labproj README first line is '# labproj README first line'; report written, captain-hold inventory empty (firstmate to run complete --none)
exit=0
$ FM_HOME=<lab>/home bin/fm-peek.sh lab1 25
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 task(s) in flight, but no watcher has a fresh beacon (last beat: never, grace 300s).
●  Trust the emitted supervision protocol for this harness; do not use shell & for watcher repair.
●  This is a supervision warning only; the guarded operation WILL still run.
●  watcher supervision needs Stop-owned automatic recovery; inspect the hook registration and startup status before ending the turn.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[user_message/completed] ⁣FIRSTMATE_OP: v1 launch-brief: # Current worker role contract You are a crewmate: an autonomous worker agent managed by firstmate. This section establishes your current identity before every project or task instruction below and supersedes any conflicting role identity in those instructions. Do the assigned work yourself and report only to firstmate; do not adopt a firstmate or secondmate supervisor identity, delegate the task, run fleet supervision, or address the captain. Your steering inbox is `<lab>~/lab1.inbox`; this exact path belo
[reasoning/completed] I need to run head on README.md in the worktree to check the first line, then write up the status report, while also checking the inbox and verifying the captain-hold-lifecycle completion gate.
[command_execution/completed] $ head -n 1 '<lab>/pool/.treehouse/labproj-4d0f63/1/labproj/README.md'; echo "---"; date +%s; find '<lab>~/lab1.inbox' -maxdepth 1 -name '*.msg' 2>/dev/null | sort -V; ls '<code>/.agents/skills/captain-hold-lifecycle/' 2>&1 # labproj README first line --- 1792840266 SKILL.md
[reasoning/completed] The inbox appears empty, so nothing new there. The SKILL.md file exists though, so I should read it and follow its completion gate.
[dynamic_tool/completed] { "toolName": "Read", "input": { "file_path": "<code>/.agents/skills/captain-hold-lifecycle/SKILL.md" }, "output": { "type": "text", "file": { "filePath": "<code>/.agents/skills/captain-hold-lifecycle/SKILL.md", "content": "---\nname: captain-hold-lifecycle\ndescription: >-\n Load before treating an investigation, scout report, structured review, or Lavish review as complete, before ending a visual review that exposed a capta
[reasoning/completed] This is a scout task, so there's no captain decision to surface — I should run the completion gate with `--none` since the report doesn't produce any captain-owned question, but I need to check the gate lives in the originating work's authoritative FM_HOME rather than mutating anything as a worker. Before running the completion gate with `--none`, I want to confirm the script exists and check its `--help` output first, since that's read-only and won't risk writing to the backlog.
[command_execution/completed] $ ls -la '<code>/bin/fm-captain-hold.sh' 2>&1; '<code>/bin/fm-captain-hold.sh' --help 2>&1 | head -n 40 -rwxr-xr-x@ 1 disco staff 97480 Oct 24 07:59 <code>/bin/fm-captain-hold.sh fm-captain-hold.sh - deterministic mechanics for tasks held for the captain. The semantic policy is owned once by .agents/skills/captain-hold-lifecycle/SKILL.md. This script never read
[reasoning/completed] As a scout with no captain decisions to make, I don't have access to my origin id or the authoritative firstmate home, so I can't safely run the completion gate myself — I'll just note in my report that no captain-owned questions were found, meaning the inventory for that step is effectively empty.
[command_execution/completed] $ mkdir -p '<lab>~/lab1' && cat > '<lab>~/lab1/report.md' <<'EOF' # lab1 scout report: first line of labproj README ## What I did - Ran `head -n 1 <lab>/pool/.treehouse/labproj-4d0f63/1/labproj/README.md` in the worktree. - Checked the firstmate instruction inbox (`<lab>~/lab1.inbox`): no `*.msg` files, nothing to acknowledge. - Read the captain-hold lifecycle skill (`.agents/skills/captain-hold-lifecycle/SKILL.md`) and the `bin/fm-captain-hold.sh --help
[assistant_message/completed] The first line of labproj's `README.md` is `# labproj README first line`. I wrote the report to `<lab>~/lab1/report.md` and appended a `done` line to the status file. - **Inbox:** empty, so nothing to acknowledge. - **Captain-hold gate:** no captain-owned questions came out of this scout, so the inventory is empty. I did not run `bin/fm-captain-hold.sh complete --none` myself. It has to run in the originating home with the origin id, which I don't have, and it writes to the backlog. The report asks firstmate to run it. - **Code:** not
[checkpoint/completed] []
t3code: status=completed run=none
exit=0
Evidence: Steer, failover refused mid-run, interrupt, exit and relaunch refused

Source: Steer, failover refused mid-run, interrupt, exit and relaunch refused

$ FM_HOME=<lab>/home bin/fm-send.sh lab1 '<steer: run python3 -c "import time; time.sleep(173)" as one foreground tool call>'
fm-gate-refuse: gate agent lifecycle permitted only against lab home <lab>/home
WARNING: watcher still down (same stale episode; last beat: never, grace 300s) - full banner already printed this episode.
exit=0
running python3 time.sleep(173) tool-call processes after steer: (filter matched argv[0]=python3 only and missed macOS framework Python; see the corrected process proof below)
$ bin/fm-t3-mcp.mjs state --thread <thread>   # before failover
{"ok":true,"threadId":"mcp:c0c22c46-4a57-4b73-ac95-a397eadb9de9","exists":true,"archived":false,"status":"running","activeRunId":"run:thread:mcp%3Ac0c22c46-4a57-4b73-ac95-a397eadb9de9:ordinal:2","pendingRequestCount":0,"worktreePath":"<lab>/pool/.treehouse/labproj-4d0f63/1/labproj","turnAt":"2026-10-24T11:11:49.796Z"}
exit=0
$ ls -A <lab>~   # before failover
backend
t3code-token
$ FM_HOME=<lab>/home bin/fm-approval-failover.sh apply lab1   # mid-run, harness=claude backend=t3code
fm-gate-refuse: gate agent lifecycle permitted only against lab home <lab>/home
error: backend=t3code already runs claude at T3's full-access runtime mode and cannot honor config/claude-permission-mode=auto; approve the pending request in T3 Code itself or choose another backend; nothing changed
exit=1
$ ls -A <lab>~   # after failover
backend
t3code-token
running tool-call processes 3s after refused failover: (same filter miss; see corrected proof below)
$ bin/fm-t3-mcp.mjs state --thread <thread>   # after failover: same active run
{"ok":true,"threadId":"mcp:c0c22c46-4a57-4b73-ac95-a397eadb9de9","exists":true,"archived":false,"status":"running","activeRunId":"run:thread:mcp%3Ac0c22c46-4a57-4b73-ac95-a397eadb9de9:ordinal:2","pendingRequestCount":0,"worktreePath":"<lab>/pool/.treehouse/labproj-4d0f63/1/labproj","turnAt":"2026-10-24T11:11:49.796Z"}
exit=0
# corrected process proof: the worker's tool call (macOS runs python3 as .../Python.app/Contents/MacOS/Python)
$ ps -o pid,lstart,command -p <pid>   # date now: Sat Oct 24 11:13:43 2026 UTC; failover was called at ~11:13 UTC
  PID STARTED                      COMMAND
62028 Sat Oct 24 08:11:56 2026     /opt/homebrew/Cellar/python@3.15/3.15.0_1/Frameworks/Python.framework/Versions/3.15/Resources/Python.app/Contents/MacOS/Pytho
(lstart is local time, UTC-3)
$ bin/fm-t3-mcp.mjs state --thread <thread>   # still the same active run
{"ok":true,"threadId":"mcp:c0c22c46-4a57-4b73-ac95-a397eadb9de9","exists":true,"archived":false,"status":"running","activeRunId":"run:thread:mcp%3Ac0c22c46-4a57-4b73-ac95-a397eadb9de9:ordinal:2","pendingRequestCount":0,"worktreePath":"<lab>/pool/.treehouse/labproj-4d0f63/1/labproj","turnAt":"2026-10-24T11:11:49.796Z"}
exit=0
$ FM_HOME=<lab>/home bin/fm-control.sh lab1 interrupt
fm-gate-refuse: gate agent lifecycle permitted only against lab home <lab>/home
interrupt-delivered lab1 harness=claude backend=t3code verified=agent-alive cancel=confirmed
exit=0
$ ps -p <tool-call pid>   # after interrupt
pid 62028 gone
$ bin/fm-t3-mcp.mjs state --thread <thread>   # after interrupt
{"ok":true,"threadId":"mcp:c0c22c46-4a57-4b73-ac95-a397eadb9de9","exists":true,"archived":false,"status":"interrupted","activeRunId":null,"pendingRequestCount":0,"worktreePath":"<lab>/pool/.treehouse/labproj-4d0f63/1/labproj","turnAt":"2026-10-24T11:13:52.331Z"}
exit=0
$ FM_HOME=<lab>/home bin/fm-control.sh lab1 exit
fm-gate-refuse: gate agent lifecycle permitted only against lab home <lab>/home
error: task lab1 runs on the t3code backend, whose T3 Orchestrator V2 tools have no session stop, so 'exit' cannot stop its agent; 'interrupt' ends the running turn and teardown archives the thread
exit=1
$ FM_HOME=<lab>/home bin/fm-control.sh lab1 relaunch
fm-gate-refuse: gate agent lifecycle permitted only against lab home <lab>/home
error: task lab1 runs on the t3code backend, where a thread keeps its conversation and a new turn or provider change continues the same agent, so no fresh replacement can be launched into its endpoint; 'interrupt' ends its turn, and a fresh task needs a teardown and a new dispatch
exit=1
$ bin/fm-t3-mcp.mjs state --thread <thread>   # thread unchanged by refused exit/relaunch
{"ok":true,"threadId":"mcp:c0c22c46-4a57-4b73-ac95-a397eadb9de9","exists":true,"archived":false,"status":"interrupted","activeRunId":null,"pendingRequestCount":0,"worktreePath":"<lab>/pool/.treehouse/labproj-4d0f63/1/labproj","turnAt":"2026-10-24T11:13:52.331Z"}
exit=0
Evidence: Spawn posture refusals before any mutation (Codex approve-for-me and restricted, Claude auto)

Source: Spawn posture refusals before any mutation (Codex approve-for-me and restricted, Claude auto)

before: T3 threads (all projects, archived included): 1 -> [["fm-labproj", [["interrupted", false]]]]
treehouse pool before: [slot 1 leased lab1)] 

$ echo approve-for-me > <lab>~/codex-approval-mode && FM_HOME=<lab>/home TREEHOUSE_ROOT=<lab>/pool bin/fm-spawn.sh lab2 <lab>~/labproj --scout --harness codex --model gpt-6-luna --effort low
fm-gate-refuse: gate agent lifecycle permitted only against lab home <lab>/home
WARNING: watcher still down (same stale episode; last beat: never, grace 300s) - full banner already printed this episode.
error: backend=t3code runs codex at T3's full-access runtime mode and cannot honor config/codex-approval-mode=approve-for-me; remove that file or choose another backend
exit=1
lab2 state files: []  /tmp/fm-lab2 dirs: 0  treehouse pool: [slot 1 leased lab1)]   config/codex-approval-mode still holds: approve-for-me
after: T3 threads (all projects, archived included): 1 -> [["fm-labproj", [["interrupted", false]]]]

$ echo restricted > <lab>~/codex-permission-mode && FM_HOME=<lab>/home TREEHOUSE_ROOT=<lab>/pool bin/fm-spawn.sh lab2 <lab>~/labproj --scout --harness codex --model gpt-6-luna --effort low
fm-gate-refuse: gate agent lifecycle permitted only against lab home <lab>/home
WARNING: watcher still down (same stale episode; last beat: never, grace 300s) - full banner already printed this episode.
error: backend=t3code runs codex at T3's full-access runtime mode and cannot honor config/codex-permission-mode=restricted; remove that file or choose another backend
exit=1
lab2 state files: []  /tmp/fm-lab2 dirs: 0  treehouse pool: [slot 1 leased lab1)]   config/codex-permission-mode still holds: restricted
after: T3 threads (all projects, archived included): 1 -> [["fm-labproj", [["interrupted", false]]]]

$ echo auto > <lab>~/claude-permission-mode && FM_HOME=<lab>/home TREEHOUSE_ROOT=<lab>/pool bin/fm-spawn.sh lab2 <lab>~/labproj --scout --harness claude --model claude-haiku-5-5 --effort low
fm-gate-refuse: gate agent lifecycle permitted only against lab home <lab>/home
WARNING: watcher still down (same stale episode; last beat: never, grace 300s) - full banner already printed this episode.
error: backend=t3code runs claude at T3's full-access runtime mode and cannot honor config/claude-permission-mode=auto; remove that file or choose another backend
exit=1
lab2 state files: []  /tmp/fm-lab2 dirs: 0  treehouse pool: [slot 1 leased lab1)]   config/claude-permission-mode still holds: auto
after: T3 threads (all projects, archived included): 1 -> [["fm-labproj", [["interrupted", false]]]]
Evidence: Codex scout with explicit bypass launches on T3

Source: Codex scout with explicit bypass launches on T3

$ echo bypass > <lab>~/codex-approval-mode && FM_HOME=<lab>/home TREEHOUSE_ROOT=<lab>/pool bin/fm-spawn.sh lab3 <lab>~/labproj --scout --harness codex --model gpt-6-luna --effort low
fm-gate-refuse: gate agent lifecycle permitted only against lab home <lab>/home
WARNING: watcher still down (same stale episode; last beat: never, grace 300s) - full banner already printed this episode.
warning: could not confirm that ~/.codex/config.toml trusts <lab>~/labproj; Codex ignores an untrusted project's .codex/config.toml, so this T3 Codex thread would run without FM_TASK_ID, FM_TASK_INBOX, GOTMPDIR, and the core.hooksPath push guard Firstmate writes there; trust the project in the Codex configuration T3 uses ([projects."<main checkout>"] trust_level = "trusted", see docs/t3code-backend.md#setup)

🌳 Setting up worktree...
🌳 Leased worktree at <lab>/pool/.treehouse/labproj-4d0f63/2/labproj. Run 'treehouse return <lab>/pool/.treehouse/labproj-4d0f63/2/labproj' to release it.
spawned lab3 harness=codex kind=scout window=fm-lab3 worktree=<lab>/pool/.treehouse/labproj-4d0f63/2/labproj
exit=0
$ grep -E '^(harness|approval_mode|backend|model|t3_thread_id)=' <lab>~/lab3.meta
harness=codex
approval_mode=bypass
model=gpt-6-luna
backend=t3code
t3_thread_id=mcp:322fdf10-9dd6-4160-9df3-5076c531077f
exit=0
$ bin/fm-t3-mcp.mjs state --thread <thread>   # after the codex turn
{"ok":true,"threadId":"mcp:322fdf10-9dd6-4160-9df3-5076c531077f","exists":true,"archived":false,"status":"failed","activeRunId":null,"pendingRequestCount":0,"worktreePath":"<lab>/pool/.treehouse/labproj-4d0f63/2/labproj","turnAt":"2026-10-24T11:15:14.988Z"}
exit=0
$ FM_HOME=<lab>/home bin/fm-crew-state.sh lab3
state: unknown · source: pane · harness state unavailable (unknown t3code-native)
exit=0
$ FM_HOME=<lab>/home bin/fm-peek.sh lab3 30   # why the turn failed (supervision banner lines omitted)
WARNING: watcher still down (same stale episode; last beat: never, grace 300s) - full banner already printed this episode.
[user_message/completed] ⁣FIRSTMATE_OP: v1 launch-brief: # Current worker role contract You are a crewmate: an autonomous worker agent managed by firstmate. This section establishes your current identity before every project or task instruction below and super
[error/failed] You’ve hit your usage limit. Upgrade to Pro (https://chatgpt.com/explore/pro), visit https://chatgpt.com/settings/usage to purchase more credits or try again at 9:39 AM.
t3code: status=failed run=none
# The spawn under test (bypass accepted, approval_mode=bypass recorded, thread launched at full-access, launch brief delivered as the first message) succeeded; the model turn then failed on the machine's Codex account usage limit, an environment quota outside Firstmate.
Evidence: Teardown archives threads and returns slots

Source: Teardown archives threads and returns slots

before: T3 threads: 2 -> [["fm-labproj", [["mcp:322fdf10", "failed", "unarchived"], ["mcp:c0c22c46", "interrupted", "unarchived"]]]]
treehouse pool before:
  slot 1 leased lab1)
  slot 2 leased lab3)
state files before: lab1.busy-gen lab1.busy-state lab1.git-hooks lab1.inbox lab1.meta lab1.status lab1.turn-ended lab3.git-hooks lab3.meta 
$ FM_HOME=<lab>/home TREEHOUSE_ROOT=<lab>/pool bin/fm-teardown.sh lab1 --force
fm-gate-refuse: gate agent lifecycle permitted only against lab home <lab>/home
WARNING: watcher still down (same stale episode; last beat: never, grace 300s) - full banner already printed this episode.

🌳 Worktree returned to pool.
teardown lab1 complete (window mcp:c0c22c46-4a57-4b73-ac95-a397eadb9de9, worktree <lab>/pool/.treehouse/labproj-4d0f63/1/labproj)
Backlog: lab1 just finished (this home keeps no markdown backlog at <lab>~/backlog.md). Update <lab>~/backlog.md - move lab1 to Done, keep Done to the 10 most recent, then re-scan Queued and dispatch only work whose blockers are gone and date is due.
exit=0
$ FM_HOME=<lab>/home TREEHOUSE_ROOT=<lab>/pool bin/fm-teardown.sh lab3 --force
fm-gate-refuse: gate agent lifecycle permitted only against lab home <lab>/home
WARNING: watcher still down (same stale episode; last beat: never, grace 300s) - full banner already printed this episode.
teardown: reaping leaked worktree process(es) for lab3: 75974

🌳 Worktree returned to pool.
teardown lab3 complete (window mcp:322fdf10-9dd6-4160-9df3-5076c531077f, worktree <lab>/pool/.treehouse/labproj-4d0f63/2/labproj)
Backlog: lab3 just finished (this home keeps no markdown backlog at <lab>~/backlog.md). Update <lab>~/backlog.md - move lab3 to Done, keep Done to the 10 most recent, then re-scan Queued and dispatch only work whose blockers are gone and date is due.
exit=0
after: T3 threads: 0 -> [["fm-labproj", []]]
treehouse pool after:
  slot 1 available 
  slot 2 available 
state files after: []
CLAUDE.local.md / .codex left in slots: 0
slot git status: ||
$ bin/fm-t3-mcp.mjs state --thread mcp:c0c22c46-4a57-4b73-ac95-a397eadb9de9   # direct read after teardown
{"ok":true,"threadId":"mcp:c0c22c46-4a57-4b73-ac95-a397eadb9de9","exists":true,"archived":true,"status":"interrupted","activeRunId":null,"pendingRequestCount":0,"worktreePath":"<lab>/pool/.treehouse/labproj-4d0f63/1/labproj","turnAt":"2026-10-24T11:13:52.331Z"}
exit=0
$ bin/fm-t3-mcp.mjs state --thread mcp:322fdf10-9dd6-4160-9df3-5076c531077f   # direct read after teardown
{"ok":true,"threadId":"mcp:322fdf10-9dd6-4160-9df3-5076c531077f","exists":true,"archived":true,"status":"failed","activeRunId":null,"pendingRequestCount":0,"worktreePath":"<lab>/pool/.treehouse/labproj-4d0f63/2/labproj","turnAt":"2026-10-24T11:15:14.988Z"}
exit=0
# the project listing above omits archived threads; the direct reads show each thread archived:true with no active run
Evidence: Failover refused on a live Codex T3 task

Source: Failover refused on a live Codex T3 task

$ FM_HOME=<lab>/home TREEHOUSE_ROOT=<lab>/pool bin/fm-spawn.sh lab4 <lab>~/labproj --scout --harness codex --model gpt-6-luna --effort low   # no approval file: default bypass
fm-gate-refuse: gate agent lifecycle permitted only against lab home <lab>/home
warning: could not confirm that ~/.codex/config.toml trusts <lab>~/labproj; Codex ignores an untrusted project's .codex/config.toml, so this T3 Codex thread would run without FM_TASK_ID, FM_TASK_INBOX, GOTMPDIR, and the core.hooksPath push guard Firstmate writes there; trust the project in the Codex configuration T3 uses ([projects."<main checkout>"] trust_level = "trusted", see docs/t3code-backend.md#setup)

🌳 Setting up worktree...
🌳 Leased worktree at <lab>/pool/.treehouse/labproj-4d0f63/1/labproj. Run 'treehouse return <lab>/pool/.treehouse/labproj-4d0f63/1/labproj' to release it.
spawned lab4 harness=codex kind=scout window=fm-lab4 worktree=<lab>/pool/.treehouse/labproj-4d0f63/1/labproj
exit=0
$ grep -E '^(harness|approval_mode|backend)=' <lab>~/lab4.meta
harness=codex
approval_mode=bypass
backend=t3code
$ ls -A <lab>~   # before failover
backend
t3code-token
$ bin/fm-t3-mcp.mjs state --thread <thread>   # before failover
{"ok":true,"threadId":"mcp:34103747-1b9f-468f-be58-b5ecf3d9d927","exists":true,"archived":false,"status":"running","activeRunId":"run:thread:mcp%3A34103747-1b9f-468f-be58-b5ecf3d9d927:ordinal:1","pendingRequestCount":0,"worktreePath":"<lab>/pool/.treehouse/labproj-4d0f63/1/labproj","turnAt":"2026-10-24T11:23:32.514Z"}
exit=0
$ FM_HOME=<lab>/home bin/fm-approval-failover.sh apply lab4
fm-gate-refuse: gate agent lifecycle permitted only against lab home <lab>/home
error: backend=t3code already runs codex at T3's full-access runtime mode and cannot honor config/codex-approval-mode=approve-for-me; approve the pending request in T3 Code itself or choose another backend; nothing changed
exit=1
$ ls -A <lab>~   # after failover
backend
t3code-token
$ bin/fm-t3-mcp.mjs state --thread <thread>   # after failover: not interrupted or archived by it
{"ok":true,"threadId":"mcp:34103747-1b9f-468f-be58-b5ecf3d9d927","exists":true,"archived":false,"status":"running","activeRunId":"run:thread:mcp%3A34103747-1b9f-468f-be58-b5ecf3d9d927:ordinal:1","pendingRequestCount":0,"worktreePath":"<lab>/pool/.treehouse/labproj-4d0f63/1/labproj","turnAt":"2026-10-24T11:23:32.514Z"}
exit=0
$ FM_HOME=<lab>/home TREEHOUSE_ROOT=<lab>/pool bin/fm-teardown.sh lab4 --force
fm-gate-refuse: gate agent lifecycle permitted only against lab home <lab>/home
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 task(s) in flight, but no watcher has a fresh beacon (last beat: never, grace 300s).
●  Trust the emitted supervision protocol for this harness; do not use shell & for watcher repair.
●  This is a supervision warning only; the guarded operation WILL still run.
●  watcher supervision needs Stop-owned automatic recovery; inspect the hook registration and startup status before ending the turn.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
teardown: reaping leaked worktree process(es) for lab4: 7309 8868

🌳 Worktree returned to pool.
teardown lab4 complete (window mcp:34103747-1b9f-468f-be58-b5ecf3d9d927, worktree <lab>/pool/.treehouse/labproj-4d0f63/1/labproj)
Backlog: lab4 just finished (this home keeps no markdown backlog at <lab>~/backlog.md). Update <lab>~/backlog.md - move lab4 to Done, keep Done to the 10 most recent, then re-scan Queued and dispatch only work whose blockers are gone and date is due.
exit=0
$ bin/fm-t3-mcp.mjs state --thread <thread>   # after teardown
{"ok":true,"threadId":"mcp:34103747-1b9f-468f-be58-b5ecf3d9d927","exists":true,"archived":true,"status":"failed","activeRunId":null,"pendingRequestCount":0,"worktreePath":"<lab>/pool/.treehouse/labproj-4d0f63/1/labproj","turnAt":"2026-10-24T11:23:35.795Z"}
exit=0
Evidence: Claude PR-tools live guard on T3 0.1.0

Source: Claude PR-tools live guard on T3 0.1.0

$ FM_T3CODE_PR_TOOLS_LIVE=1 FM_CONFIG_OVERRIDE=<lab>~ bin/fm-test-run.sh tests/fm-backend-t3code-pr-tools-live-e2e.test.sh
FM_TEST_BEGIN 2026-10-24T11:23:48Z tests/fm-backend-t3code-pr-tools-live-e2e.test.sh family=live-harness-optin expected_gate_skip=live-capability
ok - t3code live: T3 0.1.0 with 2.1.310 (Claude Code) (claudeAgent claude-haiku-5-5) ran link_pull_request, list_thread_pull_requests, and unlink_pull_request in a Claude thread without a crash
FM_TEST_END 2026-10-24T11:24:03Z tests/fm-backend-t3code-pr-tools-live-e2e.test.sh exit=0 duration_ms=15620 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=15700
FM_TEST_SUMMARY_FAMILY family=live-harness-optin count=1 duration_ms=15620 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-backend-t3code-pr-tools-live-e2e.test.sh duration_ms=15620
exit=0
Evidence: Real-Herdr e2e refused by the lab tripwire (no running default session)

Source: Real-Herdr e2e refused by the lab tripwire (no running default session)

FM_TEST_BEGIN 2026-10-24T11:08:03Z tests/fm-control-herdr-smoke.test.sh family=real-herdr-gated expected_gate_skip=herdr
fm-herdr-lab: fleet-state tripwire requires exactly one running default session
not ok - could not prepare isolated Herdr lab session
FM_TEST_END 2026-10-24T11:08:04Z tests/fm-control-herdr-smoke.test.sh exit=1 duration_ms=882 gate_skip=false
FM_TEST_BEGIN 2026-10-24T11:08:04Z tests/fm-backend-herdr-workspace-per-home-e2e.test.sh family=real-herdr-gated expected_gate_skip=herdr
fm-herdr-lab: fleet-state tripwire requires exactly one running default session
not ok - could not prepare isolated Herdr lab session
fm-herdr-lab: missing fleet-state tripwire for 'fm-lab-herdr-e2e-19617'; refusing destructive calls
fm-herdr-lab: missing fleet-state tripwire for 'fm-lab-herdr-e2e-19617'; refusing destructive calls
FM_TEST_END 2026-10-24T11:08:04Z tests/fm-backend-herdr-workspace-per-home-e2e.test.sh exit=1 duration_ms=67 gate_skip=false
FM_TEST_SUMMARY total=2 failed=2 skipped_gate=0 duration_ms=1068
FM_TEST_SUMMARY_FAMILY family=real-herdr-gated count=2 duration_ms=949 failed=2
FM_TEST_SLOWEST rank=1 script=tests/fm-control-herdr-smoke.test.sh duration_ms=882
FM_TEST_SLOWEST rank=2 script=tests/fm-backend-herdr-workspace-per-home-e2e.test.sh duration_ms=67
exit=1

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - medium risk

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 11 of 13 scenarios driven live against the product
Scenario Result Live Evidence
The captain signs Firstmate in to stable T3 v0.1.0 at full access; status reports server 0.1.0 with telemetry off, and the live transport guard passes ✅ pass live 01-t3-v0.1.0-signin-status-live-guard.txt
A Claude scout dispatched on config/backend=t3code becomes a T3 thread in a Treehouse worktree, finishes its turn with a done line, and crew-state and peek read it from T3 ✅ pass live 02-t3-claude-scout-spawn.txt, 03-t3-claude-scout-done-state-peek.txt
fm-send steers the T3 worker into a new turn, and fm-control interrupt cancels the running turn and its tool process ✅ pass live 04-steer-failover-midrun-interrupt-exit-relaunch.txt
fm-control exit and relaunch on a T3 task are refused with a reason, and the thread is left unchanged (native exit and relaunch stay a follow-up) ✅ pass live 04-steer-failover-midrun-interrupt-exit-relaunch.txt
Adversarial: managed approval failover on a running Claude T3 task refuses, saves no setting, and does not stop the active run or its tool process ✅ pass live 04-steer-failover-midrun-interrupt-exit-relaunch.txt
Adversarial: managed approval failover on a live Codex T3 task refuses, naming config/codex-approval-mode=approve-for-me, and saves nothing ✅ pass live 09-t3-codex-task-approval-failover-refused.txt
Adversarial: a T3 spawn with codex-approval-mode=approve-for-me, codex-permission-mode=restricted, or claude-permission-mode=auto refuses, naming that exact setting, before any thread, lease, record o… ✅ pass live 05-t3-spawn-approval-posture-refusals.txt
A Codex T3 spawn with an explicit codex-approval-mode=bypass still launches and records approval_mode=bypass ✅ pass live 06-t3-codex-scout-explicit-bypass-launches.txt
Teardown archives every T3 thread (archived:true, no active run), returns the Treehouse slots clean, and removes the task records ✅ pass live 07-t3-teardown-archives-threads-returns-slots.txt
Claude pull-request tools (link, list, unlink) work in a T3 0.1.0 Claude thread ✅ pass live 11-claude-pr-tools-live-guard.txt
Adversarial: a home without config/backend, even holding a working T3 credential, never selects T3; its tmux spawn, send, interrupt, crew-state, teardown and approval failover give identical output on… ✅ pass live 08-non-t3-home-tmux-lifecycle-and-failover-base-vs-head.txt
The targeted fake-server T3 suite passes, including the new Codex approve-for-me and restricted refusals and the bypass launch, and the failover suite passes, including the t3code refusals ⏸️ untested no The prior payload recorded this as an automated fake-server suite run (live=false), not a run against the live product, so it did not establish a live result. The suites' exit-0 log is kept as the 10-…
A non-T3 home on a real Herdr lab session keeps main's lifecycle (Herdr control smoke and workspace-per-home e2e) ⏸️ untested no I ran tests/fm-control-herdr-smoke.test.sh and tests/fm-backend-herdr-workspace-per-home-e2e.test.sh through bin/fm-herdr-lab.sh. The helper refused with 'fleet-state tripwire requires exactly one run…
  • Lab T3 server: cached npx t3@0.1.0 native binary, t3 serve --host 127.0.0.1 --port &lt;port&gt; --no-browser --base-dir &lt;lab&gt;/t3 with T3CODE_TELEMETRY_ENABLED=false; lab homes minted with bin/fm-lab-home.sh create
  • bin/fm-t3-mcp.mjs login --access full-access --url ... --t3 &lt;lab&gt;/bin/t3 --base-dir &lt;lab&gt;/t3 and bin/fm-t3-mcp.mjs status
  • FM_T3CODE_LIVE_E2E=1 FM_CONFIG_OVERRIDE=<lab>~ bin/fm-test-run.sh tests/fm-backend-t3code-live-e2e.test.sh
  • bin/fm-spawn.sh lab1 &lt;proj&gt; --scout --harness claude --model claude-haiku-5-5 --effort low on config/backend=t3code, then fm-t3-mcp.mjs state, fm-crew-state.sh, fm-peek.sh
  • bin/fm-send.sh lab1 &lt;steer into a 173 s python sleep tool call&gt;, then bin/fm-approval-failover.sh apply lab1 mid-run, then bin/fm-control.sh lab1 interrupt|exit|relaunch
  • bin/fm-spawn.sh lab2 ... with config/codex-approval-mode=approve-for-me, config/codex-permission-mode=restricted, config/claude-permission-mode=auto (read-only T3 thread probe and treehouse status before and after)
  • bin/fm-spawn.sh lab3 ... --harness codex with config/codex-approval-mode=bypass
  • bin/fm-spawn.sh lab4 ... --harness codex then bin/fm-approval-failover.sh apply lab4
  • bin/fm-teardown.sh lab1|lab3|lab4 --force plus a direct fm-t3-mcp.mjs state --thread read of each thread
  • Non-T3 home (no config/backend, working T3 credential) on a lab-built tmux 3.5a private socket: spawn 'cat -u', send, interrupt, crew-state, teardown, then failover on a claude-named stub; run on base 6c87d7bb (git archive) and on HEAD, then diffed after normalizing
  • FM_T3CODE_PR_TOOLS_LIVE=1 FM_CONFIG_OVERRIDE=<lab>~ bin/fm-test-run.sh tests/fm-backend-t3code-pr-tools-live-e2e.test.sh
  • bin/fm-test-run.sh tests/fm-approval-failover.test.sh tests/fm-backend-t3code.test.sh (both exit 0)
  • bin/fm-test-run.sh tests/fm-control-herdr-smoke.test.sh tests/fm-backend-herdr-workspace-per-home-e2e.test.sh (refused by the Herdr lab tripwire)
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @arthurcruzd for carrying #5596 forward, and thank you @bryceeppler for the original backend. Keeping his authorship intact and running a live test against stable T3 0.1.0 is exactly what was asked for.

What I checked on head 1ddb56b9 against main 45dd50a5:

  • Fixes #6904 is in the body, and the diff moves the backend onto T3's Orchestrator V2 /mcp over an OAuth mcp-client, which is the transport that issue asked for.
  • Explicit-only selection holds where I looked. t3code joins FM_BACKEND_KNOWN/FM_BACKEND_SPAWN but not fm_backend_detect, so only config/backend, FM_BACKEND, or --backend t3code can select it. Away-mode T3 discovery is gated on that explicit selection plus a non-empty config/t3code-token. The secondmate-liveness resume and kill paths, and the bootstrap respawn note, only change for backend=t3code. Your live row (a credential and a reachable server but no config/backend still routes to tmux) matches that.
  • There are no .github/workflows changes. The attestation binds this head, and live validation is go, 6 of 7, with the fake-server row honestly marked untested.
  • CI: everything is green except Behavior portable serial 2 in CI 39206516294, which was cancelled at the 30-minute cap (the same ceiling main hits, fix(pi): keep the Pi watcher armed after a successor or arm child dies #7255). I re-ran that one job.

Contract-class: cannot-tell for now (leaning opt-in). The selection gate is opt-in. But this PR also rewrites code that every tmux and Herdr home runs: the away daemon's inject_msg and stale-marker handling in fm-supervise-daemon.sh (+198/-92), and fm-spawn.sh (+494/-172). I haven't finished confirming those rewrites are equivalent on an unconfigured home, so I can't call it opt-in yet. It will not auto-merge until that review is done.

VISION.md: One captain aligns (no new captain-facing surface by default). Authority aligns for selection (an explicit grant only); the full-access T3 credential is captain-issued and stored 0600. Scripts vs agents aligns. Restart aligns (thread id in metadata, reconciled from T3). Delegation aligns (exit/relaunch refused rather than guessed). Vendor aligns: /mcp is a supported, verified surface, not a screen-scrape, and the shared contract isn't bound to T3. Scope is inconclusive until the default-path review is finished.

Optional, non-blocking (from your own pipeline's open findings): docs/t3code-backend.md:245 still tells operators to remove the whole .claude/settings.local.json, and it doesn't mention removing the config/t3code-token symlink before returning a pooled home. Following it as written could return a home that still links to the primary's full-access credential. tests/fm-backend-t3code.test.sh would also benefit from the same unset GIT_CONFIG_COUNT GIT_CONFIG_KEY_0 GIT_CONFIG_VALUE_0 GIT_CONFIG_PARAMETERS its sibling suites use.

Status: waiting on the serial 2 re-run and on my review of the default-path rewrites. You don't need to do anything right now. The doc fix above is welcome whenever you have time.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: a follow-up to my comment above. I've now finished the default-path review I said was still open.

  • fm-supervise-daemon.sh: on tmux and Herdr, inject_msg runs exactly as before (no exact, no request id, same encode, guards, and submit primitive). The frozen-digest retry only fires on an unconfirmed verdict, which only T3 returns. The new .subsuper-reported-stale-* marker is only written by the T3 exit-3 arm, so the existing stale arms behave the same everywhere else.
  • fm-spawn.sh: apart from re-indenting under the new t3code branch, only four default-path lines change, and all four are equivalent. Orca's runtime check now goes through fm_backend_runtime_check. The Claude task-worker statement moved into a function, and the text is byte-identical. orca|t3code returns early from the worktree assertion. The relaunch-meta key list only gains t3_project_id and t3_thread_id.
  • In fm-watch, fm-busy-lib, fm-crew-state, fm-classify-lib, fm-send, and fm-afk-launch, the only new behavior sits in t3code-specific arms. The rest is restructuring that behaves the same.

Contract-class updated: opt-in. Nothing changes unless config/backend, FM_BACKEND, or --backend selects t3code. VISION: Scope now aligns, so all seven rules align.

Status: still waiting on the Behavior portable serial 2 re-run of CI 39206516294. You don't need to do anything. If it comes back green and the PR is still mergeable, this takes the auto-merge path. The optional doc fix from my earlier comment is still welcome.

@RibatTRW

Copy link
Copy Markdown
Contributor

This test was run by an AI agent (firstmate) on behalf of the machine's operator. It covers head 1ddb56b9 on Linux against the stable T3 Code 0.1.0 Arch package. Everything below is from that one run.

Environment: Omarchy (Arch-based) Linux 7.2.8 x86_64, T3 Code v0.1.0 (Arch t3code-bin 0.1.0-1, whose /usr/bin/t3 execs the bundled Electron as Node), Claude Code 2.1.304, node v26.10.0, treehouse v3.1.4.
The lab was a loopback server (T3CODE_TELEMETRY_ENABLED=false t3 serve --host 127.0.0.1 --port <port> --no-browser --base-dir <scratch>), a scratch Firstmate home with config/backend set to t3code, a scratch project with a bare origin, and a private Treehouse pool. Every run used the claude harness with claude-haiku-5-5, effort low.

Suites (all green):

  • tests/fm-t3-mcp.test.sh and tests/fm-backend-t3code.test.sh: 103 ok, 0 failed
  • tests/fm-backend.test.sh, tests/fm-daemon.test.sh, tests/fm-control.test.sh: 227 ok, 0 failed
  • tests/fm-backend-t3code-live-e2e.test.sh (FM_T3CODE_LIVE_E2E=1): passes the gate, telemetry=off
  • tests/fm-backend-t3code-pr-tools-live-e2e.test.sh (FM_T3CODE_PR_TOOLS_LIVE=1): all three PR tools answered in a Claude thread, no crash

Live end to end (all worked):

Step Result
fm-t3-mcp.mjs login --access full-access --url ... --t3 /usr/bin/t3 --base-dir ... 0.7 s; all four scopes; token file 0600; status reads telemetry: off from the Linux listener's /proc/<pid>/environ
Scout spawn 2.2 s
fm-peek.sh activity tail plus t3code: status=running run=...
Inbox steer during a running turn delivery: steered; the worker acknowledged it and applied it
Steer into an idle thread delivery: started, a new run
fm-control.sh interrupt during a 240 s python3 call verified=agent-alive cancel=confirmed in 1.3 s; the child was gone within 1 s
fm-control.sh exit / relaunch both refused before anything was sent or stopped
AskUserQuestion in a worker, then fm-t3-answer.sh list and answer question listed, answer landed, worker used it
Interrupt while a question was pending request cancelled, pendingRequestCount back to 0 (the stale count from #6904 did not reproduce on 0.1.0)
Scout teardown 1.8-2.1 s; archived:true, activeRunId:null, slot available, no env files left in the slot
Local-only ship ready in 17 s; its commit has no agent trailer; fm-merge-local.sh fast-forwarded; teardown 3.6 s
t3 auth session revoke No active sessions; the next helper call exits 4 unauthorized
SIGTERM to the server exited in about 2 s; the Arch wrapper execs the server, so the launcher and the server are one PID and the npm-launcher gap from #6904 does not arise there

Observations (none blocking):

  • watch checks pending requests only when a call starts. A question raised mid-wait first showed up as event: blocked on the next call: a standalone 120 s call timed out, and the next call returned blocked at once. The watcher uses FM_POLL (default 15 s) as the budget, so the delay is at most one cycle. It might be worth saying "at the next cycle" in docs/t3code-backend.md:200.
  • Checkpoint refs build up as documented: 8 under refs/t3/orchestration-v2/checkpoints/ after three short tasks.
  • t3 auth session list showed the mcp-client session as last connected: never after many /mcp calls. This looks like T3's own bookkeeping.
  • At this head, docs/t3code-backend.md:246 already covers removing only the FM_T3CODE_ENV_KEYS keys and the config/t3code-token symlink for a secondmate home.

Not tested: the codex harness, a secondmate on t3code, away mode, the npm-distributed launcher, and the live fm-watch.sh loop. The loop's T3 wait was exercised directly through fm-t3-mcp.mjs watch.

Optional test-only patch: each run of tests/fm-backend-t3code.test.sh left 8 empty /tmp/fm-<id>/gotmp directories behind (t3codexmainz, t3claudelink, t3gitcfgz{claude,codex,entries}, t3smlinkz, t3turnz{claude,codex}). fm-spawn.sh creates /tmp/fm-$ID itself, and some of those tests either never tear down or are refused after that point (the spawn rollback removes a fresh root only for polytoken, same as on main). The patch below also adds the GIT_CONFIG_* unset suggested earlier in this thread. With it, the suite gives 77 ok and leaves nothing in /tmp; shellcheck -x is clean.

tests/fm-backend-t3code.test.sh patch
@@ -7,6 +7,9 @@
 # reads ~/.t3 or reaches a live server.
 # shellcheck disable=SC2016  # $1/$2 inside single quotes belong to the bash -c snippet t3_run forwards.
 set -u
+# A fleet pane already carries GIT_CONFIG core.hooksPath. These cases set that
+# override themselves, so drop the inherited one before any git command.
+unset GIT_CONFIG_COUNT GIT_CONFIG_KEY_0 GIT_CONFIG_VALUE_0 GIT_CONFIG_PARAMETERS
 
 # shellcheck source=tests/lib.sh
 . "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
@@ -26,6 +29,13 @@ cleanup() {
     wait "$WATCH_PID" 2>/dev/null || true
   fi
   t3_fake_stop
+  # fm-spawn roots each task's temp at a fixed /tmp/fm-<id> outside TMP_ROOT,
+  # so remove every one a case's task record still names.
+  local meta tasktmp
+  while IFS= read -r meta; do
+    tasktmp=$(sed -n 's/^tasktmp=//p' "$meta")
+    case "$tasktmp" in /tmp/fm-?*) rm -rf "$tasktmp" ;; esac
+  done < <(find "$TMP_ROOT" -path '*/state/*.meta' -type f 2>/dev/null)
   fm_test_cleanup
 }
 trap cleanup EXIT
@@ -1388,6 +1398,7 @@ test_spawn_claude_refuses_worktree_symlink() {
   assert_contains "$out" "CLAUDE.local.md already exists" "refusal must name the channel"
   [ "$(cat "$target")" = 'keep these instructions' ] || fail "symlink target was changed"
   [ -L "$wt/CLAUDE.local.md" ] || fail "symlink must remain after refused spawn"
+  rm -rf "/tmp/fm-$id"
   pass "Claude channel refuses a symlink in the leased worktree without following it"
 }
 
@@ -1864,6 +1875,7 @@ test_spawn_secondmate_refuses_symlinked_claude_settings() {
   [ "$rc" -ne 0 ] || fail "a symlinked Claude settings file must refuse the spawn"$'\n'"$out"
   assert_contains "$out" "is a symlink" "the refusal names the symlink"
   [ "$(cat "$target")" = '{"env":{"OUTSIDE":"1"}}' ] || fail "the symlink's target must be left untouched, got '$(cat "$target")'"
+  rm -rf "/tmp/fm-$id"
   pass "fm-spawn.sh --backend t3code --secondmate: a symlinked .claude/settings.local.json is refused, never written through"
 }
 
@@ -1901,6 +1913,7 @@ test_refused_launch_turn_archives_thread_and_returns_lease() {
     assert_absent "$WORKER_WT/.claude/settings.local.json" "a returned $harness slot must not keep the aborted spawn's Claude settings"
     assert_absent "$WORKER_WT/CLAUDE.local.md" "a returned $harness slot must not keep the aborted spawn's channel statement"
     assert_absent "$WORKER_WT/.codex/config.toml" "a returned $harness slot must not keep the aborted spawn's Codex environment"
+    rm -rf "/tmp/fm-$id"
   done
   pass "fm-spawn.sh --backend t3code: a refused launch turn archives the thread, removes its environment files, then returns the lease"
 }

The lab credential was revoked and the server stopped afterwards.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: a status update on head 1ddb56b9.

  • The one re-run of Behavior portable serial 2 in CI 39206516294 was cancelled at the 30-minute cap again (attempt 2). Every test that ran in the shard exited 0. Most of the time went to tests/fm-supervision-host.test.sh (about 27 minutes here, about 21 minutes on main's last green run). Main's own serial 2 has been cancelled at the same cap on 4 of its last 8 push runs, so this is the known ceiling (fix(pi): keep the Pi watcher armed after a successor or arm child dies #7255), not a failure in this PR.
  • Every other CI job is green, including PR must be raised via no-mistakes. The attestation still binds this head, and GitHub reports the PR as mergeable with main.
  • Thank you @RibatTRW for the independent live run on stable T3 Code 0.1.0. The optional test-only cleanup patch in that comment is a nice-to-have, not a blocker.

Contract-class: opt-in (unchanged). Nothing changes unless config/backend, FM_BACKEND, or --backend selects t3code. VISION: all seven rules align.

Status: captain-decision hold. This is not waiting on you, @arthurcruzd. Because the only red check is the serial 2 cap, I'm handing the land-despite-#7255 decision to Kun instead of re-running it again.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: a correction to my comment above. A few minutes after I posted it, main moved to 3eabd356 when #4728 landed (Paseo as an experimental session backend). GitHub now reports this branch as conflicting with main. The two backends overlap in 24 files, including bin/fm-backend.sh, bin/fm-spawn.sh, bin/fm-supervise-daemon.sh, bin/fm-bootstrap.sh, bin/fm-control*.sh, and the backend docs and tests.

So this is no longer a captain-decision hold. It's waiting on you, @arthurcruzd:

  1. Rebase onto current main, so that t3code sits next to the new paseo backend and stays explicit-only. It still must not appear in fm_backend_detect, and the tmux and Herdr default paths must stay unchanged.
  2. Re-raise through no-mistakes so the attestation binds the new head.

Contract-class stays opt-in for the reviewed head. I'll re-check the default path on the rebased head before anything moves. The serial 2 cap (#7255) will be judged fresh on the new head's CI.

@arthurcruzd
arthurcruzd force-pushed the fm/t3-5596-successor-v3 branch from 1ddb56b to f4ee7c2 Compare October 20, 2026 15:00
@arthurcruzd arthurcruzd changed the title feat(bin): add an explicit-only T3 Code runtime backend over Orchestrator V2 /mcp feat(bin): add explicit-only T3 Code runtime backend over Orchestrator V2 /mcp Oct 20, 2026
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @arthurcruzd for the quick rebase onto the Paseo backend. I re-checked the new head 0da5bf1b against main 9d76aa8e.

  • Default path, re-checked on the rebased head: fm_backend_detect still resolves only tmux, Herdr and cmux. t3code and paseo are both explicit-only (config/backend, FM_BACKEND, --backend). In fm-supervise-daemon.sh and fm-watch.sh, the new branches are gated on the t3code backend: the busy probe, the native-uncertainty return, the frozen unconfirmed-digest replay and the wedge deferral. The tmux and Herdr paths keep their existing behavior. No .github/workflows changes.
  • The last commit's widened pid-publish wait in tests/fm-watcher-lock.test.sh is test-only and matches the file's other startup waits.
  • The attestation binds 0da5bf1b, PR must be raised via no-mistakes passes, and live validation is go (8 of 10, including the default-home-not-routed-to-T3 scenario).
  • CI: every job is green except Behavior portable serial 2 (run 39463576576), which was cancelled at the 30-minute cap inside tests/fm-supervision-host.test.sh with no not ok. That's the known shard ceiling (fix(pi): keep the Pi watcher armed after a successor or arm child dies #7255). I've re-run that job once.

Contract-class: opt-in (my own read, unchanged). VISION.md: all seven rules align (One captain, Authority: explicit grant only, Scripts, Restart, Delegation, Vendor: vendor-exposed /mcp, Scope).

Status: waiting on CI, not on you. If the re-run goes green and the PR stays mergeable, this is eligible to land on the opt-in path. If serial 2 hits the cap again, I'll take the land-despite-#7255 call to Kun as a maintainer-side decision. Either way, nothing is needed from you right now. @RibatTRW's optional test-cleanup patch is still welcome as a follow-up.

@arthurcruzd
arthurcruzd force-pushed the fm/t3-5596-successor-v3 branch from 0da5bf1 to 50740b9 Compare October 22, 2026 02:10
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks @arthurcruzd for rebasing onto the wedge-cap change (#7552). I re-read the new head 50740b9c against main bd866530.

What changed since my 10-20 look (0da5bf1b): a rebase plus one docs commit (50740b9c). I compared the two commit series. Apart from the new docs commit, the only differences are conflict-resolution context: comments in fm-watch.sh, clear_pause_tracking in fm-supervise-daemon.sh now also clears main's .wedge-permanent-* marker next to the T3-only .subsuper-reported-stale-* marker, and doc wording. fm_backend_detect still resolves only tmux, Herdr and cmux, so t3code stays explicit-only. There are no .github changes.

Contract-class (my own read): opt-in, unchanged. Nothing changes unless config/backend, FM_BACKEND or --backend selects t3code. VISION.md per rule: one captain aligns · authority aligns (explicit grant only) · scripts aligns · restart aligns · delegation aligns · vendor aligns (vendor-exposed /mcp) · scope aligns.

One thing I need from you: the attestation binds this head, but its live validation is now inconclusive (5 of 8). The three T3 scenarios didn't run because no authenticated T3 instance was available: launch/steer/interrupt/retire, supervision of running and completed turns, and the capability and identity guards. Your 0da5bf1b run covered them, and the code delta since then is rebase-only. But this is the backend's core path, so could you re-run those three against a disposable signed-in T3 server on 50740b9c and post the evidence here? Re-raising through git push no-mistakes with that server available would also do it. No rush, and thank you.

CI on this head (run 39709923982) is still running. I'll judge it once it finishes.

@arthurcruzd

Copy link
Copy Markdown
Contributor Author

Rebase, CI, and live T3 re-run on head 50740b9c003adb48948370cafd590c3eb6aa1a89.

Rebase onto current main

  • New base: bd866530 (was 3eabd356). All 67 commits replayed linearly with original authorship (49 by Bryce Eppler, 18 by Arthur Cruz); no merge commits.
  • Conflicts were comment and documentation text only:
  • t3code stays explicit-only beside paseo: the set of lines naming paseo without t3code is identical before and after (640/640), and fm_backend_detect is unchanged. Main's new per-secondmate runtime pins (feat: support per-mate secondmate runtime pins #6917) and fm-capacity.sh (feat(bin): add fm-capacity.sh to report open lanes and host headroom #6973) carry no backend lists.
  • The pipeline's document step added 50740b9c (T3 path inventory in the operational-home-layout skill, one wording fix in docs/architecture.md).
  • The PR description's hand-written sections, which the pipeline's regenerated body had dropped, were restored above the generated sections.

CI on 50740b9c

16 passed. The three non-passing jobs match open upstream issues; this branch touches none of the files involved:

Live re-run of the three authenticated T3 scenarios

Server: T3 v0.1.1 (t3 serve --host 127.0.0.1 --port <port> --no-browser --base-dir <lab>/t3, T3CODE_TELEMETRY_ENABLED=false), a throwaway server with its own base directory and loopback port, and a scratch Firstmate home with config/backend=t3code. Code: this PR head 50740b9c. Host: 2 vCPU under other load, so timings are slow.

Sign-in: FM_HOME=<lab>/home bin/fm-t3-mcp.mjs login --access full-access --url http://127.0.0.1:<port> --t3 <lab>/bin/t3 --base-dir <lab>/t3 wrote a 0600 credential (all four scopes); status returned serverVersion 0.1.1, telemetry off.

Scenario Command Result
Launch bin/fm-spawn.sh t3live1 <lab>/demo --scout --harness claude --model claude-haiku-5-5 --effort low exit 0 in 60.9 s; meta records backend=t3code, t3_thread_id, t3_project_id; the first turn completed and the worker wrote its done line and report
Steer bin/fm-send.sh t3live1 '<run sleep 240 ...>' exit 0; a new T3 run (ordinal 2) started and the worker began the requested command
Interrupt bin/fm-control.sh t3live1 interrupt during sleep 240 interrupt-delivered ... verified=agent-alive cancel=confirmed in 25.0 s; thread interrupted, no active run, the sleep 240 child gone
Supervision: running and completed turns bin/fm-crew-state.sh t3live1 polled during turns working · harness busy (t3code-native) while the thread read running/waiting; done · source: status-log after the first turn completed
Supervision: pending question routed worker asked one question via AskUserQuestion; watcher splice fm_backend_wait_transition t3code ... with the target from fm_backend_target_of_meta pendingRequestCount=1 within 33 s; cycle 1 returned a blocked edge naming the thread and question request id and committed .t3code-escalated-<thread>; cycle 2 raised no second edge for the same request (waited its 20 s budget)
Answer bin/fm-t3-answer.sh t3live1 then bin/fm-t3-answer.sh t3live1 <request-id> '{"<question>":"blue"}' read the question and options, answered (exit 0); the turn resumed and completed 29 s later, report gained color: blue, both steering messages were acknowledged
Identity guard guard home with server B's valid credential but server A's recorded environment id; bin/fm-spawn.sh t3guard1 ... exit 1 in 5.3 s: T3 at http://127.0.0.1:<portB> is environment 8acc5128-..., not the 4e1fe6e8-... this credential was issued by; refusing to drive a different server; no project on server B, no task records, no leased worktree
Capability guard same credential via a lab pass-through proxy in front of server A that removes only t3_thread_launch from tools/list; bin/fm-spawn.sh t3guard3 ... exit 1 in 8.9 s: T3 0.1.1 ... lacks t3_thread_launch (capability_gate); no records, no lease, project count on server A unchanged
Incompatible server credential origin pointed at a plain HTTP server with no /mcp; bin/fm-spawn.sh t3guard2 ... exit 1 in 2.2 s: T3 /mcp answered HTTP 501; no records, no lease
Retire bin/fm-teardown.sh t3live1 first refused by the shared scout captain-call completion gate before any change; after fm-captain-hold.sh complete t3live1 --none: exit 0 in 22.0 s, reaped one leftover provider process in the worktree, thread archived:true with no active run, task records and the worktree's CLAUDE.local.md / .claude/settings.local.json removed, slot available

Observed and left unchanged: while the question was pending, and again after the answered turn completed (newest status line a resolved line), fm-crew-state.sh read unknown · source: none instead of a working or done state; the previous head 0da5bf1b gives the identical output against the same live thread, so it predates this rebase. The question still reached supervision through the watcher splice above. The watcher process itself was not launched in the scratch home; its push-splice functions were driven directly.

Teardown of the lab: both lab credentials revoked (t3 auth session revoke), both lab servers, the proxy, and the HTTP server stopped, and the lab directories removed.

@arthurcruzd

Copy link
Copy Markdown
Contributor Author

Live T3 validation on head 50740b9c003adb48948370cafd590c3eb6aa1a89 (main bd866530).

Setup: stable T3 0.1.1 installed from npm into a local prefix, run as a disposable loopback server with T3CODE_TELEMETRY_ENABLED=false and its own port and base dir; a scratch Firstmate home on this head with config/backend=t3code, a scratch project, and a private Treehouse pool; signed in with bin/fm-t3-mcp.mjs login --access full-access against that server only. Workers: Claude Code 2.1.306, claude-haiku-5-5, effort low, macOS arm64. Afterwards the lab credential was revoked (status then returned unauthorized) and the server was stopped.
The host was cycling through maintenance sleep during the run, so wall-clock durations are not representative and are omitted except where noted.

1. Launch, steer, interrupt, retire

Step Command Result
Launch bin/fm-spawn.sh s1 projects/labproj --scout --harness claude --model claude-haiku-5-5 --effort low spawned s1; T3 thread launched on the leased slot (9.5 s)
Done report worker done status line and report written
Steer bin/fm-send.sh s1 '<append a status line>' inbox message moved to handled/ (about 8 s); requested status line appended
Interrupt bin/fm-control.sh s1 interrupt during a running python3 -c "import time; time.sleep(120)" interrupt-delivered s1 harness=claude backend=t3code verified=agent-alive cancel=confirmed; child process gone; thread interrupted, no active run
Exit bin/fm-control.sh s1 exit refused before anything was sent (no V2 session stop)
Retire bin/fm-teardown.sh s1 rc 0; thread archived:true, activeRunId:null; task record removed; slot available; backlog item closed

2. Supervision of running and completed turns, pending questions

Step Command Result
Running turn bin/fm-crew-state.sh s2 during a foreground tool call working · harness busy (t3code-native); thread status=running with an active run
Completed turn bin/fm-crew-state.sh s2 after the turn done · source: status-log; thread status=completed, no active run
Run end node bin/fm-t3-mcp.mjs watch --thread <thread> --timeout-ms 240000 on a steered turn event:run-ended, status:completed for that exact run
Pending question worker asked through its AskUserQuestion tool; node bin/fm-t3-mcp.mjs watch --thread <thread> event:blocked, 1 question, 0 approvals
Read bin/fm-t3-answer.sh s2 listed the request with both options
Answer bin/fm-t3-answer.sh s2 <request-id> '{"<question-id>":"blue"}' rc 0; worker appended answered blue; pending count back to 0
Retire bin/fm-teardown.sh s2 thread archived, record removed, slot available

While the question was pending, fm-crew-state.sh still reported the worker's last status line (done); the question surfaced through the watcher's event wait (blocked) and the answer path.

3. Capability and environment-identity guards

Step Command Result
Live transport guard FM_CONFIG_OVERRIDE=<home>/config bash tests/fm-backend-t3code-live-e2e.test.sh ok - t3code live transport: T3 0.1.1 environment <id> passes the gate (telemetry=off)
Identity mismatch copy of the credential with a different recorded environment id; node bin/fm-t3-mcp.mjs status rc 4, environment_mismatch ("refusing to drive a different server")
Identity mismatch, spawn bin/fm-spawn.sh s3b ... rc 1 with the same refusal; no task record, no leased slot, no T3 project created
Incompatible server credential pointed at a pre-V2 T3 0.0.45 server; status and bin/fm-spawn.sh s3c ... refused (rc 4 / rc 1) before any lease, record, or thread; the 0.0.45 server rejects the credential (HTTP 401) before the tool-capability check runs, so the missing-tool branch itself stays covered by tests/fm-t3-mcp.test.sh

All three scenarios passed.

CI on this head (run 39709923982)

  • Behavior tests (Herdr): tests/fm-backend-herdr-presentation-e2e.test.sh fails with "concurrent secondmate recovery failed ... herdr presentation recovery could not acquire its session lock". The same test fails with the same message on main runs 39618934309 (3847411b) and 39506645686 (5db719de). This branch does not change the Herdr adapter or the presentation recovery path. Not re-run locally because it drives real Herdr sessions.
  • Behavior portable serial 3: every test in tests/fm-public-followup.test.sh reported ok; the job's exit 1 comes from the suite's final temp-root cleanup (rm: cannot remove ...: Directory not empty), which looks like a background writer racing the cleanup. The branch's changes on this suite's path are no-ops without T3: the new teardown home cleanup acts only on T3 marker files, and the pending-reply change is gated on backend=t3code. A local re-run on this head reached 34 passing tests with no failure before it was stopped by the host's sleep cycles, so it is not a complete local result; this failure was not found in main's recent failed runs.
  • Behavior portable serial 2: cancelled at the 30-minute job cap (fix(pi): keep the Pi watcher armed after a successor or arm child dies #7255).

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @arthurcruzd. Both live T3 runs on 50740b9c cover everything I asked for: launch, steer, interrupt and retire, supervision of running and completed turns plus the pending-question route, and the identity, capability and incompatible-server guards, each refusing before any lease or record. Revoking the lab credentials afterwards is appreciated too. I'm treating the live-evidence ask as done. The fm-crew-state "unknown" reading during a pending question is on the T3 path only and predates the rebase, so it's fine as a follow-up.

CI on 50740b9c is green apart from Behavior portable serial 2, which was cancelled at the 30-minute cap (#7255). The serial 3 and Herdr reruns passed.

What's needed now (waiting on you): main moved to 9fe25bca when #7633 (the auto-detected Rex backend) landed, and GitHub reports this branch as conflicting again. The two PRs overlap in 29 files, including bin/fm-backend.sh, bin/fm-spawn.sh, bin/fm-supervise-daemon.sh, bin/fm-watch.sh, bin/fm-control*.sh, bin/fm-busy-lib.sh, bin/fm-crew-state.sh and the backend docs. Please:

  1. Rebase onto 9fe25bca, so that t3code sits beside rex and paseo and stays explicit-only. fm_backend_detect gains a rex arm on main, but must still have no t3code arm.
  2. Re-raise through git push no-mistakes so the attestation binds the new head. If the rebase only resolves conflict context, the automated suites plus a short note on the conflict resolutions are enough, and I won't need another full T3 lab run.

Contract-class: opt-in (my own read, unchanged). Nothing changes unless config/backend, FM_BACKEND or --backend selects t3code. VISION.md per rule: One captain aligns · Authority aligns (explicit grant only) · Scripts aligns · Restart aligns · Delegation aligns (live-validated on the core path) · Vendor aligns (vendor-exposed /mcp) · Scope aligns.

Once it's rebased, attested and green, this is eligible for the opt-in merge path.

@arthurcruzd
arthurcruzd force-pushed the fm/t3-5596-successor-v3 branch 2 times, most recently from 93375a2 to 27ed746 Compare October 22, 2026 18:14
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @arthurcruzd for rebasing again, and sorry main keeps moving under you. I looked at the new head 27ed746a (based on 05a68cb2).

On this head fm_backend_detect still has no t3code arm (only tmux, Herdr, cmux and main's rex), there are no .github changes, and t3code still sits beside paseo as explicit-only. Contract-class: opt-in (my own read, unchanged).

What's needed now (waiting on you): a few minutes before your push, main moved to d906d442 when #7639 (Rex push notifications and cursor-aware composer detection) and #7636 landed. GitHub reports this branch as conflicting again, so no CI or no-mistakes check has run on 27ed746a. The overlap is small this time, three files: bin/fm-backend.sh, bin/fm-push-transition-lib.sh and docs/architecture.md. Please:

  1. Rebase onto d906d442, keeping t3code explicit-only (no fm_backend_detect arm).
  2. Re-raise through git push no-mistakes so the attestation binds the new head. A rebase that only resolves conflict context needs the automated suites plus a short note on the resolutions. No new T3 lab run is needed.

VISION.md per rule: One captain aligns · Authority aligns (explicit grant only) · Scripts aligns · Restart aligns · Delegation aligns · Vendor aligns (vendor-exposed /mcp) · Scope aligns. Once it's rebased, attested and green, this can land on the opt-in path.

@arthurcruzd
arthurcruzd force-pushed the fm/t3-5596-successor-v3 branch from 27ed746 to e9f0870 Compare October 23, 2026 01:25
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @arthurcruzd for the rebase. The branch is now based on current main 69999915 and is mergeable, and I know main has kept moving under you.

What I checked (head e9f08701 vs main 69999915): fm_backend_detect still has no t3code arm. It covers only tmux, Herdr, main's rex and cmux, and Paseo stays undetected. t3code joins FM_BACKEND_KNOWN/FM_BACKEND_SPAWN and is reachable only through FM_BACKEND or config/backend. The new fm_backend_explicit_name helper is a straight extraction of the existing explicit-selection lines. There are no .github changes. Contract-class: opt-in (my own read, unchanged).

Two things are still open, and both are waiting on you:

  1. no-mistakes attestation: the PR body attestation still binds 50740b9c, but the head is now e9f08701, so PR must be raised via no-mistakes fails. Please re-raise with git push no-mistakes so the attestation binds the current head. If a pipeline run is already in progress, letting it finish and update the body is enough.
  2. Behavior portable parallel 2 (run 39883948163) fails in tests/fm-test-run.test.sh on not ok - packing exactly at the budget must be accepted: expected exit 0, got 1. That test packs the real --list --all inventory against the 20-minute serial budget, and it isn't failing on main. So it's probably the new T3 test files changing the serial packing, for example a missing or too-large timing hint. Could you take a look? Every other job is green, including all nine serial shards.

VISION.md per rule: One captain aligns · Authority aligns (explicit grant only) · Scripts aligns · Restart aligns · Delegation aligns · Vendor aligns (vendor-exposed /mcp) · Scope aligns. Live validation from 50740b9c still counts, since this round is rebase plus review hardening. Once the attestation matches and CI is green, this can land on the opt-in path.

@arthurcruzd
arthurcruzd force-pushed the fm/t3-5596-successor-v3 branch from 3092d2a to 879b833 Compare October 23, 2026 07:49
@arthurcruzd arthurcruzd changed the title feat(bin): add explicit-only T3 Code runtime backend over Orchestrator V2 /mcp feat(bin): add the explicit-only T3 Code runtime backend Oct 23, 2026
@arthurcruzd

Copy link
Copy Markdown
Contributor Author

Conflict resolutions from rebasing this branch onto main (Rex #7633, Rex push events #7639, Rex secondmate grouping #7656, OpenCode 2 #7336, and the composer/away-mode fixes up to 8818a80). Every resolution keeps main's change and adds the T3 Code side next to it; t3code stays explicit-only, with no arm in fm_backend_detect.

File What was kept
bin/fm-backend.sh Backend lists tmux herdr zellij orca cmux paseo rex t3code; every dispatch arm keeps rex) and adds t3code) after it; main's Rex auto-detection kept, no T3 detection; push-event gate herdr|rex|t3code with the Rex and T3 transition arms side by side
bin/fm-push-transition-lib.sh Main's transition detail plus the per-backend target and T3 note; Herdr and Rex messages are unchanged from main
bin/fm-spawn.sh Relaunch meta keys keep main's Rex keys and opencode_version, plus t3_thread_id t3_project_id; header and send arms list both backends
bin/fm-control.sh, bin/fm-control-lib.sh Main's typed exit (including the OpenCode 2 Ctrl-C path) is byte-identical to main; capability tables list tmux|herdr|rex|t3code; relaunch stays tmux|herdr|rex
bin/fm-teardown.sh Main's Rex-secondmate close kept; the generic close still skips orca and t3code
bin/fm-secondmate-liveness-lib.sh Non-T3 backends keep main's close, including the Rex home-context close; only t3code refuses to replace an endpoint it cannot prove closed
bin/fm-supervise-daemon.sh, bin/fm-supervisor-target-lib.sh, bin/fm-afk-launch.sh Supported supervisors tmux herdr rex t3code; Rex discovery runs before the T3 thread lookup; main's composer-verdict comments and reason local kept
bin/fm-crew-state.sh, bin/fm-busy-lib.sh Agent-state and busy-source arms list rex then t3code
Docs and skills (README.md, CONTRIBUTING.md, docs/architecture.md, docs/configuration.md, docs/agent-control.md, docs/scripts.md, docs/trace-context.md, docs/verification/runtime-backends.md, docs/documentation-audiences.json, afk, stuck-crewmate and home-layout skills) Main's wording and Rex sections kept, with the T3 Code lines added beside them; where main moved a list into a pointer, the pointer was kept
tests/fm-bootstrap.test.sh, tests/fm-remote-secondmate-lifecycle-e2e.test.sh Known-backend list includes rex and t3code; the branch's wall-clock relaunch wait kept, which covers main's longer loop

CI on 879b833d: every check passes except Behavior portable serial 1, which was cancelled at the 30-minute cap inside tests/fm-supervision-host.test.sh. Main's last five CI runs, including the run on this branch's base 8818a80, show the same cancellation.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @arthurcruzd for another rebase, this time onto 8818a804, and for writing up the conflict resolutions.

What I checked (head 879b833d vs main 8818a804): the range-diff against e9f08701 is mostly rebase unions. Main's OpenCode 2 exit path, opencode_version meta key and Rex teardown arms are all kept, and the T3 side sits next to them. fm_backend_detect still has no t3code arm. t3code is reachable only through FM_BACKEND, config/backend or --backend. There are no .github changes. Contract-class: opt-in (my own read, unchanged). The no-mistakes attestation now binds this head and passes. The live T3 v0.1.0 evidence was captured on 879b833d, and parallel 2 (the packing test from last round) is green.

One thing is left, and it's on CI, not you: Behavior portable serial 1 was cancelled at the 30-minute cap inside tests/fm-supervision-host.test.sh. That's the same cancellation main has been showing, so I've re-run that job. Every other check is green.

VISION.md per rule: One captain aligns · Authority aligns (explicit selection only, no auto-detect) · Scripts aligns · Restart aligns (thread ids in durable meta) · Delegation aligns · Vendor aligns (vendor-exposed /mcp, version-pinned) · Scope aligns. If the re-run comes back green and the head is unchanged, this lands on the opt-in path. Nothing else is needed from you.

@kunchenguid

kunchenguid commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @arthurcruzd. Head 879b833d went fully green (19/19, including the serial 1 rerun), and the attestation binds it. This was ready to merge as opt-in.

I'm sorry to ask for another rebase. Main moved again (#5947, #6300, and in this pass #7421 and #6722), and the branch now conflicts in bin/fm-spawn.sh, bin/fm-watch.sh, bin/fm-config-inherit-lib.sh, docs/architecture.md, docs/configuration.md, the operational-home-layout skill and the codex harness reference. Several of those are runtime scripts, and any resolved head needs a fresh no-mistakes attestation, so I'm not resolving them on your branch.

This is waiting on you: please rebase onto current main, keeping main's side and adding the T3 Code side next to it as before (#6722 added codex-approval-mode to the inheritable list and approval_mode to the relaunch owned-key list), then re-raise with git push no-mistakes. Once that's green on the new head, I'll merge it on the next pass.

@arthurcruzd
arthurcruzd force-pushed the fm/t3-5596-successor-v3 branch from 879b833 to 2b496c9 Compare October 23, 2026 16:01
@arthurcruzd arthurcruzd changed the title feat(bin): add the explicit-only T3 Code runtime backend feat(bin): add an explicit-only T3 Code runtime backend over Orchestrator V2 /mcp Oct 23, 2026
@arthurcruzd

Copy link
Copy Markdown
Contributor Author

Rebased onto main af1c681 (#5947, #6300, #7421, #6722, #6440, #6467, #7666, #7685); head is now 2f104617. Every conflict keeps main's change and adds the T3 Code side next to it; t3code stays explicit-only, with no arm in fm_backend_detect.

File What was kept
bin/fm-config-inherit-lib.sh Main's codex-approval-mode in the inheritable list and its approval-mode comment, plus t3code-instances
bin/fm-spawn.sh Main's approval_mode relaunch key plus t3_thread_id t3_project_id; main's approval-mode comments plus the T3 full-access note
bin/fm-watch.sh Main's validating-run wedge deferral (#5947) after the liveness checks, then the T3 running-turn deferral, both before the operator guards
docs/architecture.md, docs/configuration.md Main's validating-run and approval-mode text, with the T3 lines added beside it
operational-home-layout skill, Codex harness reference Main's permission, approval, and account rows and its managed-policy wording, with the T3 rows and a "pane-backed" qualifier

Two additions keep #6722's settings honest on T3, which always runs workers at its full-access mode: a T3 codex spawn now refuses config/codex-approval-mode=approve-for-me before any mutation, as it already refused Claude auto, and bin/fm-approval-failover.sh refuses to save either setting for a task recorded with backend=t3code. Non-T3 backends are unchanged, and both paths have tests.

CI on 2f104617: 18 of 19 checks pass. Behavior portable parallel 2 fails tests/fm-test-run.test.sh with "packing exactly at the budget must be accepted", identically to main's last three CI runs (39968920221 on af1c681, this PR's base; 39968718606; 39968594359 on 64973e3, #6722), while main's run before #6722 had that job green, so the failure comes from main rather than this PR.

@kunchenguid, each round so far was ready except for new conflicts from main moving between green and merge (879b833d was ready before #5947, #6300, #7421, and #6722 landed), so if it suits you, a merge on this head soon would avoid another round.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @arthurcruzd for another clean rebase, and for the conflict table. I know main keeps moving under you.

What I checked (head 2f104617 vs main af1c6817, merge base = main): fm_backend_detect still has no t3code arm (tmux, Herdr, Rex, cmux only), and t3code is reachable only through FM_BACKEND, config/backend or --backend. Main's codex-approval-mode inheritance and approval_mode relaunch key are kept. The two new guards are T3-only: the spawn refusal of codex-approval-mode=approve-for-me runs on the T3 launch path, and fm-approval-failover.sh refuses only when the task meta records backend=t3code. Other backends follow main's path unchanged. There are no .github changes. The no-mistakes attestation binds 2f104617 and passes, and the live evidence covers the new guards.

Contract-class (my own read): opt-in, unchanged. VISION.md per rule: One captain aligns · Authority aligns (explicit selection only, and the new guards refuse instead of assuming consent) · Scripts aligns · Restart aligns · Delegation aligns · Vendor aligns (vendor-exposed /mcp, version-pinned) · Scope aligns.

Status: waiting on CI/main, not on you. 18 of 19 checks pass. The one red check is Behavior portable parallel 2, tests/fm-test-run.test.sh "packing exactly at the budget must be accepted". You're right that main fails the same way on af1c6817, cfe91b0c and 64973e3a, and we're looking into it on main. This branch also changes bin/fm-test-run.sh lane lists and weight hints, though, so I can't yet tell main's failure apart from this PR's packing. Once main's packing test is fixed, a green run on this head is all that's left, and then I'll merge it on the opt-in path. If that green run needs a fresh push, I'll say so here. Nothing else is needed from you.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks @arthurcruzd. As promised, here's the update on the fresh push.

Main's packing-at-budget fix landed in 98f3bd84 (main is now 2ee22508). Because this branch changes bin/fm-test-run.sh lane lists and weight hints, I need a CI run on a merge ref that includes that fix. The existing runs on 2f104617 predate it, and re-runs reuse the old merge commit, so a re-run can't show it.

Could you rebase onto current main and push again (or re-raise via git push no-mistakes) so the attestation binds the new head? GitHub still shows the branch as mergeable, so this should be a quick one. My review stands: contract-class opt-in (t3code is reachable only through explicit selection), and VISION aligns on every rule. If the fresh run is green and nothing else changes, I'll merge it on the opt-in path.

…xed a CI test-coverage failure that the combined tree caused, by adding a tenth portable serial CI shard. Every verification run passes. The shard fix is in the working tree and not committed. **Rebase:** all 82 commits are replayed with no merge commits, and the new head is f1bb58ae. Each commit keeps its original author, date and subject, including Bryce Eppler's. - One commit conflicted: fff8ce69, in tests/fm-remote-secondmate-lifecycle-e2e.test.sh. Main (ac8a767) raised a watcher wait loop from 1500 to 3000 iterations of `sleep 0.02`, about 60s. The branch replaces that loop with a 150s wall-clock deadline: the watcher's 120s relaunch bound plus 30s. I kept the branch side, which already gives the longer wait main wanted. - The branch's patch on the new base matches the original apart from line numbers. Main's patch also matches, except for that one hunk. - Main also edited fm-watch.sh, fm-pending-reply-lib.sh, fm-fleet-snapshot.sh, fm-test-run.sh and some docs. Its edits there sit in different hunks from the branch's. **Coverage-guard break:** each side passes alone, but together they do not. CI's "Test coverage guard" job runs `bin/fm-test-run.sh --check-coverage`, which failed with "largest portable serial shard packs 1200805ms above the 1200000ms target". | tree | serial lane total | largest shard | |---|---|---| | main | 10582151ms | 1192918ms (ok) | | branch before rebase | 10762151ms | 1195805ms (ok) | | rebased | 10807151ms | 1200805ms (over by 805) | - **Cause:** the five tests the branch adds have no timing hint, so each is packed at the 45000ms default. Main added one more unhinted test. Nine shards hold at most 10800000ms. - **Why hints alone don't fix it:** this PR's CI runs 39463576576, 39814995718 and 39883948163 measured the slowest successful samples: | test | slowest sample (ms) | |---|---| | fm-backend-t3code | 239245 | | fm-t3-mcp | 57613 | | fm-watch-inbox-meta | 283 | | fm-backend-t3code-live-e2e (live-guard skip) | 51 | | fm-backend-t3code-pr-tools-live-e2e (live-guard skip) | 52 | With these the lane totals 10879395ms. That is more than nine shards can hold, and docs/fm-test-portable-shards.md says to refresh hints or add shards rather than raise the job timeout. **Fix (test and CI files only, nothing a home runs):** - `bin/fm-test-run.sh`: `PORTABLE_SERIAL_SHARDS` goes from 9 to 10, and the five measured hints are inserted without reordering existing lines. - `.github/workflows/ci.yml`: the serial matrix gains shard 10. The timing aggregate already collects artifacts by glob, so it picks up the new shard. - `docs/fm-test-portable-shards.md`: records where the hints came from, and says fifteen long-lived jobs, ten of them serial. - With ten shards the largest is 1192918ms, the indivisible fm-supervision-host test, and the others land near 1076300ms. This adds one CI runner per run. It is the remedy the shard docs prescribe, but the maintainer may want a say since the PR now changes CI capacity. **Verification (all pass):** - tests/fm-test-run.test.sh, including the coverage-guard and packing-boundary cases. - tests/fm-ci-workflow.test.sh and tests/fm-lint-workflows.test.sh. - tests/fm-pending-reply.test.sh and tests/fm-fleet-snapshot-contribution-input.test.sh. - `bin/fm-lint.sh` on bin/fm-test-run.sh and on the files both sides touched. - `bash -n` on every script in bin, bin/backends and tests, and `node --check` on bin/fm-t3-mcp.mjs
The two T3 suites pushed the portable serial lane past the nine-shard
budget. Give every case id the backend suite spawns a per-run suffix so
its /tmp/fm-<id> directories cannot collide across concurrent runs, with
cleanup limited to the ids that run created, then move both suites into
the proven-isolated set with their CI-measured hints as parallel hints
and rebalance the two parallel lanes. Record the concurrent proof.
T3 starts every worker at its full-access runtime mode, so a t3code
codex spawn with config/codex-approval-mode=approve-for-me would launch
at full access while recording approval_mode=approve-for-me. Refuse it
before any mutation, as the Claude permission-mode refusal already does,
and cover the refusal and the bypass posture with fake-server tests.
config/codex-permission-mode=restricted sets the Codex approval posture
that a t3code spawn already refuses, but the refusal named
config/codex-approval-mode. Name the setting that produced the posture,
document the limit beside the restricted mode, and cover the refusal.
@arthurcruzd
arthurcruzd force-pushed the fm/t3-5596-successor-v3 branch from 6fdc4f7 to 75f8550 Compare October 24, 2026 10:58
@arthurcruzd arthurcruzd changed the title feat(bin): add explicit-only T3 Code runtime backend feat(bin): add an explicit-only T3 Code runtime backend Oct 24, 2026
@arthurcruzd

Copy link
Copy Markdown
Contributor Author

Rebased onto main 6c87d7b. The single conflict, in bin/fm-teardown.sh, is resolved as described: the branch keeps its elif [ "$BACKEND" != orca ] && [ "$BACKEND" != t3code ] && [ "$TEARDOWN_WINDOWLESS" != 1 ] condition, with #7703's Rex attention-mark clear block left inside it ahead of the endpoint close. Nothing else changed; all 19 checks pass on 75f8550.

@kunchenguid
kunchenguid merged commit 3004ccb into kunchenguid:main Oct 24, 2026
21 of 22 checks passed
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: this is merged. Thank you @arthurcruzd — really appreciate you taking the time on this.

I checked the rebase against the head I reviewed before: it's the same series on top of 6c87d7bb, and the only conflict, in bin/fm-teardown.sh, keeps #7703's Rex clear block inside your t3code condition. Contract-class stays opt-in. It was 19/19 green and CLEAN, with the no-mistakes attestation bound to 75f85506. It landed as 3004ccb1.

arthurcruzd added a commit to arthurcruzd/firstmate that referenced this pull request Oct 28, 2026
Bring the fork's fleet branch up to upstream main, keeping the fleet-only
work upstream has not merged.

Upstream's explicit-only T3 Code backend (kunchenguid#7518) is the base for every T3
file; the fleet's earlier copy of that PR is superseded by it, along with
its own semantic-supervision push (upstream's pending-request watch), the
T3 capture, telemetry, interrupt-verdict, and launch-ownership fixes, and
the Claude env-channel ownership (upstream's FM_T3CODE_ENV_KEYS). On top of
it the fleet keeps: the T3-hosted primary and its wake relay
(bin/fm-t3-host.sh), remote second mates on a host's T3 server, quiet and
away mode and the supervision host under the relay, Grok and Muse T3
workers, exit by archive with a relaunch that resumes the same thread,
restart reconciliation, the foreign-slot refusal, local-interface
telemetry, and the T3 0.1.2 standard-scope sign-in.

Also kept: the open contributions for supervisor noise (kunchenguid#7726), one
launch-failed wake per outage (kunchenguid#7386), status-file birth times (kunchenguid#7384), the
take-over watcher TERM fix (kunchenguid#6916), and the fleet-only second-mate
reply-source and CI commits.
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.

T3 Code backend: Orchestrator V2 removes the dispatch route both T3 PRs use; /mcp with an OAuth client is the supported write path

4 participants