Skip to content

fix(bin): answer Kimi 2.3.0's folder prompt and refuse one that announces project MCP servers - #7693

Merged
kunchenguid merged 5 commits into
kunchenguid:mainfrom
tiago-peixoto:fm/upstream-7658-kimi-230
Oct 24, 2026
Merged

kunchenguid merged 5 commits into
kunchenguid:mainfrom
tiago-peixoto:fm/upstream-7658-kimi-230

Conversation

@tiago-peixoto

@tiago-peixoto tiago-peixoto commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #7658.

Rebased onto main at d22640f, which includes the packing-at-budget fix 98f3bd8 that also touches bin/fm-test-run.sh; the rebase kept that fix and re-added only this change's timing hint and family mapping, and the one conflict (two new sentences at the same spot in docs/fm-test-portable-shards.md) was resolved by keeping both. All 19 checks pass on b47517d.

Intent

Fix all three Kimi Code CLI 2.3.0 breaks from #7658 together, so a Kimi worker launches again on 2.3.0, and so a 2.3.0 folder prompt that announces project MCP servers is refused rather than answered. Restoring launches is the existing default path; nothing new is on by default beyond that restore and the refusal the triage asked for, so there is no new switch.

Related: #6741 (issue #5226), which reads .kimi-code/mcp.json before launch and refuses a 2.1.1 prompt by its Project MCP targets: header. This pull request does not build on that branch or change it; its backstop and declaration read can be extended to the 2.3.0 wording and the root .mcp.json when it lands.

What changed

  • bin/fm-kimi-trust-lib.sh (new) owns the folder-prompt predicates over one visible-pane capture: the complete dialog in both recorded wordings (❯ Trust this folder / Don't trust on 2.0.0 and 2.1.1, ❯ Trust and continue / Exit on 2.3.0), any dialog marker, a paged disclosure (←→ page · N / M), and a project-server announcement (Start N MCP server(s) automatically over Config: <file>, either line alone).
  • bin/fm-spawn.sh sources it. Its Kimi readiness loop now refuses, before any key, a prompt that announces project MCP servers or pages its disclosure, failing the launch with the reason; a complete prompt with no announcement is answered as before, and the stuck-dialog diagnostics quote the wording the pane showed. kimi -p is untouched.
  • Why the prompt rather than a file: Kimi 2.3.0 reads a root .mcp.json at the git worktree root as a project declaration in addition to .kimi-code/mcp.json (its documentation names only the latter), and the prompt's Config: line names whichever file declared the servers. Reading the prompt covers every location the installed Kimi actually reads.
  • Why a paged prompt is refused: in a pane a few rows too short, Kimi keeps the title, hint, and both options on screen and pages the lines between them one at a time, so the announcement can sit on a hidden page behind a complete-looking dialog. A pane too short to confirm collapses the prompt to its title, which already fails the complete-dialog test.
  • Tests: tests/fm-kimi-harness.test.sh gains one case per recorded 2.3.0 wording, replayed from tests/captures/kimi-code-2.3.0/ (plain, root .mcp.json, .kimi-code/mcp.json, collapsed, paged); each guards its line (see below). tests/fm-kimi-trust-prompt-live-e2e.test.sh is a default-on, token-free live guard that launches the installed Kimi bare in a private tmux server with a disposable home and checks every wording; docs/verification/runtime-backends.md records its dated result.

Live evidence, Kimi Code CLI 2.3.0

Real bin/fm-spawn.sh driven against the real Kimi Code CLI 2.3.0 installed into an isolated prefix, with an isolated KIMI_CODE_HOME, the updater off, a private tmux server, and a disposable Firstmate home. Each declared server command appends a line to a marker log. The same runs against 2.3.1 (released the same day) gave the same results and renderings.

Before the fix

Every case stopped at the prompt with no key sent:

error: kimi did not show a verified ready signal before brief delivery; trust dialog text stayed on screen without the complete dialog, so the pane was never safe to answer or to treat as ready; inspect window lab:fm-kimi-230-plain

Plain directory (the prompt the launch could not recognize):

  Trust this folder?
  ↑↓ navigate · Enter select · Esc exit
  <lab>/runs/before-plain/wt
  No project integrations or instructions to activate.
  Trust is remembered for this folder, including future project config changes.
  Tool approvals follow your permission settings.
   ❯ Trust and continue
     Exit
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Root .mcp.json:

  Trust this folder?
  ↑↓ navigate · Enter select · Esc exit
  <lab>/runs/before-rootmcp/wt
  Start 1 MCP server automatically
    Config: .mcp.json
  Trust is remembered for this folder, including future project config changes.
  Tool approvals follow your permission settings.
   ❯ Trust and continue
     Exit
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Pressing Enter by hand on that prompt in the same lab started the declared command before any login (marker log afterwards):

1792766275 --from-root-mcp-json

After the fix

Plain directory: the prompt is answered, Kimi reaches its composer, and the brief pointer is typed and submitted. The lab has no login, so Kimi answers the submission with Error: LLM not set and the launch stops at delivery confirmation, which needs a model reply; the folder prompt is no longer the stopping point.

error: kimi brief pointer delivery was not confirmed; inspect window lab:fm-kimi-230-plain
 │  ▐█▛█▛█▌  Welcome to Kimi Code!                                                                                                                            │
 │  ▐█████▌  Run /login or /provider to get started.                                                                                                          │
 │  Directory: <lab>/runs/after-2.3.0-plain/wt                                               │
 │  Session:                                                                                                                                                  │
 │  Model:     not set, run /login or /provider                                                                                                               │
 │  Version:   2.3.0                                                                                                                                          │
 ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
   No session yet — one will be created on your first message.
   Error: LLM not set, send "/login" to login
 ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ >                                                                                                                                                          │
 ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
 Never Ask  …/runs/after-2.3.0-plain/wt  wt-plain                          /tasks to check progress and status for background tasks | /init: generate AGENTS.md
                                                                                                                                                    context: 0%

Root .mcp.json: refused before any key, marker log empty.

error: kimi's folder prompt announces project MCP servers, so Firstmate did not answer it and did not send the brief; answering would start those servers without a consent decision that covers them. Remove the project MCP servers this directory declares (the prompt's Config line names the file), or wait for a later consent design.; inspect window lab:fm-kimi-230-rootmcp
  Trust this folder?
  ↑↓ navigate · Enter select · Esc exit
  <lab>/runs/after-2.3.0-rootmcp/wt
  Start 1 MCP server automatically
    Config: .mcp.json
  Trust is remembered for this folder, including future project config changes.
  Tool approvals follow your permission settings.
   ❯ Trust and continue
     Exit
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
marker log: 0 lines

.kimi-code/mcp.json: refused before any key, marker log empty.

error: kimi's folder prompt announces project MCP servers, so Firstmate did not answer it and did not send the brief; answering would start those servers without a consent decision that covers them. Remove the project MCP servers this directory declares (the prompt's Config line names the file), or wait for a later consent design.; inspect window lab:fm-kimi-230-kimimcp
  Trust this folder?
  ↑↓ navigate · Enter select · Esc exit
  <lab>/runs/after-2.3.0-kimimcp/wt
  Start 1 MCP server automatically
    Config: .kimi-code/mcp.json
  Trust is remembered for this folder, including future project config changes.
  Tool approvals follow your permission settings.
   ❯ Trust and continue
     Exit
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
marker log: 0 lines

Root .mcp.json in a 14-row pane (the prompt pages; here the announcement happens to be on the shown page):

  Trust this folder?
  ↑↓ navigate · Enter select · Esc exit
  <lab>/runs/after-2.3.0-rootmcp-14rows/wt
  Start 1 MCP server automatically
  ←→ page · 1 / 2
  Trust is remembered for this folder, including future project config changes.
  Tool approvals follow your permission settings.
   ❯ Trust and continue
     Exit
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Live guard

===== guard against 2.3.0
# kimi 2.3.0: plain prompt options read 'Trust and continue' / 'Exit'
ok - kimi 2.3.0: a plain directory's folder prompt is the complete dialog, and Enter clears it into a ready pane
# kimi 2.3.0: root-mcp-json prompt announces: Start 1 MCP server automatically;Config: .mcp.json;
ok - kimi 2.3.0: a root-mcp-json declaration is announced on the folder prompt, which receives no answer, and its command never ran
# kimi 2.3.0: kimi-code-mcp-json prompt announces: Start 1 MCP server automatically;Config: .kimi-code/mcp.json;
ok - kimi 2.3.0: a kimi-code-mcp-json declaration is announced on the folder prompt, which receives no answer, and its command never ran
# kimi 2.3.0: 100x7 pane shows: Trust this folder?;Enlarge terminal to review sources. Esc exit.;
# kimi 2.3.0: 100x12 pane: the announcement is on a hidden page, so only the page marker refuses this prompt
ok - kimi 2.3.0: a short pane collapses the prompt below the complete dialog, and a slightly taller one pages it with the page marker on screen
ok - kimi 2.3.0: folder-prompt predicates agree with the installed Kimi on every recorded wording
exit=0

Test evidence

bash tests/fm-kimi-harness.test.sh: 35 ok. Mutations, each run separately and reverted: dropping the 2.3.0 option pair from the complete-dialog test fails the recorded 2.3.0 prompt with no project servers should be answered into a verified spawn; making the announcement predicate never fire fails a 2.3.0 prompt announcing a root .mcp.json server should not pass readiness; making the page predicate never fire fails a 2.3.0 prompt that pages its disclosure should not pass readiness. bin/fm-lint.sh, bin/fm-doc-audience-check.sh, and tests/fm-test-run.test.sh pass.

Not covered here

  • Brief delivery confirmation on 2.2.0 and later: Kimi 2.2.0 replaced the ✨ user-message bullet with ❯, so the confirmation's echoed-bullet signal cannot fire any more and only the nonzero-context fallback remains. The lab has no login, so this could not be observed live; worth a follow-up with a logged-in worker.
  • The Access N folder(s) outside this project disclosure (additional directories) is not refused; this pull request is scoped to project MCP servers.

Intent

Open one pull request for #7658 that fixes all three Kimi Code CLI 2.3.0 breaks together and makes any new default behavior opt-in. A 2.3.0 prompt that announces project servers is refused, not answered. The pull request carries live 2.3.0 evidence.

Issue 7658 in short: Kimi 2.3.0 rewords its folder prompt ("❯ Trust and continue" / "Exit", "No project integrations or instructions to activate.", or "Start N MCP server(s) automatically" with "Config: "). (1) kimi_trust_dialog_is_visible in bin/fm-spawn.sh still requires "❯ Trust this folder" and "Don't trust", so every Kimi launch on 2.3.0 stops at the prompt and fails with no key sent. (2) The "Project MCP targets:" header that the backstop in open PR 6741 matches is gone on 2.3.0. (3) Kimi 2.3.0 reads a root .mcp.json as a project server declaration, and the declaration check in PR 6741 reads only .kimi-code/mcp.json.

Kun's side triaged it (#7658 (comment)) as contract-class restore and labeled it ready-for-pr: restoring Kimi launches restores the existing default path; a fix for break 1 must refuse, not answer, any 2.3.0 prompt that announces project servers ("Start N MCP server" / "Config: .mcp.json"), with a test for each supported wording; the pull request should carry the live 2.3.0 evidence: plain directory passes, root .mcp.json and .kimi-code/mcp.json both refused before any key, marker log empty.

What Changed

  • bin/fm-spawn.sh now recognizes the Kimi Code CLI 2.3.0 folder prompt (❯ Trust and continue / Exit) alongside the 2.0.0 wording, so a Kimi launch on 2.3.0 answers the prompt instead of timing out with no key sent. The predicates move into a new bin/fm-kimi-trust-lib.sh shared with the live guard, and the readiness loop refuses, before the complete-dialog test, any prompt that announces project MCP servers (Start N MCP server(s) automatically / Config: <file>, covering both a root .mcp.json and .kimi-code/mcp.json) or that pages its disclosure (←→ page · N / M), failing readiness with the reason rather than pressing Enter.
  • Tests: tests/fm-kimi-harness.test.sh replays five recorded 2.3.0 panes under tests/captures/kimi-code-2.3.0/ (plain, root .mcp.json, .kimi-code/mcp.json, collapsed short terminal, paged); a new default-on live guard tests/fm-kimi-trust-prompt-live-e2e.test.sh launches the installed Kimi bare in a private tmux server and checks each wording against the real binary. bin/fm-test-run.sh maps the new lib and tests/captures/<dir>/ paths to their suites.
  • Docs: the Kimi adapter reference, docs/configuration.md, and docs/verification/runtime-backends.md record the 2.3.0 wordings, the refusal rules, and the observed live output for 2.3.0 and 2.3.1.

Risk Assessment

✅ Low: The change is confined to Kimi's folder-prompt predicates and their readiness-loop ordering, every recorded 2.3.0 pane traces to the intended verdict (plain answered once, announcing and paged refused before any key, collapsed never ready), the 2.0.0 wording keeps its path, the two earlier review decisions are honored, the capture-mapping arm mirrors the fixture arm and resolves to the Kimi suite, and the previously declined CI packing failure is fixed by main's commit now in this branch's ancestry.

Testing

Exercised the Kimi 2.3.0 folder-prompt change end to end against real Kimi binaries: the live guard tests/fm-kimi-trust-prompt-live-e2e.test.sh passed on 2.3.0 and 2.3.1; the real fm-spawn.sh in a lab FM_HOME refused the root .mcp.json and .kimi-code/mcp.json projects (and the paged 100x12 and collapsed 100x7 panes) with the intended reasons and an empty marker log, and answered the plain project's prompt and typed the brief pointer; bin/fm-test-run.sh --list --changed maps the new tests/captures files where the base commit's runner died. The replay suite tests/fm-kimi-harness.test.sh passed including the five recorded-pane cases, but that suite feeds recorded pane captures to fm-spawn instead of a running Kimi, so it does not count as a live result. Two environment issues were worked around and are not product defects: the host's mise shims fail when HOME is redirected (real interpreter dirs were put ahead on PATH), and Kimi 2.3.0 self-updated to 2.3.1 in place when the tmux pane lacked KIMI_CODE_NO_AUTO_UPDATE=1, so the lab was redone with the flag and a lab HOME set on the tmux session; the first run's real-home ~/.kimi-code and treehouse pool leftovers were removed. Brief delivery confirmation after the plain prompt is untested because no Kimi login exists on this host and the runbook forbids signing in. No UI screenshots: the surface is a terminal pane, captured as tmux capture-pane text.

  • Live validation: ✅ go - 8 of 10 scenarios driven live against the product
Scenario Result Live Evidence
Operator spawns a Kimi 2.3.0 worker on a plain project: fm-spawn recognizes the reworded prompt, answers it once, and types the brief pointer ✅ pass live fm-spawn-lab-transcript.txt (task lab2-plain: workspace-trust record for the plain worktree, brief pointer in user-history) and fm-spawn-kimi-2.3.0-lab2-plain.pane showing the composer with no dialog
After the plain prompt is answered, fm-spawn confirms brief delivery (cleared composer plus echoed submission or nonzero context) ⏸️ untested no Kimi rejects the submitted pointer without a logged-in model, so the delivery gate cannot pass. No Kimi Code login exists on this host and the runbook forbids signing in; a captain-provided Kimi login…
Operator spawns a Kimi 2.3.0 worker on a project whose root .mcp.json declares an MCP server: fm-spawn refuses before any key, names the reason, and the server never starts ✅ pass live fm-spawn-kimi-2.3.0-lab2-rootmcp.pane (prompt still showing 'Start 1 MCP server automatically / Config: .mcp.json'), fm-spawn-lab-transcript.txt (status 'failed: kimi's folder prompt announces project…
Operator spawns a Kimi 2.3.0 worker on a project whose .kimi-code/mcp.json declares an MCP server: fm-spawn refuses before any key and the server never starts ✅ pass live fm-spawn-kimi-2.3.0-lab2-kimimcp.pane ('Config: .kimi-code/mcp.json' still on screen), fm-spawn-lab-transcript.txt (lab2-kimimcp failed with the announcement reason, marker log 0 bytes)
Same root .mcp.json refusal holds on the current Kimi release 2.3.1 ✅ pass live fm-spawn-kimi-2.3.1-lab2-rootmcp-231.pane and fm-spawn-lab-transcript.txt (exe version 2.3.1, same refusal, marker log 0 bytes)
Adversarial: worker pane too short (100x12) so Kimi pages the disclosure and hides the announcement; fm-spawn refuses with the paged reason and sends no key ✅ pass live fm-spawn-kimi-2.3.0-lab2-paged12.pane ('←→ page · 1 / 5' with the complete dialog) and fm-spawn-lab-transcript.txt (status 'pages what trusting would activate', marker log 0 bytes)
Adversarial: worker pane collapsed to the title (100x7, 'Enlarge terminal to review sources'); fm-spawn never treats it as ready or answers it ✅ pass live fm-spawn-kimi-2.3.0-lab2-small7.pane and fm-spawn-lab-transcript.txt (status 'trust dialog text stayed on screen without the complete dialog', marker log 0 bytes)
Default-on live guard asks the installed Kimi 2.3.0 and 2.3.1: plain prompt recognized and cleared by Enter, both declaring directories announced and left unanswered with an empty marker log, short pa… ✅ pass live live-guard-kimi-2.3.0.log and live-guard-kimi-2.3.1.log
Portable regression replays the five recorded 2.3.0 panes through fm-spawn: plain answered once and brief delivered, announcing and paged prompts receive no key, collapsed prompt reports not ready; 2.… ⏸️ untested no This scenario is the replay suite tests/fm-kimi-harness.test.sh, which feeds recorded pane captures from tests/captures/kimi-code-2.3.0 to fm-spawn instead of a running Kimi, so it is a fixture-based…
Developer runs changed-test selection on this branch: the new tests/captures files select their readers instead of aborting as unmapped ✅ pass live changed-test-mapping-before-after.txt
Evidence: Live guard against real Kimi 2.3.0

Source: Live guard against real Kimi 2.3.0

FM_TEST_BEGIN 2026-10-24T03:15:04Z tests/fm-kimi-trust-prompt-live-e2e.test.sh family=live-harness-optin expected_gate_skip=live-capability
# kimi 2.3.0: plain prompt options read 'Trust and continue' / 'Exit'
ok - kimi 2.3.0: a plain directory's folder prompt is the complete dialog, and Enter clears it into a ready pane
# kimi 2.3.0: root-mcp-json prompt announces: Start 1 MCP server automatically;Config: .mcp.json;
ok - kimi 2.3.0: a root-mcp-json declaration is announced on the folder prompt, which receives no answer, and its command never ran
# kimi 2.3.0: kimi-code-mcp-json prompt announces: Start 1 MCP server automatically;Config: .kimi-code/mcp.json;
ok - kimi 2.3.0: a kimi-code-mcp-json declaration is announced on the folder prompt, which receives no answer, and its command never ran
# kimi 2.3.0: 100x7 pane shows: Trust this folder?;Enlarge terminal to review sources. Esc exit.;
# kimi 2.3.0: 100x12 pane: the announcement is on a hidden page, so only the page marker refuses this prompt
ok - kimi 2.3.0: a short pane collapses the prompt below the complete dialog, and a slightly taller one pages it with the page marker on screen
ok - kimi 2.3.0: folder-prompt predicates agree with the installed Kimi on every recorded wording
FM_TEST_END 2026-10-24T03:15:20Z tests/fm-kimi-trust-prompt-live-e2e.test.sh exit=0 duration_ms=15843 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=15910
FM_TEST_SUMMARY_FAMILY family=live-harness-optin count=1 duration_ms=15843 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-kimi-trust-prompt-live-e2e.test.sh duration_ms=15843
Evidence: Live guard against real Kimi 2.3.1

Source: Live guard against real Kimi 2.3.1

FM_TEST_BEGIN 2026-10-24T03:15:20Z tests/fm-kimi-trust-prompt-live-e2e.test.sh family=live-harness-optin expected_gate_skip=live-capability
# kimi 2.3.1: plain prompt options read 'Trust and continue' / 'Exit'
ok - kimi 2.3.1: a plain directory's folder prompt is the complete dialog, and Enter clears it into a ready pane
# kimi 2.3.1: root-mcp-json prompt announces: Start 1 MCP server automatically;Config: .mcp.json;
ok - kimi 2.3.1: a root-mcp-json declaration is announced on the folder prompt, which receives no answer, and its command never ran
# kimi 2.3.1: kimi-code-mcp-json prompt announces: Start 1 MCP server automatically;Config: .kimi-code/mcp.json;
ok - kimi 2.3.1: a kimi-code-mcp-json declaration is announced on the folder prompt, which receives no answer, and its command never ran
# kimi 2.3.1: 100x7 pane shows: Trust this folder?;Enlarge terminal to review sources. Esc exit.;
# kimi 2.3.1: 100x12 pane: the announcement is on a hidden page, so only the page marker refuses this prompt
ok - kimi 2.3.1: a short pane collapses the prompt below the complete dialog, and a slightly taller one pages it with the page marker on screen
ok - kimi 2.3.1: folder-prompt predicates agree with the installed Kimi on every recorded wording
FM_TEST_END 2026-10-24T03:15:36Z tests/fm-kimi-trust-prompt-live-e2e.test.sh exit=0 duration_ms=15771 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=15837
FM_TEST_SUMMARY_FAMILY family=live-harness-optin count=1 duration_ms=15771 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-kimi-trust-prompt-live-e2e.test.sh duration_ms=15771
Evidence: Real fm-spawn.sh lab transcript: spawn output, status files, Kimi binary versions, marker log, trust records, brief pointer

Source: Real fm-spawn.sh lab transcript: spawn output, status files, Kimi binary versions, marker log, trust records, brief pointer

Real bin/fm-spawn.sh --harness kimi runs inside a disposable lab FM_HOME (/tmp/fm-lab.YUqcdj) on a private tmux socket (fm-lab).
Kimi Code CLI binaries were downloaded from code.kimi.com into a disposable prefix with manifest checksums verified; KIMI_CODE_NO_AUTO_UPDATE=1 and HOME=/tmp/fm-lab.YUqcdj/home were set on the lab tmux session so Kimi used only the lab home.
Each project is a throwaway git repo; the declaring ones commit a .mcp.json or .kimi-code/mcp.json whose server command appends to /tmp/fm-lab.YUqcdj/marker.log.

################ task lab2-rootmcp
--- fm-spawn exit: rc=1
--- fm-spawn stderr/stdout:
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.YUqcdj
warning: /tmp/fm-lab.YUqcdj/data/lab2-rootmcp/launch-brief.md records no ship branch; defaulting to legacy branch fm/lab2-rootmcp
warning: /tmp/fm-lab.YUqcdj/data/lab2-rootmcp/launch-brief.md records no delivery contract line (scaffolded before ship briefs recorded one); launching on the explicit --mode local-only - confirm its definition of done matches
notice: lab2-rootmcp ships mode=local-only while the standing posture for root-mcp-json is no-mistakes - less rigor than the captain's standing posture; proceed only on a current explicit captain instruction or an intake judgment you can state
error: kimi's folder prompt announces project MCP servers, so Firstmate did not answer it and did not send the brief; answering would start those servers without a consent decision that covers them. Remove the project MCP servers this directory declares (the prompt's Config line names the file), or wait for a later consent design.; inspect window primary:fm-lab2-rootmcp
warning: leaving task lab2-rootmcp's slot claim on /tmp/fm-lab.YUqcdj/home/.treehouse/root-mcp-json-7848a3/1/root-mcp-json in place; the Treehouse project lock is no longer held, so the next spawn's claim replaces it
--- state/lab2-rootmcp.status:
failed [at=1792812253]: kimi's folder prompt announces project MCP servers, so Firstmate did not answer it and did not send the brief; answering would start those servers without a consent decision that covers them. Remove the project MCP servers this directory declares (the prompt's Config line names the file), or wait for a later consent design.

