test: preserve synthetic diagnostic migration baselines
Win Diagnostics CI Win Diagnostics passed all currently implemented CI checks.
Beffroi/win-diagnostics/pipeline/head This commit looks good Details

This commit is contained in:
Dandaedre 2026-09-15 16:09:27 +02:00
parent 3378961b3a
commit c0d7f42e8c
10 changed files with 3672 additions and 7 deletions

View File

@ -1,6 +1,6 @@
# Win Diagnostics migration tracker
Follow [AGENTS.md](AGENTS.md). This repository owns collection, normalization,
Follow [AGENT.md](AGENT.md). This repository owns collection, normalization,
generic diagnostic analysis, evidence correlation, and structured results.
Report layout, branding, historical incidents, and organisational conclusions
belong elsewhere. Do not introduce Typst, Reportist, or macro-repository dependencies.
@ -16,19 +16,20 @@ This roadmap must remain usable from a standalone checkout. Legacy repositories
are migration sources, not runtime dependencies. Coordinate public contracts
with consumers; keep implementation and tests in their owning repository.
## Baseline — 2026-09-15
## Initial planning baseline — 2026-09-15
Only instructions, README, license, ignore rules, and Jenkins scaffolding are
tracked. No collector, schema, analysis engine, or fixture tests have been migrated.
Jenkins currently checks `AGENT.md`, but the actual file is `AGENTS.md`.
At initial planning Jenkins checked `AGENT.md` while instructions used `AGENTS.md`.
The checkout now uses `AGENT.md`; see the latest handoff for current status.
## Pass 0 — Inventory and baselines
- [x] WD0.1 Read repository instructions and inspect tracked files, README, and Jenkins scaffold.
- [x] WD0.2 Create this phased tracker and link it from the README using the actual instruction filename.
- [ ] WD0.3 Inventory the legacy `WindowsMaintenanceReport.ps1` collection functions and output modes; record source revision, licenses, supported Windows/PowerShell versions, privileges, and dependencies.
- [ ] WD0.4 Classify the legacy renderer's `modules/diagnostics-normalize.typ`, diagnostic rules, and watchlist entries. Assign generic normalization/analysis here; leave incident-specific interpretation and report prose to beffroi-reports.
- [ ] WD0.5 Review and sanitize legacy fixtures before reuse; establish expected observations, findings, severity, confidence, and incomplete-collection behavior for a representative slice.
- [x] WD0.3 Inventory the legacy `WindowsMaintenanceReport.ps1` collection functions and output modes; record source revision, licenses, supported Windows/PowerShell versions, privileges, and dependencies.
- [x] WD0.4 Classify the legacy renderer's `modules/diagnostics-normalize.typ`, diagnostic rules, and watchlist entries. Assign generic normalization/analysis here; leave incident-specific interpretation and report prose to beffroi-reports.
- [x] WD0.5 Review and sanitize legacy fixtures before reuse; establish expected observations, findings, severity, confidence, and incomplete-collection behavior for a representative slice.
Exit: the selected slice has explicit ownership, source provenance, and repeatable
expected results. Existing legacy fixtures are not assumed sanitized.
@ -92,3 +93,12 @@ valid diagnostic result independently of reporting tools.
- Validation: documentation links, task IDs, and whitespace checked; no diagnostic implementation tests exist or were run.
- Open: full source inventory, sanitization review, and behavioral baselines; Jenkins filename mismatch is tracked in WD4.1.
- Next: WD0.3–WD0.5, then the smallest useful WD1 contract slice.
### 2026-09-15 — Inventory and executable baseline pass
- Completed WD0.3–WD0.5 for the initial offline slice: collector/function inventory, 53 event-rule and seven watchlist ownership decisions, five reviewed synthetic fixtures, and expected legacy snapshots.
- Evidence: [migration inventory](docs/migration-inventory.md), `tests/fixtures/legacy/`, `tests/legacy-baseline.json`.
- Validation: macro command `python3 scripts/check-legacy-baseline.py --output /tmp/beffroi-baseline-verified` passed all five snapshots and semantic assertions. This runs pinned legacy analysis, not a migrated engine.
- Environment: Typst 0.15.1; PowerShell unavailable, so native Windows collection remains untested. Advisory URLs were not revalidated.
- Preserved concurrent checkout updates: instructions are now `AGENT.md`; README/tracker links now match. Jenkins file-presence checks pass locally; WD4.1 still requires future schema/analysis CI.
- Next: WD1 schema/examples, then one offline normalization slice. Full diagnostic rules and Windows validation remain open.

View File

