2code icon indicating copy to clipboard operation
2code copied to clipboard

Task 7 live Herdr cwd exceeds the 350–600 line estimate (tracking)

Open AkaraChen opened this issue 2 months ago • 1 comments

Summary

Parent: #449 / #436. Tracking only — not a follow-up implementation.

Issue #449 estimated 350–600 lines and required material scope growth to become a separate issue. The live-cwd branch (task-7-herdr-live-cwd, 711 insertions / 159 deletions versus task-6-herdr-session-store, excluding generated bindings) is larger because #449 also required leftover Git service helpers, file-search/status, delete-check, and watcher roots to share reconcile_profile_checkout / list_with_runtime, plus colocated fake-client tests that leftover sqlite /stale cannot win, Local-flag sqlite nested paths, and Herdr-down / unknown workspace_id fail-closed coverage.

What grew

  • src-tauri/crates/service/src/project.rs (leftover Git helpers on reconcile_profile_checkout; live vs /stale git/search/status tests; watcher targets from list_with_runtime)
  • src-tauri/crates/service/src/filesystem.rs (removed sqlite-only search_file / get_file_tree_git_status; Local-flag *_for_profile tests)
  • src-tauri/crates/service/src/profile.rs (delete_check live checkout; Herdr vs Local tests)
  • src-tauri/crates/service/src/watcher.rs (live-list DTO roots; omit leftover /stale)
  • src-tauri/src/handler/profile.rs (delete-check delegates to the rewired helper)
  • src-tauri/tests/integration_git.rs / integration_filesystem.rs / common/mod.rs (invert sqlite-winning callers onto Local runtime)
  • docs/herdr-integration.md (Task 7 done on this branch)

All of that is the Task 7 live-cwd rewrite plus tests and docs. It is not Task 8+ scope: sqlite profiles / mapping tables are not DROPped; no launch/adopt; no Local PTY deletion; no second events.subscribe; lib.rs still does not name HerdrRuntimeSync; pin stays v0.9.0.

Decision

Keep the extra coverage in Task 7. Splitting leftover Git helpers, file-search/status, delete-check, or watcher /stale omit tests into a later issue would leave a sqlite-winning checkout path on the Herdr-selected router.

No production work belongs on this issue.

AkaraChen avatar Sep 16 '26 08:09 AkaraChen

Measured on checkout task-3-line-count-trackers at f0ac78c0735e2664c5d8f42ca1dd5f0f6324f46c (#458 Task 3 / #461). Task 7 live Herdr cwd: this task's own stacked range, not origin/main...HEAD and not the #457 squash.

This re-count matches the tracker body's contemporaneous 711 insertions / 159 deletions (excluding generated bindings).

Command (exclude lockfiles + generated files; binary numstat - rows are not summed):

git diff --numstat origin/task-6-herdr-session-store...origin/task-7-herdr-live-cwd -- . \
  ':(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-6-herdr-session-store = 958ee7d0faac409bd828937c58529183a6a32a35 (docs: record Task 6 Herdr session store)
  • tip origin/task-7-herdr-live-cwd = f00ad9519c7dd1e3113443c8066e46ec9537c6d8 (docs: record Task 7 live Herdr cwd)
  • 2 commit(s) in origin/task-6-herdr-session-store..origin/task-7-herdr-live-cwd

git diff --shortstat with the same range and pathspec:

9 files changed, 711 insertions(+), 159 deletions(-)

+711 / -159 = 870

This work is already on task-10-launch-adopt and PR #457. Closing as superseded by #457. No remaining unshipped work on this tracker.

AkaraChen avatar Sep 16 '26 19:09 AkaraChen