Skip to main content

BUNDLE_IMPORT_FOR_AGENT_LOCKS

Static BUNDLE_IMPORT_FOR_AGENT_LOCKS 

Source
static BUNDLE_IMPORT_FOR_AGENT_LOCKS: LazyLock<Mutex<HashMap<String, Arc<Mutex<()>>>>>
Expand description

Per-agent async lock serializing bundle.import_for_agent’s “check zero existing memory rows, then write” sequence — ABF v0.2 §2.3, reagent P2 on PR #2527. Mirrors agent_open.rs’s AGENT_OPEN_LOCKS precedent exactly, including its scope note: this only serializes calls handled by THIS process, not a genuinely different AgentMux instance/channel racing the same agent_id.