Skip to content

Fix quick-filter matching and redesign event classification/grouping #22

Closed

Description

@Honguan

Bug report / classification redesign

The current event classification and quick-filter behavior can return unrelated events and produce misleading groups.

A visible example is the Hardware / WHEA quick filter: after selecting WHEA, the results can still contain unrelated events such as:

  • Microsoft-Windows-WindowsUpdateClient Event ID 19
  • Microsoft-Windows-Kernel-General Event ID 1

Only actual WHEA-related events should appear when the WHEA category is selected.

This should be fixed as a general classification problem, not as a WHEA-only special case.

Root problem: quick-filter matching

The current quick-filter model stores provider names and Event IDs as two independent lists. Matching them as a broad union can effectively behave like:

Provider is in category providers
OR
Event ID is in category event IDs

That is incorrect for category filters because Event IDs are not globally unique across providers.

For example, Event ID 19 from WindowsUpdateClient must not be treated as a WHEA event simply because 19 is also a known WHEA Event ID.

Required quick-filter behavior

Quick filters must use category-specific provider/Event-ID relationships.

Prefer an explicit rule model such as:

(provider pattern A AND event ID in [...])
OR
(provider pattern B AND event ID in [...])
OR
...

rather than a global Providers OR EventIds union.

At minimum, review and correct all existing categories:

  • All problems
  • System errors
  • Application crashes
  • Disk / SSD / NVMe
  • NTFS / file system
  • USB / USB-C / UCSI
  • Device / Kernel-PnP
  • Drivers
  • Hardware / WHEA
  • Network
  • Windows Update
  • Power / unexpected shutdown

WHEA example

Selecting Hardware / WHEA must return only events from the intended WHEA provider(s), with the intended WHEA Event IDs or provider-specific rules.

It must not return unrelated providers merely because they reuse Event IDs such as 1, 17, 19, etc.

Redesign event classification

The Problem column should provide meaningful, stable classifications instead of falling back too often to:

<Provider> + Event ID <N>

Improve classification for common Windows event families and distinguish important subtypes by provider + Event ID where appropriate.

Examples that should be treated as distinct semantic classes rather than collapsed into one generic label:

  • Different WHEA Event IDs / hardware-error types
  • Disk retry vs disk I/O error vs storage-controller timeout
  • NTFS/file-system corruption vs recovery/informational events
  • Kernel-PnP device/driver failures
  • Windows Update success vs failure vs retry-related events
  • Application crash vs .NET Runtime failure vs Windows Error Reporting
  • Kernel-Power / unexpected shutdown related events

Informational events should not be presented as if they were failures when the user has selected All levels. Use a neutral event/category label where appropriate.

Fix grouping behavior

Grouping should aggregate repeated instances of the same underlying event type without splitting every occurrence just because volatile details differ.

The grouping fingerprint should be based on stable semantic fields, for example:

  • Provider
  • Event ID
  • Important subtype/error code when relevant
  • Stable named EventData fields
  • Faulting module / device / component when it materially changes the problem

Normalize volatile fields where appropriate, such as:

  • timestamps
  • record IDs
  • process/thread IDs
  • transient GUIDs
  • temporary paths
  • sequence numbers

However, do not remove meaningful diagnostic values such as distinct error/status codes when those values represent different failures.

Example

Multiple Windows Update Event ID 19 entries should normally group under one meaningful class such as an update-success event, with individual update titles retained in the occurrence/details view, instead of producing many visually identical Count = 1 rows.

Consistency requirements

The same classification/filtering rules must be used consistently by:

  • Quick-filter buttons
  • Main results grid
  • Search matching where classification text is considered
  • Problem grouping
  • Exported summaries
  • English and Chinese localization

Changing the UI language must not alter the actual category membership or grouping identity.

Testing

Add regression tests that verify at least:

  1. WHEA filter does not return WindowsUpdateClient Event ID 19.
  2. WHEA filter does not return Kernel-General Event ID 1.
  3. Windows Update filter does not include unrelated providers that reuse its Event IDs.
  4. Disk/NTFS/USB/Device/Driver/Network/Power filters only return events satisfying their category rules.
  5. Repeated events with volatile detail changes can still group correctly.
  6. Different meaningful error/status codes remain separate when they indicate distinct failures.
  7. Classification/grouping results are identical in English and Chinese modes; only displayed text changes.

Acceptance criteria

  • Selecting Hardware / WHEA shows only WHEA-related events.
  • No quick filter includes unrelated providers solely because an Event ID number matches.
  • All existing quick-filter categories use correct provider-aware matching rules.
  • Common event families receive meaningful classifications instead of excessive generic fallback labels.
  • Repeated equivalent events group together reliably.
  • Distinct failures are not incorrectly merged.
  • Informational events are labeled neutrally when applicable.
  • Classification and grouping logic is language-independent and covered by regression tests.

Activity

  1. added a commit that references this issue on Aug 25, 2026
  2. Honguan commented on Aug 25, 2026

    @Honguan
    OwnerAuthor

    Completed. Branch: issue/22-provider-aware-classification; PR: #24; Merge commit: 76d3e3f32d89852a89880d246b3a3f0807067b2f; Main verification: passed; Tests: Release build, full integration/UI suite, and both PR CI runs passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions