xml-pipeline/agentserver
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
..
auth initial dir structure 2025-12-25 21:52:36 -08:00
config initial dir structure 2025-12-25 21:52:36 -08:00
listeners major changes to message bus, and xml listener 2026-01-01 15:27:20 -08:00
llm Add thread registry, LLM router, console handler, and docs updates 2026-01-10 16:53:38 -08:00
memory Add context buffer - virtual memory manager for AI agents 2026-01-10 17:20:43 -08:00
message_bus Add context buffer - virtual memory manager for AI agents 2026-01-10 17:20:43 -08:00
primitives Add TodoUntil watcher system for async confirmation tracking 2026-01-10 16:51:59 -08:00
prompts major changes to base 2025-12-28 21:14:08 -08:00
schema Add thread registry, LLM router, console handler, and docs updates 2026-01-10 16:53:38 -08:00
utils major changes to message bus, and xml listener 2026-01-01 15:27:20 -08:00
__init__.py initial dir structure 2025-12-25 21:52:36 -08:00
agentserver.py Major design solidification and documentation sync — December 26, 2025 2025-12-26 16:51:19 -08:00
main.py initial dir structure 2025-12-25 21:52:36 -08:00
xml_listener.py re-writing docs and code 2026-01-03 14:48:57 -08:00