pub fn write_facts(
output: Option<&Path>,
facts: &[Fact],
) -> Result<(), CliError>Expand description
将 Fact 列表写为 JSONL(每行一个 Fact)
output 为 None 时打印到 stdout,为 Some(path) 时写入文件。
§序列化路径
Fact → evorule_reactor::wal::fact_to_json → serde_json::Value → serde_json::to_string
这样保证 fact.log 格式与 tier1 reactor WAL 文件格式互换。