Skip to content

FR: validation severity levels + suppressions — so a check can be an error without convicting the innocent #302

Description

@dmealing

Gap

Validation findings are errors or warnings, with no severity grading and no suppression mechanism.

That gap has already forced at least two design compromises:

  1. Requirement object-coverage shipped as a WARNING deliberately — because on a real repo carrying one requirement it reports ~93 unclaimed entities, so promoting it to an error would fail a project's first verify. With suppressions it could be an error with recorded, reviewable opt-outs, which is strictly more useful than a warning everyone learns to ignore.
  2. @verifiedBy convention detection (0.23.1) hit the same shape — an unrecognised test convention had to WARN rather than convict, because there was no way for a project to say "this is fine, here's why."

The pattern: when a check cannot be suppressed, the only way to avoid false convictions is to weaken it for everyone.

Prior art (open source)

Smithy grades validation events NOTE / WARNING / DANGER / ERROR and supports per-finding suppressions. https://smithy.io/2.0/guides/smithy-build-json.html

Notes

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