Neural API — Adaptive Multi-Layer Orchestration

The biomeOS orchestration layer — capability graph execution over 13 primals, composition collapse, and bidirectional learning.

What It Is

The Neural API is biomeOS’s orchestration layer — the central nervous system that integrates the coordination triad and enables products to consume primal capabilities through graph execution.

One-line thesis: 13 primals expose 427 methods. The Neural API collapses these into ~20 atomic signals organized by tier (Tower/Node/Nest/NUCLEUS), so complex systems like rootPulse and product compositions emerge rather than being engineered as monoliths.


The Combinatorial Problem

8 springs validate across 13 primals. Each spring needs different capabilities from different primals. Without composition collapse, every spring (and every product) must independently discover, connect to, and manage 427 methods.

The Neural API solves this with three layers:

Layer 1: Primals (427 methods, JSON-RPC)
    |
Layer 2: biomeOS Neural API (atomic signals, graph execution)
    |
Layer 3: Emergent systems (rootPulse, RPGPT, helixVision, etc.)

Products compose at Layer 3. The Neural API handles Layer 2. Primals provide Layer 1. No product needs to know about all 427 methods — only the atomic signals relevant to its domain.


Atomic Tiers

TierScopeWhat It ProvidesPrimals
TowerTrust + identityAuthentication, signing, mesh federationBearDog, Songbird, cellMembrane
NodeCompute + dispatchGPU ops, workload scheduling, shader compilationbarraCuda, ToadStool, coralReef, Squirrel
NestStorage + provenanceContent-addressed storage, provenance DAG, attributionNestGate, rhizoCrypt, loamSpine, sweetGrass
NUCLEUSFull compositionAll capabilities composedAll primals via biomeOS

Five Coordination Patterns

PatternExecution ModelUse Case
SequentialA -> B -> CrootPulse 6-phase commit
ParallelA + B + C simultaneouslyMulti-spring validation
ConditionalDagIf A then B else CCapability-dependent routing
PipelineA | B | C (streaming)Continuous data processing
Continuous60 Hz feedback loopGame sessions, live monitoring

Graphs are defined in TOML:

[graph]
name = "rootpulse-commit"
pattern = "sequential"

[[graph.node]]
name = "health-check"
signal = "tower.health"
order = 1

[[graph.node]]
name = "dehydrate"
signal = "nest.dehydrate"
order = 2
depends_on = ["health-check"]

[[graph.node]]
name = "sign"
signal = "tower.sign"
order = 3
depends_on = ["dehydrate"]

Bidirectional Learning

The Neural API has a learning loop:

  1. Forward pass — execute the capability graph, collect metrics
  2. Backward pass — feed metrics to the PathwayLearner
  3. Optimization — discover patterns, collapse redundant paths, improve routing

Each execution produces data that makes the next execution more efficient. The system learns which primals respond fastest, which capability paths produce the best results, and which subgraphs can be parallelized.


Composition Collapse

The philosophical commitment: when you can express an operation as a composition of existing capabilities, you do not build a new service. You compose.

Emergent SystemWhat It ComposesWhy Not a Service
rootPulserhizoCrypt + loamSpine + sweetGrass + nestGate + bearDogVCS is coordination, not a service
RPGPTsquirrel + petalTongue + rhizoCryptGame engine is primal composition
NF pipelinehelixVision + healthSpring + initioChemMulti-product science is composition

None of these systems required new primals. They required new compositions of existing primals — exactly what the Neural API enables.


Implementation Status

PhaseStatusWhat It Delivers
1CompleteGraph execution engine
2CompleteMetricsCollector, basic routing
3PartialConditionalDag, Pipeline execution
3.5AComplete32 composition graphs for atomic signals
3.5B-DDesignedPer-tier graph definitions
4SpecifiedPathwayLearner wiring
5ResearchSelf-evolution, pattern discovery

Emergent Systems

Systems that emerge from Neural API composition rather than being built:

SystemDomainStatus
rootPulseVersion controlProvenance trio production-ready
RPGPTGame engineesotericWebb prototype
AlphaFold-class pipelineProtein structurehelixVision primitives validated
Barrick pipelineMicrobial evolutionguideStone-LTEE designed
Field genomicsEnvironmental sciencefootPrint GIS live

The Neural API is the kernel substrate — domain-agnostic graph execution that makes 427 primal methods composable into any system. Intelligence emerges from simple components and feedback loops, not from complexity. The primals are simple. The connections are rich. The results are emergent.