Skip to content

fix(bin): support current T3 Code tools and model catalogs - #8235

Open
karanmrn wants to merge 4 commits into
kunchenguid:mainfrom
karanmrn:fm/fm-up-t3code-gate
Open

karanmrn wants to merge 4 commits into
kunchenguid:mainfrom
karanmrn:fm/fm-up-t3code-gate

Conversation

@karanmrn

@karanmrn karanmrn commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Intent

okay cool, lets do that for the adapter, and we can also contribute to T3 code and kun

Context: "that" is the fix for Firstmate's T3 Code runtime adapter. On 7 Nov 2026, with T3 CLI 0.1.7 (stable) and then 0.1.8-nightly.20261107.4301 running as T3CODE_TELEMETRY_ENABLED=false t3 serve --host 127.0.0.1 --port 3773 --no-browser, bin/fm-t3-mcp.mjs login --access full-access --url http://127.0.0.1:3773 refused with capability_gate: "lacks t3_thread_configuration, t3_pending_request_list, t3_pending_request_read, t3_pending_request_respond". T3's own source (packages/shared/src/t3McpToolPresentation.ts on pingdotgg/t3code main) still defines all four tools. The adapter was last verified against t3 v0.0.46-nightly.20261008 (docs/verification/runtime-backends.md). Suspected cause, unproven: the gate in bin/fm-t3-mcp.mjs gate() runs tools/list before sign-in, and newer T3 lists scoped tools only to an authorized client. "contribute to T3 code and kun": the captain consents to an upstream PR to kunchenguid/firstmate for this fix, and to a contribution to pingdotgg/t3code if a genuine T3 defect is found.

What Changed

  • The adapter accepts merged T3 configuration and pending-request tools while retaining compatibility with legacy tools.
  • Model selection supports compact option values and searches omitted models by exact ID within the selected provider instance.
  • Regression tests cover both API formats and missing capabilities. Documentation describes tool selection and records the T3 0.1.8 nightly verification.

Risk Assessment

✅ Low: The compatibility change is bounded, preserves legacy behaviour, and introduces no substantiated material defects.

Testing

Baseline reproduction, targeted regression tests, and live CLI scenarios passed. Transcripts were retained and disposable resources removed. No screenshots were needed for this CLI-only change.

  • Live validation: ✅ go - 7 of 7 scenarios driven live against the product
Scenario Result Live Evidence
Sign in on T3 0.1.7 and nightly: the original refusal is reproduced, and the changed adapter succeeds. ✅ pass live Real T3 CLI transcripts: baseline-login, current-login, stable-login
Launch an idle full-access thread on current and legacy T3 versions with the requested model and effort. ✅ pass live Real T3 CLI transcripts: launch and configuration results across all three versions
Launch on T3 0.1.0 when both configuration tools exist without invoking its selection-required writer for reads. ✅ pass live legacy-live.jsonl and Real T3 CLI transcripts
Resolve compact and legacy catalogs, find an omitted model, and preserve a default boolean option when changing effort. ✅ pass live Real T3 CLI transcripts: resolve-selection results
Reject invalid effort, unknown models, and a different environment identity before mutation. ✅ pass live Real T3 CLI transcripts: effort_unsupported, model_unknown, and environment_mismatch responses
Reject a server missing either required merged capability before forwarding a mutating tool call. ✅ pass live Real T3 CLI transcripts: missing-capability fault injection
Read and answer a real Claude question, reject an unknown request, observe the selected answer, and archive the completed thread. ✅ pass live Real T3 CLI transcripts: requests, respond, read, and archive across all three versions
Evidence: Real T3 CLI transcripts

Source: Real T3 CLI transcripts

Exact tested head: 62030a560e87d7640b4e26118f1f1de1e17277a6
CLI product evidence from isolated real T3 servers.

