Repository navigation
feat(dream): dream_runs 重载列保留期——裁列不删行(#557) - #680
modusensus wants to merge 3 commits into
Conversation
# Conflicts: # dsh-mneme/CHANGELOG.md
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 23 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Closes #557.
背景
dream_runs是四个*RetentionDays都不覆盖、也没有任何DELETE路径的唯一一张表:单行input快照体量随记忆数涨、轮数随天数涨,两个因子相乘超线性(报告库占约 43% 的页),再叠加热快照是整库副本,它同时放大库与备份两处开销。改了什么
dreamRunsTrimDays(opt-in 默认 0 = 不裁,升级后行为逐字节不变)。形态对齐recallRetentionDays一族:顶层扁平键、只从配置文件改。input(可由记忆库重建)、decisions、outcome——issue 评论实测这三列占 13.26 MB 列文本的 50.1% / 30.5% / 17.8%。snapshot_hash、status、provider、receipt、policy_epoch、store_count等骨架列全部保留;窗口外轮次的离线回放降级为骨架级(与reclaim清 input、dreamInputSummaryEnabled的瘦身同一条口径,docs/CONFIGURATION.md写明三处互不冲突)。organize行整体豁免:它的input是 apply 的重放载荷、outcome挂着dry_run_id/applied_at链;谓词与clearDreamRunInputs同一条边界。验证
npm test:0 fail(合并最新 main 后重跑)。check-sync:一致。> 0改>= 0/ 默认改 90 / 裁剪漏outcome)。已知边界
settings.js白名单(与该族现状一致,文档已注明);要上面板需同时补api.js的 NESTED 表与client.js的面板行。decisions.demotion会退化为 null(骨架不受影响)。