Skip to main content

Module analyzer

Module analyzer 

Source
Expand description

The Analyzer trait and AnalyzeCtx — the SDK seam. AnalyzeCtx is a struct (not a trait) so the engine can add methods without breaking implementors. It exposes only read-only substrate access plus resolved params, the watermark, and now — analyzers cannot write (trust floor), enforced by holding &dyn SubstrateRead.

Structs§

AnalyzeCtx
The context handed to analyze. Read-only by construction.
OutcomeInput
One applied recommendation due for outcome review, with its metric already re-measured by the engine (which owns the &mut substrate). The outcome analyzer makes the deterministic changed/regressed decision over this — I/O in the engine, judgment in the analyzer.

Traits§

Analyzer
An analysis unit. Object-safe so builtin_analyzers() yields trait objects.

Functions§

builtin_analyzers
The default-registered built-in analyzers. Count is test-pinned (§11).