################ task lab2-kimimcp
--- fm-spawn exit: rc=1
--- fm-spawn stderr/stdout:
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.YUqcdj
warning: /tmp/fm-lab.YUqcdj/data/lab2-kimimcp/launch-brief.md records no ship branch; defaulting to legacy branch fm/lab2-kimimcp
warning: /tmp/fm-lab.YUqcdj/data/lab2-kimimcp/launch-brief.md records no delivery contract line (scaffolded before ship briefs recorded one); launching on the explicit --mode local-only - confirm its definition of done matches
notice: lab2-kimimcp ships mode=local-only while the standing posture for kimi-code-mcp-json is no-mistakes - less rigor than the captain's standing posture; proceed only on a current explicit captain instruction or an intake judgment you can state
error: kimi's folder prompt announces project MCP servers, so Firstmate did not answer it and did not send the brief; answering would start those servers without a consent decision that covers them. Remove the project MCP servers this directory declares (the prompt's Config line names the file), or wait for a later consent design.; inspect window primary:fm-lab2-kimimcp
warning: leaving task lab2-kimimcp's slot claim on /tmp/fm-lab.YUqcdj/home/.treehouse/kimi-code-mcp-json-c532dc/1/kimi-code-mcp-json in place; the Treehouse project lock is no longer held, so the next spawn's claim replaces it
--- state/lab2-kimimcp.status:
failed [at=1792812260]: kimi's folder prompt announces project MCP servers, so Firstmate did not answer it and did not send the brief; answering would start those servers without a consent decision that covers them. Remove the project MCP servers this directory declares (the prompt's Config line names the file), or wait for a later consent design.

################ task lab2-plain
--- fm-spawn exit: rc=1
--- fm-spawn stderr/stdout:
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.YUqcdj
warning: /tmp/fm-lab.YUqcdj/data/lab2-plain/launch-brief.md records no ship branch; defaulting to legacy branch fm/lab2-plain
warning: /tmp/fm-lab.YUqcdj/data/lab2-plain/launch-brief.md records no delivery contract line (scaffolded before ship briefs recorded one); launching on the explicit --mode local-only - confirm its definition of done matches
notice: lab2-plain ships mode=local-only while the standing posture for plain is no-mistakes - less rigor than the captain's standing posture; proceed only on a current explicit captain instruction or an intake judgment you can state
error: kimi brief pointer delivery was not confirmed; inspect window primary:fm-lab2-plain
warning: leaving task lab2-plain's slot claim on /tmp/fm-lab.YUqcdj/home/.treehouse/plain-d77725/1/plain in place; the Treehouse project lock is no longer held, so the next spawn's claim replaces it
--- state/lab2-plain.status:
failed [at=1792812296]: kimi brief pointer delivery was not confirmed

################ task lab2-rootmcp-231
--- fm-spawn exit: rc=1
--- fm-spawn stderr/stdout:
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.YUqcdj
warning: /tmp/fm-lab.YUqcdj/data/lab2-rootmcp-231/launch-brief.md records no ship branch; defaulting to legacy branch fm/lab2-rootmcp-231
warning: /tmp/fm-lab.YUqcdj/data/lab2-rootmcp-231/launch-brief.md records no delivery contract line (scaffolded before ship briefs recorded one); launching on the explicit --mode local-only - confirm its definition of done matches
notice: lab2-rootmcp-231 ships mode=local-only while the standing posture for root-mcp-json is no-mistakes - less rigor than the captain's standing posture; proceed only on a current explicit captain instruction or an intake judgment you can state
error: kimi's folder prompt announces project MCP servers, so Firstmate did not answer it and did not send the brief; answering would start those servers without a consent decision that covers them. Remove the project MCP servers this directory declares (the prompt's Config line names the file), or wait for a later consent design.; inspect window primary:fm-lab2-rootmcp-231
warning: leaving task lab2-rootmcp-231's slot claim on /tmp/fm-lab.YUqcdj/home/.treehouse/root-mcp-json-7848a3/2/root-mcp-json in place; the Treehouse project lock is no longer held, so the next spawn's claim replaces it
--- state/lab2-rootmcp-231.status:
failed [at=1792812304]: kimi's folder prompt announces project MCP servers, so Firstmate did not answer it and did not send the brief; answering would start those servers without a consent decision that covers them. Remove the project MCP servers this directory declares (the prompt's Config line names the file), or wait for a later consent design.

################ task lab2-paged12
--- fm-spawn exit: rc=1
--- fm-spawn stderr/stdout:
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.YUqcdj
warning: /tmp/fm-lab.YUqcdj/data/lab2-paged12/launch-brief.md records no ship branch; defaulting to legacy branch fm/lab2-paged12
warning: /tmp/fm-lab.YUqcdj/data/lab2-paged12/launch-brief.md records no delivery contract line (scaffolded before ship briefs recorded one); launching on the explicit --mode local-only - confirm its definition of done matches
notice: lab2-paged12 ships mode=local-only while the standing posture for root-mcp-json is no-mistakes - less rigor than the captain's standing posture; proceed only on a current explicit captain instruction or an intake judgment you can state
error: kimi's folder prompt pages what trusting would activate, so Firstmate could not read all of it and did not answer it; give the worker pane more rows and relaunch.; inspect window short12:fm-lab2-paged12
warning: leaving task lab2-paged12's slot claim on /tmp/fm-lab.YUqcdj/home/.treehouse/root-mcp-json-7848a3/3/root-mcp-json in place; the Treehouse project lock is no longer held, so the next spawn's claim replaces it
--- state/lab2-paged12.status:
failed [at=1792812367]: kimi's folder prompt pages what trusting would activate, so Firstmate could not read all of it and did not answer it; give the worker pane more rows and relaunch.

