Windows 11 Release Guard

Architecture

Use this to understand the current codebase shape before changing runtime behavior, policy generation, signing, or Pages output.

Windows 11 Release Guard architecture flow from Microsoft public sources to fleet verdict


Flow

StageModulesOutput
Config__main__.py, config.pyReleaseCheckerConfig from CLI/env/defaults.
Policy sourceapi.py, remote_policy.py, cache.py, bundled_policy.pyTrusted or degraded policy source with structured source status.
Trust/schemasigning.py, json_utils.py, policy_schema.pyVerified signature, strict JSON, schema-safe model.
Local statelocal_state.pyBuild-first Windows evidence and raw diagnostics.
Evaluationevaluator.py, models.pyEvaluationResult with status, target, warnings, source fields.
Diagnosticswua_probe.py, audit_probes.py, policy_diagnostics.pyOptional read-only explanatory evidence.
Generationpolicy_generator.py, tools/generate_policy.pyStatic signed feed, dashboard, manifest, aliases.

Source Hierarchy

RankSourceProduction meaning
1Live signed public JSONPreferred source.
2Verified fresh cacheDegraded fallback.
3Verified stale cacheDegraded fallback with stronger warning.
4Bundled signed policyLast-known-good fallback.
5Local Windows probesInstalled-state detection only.
6WUA / logs / packagesExplanation only.

Source Diagnostics and workflow-synced GitHub Issues are source/publish troubleshooting evidence only. They may explain parser drift, source freshness, or ticket status, but they do not override signed policy trust or runtime compliance verdicts.

Generation may use public Microsoft Release Health HTML, public Microsoft Update History Atom feed data, Atom-linked public Microsoft Support articles, and unauthenticated public MSRC CVRF data for source diagnostics and informational enrichment. Those sources can explain observed builds, KB classification, and source lag, but they do not replace the signed policy verdict or required baseline semantics.

latest_build is the value from the Release Health Current Versions table. latest_observed_build can be newer when the generator proves a newer official build from supported public evidence such as an Atom-linked Support article. That observation remains informational until the signed baseline rules select a required_baseline_build. When Release Health has caught up and baseline rules select that same build, all three fields can legitimately report the same build.

Atom discovers Support article hrefs; it is not a /help/<KB> fallback resolver. Direct or fixture-provided Atom links are revalidated before they become release-history URLs, manifest metadata, dashboard links, or copied diagnostic JSON. Release History enrichment prefers Atom entries matching both KB and row build, then build-only evidence, and skips ambiguous KB-only fallbacks. Atom-linked Support article facts are trusted only after URL, KB, build, and parseable applicability validation against the Atom record; explicit applies_to_releases exclusions are untrusted for that event. MSRC CVRF enrichment requires exact KB-token matching, and unavailable or malformed CVRF data remains unknown instead of proving that a KB is non-security.

The dashboard-only baseline-update notice appears only when baseline rules select a real Release Health B-release row that matches latest observed evidence. It uses a 14-day source-date visibility window, does not fetch optional Support/MSRC enrichment solely for expired inactive notice data, and does not affect verdicts, issue sync, runtime clients, or /api/v1.

Rules

DoDo not
Keep runtime JSON-first.Parse Microsoft HTML in normal runtime mode.
Keep generator parsing centralized.Duplicate upstream parsing in clients.
Preserve raw admin diagnostics behind explicit opt-ins when default JSON compacts bulky Panther/setup log tails; keep Panther collection fixed-path, tail-bounded, and guarded by a generous total cap.Hide surprising local values.
Keep Source Diagnostics and GitHub Issues as diagnostic context.Treat issue labels or dashboard diagnostics as compliance authority.
Keep Atom/support/MSRC enrichment informational unless baseline rules select it.Treat a newer latest-observed build as the required baseline by itself.
Add public API fields compatibly.Break /api/v1 paths or remove existing contract fields.

Verify

python -m compileall -q win11_release_guard tools
pytest -q tests/test_runtime_policy_sources.py tests/test_evaluator.py tests/test_remote_policy.py
python tools/check_project_identity.py

Home | Policy Feed and Trust Model | Local Windows Detection