Skip to content

[trade-off] VoiceAnalyzer 指纹纯内存不持久化 #25

Closed

Description

@ULookup

现状

VoiceAnalyzer::fingerprints_ 是 std::map<std::string, VoiceFingerprint>,进程重启后全部丢失,需从对话轮次重新计算。

当前取舍

  • 算法是确定性启发式(不用 LLM),重新计算成本极低(10 句即可生成)
  • 持久化反而引入"存储指纹 vs 实际对话不同步"的一致性问题
  • update() 每次覆盖旧指纹,持久化没有增量价值
  • 定位是即时分析工具,不是长期存储

升级触发条件

如果需要跨 session 保留指纹历史趋势、或者在大型世界中减少重复计算开销,可以添加 JSON 文件持久化(路径:worlds/{world_id}/voice_fingerprints/{agent_id}.json)。

Activity

  1. self-assigned this
    on Jun 3, 2026
  2. added
    trade-offIntentional design trade-off, deferred optimization
    worldbuildingWorldbuilding novel agent feature
    on Jun 3, 2026
  3. added a commit that references this issue on Jun 21, 2026
    e633211
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

trade-offIntentional design trade-off, deferred optimizationworldbuildingWorldbuilding novel agent feature

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions