Skip to content

feat(heat): 广义指数衰减 exp(-λΔt^β) + 注入排序热度乘数(#218,rebase 接管自 #234) - #237

Merged
modusensus merged 2 commits into
mainfrom
merge/heat-218-resolved
Sep 19, 2026
Merged

modusensus merged 2 commits into
mainfrom
merge/heat-218-resolved

Conversation

@modusensus

Copy link
Copy Markdown
Member

与 #234 相同代码(作者 @heptaspirit,提交作者不变),由维护者 rebase 到最新 main 并解决 CHANGELOG 冲突(#233 已先合入,两处 [Unreleased] 合并为一个块)。

- heat.js: 衰减式由幂律 H=1/(1+λΔt)^α 换为广义指数 H=exp(-λ·Δt^β)
  (FadeMem v2 Eq4,维护者拍板选型;幂律在心理学/FSRS 文献有支持但不在
  #164 论文集内,真实负载回放时两族 A/B);buildHeatSignals 返回 beta;
  λ=0 免疫位在指数式下语义不变(恒 1)
- config: heatGlobalAlpha → heatGlobalBeta(0.5-2 默认 1.0,默认关期间零
  迁移成本);heatEnabled 注释同步注入乘数口径
- service: injectCandidates 规则路 comparator 层内乘 heat——同级内乘数,
  priority 分层与 order=chrono 分页序不动;heat 关闭时不建表不算 heat,
  权重恒 1,排序与改动前逐字节一致
- lib/client.js(唯一直改的 lib 文件): heatEnabled 补进 FEATURE_GROUPS
  「记忆增强」组 + 双语名称/说明——feature flags 白名单第三处落位,
  面板可启停=线上回滚开关
- README 配置表、CHANGELOG 同步
- test: heat.test.js 换 β 口径并补纯指数精确锚定 / β 形状对比 / touch
  回温 3 例;inject-heat.test.js 新增 4 例(关闭一致 / 同层反超 /
  免疫中性 / 不跨层);sleep-heat.test.js 注释换广义指数数值
Copilot AI lite review requested due to automatic review settings September 19, 2026 03:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codecov

codecov Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.61905% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
dsh-mneme/src/heat.js 95.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants