Testing guide
A structured walk-through for testers evaluating AppAutoPatch (AAP) 4.x. Each scenario lists a goal, preconditions, numbered steps, and what “pass” looks like. Work through them in order on a clean Mac and you’ll exercise every major surface in the app. If any test produces unexpected behavior, stop, generate a diagnostic bundle, and file an issue (see Reporting an issue).
Before you start
Section titled “Before you start”- macOS 14 (Sonoma) or later. macOS 15 (Sequoia) is the primary development platform.
- Apple Silicon or Intel.
- Admin rights (you’ll be approving a root LaunchDaemon).
- Recommended: a Mac without a previous AAP install. If you’ve run AAP before, see Resetting state between test runs first.
- The signed
.pkgfrom the Download page.
Reporting an issue
Section titled “Reporting an issue”The fastest path to a fix is a diagnostic bundle:
- Open AppAutoPatch.
- Settings → About → Diagnostics → Generate Diagnostic Bundle.
- Drag the resulting
.zipfrom your Desktop into a new issue in App-Auto-Patch/App-Auto-Patch using the Bug report template. The bundle contains logs, the redacted preferences plist, helper state, and the most recent patching receipts. Webhook URLs are redacted before the bundle is written; nothing leaves your Mac without your consent.
1. Installation & first launch
Section titled “1. Installation & first launch”1a. Fresh install via .pkg
Section titled “1a. Fresh install via .pkg”Goal: confirm the installer completes without errors and seeds the expected directory layout.
- Double-click
AppAutoPatch-<version>.pkg. - Click through Continue → Install → authenticate as admin.
- Wait for the “Installation was successful” screen.
Pass: the package finishes without warning, and
/Library/Application Support/AppAutoPatch/exists with ajobs/subfolder. From build 126 (#414),pkgutil --pkg-info xyz.techitout.appAutoPatch.appshows the build in the version, such asversion: 4.0.0.126; earlier builds show4.0.0.
1b. First-run setup wizard
Section titled “1b. First-run setup wizard”Goal: the guided 3-step setup appears on first launch and walks you through helper approval, Installomator deploy, and initial discovery.
- Open
/Applications/App Auto-Patch.app. - The Status pane should show “Welcome to App Auto-Patch” with three numbered steps.
- Step 1: click Register Helper (or Open Login Items & Extensions if prompted), then approve AppAutoPatch in System Settings.
- Return to AAP — Step 1 should auto-advance to a green check.
- Step 2 (Installomator) auto-progresses while the helper deploys Installomator. This typically takes 10–30 seconds the first time.
- Step 3: click Discover Apps.
- After discovery completes, click Done. Pass: the dashboard appears with discovered apps; subsequent launches go directly to the dashboard, no wizard.
1b-2. The helper starts on macOS 14 and 15 (build 118, #342)
Section titled “1b-2. The helper starts on macOS 14 and 15 (build 118, #342)”Goal: the root helper runs on the oldest supported macOS versions.
- On a Mac running macOS 14 or 15 (Intel or Apple Silicon), install the package and allow the helper.
- Wait a minute, then check
ls /Library/Logs/DiagnosticReports | grep AppAutoPatchRootHelper. Pass: Step 1 of the setup shows Root helper is running., no newAppAutoPatchRootHelper-*.ipscrash reports appear, andaap.loghas lines fromrole=daemon.
1c. Auto-skip on already-managed Macs
Section titled “1c. Auto-skip on already-managed Macs”Goal: confirm the wizard auto-completes when prerequisites are already in place.
- With the helper approved and Installomator deployed, run
defaults delete xyz.techitout.appAutoPatch FirstRunSetupCompletedin Terminal. - Quit and relaunch AAP. Pass: the dashboard opens directly. No wizard appears.
1d. New languages (build 127, #413, #415)
Section titled “1d. New languages (build 127, #413, #415)”Goal: confirm the seven new translations load, and that Tagalog gets the Filipino strings.
- Quit App Auto-Patch. In System Settings › General › Language &
Region › Applications, add App Auto-Patch and pick Korean. Or run
defaults write xyz.techitout.appAutoPatch AppleLanguages -array koas the console user. - Open App Auto-Patch and look at the menu bar panel, the dashboard and Settings. Defer an update to see a deferral prompt.
- Repeat with
fil,tl,sv,da,nb,fiandpl. - Run
defaults delete xyz.techitout.appAutoPatch AppleLanguages(or set the app back to System Language) and relaunch. Pass: each language shows its own translation, with no English left over and no text cut off in the menu bar panel, the dashboard’s buttons or Settings’ sidebar.tlshows the Filipino strings. After step 4 the app follows the system language again.
2. Discovery & manual updates
Section titled “2. Discovery & manual updates”2a. Discover Applications
Section titled “2a. Discover Applications”- From the dashboard, click Discover Applications.
- Wait for the scan to complete. Pass: the list of installed third-party apps populates with Current versions but no Latest versions yet.
2b. Check For Updates
Section titled “2b. Check For Updates”- Click Check For Updates.
- Wait — this typically takes 1–3 minutes depending on the size of your Installomator label set. Pass: each row shows both Current and Latest. Apps needing updates have an orange download icon; up-to-date apps show a green check; apps that failed the check show a red icon.
2c. Update a single app
Section titled “2c. Update a single app”Goal: per-row patching works.
- Pick an app with an available update (orange icon).
- Click the orange download icon.
- Watch the in-progress banner (“Updating labelname (1 of 1)…”). Pass: the app’s Current version updates to match Latest; the icon flips to green. A receipt is written (verify in 8a below).
2d. Update All
Section titled “2d. Update All”- Click Update All in the dashboard header.
- The deferral prompt appears. Click Update, then Yes to confirm. Pass: every app with a pending update is patched in sequence.
2e. Updates-available notification
Section titled “2e. Updates-available notification”Goal: confirm the open-apps notice fires when a Check For Updates
run finds a new pending update for an app that is open, and is
suppressed in the foreground.
Preconditions:
- Notification permission was granted to App Auto-Patch Notification
(
xyz.techitout.appAutoPatch-persistent). The notice is theupdatesAvailabletype, which is persistent by default, so that identity posts it. - At least one app with a new pending update is open. The notice counts open apps only; updates to closed apps alone never post it.
- The cycle’s patching is not complete: the menu bar doesn’t say “Patching is complete for this cycle”. While it is complete, the notice is never posted.
- Send AAP to the background (
Cmd+H, or focus another app). - Click Check For Updates from the menu bar popover.
- Wait for the check to finish. With
WorkflowStageUpdateson (the default), the notice waits until the pending installers are staged. - Click Check For Updates again with no new updates pending.
- Bring AAP forward (
Cmd+Tab) and run Check For Updates once more. - Quit the open app and run Check For Updates. Pass: step 3 produces exactly one notification titled “App Auto-Patch: 1 open app needs updating” (“N open apps need updating” for several). The body is “Quit the app or open App Auto-Patch to update now.” (“Quit the apps …” for several). When closed apps are pending too, it starts with “N closed app(s) are being updated in the background.” while background patching is on, or reads “N closed app(s) also need updating. Open App Auto-Patch to update now.” while it is off. With the example notification profile (alerts for the persistent identity) it stays on screen until you act on it, and its button reads Open App Auto-Patch. Step 4 produces no notification (the count didn’t grow). Step 5 also produces none, because the dashboard is in front. Step 6 removes the notice from Notification Center. Clicking the notification or its button opens App Auto-Patch’s deferral prompt. Disable test: Settings → Advanced → Background Patching → Show a notification when new updates become available → off, click Save, then repeat steps 1–3. The notice should not appear.
2f. Several installed versions of one app (build 119, #346)
Section titled “2f. Several installed versions of one app (build 119, #346)”Goal: with two versions of Python installed side by side, the newer one is the installed version.
- Install the current Python 3 release and the one before it from
python.org, so
/Library/Frameworks/Python.framework/Versions/has both, for example3.14and3.15. - Click Check For Updates.
Pass: the Python row’s Current is the newer version, its path is
…/Versions/3.15/Resources/Python.app, and it isn’t offered as an update.aap.loghas “python has 2 copies installed. Using the newest, …/3.15/…”. With only the older version installed, the newer one is offered.
2g. A label with no latest version (build 120, #353)
Section titled “2g. A label with no latest version (build 120, #353)”Goal: VersionComparisonInstallomatorFallback reads the version of the
downloaded installer, once a week. Use an installed app whose label sets
no appNewVersion, or whose version lookup returns nothing, such as
logitechoptionsplus while Logitech’s lookup is broken. Leave
VersionComparisonInstallomatorFallback and PatchUnknownVersionLabels
unset.
- Click Re-check on the app’s row, or Check For Updates.
- Wait for the root helper’s next discovery (or restart it with
sudo launchctl kickstart -k system/xyz.techitout.appAutoPatch.roothelper), then click Re-check on the row. (From build 128 a clicked Check For Updates reads the installer again; see 2g-1.) - Set
UnknownVersionCheckIntervalDays1 in a profile, wait a day, and check again. Pass:
- Step 1:
aap.loghas “running Installomator with DEBUG=2 to read the version of its installer” and “Installomator read V from logitechoptionsplus’s installer”. The row shows V as the latest version (2.8.981479 for Logi, which counts as up to date), not an Alert: the row doesn’t say “Couldn’t retrieve latest version”, andaap.loghas no “- New Version: nil” line for the label. - Step 2:
label-check-history.jsonhas aninstallerChecksentry for the label. The second check logs “using V, which Installomator read from its installer on …” and runs no Installomator. From build 128 the entry also hasdownloadURLanddownloadFingerprint, and the line ends “Its download hasn’t changed since.” - Step 3: the installer is downloaded again.
- A
pkglabel with nopackageIDand noappNewVersion(find one withgrep -L appNewVersionandgrep -L packageIDinInstallomator/fragments/labels,type="pkg"): Check For Updates says the root helper reads it. After the helper’s next discovery,aap.loghas “downloading its pkg installer to read the version of X.app inside” and “’s installer has X.app V”, and the row shows V.
2g-1. A new installer, and a clicked check (build 128, #427)
Section titled “2g-1. A new installer, and a clicked check (build 128, #427)”Goal: a saved installer read is replaced when the vendor publishes a
new installer, or when Check for Updates or Discover Applications is
clicked, and not by automatic checks or Re-check. Use asana (its label
has no appNewVersion) with Asana installed, after 2g has saved a read.
- Click Re-check on the Asana row.
- Click Check For Updates on the dashboard. Repeat with Check for Updates in the menu bar and Discover Applications on the dashboard, each at least 10 minutes after the one before.
- Within 10 minutes of step 2, click Check For Updates again.
- As root, change the asana entry’s
downloadFingerprintin/Library/Application Support/AppAutoPatch/label-check-history.jsontoxand itsdateto two hours ago, then wait for the helper’s next scheduled check (DiscoveryFrequency) or click Re-check. - Install a build 127 entry: replace the asana entry with one that has
only
date,labelFingerprintandversion(as build 127 wrote it), and click Re-check. Pass:
- Step 1: “asana: using V, which Installomator read from its installer on …”. Installomator doesn’t run.
- Step 2: each click logs “reading its installer again, as a Check for
Updates or Discover Applications clicked in App Auto-Patch asked” and
“running Installomator with DEBUG=2” (XPC), then “HelperInstallerReads:
The app’s check asked for the installers of asana to be read again”
and the helper’s own “reading its installer again” and “Installomator
read V”. The entry’s
dateis now. - Step 3: the app reads the installer again, but the helper logs “Checking the installers of asana.” without “reading … again as asked”, and “No installer needed reading again”.
- Step 4: “the server describes its download at
https://desktop-downloads.asana.com/… differently than when Installomator
read its installer on …”, then “Reading the installer again.”. The
entry’s
downloadFingerprintisurl=…; length=…; modified=…again. - Step 5: the same as step 4, with “then: not recorded”.
- With the Mac offline, checks use the saved read and log no change.
2h. A deprecated PatchUnknownVersionLabels in a profile (build 120, #353)
Section titled “2h. A deprecated PatchUnknownVersionLabels in a profile (build 120, #353)”- Deploy a profile with
PatchUnknownVersionLabelsfalseand noVersionComparisonInstallomatorFallback, and repeat 2g step 1. - Add
VersionComparisonInstallomatorFallbacktrueto the profile. - Remove both keys from the profile, and set
PatchUnknownVersionLabelsfalselocally:defaults write xyz.techitout.appAutoPatch PatchUnknownVersionLabels -bool false. Pass: in step 1 no Installomator runs, the row is an Alert with “VersionComparisonInstallomatorFallback is false”, and Settings › Advanced › Version Comparison is locked. Steps 2 and 3 run Installomator as in 2g. No.inspect-*folder is left in/Library/Application Support/AppAutoPatch/staging.
2i. One Spotlight search per discovery (build 121, #355)
Section titled “2i. One Spotlight search per discovery (build 121, #355)”Goal: a discovery starts one mdfind, not one per label, and
DiscoverySpotlightFallback false starts none. Leave
IgnoreAppsInHomeFolder unset.
- Move an app whose label you know out of the standard folders, for
example
sudo mkdir -p "/Users/Shared/Test Apps"andsudo mv /Applications/Firefox.app "/Users/Shared/Test Apps/". Wait a minute for Spotlight to index it (mdfind -name Firefox.app). - Give Terminal Full Disk Access, run
sudo eslogger exec > ~/Desktop/exec.json, click Check For Updates, and stopesloggerwith Control-C once the check is done. - Turn off Settings › Advanced › App Discovery › Find apps in other
folders with Spotlight, save, and click Check For Updates. Wait for
the root helper’s next discovery, or restart it with
sudo launchctl kickstart -k system/xyz.techitout.appAutoPatch.roothelper. - Deploy a profile with
DiscoverySpotlightFallbacktrue, and reopen Settings. - Move the app back to
/Applications. Pass:
- Step 2: the app is listed at its new path.
grep -c /usr/bin/mdfind ~/Desktop/exec.jsonis 1 or 2 (the GUI’s and the XPC service’s discoveries), not about a thousand.aap.loghas “Spotlight lists N application bundles (one query for this discovery, …)” once per discovery, and no INFO “has exited but its waiter never signalled”. - Step 3:
defaults read xyz.techitout.appAutoPatch DiscoverySpotlightFallbackis 0.aap.loghas “Spotlight is not used (DiscoverySpotlightFallback is false)” and no “Spotlight lists” line, in both the app’s and the root helper’s discoveries, and the app isn’t listed. - Step 4: the App Discovery section is locked and the app is listed again.
- The new toggle and caption are translated when the system language is German.
2j. An app its package starts with root’s environment (build 122, #358)
Section titled “2j. An app its package starts with root’s environment (build 122, #358)”Goal: an open app that its package starts with root’s environment is
opened again for the user, and a closed one is quit and stays closed. Needs Elgato
Stream Deck and an older Stream_Deck_*.pkg than the current one.
- Install the older package with
sudo installer -pkg Stream_Deck_….pkg -target /. Quit Stream Deck from its menu bar icon and open it from/Applications, so it runs with your environment. - In App Auto-Patch, update
elgatostreamdeckon its own (2c). - Run
ps eww -o command= -p $(pgrep -x "Stream Deck") | tr ' ' '\n' | grep -E '^(HOME|USER)='. - Install the older package again, quit Stream Deck, and leave it closed.
Update
elgatostreamdeckagain, and repeat step 3. Pass:
- Step 2:
aap.loghas “The elgatostreamdeck install started /Applications/Elgato Stream Deck.app with another account’s environment (pid …, uid …, HOME=/var/root, USER=root). Quitting that copy so it opens again for.” , then “Reopened /Applications/Elgato Stream Deck.app for.” Step 3 prints your ownHOMEandUSER, and Stream Deck shows no keychain error. There’s no “Could not fully remove com.apple.quarantine from /Applications/Elgato Stream Deck.app” line, even on a build the App Management profile doesn’t cover, such as a local one. - Step 4:
aap.loghas “… Quitting that copy, and not opening it again because elgatostreamdeck was not open before the install.” and no “Reopened” line. Step 3 prints nothing: the package’s copy was quit, and Stream Deck stays closed.
2k. The root helper’s thread count stays level (build 122, #357)
Section titled “2k. The root helper’s thread count stays level (build 122, #357)”Goal: the root helper doesn’t leak threads over a long uptime. Builds 117–121 leaked about one thread per hundred subprocesses, until every subprocess lost its output.
- Install build 122 and note the time. Leave the helper running for at least a day with discovery on its usual schedule.
- An hour after the install, and again a day later, run
ps -M $(pgrep -x AppAutoPatchRootHelper) | wc -l. - Run
grep "output readers never reached EOF" "/Library/Application Support/AppAutoPatch/logs/aap.log" | tail -1. Pass: the second thread count is about the same as the first, not climbing toward 64. Step 3 prints nothing, or only a line from before the install. No row that showed a latest version before the install says “Couldn’t retrieve latest version”,aap.loghas no “- New Version: nil” line for those labels, and diagnostics show Operational: yes.
2l. An empty discovery with ignored labels (build 124, #364)
Section titled “2l. An empty discovery with ignored labels (build 124, #364)”Goal: when IgnoredLabels hides every installed app, counting them for
the status message starts no defaults processes and logs one line, and no
discovery starts defaults either.
- Deploy a profile with
IgnoredLabelsset to*. - Give Terminal Full Disk Access, run
sudo eslogger exec > ~/Desktop/exec.json, click Discover Applications, and stopesloggerwith Control-C once the status message under the toolbar changes. - Remove
IgnoredLabelsfrom the profile. Runesloggeragain, click Check For Updates, and stop it once the check is done. Pass:
- Step 2: the status reads “Installomator found N labels. M installed apps
with matching labels are excluded by your administrator, and no
applicable applications were found.”
aap.loghas one “Empty discovery finished — M installed app(s) with matching labels excluded by administrator policy: …” line naming each app with its label, and norole=gui“Successfully parsed” line after “Discovery successful via XPC, found 0 apps”. - Steps 2 and 3:
grep -c /usr/bin/defaults ~/Desktop/exec.jsonis 0, unless other software randefaultsduring the capture. - Step 3: the installed versions in the list are the same as before the
update, including for an app whose label sets
versionKey, such as FileMaker Pro.
2m. Each app’s progress while patching runs (build 124, #366)
Section titled “2m. Each app’s progress while patching runs (build 124, #366)”Goal: during a run, the menu bar and the dashboard rows show which app is being installed, a green check for each updated app and an orange triangle for a failed one. The menu bar drops updated apps and its header names the app.
- Have at least seven pending updates, so the menu bar shows five and “View 2 more updates →”. Close the apps involved.
- Click Update All, then Update and Yes. Keep the dashboard open and open the menu bar now and then while the run goes on.
- Optional, for a failure: turn Wi-Fi off while one app downloads, and back on before the next one.
- Click the orange arrow on one row to update a single app.
- Optional: with
BackgroundPatchClosedAppsSchedulerset tohelper, let a background pass run with the menu bar open. Pass:
- The app being installed has a spinner in its dashboard row and is first in the menu bar, also when it was hidden behind “View N more updates”. The menu bar header reads “Updating Spotify (3 of 7)…”, matching the dashboard’s banner.
- A finished app’s row shows a green check. In the menu bar the check shows for about two seconds, then the app drops off, the next hidden app moves up and the “View N more” count goes down. The last app does the same when the run ends.
- Step 3: that app shows the orange triangle and stays in the menu bar. After the run its tooltip, in both places, gives the failure’s time and reason.
- Once the run has ended and the list has refreshed, updated apps are current in the dashboard and gone from the menu bar, which reads “All apps up to date” when nothing failed.
- Step 4 shows the spinner, then the check, on that row only.
- Step 5 shows the same icons, and the header reads “Background patching … (N of M)…”.
2n. App Auto-Patch updating itself: SelfUpdateMethod (build 125, #367)
Section titled “2n. App Auto-Patch updating itself: SelfUpdateMethod (build 125, #367)”Goal: SelfUpdateMethod picks one of three methods. The schedule’s
check finds App Auto-Patch’s own label and goes by the clock. A profile
change applies without a relaunch, and the deprecated keys still work.
- With no self-update keys in the profile, launch App Auto-Patch and
check
aap.log. - Run
defaults delete xyz.techitout.appAutoPatch LastSelfUpdateCheckDate(an error just means it isn’t set). Then, without relaunching, deploy a profile withSelfUpdateMethodBackgroundScheduleandSelfUpdateFrequencyweekly. Wait up to 15 minutes. - Read
defaults read xyz.techitout.appAutoPatch LastSelfUpdateCheckDate. Leave the app running for an hour, then look at the log again. - Change the profile to
SelfUpdateMethodDisabledand wait up to 15 minutes. - Replace it with the deprecated
SelfUpdateEnabledtruealone, then withSelfUpdateMethodInAppListplusSelfUpdateEnabledtrue. - Remove the self-update keys from the profile. In Settings › Advanced ›
Self-Update, try each choice of Update App Auto-Patch, click Save,
and run
defaults read xyz.techitout.appAutoPatch | grep -i selfupdate. Pass:
- Step 1: “SelfUpdateMethod is InAppList; App Auto-Patch is in the app list and updates with the other apps (label appautopatch4).”, and App Auto-Patch is in the dashboard’s list.
- Step 2: “SelfUpdateMethod is BackgroundSchedule — frequency=weekly, label=appautopatch4. Last check never; next due …”, then “Checking for AAP self-update via label ‘appautopatch4’…” and “Running version … already satisfies available …” (or, on a build older than the latest, the install). Never “Discovery found no App Auto-Patch for label” or “The check for ‘appautopatch4’ found no latest version”. After the next refresh App Auto-Patch is gone from the dashboard’s list.
- Step 3 prints the check’s time, and no second check runs within the hour.
- Step 4: “SelfUpdateMethod is Disabled; App Auto-Patch doesn’t update itself …”, and App Auto-Patch stays out of the list.
- Step 5: first “SelfUpdateEnabled is deprecated; set SelfUpdateMethod to BackgroundSchedule instead.” and the schedule; then “The profile’s SelfUpdateEnabled mean BackgroundSchedule, but its SelfUpdateMethod is InAppList …” and App Auto-Patch back in the list.
- Step 6: each choice shows its own caption. Check frequency is
available only for On its own schedule, and Installomator label
for everything but Off. After Save,
SelfUpdateMethodholds the choice, andSelfUpdateEnabledandDiscoverSelfUpdateLabelare gone from the output.
2o. Staging progress in the menu bar and the dashboard (build 125, #381)
Section titled “2o. Staging progress in the menu bar and the dashboard (build 125, #381)”Goal: while installers are staged, the menu bar and the dashboard say so, instead of looking idle until patching starts.
- Leave
WorkflowStageUpdateson, which is the default, and have several pending updates. Remove the installers already staged, so each one is downloaded again:sudo rm -rf "/Library/Application Support/AppAutoPatch/staging". - Keep the dashboard open, click Check for Updates, and open the menu bar once the check has finished.
- While staging runs, run
cat "/Library/Application Support/AppAutoPatch/staging-progress.json". - Remove the installers again, start another check, and restart the
helper mid-staging:
sudo launchctl kickstart -k system/xyz.techitout.appAutoPatch.roothelper. - Optional: with
BackgroundPatchClosedAppsSchedulerset tohelper, let a background pass or a scheduled discovery stage updates while the app is idle. - Optional: remove the installers, close the apps involved, and click Update All, then Update and Yes. Pass:
- Step 2: the menu bar icon becomes a download tray. The header reads
“Staging updates…”, then “Staging Firefox (2 of 5)…”, with a bar that
fills as each app finishes. The dashboard shows a banner with the same
text and bar. Both end when staging ends, and
aap.loghas “StagingProgressObserver: The helper is staging N update(s).” and “StagingProgressObserver: Staging has ended.” - Step 3 prints the record. Once staging has ended, the file is gone.
- Step 4: the indicator goes within about five seconds of the restart. It comes back only if the restarted helper stages again.
- Step 5 shows the same indicator with no window open.
- Step 6: the header shows the staging progress until the first install, then “Updating … (1 of N)…”. The dashboard shows the staging banner under “Patching in progress…” until then.
2p. Zoom’s update waits for a meeting, and only a meeting (build 126, #383)
Section titled “2p. Zoom’s update waits for a meeting, and only a meeting (build 126, #383)”Goal: with ZoomCallActiveCheck on, Zoom’s update is held during a
meeting and installs when Zoom is open without one.
- Leave
ZoomCallActiveCheckon, which is the default, and turn onVerboseMode. Have a Zoom update pending, and open Zoom without joining a meeting. Runpgrep -lx aomhostand note any process. - Join a meeting (a test meeting at zoom.us/test works), then click Update All, then Yes.
- While still in the meeting, run
pgrep -lx CptHostandlsof -nP -a -i UDP -c zoom.us | grep 8801. - Leave the meeting, keep Zoom open, and update Zoom.
- Quit Zoom and update it again if it’s still pending. Pass:
- Step 2: the other apps update and Zoom doesn’t.
aap.loghas “XPC service: Zoom call active — deferring Zoom label(s): …” and “ZoomCallDetector: Zoom meeting in progress: CptHost is running.” - Step 3 shows
CptHostand, on most networks, UDP connections to port 8801. - Steps 4 and 5: Zoom updates, even with an
aomhostfrom step 1 still running, and the log has no “Zoom call active” line for it.
2q. Installomator’s label count: Labels.txt, and a custom fork with few labels (build 130, #429)
Section titled “2q. Installomator’s label count: Labels.txt, and a custom fork with few labels (build 130, #429)”The warning and refusal below Labels.txt’s count can’t be produced with
the real upstream repository; unit tests in InstallomatorUpdateTests
cover them.
- Fork Installomator on GitHub and delete all but a few files from
fragments/labels, for example keepgooglechrome.shandfirefoxpkg.sh. KeepInstallomator.shand the rest offragments/. - Deploy
InstallomatorVersion=custom,InstallomatorVersionCustomRepoPath= the fork (MyOrg/Installomator) and, for a private fork,GitHubAPIAuthEnabledwith a token. - Remove the installed copy:
sudo rm -rf "/Library/Application Support/AppAutoPatch/Installomator", then restart the root helper:sudo launchctl kickstart -k system/xyz.techitout.appAutoPatch.roothelper. - Set
InstallomatorVersiontomain, then torelease, repeating step 3 each time. - With
main, add0.0.0.0 raw.githubusercontent.comto/etc/hostsand repeat step 3. Remove the line afterwards. - Set
customagain, delete the fork’s last label files sofragments/labelsis empty, and repeat step 3. Pass:
- Step 3: “The custom download has 2 label file(s)” and “Installed successfully — 2 labels”, with no “Fewer than 1000 labels”. Discovery lists only apps those labels cover.
- Step 4: “The download has 1389 labels in 1310 label files; expected the
1374 that Labels.txt on main lists” (the numbers change as upstream
does), with
releasein place ofmainfor a release, and Installomator installs. - Step 5: a warning “Could not read https://raw.githubusercontent.com/Installomator/Installomator/main/Labels.txt”, then “expected 1000”, and Installomator installs.
- Step 6: “The custom download has no label files in fragments/labels. Not
installing it”, then “Installomator setup failed: The downloaded archive
has 0 label(s); at least 1 are needed” instead of “InstallomatorError
error 1”. Installomator stays missing, and the helper logs
“attempting periodic redeploy” and tries again a minute later. Without
the
rm -rf, the installed copy would stay and the next try would come a day later.
3. Deferrals & deadlines
Section titled “3. Deferrals & deadlines”Clicking Update All opens the deferral prompt whenever there are pending updates. Two thresholds escalate the flow:
- A soft focus deadline ends automatic focus deferrals; the normal prompt continues.
- A hard deadline shows the required-update prompt (“Updates
required”), with no Defer button and a
DialogTimeoutDeferralcountdown (default 5 minutes). The install starts when you click Update Now or the countdown ends.DeferralWatcheropens this prompt by itself within a minute of the deadline; you don’t need to click Update All. Both can fire by count (deferrals so far) or by days. The day deadlines (FocusDeferralDate,HardDeferralDate) count from the cycle’s start (CurrentPatchingStartDate), not from the first deferral, andDeferralWatcherworks them out again every minute. A date written by hand is replaced within a minute, so to move a day deadline, changeDeadlineDaysHardorDeadlineTimeOfDayinstead.
3a. DeferralWatcher resurrects the prompt automatically
Section titled “3a. DeferralWatcher resurrects the prompt automatically”Goal: confirm DeferralWatcher re-engages the prompt when
NextAutoLaunch elapses, without the user having to click Update All
again.
- From the dashboard, click Update All with at least one app pending.
- In the prompt, pick the shortest defer option available.
- Click Defer.
- Leave AAP open and wait out the deferral. Pass: within a few seconds of the deadline elapsing, the prompt re-appears on its own. Logs include “DeferralWatcher: Armed watchpoint” when the deferral is saved, then “Deadline trigger fired” at that time. If a check or patch is still running, the log says it is retrying in 15s rather than waiting out the one-minute timer.
3b. Hard count deadline requires the update
Section titled “3b. Hard count deadline requires the update”Goal: confirm DeadlineCountHard brings up the required-update
prompt, which installs when its countdown ends.
defaults write xyz.techitout.appAutoPatch DeadlineCountHard -int 2. Optionally shorten the countdown:defaults write xyz.techitout.appAutoPatch DialogTimeoutDeferral -int 60.- Fast-forward the counter, with no deferral running:
defaults write xyz.techitout.appAutoPatch HardDeferralCount -int 2anddefaults delete xyz.techitout.appAutoPatch NextAutoLaunch(ignore an error). - Click Update All, or wait up to a minute for
DeferralWatcher. Pass: the required-update prompt appears: “Updates required”, “Save your work, then update N applications now. Further deferral is unavailable.”, no Defer button and no deferral menu, an Update Now button and “Updates will begin automatically in M:SS.” Logs include “StatusViewModel: Hard deadline reached — presenting required-update prompt with no further deferral and a N-second enforcement countdown (DialogTimeoutDeferral).” (whenDeferralWatcheropened it, first “DeferralWatcher: Deadline trigger fired (… trigger=count …)”). Leave the prompt alone: when the countdown ends, the log says “Deferral dialog timeout elapsed — continuing with updates.” and the install starts. If you reach the count by deferring twice instead, the second deferral is still running: the countdown runs to its end, and the log says “… keeping the enforcement deadline already armed for …”. Clean up:defaults delete xyz.techitout.appAutoPatch DeadlineCountHard, then the same forDialogTimeoutDeferral.
3c. Hard day deadline requires the update
Section titled “3c. Hard day deadline requires the update”Goal: confirm DeadlineDaysHard works end-to-end: the date counts
from the cycle start and is in place before any deferral, and the
required-update prompt appears at that time without a click.
- With the default one-day cycle (
DaysUntilReset=1), the deadline isDeadlineTimeOfDayon the cycle’s only day; without a time there is no day deadline (#290). Put it 5 minutes from now:defaults write xyz.techitout.appAutoPatch DeadlineDaysHard -int 1defaults write xyz.techitout.appAutoPatch DeadlineTimeOfDay "$(date -v+5M +%H:%M)" - Wait a minute for the next deadline check.
defaults read xyz.techitout.appAutoPatch HardDeferralDateis today at that time (in UTC), although you haven’t deferred. - Click Update All. Before you defer, the prompt’s footer reads “Auto-installs by <that time>.”, and the deferral menu ends with the time left (3k). Choose that last entry and click Defer.
- Leave App Auto-Patch running past the deadline.
Pass: within a minute of the deadline, the required-update prompt
appears by itself, as in 3b, and the log has “DeferralWatcher: Deadline
trigger fired (… trigger=date …)” and the same “Hard deadline
reached” line. Writing a past
HardDeferralDateby hand does not work as a shortcut: the next minute’s check writes the date from the cycle start again. Clean up:defaults delete xyz.techitout.appAutoPatch DeadlineDaysHard, then the same forDeadlineTimeOfDay.
3d. A reached focus limit uses the normal dialog
Section titled “3d. A reached focus limit uses the normal dialog”Goal: once either focus limit is met, reminders continue with the normal dialog. There is no separate “strongly recommended” copy.
defaults write xyz.techitout.appAutoPatch DeadlineCountFocus -int 1.defaults write xyz.techitout.appAutoPatch FocusDeferralCount -int 1.- Click Update All.
Pass: the prompt headline is “Updates Available” and the button
is “Defer”. The timer picker still shows the full
DeferralTimerMenu.HardDeferralCountincreases by 1 if you defer.FocusDeferralCountstays at 1.
3e. Automatic focus deferral
Section titled “3e. Automatic focus deferral”Goal: Focus, Do Not Disturb, or a display-sleep assertion defers silently until a focus limit is reached. A manual Update All still shows the dialog.
defaults write xyz.techitout.appAutoPatch DeadlineCountFocus -int 2.defaults write xyz.techitout.appAutoPatch DeferralTimerFocus -int 1.defaults delete xyz.techitout.appAutoPatch FocusDeferralNotificationsEnabled.- Start
caffeinate -din Terminal, or turn on Focus. - With a pending update, set
NextAutoLauncha few seconds in the past:defaults write xyz.techitout.appAutoPatch NextAutoLaunch "$(date -u -v-1M +%Y-%m-%dT%H:%M:%SZ)"Pass: no dialog and no toast. The menu bar deadline row reads “Focus deferral — checking again in…” with a moon icon. The log says “Automatic focus deferral”.FocusDeferralCountis 1 andHardDeferralCountis unchanged.NextAutoLaunchis about 1 minute ahead. Click Update All whilecaffeinate -dis still running: the normal dialog appears, and deferring it increasesHardDeferralCountonly. Repeat the past-NextAutoLaunchstep once more. The second automatic deferral setsFocusDeferralCountto 2. Do it a third time: the normal dialog and toast appear even though Focus is still active. Toast override:defaults write xyz.techitout.appAutoPatch FocusDeferralNotificationsEnabled -bool trueposts the “Your deferral has ended” toast on an automatic deferral. The dialog stays hidden. Clicking the toast opens the normal dialog. Ignore list:defaults write xyz.techitout.appAutoPatch IgnoreDNDApps -string "caffeinate"makescaffeinate -dno longer count. A real Focus mode still defers.
3f. Aggressive patch-day deferral capping
Section titled “3f. Aggressive patch-day deferral capping”Goal: confirm AggressivePatchDayDeferral shrinks the picker
options on the patch day as PatchingEndTime approaches, and makes
the update required once that time has passed.
- Enable the feature:
defaults write xyz.techitout.appAutoPatch AggressivePatchDayDeferral -bool true - Make today the patch day with a one-day cycle whose hard deadline
is late tonight:
defaults write xyz.techitout.appAutoPatch DaysUntilReset -int 1defaults write xyz.techitout.appAutoPatch DeadlineDaysHard -int 1defaults write xyz.techitout.appAutoPatch DeadlineTimeOfDay "23:30" - Set
PatchingEndTimeto 45 minutes from now (e.g. if it’s 14:00, use14:45):defaults write xyz.techitout.appAutoPatch PatchingEndTime "HH:MM" - Wait a minute for the next deadline check, then click Update All.
Pass (30–60 min remaining bracket): the normal prompt shows only
options ≤15 minutes, and “Auto-installs by” names the
PatchingEndTime. If all your configured options are larger, a synthesised 5-minute entry appears. - Now set
PatchingEndTimeto 1 minute from now, wait 2 minutes, and click Update All again. Pass (past window): the required-update prompt appears with no Defer button — the same prompt as at a hard deadline. Clean up:defaults delete xyz.techitout.appAutoPatch AggressivePatchDayDeferral, then the same forPatchingEndTime,DeadlineTimeOfDay,DeadlineDaysHardandDaysUntilReset.
3g. Deferral audit trail
Section titled “3g. Deferral audit trail”Goal: confirm user-initiated deferrals, focus suppressions, and forced installs are recorded on disk and visible in the dashboard.
- With a pending update, click Update All → Defer.
- In Terminal:
ls /Library/Application\ Support/AppAutoPatch/deferral-events/Pass: a JSON file is present. Expand that app’s row in the dashboard — a Deferral Events section appears below the receipt history showing event type (userDeferred), escalation, minutes, and timestamp. After running test 3b or 3c (forced install), a.deadlineForcedevent appears for those labels. After 3e (focus suppression), a.focusSuppressedevent appears. - Generate a diagnostic bundle (Settings → About → Generate
Diagnostic Bundle) and open the zip — confirm a
deferral-events/folder is present alongsidereceipts/.
3h. A successful patch ends the cycle
Section titled “3h. A successful patch ends the cycle”Goal: confirm resetDeferralCounts() runs after a successful
patch, and that the cycle’s patching is then complete until the cycle
resets.
- After any of 3a–3g, run a successful Update All: click Update, then Yes (or let the required-update prompt’s countdown end).
- Right after the run completes, in Terminal:
defaults read xyz.techitout.appAutoPatch | grep -E 'FocusDeferralCount|HardDeferralCount|FocusDeferralDate|HardDeferralDate|NextAutoLaunch|JitterOffset|LastPatchingCompletionDate|NextPatchingCycleDate' - Wait a minute and run it again.
Pass: in step 2,
FocusDeferralCountandHardDeferralCountare0, andNextAutoLaunchandBackgroundPatchStartupJitterOffsetMinutesare gone (cleared byresetDeferralCounts()).LastPatchingCompletionDateis the run’s time, and the menu bar says “Patching is complete for this cycle. The next cycle starts …”, theNextPatchingCycleDate. In step 3,FocusDeferralDateandHardDeferralDateare back with the same dates as before the run whenDeadlineDaysFocusorDeadlineDaysHardis set: they come from the cycle start, and the cycle hasn’t changed. An update found beforeNextPatchingCycleDatewaits for the next cycle: no deferral prompt or updates-available notice, and background passes log “Patching is complete for this cycle” and install nothing. At the reset the log says “Patching cycle reached … — arming the next cycle and resetting deferral counters.”, and a fresh deferral cycle starts, with a new random jitter offset.
3i. Hard deadline with an open app nobody answers
Section titled “3i. Hard deadline with an open app nobody answers”Goal: confirm a required update for an open app installs when nobody answers Installomator’s quit dialog.
- Open an app with a pending update (e.g. VLC) and leave it open.
Ask for Installomator’s dialog, which the default
quit_killdoesn’t show:defaults write xyz.techitout.appAutoPatch InstallomatorOptions "NOTIFY=silent BLOCKING_PROCESS_ACTION=tell_user" defaults write xyz.techitout.appAutoPatch DeadlineCountHard -int 1anddefaults write xyz.techitout.appAutoPatch HardDeferralCount -int 1.defaults write xyz.techitout.appAutoPatch DialogTimeoutDeferral -int 60to shorten the countdown.- Click Update All. Leave the required-update prompt and Installomator’s “Quit “VLC” to continue updating?” dialog alone. Pass: the prompt’s row for the app reads “Open. (You will be told to quit, or it will be force-quit.)”. About 15 minutes after the install starts, the log says “Nobody answered Installomator’s dialog for vlc at the hard deadline … running it again with BLOCKING_PROCESS_ACTION=quit_kill”, VLC is quit and updated, and one receipt is written for it.
- Repeat with
defaults write xyz.techitout.appAutoPatch HardDeadlineBlockingProcessAction quit_kill. Pass: the row reads “Open. (Will be quit, then force-quit, to update.)”, no Installomator dialog appears, and VLC updates within a couple of minutes. - Repeat with neither key set:
defaults delete xyz.techitout.appAutoPatch HardDeadlineBlockingProcessActionanddefaults delete xyz.techitout.appAutoPatch InstallomatorOptions. Pass: the same as step 5. Options without aBLOCKING_PROCESS_ACTIONusequit_kill. Clean up:defaults delete xyz.techitout.appAutoPatch DialogTimeoutDeferral, then the same forDeadlineCountHardandHardDeferralCount.
3j. The dialog waits while nobody can see it (build 119, #350)
Section titled “3j. The dialog waits while nobody can see it (build 119, #350)”Goal: before the hard deadline, an elapsed deferral doesn’t open the dialog while the displays are asleep or the screen is locked. It defers for 60 seconds at a time, without counting, and opens once someone is back.
defaults write xyz.techitout.appAutoPatch VerboseMode -bool true. Have a pending update and a hard deadline more than an hour away, and noteHardDeferralCount.- Set
NextAutoLauncha minute ahead:defaults write xyz.techitout.appAutoPatch NextAutoLaunch "$(date -u -v+1M +%Y-%m-%dT%H:%M:%SZ)" - Run
pmset displaysleepnowand leave the Mac alone for 3 minutes. Pass: one[NOTICE]line “Nobody can see the deferral dialog (displays asleep)…”, then a verbose “…yet (displays asleep); trying again at…” about every 60 seconds.NextAutoLaunchstays about a minute ahead, andHardDeferralCount,FocusDeferralCountandLastDeferralDatedon’t change. Notification Center holds one “Your deferral has ended” notification. - Wake the display. While the lock screen shows, the log says “(screen
locked)”. Unlock.
Pass: within a minute a
[NOTICE]line “Someone is back after N minute(s) of automatic deferrals…”, and the dialog opens with no second notification. - Repeat with Fast User Switching to another account: the log says “(session switched out)”.
- Repeat with the hard deadline 2 minutes away. Pass: at the deadline the required-update dialog opens while the display is still asleep, and the log says “The hard deadline was reached after…”.
- Open the dialog with Update All, then run
pmset displaysleepnow. Pass: the dialog stays open andDialogTimeoutDeferralstill applies. DarkWake can’t be started on demand. On a Mac that Power Nap wakes, the verbose lines during the night name “(DarkWake)” with aSystem Capabilitiesvalue that lacks0x2. Run steps 1–4 on both an Apple silicon and an Intel Mac.
3k. The deferral menu ends with the time left (build 119, #349)
Section titled “3k. The deferral menu ends with the time left (build 119, #349)”Goal: with a hard deadline closer than the longest choice, the menu ends at the deadline.
defaults write xyz.techitout.appAutoPatch DeferralTimerMenu "30,60,120,240,480,720,1440".- Make the hard deadline today, 5 hours 30 minutes from now, with a
one-day cycle:
defaults write xyz.techitout.appAutoPatch DaysUntilReset -int 1defaults write xyz.techitout.appAutoPatch DeadlineDaysHard -int 1defaults write xyz.techitout.appAutoPatch DeadlineTimeOfDay "$(date -v+5H -v+30M +%H:%M)" - Wait a minute for the next deadline check, then click Update All.
Pass: the menu offers 30 minutes, 1 hour, 2 hours, 4 hours and
5 hours, 30 minutes (give or take a minute, depending on the seconds),
and nothing longer. Choose the last one:
NextAutoLaunchis the deadline. - Set
DeadlineTimeOfDay20 minutes from now, wait a minute and click Update All. Pass: the only choice is 20 minutes. Clean up:defaults delete xyz.techitout.appAutoPatch DeferralTimerMenu, then the same forDeadlineTimeOfDay,DeadlineDaysHardandDaysUntilReset.
3l. The new cycle’s deadline after a reset (build 119, #348)
Section titled “3l. The new cycle’s deadline after a reset (build 119, #348)”Goal: with a managed hard deadline, compliance.json reports the new
cycle’s deadline from the reset on.
- Use a profile with a managed
DeadlineDaysHardand leave App Auto-Patch running across a cycle reset, with an update still pending. - A few minutes after the reset, read
/Library/Application Support/AppAutoPatch/compliance.jsonandhelper-state.json. Pass:hardDeadlineis the console user’s newHardDeferralDate,statusisn’tOverdue, andrecordedHardDeadlineCycleEndis the console user’sNextPatchingCycleDate. A Mac upgraded with a record from the previous cycle shows the same within a minute of the upgrade.
3m. The time left before the hard deadline in days and hours, then hours and minutes (build 123, #361)
Section titled “3m. The time left before the hard deadline in days and hours, then hours and minutes (build 123, #361)”Goal: with only a deadline date left, the menu bar and the deferral dialog give the hours and minutes left once the hard deadline is less than 24 hours away, and days and hours, with no minutes, before that.
- Make the hard deadline today, 3 hours 35 minutes from now, with a
one-day cycle and no count limit:
defaults write xyz.techitout.appAutoPatch DaysUntilReset -int 1defaults write xyz.techitout.appAutoPatch DeadlineDaysHard -int 1defaults write xyz.techitout.appAutoPatch DeadlineTimeOfDay "$(date -v+3H -v+35M +%H:%M)"anddefaults delete xyz.techitout.appAutoPatch DeadlineCountHard(ignore an error). - Wait a minute for the next deadline check, then open the menu bar menu with an update pending. Pass: the Deadline section reads “3 hours, 35 minutes remaining before the hard deadline.” (give or take a minute, depending on the seconds), not “1 day remaining…”. Leave the menu open across a minute boundary: the minutes count down without reopening it.
- Click Update All. Pass: under “Auto-installs by …” the dialog shows the same line, and it counts down while the dialog is open.
- Set
DeadlineTimeOfDay20 minutes from now and wait a minute. Pass: “20 minutes remaining before the hard deadline.” - With a longer cycle (
DaysUntilReset7), make the hard deadline tomorrow, 5 hours later than now. The deadline is the cycle’s start day plusDeadlineDaysHarddays, atDeadlineTimeOfDay, so on the cycle’s first day that isDeadlineDaysHard1 andDeadlineTimeOfDay "$(date -v+5H +%H:%M)". Pass: “1 day, 5 hours remaining before the hard deadline.” (or “1 day, 4 hours”, depending on the minutes), with no minutes shown. A deadline exactly 2 days away to the hour reads “2 days…”. - Set
DeadlineCountHardto 3. Pass: the line names the date and the deferrals left (“Updates install by …, or 3 deferrals remaining, whichever comes first.”), as before. Clean up:defaults delete xyz.techitout.appAutoPatch DeadlineTimeOfDay, then the same forDeadlineDaysHard,DeadlineCountHardandDaysUntilReset.
4. Background patching
Section titled “4. Background patching”AAP runs in one of two scheduler modes, controlled by the
BackgroundPatchClosedAppsScheduler preference:
app(default) — in-process timer in the GUI app.helper— runs inside the persistent root LaunchDaemon.
4a. Update staging
Section titled “4a. Update staging”Goal: detected updates are downloaded before a closed-app patch, and the install reuses that file.
- Leave
WorkflowStageUpdatesat its default (true), or confirm Settings → Advanced → Background Patching → Download installers before installing is on. - Make sure at least one closed app has a pending update.
- Let a background pass run (in-app or helper daemon).
Pass: when a closed app is pending, the log shows
Patching closed apps before the open-apps notificationand the “open apps need updating” notification arrives only afterClosed-app pass finished; delivering the open-apps notification. If every pending app was closed, that notification is not posted. While the pass runs, the dashboard banner reads “Background patching in progress…” and does not revert to “Patching in progress…” or “Updating <app>…”. The log also showsStaging N update(s) before the open-apps notificationwhen an open app still needs a toast, and that toast arrives only afterStaging complete. The log also showsStaging N detected update(s) before the closed-app pass(orStaging N update(s) before installing) before Installomator runs, thenUsing staged installer. A successful install logsRemoved staged installerfor that label only. Updating one app from its row leaves other labels’ files in/Library/Application Support/AppAutoPatch/staging(/private/tmp/AAPStageup to build 115). Restart the Mac and confirm the next staging logsAlready stagedfor them. While the cycle’s patching is complete, the log saysNot staging updates before the next cycle(orNot pre-staging) instead. SetWorkflowStageUpdatestofalseand confirm the next pass does not stage and the open-apps notification is not delayed.
4b. In-app scheduler smoke test
Section titled “4b. In-app scheduler smoke test”- Settings → Advanced → Background Patching.
- Confirm Enabled is on, Scheduler is In-app, and the interval is 1 hour (the test minimum).
- Make sure at least one closed app on the dashboard has a pending update.
- Quit any running instance of that app and leave AAP running.
- Wait one hour (or set the interval lower for testing — the floor the scheduler enforces is 1 hour, so plan around that). Pass: the app gets patched silently; a notification appears titled “App Auto-Patch updated apps”.
4c. Helper-daemon scheduler smoke test
Section titled “4c. Helper-daemon scheduler smoke test”Goal: background passes survive a full quit of the GUI app.
- Settings → Advanced → Background Patching → Scheduler → Helper daemon.
- Click Save.
- Quit AAP entirely (menu bar popover → Quit App Auto-Patch).
- Wait out the configured interval.
Pass: when you next launch AAP, you should see logs in the in-app
Logs pane confirming a
HelperBackgroundPatchSchedulerpass ran. If you re-enabled the GUI’s helper observer (the default), a single completion toast appears within 60 seconds of relaunch.
4d. AC-power gate
Section titled “4d. AC-power gate”- Confirm
BackgroundPatchClosedAppsRequireOnACis true (the default). - Disconnect AC, close an app with a pending update, and refresh AAP.
- Refresh again without changing the pending count. Pass: the log shows “On battery and require-AC is enabled; skipping run.” No patches happen until you reconnect AC. Exactly one persistent App updates are waiting notification asks the user to connect power; step 3 does not duplicate it. Reconnect AC and confirm that the notification clears and patching resumes.
4e. Notification routing
Section titled “4e. Notification routing”- Install the example managed notification profile and grant notification access to both App Auto-Patch identities.
- Trigger a background-patch start/completion and an updates-available or AC-power-required notification.
- Set
TemporaryNotificationTypesto["updatesAvailable"]andPersistentNotificationTypesto["backgroundPatchCompleted"], then repeat. Pass: informational background notifications are temporary banners by default and action-required notifications are persistent alerts. Step 3 reverses those two selected routes. If the same type appears in both arrays, it uses the persistent identity.
4f. Allow / block list
Section titled “4f. Allow / block list”- Add a single label (e.g.
firefox) to the Block list in Background Patching settings. - Force a tick (set interval to 1 hour and wait, or restart AAP). Pass: Firefox is skipped even if it’s eligible. Other apps still patch.
4g. Captive portal guard
Section titled “4g. Captive portal guard”Goal: confirm the scheduler skips network phases when internet is unavailable or behind a captive portal.
- Block
captive.apple.comat the hosts level:sudo sh -c 'echo "0.0.0.0 captive.apple.com" >> /etc/hosts' - Force a background-scheduler tick.
Pass: log includes “No internet / captive portal detected —
skipping network phases this tick.” No update-check or label-refresh
activity is logged. Remove the hosts entry when done:
sudo sed -i '' '/captive.apple.com/d' /etc/hosts
4h. The helper and the app work alike (build 126)
Section titled “4h. The helper and the app work alike (build 126)”Goal: the fixes from the build 126 helper and app parity review.
Turn on VerboseMode first.
- The app’s pass after sleep. With the in-app scheduler and a 4-hour interval, have a closed app with an update pending and leave the Mac asleep for more than 4 hours. Wake it.
- An app opened during the app’s closed-app pass. Have two or more closed apps with updates pending, click Check for Updates, and open one of them while the pass stages and installs.
- A deadline while the app is closed. Have updates pending past the hard deadline (3b or 3c), quit App Auto-Patch, and stop it from coming back (unload the LaunchAgent, or quit it twice). Wait for the helper to install them, then open App Auto-Patch.
- A relaunch during Update All. Start Update All with several updates, quit App Auto-Patch from the menu bar while it installs, and open it again.
- A helper restart mid-pass. In helper mode, run
sudo launchctl kickstart -k system/xyz.techitout.appAutoPatch.roothelperwhile a background pass installs. - A setting in
/Library/Preferences. With no profile setting it, runsudo defaults write /Library/Preferences/xyz.techitout.appAutoPatch WebhookFeature all(with a webhook URL set), and let a helper pass or deadline pass run. - A package label with no
packageID. WithVersionComparisonInstallomatorFallbackon and such a label installed (for example one whose type ispkgand that sets nopackageID), click Check for Updates, then wait a few minutes. - Generate a diagnostic bundle. Pass:
- Step 1: within about 2 minutes of waking, the app checks for updates and installs the closed app, without waiting 4 more awake hours.
- Step 2: the opened app shows no “Quit…?” dialog and isn’t updated;
aap.loghas “RootHelper: Job job-…: leaving The run isn’t reported as failed, and the other apps update. - Step 3: on launch a notification says “Installed N required updates at
the hard deadline while App Auto-Patch was closed.” The app’s history
shows installed at the deadline and installation started for them.
aap.logthen has “HelperDeadlineEnforcer: The deadline pass installed what the hard deadline of … required; standing down…”, and no further helper discovery every hour. - Step 4: the relaunched app shows “Updating
(N of M)…” with the rows’ spinners, Update All waits, and the list refreshes when the install ends. The webhook (if set) is posted once. - Step 5: the app drops “Background patching…” within a minute, and Update All works.
- Step 6: the helper’s run posts to the webhook.
- Step 7:
aap.loghas “HelperInstallerReads: Reading the installers of , then the app checks that label again and it shows a version or “no update”, not “check failed”. A second Check for Updates doesn’t download its installer again. - Step 8: the bundle has a
state/folder (compliance.json,label-installs.json,label-check-history.jsonand the other helper files) anddiscovered-apps.json.
5. Self-update
Section titled “5. Self-update”Section 2n covers the three SelfUpdateMethod choices, the schedule
and the deprecated keys. This section checks what happens when a newer
build is found on App Auto-Patch’s own schedule.
Prerequisite: a build older than the latest release is installed,
with no self-update keys in the profile. The Installomator App
Auto-Patch uses has the appautopatch4 label (Installomator’s main
branch, the default InstallomatorVersion, does), or you set
SelfUpdateLabel to a label you control.
- Settings → Advanced → Self-Update: set Update App Auto-Patch to On its own schedule and Check frequency to Daily. Turn off Settings → Advanced → Background Patching → Silently patch apps that aren’t currently open, and click Save.
- Run
defaults delete xyz.techitout.appAutoPatch LastSelfUpdateCheckDate(an error just means it isn’t set), then quit App Auto-Patch from the menu bar and open it again. - Wait about 5 minutes: the first check runs 5 minutes after launch.
- Repeat with Silently patch apps that aren’t currently open on. Pass (step 3): a dashboard banner titled “App Auto-Patch update available” reads “Version X is available. You’re currently running Y.”, with Update Now and Later buttons, and a notification with the same title appears. Clicking Update Now uses the same XPC patch path as every other app; App Auto-Patch quits and is replaced by the new version. Pass (step 4): the log says “Background-patch enabled — installing self-update silently Y -> X.”, and the new version installs with no banner. With In the app list (the default), there is no banner: App Auto-Patch is a row in the dashboard and updates with the other apps, deferrals and deadlines included (2n).
6. Menu bar & window lifecycle
Section titled “6. Menu bar & window lifecycle”6a. Menu bar persistence
Section titled “6a. Menu bar persistence”- Open AAP, then close the dashboard window (red close button or
Cmd+W).
Pass: the dashboard closes; the menu bar item stays visible. The
Dock icon disappears (app drops to
.accessory).
6b. Cmd+Q behavior
Section titled “6b. Cmd+Q behavior”- With AAP open, press Cmd+Q. Pass: the dashboard window closes; the menu bar item remains. The process keeps running. The only way to fully terminate is the menu bar popover’s Quit App Auto-Patch button.
6c. Reopen from menu bar
Section titled “6c. Reopen from menu bar”- Click the menu bar item.
- Click Open Dashboard. Pass: the dashboard window reappears with the Dock icon back.
6d. New updates after the cycle is complete (build 117)
Section titled “6d. New updates after the cycle is complete (build 117)”- Finish the cycle’s patching, so the menu bar says Patching is complete for this cycle.
- Before the next cycle starts, put an older version of an app with a label on the Mac and click Check for Updates.
- Open the menu bar popover.
Pass: the list is headed NEW UPDATES and shows the app with its
version change and a blue dotted download icon, whose tooltip is
Included in the next patching cycle. Below the list: These updates
will be included in the next patching cycle. Click Update All to install
them now. Update All is available. Click it, then Yes: the app
is rechecked and installed without a deferral prompt, and
aap.loghas Menu bar Update All during a completed cycle.
6e. A red badge on the menu bar icon while updates are pending (build 126, #382)
Section titled “6e. A red badge on the menu bar icon while updates are pending (build 126, #382)”Goal: the pending-updates icon stands out in the menu bar, and no other state is badged.
- Have at least one pending update, with no patching or staging running. Look at the menu bar icon on a dark menu bar, then on a light one (System Settings → Appearance, or a light and a dark wallpaper on macOS 26).
- Click the icon to open the panel, and look at the icon while it is highlighted.
- With more than one display, look at the icon in the menu bar of a display you aren’t using, next to the other icons there.
- Click Update All, then Yes, and watch the icon while staging and patching run and after the last install. Pass:
- Step 1: the filled download arrow, dark on a light menu bar and light on a dark one, with a small red dot at its top right and a narrow gap between the dot and the circle. The items next to it don’t move when the icon changes.
- Step 2: the highlight behind the icon is whole; the gap shows the highlight, not a hole through it.
- Step 3: the arrow is dimmed like the other icons on that menu bar. If it stays bright while they dim, note it in #382: the badged icon isn’t a template image, so macOS doesn’t dim it for you.
- Step 4: no badge on the download tray, the patching arrows or the shield. Once nothing is pending, the shield with the checkmark comes back, without a badge.
6f. No on the menu bar’s Update All confirmation installs nothing (build 128, #418)
Section titled “6f. No on the menu bar’s Update All confirmation installs nothing (build 128, #418)”Goal: No, or closing the window, cancels Update All for good.
- With at least one pending update, click Update All in the menu bar. On Install updates?, click No at once.
- Wait at least 30 seconds.
- Click Update All again and close the window with its close button. Wait 30 seconds.
- Click Update All again and let the 15-second countdown run out. Pass:
- Steps 1–3: nothing installs and the pending count stays the same.
aap.loghas Update All declined from the menu bar; nothing is installed. once for each, and no Update All confirmed. - Step 4: the updates install, as before (the countdown answers Yes).
6g. Yes during a check installs once the check ends (build 128, #423)
Section titled “6g. Yes during a check installs once the check ends (build 128, #423)”Goal: Yes while a check is running closes the prompt and is never lost.
- Have pending updates and one Alert row whose label is slow to check (any label whose version check times out works). Open the deferral prompt with Update All on the dashboard.
- Click Re-check All Alerts, then at once Update and Yes on the prompt.
- While the check runs, click a pending-updates notification, or wait for the deferral watchpoint.
- Separately: start Check for Updates from the dashboard, then click Update All in the menu bar and Yes.
- Repeat step 2 at a hard deadline, with Update Now. Pass:
- Step 2: the prompt closes at once. The menu bar panel and the dashboard
show a spinner and Updates will install when the current check or
update finishes.
aap.loghas Install Now will run when the current check or install finishes; closing the deferral prompt. - Step 3: the prompt doesn’t open again (Not showing the deferral prompt; the install the user confirmed is waiting…, or Skipping updateAll). When the check ends, the updates install without another Yes (running the Install Now that waited), and the line goes away.
- Step 4: the same line in the menu bar and the dashboard, and the updates install when the check ends (Menu bar Update All will run when the current check or install finishes.).
- Step 5: as step 2.
7. Settings & MDM behavior
Section titled “7. Settings & MDM behavior”7a. Local Settings persist
Section titled “7a. Local Settings persist”- Change any preference (e.g. add a label to Ignored Labels).
- Click Save.
- Quit AAP completely (menu bar → Quit) and relaunch. Pass: your change is still there.
7b. Managed preferences override
Section titled “7b. Managed preferences override”Goal: confirm that an MDM-delivered key is honored and the corresponding Settings field is disabled.
- Deploy a configuration profile setting
IgnoredLabelsto a known list, using the manifest inProfile Manifests/. - Open AAP → Settings → Advanced. Pass: the Ignored Labels field shows the managed value and is disabled. A “Provided by your organization through managed configuration” caption appears on each managed section.
7c. 3.5.0 profile carryover
Section titled “7c. 3.5.0 profile carryover”- Apply an existing AAP 3.5.0 configuration profile that uses the
IgnoredLabelskey (and any others —RequiredLabels,OptionalLabels,PatchWeekStartDay, etc.). - Open AAP.
Pass: every key is honored, except the retired
InteractiveMode.PatchWeekStartDaystarts the cycle a day earlier than 3.x did, because 4.0 counts Sunday as 1 where 3.x counted Monday as 1.
7d. Hide the log viewer (build 118, #343)
Section titled “7d. Hide the log viewer (build 118, #343)”- With the dashboard open and the sidebar shown on Logs, deploy a
profile that sets
HideLogViewertotrue. - Switch to another app, then back to App Auto-Patch.
- Check View in the menu bar, and try to drag a sidebar out from the window’s left edge.
- Remove the profile, then switch away and back again.
Pass: after step 2 the window shows the Status dashboard with no
sidebar and no sidebar button in its title bar. View has no Show
Sidebar, and nothing drags out.
aap.logkeeps growing, and a diagnostic bundle from Settings › About still haslogs/aap.log. After step 4 the sidebar button is back and Logs opens the log.
7e. About tab links (build 119, #345)
Section titled “7e. About tab links (build 119, #345)”- Open Settings › About and scroll to Credits & Links.
- Click each of the first three links.
- Repeat with the system language set to another language App Auto-Patch is translated into, such as German. Pass: the links read App Auto-Patch Project (GitHub), App Auto-Patch Guide and App Auto-Patch Configuration Helper, and open github.com/App-Auto-Patch/App-Auto-Patch, appautopatch.app and appautopatch.app/configuration-helper/. Nothing links to the 3.x wiki. In step 3 the first two are translated; Configuration Helper is the tool’s name and stays as it is.
7f. Three Advanced controls (build 120)
Section titled “7f. Three Advanced controls (build 120)”- With no profile, open Settings › Advanced. Turn on Discover packages that install no app, set Automatic update checks to 1 hour and Failed installs before an app is skipped to 1, and save.
- Wait an hour, or restart the root helper, and read
aap.log. - Make one app fail to install once, for example by blocking its download.
- Deploy a profile that sets
InstallFailureLimit, and reopen Settings. Pass:
- Step 1:
defaults read xyz.techitout.appAutoPatchshowsDiscoverPackageReceiptOnlyLabels = 1,DiscoveryFrequency = 1andInstallFailureLimit = 1. A receipt-only label, such as a JDK, appears in the list after the next check. - Step 2: “Starting scheduled discovery (every 1h)” and the same receipt-only label in the helper’s discovery.
- Step 3: the app is shown under Alerts as skipped after one failure.
- Step 4: the Update All errors section is locked.
- Each new label and caption is translated when the system language is German.
7g. Branding: banner, title and Dock icon (build 128, #419–#421)
Section titled “7g. Branding: banner, title and Dock icon (build 128, #419–#421)”Goal: the branding keys change the dashboard, the prompts and the Dock icon, and bad values change nothing. The keys are reread whenever the app comes forward, so no restart is needed between steps.
- With none of the keys set, open the dashboard.
- Put a 2400 × 400 px banner and a dark version in
/Library/Application Support/AppAutoPatch/Branding/. SetBannerImageandBannerImageDarkto their paths and open the dashboard in Light and then Dark Mode. Click Update All in the menu bar, then No. Trigger a deferral prompt and a hard deadline prompt. - Set
BannerImagetogradient=#0F3D91,#1E88E5andBannerTitleto a name. TryBannerTitleAlignmentLeft,CenterandRight, thenBannerTitleFontSize40, andBannerHeight100. - Set
BannerImageto anhttps://URL of an image, open the dashboard, then turn Wi-Fi off, quit and reopen the app. - Set
DockIconto a 1024 × 1024 PNG and open the dashboard. Close the window, then open it again. RemoveDockIconand open the dashboard. - Set
BannerImageto a missing file, then toftp://x, andBannerTitleAlignmenttomiddle-ish. Pass:
- Step 1: the dashboard looks as it did in build 127, with nothing above Status Dashboard. The prompts have no banner.
- Step 2: the banner across the top of the dashboard, the Install
updates? confirmation and both prompts, with the dark version in Dark
Mode. The menu bar panel has no banner. The dashboard window is taller
by the banner’s height (150 pt for a 2400 × 400 px image at the default
width), its top edge where it was, and the bottom of the app list is as
far into view as before. Quit and reopen the app: the window keeps that
height and doesn’t grow again. Remove
BannerImage: it shrinks back. - Step 3: the title moves and resizes as set, and wraps or shrinks rather than being cut off.
- Step 4: the banner appears once the download finishes, and the cached copy still shows offline.
- Step 5: the Dock and ⌘-Tab show the icon while the dashboard is open, and after reopening it. The dashboard itself doesn’t show it. After removing the key, the App Auto-Patch icon is back. Finder and Notification Center keep the App Auto-Patch icon throughout.
- Step 6: today’s windows, and one
BrandingBanner:warning per bad value inaap.log.
8. Receipt history
Section titled “8. Receipt history”8a. Per-app history
Section titled “8a. Per-app history”Prerequisite: at least one patch run has completed (test 2c satisfies this).
- On the dashboard, click the chevron on the right of any patched app’s row. Pass: a Recent patches panel appears showing up to 5 receipts with timestamp, version, and status icon. Failed runs show their Installomator exit code in red.
8b. Empty history
Section titled “8b. Empty history”- Expand the row of an app you’ve never patched. Pass: the panel reads “No patches recorded for this label yet.”
9. Diagnostic bundle
Section titled “9. Diagnostic bundle”- Settings → About → Diagnostics → Generate Diagnostic Bundle.
- After ~5 seconds, click Reveal in Finder.
- Open the resulting zip. Pass: the zip contains
metadata.txt(app version, helper status, cdhash summary, and a Managed login items section that lists eachcom.apple.servicemanagementrule, whether it covers the helper, and a verdict)prefs/user.plistand (if applicable)prefs/managed.plist— open them and confirmWebhookURLSlack/WebhookURLTeamsare<redacted>, andDiscoveredAppsDatais absent.- On a Mac with a managed login items profile,
prefs/servicemanagement-profiles.plist, with every login items payload grouped by profile, andprefs/servicemanagement.plist(andservicemanagement-user.plistwhen the console user has a copy). On a Mac with several such profiles,metadata.txtlists each one by name and finds the rule that covers the helper even when/Library/Managed Preferencesdoesn’t have it. logs/aap.logand (if rotated)logs-archive/helper-state.json(if helper-daemon mode has run at least once)receipts/(if any patching has happened)deferral-events/(if any deferrals, focus suppressions, or forced installs have occurred)
10. Helper recovery
Section titled “10. Helper recovery”10a. Manual Reset Helper
Section titled “10a. Manual Reset Helper”- Settings → About → Reset Helper → Reset. Pass: status flips to Re-registered. Approve in System Settings… or Helper re-registered and is running. depending on whether macOS needs re-approval.
10b. Auto-reset on upgrade (cdhash mismatch)
Section titled “10b. Auto-reset on upgrade (cdhash mismatch)”- Install AAP version A; let it register the helper.
- Install AAP version B (different build, hence different cdhash) on top.
- Launch AAP. Pass: the dashboard briefly shows “Refreshing root helper…” and auto-runs the reset. The status banner clears once the helper is re-bound. Logs include “Helper binary cdhash changed since last registration”.
10b-2. Helper waiting for approval, standard user (#338)
Section titled “10b-2. Helper waiting for approval, standard user (#338)”- On a Mac without a
com.apple.servicemanagementrule for the helper, log in as a standard (non-admin) user and leave the helper waiting for approval in Login Items & Extensions. - Open the dashboard.
Pass: the Setup Required card adds “Only an administrator can
allow the helper. Contact
.” With a profile whoseLabelrule covers the helper, it says the organization’s profile should allow the helper but macOS has not applied it, for any user. Without such a rule, an administrator sees no extra line.aap.loghas aHelperInstallationService:line with the rule verdict and whether the user is an administrator.
10b-3. Console user outside staff (build 118, #341)
Section titled “10b-3. Console user outside staff (build 118, #341)”- Log in with an account that is not in
staff, such as an Active Directory mobile account whoseid -Gndoesn’t liststaff. - After a few seconds, run
ls -led "/Library/Application Support/AppAutoPatch/jobs" "/Library/Application Support/AppAutoPatch/logs/aap.log". - Open the dashboard.
Pass:
jobshas one entry,user:<name> allow list,add_file,search,add_subdirectory,delete_child,readattr,readextattr,readsecurity, andaap.loghasuser:<name> allow read,write,append,readattr,readextattr,readsecurity. The wizard’s step 1 says Root helper is running., andaap.loghas “RootHelper:is not in the staff group; gave them access…” and no “auto-resetting” line. After that user logs out, both entries are gone and the log has “Removed the shared folder access given to uid N”. Astaffmember at the console gets no entries.
10b-4. A helper that never starts (build 118, #342)
Section titled “10b-4. A helper that never starts (build 118, #342)”- Make the helper fail at launch, for example
sudo chmod 000 "/Applications/App Auto-Patch.app/Contents/MacOS/AppAutoPatchRootHelper"followed bysudo launchctl kill TERM system/xyz.techitout.appAutoPatch.roothelper. - Quit and relaunch App Auto-Patch, and wait for its automatic reset to finish (about 30 seconds).
- Restore the helper with
sudo chmod 755on the same path. Pass: before the restore, the Setup Required card and the wizard’s step 1 say “The root helper isn’t starting, so updates can’t be installed. Contactwith a diagnostic bundle from Settings › About.” instead of “Waiting for it to start…”.aap.loghas “Helper status is enabled but the daemon did not start.”
10b-5. The LaunchAgents are listed and locked as App Auto-Patch (build 130)
Section titled “10b-5. The LaunchAgents are listed and locked as App Auto-Patch (build 130)”- On a Mac with build 129,
OpenAtLoginorKeepAliveon and the old approval profile (with theTeamIdentifierrule), note the Robert Schroeder entry under System Settings › General › Login Items & Extensions › Allow in the Background. - Replace the profile with one made from the build 130
com.apple.servicemanagement-AppAutoPatch.example.mobileconfig(or the Configuration Helper’s Approve the root helper profile), and update App Auto-Patch to build 130. - Run
plutil -p ~/Library/LaunchAgents/xyz.techitout.appAutoPatch.login.plistandsystem_profiler SPConfigurationProfileDataType | grep -A3 RuleType. - Log out and back in, then open Allow in the Background again.
- Run
sudo sfltool dumpbtm | grep -B 4 -A 15 appAutoPatch.login. - Remove
OpenAtLoginandKeepAlive, deploy the build 130xyz.techitout.appAutoPatch.agent.example.plistto/Library/LaunchAgents/xyz.techitout.appAutoPatch.agent.plist, and repeat steps 4 and 5 withappAutoPatch.agent. Pass:
- The helper is approved and the first-run wizard skips step 1.
- Step 3: the plist has
AssociatedBundleIdentifiers=xyz.techitout.appAutoPatch.aap.loghas “Wrote login agent” from the first launch of build 130. The profile has threeLabelrules (…roothelper,…login,…agent) and noTeamIdentifierrule. - Steps 4 and 6: Allow in the Background has no Robert Schroeder entry. The agent is under App Auto-Patch, switched on, managed by the organization, and can’t be switched off. The app starts at login.
- Step 5: the agent’s record has
Flags: [ managed ]andxyz.techitout.appAutoPatchamong its associated bundle IDs. - Report a Robert Schroeder entry that stays after step 4, with the step 5 output.
10c. Operationally-broken auto-reset
Section titled “10c. Operationally-broken auto-reset”- Manually break the helper (e.g. revoke its approval in System Settings → Login Items & Extensions).
- Quit and relaunch AAP. Pass: AAP detects the helper isn’t operational and silently attempts a reset, capped at one attempt per session and once per hour.
11. Companion scripts
Section titled “11. Companion scripts”11a. Root3 Support App tile (build 119)
Section titled “11a. Root3 Support App tile (build 119)”Preconditions: the Root3 Support App is installed, and App Auto-Patch has updates pending.
- Copy
Scripts/support-app/aap_pending_updates.zshandaap_pending_apps_dialog.zshto/Library/Application Support/AppAutoPatch/SupportApp/, owned byroot:wheelwith mode755. - Deploy a Support App profile with the
Extensionitem in docs/CompanionScripts.md › Root3 Support App. - Open the Support App popover, then click the tile.
- Click Defer in the dialog, then open the popover again.
- Quit App Auto-Patch and click the tile again.
Pass: step 3 shows “N Updates Pending” with the warning badge,
where N is
pendingCountincompliance.json, then App Auto-Patch’s deferral dialog listing those apps.aap.loghas “Received notification deep-link”. In step 4 the deferral counts as usual. In step 5 App Auto-Patch starts and the dialog opens. With nothing pending, the tile reads “Up to Date” and clicking it opens nothing.
Resetting state between test runs
Section titled “Resetting state between test runs”If you want to start fresh, run the following:
# Stop and unregister the helpersudo launchctl bootout system/xyz.techitout.appAutoPatch.roothelper 2>/dev/nullsudo rm -f /Library/LaunchDaemons/xyz.techitout.appAutoPatch.roothelper.plist# Wipe app statesudo rm -rf "/Library/Application Support/AppAutoPatch"# Wipe local prefsdefaults delete xyz.techitout.appAutoPatch 2>/dev/null# Optionally remove the .app (handles both new and pre-rename paths)sudo rm -rf "/Applications/App Auto-Patch.app" "/Applications/AppAutoPatch.app"Then re-install the .pkg from scratch and start at test 1a again.
Section titled “Then re-install the .pkg from scratch and start at test 1a again.”What we’re hoping you’ll catch
Section titled “What we’re hoping you’ll catch”- Behaviors that surprise you in any direction. “It worked, but I didn’t expect that” is just as useful as a hard failure.
- Wording on banners / notifications that’s confusing or misleading.
- Edge cases the matrix above doesn’t cover, especially:
- Multi-user Macs (Fast User Switching, multiple console users)
- Locked-screen / lid-closed behavior of the background scheduler
- Recovery after a forced power-off mid-patch
- Macs with restrictive endpoint security tools (CrowdStrike, SentinelOne, Sophos, etc.) that may interfere with the helper
- Anything an MDM-managed Mac does differently from an unmanaged one. Thank you for testing!
