ViolationHandler
autogen.beta.network.hub.expectations.ViolationHandler #
Bases: Protocol
What the hub does when an evaluator fires.
Handlers are async because they may post envelopes or transition sessions. They must be tolerant of duplicate calls — the sweeper deduplicates per (session, expectation, violator) before invoking, but transient re-fires across hub restarts are possible since the fired-violation cache is in-memory only.