Expand description
Memory validation functions (spec S28).
Provides standalone validation functions for memory keys, topics, entries,
and load_memory references. These functions are reusable by the validator,
CLI tools, and the Phase 2 runtime.
Constants§
- MAX_
MEMORY_ VALUE_ BYTES - Maximum size of a memory entry value in bytes (32 KiB). Spec S28.3.
Functions§
- validate_
load_ memory - Validates
load_memorytopic references fromagent_context. - validate_
memory_ entry - Validates a complete memory entry: key pattern (V022), topic pattern (V025), and action constraints (V023: upsert requires value, search requires query).
- validate_
memory_ key - Validates a memory key against the spec S28.3 pattern.
- validate_
memory_ topic - Validates a memory topic string.