baseline-login
{"ok":false,"error":{"code":"capability_gate","message":"T3 0.1.8-nightly.20261107.4301 at http://127.0.0.1:43773 lacks t3_thread_configuration, t3_pending_request_list, t3_pending_request_read, t3_pending_request_respond; backend=t3code needs a T3 with the Orchestrator V2 thread tools (docs/t3code-backend.md)","serverVersion":"0.1.8-nightly.20261107.4301","missing":["t3_thread_configuration","t3_pending_request_list","t3_pending_request_read","t3_pending_request_respond"]}}
fm-t3-mcp: T3 0.1.8-nightly.20261107.4301 at http://127.0.0.1:43773 lacks t3_thread_configuration, t3_pending_request_list, t3_pending_request_read, t3_pending_request_respond; backend=t3code needs a T3 with the Orchestrator V2 thread tools (docs/t3code-backend.md)

current-login
{"ok":true,"tokenFile":"~/.no-mistakes/worktrees/b38b47bec548/01M6TW2N0WHAV0YP4KA3JWP9YW/.validation-t3/token","origin":"http://127.0.0.1:43773","access":"full-access","scope":"orchestration:read orchestration:operate settings:write source-control:write","expiresAt":"2026-12-07T11:29:21.274Z","environmentId":"4a4b079a-e6b0-42f8-b8a0-4d1490b116a8","serverVersion":"0.1.8-nightly.20261107.4301"}

stable-login
{"ok":true,"tokenFile":"~/.no-mistakes/worktrees/b38b47bec548/01M6TW2N0WHAV0YP4KA3JWP9YW/.validation-t3/stable-token","origin":"http://127.0.0.1:43775","access":"full-access","scope":"orchestration:read orchestration:operate settings:write source-control:write","expiresAt":"2026-12-07T11:31:31.062Z","environmentId":"3b78e806-018c-4b5f-99b9-6b10ecb2372c","serverVersion":"0.1.7"}

legacy-login
{"ok":true,"tokenFile":"~/.no-mistakes/worktrees/b38b47bec548/01M6TW2N0WHAV0YP4KA3JWP9YW/.validation-t3/legacy-token","origin":"http://127.0.0.1:43774","access":"full-access","scope":"orchestration:read orchestration:operate settings:write source-control:write","expiresAt":"2026-12-07T11:31:29.981Z","environmentId":"80afcc36-459c-483e-b28d-bb8300b0ec78","serverVersion":"0.1.0"}

REAL T3 nightly
$ fm-t3-mcp.mjs status 
exit=0
{
  "ok": true,
  "origin": "http://127.0.0.1:43773",
  "access": "full-access",
  "expiresAt": "2026-12-07T11:29:21.274Z",
  "daysLeft": 30,
  "environmentId": "4a4b079a-e6b0-42f8-b8a0-4d1490b116a8",
  "serverVersion": "0.1.8-nightly.20261107.4301",
  "recordedServerVersion": "0.1.8-nightly.20261107.4301",
  "telemetry": "off"
}
$ fm-t3-mcp.mjs project-ensure --root ~/.no-mistakes/worktrees/b38b47bec548/01M6TW2N0WHAV0YP4KA3JWP9YW/.validation-t3/project
exit=0
{
  "ok": true,
  "projectId": "mcp:9f591c66-7318-4cfd-9ca7-52e2ebdc492e",
  "created": false
}
$ fm-t3-mcp.mjs resolve-selection --harness claude --instance claudeAgent --model claude-haiku-5-5 --effort low --project mcp:9f591c66-7318-4cfd-9ca7-52e2ebdc492e
exit=0
{
  "ok": true,
  "driverKind": "claudeAgent",
  "selection": {
    "instanceId": "claudeAgent",
    "model": "claude-haiku-5-5",
    "options": [
      {
        "id": "effort",
        "value": "low"
      }
    ]
  }
}
$ fm-t3-mcp.mjs resolve-selection --harness claude --instance claudeAgent --model claude-sonnet-4-6 --effort high
exit=0
{
  "ok": true,
  "driverKind": "claudeAgent",
  "selection": {
    "instanceId": "claudeAgent",
    "model": "claude-sonnet-4-6",
    "options": [
      {
        "id": "effort",
        "value": "high"
      }
    ]
  }
}
$ fm-t3-mcp.mjs resolve-selection --harness claude --instance claudeAgent --model default --effort low --project mcp:9f591c66-7318-4cfd-9ca7-52e2ebdc492e
exit=0
{
  "ok": true,
  "driverKind": "claudeAgent",
  "selection": {
    "instanceId": "claudeAgent",
    "model": "claude-opus-5-5",
    "options": [
      {
        "id": "fastMode",
        "value": true
      },
      {
        "id": "effort",
        "value": "low"
      }
    ]
  }
}
$ fm-t3-mcp.mjs resolve-selection --harness claude --instance claudeAgent --model claude-haiku-5-5 --effort invalid
exit=4
{
  "ok": false,
  "error": {
    "code": "effort_unsupported",
    "message": "backend=t3code cannot pass effort 'invalid' to harness 'claude': option 'effort' value 'invalid' is not one of low, medium, high, xhigh, max, ultrathink for model claude-haiku-5-5"
  }
}
fm-t3-mcp: backend=t3code cannot pass effort 'invalid' to harness 'claude': option 'effort' value 'invalid' is not one of low, medium, high, xhigh, max, ultrathink for model claude-haiku-5-5
$ fm-t3-mcp.mjs status 
exit=0
{
  "ok": true,
  "origin": "http://127.0.0.1:43773",
  "access": "full-access",
  "expiresAt": "2026-12-07T11:29:21.274Z",
  "daysLeft": 30,
  "environmentId": "4a4b079a-e6b0-42f8-b8a0-4d1490b116a8",
  "serverVersion": "0.1.8-nightly.20261107.4301",
  "recordedServerVersion": "0.1.8-nightly.20261107.4301",
  "telemetry": "off"
}
$ fm-t3-mcp.mjs project-ensure --root ~/.no-mistakes/worktrees/b38b47bec548/01M6TW2N0WHAV0YP4KA3JWP9YW/.validation-t3/project
exit=0
{
  "ok": true,
  "projectId": "mcp:9f591c66-7318-4cfd-9ca7-52e2ebdc492e",
  "created": false
}
$ fm-t3-mcp.mjs resolve-selection --harness claude --instance claudeAgent --model claude-haiku-5-5 --effort low --project mcp:9f591c66-7318-4cfd-9ca7-52e2ebdc492e
exit=0
{
  "ok": true,
  "driverKind": "claudeAgent",
  "selection": {
    "instanceId": "claudeAgent",
    "model": "claude-haiku-5-5",
    "options": [
      {
        "id": "effort",
        "value": "low"
      }
    ]
  }
}
$ fm-t3-mcp.mjs resolve-selection --harness claude --instance claudeAgent --model claude-sonnet-4-6 --effort high
exit=0
{
  "ok": true,
  "driverKind": "claudeAgent",
  "selection": {
    "instanceId": "claudeAgent",
    "model": "claude-sonnet-4-6",
    "options": [
      {
        "id": "effort",
        "value": "high"
      }
    ]
  }
}
$ fm-t3-mcp.mjs resolve-selection --harness claude --instance claudeAgent --model default --effort low --project mcp:9f591c66-7318-4cfd-9ca7-52e2ebdc492e
exit=0
{
  "ok": true,
  "driverKind": "claudeAgent",
  "selection": {
    "instanceId": "claudeAgent",
    "model": "claude-opus-5-5",
    "options": [
      {
        "id": "fastMode",
        "value": true
      },
      {
        "id": "effort",
        "value": "low"
      }
    ]
  }
}
$ fm-t3-mcp.mjs resolve-selection --harness claude --instance claudeAgent --model claude-haiku-5-5 --effort invalid
exit=4
{
  "ok": false,
  "error": {
    "code": "effort_unsupported",
    "message": "backend=t3code cannot pass effort 'invalid' to harness 'claude': option 'effort' value 'invalid' is not one of low, medium, high, xhigh, max, ultrathink for model claude-haiku-5-5"
  }
}
fm-t3-mcp: backend=t3code cannot pass effort 'invalid' to harness 'claude': option 'effort' value 'invalid' is not one of low, medium, high, xhigh, max, ultrathink for model claude-haiku-5-5
$ fm-t3-mcp.mjs resolve-selection --harness claude --instance claudeAgent --model no-such-model-validation --effort default
exit=4
{
  "ok": false,
  "error": {
    "code": "model_unknown",
    "message": "T3 instance 'claudeAgent' does not list model 'no-such-model-validation'; pass --model with a slug from its catalog"
  }
}
fm-t3-mcp: T3 instance 'claudeAgent' does not list model 'no-such-model-validation'; pass --model with a slug from its catalog
$ fm-t3-mcp.mjs project-ensure --root ~/.no-mistakes/worktrees/b38b47bec548/01M6TW2N0WHAV0YP4KA3JWP9YW/.validation-t3/should-not-exist
exit=4
{
  "ok": false,
  "error": {
    "code": "environment_mismatch",
    "message": "T3 at http://127.0.0.1:43773 is environment 4a4b079a-e6b0-42f8-b8a0-4d1490b116a8, not the different-lab-environment this credential was issued by; refusing to drive a different server",
    "environmentId": "4a4b079a-e6b0-42f8-b8a0-4d1490b116a8",
    "expected": "different-lab-environment"
  }
}
fm-t3-mcp: T3 at http://127.0.0.1:43773 is environment 4a4b079a-e6b0-42f8-b8a0-4d1490b116a8, not the different-lab-environment this credential was issued by; refusing to drive a different server
$ fm-t3-mcp.mjs launch --project mcp:9f591c66-7318-4cfd-9ca7-52e2ebdc492e --title Isolated ada

