Expand description
Hash utilities for tool catalog and system prompt caching.
Provides hashing functions for tool definitions, system prompts, and low-signal attempt deduplication keys.
All hashes are stable across processes (FNV-1a) so cache keys remain comparable after restarts and in persisted harness artifacts.
Structs§
- Prompt
Capability Identity - Resolved wire capabilities that define a cache-stable request segment. Runtime counters and environment observations deliberately do not belong here.
- Stable
Hasher - Stable FNV-1a 64-bit hasher with fixed offset basis.
Functions§
- hash_
json_ value - Hash a serializable value as JSON with a stable cross-process hash.
- hash_
tool_ definitions - Hash tool definitions for cache key computation.
- hash_
value - Hash a value with a stable cross-process hash.
- low_
signal_ attempt_ key - Generate a deduplication key for low-signal tool attempts.
- stable_
system_ prefix_ hash - Compute the stable instruction digest from explicitly classified sections.