Memory
Path:
pi-cybernetic/src/engines/memory.tsRelative: src/engines/memory.tsSubproject: pi-cyberneticCategory: cybernetic-coreLines: 186Bytes: 7,712Imports: 10Exports: 2
Content Preview
- /**
- * Loop 4 — MemoryEngine. Channel-capacity manager (P6).
- * Attaches via transformContext (entropy gate) and convertToLlm (filter boundary).
- *
- * Pruning is compression-only: message bodies are truncated, messages are
- * never removed, so assistant↔toolResult adjacency required by providers
- * stays intact. Cybernetic control messages are converted or filtered at the
- * convertToLlm boundary (ADR-002/003).
- */
- import type { AgentMessage } from "@earendil-works/pi-agent-core";
- import type {