xml-pipeline/tests
dullfig fc7170a02e Add context buffer - virtual memory manager for AI agents
Implements thread-scoped, append-only storage for validated payloads.
Handlers receive immutable references; messages cannot be modified
after insertion.

Core components:
- BufferSlot: frozen dataclass holding payload + metadata
- ThreadContext: append-only buffer per thread
- ContextBuffer: global manager with GC and limits

Design parallels OS virtual memory:
- Thread ID = virtual address space
- Buffer slot = memory page
- Immutable reference = read-only mapping
- Thread isolation = process isolation

Integration:
- Incoming messages appended after pipeline validation
- Outgoing responses appended before serialization
- Full audit trail preserved

This is incremental - handlers still receive copies for backward
compatibility. Next step: skip serialization for internal routing.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 17:20:43 -08:00
..
scripts Add thread registry, LLM router, console handler, and docs updates 2026-01-10 16:53:38 -08:00
conftest.py Replace MessageBus with aiostream-based StreamPump 2026-01-10 10:41:17 -08:00
test_context_buffer.py Add context buffer - virtual memory manager for AI agents 2026-01-10 17:20:43 -08:00
test_pipeline_steps.py Replace MessageBus with aiostream-based StreamPump 2026-01-10 10:41:17 -08:00
test_pump_integration.py Add TodoUntil watcher system for async confirmation tracking 2026-01-10 16:51:59 -08:00
test_todo_registry.py Add TodoUntil watcher system for async confirmation tracking 2026-01-10 16:51:59 -08:00