Repository navigation
fix(workflows): bound settled run retention - #233
Conversation
6afafa7 to
1960ea6
Compare
|
Synchronized with the latest upstream main. Verified with |
|
独立行为回归记录(2026-08-29):在 PR 分支运行 retention E2E,连续完成超过 32 个 workflow 后,内存 settled projection 保持不超过 32 条;最旧 run 的 workflow.json 仍保留;被驱逐的 run 仍可通过完整 run ID 从持久化记录查询,状态为 completed。model retention 两项测试通过,相关 workflow E2E 12 项中 10 项通过;剩余 2 项是 Windows 下既有的注入 session/replay fixture 失败,不涉及本 PR。 |
|
代码有效性审计结论:PR #233 的 32 条 settled in-memory count bound、最旧终态驱逐、活动 run 保护、artifact 保留和按 ID 磁盘查询均有效;但它不是 Issue #178 的完整实现。当前 dashboard 的 |
69ed0d9 to
ea21cc1
Compare
somewan820
left a comment
There was a problem hiding this comment.
已完成静态审查。bounded map 只淘汰 terminal projections,显式 run lookup 仍回退 persisted artifacts,session reset 同步清理 records/counters;测试覆盖 eviction、active preservation、status metadata 和 persisted lookup。未发现 P0-P2 或死代码问题。未运行测试。
b350dc5 to
3f0a19e
Compare
3f0a19e to
387255b
Compare
* fix(workflows): bound settled run retention * style(workflows): format retention test (cherry picked from commit e2a5f4d)
Problem
Issue #178 identifies unbounded growth of settled workflow details in the current-session memory projection, even though completed run artifacts are already persisted separately.
Value
A long-running session now has a hard count bound for its ephemeral settled-run projection, while operators can see how many entries were evicted and can still query persisted runs by ID.
Approach
Validation
Impact
This PR intentionally implements the count-bound portion of #178. It does not add byte/age or disk cleanup policy. Persisted artifacts, pending completion delivery, resume data, and active runs remain outside the eviction path.
Related to #178