Task 2 Herdr default runtime exceeds the 300–550 line estimate (tracking)
Summary
Parent: #439 / #436. Tracking only — not a follow-up implementation.
Issue #439 estimated 300–550 lines and required material scope growth to become a separate issue. The default-runtime branch (task-2-herdr-default-runtime, 633 insertions / 74 deletions versus task-1-client-mode-contract, excluding generated bindings) is larger because #439 also required fail-closed GUI attach (sidecar resolve, ensure_herdr_listener on namespace 2code, JSON + CLI injection), an explicit TWOCODE_RUNTIME=local / --twocode-runtime=local path that skips ensure, inverted Local-default tests, contract docs, and the terminalTransport.ts unbound-id comment.
What grew
src-tauri/crates/service/src/runtime.rs(GUI connect/fail-closed + env/flag parse + inverted constructor tests)src-tauri/crates/service/src/runtime/herdr.rs(with_json_clients/fail_closed)src-tauri/src/bridge.rsand colocated profile/project/pty_db Local-path helpersdocs/herdr-integration.md(Task 2 done on this branch)src/features/terminal/lib/terminalTransport.ts(+ test) so unbound ids follow the selected Herdr default
All of that is the Task 2 switch plus tests and docs. It is not Task 3+ scope: no profile-list rewrite, mapping-table drop, pty_sessions replacement, Git/file-tree retarget, launch/adopt, or Local PTY deletion.
Decision
Keep the extra coverage in Task 2. Splitting GUI attach or the Local flag into a later issue would leave #436 Task 2 without the fail-closed Herdr-default startup the issue named.
No production work belongs on this issue.
Measured on checkout task-3-line-count-trackers at f0ac78c0735e2664c5d8f42ca1dd5f0f6324f46c (#458 Task 3 / #461). Task 2 Herdr default runtime: this task's own stacked range, not origin/main...HEAD and not the #457 squash.
This re-count matches the tracker body's contemporaneous 633 insertions / 74 deletions (excluding generated bindings).
Command (exclude lockfiles + generated files; binary numstat - rows are not summed):
git diff --numstat origin/task-1-client-mode-contract...origin/task-2-herdr-default-runtime -- . \
':(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-1-client-mode-contract=d08b0d93e9919fbec5f2fe4db6a25e197ddfe514(docs: remap leftover #394 task numbers onto the #436 plan) - tip
origin/task-2-herdr-default-runtime=eb609193603e0466dd5858e019056bdcad8a281c(fix(terminal): document unbound ids as the Herdr default) 4commit(s) inorigin/task-1-client-mode-contract..origin/task-2-herdr-default-runtime
git diff --shortstat with the same range and pathspec:
12 files changed, 633 insertions(+), 74 deletions(-)
+633 / -74 = 707
This work is already on task-10-launch-adopt and PR #457. Closing as superseded by #457. No remaining unshipped work on this tracker.