Local Registries for Dynamic Agents
Persist recipes for dynamically created agents so their callable tasks survive process restarts.
Concept
- Store symbolic recipes in parent agent state (primer, capabilities, task signatures).
- Reconstruct agents cross-process using Namespaced state and allowlists.
Flow
- Task carries parent fingerprint + local agent ID.
- Resolve parent from global registry; load state.
- Rebuild dynamic agent from recipe; register needed dataclasses.
- Execute task with the reconstructed agent.
Benefits
- Durable dogfood pattern; unlimited nesting.
- Works across restarts and distributed deployments.
- Preserves security via symbolic capability references.
Considerations
- Stable IDs, garbage collection, schema migration.
- No raw object leakage; enforce allowlisted reconstruction.
Related issue: Issue #4