Expand description
Deterministic mock backend used by tests and by the daemon’s M1 echo milestone.
Configurable knobs cover the failure modes adapters must support:
readyflag togglesBackend::ready()for testing the listener-gate invariant (THREAT_MODEL.mdF-13).pre_stream_errorcausesgenerate()to returnGenerateErrorbefore yielding any tokens.mid_stream_drop_aftertruncates the stream after N tokens (noDoneevent) to exercise the mid-stream failure path.
Structs§
- Mock
- Deterministic test backend.
- Mock
Config - Configuration for
Mockfailure-mode injection.
Enums§
- Mock
Error - Variants for
MockConfig::pre_stream_error.