Repository navigation
fix: bound backup scan memory and deferred AUTH work - #127
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
This was referenced Nov 20, 2026
Closed
Closed
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Problem and resulting behavior
Backup-heavy workloads exposed repeated credential-attribution trust work, expensive creation-history maintenance on the ES callback thread, and Foundation read allocations retained across long streaming scans. Deferred AUTH workers could also reserve the reply before completing policy work, excluding the watchdog before a response was submitted.
This PR:
Existing allow/deny rules, Strict Mode, trust/revocation/expiry policy, ES cache flags and timeout fallback decisions are unchanged. No broad backup-app exclusion or scan-policy reduction is added. Synthetic delays require the private compile flag, exact signed helper/build/cdhash/path, root-owned expiring configuration and bounded admission; normal release builds do not enable them.
Verification
89fabca2cb4ccbdba61e9084015544b0d60042da; app and both active extensions verified at 5118. Signing, notarization, stapling, Gatekeeper and matching arm64/x86_64 dSYMs verified.git diff --checkpass.b864a9003dc75c3da92a5e580dd9cb0dd0a87f5f: build-and-test, both Sonar checks and Codecov patch all pass. GitHub reportsCLEAN/MERGEABLE; the previous head's results are not substituted.Whole-extension CPU averaged 40.4% / 26.4% / 51.0% across baseline / scan-plus-recovery / final baseline. The active scan itself averaged 33.6%. Cloud activity was present throughout; these numbers do not establish causal CPU improvement or reader-thread CPU. Passive thread enumeration recorded 691 samples without API errors, but its identifiers did not match callback identifiers: reader-thread CPU remains unavailable, not zero or a demonstrated pass.
See 5118 validation closeout, 5116 installed results, AUTH ownership design and private 5118 diagnostic safeguards. Exact source, signed packages, matching dSYMs and checksummed raw evidence are retained locally; private download links and raw reporter diagnostics are excluded.
Scope and remaining limits
The local validation cycle is complete; no additional test cycle is planned for this PR. The fixture is synthetic loopback SMB, not the reporter's full remote Time Machine/Backblaze workload. Worker sleep proves installed watchdog integration under the tested delay, not historical kill causality or an absolute deadline guarantee. An in-flight ES response API cannot safely be preempted.
Historical kernel-kill causality, full reporter-workload resolution, reader-thread CPU attribution, long-duration write budget and diagnostic-counter semantics remain documented follow-ups. The reporter's 19 h 58 m 5111 window had serious memory growth; it is not a pass for 5111 or evidence about later builds.
Related to #122; does not close it. Ready to merge after maintainer approval: current-head checks pass and GitHub reports no conflicts. Left open and unmerged as requested; no public package, appcast or website change.