Skip to content

fix(bin): support long Herdr workspace mover socket paths - #8197

Open
karanmrn wants to merge 2 commits into
kunchenguid:mainfrom
karanmrn:fm/fm-up-herdr-mover-sock
Open

karanmrn wants to merge 2 commits into
kunchenguid:mainfrom
karanmrn:fm/fm-up-herdr-mover-sock

Conversation

@karanmrn

@karanmrn karanmrn commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Intent

Contribute this fork fix to kunchenguid/firstmate as an upstream pull request: the Herdr workspace mover cannot connect when the Herdr socket path is long. The fix is fork commit 514e48e on karanmrn/firstmate, which makes bin/backends/herdr-workspace-move.py connect to the Herdr session socket by basename from the socket's directory instead of by full path, because AF_UNIX socket addresses are capped near 104 bytes and a Herdr session socket beneath a deep home can exceed that. If upstream main already fixes the bug, open nothing and report that.

What Changed

  • Connect the Herdr workspace mover by socket basename from its directory, allowing full paths beyond the AF_UNIX address limit.
  • Add a regression test with a socket path longer than 108 bytes that checks the move request and response.
  • Document long socket path support and clarify that the backend verifies workspace order.

Risk Assessment

✅ Low: The bounded transport change matches the stated intent and preserves existing request validation, socket identity, and caller verification.

Testing

After correcting disposable driver setup, all four live scenarios and the focused regression passed. The baseline reproduced the connection failure. CLI transcripts and JSON state provide evidence for this headless transport change. Cleanup completed.

  • Live validation: ✅ go - 4 of 4 scenarios driven live against the product
Scenario Result Live Evidence
Move a workspace through a socket path beyond the AF_UNIX limit while preserving focus, labels, and other workspaces. ✅ pass live Live Herdr transcript; before-long-move.json; after-baseline-failure.json; after-long-move.json
Move a workspace through a normal-length socket path. ✅ pass live Live Herdr transcript; after-short-move.json
Move a workspace through a deep socket path containing spaces and multibyte characters. ✅ pass live Live Herdr transcript; after-unicode-space-path-move.json
Reject invalid requests and unavailable sockets without changing the live workspace order or focus. ✅ pass live Live Herdr transcript; after-rejected-request.json
Evidence: Live Herdr transcript

Source: Live Herdr transcript

$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "session", "list", "--json"]
{"sessions":[{"default":true,"name":"default","running":true,"session_dir":"~/.config/herdr","socket_path":"~/.config/herdr/herdr.sock"}]}
exit=0
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "provision", "fm-lab-mover-1363"]
exit=0
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "status", "--json"]
{"client":{"version":"0.9.5","channel":"stable","protocol":22,"endpoint_protocol_generation":1,"endpoint_capabilities":["surface_interest","presentation_effects_fence","health_check"],"remote_host_bridge":true,"remote_bridge_idle_timeout":true,"binary":"/opt/homebrew/bin/herdr","session":"fm-lab-mover-1363"},"server":{"status":"running","running":true,"version":"0.9.5","protocol":22,"capabilities":{"live_handoff":true,"detached_server_daemon":false,"endpoint_protocol_generation":1,"surface_interest":true,"health_check":true,"ssh_agent_registration":true},"compatible":true,"endpoint_compatible":true,"socket":".mover-lab/herdr/sessions/fm-lab-mover-1363/herdr.sock","session":"fm-lab-mover-1363","restart_needed":false,"server_binary_stale":false},"update":{"restart_needed":false,"server_binary_stale":false}}
exit=0
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "session", "list", "--json"]
{"sessions":[{"default":true,"name":"default","running":true,"session_dir":".mover-lab/herdr","socket_path":".mover-lab/herdr/herdr.sock"},{"default":false,"name":"fm-lab-mover-1363","running":true,"session_dir":".mover-lab/herdr/sessions/fm-lab-mover-1363","socket_path":".mover-lab/herdr/sessions/fm-lab-mover-1363/herdr.sock"}]}
exit=0
Absolute lab socket length: 139 bytes
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "workspace", "list"]
{"id":"cli:workspace:list","result":{"type":"workspace_list","workspaces":[]}}
exit=0
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "workspace", "create", "--label", "mover-anchor", "--cwd", "~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/.mover-lab/home", "--no-focus"]
{"id":"cli:workspace:create","result":{"root_pane":{"agent_status":"unknown","cwd":"~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/.mover-lab/home","focused":true,"foreground_cwd":"~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/.mover-lab/home","pane_id":"w1:p1","revision":0,"scroll":{"max_offset_from_bottom":0,"offset_from_bottom":0,"viewport_rows":40},"tab_id":"w1:t1","terminal_id":"term_65f8d5c3bf73e1","workspace_id":"w1"},"tab":{"agent_status":"unknown","focused":true,"label":"1","number":1,"pane_count":1,"tab_id":"w1:t1","workspace_id":"w1"},"type":"workspace_created","workspace":{"active_tab_id":"w1:t1","agent_status":"unknown","focused":true,"label":"mover-anchor","number":1,"pane_count":1,"tab_count":1,"workspace_id":"w1"}}}
exit=0
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "workspace", "list"]
{"id":"cli:workspace:list","result":{"type":"workspace_list","workspaces":[{"active_tab_id":"w1:t1","agent_status":"unknown","focused":true,"label":"mover-anchor","number":1,"pane_count":1,"tab_count":1,"workspace_id":"w1"}]}}
exit=0
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "workspace", "create", "--label", "mover-A", "--cwd", "~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/.mover-lab/home", "--no-focus"]
{"id":"cli:workspace:create","result":{"root_pane":{"agent_status":"unknown","cwd":"~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/.mover-lab/home","focused":false,"foreground_cwd":"~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/.mover-lab/home","pane_id":"w2:p1","revision":0,"scroll":{"max_offset_from_bottom":0,"offset_from_bottom":0,"viewport_rows":40},"tab_id":"w2:t1","terminal_id":"term_65f8d5c3c62702","workspace_id":"w2"},"tab":{"agent_status":"unknown","focused":false,"label":"1","number":1,"pane_count":1,"tab_id":"w2:t1","workspace_id":"w2"},"type":"workspace_created","workspace":{"active_tab_id":"w2:t1","agent_status":"unknown","focused":false,"label":"mover-A","number":2,"pane_count":1,"tab_count":1,"workspace_id":"w2"}}}
exit=0
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "workspace", "create", "--label", "mover-B", "--cwd", "~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/.mover-lab/home", "--no-focus"]
{"id":"cli:workspace:create","result":{"root_pane":{"agent_status":"unknown","cwd":"~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/.mover-lab/home","focused":false,"foreground_cwd":"~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/.mover-lab/home","pane_id":"w3:p1","revision":0,"scroll":{"max_offset_from_bottom":0,"offset_from_bottom":0,"viewport_rows":40},"tab_id":"w3:t1","terminal_id":"term_65f8d5c3c99e33","workspace_id":"w3"},"tab":{"agent_status":"unknown","focused":false,"label":"1","number":1,"pane_count":1,"tab_id":"w3:t1","workspace_id":"w3"},"type":"workspace_created","workspace":{"active_tab_id":"w3:t1","agent_status":"unknown","focused":false,"label":"mover-B","number":3,"pane_count":1,"tab_count":1,"workspace_id":"w3"}}}
exit=0
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "workspace", "create", "--label", "mover-C", "--cwd", "~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/.mover-lab/home", "--no-focus"]
{"id":"cli:workspace:create","result":{"root_pane":{"agent_status":"unknown","cwd":"~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/.mover-lab/home","focused":false,"foreground_cwd":"~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/.mover-lab/home","pane_id":"w4:p1","revision":0,"scroll":{"max_offset_from_bottom":0,"offset_from_bottom":0,"viewport_rows":40},"tab_id":"w4:t1","terminal_id":"term_65f8d5c3cd21b4","workspace_id":"w4"},"tab":{"agent_status":"unknown","focused":false,"label":"1","number":1,"pane_count":1,"tab_id":"w4:t1","workspace_id":"w4"},"type":"workspace_created","workspace":{"active_tab_id":"w4:t1","agent_status":"unknown","focused":false,"label":"mover-C","number":4,"pane_count":1,"tab_count":1,"workspace_id":"w4"}}}
exit=0
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "workspace", "focus", "w2"]
{"id":"cli:workspace:focus","result":{"type":"workspace_info","workspace":{"active_tab_id":"w2:t1","agent_status":"unknown","focused":true,"label":"mover-A","number":2,"pane_count":1,"tab_count":1,"workspace_id":"w2"}}}
exit=0
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "workspace", "list"]
{"id":"cli:workspace:list","result":{"type":"workspace_list","workspaces":[{"active_tab_id":"w1:t1","agent_status":"unknown","focused":false,"label":"mover-anchor","number":1,"pane_count":1,"tab_count":1,"workspace_id":"w1"},{"active_tab_id":"w2:t1","agent_status":"unknown","focused":true,"label":"mover-A","number":2,"pane_count":1,"tab_count":1,"workspace_id":"w2"},{"active_tab_id":"w3:t1","agent_status":"unknown

... [7396 bytes truncated] ...

AGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "workspace", "list"]
{"id":"cli:workspace:list","result":{"type":"workspace_list","workspaces":[{"active_tab_id":"w3:t1","agent_status":"unknown","focused":false,"label":"mover-B","number":1,"pane_count":1,"tab_count":1,"workspace_id":"w3"},{"active_tab_id":"w4:t1","agent_status":"unknown","focused":false,"label":"mover-C","number":2,"pane_count":1,"tab_count":1,"workspace_id":"w4"},{"active_tab_id":"w1:t1","agent_status":"unknown","focused":false,"label":"mover-anchor","number":3,"pane_count":1,"tab_count":1,"workspace_id":"w1"},{"active_tab_id":"w2:t1","agent_status":"unknown","focused":true,"label":"mover-A","number":4,"pane_count":1,"tab_count":1,"workspace_id":"w2"}]}}
exit=0
$ ["/opt/homebrew/opt/[email protected]/bin/python3.15", "~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/backends/herdr-workspace-move.py", "~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/.mover-lab/herdr/sessions/fm-lab-mover-1363/herdr.sock", "w2", "01"]
exit=2
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "workspace", "list"]
{"id":"cli:workspace:list","result":{"type":"workspace_list","workspaces":[{"active_tab_id":"w3:t1","agent_status":"unknown","focused":false,"label":"mover-B","number":1,"pane_count":1,"tab_count":1,"workspace_id":"w3"},{"active_tab_id":"w4:t1","agent_status":"unknown","focused":false,"label":"mover-C","number":2,"pane_count":1,"tab_count":1,"workspace_id":"w4"},{"active_tab_id":"w1:t1","agent_status":"unknown","focused":false,"label":"mover-anchor","number":3,"pane_count":1,"tab_count":1,"workspace_id":"w1"},{"active_tab_id":"w2:t1","agent_status":"unknown","focused":true,"label":"mover-A","number":4,"pane_count":1,"tab_count":1,"workspace_id":"w2"}]}}
exit=0
$ ["/opt/homebrew/opt/[email protected]/bin/python3.15", "~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/backends/herdr-workspace-move.py", "relative.sock", "w2", "0"]
exit=2
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "workspace", "list"]
{"id":"cli:workspace:list","result":{"type":"workspace_list","workspaces":[{"active_tab_id":"w3:t1","agent_status":"unknown","focused":false,"label":"mover-B","number":1,"pane_count":1,"tab_count":1,"workspace_id":"w3"},{"active_tab_id":"w4:t1","agent_status":"unknown","focused":false,"label":"mover-C","number":2,"pane_count":1,"tab_count":1,"workspace_id":"w4"},{"active_tab_id":"w1:t1","agent_status":"unknown","focused":false,"label":"mover-anchor","number":3,"pane_count":1,"tab_count":1,"workspace_id":"w1"},{"active_tab_id":"w2:t1","agent_status":"unknown","focused":true,"label":"mover-A","number":4,"pane_count":1,"tab_count":1,"workspace_id":"w2"}]}}
exit=0
$ ["/opt/homebrew/opt/[email protected]/bin/python3.15", "~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/backends/herdr-workspace-move.py", "~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/.mover-lab/herdr/sessions/fm-lab-mover-1363/herdr.sock", "bad\nworkspace", "0"]
exit=2
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "workspace", "list"]
{"id":"cli:workspace:list","result":{"type":"workspace_list","workspaces":[{"active_tab_id":"w3:t1","agent_status":"unknown","focused":false,"label":"mover-B","number":1,"pane_count":1,"tab_count":1,"workspace_id":"w3"},{"active_tab_id":"w4:t1","agent_status":"unknown","focused":false,"label":"mover-C","number":2,"pane_count":1,"tab_count":1,"workspace_id":"w4"},{"active_tab_id":"w1:t1","agent_status":"unknown","focused":false,"label":"mover-anchor","number":3,"pane_count":1,"tab_count":1,"workspace_id":"w1"},{"active_tab_id":"w2:t1","agent_status":"unknown","focused":true,"label":"mover-A","number":4,"pane_count":1,"tab_count":1,"workspace_id":"w2"}]}}
exit=0
$ ["/opt/homebrew/opt/[email protected]/bin/python3.15", "~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/backends/herdr-workspace-move.py", "~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/.mover-lab/missing-directory/herdr.sock", "w2", "0"]
exit=2
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "workspace", "list"]
{"id":"cli:workspace:list","result":{"type":"workspace_list","workspaces":[{"active_tab_id":"w3:t1","agent_status":"unknown","focused":false,"label":"mover-B","number":1,"pane_count":1,"tab_count":1,"workspace_id":"w3"},{"active_tab_id":"w4:t1","agent_status":"unknown","focused":false,"label":"mover-C","number":2,"pane_count":1,"tab_count":1,"workspace_id":"w4"},{"active_tab_id":"w1:t1","agent_status":"unknown","focused":false,"label":"mover-anchor","number":3,"pane_count":1,"tab_count":1,"workspace_id":"w1"},{"active_tab_id":"w2:t1","agent_status":"unknown","focused":true,"label":"mover-A","number":4,"pane_count":1,"tab_count":1,"workspace_id":"w2"}]}}
exit=0
$ ["/opt/homebrew/opt/[email protected]/bin/python3.15", "~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/backends/herdr-workspace-move.py", "~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/.mover-lab/herdr/sessions/fm-lab-mover-1363/absent.sock", "w2", "0"]
exit=2
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "workspace", "list"]
{"id":"cli:workspace:list","result":{"type":"workspace_list","workspaces":[{"active_tab_id":"w3:t1","agent_status":"unknown","focused":false,"label":"mover-B","number":1,"pane_count":1,"tab_count":1,"workspace_id":"w3"},{"active_tab_id":"w4:t1","agent_status":"unknown","focused":false,"label":"mover-C","number":2,"pane_count":1,"tab_count":1,"workspace_id":"w4"},{"active_tab_id":"w1:t1","agent_status":"unknown","focused":false,"label":"mover-anchor","number":3,"pane_count":1,"tab_count":1,"workspace_id":"w1"},{"active_tab_id":"w2:t1","agent_status":"unknown","focused":true,"label":"mover-A","number":4,"pane_count":1,"tab_count":1,"workspace_id":"w2"}]}}
exit=0
$ ["/opt/homebrew/opt/[email protected]/bin/python3.15", "~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/backends/herdr-workspace-move.py", "~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/.mover-lab/herdr/sessions/fm-lab-mover-1363/herdr.sock", "nonexistent-workspace-id", "0"]
exit=4
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "workspace", "list"]
{"id":"cli:workspace:list","result":{"type":"workspace_list","workspaces":[{"active_tab_id":"w3:t1","agent_status":"unknown","focused":false,"label":"mover-B","number":1,"pane_count":1,"tab_count":1,"workspace_id":"w3"},{"active_tab_id":"w4:t1","agent_status":"unknown","focused":false,"label":"mover-C","number":2,"pane_count":1,"tab_count":1,"workspace_id":"w4"},{"active_tab_id":"w1:t1","agent_status":"unknown","focused":false,"label":"mover-anchor","number":3,"pane_count":1,"tab_count":1,"workspace_id":"w1"},{"active_tab_id":"w2:t1","agent_status":"unknown","focused":true,"label":"mover-A","number":4,"pane_count":1,"tab_count":1,"workspace_id":"w2"}]}}
exit=0
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "teardown", "fm-lab-mover-1363"]
exit=0
$ ["~/.no-mistakes/worktrees/f4015f9d35fc/01M6PP50ZYJKAGPHE8S1D2HTM2/bin/fm-herdr-lab.sh", "run", "fm-lab-mover-1363", "session", "list", "--json"]
{"sessions":[{"default":true,"name":"default","running":true,"session_dir":".mover-lab/herdr","socket_path":".mover-lab/herdr/herdr.sock"}]}
exit=0
Teardown confirmed: lab session absent and default-session tripwire unchanged.
Evidence: Live scenario results

