Skip to main content

Module schema

Module schema 

Source
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_memory topic references from agent_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.