Structural analysis adapters for external agent orchestration systems.
The operon_ai.convergence package bridges 5 external agent frameworks (Swarms, DeerFlow, AnimaWorks, Ralph, A-Evolve) into Operon's structural analysis layer. All adapters operate on serializable dicts — no external dependencies.
┌─────────────────────────────────────────────┐
│ A-Evolve (evolution layer) │
├─────────────────────────────────────────────┤
│ AnimaWorks (cognitive layer) │
├─────────────────────────────────────────────┤
│ AsyncThink (thinking layer) │
├─────────────────────────────────────────────┤
│ Ralph / DeerFlow / Swarms (orchestration) │
├─────────────────────────────────────────────┤
│ Operon (structural layer) │
└─────────────────────────────────────────────┘
Type-level bridges to Swarms, DeerFlow, AnimaWorks, Ralph, and A-Evolve. All produce ExternalTopology, consumed by analyze_external_topology() to apply Operon's four epistemic theorems as a structural linter.
parse_swarm_topology() — Swarms workflow patternsparse_animaworks_org() — AnimaWorks org hierarchiesparse_deerflow_session() — DeerFlow session configsparse_ralph_config() — Ralph hat definitionsparse_aevolve_workspace() — A-Evolve workspace manifestsSeed Operon's PatternLibrary from external catalogs:
seed_library_from_swarms() — 10 built-in Swarms patternsseed_library_from_deerflow() — DeerFlow sessionsseed_library_from_acg_survey() — 8 ACG survey method categoriesskill_to_template() / template_to_skill() — bidirectional DeerFlow bridgehybrid_skill_organism() — library-first + generator fallbackPrimingView — multi-channel SubstrateView with trust, telemetry, experiencebridge_animaworks_memory() / bridge_deerflow_memory() — import into BiTemporalMemoryHeartbeatDaemon — idle-time consolidationAsyncOrganizer — Fork/Join execution within stagesEvolutionGating.tla — models the A-Evolve Solve→Observe→Evolve→Gate→Reload loop with monotonic score safetyDesignProblem + compose_series/parallel + feedback_fixed_point — Zardini co-designdeerflow_to_topology() / swarms_to_topology() — compile→decompile round-trip with certificate preservation (Prop 5.1 verified)ExternalTopology.capabilities — structured per-agent capability annotations consumed by tool_density()EXTERNAL_CAPABILITY_MAP — 27 mappings from framework tool names (web_search, python, file_io) to Operon Capability enum valuesRunContext — typed dict subclass wrapping shared_state with property accessors; supports custom WatcherConfig.state_keyorganism_to_langgraph() — compile SkillOrganism to a LangGraph StateGraph. Wraps organism.run() as a single node; all structural guarantees enforced by the organism’s own run loop.run_organism_langgraph() — compile + execute in one call with certificate verificationexecute_deerflow() — single-agent execution via DeerFlow’s create_deerflow_agentpip install operon-ai[deerflow] (Python ≥3.12)seed_library_from_atomic_skills() — 5 composable coding skill patterns from Ma et al.: localize, edit, test, reproduce, reviewget_atomic_skill_patterns() — returns deep copies of the built-in catalog_shape_to_topology(): parallel review → specialist_swarm, sequential skills → skill_organismMockEvaluator using real structural analysis (topology advice, epistemic bounds, pattern scoring)PromptOptimizer protocol with NoOpOptimizer reference implementation; EvolutionaryOptimizer extended protocolattach_optimizer — attach optimizer to any SkillStage for prompt-level tuningWorkflowGenerator protocol with HeuristicGenerator reference implementation; ReasoningGenerator extended protocolgenerate_and_register — generate workflow topology and register it in PatternLibraryEvolves organism configurations (modes, models, thresholds) using biological primitives at the meta-level. Tests whether Operon’s abstractions generalize from running organisms to evolving them.
FilesystemOptimizer protocol — distinct from C7’s EvolutionaryOptimizer. Operates on CandidateConfig, not prompts.EvolutionLoop — proposes, evaluates via LiveEvaluator, persists to filesystem storeTournamentMutator (programmatic) + LLMProposer (Gemini/local, rich context)EpiplexityMonitor + DistanceProvider) + score plateauWiringDiagram + ResourceAwareExecutorAbstraction quality: Genome mapping is lossless (~5 lines). EpiplexityMonitor generalizes across scales. DesignProblem wrapping is natural.
Ao et al. test: Rich context LLM proposer (0.49) slightly outperforms tournament (0.44) but does not dominate. Topology mutations improved tournament (0.60) but degraded LLM (0.36).
Conclusion: Biological abstractions generalize as code structure, not as optimization algorithms. The structural guarantee features (immune system, epiplexity, developmental gating) remain the core value proposition.
Search code lives in eval/meta/ (experimental). Only DistanceProvider remains in the library.
Related: de los Riscos et al. (ArchAgents category theory), Ao et al. (delegation bounds), Meta-Harness (filesystem-backed search).