@ -24,7 +24,7 @@ Win Diagnostics does not generate reports or PDFs; diagnostic collection and int
The project is being progressively rebuilt from the previous `WinDiagnostics` tooling with a cleaner separation between collection, analysis and reporting.
See [AGENTS.md](AGENTS.md) for repository ownership and development rules.
See [AGENT.md](AGENT.md) for repository ownership and development rules.
[AGENTS-TASKS.md](AGENTS-TASKS.md) tracks migration passes, completed work,
acceptance criteria, and the next-pass handoff.

233
docs/migration-inventory.md Normal file
View File

@ -0,0 +1,233 @@
# Legacy diagnostics inventory and first contract decisions
## Source and scope
Inspected 2026-09-15 at pinned revisions:
- WinDiagnostics: `1de4d425ecca3a97bcbffd4c8b5ebec464810ac8`.
- typst_reporter: `1d381904fff3d378a7c0e04588e75310a9b7ed60`.
This inventories the collector and normalization/analysis source for the initial
offline migration slice. It records existing behavior, not an endorsement of
medical, security, or vendor remediation advice. External advisory URLs have not
been revalidated; advisory review remains required before rule publication.
## Collection boundary
The collector requires PowerShell 5.1 or later and native Windows APIs. It uses
CIM, registry, event logs, storage/Defender cmdlets, and native Windows commands.
Some APIs may be unavailable; elevated checks include storage reliability,
DISM `/CheckHealth`, and SFC `/verifyonly`. It writes JSON and temporary probe/SFC
files; it does not run repair commands. Native behavior has not been executed on
this Linux host (PowerShell is unavailable).
`-Compact`, `-Mid`, and `-Full` are mutually exclusive; omitted means Full.
`-OutputDirectory` defaults to writable Documents, then TEMP. Output filenames
contain hostname and collection timestamp; the script returns the saved path.
`-EventLogDays` defaults to 7 (1–3650), `-MaxEventErrors` to 100 (1–5000), and
`-JsonDepth` to 12 (3–100). Output is UTF-8 without BOM, capture schema 2.
The capture envelope is `schema_version`, `report_type`, `mode`, `generated_at`,
`completed_at`, `host`, `parameters`, `warnings`, `summary`, and `sections`.
Full adds `diagnostic_collection`. Section envelopes contain `status`, `count`,
`data`, and `error`; event sections additionally record `limit` and `truncated`.
Native command records retain executable, arguments, exit code, and output.
### Collector function inventory
All functions below belong to win-diagnostics; retain implementation provenance
and separate collection plumbing from normalization/analysis during extraction.
- `Test-IsAdministrator`
- `Test-DirectoryWritable`
- `Get-InstalledPrograms`
- `Get-StartupRegistryEntries`
- `Get-ProblemDevices`
- `Invoke-ReportSection`
- `New-SkippedSection`
- `New-UnavailableSection`
- `Get-StorageReport`
- `Get-DefenderReport`
- `Invoke-NativeCommand`
`Get-CompactData` is nested in Compact mode. The top-level mode branches populate
sections and summary; these are substantial collection logic, not just CLI glue.
### Typst normalizer function inventory
- `get`
- `value-text`
- `enabled`
- `legacy-incomplete`
- `first`
- `section`
- `section-data`
- `section-first`
- `section-count`
- `section-status`
- `number`
- `bool-text`
- `is-leap-year`
- `date-index`
- `datetime-day`
- `datetime-second`
- `display-time`
- `display-date`
- `fade-weight`
- `event-rule`
- `capture`
- `event-summary`
- `event-sections`
- `windows-level`
- `raw-events`
- `group-events`
- `catalog-correlation`
- `command-output`
- `object-lines`
- `watchlist-catalog`
- `watch-matches`
- `watchlist-findings`
- `reliability-events`
- `normalize`
Classification:
- Evidence access/conversion: `get`, `first`, `section*`, `number`, `enabled`,
`legacy-incomplete`, `command-output`, `raw-events`, `event-sections`,
`reliability-events`, and date parsing belong to win-diagnostics.
- Rules: `fade-weight`, `event-rule`, `group-events`, `catalog-correlation`,
`watch-matches`, and matching in `watchlist-findings` belong to win-diagnostics.
- Presentation: `value-text`, `bool-text`, `display-time`, `display-date`,
`windows-level`, `event-summary`, and `object-lines` must be split: retain typed
facts in diagnostics; move report-facing formatting into the report adapter.
- `normalize` combines all three concerns. Its technical findings and evidence
coverage belong here; health headline prose, display inventory/excerpts, and
report-ready remediation belong to beffroi-reports. Generic display widgets
belong to Reportist. Do not port the entire function as the public interface.
- Helpers `capture`, `is-leap-year`, `date-index`, and `watchlist-catalog` support
their owning normalization/rule operation; no runtime Typst/YAML imports should
remain in the diagnostic engine merely to reproduce legacy implementation.
## Rule-by-rule ownership
All provider/ID matchers below describe generic technical events. Diagnostic
matching, evidence, severity, confidence, and any fading stay in win-diagnostics.
Report-ready `remediation`, `resolution_steps`, and recipient-facing recommendations
move to the adapter/content layer. Preserve rationale/reference provenance for
review; event IDs alone must not become unsupported root-cause claims.
| Provider | ID | Existing severity | Fading | Owner |
| --- | --- | --- | --- | --- |
| Microsoft-Windows-WER-SystemErrorReporting | 1001 | critical | no | win-diagnostics |
| volmgr | 162 | info | no | win-diagnostics |
| stornvme | 11 | critical | no | win-diagnostics |
| Microsoft-Windows-TPM-WMI | 1040 | critical | no | win-diagnostics |
| Service Control Manager | 7000 | warning | yes | win-diagnostics |
| Service Control Manager | 7009 | warning | yes | win-diagnostics |
| Microsoft-Windows-NDIS | 10317 | warning | no | win-diagnostics |
| Application Error | 1000 | warning | yes | win-diagnostics |
| Microsoft-Windows-WindowsUpdateClient | 20 | warning | yes | win-diagnostics |
| Application Hang | 1002 | warning | yes | win-diagnostics |
| MsiInstaller | 1043 | warning | yes | win-diagnostics |
| Volsnap | 36 | warning | no | win-diagnostics |
| Service Control Manager | 7043 | warning | yes | win-diagnostics |
| Microsoft-Windows-DistributedCOM | 10010 | info | no | win-diagnostics |
| EventLog | 6008 | warning | no | win-diagnostics |
| Service Control Manager | 7023 | warning | yes | win-diagnostics |
| MsiInstaller | 11704 | warning | yes | win-diagnostics |
| MsiInstaller | 11722 | warning | yes | win-diagnostics |
| VSS | 12344 | warning | no | win-diagnostics |
| .NET Runtime | 1022 | info | no | win-diagnostics |
| Waterfox Default Browser Agent | 5 | info | no | win-diagnostics |
| Microsoft-Windows-Kernel-Boot | 29 | warning | no | win-diagnostics |
| Service Control Manager | 7031 | warning | no | win-diagnostics |
| Microsoft-Windows-DeviceAssociationService | 3505 | warning | no | win-diagnostics |
| Microsoft-Windows-HAL | 15 | warning | no | win-diagnostics |
| Microsoft-Windows-HAL | 21 | warning | no | win-diagnostics |
| usbaudio2 | 38 | warning | no | win-diagnostics |
| ESENT | 419 | critical | no | win-diagnostics |
| ESENT | 474 | critical | no | win-diagnostics |
| ESENT | 907 | critical | no | win-diagnostics |
| ESENT | 908 | critical | no | win-diagnostics |
| Microsoft-Windows-Defrag | 264 | warning | no | win-diagnostics |
| Microsoft-Windows-WLAN-AutoConfig | 10002 | info | no | win-diagnostics |
| Microsoft-Windows-DistributedCOM | 10016 | info | no | win-diagnostics |
| Netwtw10 | 6062 | info | no | win-diagnostics |
| Microsoft-Windows-Hyper-V-Hypervisor | 167 | warning | no | win-diagnostics |
| volmgr | 161 | warning | no | win-diagnostics |
| Microsoft-Windows-WinRM | 10149 | info | no | win-diagnostics |
| winsrvext | 100 | info | no | win-diagnostics |
| Netwtw10 | 5005 | warning | no | win-diagnostics |
| Netwtw10 | 5032 | warning | no | win-diagnostics |
| Netwtw10 | 5002 | warning | no | win-diagnostics |
| Netwtw10 | 5010 | warning | no | win-diagnostics |
| Microsoft-Windows-Perflib | 1008 | warning | no | win-diagnostics |
| Microsoft-Windows-WMI | 63 | info | no | win-diagnostics |
| Microsoft-Windows-Winlogon | 6004 | warning | no | win-diagnostics |
| Microsoft-Windows-RestartManager | 10010 | info | no | win-diagnostics |
| Microsoft-Windows-Search | 10024 | warning | no | win-diagnostics |
| Microsoft-Windows-CodeIntegrity | 3116 | info | no | win-diagnostics |
| Microsoft-Windows-CodeIntegrity | 3099 | info | no | win-diagnostics |
| Microsoft-Windows-CodeIntegrity | 3085 | info | no | win-diagnostics |
| Microsoft-Windows-CodeIntegrity | 3076 | warning | no | win-diagnostics |
| Microsoft-Windows-CodeIntegrity | 3077 | warning | no | win-diagnostics |
Unknown events remain `unanalysed`. The normalizer also implements device status,
DISM/SFC text interpretation, disk headroom/health, firewall state, unsigned-driver
signals, coverage gaps, and catalog event correlation outside the YAML catalog.
These require individual regression cases before extraction is complete.
### Watchlist entries
| Entry | Matcher owner | Report content owner | Caveat |
| --- | --- | --- | --- |
| `winring0` | win-diagnostics | beffroi-reports | Candidate/advisory; retain evidence and matching prerequisites. |
| `dell-dbutil` | win-diagnostics | beffroi-reports | Candidate/advisory; retain evidence and matching prerequisites. |
| `gigabyte-oc-guru` | win-diagnostics | beffroi-reports | Candidate/advisory; retain evidence and matching prerequisites. |
| `intel-wifi-observed` | win-diagnostics | beffroi-reports | Separate capture-specific adapter context. |
| `obs-overlay` | win-diagnostics | beffroi-reports | Candidate/advisory; retain evidence and matching prerequisites. |
| `obs-audio-hooks` | win-diagnostics | beffroi-reports | Candidate/advisory; retain evidence and matching prerequisites. |
| `smb1` | win-diagnostics | beffroi-reports | Candidate/advisory; retain evidence and matching prerequisites. |
The catalog has seven generic candidate matchers, not private incident IDs.
Vendor-specific matching is not inherently organisation-specific. The
`intel-wifi-observed` prose contains capture-specific AX200/AX210 context; retain
that context in beffroi-reports rather than a generic diagnostic title. All
matches need their limitations preserved; zero-weight advisories must not become
confirmed failures or silently alter health scoring.
## First diagnostic contract decisions (draft, not implemented)
1. Keep the raw capture schema version distinct from the new diagnostic schema
version. A schema-2 capture does not imply diagnostic contract version 2.
2. Preserve the raw capture as an input artifact; observations reference its
relative artifact path and JSON Pointer. Findings reference observation IDs.
3. Use typed values and explicit collection state. Do not use `"Unavailable"`,
`"Yes"`, or formatted prose as substitutes for typed values/status fields.
4. Findings carry stable IDs, severity, confidence, title, technical description,
and evidence references. Keep recommendations and executive summaries out.
5. Retain unsupported/unknown events and partial collection. A missing section
cannot establish health. Define how summary-only captures differ from records.
6. Use collection time as the explicit analysis reference time; never use wall
clock time implicitly for fading. Document rounding/timezone compatibility.
Next: implement the versioned schema and valid/invalid examples, then offline
normalization for one fixture. Field names/CLI are still proposals, not a released
interface. Full native collection support remains a later Windows validation gate.
## Provenance and fixture review
The five files in `tests/fixtures/legacy/` are copied unchanged from
`typst_reporter/tools/fixtures/` at the revision above. Their accompanying MIT
notice is retained. All string values were reviewed: hostnames/users are explicit
TEST/SYNTHETIC/CI placeholders, device identities are synthetic, paths are generic
Windows/driver paths, and software names are intentional rule inputs. No real
incident capture, hostname, serial number, account, IP, or network identifier was
imported. This review applies to these five files only.
`tests/legacy-baseline.json` records observed legacy output for comparison; it is
not the new diagnostic schema or proof that legacy conclusions are correct.
The macro repository's `scripts/check-legacy-baseline.py` reproduces it using the
pinned legacy source in a temporary directory. Fixtures remain independently
usable by future component tests; this migration-only baseline runner is not a
component runtime dependency.

