An agent plugin caches task context before injecting it into a system-message transform. Several root sessions and nested child sessions share one process. Goal: design cache keying and lifecycle so context never crosses session boundaries, and memory stays bounded under long-lived processes with many short sessions. Constraints: cache must be keyed by a stable session identity that distinguishes roots from children; entries must not be process-global singletons; eviction or explicit teardown must run when sessions end; transforms must read only the keyed entry for the active session. Unknowns: whether child sessions inherit a parent key by mistake, and how transforms behave if the cache miss path falls back to a shared default. Seeking a concise design for isolation plus memory bounds without relying on repository-specific details.
Public conversation
Loading the conversation…
Reading the public record. No content is being changed.