Task 6 Herdr runtime sync exceeds the 300–500 line estimate (tracking)
Summary
Parent: #411 / #394. Tracking only — not a follow-up implementation.
Issue #411 estimated 300–500 lines and required material scope growth to become a separate issue. The runtime-sync branch (task-6-runtime-sync, 1314 insertions / 9 deletions versus task-5-socket-client) is larger because #411 also required mock-socket bootstrap tests (events during snapshot, reconnect replace, stale-event drop, externally removed objects) later tasks must depend on. Most of the extra is tests in runtime_sync.rs.
What grew
src-tauri/crates/service/src/runtime_sync.rs(subscribe ack → buffer → snapshot → drain, reconnect replace, colocated projection/mock tests)src-tauri/crates/service/src/runtime/herdr.rs(read-onlyopen_runtime_sync; TerminalRuntime stays fail-closed)src-tauri/src/bridge.rs(herdr_runtime_synchelper; not started from Local startup)src-tauri/crates/service/src/runtime.rs(Local startup stays off sync)src-tauri/crates/infra/src/herdr/transport.rs(poll_eventfor the subscribe pump)
The extra is in-scope snapshot/event projection, including required tests. Frontend, legacy PTY ownership, RuntimeSelector default (Local), and Herdr terminal create/close stay unchanged. No DB mapping, terminal-session attach, or worktree ownership was added.
Decision
Keep the extra coverage in Task 6. Splitting it into a later issue would leave Task 7 without the recoverable projection #411 asked it to depend on. This is not #400 (Task 1 tests/docs), #405 (Task 3 packaging), #408 (Task 4 discovery), or #410 (Task 5 transport).
No further production work belongs on this issue.
Measured on checkout task-3-line-count-trackers at f0ac78c0735e2664c5d8f42ca1dd5f0f6324f46c (#458 Task 3 / #461). Task 6 Herdr runtime sync: this task's own stacked range, not origin/main...HEAD and not the #435 squash.
The tracker body named 1314 insertions / 9 deletions contemporaneously. That unfiltered count includes src-tauri/Cargo.lock (+1). This re-count excludes lockfiles as required.
Command (exclude lockfiles + generated files; binary numstat - rows are not summed):
git diff --numstat origin/task-5-socket-client...origin/task-6-runtime-sync -- . \
':(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-5-socket-client=f1b8e72e425ac7539369f1a080f4094837428dcd(fix(infra): wait through Herdr's live-but-not-running startup) - tip
origin/task-6-runtime-sync=f48b90f531cd5e22ef491a1d8f13f871bc40675a(test(service): write subscribe acks with writeln) 4commit(s) inorigin/task-5-socket-client..origin/task-6-runtime-sync
git diff --shortstat with the same range and pathspec:
7 files changed, 1313 insertions(+), 9 deletions(-)
+1313 / -9 = 1322
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.