Skip to content

docs(harness): correct Grok exit guidance - #742

Merged
kunchenguid merged 2 commits into
mainfrom
fm/fm-grok-exit-reverify-c5
Jul 19, 2026
Merged

kunchenguid merged 2 commits into
mainfrom
fm/fm-grok-exit-reverify-c5

Conversation

@kunchenguid

Copy link
Copy Markdown
Owner

Intent

Correct the stale empirically verified Grok exit-command fact in the shared harness-adapters skill. Re-verify the installed Grok version once in an isolated scratch tmux lab, confirm that /exit typed into the composer cleanly terminates the TUI process, and separately confirm that double Ctrl+Q remains a working fallback. Update only that Grok exit fact and its dated version-evidence stamp, preserve that Ctrl+D is the quit key in VS Code family terminals and Ctrl+C is interrupt rather than exit, use plain dashes and one sentence per line, and keep the change tiny and focused.

What Changed

  • Update Grok harness guidance to identify composer-entered /exit as the clean TUI exit path that prints the session resume command.
  • Retain double Ctrl+Q as a fallback, clarify Ctrl+D and Ctrl+C behavior, and refresh the exit-path evidence stamp for Grok 0.2.103.

Risk Assessment

✅ Low: The tiny, single-file documentation change satisfies the specified Grok exit-fact constraints without affecting executable behavior or dependent code.

Testing

The supplied full-suite baseline had already passed; focused live tmux checks verified both Grok exit paths on 0.2.103, the evidence transcript captures the user-visible resume output and clean exits, and the worktree remained clean.

Evidence: Live Grok exit-path verification transcript
Grok exit verification - target c349c37a1bd8a971e65d0911387fa91c62162942

Installed binary: grok 0.2.103 (89c3d36fb6f1) [stable]

Slash-command path
Action: selected New worktree in an isolated tmux lab, typed /exit, waited 1 second for autocomplete, then pressed Enter.
Resume this session with:
  grok --resume 019f7c4d-dd88-7f92-9cfc-1241cb3cda95
[tmux-wrapper] grok_exit_status=0
tmux pane: dead=1 command=grok status=0

Ctrl+Q fallback path
Action: selected New worktree in a second isolated tmux lab, then pressed Ctrl+Q twice 200ms apart.
Resume this session with:
  grok --resume 019f7c4e-c316-7493-8c67-85e18b2f6e0f
[tmux-wrapper] grok_exit_status=0
tmux pane: dead=1 command=grok status=0

Documentation acceptance check
Changed file: .agents/skills/harness-adapters/SKILL.md
Fact: | Exit command | `/exit` typed into the composer exits the TUI cleanly and prints `Resume this session with: grok --resume <session-id>`; `Ctrl+Q` double-press within 1000ms remains a fallback; `Ctrl+D` is the quit key in VS Code family terminals; `Ctrl+C` is the interrupt, not the exit. |
Result: required exit-path wording, Ctrl+D/Ctrl+C preservation, one sentence, no em dash, and whitespace validation passed.
- Outcome: 🔧 1 issue found → auto-fixed ✅ across 2 runs (59m57s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

🔧 **Test** - 1 issue found → auto-fixed ✅
  • 🚨 .agents/skills/harness-adapters/SKILL.md:243 - The exit fact says double Ctrl+Q "prints Resume this session with...", but live Grok 0.2.103 showed that text only for /exit. Ctrl+Q showed its confirmation, then exited with code 0 and no resume text. Move the resume-output claim to /exit or remove it from Ctrl+Q.
  • 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"
  • Baseline supplied as passed: command -v tmux &gt;/dev/null || { echo &#34;tmux is required for e2e tests&#34; &gt;&amp;2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo &#34;== $t ==&#34;; bash &#34;$t&#34; || rc=1; done; exit &#34;$rc&#34;
  • grok --version - verified installed grok 0.2.103 (89c3d36fb6f1) [stable]
  • bash tests/fm-grok-harness.test.sh
  • Manual isolated tmux lab: launched grok --always-approve, typed /exit into the composer, pressed Enter, and captured the rendered TUI plus exit code
  • Manual isolated tmux lab: launched a fresh Grok TUI, sent Ctrl+Q twice 250ms apart, captured its confirmation plus exit code
  • git diff --check b2bf95fa9e1eac5ff23eb0ea7f6c5241bfdf82eb..dbc35a1121dfa46d0627967dd172bee2bd6444ad and worktree-status check

🔧 Fix: Correct Grok exit resume attribution
✅ 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"
  • Provided baseline, already successful: command -v tmux &gt;/dev/null || { echo &#34;tmux is required for e2e tests&#34; &gt;&amp;2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo &#34;== $t ==&#34;; bash &#34;$t&#34; || rc=1; done; exit &#34;$rc&#34;
  • git diff --check b2bf95fa9e1eac5ff23eb0ea7f6c5241bfdf82eb c349c37a1bd8a971e65d0911387fa91c62162942
  • Live isolated tmux lab with Grok 0.2.103: selected New worktree, typed /exit, waited one second for autocomplete, and pressed Enter. The retained pane showed the resume command and exit status 0.
  • Live isolated tmux lab with Grok 0.2.103: selected New worktree and pressed Ctrl+Q twice 200ms apart. The first press displayed the confirmation and the process exited with status 0.
  • Focused documentation acceptance check for the changed fact: required /exit, Ctrl+Q fallback, Ctrl+D, Ctrl+C, one-sentence, plain-dash, changed-file scope, and whitespace constraints.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@kunchenguid
kunchenguid merged commit 15b0fb9 into main Jul 19, 2026
5 checks passed
@kunchenguid
kunchenguid deleted the fm/fm-grok-exit-reverify-c5 branch July 19, 2026 22:02
kirubeltadesse added a commit to kirubeltadesse/firstmate that referenced this pull request Jul 20, 2026