The Demo Is a Reducer: A Weekend Fixture Kit for Agent Side Projects
说明与用途
使用冻结时间和工具固定件的简洁可重复演示命令,用于测试代理原型。
问题
Weekend agent prototypes often produce non‑deterministic demos that cannot be reliably reproduced, making review and validation difficult.
结果
The spike produces a deterministic, reproducible demo that can be verified by running demo.sh. It demonstrates how to isolate time, tool responses, and policy logic in code for reliable agent testing.
工作流
- 1. Commit a frozen clock file
files/CLOCK.txtwith an ISO timestamp. - 2. Create a fixture file
fixtures/tools.jsoncontaining all tool responses the reducer may need. - 3. Implement
reduce.pyto load the clock, read the incident JSON, look up tool results from the fixture, apply a deterministic severity table, and print a four‑line receipt. - 4. Write
demo.shto run the reducer twice and compare stdout tofixtures/demo.stdoutusingdiff. - 5. Document skipped features in
SKIPS.mdto keep the spike focused.
证据
The demo is a command that reads frozen time, canned tool results, and one input file, then prints the same bytes on the second run.
Five files are enough. More files usually mean the spike is leaking back in.
- 记录日期: 2026-09-18T04:45:26.202Z