9
tests/fixtures/legacy/LICENSE vendored Normal file
View File

@ -0,0 +1,9 @@
MIT License
Copyright (c) 2026 Beffroi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -0,0 +1,186 @@
{
"schema_version": 1,
"report_type": "windows_system_maintenance",
"mode": "Full",
"generated_at": "2026-09-14T16:00:00+02:00",
"completed_at": "2026-09-14T16:01:00+02:00",
"host": {
"computer_name": "TEST-PC",
"user_name": "CI",
"administrator": true,
"powershell_version": "7.6.6"
},
"parameters": {
"event_log_days": 7,
"max_event_errors": 100
},
"warnings": [],
"summary": null,
"sections": {
"operating_system": {
"status": "ok",
"count": 1,
"data": [
{
"Caption": "Microsoft Windows 11 Pro",
"Version": "10.0.26200",
"BuildNumber": "26200",
"OSArchitecture": "64-bit",
"free_memory_gb": 12.5,
"total_memory_gb": 31.8
}
],
"error": null
},
"computer_system": {
"status": "ok",
"count": 1,
"data": [
{
"Manufacturer": "Test Vendor",
"Model": "Test Model",
"SystemType": "x64-based PC",
"total_physical_memory_gb": 31.82
}
],
"error": null
},
"cpu": {
"status": "ok",
"count": 1,
"data": [
{
"Name": "Test CPU",
"NumberOfCores": 8,
"NumberOfLogicalProcessors": 16
}
],
"error": null
},
"uptime": {
"status": "ok",
"count": 1,
"data": [
{
"last_boot": "2026-09-13T12:00:00+02:00",
"days": 1,
"hours": 4,
"minutes": 0
}
],
"error": null
},
"storage": {
"status": "ok",
"count": 1,
"data": [
{
"logical_volumes": [
{
"DeviceID": "C:",
"VolumeName": "Windows",
"FileSystem": "NTFS",
"size_gb": 1000.0,
"free_gb": 400.0,
"free_percent": 40.0
},
{
"DeviceID": "D:",
"VolumeName": "Data",
"FileSystem": "NTFS",
"size_gb": 2000.0,
"free_gb": 1200.0,
"free_percent": 60.0
}
],
"physical_disks": [],
"storage_health": [],
"reliability_counters": [],
"reliability_requires_admin": true
}
],
"error": null
},
"installed_programs": {"status": "ok", "count": 42, "data": [], "error": null},
"appx_packages": {"status": "ok", "count": 20, "data": [], "error": null},
"automatic_services": {"status": "ok", "count": 80, "data": [], "error": null},
"signed_drivers": {"status": "ok", "count": 150, "data": [], "error": null},
"hotfixes": {"status": "ok", "count": 12, "data": [], "error": null},
"non_microsoft_scheduled_tasks": {"status": "ok", "count": 8, "data": [], "error": null},
"startup_programs": {"status": "ok", "count": 6, "data": [], "error": null},
"active_tcp_listeners": {"status": "ok", "count": 15, "data": [], "error": null},
"problem_devices": {"status": "ok", "count": 0, "data": [], "error": null},
"firewall_profiles": {
"status": "ok",
"count": 3,
"data": [
{"Name": "Domain", "Enabled": true, "DefaultInboundAction": "NotConfigured", "DefaultOutboundAction": "NotConfigured"},
{"Name": "Private", "Enabled": true, "DefaultInboundAction": "NotConfigured", "DefaultOutboundAction": "NotConfigured"},
{"Name": "Public", "Enabled": true, "DefaultInboundAction": "NotConfigured", "DefaultOutboundAction": "NotConfigured"}
],
"error": null
},
"defender": {
"status": "ok",
"count": 1,
"data": [
{
"AntivirusEnabled": true,
"AntispywareEnabled": true,
"RealTimeProtectionEnabled": true,
"BehaviorMonitorEnabled": true,
"IoavProtectionEnabled": true,
"NISEnabled": true,
"AntivirusSignatureLastUpdated": "2026-09-14T12:00:00+02:00"
}
],
"error": null
},
"battery": {"status": "ok", "count": 0, "data": [], "error": null},
"component_store": {
"status": "ok",
"count": 1,
"data": [
{
"executable": "DISM.exe",
"arguments": ["/Online", "/Cleanup-Image", "/CheckHealth"],
"exit_code": 0,
"output": ["No component store corruption detected."]
}
],
"error": null
},
"system_file_check": {
"status": "ok",
"count": 1,
"data": [
{
"executable": "sfc.exe",
"arguments": ["/verifyonly"],
"exit_code": 0,
"output": ["Windows Resource Protection did not find any integrity violations."]
}
],
"error": null
},
"recent_system_errors": {
"status": "ok",
"count": 1,
"data": [
{
"TimeCreated": "2026-09-14T15:00:00+02:00",
"Id": 7000,
"ProviderName": "Service Control Manager",
"Message": "The TestService service failed to start due to the following error: The system cannot find the file specified."
}
],
"error": null
},
"recent_application_errors": {"status": "ok", "count": 0, "data": [], "error": null},
"ip_configuration": {"status": "ok", "count": 1, "data": [], "error": null},
"dns_servers": {"status": "ok", "count": 1, "data": [], "error": null},
"power_plan": {"status": "ok", "count": 1, "data": [], "error": null},
"top_processes_by_memory": {"status": "ok", "count": 30, "data": [], "error": null},
"important_directories": {"status": "ok", "count": 1, "data": [], "error": null}
}
}