################ task lab2-small7
--- fm-spawn exit: rc=1
--- fm-spawn stderr/stdout:
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.YUqcdj
warning: /tmp/fm-lab.YUqcdj/data/lab2-small7/launch-brief.md records no ship branch; defaulting to legacy branch fm/lab2-small7
warning: /tmp/fm-lab.YUqcdj/data/lab2-small7/launch-brief.md records no delivery contract line (scaffolded before ship briefs recorded one); launching on the explicit --mode local-only - confirm its definition of done matches
notice: lab2-small7 ships mode=local-only while the standing posture for root-mcp-json is no-mistakes - less rigor than the captain's standing posture; proceed only on a current explicit captain instruction or an intake judgment you can state
error: kimi did not show a verified ready signal before brief delivery; trust dialog text stayed on screen without the complete dialog, so the pane was never safe to answer or to treat as ready; inspect window short7:fm-lab2-small7
warning: leaving task lab2-small7's slot claim on /tmp/fm-lab.YUqcdj/home/.treehouse/root-mcp-json-7848a3/4/root-mcp-json in place; the Treehouse project lock is no longer held, so the next spawn's claim replaces it
--- state/lab2-small7.status:
failed [at=1792812403]: kimi did not show a verified ready signal before brief delivery; trust dialog text stayed on screen without the complete dialog, so the pane was never safe to answer or to treat as ready

################ Kimi binaries behind the lab windows
pid=311428 cwd=/tmp/fm-lab.YUqcdj/home/.treehouse/root-mcp-json-7848a3/1/root-mcp-json exe=/tmp/fm-kimi-tool.3836342/kimi-2.3.0/bin/kimi --version=2.3.0
pid=317687 cwd=/tmp/fm-lab.YUqcdj/home/.treehouse/kimi-code-mcp-json-c532dc/1/kimi-code-mcp-json exe=/tmp/fm-kimi-tool.3836342/kimi-2.3.0/bin/kimi --version=2.3.0
pid=323521 cwd=/tmp/fm-lab.YUqcdj/home/.treehouse/plain-d77725/1/plain exe=/tmp/fm-kimi-tool.3836342/kimi-2.3.0/bin/kimi --version=2.3.0
pid=361156 cwd=/tmp/fm-lab.YUqcdj/home/.treehouse/root-mcp-json-7848a3/2/root-mcp-json exe=/tmp/fm-kimi-tool.3836342/kimi-2.3.1/bin/kimi --version=2.3.1
pid=407160 cwd=/tmp/fm-lab.YUqcdj/home/.treehouse/root-mcp-json-7848a3/3/root-mcp-json exe=/tmp/fm-kimi-tool.3836342/kimi-2.3.0/bin/kimi --version=2.3.0
pid=421508 cwd=/tmp/fm-lab.YUqcdj/home/.treehouse/root-mcp-json-7848a3/4/root-mcp-json exe=/tmp/fm-kimi-tool.3836342/kimi-2.3.0/bin/kimi --version=2.3.0

################ declared project MCP server marker log (/tmp/fm-lab.YUqcdj/marker.log)
bytes: 0

################ Kimi workspace-trust records in the lab home (only the plain worktree was trusted)
wd_plain_1ea2e0027fac
{"root":"/tmp/fm-lab.YUqcdj/home/.treehouse/plain-d77725/1/plain","trustedAt":1792812267248}

################ brief pointer Kimi received in the plain case (from the lab home's user-history)
Read the brief at /tmp/fm-lab.YUqcdj/data/lab2-plain/launch-brief.md and follow it exactly.
Evidence: Kimi 2.3.0 pane after fm-spawn refused the root .mcp.json project

Source: Kimi 2.3.0 pane after fm-spawn refused the root .mcp.json project

treehouse get
firstmate@firstmate-hz:/tmp/fm-lab.YUqcdj/projects-src/root-mcp-json$ treehouse get
🌳 Setting up worktree...
🌳 Entered worktree at ~/.treehouse/root-mcp-json-7848a3/1/root-mcp-json. Type 'exit' to return.
firstmate@firstmate-hz:~/.treehouse/root-mcp-json-7848a3/1/root-mcp-json$ cd -- '/tmp/fm-lab.YUqcdj/home/.treehouse/root-mcp-json-7848a3/1/root-mcp-json'
firstmate@firstmate-hz:~/.treehouse/root-mcp-json-7848a3/1/root-mcp-json$ export GOTMPDIR=/tmp/fm-lab2-rootmcp/gotmp
firstmate@firstmate-hz:~/.treehouse/root-mcp-json-7848a3/1/root-mcp-json$ export COMPACT_ADVISER_DISABLE=1
firstmate@firstmate-hz:~/.treehouse/root-mcp-json-7848a3/1/root-mcp-json$ export FM_TASK_ID=lab2-rootmcp
firstmate@firstmate-hz:~/.treehouse/root-mcp-json-7848a3/1/root-mcp-json$ . '/tmp/fm-lab2-rootmcp+40b7ae062d291029018cf3374925c3e23dc9164eaab62cc2998eb401aa7e35
09/launch.s1792812251.306124.253.sh'
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  Trust this folder?
  ↑↓ navigate · Enter select · Esc exit

  /tmp/fm-lab.YUqcdj/home/.treehouse/root-mcp-json-7848a3/1/root-mcp-json

  Start 1 MCP server automatically
    Config: .mcp.json

  Trust is remembered for this folder, including future project config changes.
  Tool approvals follow your permission settings.

   ❯ Trust and continue
     Exit
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Evidence: Kimi 2.3.0 pane after fm-spawn refused the .kimi-code/mcp.json project

Source: Kimi 2.3.0 pane after fm-spawn refused the .kimi-code/mcp.json project

treehouse get
firstmate@firstmate-hz:/tmp/fm-lab.YUqcdj/projects-src/kimi-code-mcp-json$ treehouse get
A new version of treehouse is available: v2.3.0 → v3.1.5
Run "treehouse update" to update

🌳 Setting up worktree...
🌳 Entered worktree at ~/.treehouse/kimi-code-mcp-json-c532dc/1/kimi-code-mcp-json. Type 'exit' to return.
firstmate@firstmate-hz:~/.treehouse/kimi-code-mcp-json-c532dc/1/kimi-code-mcp-json$ cd -- '/tmp/fm-lab.YUqcdj/home/.treehouse/kimi-code-mcp-json-c532dc/1/kimi-c
ode-mcp-json'
firstmate@firstmate-hz:~/.treehouse/kimi-code-mcp-json-c532dc/1/kimi-code-mcp-json$ export GOTMPDIR=/tmp/fm-lab2-kimimcp/gotmp
firstmate@firstmate-hz:~/.treehouse/kimi-code-mcp-json-c532dc/1/kimi-code-mcp-json$ export COMPACT_ADVISER_DISABLE=1
firstmate@firstmate-hz:~/.treehouse/kimi-code-mcp-json-c532dc/1/kimi-code-mcp-json$ export FM_TASK_ID=lab2-kimimcp
firstmate@firstmate-hz:~/.treehouse/kimi-code-mcp-json-c532dc/1/kimi-code-mcp-json$ . '/tmp/fm-lab2-kimimcp+40b7ae062d291029018cf3374925c3e23dc9164eaab62cc2998e
b401aa7e3509/launch.s1792812257.313179.1813.sh'
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  Trust this folder?
  ↑↓ navigate · Enter select · Esc exit

  /tmp/fm-lab.YUqcdj/home/.treehouse/kimi-code-mcp-json-c532dc/1/kimi-code-mcp-json

  Start 1 MCP server automatically
    Config: .kimi-code/mcp.json

  Trust is remembered for this folder, including future project config changes.
  Tool approvals follow your permission settings.

   ❯ Trust and continue
     Exit
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Evidence: Kimi 2.3.0 pane after fm-spawn answered the plain project's prompt

