Feature request: Show storage usage per job in shared repositories Problem
Problem
When multiple backup jobs use the same Borg repository, the UI shows repository-level storage usage, but it is difficult to understand how much space each job's retained backups occupy.
The existing per-run statistics in History are useful, but they do not show the current storage footprint of a job across its retained archives.
Proposed improvement
Add job-level storage reporting for jobs that share a repository. For example, the job details could show:
- Job-exclusive data: Data referenced by the job's retained archives but not by archives belonging to other jobs, if this can be calculated reliably.
- Shared data: Data referenced by this job and other jobs, if available.
- Estimated attributed usage: Optionally, an estimate that distributes shared data according to a clearly explained allocation rule.
It would also be useful to show when the figures were calculated and explain whether they exclude repository overhead or uncompacted space.
Borg deduplication considerations
I understand that Borg deduplicates chunks across archives and jobs in the same repository, so shared data has no single unambiguous owner. Also, Borg's per-archive deduplicated size represents data unique to that archive; adding those values together would not accurately calculate a job's footprint.
The goal is therefore not necessarily a perfectly precise per-job disk figure, but a useful and clearly labeled view of exclusive and shared usage. If accurate calculation is expensive, an on-demand or periodically refreshed calculation would be preferable to slowing down normal backup operations.
Why this would help
This would make it easier to identify jobs contributing most to repository growth and plan storage capacity without creating a separate repository for every job and losing cross-job deduplication.
Environment
- Borg Backup UI plugin
- Borg 1.4.5
- Multiple jobs sharing one repository
Feasibility assessment and implementation plan - 2026-11-27
Planning requested by the maintainer. This records the implementation direction for #752; it does not claim that the feature is implemented or that a production candidate has been tested.
Decision: Target an on-demand, repository-wide metadata analysis that reports each job's exclusive and shared retained file data. First complete a bounded technical validation of the Borg 1.4.5 metadata adapter. Ship only after correctness, resource limits and concurrency handling are demonstrated. An attributed-share estimate and automatic refresh are subsequent enhancements, not prerequisites for the first useful version.
1. Current implementation and integration points
Reviewed origin/main at b1873efad535930295454379f54307a35827d15a. The local checkout has the same complete Git tree as this main commit.
api/repositories_api.py:refresh_repository_info()runsborg info --json --last 1andborg list; it persists repository statistics and the latest archive's file count. It does not maintain a per-job chunk inventory._borg_info()currently has a 60-second subprocess timeout and is not a suitable synchronous full-analysis endpoint.api/repository_context.py: resolves the canonical job/repository/storage relationship. Jobs have permanent IDs and one current repository assignment.api/archive_prefix.py:job_archive_prefixes()combines current and recorded previous prefixes.validate_prefix_ownership()prevents overlapping selections between configured jobs in one repository. These existing rules must be reused.api/wizard_api.pypreserves previous prefixes when saving an edit.api/restore_api.pyalready uses these prefixes to find a job's archives.api/reports_api.pyreads historical run statistics. These are not an inventory of archives that still exist, and cannot reconstruct current ownership of shared chunks.api/wizard_runner.pyprovidesResourceLockSet; restore and archive deletion demonstrate its use.api/inventory_store.pyprovides atomic persistence. The existing repository info refresh only checks active resources before starting; that pre-check alone is insufficient for a long multi-command scan.- UI integration can stay within
ui/js/pages/jobs.jsandui/js/pages/storage.js, with DE/EN translations and existing job details. Reports can follow later.
This fits the existing Python/subprocess/JSON architecture. No framework replacement, database migration, repository conversion or archive renaming is required.
2. What Borg can and cannot provide directly
borg info reports the exclusive size of an individual archive, whereas its repository-level deduplicated size covers the repository. Filtering info by job prefix selects archive results; it does not calculate the union of that job's chunks. Neither adding archive deduplicated sizes nor adding historical create-run increments yields the retained footprint of a job. See the Borg 1.4.5 info documentation.
The documented borg list --json-lines file fields expose sizes and chunk counts, but not the chunk-ID sets needed to calculate intersections between jobs. File hashes are not a substitute for chunk identity. See Borg 1.4.5 list.
The bundled executable supports borg debug dump-archive REPO::ARCHIVE PATH, including - for output. Its decoded metadata contains file chunk IDs, original sizes and compressed sizes. That makes a metadata-only prototype possible without reading/restoring all file payloads. This is an internal/debug interface, not a stable frontend API; it requires a narrowly isolated, version-checked adapter and compatibility tests. The Borg debug documentation explicitly excludes debug commands from normal supported use. Relevant implementation: Borg 1.4.5 archiver.py.
3. Options and trade-offs
| Option | What the user gets | Cost and limitations | Decision |
|---|---|---|---|
| A. Retained-archive overview | Archive count, oldest/newest archive, latest archive size; optionally total logical bytes across retained archives | Low integration effort. Summed logical bytes count repeated data again; obtaining all archive statistics can still be expensive. Does not answer exclusive/shared storage. | Useful supporting information, not completion of #752. |
| B. Heuristic share of repository size | For example, distribute the repository total in proportion to logical archive bytes | Low-to-medium effort, but retention count and repeated unchanged data distort the answer. Cannot discover actual cross-job sharing or reliably predict reclaimable space. | Do not use as the primary storage figure. |
| C. Chunk-set analysis of all retained archives | Exclusive data, shared referenced data, deduplicated file-data union per job, optional explicitly allocated share | Medium-to-high effort. Requires a Borg metadata adapter, full repository coverage, bounded processing, background execution and correctness tests. | Selected direction, subject to the validation gate below. |
| D. Custom Borg helper / fork / direct internal cache reader | A compact native chunk accounting output, possibly with better performance than decoded JSON | High maintenance and packaging burden; tightly coupled to Borg internals. The bundled executable is not an importable library in the application runtime. | Consider only if C fails and a separate concrete implementation proposal is approved. No fork or new runtime dependency is assumed. |
| E. Separate repository per job | Straightforward repository-level accounting for each job | Changes backup organization and loses cross-job deduplication; existing archives would not move automatically. | Valid operational choice for new setups, not the solution to this shared-repository request. |
Development effort above is relative, not a delivery-date commitment. Actual scan cost depends on archived file/chunk references, archive count, metadata size and remote latency, not only on repository capacity in GB/TB.
4. Measurement contract
For each repository, assign each retained archive to exactly one configured job or to an explicit non-job group. For a file chunk c, let G(c) be the set of groups referencing it and w(c) its validated compressed size according to Borg metadata. Repeated references within the same job count only once.
referenced(j) = sum(w(c) for chunks referenced by job j)exclusive(j) = sum(w(c) where G(c) contains only j)shared(j) = sum(w(c) where j is in G(c) and another group is also present)referenced(j) = exclusive(j) + shared(j)- Optional later:
attributed(j) = sum(w(c) / number_of_groups_in_G(c))for chunks referenced by j.
Exclusive/shared classification is set accounting, not an allocation estimate. The optional attributed figure is a policy choice: equal division per referencing group, not per file, archive count or reference count. Include non-job groups in that division and specify rounding. Only attributed values form an additive partition across groups. Shared figures appear for multiple jobs and must not be added to obtain repository usage.
The first version should label the byte scope as compressed file data represented by retained archive metadata, not physical disk usage. Archive/item metadata, indexes, manifests, segment/encryption overhead and deleted-but-uncompacted space are outside this number. Do not force the sum to equal cache.stats.unique_csize, du, or filesystem usage. Deleting all archives of a job may make its exclusive chunks unreferenced, but that value is not a promise of immediately freed disk space; physical reclamation depends on Borg compaction.
Validate chunk IDs and size fields. Conflicting sizes for the same ID, corrupt metadata or unsupported archive formats must produce an incomplete/unsupported result, never silently select one value. Recompression/recreation and mixed-version archive cases must be covered before describing compressed-byte results as reliable. If those sizes cannot be established, uncompressed unique chunk bytes may still be calculable, but must be separately labelled and must not silently replace compressed storage figures.
5. Archive ownership and completeness
- Key results by actual Borg repository ID plus application repository key and permanent job ID. Use the current repository assignment and all recorded prefixes with the existing
<prefix>-*matching semantics. - This measures archives currently associated through those rules, not cryptographically proven historical job authorship. Prefix reuse, externally created matching names and manually renamed archives cannot be solved by inventing historical ownership.
- Deduplicate an archive matched by multiple prefixes of the same job. If different jobs match the same archive, report an ownership conflict instead of double-counting or choosing one.
- Unmatched/imported archives and archives of deleted or moved jobs remain in an
Other / unassignedgroup. They must participate in exclusivity checks. No historical job identity is guessed. - Inspect checkpoint/partial archives too. A conservative first policy is a separate temporary/checkpoint group excluded from normal retained-backup counts but included as an external reference holder. Do not classify their referenced chunks as exclusive to a completed job by omission.
- A job with no retained archives has a proven zero only after a successful complete scan. Missing, unreadable or skipped archives mean unknown/incomplete, not zero.
- A repository reassignment does not move old archives. The old repository's unmatched archives remain visible there; the job view covers its current repository. This follows the existing model and #452, without adding assignment history.
6. Practical feasibility check completed
A local synthetic Borg repository was created entirely inside this Git repository's .git/issue-752/ directory, with isolated Borg cache/security/config/temp directories. No existing backup data or repository configuration was used or changed.
Using the bundled Borg 1.4.5 executable, the fixture contains:
- Two unchanged archives belonging to job A.
- One archive belonging to job B.
- One unrelated imported archive.
- Five distinct 65,536-byte file payloads: one shared by all groups, one shared by A/B, and one exclusive to each of A, B and the unrelated group.
- Compression
none; each stored file chunk is reported as 65,539 bytes.
Observed results:
| Group | Referenced compressed file data | Exclusive | Shared |
|---|---|---|---|
| Job A | 196,617 bytes | 65,539 bytes | 131,078 bytes |
| Job B | 196,617 bytes | 65,539 bytes | 131,078 bytes |
| Other / unassigned | 131,078 bytes | 65,539 bytes | 65,539 bytes |
Both A archives independently report deduplicated_size = 0 through borg info, while the group correctly retains 65,539 exclusive bytes. This directly demonstrates why summing archive values is wrong. The file-chunk union is 327,695 bytes; repository unique_csize is 332,366 bytes, illustrating the different measurement scopes. Equal group attribution sums back to the file-chunk union; assertions passed.
This is a small correctness experiment, not a large-repository performance result. Encrypted/remote repositories, checkpoints, recompression, interruption and concurrent changes have not yet been validated by this experiment. Local script/results are retained under .git/issue-752/ and are not committed or shipped.
7. Fixed implementation sequence
- [x] Inspect current main, job identity/prefix rules, repository reporting, Borg CLI capabilities and release constraints.
- [x] Demonstrate the fundamental chunk-set calculation with the bundled executable and synthetic data.
- [ ] Step 1 - production feasibility gate: Build a focused, read-only adapter prototype around the pinned executable; validate encrypted archives, compression/recompression, hardlinks/repeated chunks, partial files, imported archives and malformed/truncated output. Measure time, peak memory, temporary disk and transferred metadata on representative large/local/SSH cases. Record explicit resource limits and the supported format/version contract in this issue. A failure stops product integration; it does not authorize a fork or a misleading heuristic fallback.
- [ ] Step 2 - repository analysis service: Add a small dedicated module and asynchronous start/status/result/cancel operations using the existing API patterns. Scan a repository once for all jobs. Acquire the existing repository resource lock atomically for the run, retain Borg's own locking, use existing credential/storage handling, and clean up on every exit. Handle remote-only
borg serveaccess without requiring a remote shell or remotedu. - [ ] Step 3 - consistency and bounded persistence: Compare repository/manifest or complete archive-ID fingerprints before and after the scan, plus the job/prefix assignment signature. Reject results if the snapshot changes; the plugin lock cannot exclude every external Borg client. Use streaming/bounded parsing and a capped chunk/group index; full
json.loadof arbitrarily large archive dumps is not a production design. If limits are exceeded, stop clearly. Persist only complete aggregate snapshots atomically, with schema/calculation version, Borg version, repository identity, archive coverage, mapping fingerprint, start/finish times and status. Keep the previous successful result when a refresh fails. Raw decoded metadata/paths and chunk inventories must not enter activity logs, support bundles or long-lived result files. - [ ] Step 4 - first user-facing version: Add a compact job-details section with retained archive count, exclusive/shared file data, calculation time, coverage and fresh/stale/unknown state. A repository action starts analysis and shows progress/cancel. Reading Jobs/Dashboard must only read cached aggregates, never trigger a scan. Initial scheduling is manual/on-demand; running backups take precedence at admission, and scan resource use or a waiting backup must have an explicit defer/cancel policy. A running scan still costs I/O and may hold a lock; do not promise zero impact. Mark snapshots stale after archive-changing operations and relevant job/repository/prefix edits. External changes require later detection; always retain the as-of timestamp.
- [ ] Step 5 - verification and test candidate: Add focused algorithm, API/worker, lock/cancel/cache and UI/i18n tests; update DE/EN help/manuals and add
release-notes/pending/752.md. Create one implementation PR from freshorigin/main, without stable artifacts or an APP_VERSION-only bump. Wait for authoritative PR CI, publish and verify a test-channel candidate using the existing main workflow, then perform maintainer tests on Unraid. - [ ] Step 6 - optional follow-up: Once the first version is proven, add equal-share attribution, repository comparison/report views and an opt-in idle-time schedule. Incremental per-archive indexes are a later performance optimization, not a prerequisite or a new database architecture.
Do not ship option A alone as completion of the requested exclusive/shared feature. If Step 1 fails, document the exact limitation and decide explicitly whether a smaller overview is still wanted.
8. Acceptance and release criteria
- Correct exclusivity with multiple unchanged archives of one job, sharing across two and three jobs, and references from unknown/deleted-job/checkpoint archives.
- Prefix changes preserve old archives; repository reassignment and deleted/recreated jobs do not silently rewrite historical ownership.
- Duplicate references and hardlinks do not inflate chunk-set totals; size/version inconsistencies are visible.
- Empty repository/job produces zero only with complete evidence; corrupt/partial output, timeout, cancellation and offline storage preserve the last successful snapshot and show why current data is unavailable.
- Backup, restore, prune, delete and compact interactions plus external repository changes cannot publish a mixed snapshot. Cancellation releases resources; interrupted scans never replace good cached results.
- No archive/repository mutation is used to measure usage. In particular, no delete/compact/recreate experiment, live repository clone or destructive size-difference approach is part of the feature.
- No full scan runs in a web request or regular page refresh. Resource-limit and large-repository evidence is part of acceptance, including SSH and local storage; USB/SMB availability and cleanup need coverage.
- DE/EN wording explains shared double counting, byte scope and compaction limits. No value is presented as an exact physical per-job disk footprint.
- User impact: new job-level storage visibility; implementation is
type::feature,impact::user-visible,release-note::yes. This analysis-only update itself needs no package or release-note fragment. - Stable promotion remains a separate release PR after explicit successful maintainer test/release approval. No stable release is authorized by this planning comment.
Measured feasibility and performance - 18 local archives (2026-11-27)
Follow-up to the initial assessment, requested by the maintainer with the target 18 archives, local storage.
Conclusion: A manually started background analysis is feasible with the bundled Borg executable. The measured 18-archive cases take tens of seconds to roughly a minute on this test host. The result depends strongly on file/chunk counts, parser strategy and hardware; archive count alone cannot predict the runtime on the maintainer's server. Product integration and real Unraid validation are still pending.
End-to-end scan measurements
Three repetitions per row below. Times include Borg startup, before/after archive listings, metadata traversal, parsing and group aggregation. RAM is the maximum sampled sum of process-tree RSS, not total server RAM.
| Fixture | Archives | Chunk references | Distinct file chunks | Median | Range | Peak process RSS | Decoded metadata |
|---|---|---|---|---|---|---|---|
| Empty archives (startup baseline) | 18 | 0 | 0 | 11.38 s | 11.27-11.51 s | 100.3 MiB | 0.0 MiB |
| 10,000 files per archive | 6 | 60,000 | 20,000 | 7.07 s | 6.95-7.22 s | 103.7 MiB | 28.2 MiB |
| 10,000 files per archive | 18 | 180,000 | 20,000 | 20.19 s | 19.96-20.28 s | 104.0 MiB | 84.5 MiB |
| 10,000 files per archive | 60 | 600,000 | 20,000 | 68.97 s | 64.14-71.56 s | 105.8 MiB | 281.7 MiB |
| 50,000 files per archive | 18 | 900,000 | 100,000 | 65.17 s | 61.48-65.75 s | 126.3 MiB | 422.4 MiB |
| Encrypted; 65,536 chunks per archive | 18 | 1,179,648 | 245,748 | 23.99 s | 23.75-24.14 s | 222.8 MiB | 182.3 MiB |
The small-file rows use per-item streaming; the encrypted large-file row uses per-chunk streaming. These are prototype strategies, not measurements of a finished plugin endpoint. Even empty archives take about 11 seconds for 18 archives with the current one-command-per-archive approach; page-refresh execution is inappropriate.
Parser comparison on identical repositories
| Fixture | Parser | Repetitions | Median | Peak process RSS |
|---|---|---|---|---|
| 18 x 50,000 files | Whole archive JSON in RAM | 1 | 69.49 s | 346.0 MiB |
| 18 x 50,000 files | Incremental complete items | 3 | 65.17 s | 126.3 MiB |
| 18 x 50,000 files | Incremental individual chunks | 1 | 56.91 s | 126.5 MiB |
| 18 encrypted chunk-heavy archives | Whole archive JSON in RAM | 1 | 19.63 s | 307.1 MiB |
| 18 encrypted chunk-heavy archives | Incremental complete items | 1 | 58.37 s | 264.7 MiB |
| 18 encrypted chunk-heavy archives | Incremental individual chunks | 3 | 23.99 s | 222.8 MiB |
The per-chunk parser was also checked on the many-small-files fixture to avoid selecting an implementation based only on its favorable large-file case. All three strategies agree on the calculated results.
Cache sensitivity and index-memory scaling
After requesting page-cache eviction only for the synthetic repository files (fsync plus POSIX_FADV_DONTNEED), one additional run took 61.32 s for 18 x 50,000 files and 23.95 s for the encrypted chunk-heavy case. This request did not produce a material slowdown here. It is not a controlled cold-HDD measurement: physical device/hypervisor caches are unknown and were not flushed.
A separate index-only experiment used the same Python dictionary/key/value shape, with fresh processes. It excludes Borg and archive parsing:
| Distinct chunk entries | Python worker peak RSS |
|---|---|
| 100,000 | 39.7 MiB |
| 250,000 | 74.4 MiB |
| 1,000,000 | 253.7 MiB |
One million unique entries therefore need about 254 MiB for this worker alone; Borg and the existing service need additional memory. Do not extrapolate the 100-223 MiB complete-scan results to arbitrarily large indexes.
Correctness and operational probes
- Known exclusive/shared ownership, repeated unchanged archives, retained changed chunks and group counts matched the synthetic ground truth. Zero-data archives returned actual zero.
- Encrypted LZ4 archives, hardlinks, duplicate file contents, empty files and the existing current/previous-prefix helper were exercised. Per-item and per-chunk parsers agreed.
- Partial recompression produced a real conflicting-size case and was rejected instead of silently publishing incorrect compressed-byte totals.
- Both parsers rejected truncated JSON at two cut points.
- An external archive addition changed the archive-set fingerprint. This demonstrates the detection primitive, not complete integrated race handling.
- A held Borg exclusive lock blocked the scan attempt with exit code 2.
- A stricter cancellation test found that SIGINT let the dump finish normally with complete JSON and exit code 0. An earlier signal-plus-reopen probe was therefore insufficient and is explicitly superseded in the summary. SIGTERM to the dedicated process group produced incomplete output and exit code 143 in 0.051 seconds; subsequent repository access succeeded. No SIGKILL escalation was needed. Application cancellation must discard partial results and have a bounded termination policy.
Method and interpretation
- The maintainer's target is 18 archives in a local repository. Job count and file/chunk counts were not supplied; the benchmark uses three synthetic jobs and six retained versions per job for the 18-archive cases.
- Measurements use the repository's bundled Borg 1.4.5 executable (SHA256
c8457f70660064d0f45b38283ab4cc65b342970012013201d3aec713a75898fb), Python 3.12.3, Linux x86_64, 6 visible CPUs (AMD Ryzen 9 5900X model), approximately 15.6 GiB RAM, and ext4 on a virtual block device. This is not the maintainer's Unraid server or a characterized HDD/SSD benchmark. - Every scan is a fresh Python process and includes two full archive listings, sequential Borg metadata dump subprocesses, parsing, chunk deduplication and group aggregation. Fixture creation is excluded. No file payload restore or full content scan is used by the analyzer. Fixtures and all temporary/cache/security data remain under
.git/issue-752/benchmark/. - Primary cases have three measured repetitions; comparison implementations and page-cache-eviction experiments have one each. No benchmark cases run in parallel. OS caches are naturally populated after fixture creation; no system-wide cache flush was performed.
- RAM is the highest sampled sum of RSS across the analysis worker and Borg subprocess tree, sampled every 20 ms. It is an approximate conservative process-memory metric; shared pages can be counted multiple times. It excludes the existing plugin service and the OS page cache. It is not an exact physical-memory high-water mark.
- Small-file fixtures contain 512-byte files, half shared between all three jobs and half exclusive to each job, with unchanged retained versions. The 10,000-file fixture has 20,000 distinct file chunks; the 50,000-file fixture has 100,000. Small payloads intentionally isolate the per-file metadata cost; these are not throughput measurements for multi-terabyte backup creation.
- The encrypted fixture uses
repokey-blake2,--compression=none, three 64 MiB files and deliberately small fixed 1 KiB chunks. Each of six snapshots changes approximately 5% of each job's file. This produces 1,179,648 references and 245,748 distinct chunks. The small chunk size is a stress fixture, not a recommendation for users or Borg's default chunking. - All successful scan variants must match the known fixture ownership, unique-chunk count and expected byte totals. Repetitions also match a result digest. Whole-dump, per-item streaming and per-chunk streaming produce the same accounting results.
Findings that refine the previous plan
Streaming must reach individual chunk tuples. Buffering an entire archive wastes memory. Buffering one entire file's metadata can still be slow for a VM image or another file with a long chunk list. The per-chunk parser avoids repeatedly decoding a growing partial JSON item. The benchmark parsers are experiments against the pinned dump schema, not production-ready generic JSON adapters.
Compressed-byte accuracy has a real limitation. The correctness probe recreates only a synthetic archive with different compression and retains the original archives. Identical chunk IDs then occur with different recorded compressed sizes. The analyzer rejects this instead of publishing an arbitrary size. This reproduces the limitation described in Borg 1.4.5 recreate. Even agreement among recorded sizes is not proof of current physical disk usage. A metadata-only implementation can reliably classify chunk ownership, but must label the stored-size result as based on archive metadata and handle inconsistent sizes explicitly. Unique uncompressed chunk bytes are a distinct metric, not a silent replacement for stored bytes.
Correction to the first assessment's overhead wording: Borg's csize includes the encoded file chunk's per-chunk encryption/compression framing. In the encrypted fixture a 1,024-byte chunk is recorded as 1,067 bytes; the equivalent unencrypted none representation is 1,027 bytes. The initial encrypted fixture assertion incorrectly expected the unencrypted size; it was corrected after checking the emitted tuples and Borg's cache implementation, which uses the length after encryption. Archive/item metadata, repository segment-entry headers, indexes and unreclaimed segment space remain outside the file-chunk sum. Do not describe this number as excluding all encryption overhead or as physical per-job disk usage.
Retention mostly increases scan work; unique chunks increase index memory. A constant number of distinct chunks keeps the index small even with more retained archives. An index of millions of distinct chunks needs an explicit memory budget. Streaming the input alone does not bound the accumulated index.
Decision after these measurements
Proceed with the on-demand background-analysis direction. The local 18-archive test cases show that this can be useful without a new Borg build, a database or an architectural replacement. They do not establish a fixed runtime for every repository with 18 archives.
The implementation should:
- Use bounded per-chunk streaming and a compact chunk-ID/group representation, with a hard memory budget and a clear limit-exceeded result. Do not build full JSON dumps in RAM or write raw decoded metadata to long-lived files/logs.
- Scan once per repository for all jobs, cache only complete aggregate results, and show the as-of time. A matching repository/archive-set and ownership fingerprint can preserve an unchanged complete snapshot without retaining every raw per-archive chunk list. Never run the scan during Jobs/Dashboard polling.
- Start manually in the first version, defer admission while backups/maintenance are active, expose progress/cancel, and release locks/resources on all exits. The metadata-dump worker needs verified process-group termination; sending SIGINT alone is insufficient in the tested executable. A running scan still consumes CPU/I/O and can delay access to that repository; do not promise zero impact.
- Treat a manifest/archive-set change or ownership-mapping change as an invalid snapshot. Preserve the last successful result after failure/cancellation.
- Label the byte scope precisely, include unknown/checkpoint reference holders, and report compressed-size inconsistencies. Do not present a current exact physical disk footprint or guaranteed reclaimable space.
- Keep optional automatic refresh and attributed-share policy for a later step, after real Unraid validation.
Remaining acceptance work: integration with actual plugin workers/resource locks and scheduling, representative real Unraid storage and repository sizes, real checkpoint/partial-file and older-version archive fixtures, full external-writer race handling, parser/version hardening, bounded failure behavior, UI/i18n and normal PR CI/test-channel workflow. SSH/SMB/USB performance was not measured; the supplied target was local storage.
No product files, user backups or user configuration were modified. No feature release, deployment or stable approval is implied. The benchmark harness, raw JSONL measurements, summary and synthetic repositories are retained locally under .git/issue-752/benchmark/; they are not packaged or committed. Repository source basis remains origin/main at b1873efad535930295454379f54307a35827d15a (same tree as the unchanged local checkout). Build, application smoke tests and release preflight are not applicable to this analysis-only update.