Skip to content

Enforce deterministic ordering for LLM-bound registries to stabilize prompt cache #3298

Description

@houko

背景

HashMap / HashSet 直接进 prompt,不同进程或不同版本之间序列化顺序漂移,导致 prompt cache 命中率低、调试不可复现。

openclaw 做法(参考)

CLAUDE.md 显式要求:Prompt

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/runtimeAgent loop, LLM drivers, WASM sandboxenhancementNew feature or requesthas-prA pull request has been linked to this issueseverity/criticalRemote-exploitable, data loss, or production-blocking

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions