Skip to content

Watch violations and fix a false positive Since v0.1 ​

The Violations tab counts positive model events per day, rule and parameter. For each sample it shows the fix: edit the rule, or add a scoped exception. For the general workflow, see False positives.

Before you begin ​

  • Role: viewer reads everything here; operator sees the edit and exception buttons.

Fix a false positive from its event ​

text
1. Open Request checks > Learned model > Violations. Choose 1 to 90 days (default 7).
2. Select an endpoint in the URL tree to filter, or All endpoints to clear it.
3. On a sample, select View fixes, or open its Event detail.
4. Review the fix: current rule and learned profile side by side. Correct the form
   with your knowledge of the application, then Preview changes and Apply.
5. For a scoped exception instead, select Add exception (or Propose exception on
   the event detail), review the scope and diff, comment, and Apply exception.
sh
waap learning violations -days 30 -app shop
waap learning violations -days 7 -endpoint 'GET /products/{var}' -app shop
waap learning event -app shop -id ID
waap learning event -json -app shop -id ID
waap positive rules edit -dry-run -app shop -endpoint 'GET /products/{var}' -f rule.yaml

Bars show refused and logged events per UTC day, then findings by rule, the top parameters and the newest samples. Truncated means only the newest 5,000 events were read; narrow the day window. Parameter overflow means more parameters were omitted.

Fix kinds ​

FixWhat it does
edit_paramOpens the existing rule at the parameter, to widen or correct it.
add_paramAdds the event's name and location to the rule.
edit_endpointOpens the rule's endpoint and content types.
add_endpointOpens the add-rule form with the learned endpoint (or the event's method and path).

Evidence, not a source

Redacted or clipped snippets are evidence. Do not widen a rule automatically from them.

The rule edit sends the event's policy version as base_version. If the rule list has moved, reload the event and review again; a conflict never retries a write for you. The CLI event command prints the rule and parameter index, fix kind, enforced and learned profiles and version. Use the UI for the version guard and the exception workflow.

Check rules against the model ​

In the URL tree each endpoint carries a rule badge: learned or manual, exact or covered by a wider template. Unobserved rules lists rules without observations. The parameter detail shows the length histogram (over 4 KiB is the last bucket) and kept enum values with counts.

Limits ​

LimitValue
Day window1 to 90 UTC days
Events readnewest 5,000
Parameters listed200, most violated first
Samples shownnewest 50

Events are attributed to endpoints with the current rules, which may differ from the rule in force when the event was recorded.