Task 5 Herdr socket request client exceeds the 350–600 line estimate (tracking)
Summary
Parent: #409 / #394. Tracking only — not a follow-up implementation.
Issue #409 estimated 350–600 lines and required material scope growth to become a separate issue. The socket-client branch (task-5-socket-client, 1607 insertions / 6 deletions versus task-4-server-discovery) is larger because #409 also required mock-socket protocol tests (fragmented lines, concurrent ids, disconnect, oversize, cancel, subscribe, no mutation retry) and an optional live ping/session.snapshot later tasks must depend on. Most of the extra is tests in transport.rs.
What grew
src-tauri/crates/infra/src/herdr/transport.rs(Unix NDJSON client, compile-time Windows named-pipe path, colocated protocol/live tests)src-tauri/crates/infra/src/herdr/mod.rs(export transport)src-tauri/crates/infra/src/herdr/process.rs(wait through live-but-not-running so live ping/snapshot can connect)src-tauri/crates/model/src/error.rs(HerdrTransport/HerdrUncertainOutcome)src-tauri/crates/service/src/runtime.rs(Local startup stays off the client)
The extra is in-scope socket-client work, including required tests. Frontend, legacy PTY ownership, RuntimeSelector default (Local), and the Herdr stub are unchanged. No snapshot sync, terminal-session attach, or worktree ownership was added.
Decision
Keep the extra coverage in Task 5. Splitting it into a later issue would leave Task 6 without the NDJSON client #409 asked it to depend on. This is not #400 (Task 1 tests/docs), #405 (Task 3 packaging), or #408 (Task 4 discovery).
No further production work belongs on this issue.
Measured on checkout task-3-line-count-trackers at f0ac78c0735e2664c5d8f42ca1dd5f0f6324f46c (#458 Task 3 / #461). Task 5 Herdr socket request client: this task's own stacked range, not origin/main...HEAD and not the #435 squash.
This re-count matches the tracker body's contemporaneous 1607 insertions / 6 deletions.
Command (exclude lockfiles + generated files; binary numstat - rows are not summed):
git diff --numstat origin/task-4-server-discovery...origin/task-5-socket-client -- . \
':(exclude)src/generated/' \
':(exclude)src/paraglide/' \
':(exclude)**/Cargo.lock' \
':(exclude)bun.lock' \
':(exclude)**/bun.lock' \
':(exclude)bun.lockb' \
':(exclude)**/bun.lockb' \
':(exclude)package-lock.json' \
':(exclude)**/package-lock.json' \
':(exclude)src-tauri/binaries/'
Resolved SHAs:
- base
origin/task-4-server-discovery=3e8fc4316b7abf986c3a39246fbf79bf27b04eb8(feat(app): drop Herdr client helpers on GUI exit without stopping the server) - tip
origin/task-5-socket-client=f1b8e72e425ac7539369f1a080f4094837428dcd(fix(infra): wait through Herdr's live-but-not-running startup) 5commit(s) inorigin/task-4-server-discovery..origin/task-5-socket-client
git diff --shortstat with the same range and pathspec:
5 files changed, 1607 insertions(+), 6 deletions(-)
+1607 / -6 = 1613
This work is already on task-17-shell-templates / task-10-launch-adopt and PR #435. Closing as superseded by #435. No remaining unshipped work on this tracker.