View File

@ -0,0 +1,49 @@
{
"schema_version": 2,
"report_type": "windows_system_maintenance",
"mode": "Compact",
"generated_at": "2026-09-15T12:00:00Z",
"host": {
"computer_name": "SYNTHETIC-V2",
"administrator": false
},
"parameters": {
"event_log_days": 30,
"max_event_errors": 3
},
"warnings": [],
"summary": {
"memory": {
"total_gb": 16,
"free_gb": null
},
"devices": {
"problem_count": 0
},
"software": {
"desktop_program_count": 0
}
},
"sections": {
"operating_system": {
"status": "unavailable",
"count": 0,
"error": "Synthetic unavailable check"
},
"computer_system": {
"status": "unavailable",
"count": 0,
"error": "Synthetic unavailable check"
},
"problem_devices": {
"status": "unavailable",
"count": 0,
"error": "Synthetic unavailable check"
},
"installed_programs": {
"status": "unavailable",
"count": 0,
"error": "Synthetic unavailable check"
}
}
}

View File

@ -0,0 +1,384 @@
{
"schema_version": 2,
"report_type": "windows_system_maintenance",
"mode": "Full",
"generated_at": "2026-09-15T12:00:00Z",
"host": {
"computer_name": "SYNTHETIC-V2",
"administrator": true
},
"parameters": {
"event_log_days": 30,
"max_event_errors": 3
},
"warnings": [],
"summary": null,
"sections": {
"operating_system": {
"status": "ok",
"count": 0,
"data": [],
"error": null
},
"computer_system": {
"status": "ok",
"count": 0,
"data": [],
"error": null
},
"problem_devices": {
"status": "ok",
"count": 0,
"data": [],
"error": null
},
"component_store": {
"status": "ok",
"count": 0,
"data": [],
"error": null
},
"system_file_check": {
"status": "ok",
"count": 0,
"data": [],
"error": null
},
"recent_system_events": {
"status": "ok",
"count": 3,
"data": [
{
"TimeCreated": "2026-09-14T12:00:00Z",
"ProviderName": "Synthetic provider",
"Id": 123,
"Level": 2,
"LevelDisplayName": "Localized level",
"Message": "Synthetic Unicode \u00e9 # [test] C:\\Windows"
},
{
"TimeCreated": "2026-09-14T12:00:00Z",
"ProviderName": "Synthetic provider",
"Id": 123,
"Level": 3,
"LevelDisplayName": "Localized level",
"Message": "Synthetic Unicode \u00e9 # [test] C:\\Windows"
},
{
"TimeCreated": "2026-09-14T12:00:00Z",
"ProviderName": "Synthetic provider",
"Id": 123,
"Level": 3,
"LevelDisplayName": "Localized level",
"Message": "Synthetic Unicode \u00e9 # [test] C:\\Windows"
}
],
"error": null,
"limit": 3,
"truncated": false
},
"recent_system_errors": {
"status": "ok",
"count": 1,
"data": [
{
"TimeCreated": "2026-09-14T12:00:00Z",
"ProviderName": "Synthetic provider",
"Id": 123,
"Level": 1,
"LevelDisplayName": "Localized level",
"Message": "Synthetic Unicode \u00e9 # [test] C:\\Windows"
}
],
"error": null
},
"recent_application_events": {
"status": "ok",
"count": 0,
"data": [],
"error": null,
"limit": 3,
"truncated": true
},
"code_integrity": {
"status": "ok",
"count": 1,
"data": [
{
"TimeCreated": "2026-09-14T12:00:00Z",
"ProviderName": "Synthetic provider",
"Id": 123,
"Level": 4,
"LevelDisplayName": "Localized level",
"Message": "Synthetic Unicode \u00e9 # [test] C:\\Windows"
}
],
"error": null
},
"storage": {
"status": "ok",
"count": 1,
"data": [
{
"storage_health": [
{
"status": "unavailable",
"error": "Synthetic API failure"
}
],
"reliability_counters": [
{
"status": "skipped",
"error": "Synthetic elevation gap"
}
]
}
],
"error": null
},
"defender": {
"status": "ok",
"count": 1,
"data": [
{
"available": false,
"error": "Synthetic unavailable Defender"
}
],
"error": null
},
"signed_drivers": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"system_drivers": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"services": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"storage_disks": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"storage_pnp_devices": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"enabled_windows_features": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"reliability_records": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"minidumps": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"driver_store": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": 5,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
},
"filter_drivers": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": 5,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
},
"filter_instances": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": 5,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
},
"upper_filters": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": 5,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
},
"lower_filters": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": 5,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
},
"boot_configuration": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": 5,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
}
},
"diagnostic_collection": {
"operating_system": true,
"computer_system": true,
"problem_devices": true,
"component_store": true,
"system_file_check": true,
"recent_system_events": true,
"recent_system_errors": true,
"recent_application_events": true,
"code_integrity": true,
"storage": true,
"defender": true,
"signed_drivers": true,
"system_drivers": true,
"services": true,
"storage_disks": true,
"storage_pnp_devices": true,
"enabled_windows_features": true,
"reliability_records": true,
"minidumps": true,
"driver_store": false,
"filter_drivers": false,
"filter_instances": false,
"upper_filters": false,
"lower_filters": false,
"boot_configuration": false
}
}

