versionBreakdown on the app analytics responses now carries measuredInstalls,
medianDurationSeconds and p95DurationSeconds per version (measured population:
succeeded, non-skip, plausible duration, no AppId collision). A new pure
AppVersionRegressionRadar detects "median install duration rose from X to Y min
after version Z": versions ordered by first-seen install time (never string
sort), fires at median lift >=2x AND >=300s absolute with >=10 measured
installs on both sides.
Episodes follow the rule-radar pattern in a fourth tracker keyspace
appversionregression|{app}|{version} (409-dedup, refresh keeps FirstNotifiedAt,
re-arm on drain / median back under 1.5x, 30d retention sweep re-arms): one
tenant bell app_version_duration_regression (Admin audience, appDetailUrl href)
plus one AppVersionDurationRegression ops event per episode, dual-registered in
the web OPS_EVENT_TYPES catalog. Runs in the maintenance timer after the rule
radar over one cross-tenant 35d install-summary read; kill switch
AppVersionRegressionRadarDisabled (fail-open). Apps detail page shows an amber
regression banner and a median-duration-by-version chart; OKF concept doc added.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
45 KiB
Log
2026-08-13 (later)
- Creation: Added
backend/app-version-regression-radar.md— app-version duration regression radar: per (tenant, app) the newest version's median measured install duration (nearest-rank; population Succeeded + non-skip +HasMeasuredDuration+ no AppId collision + non-empty AppVersion) is compared against the previous version (first-seen ordering, never string sort); fires at median lift ≥2× AND ≥300s absolute with ≥10 measured installs on both sides. Episodes live asappversionregression|{app}|{version}tracker rows (one bellapp_version_duration_regression+ oneAppVersionDurationRegressionops event per episode, refresh keepsFirstNotifiedAt, re-arm on drain/median-recovery/30d retention). Surfaces:versionRegressions[]+ per-versionmeasuredInstalls/medianDurationSeconds/p95DurationSecondsin the apps analytics responses, amber banner + duration-by-version chart on the apps detail page. Kill switchAppVersionRegressionRadarDisabled.
2026-08-13
- Update:
backend/session-annotations.md— the/annotationsportal overview page now carries the standard tenant switcher (GA/Reader: "All tenants" aggregate + per-tenant drill-down viaGET global/session-annotations; delegated: managed subset), with a tenant column and tenant-qualified session deep links. The global list endpoint now derivesexcludeGlobalAdminLanefromHasGlobalScope, so delegated-rescue callers on their managed?tenantId=path never receive the platform-internalglobaladminlane (endpoint-test-pinned).
2026-08-12
- Update:
agent/autopilot-ztd-diagnostics.md— Windows 365 Cloud PC exception documented: on Cloud PCsProfileAvailable=0is expected (provisioned by the Windows 365 service, not Autopilot), soautopilot_profile_missingis emitted as Info with a Cloud-PC-specific message and anisCloudPcpayload marker (ResolveAutopilotProfileMissingPresentation); the portal's Autopilot Profile card renders a neutral note instead of the amber warning for Cloud PC sessions (session.isCloudPcor the event marker).
2026-08-11 (later)
- Creation: Added
backend/session-annotations.md— session annotations: the newSessionAnnotationstable (PK=tenantId, RK={sessionId}_{lane}, lanes operator/tenantadmin/globaladmin) storing structured verdicts (root_cause_confirmed | analysis_wrong | different_problem | inconclusive) + notes with server-stamped authorship and a fired-rule-id snapshot for join-free rule-quality evaluation. Per-lane write matrix re-gated in-function with own-tenant binding (a GA writes only the platform-internalglobaladminlane cross-tenant; tenant callers never see that lane). Surfaces: portalSessionAnnotationsCard(session detail, after Analysis), MCPlist_session_annotations(ga) +annotate_session(strictGa, always the GA lane) +annotationskey inget_session_summary. Lifecycle: per-session cascade steps 17–19, offboarding wipe, critical-backup member.
2026-08-11
- Update:
rules/gather-rule-guardrails.md— hard-block mirroring closed across all pre-flight layers:rules/guardrails.jsonnow also mirrorsblockedCommandPatterns+maxCommandLengthand carriesC:\Windows\System32\configinblockedFilePrefixes; portal (guardValidation.ts) and MCP (rule-validation.ts) apply them in agent order (before the unrestricted-mode early-return), so a command the agent hard-blocks no longer shows "Allowed" in unrestricted tenants.GuardrailsParityTestspins the JSON mirror to the C# constants. MCPvalidate_ruleadditionally validatesjson/xmltargets with file semantics (the schema'scollectorTypeenum was missing both) and rejectsactivePhases+activeFromPhaseset together (backend 400 parity). Author stamping extended to PUT-upserts: tenant and global gather-rule updates stamp the caller's JWT display name before the service call, so an upsert of a non-existing ruleId can no longer store a payload-supplied author (true updates still preserve the original author).
2026-08-10
-
Update:
rules/gather-rule-guardrails.md— WMI matcher generalized from literal prefix matching to shape parsing:SELECT <* | property-list> FROM <class>is allowed when the class is derived from the existingSELECT * FROM <class>entries (a projection is a strict subset; motivated bySELECT BatteryStatus FROM Win32_Battery+on_changebattery polling thatSELECT *defeats via fluctuating charge %). Same algorithm mirrored agent/portal/MCP; guardrails.json unchanged. Portal now also gates enabling on the client-side validation (invalid-target custom rules create disabled, cannot be toggled on, force-disable on invalid edit, "Blocked on devices" badge) — UX only, the agent guard stays the boundary. Gather-rule Author is now stamped from the creator's JWT (display name → UPN) at create and immutable on update. -
New:
agent/continue-anyway-observation.md— Continue-Anyway observation mode (EnableEspContinueAnywayObservation, ConfigVersion 37, operator-set): Device-phase ESP terminal failures on Continue-Anyway profiles are defanged into a 60-min observation window (Classic/Unknown, non-pre-prov only); real-user desktop + Hello gate complete the session as Succeeded +EspSoftFailure/CompletionSource(amber "with issues" badge + detail banner), category recovery resolves clean, expiry un-defangs to the originalesp_terminal_failure. Registered in the Agent index section. Related backend fix (no doc): the auto-analyze enqueue now carries a 30 svisibilityTimeoutso rule evaluation no longer races the agent's terminal flush (ANALYZE-ESP-004's{{appName}}placeholder).
2026-08-07 (later)
- Update:
backend/cloudpc-device-validation.md— thirdIsCloudPctransport rail: the pre-auth distress channel.DistressReport.IsCloudPc(CloudPcDetector verdict captured atDistressReporterconstruction) →DistressReportEntry/table column → "Devices Not Registered" aggregation (sticky-true per serial, same OR semantics as the Sessions merge) → portal Cloud PC badge + actionable hint ("enable Windows 365 Cloud PC Validation + W365CloudPcValidation add-on"). Motivated by the first W365 field run: the rejected Cloud PC showed up as anonymous "Microsoft Corporation / Virtual Machine" with no clue that the fix is the Cloud PC validator, not Autopilot registration. UNVERIFIED like all distress fields; ≤18 bytes, fits the 1536-byte cap.
2026-08-07
- Update:
backend/cloudpc-device-validation.md— the "deliberately out of scope" follow-up landed in the same PR: agent-sideIsCloudPcflag (CloudPcDetector, bootstrap-verified marker AND: Windows365 key + CloudManagedDesktopExtension service key, SKIP-safe) rides two rails —SessionRegistration→ Sessions/Index (sticky-true) →SessionSummary+isCloudPcsearch filter (portal/raw/MCP), and theEnrollmentFactsObservedpayload →EnrollmentScenarioObservations.CloudPc(set-once, both values) with profile reasoncloud_pc_first_connect:no_device_esp_expected+cloud_pc_markerin the audit-trail census. Reason+observation only: no completion arm depends on DeviceSetup, Mode stays AccountSetup/IME-classified, EspConfig keeps configured-FirstSync semantics. Never an auth input.
2026-08-06
- Creation: Added
backend/cloudpc-device-validation.md— the CloudPc fallback validator (ValidatorType.CloudPc = 5, tenant flagValidateCloudPcDevice): W365 Cloud PCs are structurally never Autopilot-registered, so stage 4 gains a third stage that binds the chain-validated MDM cert's Subject CN (= Intune device id, field-verified on a real Cloud PC) to the tenant'svirtualEndpoint/cloudPCsinventory — admits exactly the service-provisioned Cloud PCs, no device-type routing, local W365 markers never consulted for auth. New optional Graph add-onW365CloudPcValidation→CloudPC.Read.All(catalog + grant script now pinned byGraphFeatureCatalogSyncTests; Graph 403 = definitive "grant missing", not transient). Bootstrap dev script v2.3-dev.3 exempts guard 4 (uptime) while the Cloud-PC relax is active — the fresh-profile window is the time anchor at first connect, not boot uptime. Follow-up deliberately out of scope: agent-sideIsCloudPcclassification + decision-engine "no Device ESP" expectation.
2026-08-05 (later)
- Update:
rules/rule-authoring-surface.md— new sectionPOST /api/rules/gather/test-pattern: the logparser pattern tester (agent-exact .NET matching: no IgnoreCase, first-match-per-line, cmtrace vs text mode, verbatim format=text hint), motivated by a field incident where a PHP-verified regex behaved differently under .NET.CmTraceLogParsermoved Agent →AutopilotMonitor.Shared.Loggingso agent and backend share the ONE parsing implementation (timestamp caveat: AssumeLocal = server TZ on backend, endpoint reports no timestamps). MCP: newtest_log_patterntool, logparser lint invalidate_rule, guide gains the case-sensitivity/engine-mismatch pitfalls.
2026-08-05
- Creation: Added
mcp/tool-telemetry.md— the three MCP tool-telemetry layers (App InsightsMcpToolName, per-user usage table,MCP_TOOL_LOGGINGstderr lines) and the new quality signals: soft-error capture (toolErrorreturns instead of throwing, so backend telemetry counted those calls as successes),resultChars/overCapvs. the inline-size hint, bounded args summaries, caller scope,search_zero_hiton the three search tools (unmet-demand signal), andtool_call_rejectedfor JSON-RPC-level Zod/unknown-tool rejections sniffed at the/mcproute (previously invisible everywhere). Bicep default fortoolLoggingEnabledflipped totrue(documented desired state; live flag set viaaz containerapp update). - Creation: Added
rules/rule-authoring-surface.md— the AI-assisted rule-authoring stack: three deterministic MCP resources (rule_authoring_guidehand-written,rule_schemas+rule_guardrailsgenerated intorule-authoring.generated.tsby a new combine.js emitter, drift-guarded twice), the MCP-localvalidate_rule(ajv 2020-12 against the single-rule $defs, guardrail pre-flight mirroring GatherRuleGuards matching semantics incl. hard blocks, semantic lint for schema-valid-but-dead rules), and the side-effect-freePOST /api/rules/analyze/dryrun(TenantAdminOrGlobalReader;RuleEngine.DryRun.cstrace twin sharing the production evaluators, all-conditions trace with per-condition evidence + matchingEventCount, parity and side-effect-freedom pinned by RuleEngineDryRunTests). MCPtest_analyze_rulewraps the endpoint with{{token}}-interpolated previews;author-ruleprompt drives the draft → validate → dry-run loop. Deliberately absent: gather-rule remote execution, rule writes via MCP.
2026-08-04
- Update:
rules/gather-rule-phase-scoping.md— new section "Which phase feeds the triggers":GatherRuleExecutorHostnow drivesphase_change/phase_exit/on_eventgather triggers (and the phase-scope gates) from the post-reduceTimelineEventStream(every emitted event's(eventType, phase)published byEventTimelineEmitter) instead of the pre-reduceSignalIngress.SignalPostedpayloads. Trigger: session32312a32(RealmJoin tenant rsneuffen.de) — a Phase-Start rule on FinalizingSetup fired at the raw ESP-exitEspPhaseChanged(FinalizingSetup)signal, 7 minutes before the engine's RealmJoin-gatedphase_transition(FinalizingSetup), readingHKLM\SOFTWARE\RealmJoin\Custom\BIOSbefore the RealmJoin package created it. Phase triggers now fire exactly when the timeline shows the phase;on_eventadditionally sees engine-emitted event types (enrollment_complete,realmjoin_resolved, …) for the first time in V2, restoring V1 semantics and the documented end-of-enrollment pattern. Other raw-signal hosts (DeviceInfo, keep-awake, PPKG) deliberately unchanged.
2026-08-02
- Creation: Added
backend/tenant-activation-welcome-mail.md— triggered by the first production auto-approve (activation at signup+64 s, notification address saved at +69 s → welcome mail silently skipped, since the approval path is the only sender and reads the address once). Fix documented in the doc: the notification-email save path now also triggers the send (PUT /api/preview/notification-email→ fresh approval checkIsApprovedFreshAsync, bypassing the 30 s negative cache), and a conditional-insertwelcome-email-sentmarker inPreviewWhitelistmakes the send once-only across both racing paths (marker consumed strictly after the address check; revoke clears it, offboarding wipes the partition, the GA resend endpoint sends unconditionally and consumes it best-effort).
2026-07-29
-
Update:
agent/gather-rule-debug-log.md— three trace enrichments: (1) newphasestage writing an enrollment-phase transition marker (phase change: Old -> New, ruleId-) so every rule-level line reads against the current phase; (2) logparser now writes one line per regex match — line number, matched text, capture groups — capped at 10 per file per run (the per-file summary keeps the full count); (3) the invalid-regexerrorline includes the offending pattern string. -
Update:
url-registry.md(+web/portal-navigation-prefetch.mdcontext) — the portal is now a full static export (output: 'export',trailingSlash: true): the SWA serves plain files, the managed SSR runtime — the portal's last cold-start source ("Backend call failure" > 45 s) — no longer exists. Detail routes moved from path params to query strings (/sessions?id=,/sessions/inspector?id=,/diagnosis?id=,/apps/detail?name=,/admin/backups/detail?id=,/admin/customs-archive/detail?tenantId=&rowKey=) with all 21 link sites going through the new single-definition builders inlib/routes.ts; the 9[section]families prerender viagenerateStaticParamsserver shells (37 pages,dynamicParams=false), serverredirect()index pages becameClientRedirectshells. Legacy PATH-shaped deep links (sent Teams/Slack/webhook notifications hold/sessions/{id}forever) are preserved permanently: SWA wildcard rewrites serve the family page and the globally mountedLegacyPathRedirectrewrites to the canonical query URL (hash + query preserved; mapping pinned bylib/__tests__/legacyPathRedirect.test.ts).middleware.tshost routing became the client-sideHostRoutingGuard(prefix list moved tolib/hostRouting.ts); the legacy/go/[code]route +bootstrapValidation.tsare deleted (BootstrapSessions table verified free of pre-cutover active sessions).staticwebapp.config.jsonnow carries the 19 docs/marketing redirects (order-sensitive), the legacy rewrites,404.htmloverride and ALL security headers incl. the literalized prod CSP — guarded by the newswaConfig.guard.test.ts; maintenance mode changed from whole-file swap to a first-routes-entry insert (README rewritten). Backend notification deep links go through the newConstants.PortalSessionUrl(query shape, pinned). Deploy:deploy-web.ymluploadsout/withis_static_export: true. -
Creation: Added
backend/oobe-bootstrap-go-flow.md(and aBootstrap go-URLsection + web-registry update inurl-registry.md) — the OOBE bootstrap script endpoint moved from the portal's Next.js/go/[code]SSR route into the Function App (GET /api/bootstrap/go/{code},GetBootstrapScriptFunction), unblocking the portal's static export; the customer URL becamego.autopilotmonitor.com/{code}(Front Door custom domain,/*route with origin-path rewrite, caching disabled — the script inlines the bearer token). NewConstants.BootstrapGoBaseUrl(single producer viaCreateBootstrapSessionFunction) + webBOOTSTRAP_GO_URL(display only); both guard host lists extended. Security invariants ported to C#:BootstrapScriptValueValidator(exact-GUID tenantId/token, https + host-allowlist +/agent/….zippath, expiry ≤ 14 d) andOobeBootstrapScriptGenerator(Replace-token raw-string template, single-quoted PS literals, 200-char error cap before quote-doubling; always-HTTP-200 text/plain contract forirm | iex). Endpoint isPublicAnonymousin the catalog,NoStoreCacheMiddleware-covered, self-rate-limitedbootstrap-script:{ip}20/min (rate-limit reply is also a 200 error script). Tests: golden byte-parity against the TS template, validator invariants incl. hostile-URL cases, format-gate table, and the previously missing BootstrapUrl shape pin. Transition: the legacy www route +middleware.ts/goprefix stay alive for pre-migration URLs (validity ≤ 168 h) and are removed in the static-export PR no earlier than 168 h after the last www URL was issued. Customer docsnetwork-endpoints.mdgained thego.host (device-facing, Bootstrap-Sessions-only). -
Update:
agent/autopilot-ztd-diagnostics.md— presentation layer for the startup error backfill (customer feedback: an unannounced wall of pre-agent Error events with a single identical timestamp read like a live failure). Agent: the backfill scan now buffers the capped record set, emits an Info summary event first (modern_deployment_log,backfillSummary: true+replayedCount/droppedOverCap/lookbackMinutes), then replays oldest-first so the timeline sequence follows event-log chronology. Web:EventTimeline.tsxbadgesbackfilled: trueevents („⟲ Backfilled", tooltip) and renders the originaltimeCreatedas the row time with a "(reported …)" suffix plus aRecordedmetadata line — works retroactively for already-stored events. Severity is deliberately not downgraded. -
Creation: Added
agent/gather-rule-debug-log.md— the new per-tenant settingEnableGatherRuleDebugLog(ConfigVersion 35 → 36, portal toggle under Settings → Agent,EnableImeMatchLog-style bool→path projection inRemoteConfigMerger). When enabled, the agent writes%ProgramData%\AutopilotMonitor\Logs\gather_rules_debug.log: one pipe-delimited line per evaluation decision across ten previously silent "produced nothing" exits — disabled rules,intervalwithoutintervalSeconds(never runs), the first-tick-after-one-full-interval window, phase-scope skips incl.currentPhase=Unknown, per-(rule, phase) dedup, empty collector results (emitOnlyIfExists),on_changehash suppression (hash prefix + streak), guard blocks, logparser per-file outcomes (position skips, parse failures with aformat=texthint when every line fails CMTrace parsing,maxLines/wildcard caps), and full exception stacks that the agent log drops. 10 MB cap + one.oldgeneration; no hot-reload (per-enrollment lifecycle); flag survives the offline config cache;--run-gather-rulesalways traces and echoes under--console; zero-rules delivery leaves a one-line file instead of nothing. Side fix:GatherRuleExecutorHostnow passes the logger intoInformationalEventPost, so gather-event emissions appear in the agent DEBUG log. -
Correction + Update:
web/portal-navigation-prefetch.md. The HTTP/1.1 claim in the 2026-07-27 entry below is wrong and has been struck from the document:portal.autopilotmonitor.comnegotiates h2, verified byopenssl s_client -alpn h2,http/1.1and a .NETHttpClientreturningHTTP/2.0. The false reading came from the Windows/Schannel curl build in this environment, which has no HTTP/2 support and therefore always reports1.1— do not use it to determine HTTP versions. There is no six-connection cap in play; the queue is server-side in the SWA SSR runtime, which does not change the fix or the evidence, only the mechanism. Added anOutcomesection with 20 h of post-change telemetry: the Free → Standard plan change (16:02:44 UTC) produced no measurable latency gain once stratified by the gap to the previous request (p50 Free → Standard:<10s85 → 95 ms,5-30min429 → 441 ms; tail rates 1.64 %/0.374 % over 2 s/10 s vs 6 and 1 events at n = 258 against 4.2 and 1.0 expected;browserTimingsMann-Whitney z = −0.24, p = 0.81). The freezes were removed byprefetch={false}(16:34:13 UTC): worstbrowserTimings.totalDuration225,277 → 4,856 ms. The prefetch storm was also an accidental keep-alive — requests under 10 s apart fell from 85 % to 46 %, and on the identical never-cacheable/sessions/{id}route the median rose 87 → 211 ms and p90 465 → 1,480 ms, with one 11,441 ms abandoned request (resultCode 0) after 517 minutes idle. Synthetic bursts warm the runtime and must not be used to benchmark this (round 1 p50 288 ms vs rounds 4–25 p50 113 ms).
2026-07-27
-
Creation: Added
web/portal-navigation-prefetch.md(and aWeb Portalsection to the index) — root cause of the minute-long portal freezes.GlobalSidebarandNavbarrender the whole navigation on every page, so the App Router's default viewport prefetch issued one?_rsc=request per visible link againstportal.autopilotmonitor.com(~10,400 in 14 days). (The original entry attributed the freeze to HTTP/1.1 and a six-connection-per-origin cap — see the 2026-07-28 correction; the queue is server-side.) When the Static Web Apps managed runtime queued the prefetches (p50 91 ms, p95 896 ms, but max 234 s / 21 samples over 30 s), the navigation the user wanted was stuck behind that queue. Measured on the 2026-07-27 17:25 CEST incident:/admin/presence?_rsc=151 s, three siblings finishing within 340 ms of each other at ~37.5 s, all200, while the backend API answered in 1.6–2.2 s andbrowserTimingsshowednetworkDuration16 ms againstprocessingDuration225 s. Every navigation Link now setsprefetch={false}— these routes are client components behindProtectedRoutethat fetch their own data, so the prefetched RSC payload carried no benefit. The doc also records that browser telemetry lives in a separate App Insights resource (AUTOPILOT_MONITOR_WEB_APPINSIGHTS_ID) that the MCPquery_backend_logstool cannot reach, which is why the freezes left no trace in the backend logs. -
Creation: Added
backend/rule-regression-radar.md— F3 regression radar (analyze rules only; gather rules wait for their per-batch stats dedup fix): per (tenant, rule) daily hit rate fromRuleStats, firing only when the trailing 7-day window has ≥5 hit sessions and ≥20 evaluated sessions, the rate is ≥2× the prior 28-day baseline AND the Wilson 95 % intervals are disjoint (deterministicMetricsMathprimitive with hand-computed test vectors). Suppressed for deleted rules, rules younger than baseline+window (CreatedAtgrace), rules edited inside the window (UpdatedAt), empty baselines, and theRuleRegressionRadarDisabledapp-setting kill switch. Alert episodes live asruleregression|{ruleId}tracker rows (one bell + oneRuleFrequencyRegressionops event per episode; numbers refreshed while active; re-armed under 1.5× baseline, on fire-stop, or by the 30-day tracker retention). On-fire dimension correlation over osBuild/model/agentVersion/imeVersion with the "correlated, not necessarily causal" wording contract. Surfaces:regressions[]in the rule-stats response (MCP inherits), the analyze-rules page's 30-day sparkline and regression badge. -
Creation: Added
backend/device-journeys.md— F2 device history / First-Time-Right: the device key (trim + case-fold serial, junk/placeholder exclusion incl. the agent'sUnknownWMI sentinel), journey grouping over the terminal set Succeeded/Failed/Incomplete (first success ends a journey, a >30-day gap from the previous attempt's CompletedAt starts one, WhiteGlove's single session row is ONE attempt, open sessions are never attempts), theDeviceHistorieschain (cap 20, written inline at the terminal seam, healed by the sweep, deleted-session refs pruned tombstone-driven, deliberately not in the per-session deletion manifest) and the additiveDeviceJourneyAggregatesdaily rows (window rate = ratio of sums — no rolling row needed, 180-day retention). Surfaces: the session-detail "Attempt N" banner with server-computed attempt numbers (virtual-attempt rule for live sessions), the Fleet Health First-time-right section (≥20-journey gate, attempt histogram, repeat-devices violator list), and the MCPget_device_historytool (serial mode / fleet FTR mode).
2026-07-25
- Update:
agent/secureboot-ca2023-detection.md— review follow-up on90012d9hardened the privilege scope, the repo's only privilege-adjustment code and therefore the precedent for any future one. The process token moved from a rawIntPtrto aSafeHandleassigned by the P/Invoke marshaler, so the CLR owns it from the momentOpenProcessTokenreturns and the critical finalizer releases it even whenDisposenever runs — previously an async exception between the successful open and the caller'susingleaked the handle with the privilege enabled and no owner left to restore it.Disposebecame idempotent and now releases the handle in afinally, so a throwing restore cannot strand it; the restore obligation is recorded immediately after the successfulAdjustTokenPrivilegeswith nothing throwable in between. The whole enable → read → restore sequence runs under a static gate because the privilege is adjusted on the process token: a concurrent reader would see "already enabled", correctly skip its own restore, and then lose the privilege mid-read when the first reader disposed, reportingprivilege_deniedon a machine that holds it.
2026-07-24
-
Creation: Added
backend/server-actions-on-demand-diagnostics.md— the ServerAction channel (queue onSessions.PendingActionsJson, deliver piggy-backed on the next ingest response, at-least-once withType|RuleId|QueuedAtdedup and sequential dispatch) and the on-demand log collection built on it: the portal's always-visible Collect Logs button, the newEndpointPolicy.TenantAdminOrOperatortier with the mandatory in-function per-type re-gate (Operators queue onlyrequest_diagnostics), the member-readablediagnosticsUploadConfiguredfeature flag, the admin quick-config path that must queuerotate_configbeforerequest_diagnostics(works against the deployed fleet — a one-time override would not, the mode gate is agent-side), sequence-based progress matching immune to agent clock skew, and the offboarding cascade's hosted-prefix sweep closing the latest-wins orphan-blob gap. -
Update:
agent/esp-policy-provider-stall.md— the customer's follow-up on issue #106 corrected the field-case mechanics:TrackingPoliciesCreated=1WAS set under the foreignConfigMgrprovider, so the ESP ignores a foreign provider's completion values and waits on the Intune-registeredSidecarprovider by name (the rename toSidecarcreates no tracking entries yet unblocks instantly). The completeness-keyed detector would have missed exactly this — the incident it was built for. The tripwire is now two-armed under one event type discriminated byreason:provider_incomplete(unchanged dwell on continuously-incomplete providers) andsidecar_provider_missing(≥ 1 Setup/Apps provider registered withoutSidecar, completeness deliberately ignored, clock reset when Sidecar registers later). Sidecar-missing wins thereasonwhen both arms cross in one round; the cross-restart fingerprint gains asidecarMissingsentinel; payload addsreasonandsidecarMissingForMinutes. Evidence for the name-keyed wait: Niehaus' documented Intune WAP payload always registersSidecar(ConfigMgr only via a co-management settings policy) and Microsoft's ESP troubleshooting models app tracking exclusively through the Sidecar subkey. -
Creation: Added
agent/esp-policy-provider-stall.md— a customer diagnosed that pre-provisioned devices with the ConfigMgr client as a blocking app occasionally park the user ESP at "Apps (Identifying)" for days: only aConfigMgrprovider is registered underEnrollmentStatusTracking\Device\Setup\Apps\PolicyProviders(noSidecar= IME) andTrackingPoliciesCreatednever becomes 1 — a wait the CSP defines without any timeout; renaming the key toSidecarunblocks immediately. The agent now ships the always-onesp_policy_provider_stalledtripwire (60-s tick, 15-min continuous-incompleteness dwell, one-shot per provider,StartupEventGatefingerprint across restarts, purely observational via the InformationalEvent rail — no toggle, no ConfigVersion bump), generalized to any provider in bothSetup/AppsandDevicePreparationkinds rather than hardcoding the ConfigMgr case. Companion change:SOFTWARE\Microsoft\Windows\Autopilotjoins the gather-rule registry allowlist so tenants can target the subtree with custom rules (e.g.not_existson the Sidecar key). -
Creation: Added
agent/secureboot-ca2023-detection.md— ANALYZE-SEC-001 warned on devices whose firmware already carried the 2023 certificate, because the agent only read theSecureBoot\Servicing\UEFICA2023Statusregistry value, which mirrors the Windows Update rollout rather than the firmware (customer report). The agent now reads the UEFIdb/KEKvariables natively (GetFirmwareEnvironmentVariableExWwithSeSystemEnvironmentPrivilegeenabled on the process token — first privilege-adjustment code in the repo) and emits per-certificate booleans onsecureboot_status. Suppression rides on a one-sided marker,uefiCa2023FirmwareConfirmed, emitted only on positive confirmation: the engine'snot_existsprecondition fails on any present value, so a two-sided boolean could not distinguish "confirmed" from "checked and missing", while the marker's absence keeps old agents and firmware-missing devices on the v2 path. Rule v3.0.0 is therefore safe to seed before the agent release. -
Update:
url-registry.md— the first release after the alias migration surfaced Front Door caching as a correctness hazard: the alias served the previousversion.json(X-Cache: TCP_REMOTE_HIT) after the origin had rotated, and since manifest and ZIP are independent cache entries, a stale manifest with a fresh ZIP fails the bootstrap SHA-256 check. Route caching on/agent/*is now disabled and every blob upload stampsCache-Control: no-cache(CISend-Blob, localbuild.ps1,versions/*.jsonmanifests) — all agent-container blobs rotate in place, so nothing there is safely cacheable. -
Update:
agent/decision-engine.md— the RealmJoin completion gate has a third terminal,FirstDeploymentIncomplete. Session 224b2087 showed why: an interactive logon 17 s after DeploymentPhase 101 makes RealmJoin reclassify the run as a secondary-user deployment, whose branch writes 200/210 and never 110 — the gate stayed closed until the 60-min hard timeout although Hello and desktop were long resolved.realmjoin_phase_changedis now a typedRealmJoinPhaseChangedsignal, soRealmJoinFacts.LastDeploymentPhaseis persisted across agent restarts (this also fixes everyrealmjoin_timeoutevent claiming "last phase: 0"); a transition out of 100/101 into 200/210 releases the gate with therealmjoin_first_deployment_incompleteWarning, and theRealmJoinDetectedreplay path evaluates the same rule for restarts that swallow the transition. A first observation of 210 deliberately does not release — session 6f1959c0 started at 210 and only deployed afterwards. -
Creation: Added
url-registry.md— all well-known hosts (own subdomains, both blob accounts, API origin, Graph, Entra login) are now defined once per component (Constants.cs, webutils/config.ts, MCPsrc/config.ts) and referenced everywhere else; three guard tests fail the build on any literal outside the registries. Written because the EU cutover missed two hardcoded copies of the legacy blob host —LatestVersionsService(feeds the portal's version badge) andValidateBootstrapCodeFunction— which kept working only through the fail-soft legacy mirror inbuild-agent.yml; those two plus the agentSelfUpdaternow use thedownload.autopilotmonitor.comalias (verified serving all four artifacts first). The portal's bootstrap allow-list accepts alias AND legacy host during the transition, which imposes a deploy order: web before (or with) backend. The sweep also surfaced a fourth copy of the www/portal host pair inmiddleware.ts(now derived from the registry viahostRouting.ts) and a backend short-link built on the bare apex domain, which only worked through a registrar-level 301.
2026-07-22
-
Creation: Added
versioning.md— agent, backend and MCP now share one version shape (<major>.<minor>.<build>+ 7-char commit + build timestamp) and one implementation of the build-number reservation (.github/scripts/Request-BuildNumber.ps1, previously copy-pasted betweenbuild-agent.ymlandbuild.ps1). The backend had been pinned at a hand-written1.0.0since inception and now starts at1.5.1000; the MCP server'spackage.jsonversion was bumped by hand and now starts at1.5.300, and it reports its own commit on/healthinstead of only the documentation bundle's. Both deploy workflows poll their health endpoint until it reports the build just deployed and publishversions/<component>.jsononly then, so a manifest that disagrees with the live endpoint means the instance drifted rather than the pipeline failing halfway.agent/build-counter-blob.mdkeeps the agent-specific parts and now points at the shared protocol; its counter URL was still the pre-cutover storage account. -
Creation: Added
rules/gather-rule-guardrails.md— the gather-rule allowlists are enforced only on the agent (the backend validates nocollectorType,target, orparameters), so a collector that forgets to call its guard is the vulnerability. Written because two had:LogParserCollectorread any path inrule.Target, bypassing even theC:\Usershard block that every other file collector honours, andEventLogCollectorread any channel includingSecurity— while the customer-facing documentation already promised both were allowlisted. Both now guard, withlogparserchecking the directory for wildcard targets (Path.GetFullPaththrows on*) and re-checking each resolved path. Added an event-log channel allowlist (eventLogChannels) plus hard-blocked channels held in C# rather than JSON, so a parse error cannot lift them. Also fixed the command timeout, which was inert:ReadToEnd()blocks until the pipe closes, soWaitForExit(30000)was only reached after the process had already exited and a hung command pinned its worker forever — now read asynchronously and killed at the timeout. -
Update: Added
.github/workflows/ci.yml— the full suite (backend, agent V2 Core, DecisionCore, SummaryDialog, web, MCP) now runs on every pull request and every push to main, plus a job that fails if the generated guardrail files drift fromrules/guardrails.json. Previously no workflow ran tests on a PR: the deploy workflows build without testing, andbuild-agent.ymltested onlyDecisionCore.Testson manual dispatch — whiletrust/security-faq.mdalready told customers that automated tests run in CI. Added CodeQL (C# and TypeScript) and Dependabot (nuget, npm ×2, actions). MarkedOfficeBinaryWatcherTests[Collection("SerialThreading")]: its bounded re-probe races the shared ThreadPool and failed once under full-suite load.
2026-07-21
-
Update:
search_docsandsearch_knowledgenow state in their tool descriptions that queries must be in English. Both corpora andall-MiniLM-L6-v2are English-only, and the failure is total rather than gradual — a German question returns zero results, not weak ones. The caller is a language model, so translating the question before the call and answering in the user's language costs nothing; a multilingual embedding model would be the alternative but is much larger and would have to be measured against the eval harness first, since it changes English retrieval too. -
Update: Added
scripts/eval-docs-search.ts, an offline retrieval evaluation harness (2465 queries in three classes: chunk headings as a regression detector, rare identifiers, and hand-written questions as the reality anchor), and used it to close a thirdsearch_docsgap found during the live test. The keyword fallback only fired when semantic search returned fewer thantopK; a pasted identifier likeWOW6432Nodeinstead returned three chunks at ~0.29 that did not contain the word while the one chunk that did was never considered. It now also fires on a weak semantic head (<0.35), letting exact matches take the front while keeping one semantic result. The threshold is measured, not guessed: 0.35 fixes 335 queries and breaks 0 (identifier recall 66.2% → 81.1%), while 0.40 fixes more but starts demoting hand-written questions. The measurement also resized the problem — identifier queries were only succeeding 66.2% of the time, so the reported case was one of roughly 750. -
Update: Closed the two measured recall gaps in
search_docs(mcp/docs-corpus.md). (1) Token windows — 87 of 324 chunks exceeded the model's 256-token context and 13% of all tokens never reached the ranking; a character budget cannot fix this (the corpus ranges 2.43–5.81 chars/token), so long text is now embedded as 250-token windows with 40 overlap and scored by its BEST window (embeddings: number[][], max not mean). Token coverage 87% → 100%; "proxy configuration blocking app downloads" went from absent to 0.559 at rank 1; the ten reference queries kept byte-identical scores. Costs +31% vectors, index 2.63 → 3.12 MB. The rules corpus gained the same treatment (128 rules → 172 vectors). (2) Keyword fallback — when the semantic pass returns fewer thantopK, results are topped up via literallexicalMatchon distinctive query terms, requiring two matching terms for corroboration (one incidental substring match returned a page about LLM providers for a sourdough query). Fuzzy matching was measured and rejected: at a threshold low enough to surface "RealmJoin" it invents 5 hits for "SCEPman", which the corpus never mentions. Also sharpened the tool description with the measured context argument for preferring it over fetching the docs site. -
Creation: Added
mcp/docs-corpus.md(newmcp/section) — the MCP server gainssearch_docs, a third semantic corpus built from the published customer documentation repository (autopilotmonitor-docs, checked out into the Docker build context by the deploy workflow). Documents the h2/h3 +<details>chunking with breadcrumb prefixes, the two deliberate size exceptions (tables never split, unbroken changelog lists split at line level), the CRLF precondition (.does not match\rin JS — headings silently stop matching, which produced 286 wrong-but-plausible chunks before it was found), the optionaldocssection insearch-index.jsonand its validation asymmetry, embedding rounding to 6 decimals, and the cross-repo coupling: a docs edit reaches clients only after an MCP redeploy, made checkable viaDOCS_COMMITon/health. Container resources raised to 0.5 vCPU / 1.0 GiB for the cold-start query-embedder load.
2026-07-20
-
Update:
rules/gather-rule-phase-scoping.md— the gather-rule form now shows the phase-scope and emit-mode controls only where they can change behavior (supportsPhaseScope/supportsEmitMode), nulls hidden-control state out of the payload, and rejects a scope mode selected but left unfilled. Offering all three "when" controls unconditionally allowed combinations that could only suppress a one-shot rule, plus a silent no-op state. -
Update: Extended
rules/gather-rule-phase-scoping.mdwith thephase_exittrigger — the closing bookend tophase_change, for one-shot collection when a phase is LEFT (e.g. "state at the end of Account Setup"). Documents the evaluation-before-phase-advance rule (triggerPhase match and scope gate see the phase being left), firing intoFailed, the disjointexit:dedup key space, and why no ConfigVersion bump is needed (no new field — old agents simply never fire the rule). -
Update: Reworked
agent/mdm-reboot-coalescing.mdafter the first real enrollment (session b2e890c1): 2800 records are now aggregated per burst into ONE neutral Info event (rebootUris[]/uriCount/firstRebootUri; watermark persisted at flush so a pre-emit reboot kill loses nothing); the raw event no longer claims a reboot — ANALYZE-ESP-005 is gated on an actually-observedsystem_reboot_detected. Removed the Shell-Coreesp_reboot_coalescingevent entirely: the "RebootCoalescing" token appears in the routineSubcategoryProcessing_Startedbootstrap marker on every enrollment (false positive by construction). Verified 2800 description shape recorded. -
Creation: Added
agent/mdm-reboot-coalescing.md— the agent now attributes the "unexpected mid-ESP reboot + second sign-in" pattern (PMPC research) to the device-assigned policy URIs that forced it: newMdmRebootPolicyTracker(DM-Enterprise EventID 2800, per-URImdm_policy_reboot_requiredevents, cross-restart RecordId watermark), aRebootCoalescingbranch inShellCoreTracker(esp_reboot_coalescing, backfill-emitting by design), and theANALYZE-ESP-005advisory (reassign device → user groups). ConfigVersion 35; event types deliberately distinct fromsystem_reboot_detectedso RebootCount stays uninflated. -
Creation: Added
backend/business-timestamps.md(newbackend/section) — the 2026-07-18 migration reset every row's system Timestamp, exposing that AuditLogs/OpsEvents/Events had (unknowingly) displayed and filtered on it all along; documents theOccurredUtccolumn, the RowKey decoders and RowKey-range date/retention clauses inBusinessTimestamp, the GUID-guard trap, the audit/ops backfill endpoint, and the "system Timestamp is never authoritative" migration rule. -
Creation: Added
rules/gather-rule-phase-scoping.md(newrules/section) — gather rules gainactivePhases(run only during listed phases),activeFromPhase(sticky latch from a phase onwards, never via Failed) andemitMode: "on_change"(canonical-hash result dedup withsuppressedPollsobservability), ConfigVersion 34. Includes the prerequisite backend fix: the custom-rule toggle PUT no longer wipes the stored rule definition (partial-merge inGatherRuleService.UpdateRuleAsync).
2026-07-18
- Creation: Added
agent/endpoint-migration.md— config-channel agent re-home (MigrateToApiBaseUrlonGET agent/config, ConfigVersion 33): backend or per-tenant API-URL moves without DNS indirection (impossible due to mTLS/Flex-TLS). Live-fetch-only with cache strip,AgentEndpointMigrationRulesallowlist validated on both sides, one hop, kill-switch wins. Built as the lesson from the 2026-07-18 WEU→GWC cutover, which hard-cut all in-flight agents.
2026-07-26
- Creation: Added
backend/time-attribution.md— the F1 enrollment time attribution: exact-partition invariant against the session's authoritative DurationSeconds, two-window WhiteGlove model, segment mapping from phase-declaration events, positive-evidence ESP-blocking join with "up to" what-if bounds, reboot spans from event gaps aroundlastBootUtc, and the SessionTimeBreakdowns / TimeAttributionAggregates tables with their terminal-seam + maintenance-sweep compute paths and read surfaces (web lane, fleet panel, MCPget_time_attribution).
2026-07-17
- Creation: Added
agent/build-counter-blob.md— agent build numbers now come from a shared public counter blob (buildcounter-v{N}.txt, reserve-before-build with ETag-CAS) so localbuild.ps1and CIbuild-agent.ymlbuilds can never mint the same number. Documents the CI parity fixes (SummaryDialog.exe.config in the ZIP, EXE-vs-manifest version check, hash-oracle update gated on stable cutover) and the Sigstore provenance attestation on CI-built ZIPs.
2026-07-16
- Creation: Added
agent/autopilot-ztd-diagnostics.md— reference for Windows' own ZTD diagnostic surfaces (ModernDeployment Autopilot event IDs incl. 807/809/815/908, theDiagnostics\Autopilotregistry key, deployment-service endpoints, known-issue error-code map with KB fixes). Backs the agent'sZtdEvidencecollector (ztdVerdictonautopilot_profile_missing) and the backend known-issue rules; sources carry a re-check RSS feed.
2026-07-13
-
Removal: Moved
customer-graph-add-on-permissions.mdout of this contributor bundle into the customer documentation repository (reference/optional-graph-permissions.md). It was customer-facing product content and did not belong in the tech-docs bundle; removed the entry fromindex.md. -
Creation: Added
agent/hello-wizard-unskip.md— session 772fe502 fix: theHelloWizardStarteddecision signal (prevention veto + un-skip cure for the policy-disabled Hello shortcut) and the HelloTracker confirmation second read against flip-flopping WHfB CSP values.
2026-07-11
-
Creation: Added the
agent/section — three concept documents on the V2 agent:agent/overview.md(runtime, collectors, telemetry pipeline),agent/decision-engine.md(DecisionCore reducer, signals, A/B/C completion arms, invariants),agent/logs-and-persistence.md(persisted artifacts, signal log vs spool, recovery/replay flow) plusagent/index.md. -
Creation: Converted
docs/into an OKF v0.1 knowledge bundle — added YAML frontmatter toarchitecture.md,mcp-oauth-flow.md, andcustomer-graph-add-on-permissions.md; createdindex.mdand this log.