... [23665 bytes truncated] ...

3c7-023d7201e93a:thread-send:question-validation-legacy"
}
$ fm-t3-mcp.mjs requests 
exit=0
{
  "ok": true,
  "threadId": "mcp:dd52e56a-05dd-42bc-b071-cd77d2e0c775",
  "pendingRequestCount": 1,
  "questions": [
    {
      "requestId": "runtime-request:provider:claudeAgent:provider-turn:provider-turn%3Aprovider%3AclaudeAgent%3Anative-turn%3Aturn%253Arun-attempt%253Arun%253Arun%25253Athread%25253Amcp%2525253Add52e56a-05dd-42bc-b071-cd77d2e0c775%25253Aordinal%25253A1%253Aattempt%253A1:native-request:toolu_01DFMyw8MPrDSoj6ZdFPQ41j:c1773415-9f7b-4882-a551-8343834f68cb",
      "questions": [
        {
          "id": "Which validation colour?",
          "header": "Colour",
          "question": "Which validation colour?",
          "options": [
            {
              "label": "Blue",
              "description": "Choose Blue as the validation colour."
            },
            {
              "label": "Green",
              "description": "Choose Green as the validation colour."
            }
          ],
          "multiSelect": false
        }
      ]
    }
  ],
  "approvals": 0,
  "signature": "q:runtime-request:provider:claudeAgent:provider-turn:provider-turn%3Aprovider%3AclaudeAgent%3Anative-turn%3Aturn%253Arun-attempt%253Arun%253Arun%25253Athread%25253Amcp%2525253Add52e56a-05dd-42bc-b071-cd77d2e0c775%25253Aordinal%25253A1%253Aattempt%253A1:native-request:toolu_01DFMyw8MPrDSoj6ZdFPQ41j:c1773415-9f7b-4882-a551-8343834f68cb;a:0"
}
$ fm-t3-mcp.mjs respond --request missing-validation-request --answers-file ~/.no-mistakes/worktrees/b38b47bec548/01M6TW2N0WHAV0YP4KA3JWP9YW/.validation-t3/legacy-answers
exit=3
{
  "ok": false,
  "error": {
    "code": "invalid_request",
    "message": "T3 t3_pending_request_respond failed: The pending user-input request was not found.",
    "tool": "t3_pending_request_respond"
  }
}
fm-t3-mcp: T3 t3_pending_request_respond failed: The pending user-input request was not found.
$ fm-t3-mcp.mjs respond --request runtime-request:provider:claudeAgent:provider-turn:provider-turn%3Aprovider%3AclaudeAgent%3Anative-turn%3Aturn%253Arun-attempt%253Arun%253Arun%25253Athread%25253Amcp%2525253Add52e56a-05dd-42bc-b071-cd77d2e0c775%25253Aordinal%25253A1%253Aattempt%253A1:native-request:toolu_01DFMyw8MPrDSoj6ZdFPQ41j:c1773415-9f7b-4882-a551-8343834f68cb --answers-file ~/.no-mistakes/worktrees/b38b47bec548/01M6TW2N0WHAV0YP4KA3JWP9YW/.validation-t3/legacy-answers
exit=0
{
  "ok": true,
  "threadId": "mcp:dd52e56a-05dd-42bc-b071-cd77d2e0c775",
  "requestId": "runtime-request:provider:claudeAgent:provider-turn:provider-turn%3Aprovider%3AclaudeAgent%3Anative-turn%3Aturn%253Arun-attempt%253Arun%253Arun%25253Athread%25253Amcp%2525253Add52e56a-05dd-42bc-b071-cd77d2e0c775%25253Aordinal%25253A1%253Aattempt%253A1:native-request:toolu_01DFMyw8MPrDSoj6ZdFPQ41j:c1773415-9f7b-4882-a551-8343834f68cb"
}
$ fm-t3-mcp.mjs wait --timeout-ms 45000
exit=0
{
  "ok": true,
  "threadId": "mcp:dd52e56a-05dd-42bc-b071-cd77d2e0c775",
  "runId": "run:thread:mcp%3Add52e56a-05dd-42bc-b071-cd77d2e0c775:ordinal:1",
  "status": "completed",
  "timedOut": false
}
$ fm-t3-mcp.mjs read --limit 30
exit=0
{
  "ok": true,
  "thread": {
    "threadId": "mcp:dd52e56a-05dd-42bc-b071-cd77d2e0c775",
    "projectId": "mcp:dc51d8e6-366d-481d-afe8-fd5f4124aaa0",
    "title": "Isolated adapter validation legacy",
    "createdBy": "agent",
    "creationSource": "mcp",
    "status": "completed",
    "latestRunId": "run:thread:mcp%3Add52e56a-05dd-42bc-b071-cd77d2e0c775:ordinal:1",
    "activeRunId": null,
    "providerInstanceId": "claudeAgent",
    "model": "claude-haiku-5-5",
    "runtimeMode": "full-access",
    "interactionMode": "default",
    "linkedPullRequest": null,
    "titleRegeneration": null,
    "branch": null,
    "worktreePath": null,
    "parentThreadId": null,
    "relationshipToParent": null,
    "runCount": 1,
    "itemCount": 6,
    "pendingRequestCount": 0,
    "archived": false,
    "settled": false,
    "settledAt": null,
    "snoozed": false,
    "snoozedUntil": null,
    "createdAt": "2026-11-07T11:31:42.014Z",
    "updatedAt": "2026-11-07T11:32:25.158Z"
  },
  "recentRuns": [
    {
      "runId": "run:thread:mcp%3Add52e56a-05dd-42bc-b071-cd77d2e0c775:ordinal:1",
      "ordinal": 1,
      "status": "completed",
      "providerInstanceId": "claudeAgent",
      "model": "claude-haiku-5-5",
      "requestedAt": "2026-11-07T11:32:16.544Z",
      "startedAt": "2026-11-07T11:32:16.568Z",
      "completedAt": "2026-11-07T11:32:25.158Z"
    }
  ],
  "items": [
    {
      "position": 0,
      "visibility": "local",
      "sourceThreadId": "mcp:dd52e56a-05dd-42bc-b071-cd77d2e0c775",
      "itemId": "turn-item:message:message%3Amcp%3Aclient%253Adb88c02a-0abf-4d75-b3c7-023d7201e93a%3Athread-send%3Aquestion-validation-legacy",
      "runId": "run:thread:mcp%3Add52e56a-05dd-42bc-b071-cd77d2e0c775:ordinal:1",
      "messageId": "message:mcp:client%3Adb88c02a-0abf-4d75-b3c7-023d7201e93a:thread-send:question-validation-legacy",
      "createdBy": "agent",
      "creationSource": "mcp",
      "type": "user_message",
      "status": "completed",
      "title": null,
      "text": "This is a disposable integration test. Do not read or write files. Do not run commands. Use your AskUserQuestion tool now to ask: Which validation colour? Offer Blue and Green as options, with single selection. Wait for the answer. Then reply with exactly VALIDATION_COLOUR=<chosen colour>.",
      "textTruncated": false,
      "nextTextOffset": null,
      "updatedAt": "2026-11-07T11:32:16.544Z"
    },
    {
      "position": 4,
      "visibility": "local",
      "sourceThreadId": "mcp:dd52e56a-05dd-42bc-b071-cd77d2e0c775",
      "itemId": "turn-item:provider:claudeAgent:native-item:7cb7397e-aae6-4bd9-9e5a-7805928bfa05",
      "runId": "run:thread:mcp%3Add52e56a-05dd-42bc-b071-cd77d2e0c775:ordinal:1",
      "messageId": "message:provider:claudeAgent:native-item:7cb7397e-aae6-4bd9-9e5a-7805928bfa05",
      "createdBy": "agent",
      "creationSource": "provider",
      "type": "assistant_message",
      "status": "completed",
      "title": null,
      "text": "VALIDATION_COLOUR=Blue",
      "textTruncated": false,
      "nextTextOffset": null,
      "updatedAt": "2026-11-07T11:32:24.880Z"
    }
  ],
  "nextPosition": 4,
  "hasMore": false
}
$ fm-t3-mcp.mjs archive --timeout-ms 15000
exit=0
{
  "ok": true,
  "threadId": "mcp:dd52e56a-05dd-42bc-b071-cd77d2e0c775",
  "closed": true,
  "archived": true,
  "activeRunId": null,
  "status": "completed"
}

