Expand description
bundle.import_for_agent: apply an ABF to an existing agent definition,
serialised per agent by bundle_import_for_agent_lock.
StructsΒ§
- Bundle
Import πForAgent Response - Response for
bundle.import_for_agent. - Import
ForAgent πReq
FunctionsΒ§
- bundle_
import_ πfor_ agent_ impl bundle.import_for_agentβ ABF v0.2 Β§2.3. The only import path that processes acomponents.memorykey; the genericbundle.importexplicitly skips it (seeparse_bundle_import_with_budgetβs own components.memory guard). Unlikebundle.import/bundle.import.commit, this is a single-step import β no preview phase β since a memory-bearing import has its own unconditional safety net instead: the target agent must have ZERO existingdb_agent_native_memoryrows, or the whole import is rejected before any write happens. Simpler than skip/rename/replace conflict resolution, and sufficient for v0.2 (see the specβs revision note for why merge semantics are an explicit follow-up, not designed here). Extracted from the RPC closure into a directly-callable, directly-testable function, matchingbundle_import_preview_implβs pattern.- register_
bundle_ πimport_ for_ agent - resolved_
memory_ πpaths - Every
memory/*path listed undercomponents.memoryin a parsed importβs manifest (bundle.json, orarmory.jsonbefore ABF v0.3) β mirrors howcomponents.instructions/components.skillsare read elsewhere in this file, kept local tobundle.import_for_agentsince no other handler needs it.