refactor: resolve session artifact paths without a store

Merged
TH
2mo ago
+0-0

Summary

Session directory and app-log paths now come from the existing artifact-path module. Stale-claim recovery resolves paths from the dead owner's state directory directly, without constructing a session store. Store consumers delegate to the same validated functions.

Removes the SessionStore.expandHome forwarder and migrates all nine production callers to expandSessionPath. Path sanitization, errors, filenames and cwd handling are preserved. Moves the existing path tests to their defining modules, retaining their assertions.

Depends on #3133. Ref #3116. Ten files, 191 gross changed lines.

Validation

Tested 64f40ac3bf5b081a98b09b204bf72a482c8d3a7d:

  • 38 focused tests pass across four files; zero skips.
  • Quick checks and Fallow pass.
  • Exact-head affected checks pass: 388 files, 2,709 related tests; zero skips.
  • Independent read-only audit confirms preserved path validation/layout, recorded-owner recovery scope, complete caller migration and test discovery. No findings.
  • CI-owned coverage and provider checks remain pending.