Skip to content

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).

  • 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 .pkg from the Download page.

The fastest path to a fix is a diagnostic bundle:

  1. Open AppAutoPatch.
  2. Settings → About → Diagnostics → Generate Diagnostic Bundle.
  3. Drag the resulting .zip from 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.

Goal: confirm the installer completes without errors and seeds the expected directory layout.

  1. Double-click AppAutoPatch-<version>.pkg.
  2. Click through Continue → Install → authenticate as admin.
  3. Wait for the “Installation was successful” screen. Pass: the package finishes without warning, and /Library/Application Support/AppAutoPatch/ exists with a jobs/ subfolder. From build 126 (#414), pkgutil --pkg-info xyz.techitout.appAutoPatch.app shows the build in the version, such as version: 4.0.0.126; earlier builds show 4.0.0.

Goal: the guided 3-step setup appears on first launch and walks you through helper approval, Installomator deploy, and initial discovery.

  1. Open /Applications/App Auto-Patch.app.
  2. The Status pane should show “Welcome to App Auto-Patch” with three numbered steps.
  3. Step 1: click Register Helper (or Open Login Items & Extensions if prompted), then approve AppAutoPatch in System Settings.
  4. Return to AAP — Step 1 should auto-advance to a green check.
  5. Step 2 (Installomator) auto-progresses while the helper deploys Installomator. This typically takes 10–30 seconds the first time.
  6. Step 3: click Discover Apps.
  7. 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.

  1. On a Mac running macOS 14 or 15 (Intel or Apple Silicon), install the package and allow the helper.
  2. Wait a minute, then check ls /Library/Logs/DiagnosticReports | grep AppAutoPatchRootHelper. Pass: Step 1 of the setup shows Root helper is running., no new AppAutoPatchRootHelper-*.ips crash reports appear, and aap.log has lines from role=daemon.

Goal: confirm the wizard auto-completes when prerequisites are already in place.

  1. With the helper approved and Installomator deployed, run defaults delete xyz.techitout.appAutoPatch FirstRunSetupCompleted in Terminal.
  2. Quit and relaunch AAP. Pass: the dashboard opens directly. No wizard appears.

Goal: confirm the seven new translations load, and that Tagalog gets the Filipino strings.

  1. 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 ko as the console user.
  2. Open App Auto-Patch and look at the menu bar panel, the dashboard and Settings. Defer an update to see a deferral prompt.
  3. Repeat with fil, tl, sv, da, nb, fi and pl.
  4. 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. tl shows the Filipino strings. After step 4 the app follows the system language again.

  1. From the dashboard, click Discover Applications.
  2. Wait for the scan to complete. Pass: the list of installed third-party apps populates with Current versions but no Latest versions yet.
  1. Click Check For Updates.
  2. 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.

Goal: per-row patching works.

  1. Pick an app with an available update (orange icon).
  2. Click the orange download icon.
  3. 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).
  1. Click Update All in the dashboard header.
  2. The deferral prompt appears. Click Update, then Yes to confirm. Pass: every app with a pending update is patched in sequence.

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 the updatesAvailable type, 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.
  1. Send AAP to the background (Cmd+H, or focus another app).
  2. Click Check For Updates from the menu bar popover.
  3. Wait for the check to finish. With WorkflowStageUpdates on (the default), the notice waits until the pending installers are staged.
  4. Click Check For Updates again with no new updates pending.
  5. Bring AAP forward (Cmd+Tab) and run Check For Updates once more.
  6. 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.

  1. Install the current Python 3 release and the one before it from python.org, so /Library/Frameworks/Python.framework/Versions/ has both, for example 3.14 and 3.15.
  2. 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.log has “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.

  1. Click Re-check on the app’s row, or Check For Updates.
  2. 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.)
  3. Set UnknownVersionCheckIntervalDays 1 in a profile, wait a day, and check again. Pass:
  • Step 1: aap.log has “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”, and aap.log has no “- New Version: nil” line for the label.
  • Step 2: label-check-history.json has an installerChecks entry 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 has downloadURL and downloadFingerprint, and the line ends “Its download hasn’t changed since.”
  • Step 3: the installer is downloaded again.
  • A pkg label with no packageID and no appNewVersion (find one with grep -L appNewVersion and grep -L packageID in Installomator/fragments/labels, type="pkg"): Check For Updates says the root helper reads it. After the helper’s next discovery, aap.log has “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.

  1. Click Re-check on the Asana row.
  2. 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.
  3. Within 10 minutes of step 2, click Check For Updates again.
  4. As root, change the asana entry’s downloadFingerprint in /Library/Application Support/AppAutoPatch/label-check-history.json to x and its date to two hours ago, then wait for the helper’s next scheduled check (DiscoveryFrequency) or click Re-check.
  5. Install a build 127 entry: replace the asana entry with one that has only date, labelFingerprint and version (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 date is 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 downloadFingerprint is url=…; 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)”
  1. Deploy a profile with PatchUnknownVersionLabels false and no VersionComparisonInstallomatorFallback, and repeat 2g step 1.
  2. Add VersionComparisonInstallomatorFallback true to the profile.
  3. Remove both keys from the profile, and set PatchUnknownVersionLabels false locally: 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.

  1. Move an app whose label you know out of the standard folders, for example sudo mkdir -p "/Users/Shared/Test Apps" and sudo mv /Applications/Firefox.app "/Users/Shared/Test Apps/". Wait a minute for Spotlight to index it (mdfind -name Firefox.app).
  2. Give Terminal Full Disk Access, run sudo eslogger exec > ~/Desktop/exec.json, click Check For Updates, and stop eslogger with Control-C once the check is done.
  3. 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.
  4. Deploy a profile with DiscoverySpotlightFallback true, and reopen Settings.
  5. Move the app back to /Applications. Pass:
  • Step 2: the app is listed at its new path. grep -c /usr/bin/mdfind ~/Desktop/exec.json is 1 or 2 (the GUI’s and the XPC service’s discoveries), not about a thousand. aap.log has “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 DiscoverySpotlightFallback is 0. aap.log has “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.

  1. 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.
  2. In App Auto-Patch, update elgatostreamdeck on its own (2c).
  3. Run ps eww -o command= -p $(pgrep -x "Stream Deck") | tr ' ' '\n' | grep -E '^(HOME|USER)='.
  4. Install the older package again, quit Stream Deck, and leave it closed. Update elgatostreamdeck again, and repeat step 3. Pass:
  • Step 2: aap.log has “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 own HOME and USER, 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.log has “… 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.

  1. Install build 122 and note the time. Leave the helper running for at least a day with discovery on its usual schedule.
  2. An hour after the install, and again a day later, run ps -M $(pgrep -x AppAutoPatchRootHelper) | wc -l.
  3. 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.log has 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.

  1. Deploy a profile with IgnoredLabels set to *.
  2. Give Terminal Full Disk Access, run sudo eslogger exec > ~/Desktop/exec.json, click Discover Applications, and stop eslogger with Control-C once the status message under the toolbar changes.
  3. Remove IgnoredLabels from the profile. Run eslogger again, 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.log has one “Empty discovery finished — M installed app(s) with matching labels excluded by administrator policy: …” line naming each app with its label, and no role=gui “Successfully parsed” line after “Discovery successful via XPC, found 0 apps”.
  • Steps 2 and 3: grep -c /usr/bin/defaults ~/Desktop/exec.json is 0, unless other software ran defaults during 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.

  1. Have at least seven pending updates, so the menu bar shows five and “View 2 more updates →”. Close the apps involved.
  2. Click Update All, then Update and Yes. Keep the dashboard open and open the menu bar now and then while the run goes on.
  3. Optional, for a failure: turn Wi-Fi off while one app downloads, and back on before the next one.
  4. Click the orange arrow on one row to update a single app.
  5. Optional: with BackgroundPatchClosedAppsScheduler set to helper, 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.

  1. With no self-update keys in the profile, launch App Auto-Patch and check aap.log.
  2. Run defaults delete xyz.techitout.appAutoPatch LastSelfUpdateCheckDate (an error just means it isn’t set). Then, without relaunching, deploy a profile with SelfUpdateMethod BackgroundSchedule and SelfUpdateFrequency weekly. Wait up to 15 minutes.
  3. Read defaults read xyz.techitout.appAutoPatch LastSelfUpdateCheckDate. Leave the app running for an hour, then look at the log again.
  4. Change the profile to SelfUpdateMethod Disabled and wait up to 15 minutes.
  5. Replace it with the deprecated SelfUpdateEnabled true alone, then with SelfUpdateMethod InAppList plus SelfUpdateEnabled true.
  6. 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, SelfUpdateMethod holds the choice, and SelfUpdateEnabled and DiscoverSelfUpdateLabel are 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.

  1. Leave WorkflowStageUpdates on, 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".
  2. Keep the dashboard open, click Check for Updates, and open the menu bar once the check has finished.
  3. While staging runs, run cat "/Library/Application Support/AppAutoPatch/staging-progress.json".
  4. Remove the installers again, start another check, and restart the helper mid-staging: sudo launchctl kickstart -k system/xyz.techitout.appAutoPatch.roothelper.
  5. Optional: with BackgroundPatchClosedAppsScheduler set to helper, let a background pass or a scheduled discovery stage updates while the app is idle.
  6. 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.log has “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.

  1. Leave ZoomCallActiveCheck on, which is the default, and turn on VerboseMode. Have a Zoom update pending, and open Zoom without joining a meeting. Run pgrep -lx aomhost and note any process.
  2. Join a meeting (a test meeting at zoom.us/test works), then click Update All, then Yes.
  3. While still in the meeting, run pgrep -lx CptHost and lsof -nP -a -i UDP -c zoom.us | grep 8801.
  4. Leave the meeting, keep Zoom open, and update Zoom.
  5. Quit Zoom and update it again if it’s still pending. Pass:
  • Step 2: the other apps update and Zoom doesn’t. aap.log has “XPC service: Zoom call active — deferring Zoom label(s): …” and “ZoomCallDetector: Zoom meeting in progress: CptHost is running.”
  • Step 3 shows CptHost and, on most networks, UDP connections to port 8801.
  • Steps 4 and 5: Zoom updates, even with an aomhost from 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.

  1. Fork Installomator on GitHub and delete all but a few files from fragments/labels, for example keep googlechrome.sh and firefoxpkg.sh. Keep Installomator.sh and the rest of fragments/.
  2. Deploy InstallomatorVersion = custom, InstallomatorVersionCustomRepoPath = the fork (MyOrg/Installomator) and, for a private fork, GitHubAPIAuthEnabled with a token.
  3. 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.
  4. Set InstallomatorVersion to main, then to release, repeating step 3 each time.
  5. With main, add 0.0.0.0 raw.githubusercontent.com to /etc/hosts and repeat step 3. Remove the line afterwards.
  6. Set custom again, delete the fork’s last label files so fragments/labels is 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 release in place of main for 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.

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 DialogTimeoutDeferral countdown (default 5 minutes). The install starts when you click Update Now or the countdown ends. DeferralWatcher opens 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, and DeferralWatcher works them out again every minute. A date written by hand is replaced within a minute, so to move a day deadline, change DeadlineDaysHard or DeadlineTimeOfDay instead.

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.

  1. From the dashboard, click Update All with at least one app pending.
  2. In the prompt, pick the shortest defer option available.
  3. Click Defer.
  4. 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.

  1. defaults write xyz.techitout.appAutoPatch DeadlineCountHard -int 2. Optionally shorten the countdown: defaults write xyz.techitout.appAutoPatch DialogTimeoutDeferral -int 60.
  2. Fast-forward the counter, with no deferral running: defaults write xyz.techitout.appAutoPatch HardDeferralCount -int 2 and defaults delete xyz.techitout.appAutoPatch NextAutoLaunch (ignore an error).
  3. 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).” (when DeferralWatcher opened 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 for DialogTimeoutDeferral.

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.

  1. With the default one-day cycle (DaysUntilReset=1), the deadline is DeadlineTimeOfDay on 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 1 defaults write xyz.techitout.appAutoPatch DeadlineTimeOfDay "$(date -v+5M +%H:%M)"
  2. Wait a minute for the next deadline check. defaults read xyz.techitout.appAutoPatch HardDeferralDate is today at that time (in UTC), although you haven’t deferred.
  3. 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.
  4. 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 HardDeferralDate by 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 for DeadlineTimeOfDay.

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.

  1. defaults write xyz.techitout.appAutoPatch DeadlineCountFocus -int 1.
  2. defaults write xyz.techitout.appAutoPatch FocusDeferralCount -int 1.
  3. Click Update All. Pass: the prompt headline is “Updates Available” and the button is “Defer”. The timer picker still shows the full DeferralTimerMenu. HardDeferralCount increases by 1 if you defer. FocusDeferralCount stays at 1.

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.

  1. defaults write xyz.techitout.appAutoPatch DeadlineCountFocus -int 2.
  2. defaults write xyz.techitout.appAutoPatch DeferralTimerFocus -int 1.
  3. defaults delete xyz.techitout.appAutoPatch FocusDeferralNotificationsEnabled.
  4. Start caffeinate -d in Terminal, or turn on Focus.
  5. With a pending update, set NextAutoLaunch a 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”. FocusDeferralCount is 1 and HardDeferralCount is unchanged. NextAutoLaunch is about 1 minute ahead. Click Update All while caffeinate -d is still running: the normal dialog appears, and deferring it increases HardDeferralCount only. Repeat the past-NextAutoLaunch step once more. The second automatic deferral sets FocusDeferralCount to 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 true posts 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" makes caffeinate -d no longer count. A real Focus mode still defers.

Goal: confirm AggressivePatchDayDeferral shrinks the picker options on the patch day as PatchingEndTime approaches, and makes the update required once that time has passed.

  1. Enable the feature: defaults write xyz.techitout.appAutoPatch AggressivePatchDayDeferral -bool true
  2. Make today the patch day with a one-day cycle whose hard deadline is late tonight: defaults write xyz.techitout.appAutoPatch DaysUntilReset -int 1 defaults write xyz.techitout.appAutoPatch DeadlineDaysHard -int 1 defaults write xyz.techitout.appAutoPatch DeadlineTimeOfDay "23:30"
  3. Set PatchingEndTime to 45 minutes from now (e.g. if it’s 14:00, use 14:45): defaults write xyz.techitout.appAutoPatch PatchingEndTime "HH:MM"
  4. 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.
  5. Now set PatchingEndTime to 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 for PatchingEndTime, DeadlineTimeOfDay, DeadlineDaysHard and DaysUntilReset.

Goal: confirm user-initiated deferrals, focus suppressions, and forced installs are recorded on disk and visible in the dashboard.

  1. With a pending update, click Update All → Defer.
  2. 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 .deadlineForced event appears for those labels. After 3e (focus suppression), a .focusSuppressed event appears.
  3. Generate a diagnostic bundle (Settings → About → Generate Diagnostic Bundle) and open the zip — confirm a deferral-events/ folder is present alongside receipts/.

Goal: confirm resetDeferralCounts() runs after a successful patch, and that the cycle’s patching is then complete until the cycle resets.

  1. After any of 3a–3g, run a successful Update All: click Update, then Yes (or let the required-update prompt’s countdown end).
  2. Right after the run completes, in Terminal: defaults read xyz.techitout.appAutoPatch | grep -E 'FocusDeferralCount|HardDeferralCount|FocusDeferralDate|HardDeferralDate|NextAutoLaunch|JitterOffset|LastPatchingCompletionDate|NextPatchingCycleDate'
  3. Wait a minute and run it again. Pass: in step 2, FocusDeferralCount and HardDeferralCount are 0, and NextAutoLaunch and BackgroundPatchStartupJitterOffsetMinutes are gone (cleared by resetDeferralCounts()). LastPatchingCompletionDate is the run’s time, and the menu bar says “Patching is complete for this cycle. The next cycle starts …”, the NextPatchingCycleDate. In step 3, FocusDeferralDate and HardDeferralDate are back with the same dates as before the run when DeadlineDaysFocus or DeadlineDaysHard is set: they come from the cycle start, and the cycle hasn’t changed. An update found before NextPatchingCycleDate waits 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.

  1. Open an app with a pending update (e.g. VLC) and leave it open. Ask for Installomator’s dialog, which the default quit_kill doesn’t show: defaults write xyz.techitout.appAutoPatch InstallomatorOptions "NOTIFY=silent BLOCKING_PROCESS_ACTION=tell_user"
  2. defaults write xyz.techitout.appAutoPatch DeadlineCountHard -int 1 and defaults write xyz.techitout.appAutoPatch HardDeferralCount -int 1.
  3. defaults write xyz.techitout.appAutoPatch DialogTimeoutDeferral -int 60 to shorten the countdown.
  4. 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.
  5. 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.
  6. Repeat with neither key set: defaults delete xyz.techitout.appAutoPatch HardDeadlineBlockingProcessAction and defaults delete xyz.techitout.appAutoPatch InstallomatorOptions. Pass: the same as step 5. Options without a BLOCKING_PROCESS_ACTION use quit_kill. Clean up: defaults delete xyz.techitout.appAutoPatch DialogTimeoutDeferral, then the same for DeadlineCountHard and HardDeferralCount.

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.

  1. defaults write xyz.techitout.appAutoPatch VerboseMode -bool true. Have a pending update and a hard deadline more than an hour away, and note HardDeferralCount.
  2. Set NextAutoLaunch a minute ahead: defaults write xyz.techitout.appAutoPatch NextAutoLaunch "$(date -u -v+1M +%Y-%m-%dT%H:%M:%SZ)"
  3. Run pmset displaysleepnow and 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. NextAutoLaunch stays about a minute ahead, and HardDeferralCount, FocusDeferralCount and LastDeferralDate don’t change. Notification Center holds one “Your deferral has ended” notification.
  4. 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.
  5. Repeat with Fast User Switching to another account: the log says “(session switched out)”.
  6. 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…”.
  7. Open the dialog with Update All, then run pmset displaysleepnow. Pass: the dialog stays open and DialogTimeoutDeferral still applies. DarkWake can’t be started on demand. On a Mac that Power Nap wakes, the verbose lines during the night name “(DarkWake)” with a System Capabilities value that lacks 0x2. 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.

  1. defaults write xyz.techitout.appAutoPatch DeferralTimerMenu "30,60,120,240,480,720,1440".
  2. Make the hard deadline today, 5 hours 30 minutes from now, with a one-day cycle: defaults write xyz.techitout.appAutoPatch DaysUntilReset -int 1 defaults write xyz.techitout.appAutoPatch DeadlineDaysHard -int 1 defaults write xyz.techitout.appAutoPatch DeadlineTimeOfDay "$(date -v+5H -v+30M +%H:%M)"
  3. 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: NextAutoLaunch is the deadline.
  4. Set DeadlineTimeOfDay 20 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 for DeadlineTimeOfDay, DeadlineDaysHard and DaysUntilReset.

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.

  1. Use a profile with a managed DeadlineDaysHard and leave App Auto-Patch running across a cycle reset, with an update still pending.
  2. A few minutes after the reset, read /Library/Application Support/AppAutoPatch/compliance.json and helper-state.json. Pass: hardDeadline is the console user’s new HardDeferralDate, status isn’t Overdue, and recordedHardDeadlineCycleEnd is the console user’s NextPatchingCycleDate. 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.

  1. 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 1 defaults write xyz.techitout.appAutoPatch DeadlineDaysHard -int 1 defaults write xyz.techitout.appAutoPatch DeadlineTimeOfDay "$(date -v+3H -v+35M +%H:%M)" and defaults delete xyz.techitout.appAutoPatch DeadlineCountHard (ignore an error).
  2. 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.
  3. Click Update All. Pass: under “Auto-installs by …” the dialog shows the same line, and it counts down while the dialog is open.
  4. Set DeadlineTimeOfDay 20 minutes from now and wait a minute. Pass: “20 minutes remaining before the hard deadline.”
  5. With a longer cycle (DaysUntilReset 7), make the hard deadline tomorrow, 5 hours later than now. The deadline is the cycle’s start day plus DeadlineDaysHard days, at DeadlineTimeOfDay, so on the cycle’s first day that is DeadlineDaysHard 1 and DeadlineTimeOfDay "$(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…”.
  6. Set DeadlineCountHard to 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 for DeadlineDaysHard, DeadlineCountHard and DaysUntilReset.

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.

Goal: detected updates are downloaded before a closed-app patch, and the install reuses that file.

  1. Leave WorkflowStageUpdates at its default (true), or confirm Settings → Advanced → Background Patching → Download installers before installing is on.
  2. Make sure at least one closed app has a pending update.
  3. 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 notification and the “open apps need updating” notification arrives only after Closed-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 shows Staging N update(s) before the open-apps notification when an open app still needs a toast, and that toast arrives only after Staging complete. The log also shows Staging N detected update(s) before the closed-app pass (or Staging N update(s) before installing) before Installomator runs, then Using staged installer. A successful install logs Removed staged installer for that label only. Updating one app from its row leaves other labels’ files in /Library/Application Support/AppAutoPatch/staging (/private/tmp/AAPStage up to build 115). Restart the Mac and confirm the next staging logs Already staged for them. While the cycle’s patching is complete, the log says Not staging updates before the next cycle (or Not pre-staging) instead. Set WorkflowStageUpdates to false and confirm the next pass does not stage and the open-apps notification is not delayed.
  1. Settings → Advanced → Background Patching.
  2. Confirm Enabled is on, Scheduler is In-app, and the interval is 1 hour (the test minimum).
  3. Make sure at least one closed app on the dashboard has a pending update.
  4. Quit any running instance of that app and leave AAP running.
  5. 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”.

Goal: background passes survive a full quit of the GUI app.

  1. Settings → Advanced → Background Patching → Scheduler → Helper daemon.
  2. Click Save.
  3. Quit AAP entirely (menu bar popover → Quit App Auto-Patch).
  4. Wait out the configured interval. Pass: when you next launch AAP, you should see logs in the in-app Logs pane confirming a HelperBackgroundPatchScheduler pass ran. If you re-enabled the GUI’s helper observer (the default), a single completion toast appears within 60 seconds of relaunch.
  1. Confirm BackgroundPatchClosedAppsRequireOnAC is true (the default).
  2. Disconnect AC, close an app with a pending update, and refresh AAP.
  3. 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.
  1. Install the example managed notification profile and grant notification access to both App Auto-Patch identities.
  2. Trigger a background-patch start/completion and an updates-available or AC-power-required notification.
  3. Set TemporaryNotificationTypes to ["updatesAvailable"] and PersistentNotificationTypes to ["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.
  1. Add a single label (e.g. firefox) to the Block list in Background Patching settings.
  2. 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.

Goal: confirm the scheduler skips network phases when internet is unavailable or behind a captive portal.

  1. Block captive.apple.com at the hosts level: sudo sh -c 'echo "0.0.0.0 captive.apple.com" >> /etc/hosts'
  2. 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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. A helper restart mid-pass. In helper mode, run sudo launchctl kickstart -k system/xyz.techitout.appAutoPatch.roothelper while a background pass installs.
  6. A setting in /Library/Preferences. With no profile setting it, run sudo defaults write /Library/Preferences/xyz.techitout.appAutoPatch WebhookFeature all (with a webhook URL set), and let a helper pass or deadline pass run.
  7. A package label with no packageID. With VersionComparisonInstallomatorFallback on and such a label installed (for example one whose type is pkg and that sets no packageID), click Check for Updates, then wait a few minutes.
  8. 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.log has “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.log then 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.log has “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.json and the other helper files) and discovered-apps.json.

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.

  1. 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.
  2. 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.
  3. Wait about 5 minutes: the first check runs 5 minutes after launch.
  4. 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).

  1. 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).
  1. 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.
  1. Click the menu bar item.
  2. 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)”
  1. Finish the cycle’s patching, so the menu bar says Patching is complete for this cycle.
  2. Before the next cycle starts, put an older version of an app with a label on the Mac and click Check for Updates.
  3. 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.log has 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.

  1. 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).
  2. Click the icon to open the panel, and look at the icon while it is highlighted.
  3. 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.
  4. 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.

  1. With at least one pending update, click Update All in the menu bar. On Install updates?, click No at once.
  2. Wait at least 30 seconds.
  3. Click Update All again and close the window with its close button. Wait 30 seconds.
  4. 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.log has 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.

  1. 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.
  2. Click Re-check All Alerts, then at once Update and Yes on the prompt.
  3. While the check runs, click a pending-updates notification, or wait for the deferral watchpoint.
  4. Separately: start Check for Updates from the dashboard, then click Update All in the menu bar and Yes.
  5. 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.log has 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.

  1. Change any preference (e.g. add a label to Ignored Labels).
  2. Click Save.
  3. Quit AAP completely (menu bar → Quit) and relaunch. Pass: your change is still there.