MISSING-CAPABILITY FAULT INJECTION AGAINST REAL NIGHTLY T3
{
  "setup": "Real T3 nightly server behind loopback proxy that only removes named tools from tools/list",
  "omitted": [
    "t3_pending_request"
  ],
  "exit": 4,
  "output": {
    "ok": false,
    "error": {
      "code": "capability_gate",
      "message": "T3 0.1.8-nightly.20261107.4301 at http://127.0.0.1:43776 lacks t3_pending_request; backend=t3code needs a T3 with the Orchestrator V2 thread tools (docs/t3code-backend.md)",
      "serverVersion": "0.1.8-nightly.20261107.4301",
      "missing": [
        "t3_pending_request"
      ]
    }
  },
  "stderr": "fm-t3-mcp: T3 0.1.8-nightly.20261107.4301 at http://127.0.0.1:43776 lacks t3_pending_request; backend=t3code needs a T3 with the Orchestrator V2 thread tools (docs/t3code-backend.md)",
  "forwardedToolCalls": []
}
{
  "setup": "Real T3 nightly server behind loopback proxy that only removes named tools from tools/list",
  "omitted": [
    "t3_thread_configure"
  ],
  "exit": 4,
  "output": {
    "ok": false,
    "error": {
      "code": "capability_gate",
      "message": "T3 0.1.8-nightly.20261107.4301 at http://127.0.0.1:43776 lacks t3_thread_configure; backend=t3code needs a T3 with the Orchestrator V2 thread tools (docs/t3code-backend.md)",
      "serverVersion": "0.1.8-nightly.20261107.4301",
      "missing": [
        "t3_thread_configure"
      ]
    }
  },
  "stderr": "fm-t3-mcp: T3 0.1.8-nightly.20261107.4301 at http://127.0.0.1:43776 lacks t3_thread_configure; backend=t3code needs a T3 with the Orchestrator V2 thread tools (docs/t3code-backend.md)",
  "forwardedToolCalls": []
}
Evidence: Validation context and cleanup

