Issue #28: per-display Library assignment + coverage qualification

Closed
TE
2mo ago
+829-80

Implements issue #28 Track A and Track D together because both touch per-display wallpaper/runtime state.

Track A — per-display wallpaper assignment

  • Adds a native Display Wallpapers window backed by the existing Library, with one picker per connected display.
  • Keeps Same wallpaper on all displays as the simple/default path and preserves SharedVideoHub sharing for compatible video scenes.
  • Persists assignments by Core Graphics display UUID, migrates legacy transient NSScreenNumber bookmark keys, and retains security-scoped access for the lifetime of per-display surfaces.
  • Treats Desktop Span as one continuous all-display canvas while preserving saved individual assignments for the next ordinary scene.
  • Prepares matching per-display system wallpaper stills for ordinary independent assignments.

Track D — coverage-rest qualification

  • Keeps coverage resting off by default.
  • Adds 95% rest / 82% resume hysteresis with two consecutive stable samples before each transition.
  • Tracks each display independently, so one display can rest while another continues.
  • Keeps shared video playback running while any display remains visible; it rests only once every display rests or the normal global pause path applies.
  • Expands system-chrome exclusions, treats ambiguous translucent windows conservatively, and logs every enabled sample with thresholds, candidate/stability state, and ignored-window counts.
  • Adds a qualification matrix covering fullscreen apps, partial windows, translucent overlays, menu/Dock/Control Center/Notification Center/screenshot UI, Stage Manager, Mission Control/Spaces, reconnect, and Desktop Span.

Tests / checks

  • Adds Tests/WallpaperPolicyTests.swift for hysteresis, consecutive samples, independent-display behavior, shared-playback behavior, stable display keys, and legacy-key migration.
  • Local Swift 6.2.1 policy tests passed.
  • Local Swift parser checks passed for every changed Swift file.
  • bash -n test.sh passed locally.
  • macOS 15 / Xcode 16.4 PR CI: app + arm64 saver build passed, settings UI smoke passed, and the complete test.sh suite passed, including the new wallpaper-policy checks.
  • The workflow's final bundle-verification step fails on codesign --verify --strict build/Idlesse.app with a sealed resource is missing or invalid. Current main at 8d7e9bf50db38fba9b457d668ae6ec13b290b958 fails the same step after its own build/tests pass, so this is the existing bundle-signing gate and stays outside this focused pass.

Interactive WindowServer and physical multi-display GPU cases require a macOS desktop session, so this pass leaves coverage resting opt-in and documents the qualification procedure/evidence needed before any default-on change.

No release/signing/notarization changes and no broad WallpaperController refactor.

Refs #28.