Files
CleanMM/Packages/AtlasInfrastructure
zhukang 1cb9a42c7b fix: enforce recovery retention and fail-closed restore semantics
- prune expired recovery items on load/save and reject expired restores at worker boundary
- add restoreExpired and restoreConflict protocol/application error mapping
- disable expired restore actions in History and reload persisted state after restore failures
- add recovery expiry/conflict coverage plus sync protocol, architecture, state-machine, and recovery contract docs
- wire AtlasAppTests into the shared Xcode scheme and add app-layer regression coverage for expired restore reload behavior

Refs: ATL-221 ATL-222 ATL-223 ATL-224 ATL-225, vibe-kanban SID-9
2026-03-13 14:38:50 +08:00
..

AtlasInfrastructure

Responsibility

  • Persistence
  • Logging and audit events
  • Permission inspection
  • Process, helper, and XPC transport support
  • Worker-boundary orchestration for MVP flows

Current Implementation

  • AtlasWorkspaceRepository persists the workspace snapshot, current plan, and settings as local JSON state.
  • AtlasScaffoldWorkerService now backs scan, preview, execute, restore, apps, uninstall, and settings flows through structured protocol requests.
  • AtlasPermissionInspector performs best-effort macOS permission checks for Full Disk Access, Accessibility, and Notifications.
  • AtlasPrivilegedHelperClient invokes the allowlisted helper executable using structured JSON payloads.
  • AtlasXPCWorkerClient and AtlasXPCListenerDelegate provide the real app-to-worker transport boundary using NSXPCConnection with structured Data payloads.
  • AtlasPreferredWorkerService prefers the bundled XPC service and falls back to the in-process worker when needed.
  • AtlasAuditStore records audit-friendly task events.