Source: Validation context and cleanup

Tested head: 62030a560e87d7640b4e26118f1f1de1e17277a6
Base: bf05a4fcd69b8bb27f261177eac4abb57f98aa1b
Real product: Firstmate adapter CLI against isolated loopback T3 servers.
T3 versions: 0.1.0, 0.1.7, 0.1.8-nightly.20261107.4301.
Old releases: official pingdotgg/t3code GitHub release tarballs, unpacked inside the worktree.
Telemetry disabled on all servers. Private base-dir per version.
Baseline login: exit 4 with original four missing tool names. Current logins: exit 0.
Live catalog/launch/guard drivers: exit 0 on all three versions.
Live questions drivers: exit 0 on all three versions.
Missing-capability driver: exit 0. Loopback proxy forwards to real nightly T3 and removes one capability from tools/list. No mutating tool call was forwarded.
Targeted deterministic regression: bash tests/fm-t3-mcp.test.sh, exit 0. This uses a fake server and is not live evidence.
Disposable drivers initially had two incorrect expected error-code names. They were corrected to the documented typed refusal codes and rerun successfully. No product changes were necessary.
CLI-only change. No rendered UI changed, so no screenshots were captured.
Cleanup: all three server sessions exited 130 after intentional termination. The proxy closed normally. No listener remains on lab ports 43773-43776. All temporary workspace files and downloaded releases were removed.

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 7 of 7 scenarios driven live against the product
Scenario Result Live Evidence
Sign in on T3 0.1.7 and nightly: the original refusal is reproduced, and the changed adapter succeeds. ✅ pass live Real T3 CLI transcripts: baseline-login, current-login, stable-login
Launch an idle full-access thread on current and legacy T3 versions with the requested model and effort. ✅ pass live Real T3 CLI transcripts: launch and configuration results across all three versions
Launch on T3 0.1.0 when both configuration tools exist without invoking its selection-required writer for reads. ✅ pass live legacy-live.jsonl and Real T3 CLI transcripts
Resolve compact and legacy catalogs, find an omitted model, and preserve a default boolean option when changing effort. ✅ pass live Real T3 CLI transcripts: resolve-selection results
Reject invalid effort, unknown models, and a different environment identity before mutation. ✅ pass live Real T3 CLI transcripts: effort_unsupported, model_unknown, and environment_mismatch responses
Reject a server missing either required merged capability before forwarding a mutating tool call. ✅ pass live Real T3 CLI transcripts: missing-capability fault injection
Read and answer a real Claude question, reject an unknown request, observe the selected answer, and archive the completed thread. ✅ pass live Real T3 CLI transcripts: requests, respond, read, and archive across all three versions
  • bash tests/fm-t3-mcp.test.sh
  • Ran isolated real T3 servers: 0.1.0, 0.1.7, and 0.1.8-nightly.20261107.4301.
  • Reproduced the original login failure using the base adapter against real nightly T3.
  • node .validation-t3/live.mjs nightly|stable|legacy
  • node .validation-t3/questions.mjs nightly|stable|legacy
  • node .validation-t3/capability-guards.mjs
  • Confirmed child exit statuses, stopped disposable servers, removed temporary files, and confirmed a clean worktree.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

