feat(alerts): Threshold Alert Engine, Notification Center & Release Packaging (M5 / Issue #24) #26
Merged
gronod
merged 2 commits from 2026-09-08 14:04:19 +01:00
feat/24-threshold-alerts into milestone/m5-alerts-hardening
No Reviewers
Labels
Clear labels
Bug/Architecture
Bug/Backend
Bug/DevOps
Bug/Documentation
Bug/Performance
Bug/Security
Bug/Testing
Bug/UI
Compat/Breaking
Feature/Architecture
Feature/Backend
Feature/DevOps
Feature/Documentation
Feature/Performance
Feature/Security
Feature/Testing
Feature/UI
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Project/Antigravity
Architecture & Foundation Defect
Backend, service, or low-level logic defect
CI/CD, build system, and automation defect
Documentation inaccuracy or fix
Performance regression or degradation defect
Security vulnerability or flaw
Test failure or testing defect
User interface and presentation defect
Breaking change that won't be backward compatible
Architecture & Foundation Feature
Backend, service, or low-level logic feature
CI/CD, build system, and automation feature
Documentation additions and features
Performance optimization feature
Security capability or hardening feature
Test suite, mock, or testing harness feature
User interface and presentation feature
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Low
4
The priority is low
Priority
Medium
3
The priority is medium
Part of the Antigravity Project specification
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gronod/MacMonitor#26
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Implements Issue #24 (Threshold Alerts & macOS Notification Center Integration) plus the M5 release-packaging step from BUILD-PLAN.md.
Alert Engine (
Sources/Intelligence/)AlertEngine(@Observable, @MainActor) evaluates five configurable rules after every telemetry decode pass via a SendableAlertEvaluationContext:AlertConfigurationpersisted as JSON inUserDefaults.Notification Delivery
AlertNotificationDispatchingprotocol (mockable, per AGENTS.md synthetic-testing rules) backed byUNUserNotificationCenter.NSApplicationDelegateAdaptor;MM_ALERTcategory with Open MacMonitor and View Processes actions routed throughAppNavigationBus(activates window, selects Processes tab).willPresent→[.banner, .sound, .list].UI
AlertsSettingsView): master toggle, permission status, test notification, cooldown picker, per-rule thresholds.AlertsView): active-alert cards + history log.Bug fix
pressureLevelnow decodesmemoryPressureStatus(previously always fell back to "Normal").Release Packaging (M5 item 2)
release-packagejob in.gitea/workflows/build.ymlonv*tags: Release x86_64 build → ad-hoccodesign(required for notifications in distributed builds) →dittozip → workflow artifact + Gitea release assetMacMonitor-intel-x86_64.zip.Verification
xcodebuild build test -scheme MacMonitor -destination 'platform=macOS,arch=x86_64' CODE_SIGNING_ALLOWED=NO— 87 tests, 0 failures (25 newMMAlertsTests).swiftlint lint— 0 violations.xcodegen generateregeneratedproject.pbxproj.Closes #24 once merged through
milestone/m5-alerts-hardening→develop.