Expand description
The mock worker (CONTEXT.md §14, §21).
Replays a canned script — a sequence of streamed events plus a final result — without spawning any process or making any network call. This is what lets the loop engine be integration-tested (loop-backs, stuck-detection, resume) deterministically, without burning tokens or depending on a flaky beta CLI.
Structs§
- Mock
Script - A canned scenario the mock replays. Deserializable so tests can load transcripts from JSON fixtures on disk.
- Mock
Worker - A worker that replays a
MockScript.