Source: Live scenario results

{
  "scenarios": [
    {
      "name": "A workspace moves through a real session socket beyond the AF_UNIX path limit, preserving other workspaces and focus",
      "result": "pass",
      "live": true,
      "evidence": "live-workspace-mover.log; before-long-move.json; after-baseline-failure.json; after-long-move.json",
      "reason": ""
    },
    {
      "name": "A workspace still moves through a normal-length socket path",
      "result": "pass",
      "live": true,
      "evidence": "live-workspace-mover.log; after-short-move.json",
      "reason": ""
    },
    {
      "name": "A deep socket path with spaces and multibyte characters moves the selected workspace",
      "result": "pass",
      "live": true,
      "evidence": "live-workspace-mover.log; after-unicode-space-path-move.json",
      "reason": ""
    },
    {
      "name": "Invalid move requests and unavailable sockets fail without reordering the live session",
      "result": "pass",
      "live": true,
      "evidence": "live-workspace-mover.log; after-rejected-request.json",
      "reason": ""
    }
  ],
  "teardown_ok": true
}
Evidence: Focused regression result

Source: Focused regression result

Existing targeted regression: test_workspace_mover_connects_to_socket_path_beyond_af_unix_limit
ok - herdr workspace mover reaches a 153-byte session socket beyond the AF_UNIX address limit
exit=0

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 - 4 of 4 scenarios driven live against the product
Scenario Result Live Evidence
Move a workspace through a socket path beyond the AF_UNIX limit while preserving focus, labels, and other workspaces. ✅ pass live Live Herdr transcript; before-long-move.json; after-baseline-failure.json; after-long-move.json
Move a workspace through a normal-length socket path. ✅ pass live Live Herdr transcript; after-short-move.json
Move a workspace through a deep socket path containing spaces and multibyte characters. ✅ pass live Live Herdr transcript; after-unicode-space-path-move.json
Reject invalid requests and unavailable sockets without changing the live workspace order or focus. ✅ pass live Live Herdr transcript; after-rejected-request.json
  • python3 ~/.no-mistakes/evidence/01M6PP50ZYJKAGPHE8S1D2HTM2/drive-workspace-mover.py against real Herdr 0.9.5 using the guarded named-session lab helper.
  • Executed the baseline mover from b77b66cb999876c4db19da36b9af5baaacdd52e5 against the same long socket and confirmed exit 2 with unchanged workspace state.
  • Executed only test_workspace_mover_connects_to_socket_path_beyond_af_unix_limit from tests/fm-backend-herdr.test.sh.
  • Confirmed successful teardown, unchanged default-session tripwire, no remaining test processes or fixtures, and a clean worktree.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T18:24:41.948624Z 5bdce4d 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.

@greptile-apps

greptile-apps Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Reviews (2) · Last reviewed commit: "no-mistakes(document): Document long Her..." · Reviewed by Greptile

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @karanmrn for this fix and for the thorough live Herdr transcript. Moving a workspace through a 149-byte socket path, a short path, and the refusal cases, with the layout checked after each step, is exactly the evidence this needs. I read head 5bdce4d0 against main b77b66cb. It merges cleanly, Greptile is 5/5, and the diff touches only bin/backends/herdr-workspace-move.py, its docs and a test, with no workflow or credential changes, so I've approved the fork CI runs.

This is waiting on you for one thing. The no-mistakes attestation binds this head, but its intent step is marked skipped. Our merge gate needs every pipeline step completed on the current head. Could you re-raise once through git push no-mistakes so that intent runs too? Your live evidence can stay as it is if the re-run keeps it.

Contract-class: restore. Workspace ordering over the named session socket is the documented default path (docs/herdr-backend.md, "Ordering"), and a long socket path broke it. VISION: One captain aligns (projected children stay grouped under their home). Authority: n/a. Scripts own the mechanics: aligns. Restart: n/a. Delegation with a spine: aligns. Vendor: aligns (Herdr adapter transport only, live-verified on herdr 0.9.5). Scope: aligns.