Source: Kimi 2.3.0 pane after fm-spawn answered the plain project's prompt

treehouse get
firstmate@firstmate-hz:/tmp/fm-lab.YUqcdj/projects-src/plain$ treehouse get
A new version of treehouse is available: v2.3.0 → v3.1.5
Run "treehouse update" to update

🌳 Setting up worktree...
🌳 Entered worktree at ~/.treehouse/plain-d77725/1/plain. Type 'exit' to return.
firstmate@firstmate-hz:~/.treehouse/plain-d77725/1/plain$ cd -- '/tmp/fm-lab.YUqcdj/home/.treehouse/plain-d77725/1/plain'
firstmate@firstmate-hz:~/.treehouse/plain-d77725/1/plain$ export GOTMPDIR=/tmp/fm-lab2-plain/gotmp
firstmate@firstmate-hz:~/.treehouse/plain-d77725/1/plain$ export COMPACT_ADVISER_DISABLE=1
firstmate@firstmate-hz:~/.treehouse/plain-d77725/1/plain$ export FM_TASK_ID=lab2-plain
firstmate@firstmate-hz:~/.treehouse/plain-d77725/1/plain$ . '/tmp/fm-lab2-plain+40b7ae062d291029018cf3374925c3e23dc9164eaab62cc2998eb401aa7e3509/launch.s1792812
264.319679.30750.sh'

 ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │                                                                                                                                                            │
 │  ▐█▛█▛█▌  Welcome to Kimi Code!                                                                                                                            │
 │  ▐█████▌  Run /login or /provider to get started.                                                                                                          │
 │                                                                                                                                                            │
 │  Directory: /tmp/fm-lab.YUqcdj/home/.treehouse/plain-d77725/1/plain                                                                                        │
 │  Session:                                                                                                                                                  │
 │  Model:     not set, run /login or /provider                                                                                                               │
 │  Version:   2.3.0                                                                                                                                          │
 │                                                                                                                                                            │
 ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

 ✦ Kimi K3.1 Pro is ready - use the model in a fresh session for the best results
   Standard: Plus/Moderato and above; Highspeed: Pro/Allegretto and above

   No session yet — one will be created on your first message.
   tmux extended-keys is off. Modified Enter keys may not work. Add `set -g extended-keys on` to ~/.tmux.conf and restart tmux.
   Error: LLM not set, send "/login" to login

 ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ >                                                                                                                                                          │
 ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
 Never Ask  …/plain-d77725/1/plain                                                                           /goal for multi-step work with a clear finish line
                                                                                                                                                    context: 0%
Evidence: Kimi 2.3.1 pane after fm-spawn refused the root .mcp.json project

Source: Kimi 2.3.1 pane after fm-spawn refused the root .mcp.json project

treehouse get
firstmate@firstmate-hz:/tmp/fm-lab.YUqcdj/projects-src/root-mcp-json$ treehouse get
A new version of treehouse is available: v2.3.0 → v3.1.5
Run "treehouse update" to update

🌳 Setting up worktree...
🌳 Entered worktree at ~/.treehouse/root-mcp-json-7848a3/2/root-mcp-json. Type 'exit' to return.
firstmate@firstmate-hz:~/.treehouse/root-mcp-json-7848a3/2/root-mcp-json$ cd -- '/tmp/fm-lab.YUqcdj/home/.treehouse/root-mcp-json-7848a3/2/root-mcp-json'
firstmate@firstmate-hz:~/.treehouse/root-mcp-json-7848a3/2/root-mcp-json$ export GOTMPDIR=/tmp/fm-lab2-rootmcp-231/gotmp
firstmate@firstmate-hz:~/.treehouse/root-mcp-json-7848a3/2/root-mcp-json$ export COMPACT_ADVISER_DISABLE=1
firstmate@firstmate-hz:~/.treehouse/root-mcp-json-7848a3/2/root-mcp-json$ export FM_TASK_ID=lab2-rootmcp-231
firstmate@firstmate-hz:~/.treehouse/root-mcp-json-7848a3/2/root-mcp-json$ . '/tmp/fm-lab2-rootmcp-231+40b7ae062d291029018cf3374925c3e23dc9164eaab62cc2998eb401aa
7e3509/launch.s1792812301.358054.4575.sh'
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  Trust this folder?
  ↑↓ navigate · Enter select · Esc exit

  /tmp/fm-lab.YUqcdj/home/.treehouse/root-mcp-json-7848a3/2/root-mcp-json

  Start 1 MCP server automatically
    Config: .mcp.json

  Trust is remembered for this folder, including future project config changes.
  Tool approvals follow your permission settings.

   ❯ Trust and continue
     Exit
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Evidence: Kimi 2.3.0 paged prompt in a 100x12 pane that fm-spawn refused

Source: Kimi 2.3.0 paged prompt in a 100x12 pane that fm-spawn refused

 ──────────────────────────────────────────────────────────────────────────────────────────────────
  Trust this folder?
  ↑↓ navigate · Enter select · Esc exit

  /tmp/fm-lab.YUqcdj/home/.treehouse/root-mcp-json-7848a3/3/root-mcp-json
  ←→ page · 1 / 5
  Trust is remembered for this folder, including future project config changes.
  Tool approvals follow your permission settings.

   ❯ Trust and continue
     Exit
 ──────────────────────────────────────────────────────────────────────────────────────────────────
Evidence: Kimi 2.3.0 collapsed prompt in a 100x7 pane that fm-spawn never answered

Source: Kimi 2.3.0 collapsed prompt in a 100x7 pane that fm-spawn never answered

ABLE=1
firstmate@firstmate-hz:~/.treehouse/root-mcp-json-7848a3/4/root-mcp-json$ export FM_TASK_ID=lab2-sma
ll7
firstmate@firstmate-hz:~/.treehouse/root-mcp-json-7848a3/4/root-mcp-json$ . '/tmp/fm-lab2-small7+40b
7ae062d291029018cf3374925c3e23dc9164eaab62cc2998eb401aa7e3509/launch.s1792812371.411579.10908.sh'
  Trust this folder?
  Enlarge terminal to review sources. Esc exit.
Evidence: Replay suite tests/fm-kimi-harness.test.sh

Source: Replay suite tests/fm-kimi-harness.test.sh

