Bound archive browsing and restore precheck memory for large archives
Problem
Audit after #599 found that Browse & Restore still builds a complete in-memory archive index in api/archive_browser.py. build_archive_index captures all Borg JSON lines, splits them, builds nested dictionaries and a full path set, and caches up to eight indexes. An archive with roughly 1.9 million entries can cause substantial host memory pressure. Restore metadata prechecks also capture complete subtree listings in api/restore_api.py.
Desired outcome
Investigate a bounded-memory browsing/indexing approach and streaming restore metadata prechecks while preserving navigation and selection behavior. Explicitly assess isolation/enforcement for interactive restoration; the restore-test cgroup guard does not currently protect this path. Add large-archive regression measurements and verify cleanup, concurrency, archive deletion/invalidation, and error handling.
This is separate from the observational dashboard in #602. No claim that backup or other Borg operations are inherently immune to memory exhaustion.