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§
- Analyze
Ctx - The context handed to
analyze. Read-only by construction. - Outcome
Input - One applied recommendation due for outcome review, with its metric already
re-measured by the engine (which owns the
&mutsubstrate). 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).