View File

@ -0,0 +1,348 @@
{
"schema_version": 2,
"report_type": "windows_system_maintenance",
"mode": "Mid",
"generated_at": "2026-09-15T12:00:00Z",
"host": {
"computer_name": "SYNTHETIC-V2",
"administrator": false
},
"parameters": {
"event_log_days": 30,
"max_event_errors": 3
},
"warnings": [],
"summary": null,
"sections": {
"operating_system": {
"status": "ok",
"count": 0,
"data": [],
"error": null
},
"computer_system": {
"status": "ok",
"count": 0,
"data": [],
"error": null
},
"problem_devices": {
"status": "ok",
"count": 0,
"data": [],
"error": null
},
"component_store": {
"status": "ok",
"count": 0,
"data": [],
"error": null
},
"system_file_check": {
"status": "skipped",
"count": 0,
"data": [],
"error": null
},
"recent_system_events": {
"status": "ok",
"count": 3,
"data": [
{
"TimeCreated": "2026-09-14T12:00:00Z",
"ProviderName": "Synthetic provider",
"Id": 123,
"Level": 2,
"LevelDisplayName": "Localized level",
"Message": "Synthetic Unicode \u00e9 # [test] C:\\Windows"
},
{
"TimeCreated": "2026-09-14T12:00:00Z",
"ProviderName": "Synthetic provider",
"Id": 123,
"Level": 3,
"LevelDisplayName": "Localized level",
"Message": "Synthetic Unicode \u00e9 # [test] C:\\Windows"
},
{
"TimeCreated": "2026-09-14T12:00:00Z",
"ProviderName": "Synthetic provider",
"Id": 123,
"Level": 3,
"LevelDisplayName": "Localized level",
"Message": "Synthetic Unicode \u00e9 # [test] C:\\Windows"
}
],
"error": null,
"limit": 3,
"truncated": false
},
"recent_system_errors": {
"status": "ok",
"count": 1,
"data": [
{
"TimeCreated": "2026-09-14T12:00:00Z",
"ProviderName": "Synthetic provider",
"Id": 123,
"Level": 1,
"LevelDisplayName": "Localized level",
"Message": "Synthetic Unicode \u00e9 # [test] C:\\Windows"
}
],
"error": null
},
"recent_application_events": {
"status": "ok",
"count": 0,
"data": [],
"error": null,
"limit": 3,
"truncated": true
},
"code_integrity": {
"status": "unavailable",
"count": 0,
"data": [],
"error": null
},
"storage": {
"status": "ok",
"count": 1,
"data": [
{
"storage_health": [
{
"status": "unavailable",
"error": "Synthetic API failure"
}
],
"reliability_counters": [
{
"status": "skipped",
"error": "Synthetic elevation gap"
}
]
}
],
"error": null
},
"defender": {
"status": "ok",
"count": 1,
"data": [
{
"available": false,
"error": "Synthetic unavailable Defender"
}
],
"error": null
},
"signed_drivers": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"system_drivers": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"services": {
"status": "unexpected",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"storage_disks": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"storage_pnp_devices": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"enabled_windows_features": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"reliability_records": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"minidumps": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"driver_store": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": null,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
},
"filter_drivers": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": 5,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
},
"filter_instances": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": 5,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
},
"upper_filters": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": 5,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
},
"lower_filters": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": 5,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
},
"boot_configuration": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": 5,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
}
}
}

View File

@ -0,0 +1,403 @@
{
"schema_version": 2,
"report_type": "windows_system_maintenance",
"mode": "Full",
"generated_at": "2026-09-15T12:00:00Z",
"host": {
"computer_name": "SYNTHETIC-WATCHLIST",
"administrator": true
},
"parameters": {
"event_log_days": 30,
"max_event_errors": 3
},
"warnings": [],
"summary": null,
"sections": {
"operating_system": {
"status": "ok",
"count": 0,
"data": [],
"error": null
},
"computer_system": {
"status": "ok",
"count": 0,
"data": [],
"error": null
},
"problem_devices": {
"status": "ok",
"count": 0,
"data": [],
"error": null
},
"component_store": {
"status": "ok",
"count": 0,
"data": [],
"error": null
},
"system_file_check": {
"status": "ok",
"count": 0,
"data": [],
"error": null
},
"recent_system_events": {
"status": "ok",
"count": 3,
"data": [
{
"TimeCreated": "2026-09-14T12:00:00Z",
"ProviderName": "Synthetic provider",
"Id": 123,
"Level": 2,
"LevelDisplayName": "Localized level",
"Message": "Synthetic Unicode \u00e9 # [test] C:\\Windows"
},
{
"TimeCreated": "2026-09-14T12:00:00Z",
"ProviderName": "Synthetic provider",
"Id": 123,
"Level": 3,
"LevelDisplayName": "Localized level",
"Message": "Synthetic Unicode \u00e9 # [test] C:\\Windows"
},
{
"TimeCreated": "2026-09-14T12:00:00Z",
"ProviderName": "Synthetic provider",
"Id": 123,
"Level": 3,
"LevelDisplayName": "Localized level",
"Message": "Synthetic Unicode \u00e9 # [test] C:\\Windows"
}
],
"error": null,
"limit": 3,
"truncated": false
},
"recent_system_errors": {
"status": "ok",
"count": 1,
"data": [
{
"TimeCreated": "2026-09-14T12:00:00Z",
"ProviderName": "Synthetic provider",
"Id": 123,
"Level": 1,
"LevelDisplayName": "Localized level",
"Message": "Synthetic Unicode \u00e9 # [test] C:\\Windows"
}
],
"error": null
},
"recent_application_events": {
"status": "ok",
"count": 0,
"data": [],
"error": null,
"limit": 3,
"truncated": true
},
"code_integrity": {
"status": "ok",
"count": 1,
"data": [
{
"TimeCreated": "2026-09-14T12:00:00Z",
"ProviderName": "Synthetic provider",
"Id": 123,
"Level": 4,
"LevelDisplayName": "Localized level",
"Message": "Synthetic Unicode \u00e9 # [test] C:\\Windows"
}
],
"error": null
},
"storage": {
"status": "ok",
"count": 1,
"data": [
{
"storage_health": [
{
"status": "unavailable",
"error": "Synthetic API failure"
}
],
"reliability_counters": [
{
"status": "skipped",
"error": "Synthetic elevation gap"
}
]
}
],
"error": null
},
"defender": {
"status": "ok",
"count": 1,
"data": [
{
"available": false,
"error": "Synthetic unavailable Defender"
}
],
"error": null
},
"signed_drivers": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"system_drivers": {
"status": "ok",
"count": 2,
"data": [
{
"Name": "WinRing0_1_2_0",
"PathName": "C:\\Drivers\\WinRing0x64.sys",
"State": "Stopped"
},
{
"Name": "dbutil",
"PathName": "C:\\Windows\\Temp\\dbutil_2_3.sys",
"State": "Running"
}
],
"error": null
},
"services": {
"status": "ok",
"count": 1,
"data": [
{
"Name": "NahimicService",
"State": "Running"
}
],
"error": null
},
"storage_disks": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"storage_pnp_devices": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"enabled_windows_features": {
"status": "ok",
"count": 1,
"data": [
{
"FeatureName": "SMB1Protocol-Client",
"State": 2
}
],
"error": null
},
"reliability_records": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"minidumps": {
"status": "ok",
"count": 1,
"data": [
{
"Name": null,
"DeviceID": "synthetic",
"State": "Stopped",
"Message": "Synthetic evidence"
}
],
"error": null
},
"driver_store": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": 5,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
},
"filter_drivers": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": 5,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
},
"filter_instances": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": 5,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
},
"upper_filters": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": 5,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
},
"lower_filters": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": 5,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
},
"boot_configuration": {
"status": "unavailable",
"count": 1,
"data": [
{
"executable": "synthetic.exe",
"arguments": [
"/test"
],
"exit_code": 5,
"output": [
"\u00c9chec # [test] C:\\Windows"
]
}
],
"error": null
},
"installed_programs": {
"status": "ok",
"count": 3,
"data": [
{
"DisplayName": "OBS Studio",
"DisplayVersion": "32.0"
},
{
"DisplayName": "RivaTuner Statistics Server",
"DisplayVersion": "7.3.7"
},
{
"DisplayName": "GIGABYTE OC GURU II",
"DisplayVersion": "2.08"
}
],
"error": null
}
},
"diagnostic_collection": {
"operating_system": true,
"computer_system": true,
"problem_devices": true,
"component_store": true,
"system_file_check": true,
"recent_system_events": true,
"recent_system_errors": true,
"recent_application_events": true,
"code_integrity": true,
"storage": true,
"defender": true,
"signed_drivers": true,
"system_drivers": true,
"services": true,
"storage_disks": true,
"storage_pnp_devices": true,
"enabled_windows_features": true,
"reliability_records": true,
"minidumps": true,
"driver_store": false,
"filter_drivers": false,
"filter_instances": false,
"upper_filters": false,
"lower_filters": false,
"boot_configuration": false
}
}

2043
tests/legacy-baseline.json Normal file

File diff suppressed because it is too large Load Diff