Goal: confirm that an MDM-delivered key is honored and the corresponding Settings field is disabled.

  1. Deploy a configuration profile setting IgnoredLabels to a known list, using the manifest in Profile Manifests/.
  2. 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.
  1. Apply an existing AAP 3.5.0 configuration profile that uses the IgnoredLabels key (and any others — RequiredLabels, OptionalLabels, PatchWeekStartDay, etc.).
  2. Open AAP. Pass: every key is honored, except the retired InteractiveMode. PatchWeekStartDay starts the cycle a day earlier than 3.x did, because 4.0 counts Sunday as 1 where 3.x counted Monday as 1.
  1. With the dashboard open and the sidebar shown on Logs, deploy a profile that sets HideLogViewer to true.
  2. Switch to another app, then back to App Auto-Patch.
  3. Check View in the menu bar, and try to drag a sidebar out from the window’s left edge.
  4. 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.log keeps growing, and a diagnostic bundle from Settings › About still has logs/aap.log. After step 4 the sidebar button is back and Logs opens the log.
  1. Open Settings › About and scroll to Credits & Links.
  2. Click each of the first three links.
  3. 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.

  1. 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.
  2. Wait an hour, or restart the root helper, and read aap.log.
  3. Make one app fail to install once, for example by blocking its download.
  4. Deploy a profile that sets InstallFailureLimit, and reopen Settings. Pass:
  • Step 1: defaults read xyz.techitout.appAutoPatch shows DiscoverPackageReceiptOnlyLabels = 1, DiscoveryFrequency = 1 and InstallFailureLimit = 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.

  1. With none of the keys set, open the dashboard.
  2. Put a 2400 × 400 px banner and a dark version in /Library/Application Support/AppAutoPatch/Branding/. Set BannerImage and BannerImageDark to 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.
  3. Set BannerImage to gradient=#0F3D91,#1E88E5 and BannerTitle to a name. Try BannerTitleAlignment Left, Center and Right, then BannerTitleFontSize 40, and BannerHeight 100.
  4. Set BannerImage to an https:// URL of an image, open the dashboard, then turn Wi-Fi off, quit and reopen the app.
  5. Set DockIcon to a 1024 × 1024 PNG and open the dashboard. Close the window, then open it again. Remove DockIcon and open the dashboard.
  6. Set BannerImage to a missing file, then to ftp://x, and BannerTitleAlignment to middle-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 in aap.log.

Prerequisite: at least one patch run has completed (test 2c satisfies this).

  1. 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.
  1. Expand the row of an app you’ve never patched. Pass: the panel reads “No patches recorded for this label yet.”

  1. Settings → About → Diagnostics → Generate Diagnostic Bundle.
  2. After ~5 seconds, click Reveal in Finder.
  3. Open the resulting zip. Pass: the zip contains
  • metadata.txt (app version, helper status, cdhash summary, and a Managed login items section that lists each com.apple.servicemanagement rule, whether it covers the helper, and a verdict)
  • prefs/user.plist and (if applicable) prefs/managed.plist — open them and confirm WebhookURLSlack / WebhookURLTeams are <redacted>, and DiscoveredAppsData is absent.
  • On a Mac with a managed login items profile, prefs/servicemanagement-profiles.plist, with every login items payload grouped by profile, and prefs/servicemanagement.plist (and servicemanagement-user.plist when the console user has a copy). On a Mac with several such profiles, metadata.txt lists each one by name and finds the rule that covers the helper even when /Library/Managed Preferences doesn’t have it.
  • logs/aap.log and (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)

  1. 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)”
  1. Install AAP version A; let it register the helper.
  2. Install AAP version B (different build, hence different cdhash) on top.
  3. 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)”
  1. On a Mac without a com.apple.servicemanagement rule for the helper, log in as a standard (non-admin) user and leave the helper waiting for approval in Login Items & Extensions.
  2. Open the dashboard. Pass: the Setup Required card adds “Only an administrator can allow the helper. Contact .” With a profile whose Label rule 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.log has a HelperInstallationService: 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)”
  1. Log in with an account that is not in staff, such as an Active Directory mobile account whose id -Gn doesn’t list staff.
  2. After a few seconds, run ls -led "/Library/Application Support/AppAutoPatch/jobs" "/Library/Application Support/AppAutoPatch/logs/aap.log".
  3. Open the dashboard. Pass: jobs has one entry, user:<name> allow list,add_file,search,add_subdirectory,delete_child,readattr,readextattr,readsecurity, and aap.log has user:<name> allow read,write,append,readattr,readextattr,readsecurity. The wizard’s step 1 says Root helper is running., and aap.log has “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”. A staff member 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)”
  1. Make the helper fail at launch, for example sudo chmod 000 "/Applications/App Auto-Patch.app/Contents/MacOS/AppAutoPatchRootHelper" followed by sudo launchctl kill TERM system/xyz.techitout.appAutoPatch.roothelper.
  2. Quit and relaunch App Auto-Patch, and wait for its automatic reset to finish (about 30 seconds).
  3. Restore the helper with sudo chmod 755 on 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. Contact with a diagnostic bundle from Settings › About.” instead of “Waiting for it to start…”. aap.log has “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)”
  1. On a Mac with build 129, OpenAtLogin or KeepAlive on and the old approval profile (with the TeamIdentifier rule), note the Robert Schroeder entry under System Settings › General › Login Items & Extensions › Allow in the Background.
  2. 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.
  3. Run plutil -p ~/Library/LaunchAgents/xyz.techitout.appAutoPatch.login.plist and system_profiler SPConfigurationProfileDataType | grep -A3 RuleType.
  4. Log out and back in, then open Allow in the Background again.
  5. Run sudo sfltool dumpbtm | grep -B 4 -A 15 appAutoPatch.login.
  6. Remove OpenAtLogin and KeepAlive, deploy the build 130 xyz.techitout.appAutoPatch.agent.example.plist to /Library/LaunchAgents/xyz.techitout.appAutoPatch.agent.plist, and repeat steps 4 and 5 with appAutoPatch.agent. Pass:
  • The helper is approved and the first-run wizard skips step 1.
  • Step 3: the plist has AssociatedBundleIdentifiers = xyz.techitout.appAutoPatch. aap.log has “Wrote login agent” from the first launch of build 130. The profile has three Label rules (…roothelper, …login, …agent) and no TeamIdentifier rule.
  • 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 ] and xyz.techitout.appAutoPatch among its associated bundle IDs.
  • Report a Robert Schroeder entry that stays after step 4, with the step 5 output.
  1. Manually break the helper (e.g. revoke its approval in System Settings → Login Items & Extensions).
  2. 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.

Preconditions: the Root3 Support App is installed, and App Auto-Patch has updates pending.

  1. Copy Scripts/support-app/aap_pending_updates.zsh and aap_pending_apps_dialog.zsh to /Library/Application Support/AppAutoPatch/SupportApp/, owned by root:wheel with mode 755.
  2. Deploy a Support App profile with the Extension item in docs/CompanionScripts.md › Root3 Support App.
  3. Open the Support App popover, then click the tile.
  4. Click Defer in the dialog, then open the popover again.
  5. Quit App Auto-Patch and click the tile again. Pass: step 3 shows “N Updates Pending” with the warning badge, where N is pendingCount in compliance.json, then App Auto-Patch’s deferral dialog listing those apps. aap.log has “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.

If you want to start fresh, run the following:

Terminal window
# Stop and unregister the helper
sudo launchctl bootout system/xyz.techitout.appAutoPatch.roothelper 2>/dev/null
sudo rm -f /Library/LaunchDaemons/xyz.techitout.appAutoPatch.roothelper.plist
# Wipe app state
sudo rm -rf "/Library/Application Support/AppAutoPatch"
# Wipe local prefs
defaults 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.”
  • 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!