Karan Manoharan added 3 commits November 7, 2026 10:28
T3 0.1.3 merged t3_thread_configuration into t3_thread_configure and the
three t3_pending_request_* tools into t3_pending_request (pingdotgg/t3code
#25423), so the adapter's capability gate refused every sign-in on T3
0.1.7 and 0.1.8 nightlies. T3 also compacted orchestrator_capabilities
(#22889): options now list plain values and the model list is short, with
omittedModels and a search input, so effort resolution refused every
spawn behind the gate.

The gate now accepts either the merged tool or every tool it replaced and
each verb calls the form the server lists, so T3 0.1.0 keeps working and a
server with neither is still refused. Option values are read from either
descriptor shape, and a model left off the short list is searched for by id.
The fake server serves the 0.1.3 shapes by default and 0.1.0 under legacy.
…ack usage which includes the launch method; T3 now lists both its configuration reader and writer and uses the reader when configured for legacy T3. Corrected the legacy fake tool list and added test cases for merged, legacy, and replaced tool lists. Verified ordinary launch read-back paths and legacy writer validation using the focused MCP test file
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-07T11:37:48.400140Z
We couldn’t complete this review. Comment @codex review to try again.
62030a5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@greptile-apps

greptile-apps Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with the previous finding fixed and no new actionable issues.

Reviews (2) · Last reviewed commit: "no-mistakes(ci): Captain, fixed failTool..." · Reviewed by Greptile

Comment thread tests/t3-fake-server.mjs Resolved
…s before translation, preserving legacy fallback. Added 12 regression cases covering configuration, all pending-request actions, and precedence. The regression failed before the fix. The full MCP suite, ShellCheck, syntax checks, and git diff --check now pass. Changes remain within the worktree
@ImZoomBoy

Copy link
Copy Markdown

Thanks for pointing us here from #8296.

I merged #8235 (head b144b6db) onto main at 14d06b04 with no conflicts, and ran tests/fm-t3-mcp.test.sh and tests/fm-backend-t3code.test.sh through bin/fm-test-run.sh with a scratch HOME and CLAUDE_CONFIG_DIR. Both pass:

FM_TEST_END ... tests/fm-t3-mcp.test.sh exit=0 ... gate_skip=false
FM_TEST_END ... tests/fm-backend-t3code.test.sh exit=0 ... gate_skip=false

Live, against T3 Code 0.1.8-nightly.20261108.4380 (one nightly after the 20261107 build you verified on): with this branch, bin/fm-t3-mcp.mjs status passes the capability gate and reports "ok": true with full access. Before, the same server was refused with the error in #8296. A live launch with a named model and effort is next, and I'll report back.

We are dropping our own patch, which preferred t3_thread_configure whenever it was listed. Thanks for explaining why reads must stay on t3_thread_configuration.

@ImZoomBoy

Copy link
Copy Markdown

Follow-up from a live run. With #8235 merged locally onto main at 14d06b04, on T3 Code 0.1.8-nightly.20261108.4380, First Mate started a read-only investigation thread on Opus 5.5 at medium effort, and the effort setting was applied. The thread ran its check, reported back and was archived on its own. Thanks again.

@karanmrn

Copy link
Copy Markdown
Contributor Author

Note

🤖 Claude Opus 5.5 responding on behalf of karanmrn

This PR is ready for triage. The head is b144b6db and it merges cleanly. The red Full suite row only means the full-ci label is not on yet. On 9 Nov another user merged it locally onto main and confirmed in a live run that the T3 Code catalogs and the effort setting work (comment above). Can you label it for Full CI when you have a slot?

@RibatTRW

Copy link
Copy Markdown
Contributor

Test results for this PR against T3 Code stable 0.1.10, offered as evidence for triage.

Setup

  • PR head b144b6db applied with git apply onto main at 427056c4. It applied cleanly.
  • T3 Code t3 v0.1.10, the npm latest tag. It ran as a separate loopback lab server with its own --base-dir and T3CODE_TELEMETRY_ENABLED=false.
  • A scratch Firstmate home with config/backend set to t3code, a scratch project with a bare origin, and a private Treehouse pool root.
  • Claude Code 2.1.327, codex-cli 0.170.0, node v26.13.1, treehouse v3.1.8, on Linux x86-64.

Baseline: unmodified main is refused on 0.1.10 at the capability gate. login and status both exit 4: lacks t3_thread_configuration, t3_pending_request_list, t3_pending_request_read, t3_pending_request_respond. A 0.1.7 lab server gave the same refusal.

With this PR applied

  • tests/fm-t3-mcp.test.sh and tests/fm-backend-t3code.test.sh: 123 ok, 0 failed.
  • status returned ok against 0.1.10, with telemetry: off.
  • The token-free live guard passed: ok - t3code live transport: T3 0.1.10 ... passes the gate (telemetry=off).
  • resolve-selection resolved claude-sonnet-4-6, which is outside 0.1.10's short catalog list, and resolved codex gpt-6-luna with reasoningEffort=low.
  • Claude scout (claude-haiku-5-5, effort low):
    • spawn: 2.5 s
    • its AskUserQuestion was listed and answered through fm-t3-answer.sh, and the scout used the answer
    • inbox steer acknowledged after 9.1 s
    • fm-control.sh interrupt during a python3 tool call: cancel=confirmed in 1.7 s, and the child process exited
    • exit and relaunch were refused, as documented for this backend
    • teardown: 2.3 s, with archived:true, activeRunId:null, and the slot back to available
  • Codex scout (gpt-6-luna, effort low): spawn, then done, then teardown to an archived thread.
  • FM_T3CODE_PR_TOOLS_LIVE=1 guard: ok - ... T3 0.1.10 with 2.1.327 (Claude Code) ... without a crash.

The sign-in itself was not repeated with this PR applied. These runs used an existing lab credential.

For information: the verification records in this PR cover 0.1.8 nightly, not 0.1.10.

These tests were run, and this comment was written, by an AI agent (Claude Code) on behalf of the account owner. No human reviewed it.

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.

3 participants