FM_TEST_BEGIN 2026-10-24T03:12:52Z tests/fm-kimi-harness.test.sh family=pure-contract-unit expected_gate_skip=none
ok - Kimi hook install is idempotent and removal restores every foreign config byte
ok - Kimi hook removal preserves owned newline boundaries and pristine bytes
ok - Kimi hook install refuses missing, malformed, and surprising config without writing
ok - Kimi hook install refuses without jq before any config write
ok - fm-spawn: kimi launches, delivers its brief, and registers a guarded turn-end token
ok - fm-spawn: unsafe task roots are refused, owned roots are tightened, and launch files stay unique and 0600
ok - Kimi hook stays silent and inert without a Firstmate registry token
ok - fm-spawn: unsafe Kimi global config refuses before pane creation
ok - fm-teardown: Kimi task pointer and registry token are removed
ok - fm-spawn: Kimi fallback expands the active HOME
ok - fm-spawn: missing Kimi executable refuses before pane creation
ok - fm-spawn: kimi treats a silent pointer drop as a failed spawn
ok - fm-spawn: kimi never sends the brief pointer before an observable ready signal
ok - fm-spawn: a fresh Kimi worktree answers the exact trust dialog once and verifies advancement
ok - fm-spawn: a swallowed Kimi trust keypress is re-sent until the dialog clears
ok - fm-spawn: a Kimi banner captured before the trust dialog paints does not read as ready
ok - fm-spawn: an answered Kimi trust dialog left in scrollback neither re-answers nor fails the spawn
ok - fm-spawn: a blank Kimi viewport frame costs its poll and nothing else
ok - fm-spawn: Kimi refuses a backend that cannot read the viewport, before launching
ok - fm-spawn: a Kimi trust dialog with its hint wrapped across rows is answered normally
ok - fm-spawn: a blank Kimi frame between banners restarts the two-capture ready count
ok - fm-spawn: a failed Kimi viewport read fails readiness with the backend named
ok - fm-spawn: Kimi refuses the ready verdict while trust dialog markers remain
ok - fm-spawn: a Kimi trust dialog must visibly clear before brief delivery
ok - fm-spawn: Kimi trust detection requires every observed dialog signal
ok - fm-harness: markerless kimi keeps its ancestry identity under an inherited marker
lock acquired: harness pid 4012690
ok - fm-lock recognizes Kimi ancestry and live lock holders
ok - busy detection: real Kimi moon-plus-middot captures require its harness while idle labels stay idle
ok - fm-watch classifies Kimi as unknown rather than from its spinner, and Grok's fallback stays isolated
ok - composer classifier: kimi's existing bordered > shape is already safe without an override
ok - fm-spawn: the recorded Kimi 2.3.0 prompt with no project servers is answered once and the brief is delivered
ok - fm-spawn: a recorded Kimi 2.3.0 prompt announcing a root .mcp.json server receives no key and reports why
ok - fm-spawn: a recorded Kimi 2.3.0 prompt announcing a .kimi-code/mcp.json server receives no key and reports why
ok - fm-spawn: a recorded Kimi 2.3.0 prompt collapsed to its title receives no key and reports that it is not ready
ok - fm-spawn: a recorded Kimi 2.3.0 prompt that pages its disclosure receives no key, because the announcement can sit on a hidden page
FM_TEST_END 2026-10-24T03:14:29Z tests/fm-kimi-harness.test.sh exit=0 duration_ms=96809 gate_skip=false
FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0 duration_ms=96886
FM_TEST_SUMMARY_FAMILY family=pure-contract-unit count=1 duration_ms=96809 failed=0
FM_TEST_SLOWEST rank=1 script=tests/fm-kimi-harness.test.sh duration_ms=96809
Evidence: Changed-test selection before and after the tests/captures mapping fix

Source: Changed-test selection before and after the tests/captures mapping fix

### base commit d22640f4 runner: --list --changed --base d22640f4 fm-test-run: no changed-test mapping for source path: tests/captures/kimi-code-2.3.0/README.md ### target commit runner: bin/fm-test-run.sh --list --changed --base d22640f4 exit=0 selected 115 scripts; the readers of tests/captures/* among them: tests/fm-crew-state.test.sh tests/fm-kimi-harness.test.sh tests/fm-kimi-trust-prompt-live-e2e.test.sh

\### base commit d22640f4 runner (copied in as bin/fm-test-run-base-tmp.sh for this call only): --list --changed --base d22640f4
fm-test-run: no changed-test mapping for source path: tests/captures/kimi-code-2.3.0/README.md

\### target commit runner: bin/fm-test-run.sh --list --changed --base d22640f4
exit=0
selected 115 scripts; the readers of tests/captures/* among them:
tests/fm-crew-state.test.sh
tests/fm-kimi-harness.test.sh
tests/fm-kimi-trust-prompt-live-e2e.test.sh

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

🔧 **Rebase** - 1 issue found → auto-fixed ✅
  • ⚠️ docs/fm-test-portable-shards.md - merge conflict rebasing onto origin/main

🔧 Fix applied.
✅ Re-checked - no issues remain.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 8 of 10 scenarios driven live against the product
Scenario Result Live Evidence
Operator spawns a Kimi 2.3.0 worker on a plain project: fm-spawn recognizes the reworded prompt, answers it once, and types the brief pointer ✅ pass live fm-spawn-lab-transcript.txt (task lab2-plain: workspace-trust record for the plain worktree, brief pointer in user-history) and fm-spawn-kimi-2.3.0-lab2-plain.pane showing the composer with no dialog
After the plain prompt is answered, fm-spawn confirms brief delivery (cleared composer plus echoed submission or nonzero context) ⏸️ untested no Kimi rejects the submitted pointer without a logged-in model, so the delivery gate cannot pass. No Kimi Code login exists on this host and the runbook forbids signing in; a captain-provided Kimi login…
Operator spawns a Kimi 2.3.0 worker on a project whose root .mcp.json declares an MCP server: fm-spawn refuses before any key, names the reason, and the server never starts ✅ pass live fm-spawn-kimi-2.3.0-lab2-rootmcp.pane (prompt still showing 'Start 1 MCP server automatically / Config: .mcp.json'), fm-spawn-lab-transcript.txt (status 'failed: kimi's folder prompt announces project…
Operator spawns a Kimi 2.3.0 worker on a project whose .kimi-code/mcp.json declares an MCP server: fm-spawn refuses before any key and the server never starts ✅ pass live fm-spawn-kimi-2.3.0-lab2-kimimcp.pane ('Config: .kimi-code/mcp.json' still on screen), fm-spawn-lab-transcript.txt (lab2-kimimcp failed with the announcement reason, marker log 0 bytes)
Same root .mcp.json refusal holds on the current Kimi release 2.3.1 ✅ pass live fm-spawn-kimi-2.3.1-lab2-rootmcp-231.pane and fm-spawn-lab-transcript.txt (exe version 2.3.1, same refusal, marker log 0 bytes)
Adversarial: worker pane too short (100x12) so Kimi pages the disclosure and hides the announcement; fm-spawn refuses with the paged reason and sends no key ✅ pass live fm-spawn-kimi-2.3.0-lab2-paged12.pane ('←→ page · 1 / 5' with the complete dialog) and fm-spawn-lab-transcript.txt (status 'pages what trusting would activate', marker log 0 bytes)
Adversarial: worker pane collapsed to the title (100x7, 'Enlarge terminal to review sources'); fm-spawn never treats it as ready or answers it ✅ pass live fm-spawn-kimi-2.3.0-lab2-small7.pane and fm-spawn-lab-transcript.txt (status 'trust dialog text stayed on screen without the complete dialog', marker log 0 bytes)
Default-on live guard asks the installed Kimi 2.3.0 and 2.3.1: plain prompt recognized and cleared by Enter, both declaring directories announced and left unanswered with an empty marker log, short pa… ✅ pass live live-guard-kimi-2.3.0.log and live-guard-kimi-2.3.1.log
Portable regression replays the five recorded 2.3.0 panes through fm-spawn: plain answered once and brief delivered, announcing and paged prompts receive no key, collapsed prompt reports not ready; 2.… ⏸️ untested no This scenario is the replay suite tests/fm-kimi-harness.test.sh, which feeds recorded pane captures from tests/captures/kimi-code-2.3.0 to fm-spawn instead of a running Kimi, so it is a fixture-based…
Developer runs changed-test selection on this branch: the new tests/captures files select their readers instead of aborting as unmapped ✅ pass live changed-test-mapping-before-after.txt
  • FM_KIMI_TRUST_PROMPT_LIVE=1 PATH=&lt;disposable kimi 2.3.0&gt;:... bin/fm-test-run.sh tests/fm-kimi-trust-prompt-live-e2e.test.sh (pass, 15.8 s)
  • FM_KIMI_TRUST_PROMPT_LIVE=1 PATH=&lt;disposable kimi 2.3.1&gt;:... bin/fm-test-run.sh tests/fm-kimi-trust-prompt-live-e2e.test.sh (pass)
  • bin/fm-test-run.sh tests/fm-kimi-harness.test.sh with real python/node dirs ahead of the mise shims (pass, all test_kimi_230_* cases; recorded-fixture replay, not live)
  • Real bin/fm-spawn.sh &lt;id&gt; &lt;lab project&gt; --harness kimi --mode local-only --yolo off inside a bin/fm-lab-home.sh create lab on tmux socket fm-lab, with HOME=<lab>/home and KIMI_CODE_NO_AUTO_UPDATE=1 set on the session: root .mcp.json project (Kimi 2.3.0 and 2.3.1), .kimi-code/mcp.json project, plain project, plus 100x12 and 100x7 sessions for the root .mcp.json project
  • Kimi process version proof via readlink /proc/&lt;pid&gt;/exe and &lt;exe&gt; --version for every lab window
  • Lab-home inspection: .kimi-code/workspace-trust/ holds only the plain worktree; .kimi-code/user-history holds the typed brief pointer; marker.log of the declared MCP server stayed 0 bytes
  • bin/fm-test-run.sh --list --changed --base d22640f4 on the target (exit 0, selects fm-kimi-harness, fm-kimi-trust-prompt-live-e2e, fm-crew-state) versus the base commit's runner (dies: no changed-test mapping for tests/captures/kimi-code-2.3.0/README.md)
  • Teardown: lab tmux server killed, lab home, disposable Kimi prefixes, per-task /tmp dirs and lab treehouse pools removed; worktree git status clean
⚠️ **Document** - 1 info
  • ℹ️ bin/fm-spawn.sh:3330 - The preflight refusal for a backend without viewport capture still reads "Kimi 2.0.0 gates a fresh worktree on a trust dialog ...". The branch records that 2.3.0 shows the same prompt in a new wording, and the header comment at bin/fm-spawn.sh:525 was updated to say so, but this operator-facing error string was not. No test asserts the string. It is executable output, not documentation, so this phase left it unchanged; a one-word edit (drop "2.0.0" or say "Kimi") in the code phase would align it with the header and the adapter reference.
✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @tiago-peixoto. This covers everything #7658 asked for in one PR, and it comes with real 2.3.0 evidence.

What I checked (head baacdc5c vs main af1c6817): kimi_trust_dialog_is_visible now accepts both the 2.0.0/2.1.1 pair (❯ Trust this folder / Don't trust) and the 2.3.0 pair (❯ Trust and continue / Exit), so a plain 2.3.0 folder prompt is answered again, the same as older versions. The new refusals (an announced Start N MCP server(s) automatically / Config: …mcp.json, or a paged ←→ page · disclosure) are checked before any key is sent, and they match only 2.3.0 prompt text. On main those prompts already stopped the launch with no key sent, so they now fail safely and give the reason. The older wordings take the same path as before, and kimi -p is untouched. The new live guard is a test, and nothing changes in the product's default runtime. There are no .github changes. The no-mistakes attestation binds baacdc5c, and live validation is go (7 of 9). The two gaps you named (brief-delivery confirmation with a logged-in worker, and a sized-session spawn for paged/collapsed prompts) are fine as follow-ups.

Contract-class (my own read): restore. Kimi launches are an existing default path that 2.3.0 broke, and the only other change is a refusal on prompts that couldn't launch on main anyway. VISION.md per rule: One captain aligns (the refusal names its reason) · Authority aligns (refuses instead of consenting to project MCP servers for the captain) · Scripts aligns (deterministic pane predicates) · Restart neutral · Delegation aligns (live guard + replay captures) · Vendor aligns (the rendered prompt is read by version-pinned, recorded predicates with their own live guard) · Scope aligns.

Status: waiting on CI, not on you. Two checks are red. Behavior portable serial 3 is the known fm-remote-reply NUL-line flake, and I've re-run the failed jobs. Behavior portable parallel 2 is the "packing exactly at the budget" test that is also failing on main. This PR adds a timing hint and family mapping in bin/fm-test-run.sh, so I'll wait for main's packing fix and a green run on this head before merging. If nothing else changes, I'll merge it then. Nothing is needed from you.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thanks again @tiago-peixoto. A quick update, and this one now needs something from you, sorry.

Main's "packing exactly at the budget" fix landed in 98f3bd84 (main is now 2ee22508). Since this PR changes bin/fm-test-run.sh, I need a green CI run on a merge ref that includes that fix before I can merge. The current runs on baacdc5c predate it, and a re-run reuses the old merge commit. The branch is also CONFLICTING with main now.

Could you rebase onto current main and push again (or re-raise via git push no-mistakes)? The attestation will need to bind the new head too. My earlier review stands: contract-class restore, VISION aligns on every rule, live go (7/9). If the fresh run is green and nothing else changes, I'll merge it then.

…nces project MCP servers

Kimi Code CLI 2.3.0 reworded its folder prompt: the options now read
"Trust and continue" and "Exit", so the complete-dialog test in
bin/fm-spawn.sh never passed and every Kimi launch stopped at the prompt
with no key sent. The same release reads a root .mcp.json at the git
worktree root as a project MCP declaration (its documentation names only
.kimi-code/mcp.json) and announces declared servers on the prompt as
"Start N MCP server(s) automatically" over "Config: <file>"; pressing
Enter there starts those servers before any login.

Move the prompt predicates into bin/fm-kimi-trust-lib.sh, recognize both
recorded wordings, and refuse, before any key, a prompt that announces
project servers or that pages its disclosure (a short pane keeps the
complete dialog on screen and can hide the announcement on another page).
The launch fails naming the reason; a prompt with no announcement is
answered as before, and kimi -p is untouched.

Replay the prompts recorded from the real 2.3.0 CLI through the Kimi
suite's fake pane, one case per wording.
Launch the installed Kimi bare in a private tmux server with a disposable
home and its updater off, and check every recorded prompt wording against
the predicates bin/fm-spawn.sh answers with: the plain prompt is complete
and Enter clears it, each declaring directory is announced and never
answered with its command never run, and short panes collapse or page the
prompt. No prompt text is submitted, so it spends no tokens and needs no
login. Record the dated 2.3.0 and 2.3.1 result in the verification record.
Name both recorded option pairs, the project-server announcement, the paged
and collapsed renderings, and the root .mcp.json read in the Kimi adapter
reference, and point the configuration guide's harness restrictions at it.
@tiago-peixoto
tiago-peixoto force-pushed the fm/upstream-7658-kimi-230 branch from baacdc5 to b47517d Compare October 24, 2026 03:36
@kunchenguid
kunchenguid merged commit 29c3e86 into kunchenguid:main Oct 24, 2026
20 checks passed
@kunchenguid

Copy link
Copy Markdown
Owner

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

Thanks for the quick rebase. The fresh run on b47517d8 (merge ref on d22640f4, which includes the packing fix) came back fully green, and the no-mistakes attestation binds that head. Contract-class stays restore: Kimi 2.3.0's reworded folder prompt no longer stalls every Kimi launch, and a prompt that announces project MCP servers or pages its disclosure still gets no key.

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.

Kimi Code CLI 2.3.0 folder prompt: plain directories never launch, and project MCP checks miss its new wording and root .mcp.json

2 participants