Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AnomalyUngatedAssertion

Git Source

Inherits: AnomalyGatedBaseAssertion

Title: AnomalyUngatedAssertion

Author: Phylax Systems

Reverts on every transaction the anomaly trigger fires on, with no damage check.

Blocks benign traffic by design: the invalidation count is the level’s false-positive budget. Use it to measure what a level costs, not as a production posture.

Functions

_registerUngatedTrigger

Register the trigger for the bare check. Call this inside triggers().

function _registerUngatedTrigger() internal view;

assertNotAnomalous

Reverts unconditionally.

The trigger is the gate, so reaching here means the model already scored target past sensitivity.

function assertNotAnomalous() external view;

Errors

AnomalousTransaction

The transaction cleared the registered sensitivity level.

error AnomalousTransaction(uint8 firesAt);