DetectorMetadataProvider mixin

Mixin that lets a detector declare its validation metadata.

Detectors implement validationMetadata as an instance getter backed by a const DetectorMetadata(...) literal so there is no per-scan allocation. Dart does not treat static members as part of a class interface, so the contract is necessarily instance-level: the audit test (detector_metadata_audit_test.dart, live since v0.16.1) walks the SleuthController's registered detector instances via detectorsForAudit — the same construction path the runtime already exercises — rather than reflecting on types directly. Keep detector constructors side-effect-free (field initialization only, no I/O or scheduler binding) so the audit can construct them in isolation if needed.

v0.16.1 seeds every shipped detector with this mixin. Most entries start at EvidenceTier.unvalidated; subsequent milestones (v0.16.2…v0.16.N) raise one detector at a time to EvidenceTier.reproducerOnly, EvidenceTier.runtimeVerified, or EvidenceTier.externallyCited with the supporting reproducer, profile-mode capture, or cited source committed alongside the tier raise. NetworkMonitorDetector is the first detector to ship at reproducerOnly (v0.16.1).

Mixin applications
  1. @experimental

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
validationMetadata → DetectorMetadata
Metadata for this detector. Must be non-null on shipping detectors — the audit test gates this.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited