mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-24 12:42:38 +00:00
0130609a2d074b2ca698f797318d4b8e67261ef4
All mutable state fields accessed from multiple threads (timer callbacks, ImeLogTracker events, EspAndHelloTracker events, desktop detection, background Task.Run) are now protected by a single _stateLock. Key fixes: - TryEmitEnrollmentComplete: atomic guard-check-and-claim prevents double enrollment_complete emission (the most critical race condition) - RecordSignal: List<string> mutations are now thread-safe - NotifyDesktopArrived: atomic check-and-set prevents duplicate processing - CollectDeviceInfo: _enrollmentType/_skipUserStatusPage writes are visible to concurrent readers immediately after lock release - OnHelloCompleted/OnWaitingForHelloSafetyTimeout: consistent multi-field reads prevent wrong branch selection - SummaryTimerCallback: _stateDirty flag and _stateData serialization are synchronized to prevent corrupted state persistence - EmitAppTrackingSummaryIfChanged: hash comparison is atomic to prevent duplicate summary events Lock discipline: all lock sections contain ONLY field reads/writes — no _emitEvent, _logger, timer operations, or external callbacks. This guarantees no deadlocks and microsecond-level contention. https://claude.ai/code/session_01EWzmYXFmXUaPpeksi6WGKZ
Autopilot Monitor
Advanced monitoring and troubleshooting solution for Windows Autopilot deployments.
Overview
Autopilot Monitor provides real-time tracking, intelligent diagnostics, and automated troubleshooting for Windows Autopilot enrollment processes. It consists of:
- Bootstrap Script — PowerShell script deployed via Intune that starts monitoring early in the enrollment process
- Monitoring Agent — Lightweight .NET application that collects telemetry and evidence during enrollment
- Backend API — Azure Functions-based ingestion and processing pipeline
- Web Dashboard — Next.js application for real-time monitoring and fleet analytics
Architecture
For detailed information about the system architecture, components, and data flow, see Architecture Documentation.
Documentation
Full documentation is available at autopilotmonitor.com/docs
License
This project uses a split licensing model:
- MIT License — Agent (
src/Agent/) and Shared library (src/Shared/) — unrestricted use on end-user devices - AGPL-3.0 — Backend (
src/Backend/), Web Dashboard (src/Web/), and MCP Server (src/McpServer/) — server-side components remain open source
See LICENSE for full details.
Description
Windows Autopilot & Intune enrollment monitoring: live session timelines, fleet health, diagnostics, and an MCP server for AI-assisted troubleshooting.
autopilotdevice-managementdevice-provisioningendpoint-managementenrollmentintunemcp-servermonitoringmsintuneoobetroubleshootingwindowswindows-autopilot
Readme
AGPL-3.0
60 MiB
Languages
C#
72.7%
TypeScript
25.7%
PowerShell
1%
JavaScript
0.5%