
Songhaoz666andClaude Opus 4.8
3411daf00b
复审整改(PR #30):审计接口读取完整事件流,消除 >500 事件静默截断
Fasthei 复审阻塞点:build_audit_trace_for_run 只调用一次 list_events(limit=500),
而 list_events 把 limit 钳到 500 并用 next_cursor 暴露下一页——501+ 事件的 run 只返回
前 500 条审计记录,无报错/无 truncated 标记,违背 #17「每步 trace 可回放」核心 DoD。
修复:build_audit_trace_for_run 改为循环跟随 next_cursor 读到为空,拼出完整事件流再
装配审计记录(main.py)。
测试:test-audit-trace.py 新增 test_pagination_no_truncation——存 612 条事件(>500 且非
500 整数倍),断言 audit count == 完整事件数(613,含创建事件)、replay 行数 == count 不截断、
audit_id 连续到末条(aud_000613)。本地全绿。
影响范围:仅 agent_swarm(orchestrator 只读审计装配 + 测试);无契约/计费/审批/密钥改动。
Refs #17
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 21:14:50 +08:00
..
2026-06-09 16:21:18 +08:00
2026-06-09 16:21:18 +08:00
2026-06-09 16:21:18 +08:00
2026-06-09 16:21:18 +08:00
2026-06-10 16:11:47 +08:00
2026-06-09 16:21:18 +08:00
2026-06-10 21:14:50 +08:00
2026-06-10 16:48:27 +08:00
2026-06-09 16:21:18 +08:00
2026-06-10 12:51:32 +08:00
2026-06-10 12:51:32 +08:00
2026-06-09 16:21:18 +08:00
2026-06-10 16:48:27 +08:00
2026-06-10 16:11:47 +08:00
2026-06-10 13:22:54 +08:00
2026-06-10 14:08:08 +08:00
2026-06-09 16:21:18 +08:00
2026-06-10 16:11:47 +08:00
2026-06-09 16:21:18 +08:00
2026-06-10 13:22:54 +08:00
2026-06-09 16:21:18 +08:00
2026-06-10 13:22:54 +08:00
2026-06-10 16:11:47 +08:00
2026-06-10 16:11:47 +08:00
2026-06-10 16:11:47 +08:00
2026-06-10 16:11:47 +08:00
2026-06-10 16:11:47 +08:00
2026-06-10 16:48:27 +08:00
2026-06-10 16:11:47 +08:00
2026-06-10 16:48:27 +08:00
2026-06-10 16:11:47 +08:00