Repository navigation
Conversation
b57b67a to
34168ee
Compare
34168ee to
6ea74dd
Compare
|
Heads up on CI for this update: the "Behavior tests" job on attempt 2 hit its 15-minute job timeout partway through the suite (right after the watcher-lock tests) and was cancelled — not a real failure. The other four checks (lint, repo invariants, macOS Bash snapshot compatibility, and the no-mistakes provenance check) all passed, and the full suite passes locally on my end. Could you rerun the cancelled job when convenient? It got through nearly the entire suite before the cap, so a rerun should have a good shot at finishing in time. Separately: this PR added a couple of Kimi-adapter regression tests, and I noticed the suite (particularly the watcher-lock/watch-triage coverage) is running noticeably closer to the 15-minute budget than it used to. Happy to follow up with a CI-time optimization (e.g. splitting the job or trimming slow paths) if suite duration on your runners becomes a recurring concern. |
6ea74dd to
bad1a26
Compare
Rebased onto current upstream main (f9a89c3) to resolve the merge conflicts in bin/fm-spawn.sh's spawn_abort_cleanup between the Kimi config lock/snapshot cleanup and upstream's newer Herdr presentation order lock cleanup - both cleanup steps are preserved. Also restores the executable bit on tests/fm-kimi-harness.test.sh, lost during a prior catch-up merge (content was unchanged; CI's direct-exec test runner requires it, matching every other test file in tests/).
The review step's re-examination of the full branch diff found that a raw kimi launch bypasses the tmux-only backend gate entirely (raw launches were only exempt from the secondmate-scope check, not intended to bypass the backend-delivery gate too), reaching deliver_kimi_brief's unconditional tmux load-buffer/paste-buffer calls on any backend. Per the captain's decision: implement the real fix rather than defer or refuse the PR. Split the kimi launch gates into two independent checks - secondmate scope (template-only, unchanged, raw stays exempt per the existing kimi-raw-scope-bypass decision) and brief-delivery backend capability (now applies to both template and raw launches). Empirically verified in an isolated herdr lab session (no fleet/production sessions touched) that herdr's pane send-text has no atomic multi-line paste primitive: like tmux's plain, non-bracketed send-keys -l, it executes per embedded newline as it arrives instead of holding the text unsubmitted, so it is not a safe drop-in for the shared fm_backend_send_text_submit primitive here. This is a real capability gap, not a wiring gap - tmux's bracketed paste (load-buffer + paste-buffer -p -d) remains the only verified-safe delivery mechanism, so deliver_kimi_brief keeps calling it directly rather than routing through the generic shared primitive, while its composer-readiness wait now goes through the shared, backend-abstracted fm_backend_composer_state (also used by fm-send.sh and the away-mode daemon) instead of a direct tmux-only call. Extends the two affected tests (kimi spawn on a non-tmux backend, raw kimi scope exemption) to assert the corrected behavior, and updates the harness-adapters skill's kimi section with the dated empirical finding.
b2060b1 to
1fb9a64
Compare
|
Automated reminder: thanks for the PR! This branch currently has a merge conflict with the base branch. When you get a chance, please rebase onto (or merge) the latest base branch, resolve the conflict, and push. After that, checks will re-run and the PR will get looked at again. Noted for firstmate#717 at |
|
Automated reminder: this PR still looks blocked on a rebase or merge conflict fix. If you are still interested, please rebase onto the current base branch, resolve the conflict, and push. If I do not hear back, I may close this as inactive. |
|
I am closing this because it has been waiting on a rebase or merge-conflict fix since 2026-07-23, and I have not seen a comment or push since then. If you still want to keep working on this, please reopen it or open a new PR and mention this one. Happy to take another look when there is an update. |
|
🤖 Written by Tern (Claude, AI), posted under David Stout's account. Contract numbering for the UI side. The held reads and the writes ship as two pull requests, so they take two contract numbers: |
Intent
The developer wanted to fix failure handling so metadata is not written after a redirection error. They also wanted to correct the replacement-watcher test’s malformed assertion and confirm the targeted tests pass.
What Changed
kimi-codeas a verified tmux-only crewmate/scout harness, including model selection, process detection, dispatch validation, and post-launch brief delivery.Risk Assessment
✅ Low: The prior Kimi pointer/home and Grok recovery issues are addressed; the current recovery metadata path is bounded and consistent with teardown.
Testing
Completed 1 recorded test check.
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 2 issues found → auto-fixed (2) ✅
bin/fm-spawn.sh:1513- The token pointer is written by shell redirection to a worktree-controlled name, which follows a pre-existing symlink. A repository containing.fm-kimi-turnend -> /some/filecan cause a Kimi spawn to overwrite that target before the worker starts. Write to an adjacent temporary file and rename it over the pointer (or otherwise refuse symlinks).bin/fm-spawn.sh:562-KIMI_CODE_HOMEis preserved verbatim when the pane is launched. A relative value is resolved relative to fm-spawn's cwd while setup runs, but relative to the task worktree inside tmux, so Kimi loads a different config and misses the installed hook; teardown can likewise miss its registry. Canonicalize it to an absolute path before setup, metadata, and launch injection.🔧 Fix: Captain: harden Kimi pointer and home paths
1 warning still open:
bin/fm-spawn.sh:1452- The new safe-pointer refusal occurs after Grok has created its registry file and state token, but before its normal metadata write. The EXIT trap does not persist recovery metadata for tmux, so a symlink/directory refusal leaves an orphaned window/worktree and token thatfm-teardowncannot discover. Write recovery metadata before this call (as Kimi already does), or explicitly roll back the Grok resources on failure.🔧 Fix: Captain: preserve Grok pointer-refusal recovery metadata
✅ Re-checked - no issues remain.
command -v tmux >/dev/null || { echo "tmux is required for e2e tests" >&2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo "== $t =="; bash "$t" || rc=1; done; exit "$rc"✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.