Agent Context Manager
Registry for connected agents and in-flight chunked scrape contexts.
Manages two concurrent maps: one mapping agent IDs to their AgentContext instances, and another mapping scrape IDs to ChunkedContext instances for chunked transfers. Provides lookup, addition, removal, stale-agent detection, and bulk invalidation of agent contexts.
Parameters
is Test Mode
when true, suppresses verbose logging during tests