Related: #8198 makes the same basename fix for the event reader. They touch different scripts and only share doc and test files, so neither blocks the other.

Karan Manoharan added 2 commits November 5, 2026 20:24
AF_UNIX socket addresses are capped near 104 bytes on macOS and 108 on
Linux. A named Herdr session socket beneath a deep home can exceed that,
so the workspace mover's connect failed with "AF_UNIX path too long" and
exited 2, and projected workspaces were never ordered.

Connect by basename from the socket directory instead. The mover exits
after one request, so the chdir does not leak.

Add a regression that runs the real mover against a fake Herdr server
listening on a 155-byte socket path.
@karanmrn
karanmrn force-pushed the fm/fm-up-herdr-mover-sock branch from 5bdce4d to 9ae3f70 Compare November 5, 2026 20:32
@karanmrn karanmrn changed the title fix(bin): handle long Herdr session socket paths fix(bin): support long Herdr workspace mover socket paths Nov 5, 2026
@karanmrn

karanmrn commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Re-raised through no-mistakes. The new head is 9ae3f706c2ded85c8b618ed07c7e4c26469b02ef, and every step including intent completed on it. The live evidence in the description is unchanged. The fork CI runs for this head need approval.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @karanmrn for the clean re-raise. I read tip 9ae3f706 against main b77b66cb. The attestation now binds this head with every step completed, including intent, and none skipped. Live is go 4 of 4. Greptile stays 5/5 with nothing open. It merges cleanly. Contract-class stays restore (documented Herdr workspace ordering over the named session socket).

Next is ours, not yours. This head's fork CI runs are waiting on maintainer approval (action_required on CI 42104345169 and Require no-mistakes 42104409298 / 42104345266). Once those are approved and the quick checks come back green, this can take the full-ci label as a restore. Related #8198 still does not block this. Nothing for you to fix in the meantime.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @karanmrn — quick update only. On tip 9ae3f706 against main 8b1618a4, the coverage guard, repo invariants, and Require no-mistakes checks are green. The red Full suite row still only means the full-ci label isn't on yet. Related #8198 still does not block this. Nothing for you to do. Next step on our side is the full-ci label, then auto-merge after Full is green (restore). Rockets: none.

@karanmrn

Copy link
Copy Markdown
Contributor Author

Hi, a gentle check-in on this one. The 6 Nov triage note says the next step is the full-ci label, then auto-merge once Full is green. When you have a moment, could the label be added? If anything on our side needs changing first, please let me know and I will update the branch. Thank you!

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.

2 participants