Appearance
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:
viewerreads everything here;operatorsees 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.yamlBars 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
| Fix | What it does |
|---|---|
edit_param | Opens the existing rule at the parameter, to widen or correct it. |
add_param | Adds the event's name and location to the rule. |
edit_endpoint | Opens the rule's endpoint and content types. |
add_endpoint | Opens 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
| Limit | Value |
|---|---|
| Day window | 1 to 90 UTC days |
| Events read | newest 5,000 |
| Parameters listed | 200, most violated first |
| Samples shown | newest 50 |
Events are attributed to endpoints with the current rules, which may differ from the rule in force when the event was recorded.