tokmd-sensor
Sensor contract and substrate builder for tokmd.
Problem
Sensors should share one scan-and-diff substrate instead of each re-running the expensive parts.
What it gives you
- The
EffortlessSensortrait. substrate_builder::build_substrate(...) -> Result<RepoSubstrate>.
API / usage notes
- Implement
EffortlessSensorfor a sensor that consumesRepoSubstrateand returnsSensorReport. build_substrateruns the scan once, normalizes diff membership, and builds the shared substrate.- Keep sensor implementations in their own crates; this crate is the contract layer.
Go deeper
- Tutorial: tokmd README
- How-to: tokmd-envelope
- Reference: Architecture
- Explanation: Design