Principle:23blocks OS Ai maestro Agent Export
| Knowledge Sources | |
|---|---|
| Domains | Agent_Transfer, Serialization |
| Last Updated | 2026-10-26 10:00 GMT |
Overview
An export pattern that packages an agent's complete state — registry, database, messages, skills, hooks, keys — into a ZIP archive with a versioned manifest.
Description
Agent export serializes the full agent state into a ZIP buffer using `archiver`. The export includes the registry entry, CozoDB database file, inbox and sent messages, skills configuration, hooks, and Ed25519 keypair. A manifest file stamped with the AI Maestro version enables forward-compatible import.
Usage
Use this principle when an agent's complete state must be serialized for transfer, backup, or migration.
Theoretical Basis
The export is a full-state snapshot:
export(agentId) = ZIP {
manifest.json → { version, agentName, agentId, exportedAt }
registry.json → agent object
database.db → CozoDB file
messages/ → inbox + sent JSON files
keys/ → private.pem, public.pem
skills.json
}