Holonic BRAID + FAHRN + OpenServ

The 74× Cost Reduction Demo

Live proof-of-concept using the @oasisomniverse/web6-api npm package — Generator/Solver plan persistence, fractal memory hierarchy, and OpenServ multi-agent orchestration.

This development sandbox authenticates the temporary test avatar through dev.api.web4.oasisomniverse.one, then sends its JWT only to dev.api.web6.oasisomniverse.one. The token is kept in memory and is never stored.
WEB6 Development Platform Readiness
Checks the deployed API, approved model catalogue, provider registry, OpenServ catalogue, FAHRN agents, and this avatar's usage ledger in one live pass.
Holonic BRAID — Generator / Solver Split
Generator builds a Mermaid reasoning graph once per task type. Solver executes it for every subsequent query at a fraction of the cost. Plans persist to MongoDB + Solana + IPFS via COSMIC ORM.
Generator
High-tier model. Builds reasoning plan once.
claude-sonnet-5 / gpt-4o
→
Solver
Low-cost model. Executes cached plan per query.
gpt-4o-mini / gemini-flash
FAHRN Agent Registry
Load the OpenServ SERV model catalogue, then inspect the authenticated avatar's FAHRN agent registry.
FAHRN Dispatch via web6.fahrn.solve()
Hero endpoint: classifies task, picks best agents, dispatches in chosen mode, returns answer + reasoning trace.
Fractal Holonic Memory Hierarchy
Intelligence compounds up the fractal — Session → Agent → User → Group → City → Earth. Membrane rules control propagation.
Store & Search Memory
Write a memory item to a holon, then semantic-search across it. Propagate upward through the hierarchy.
Cost Comparison — Direct vs BRAID
Based on arXiv:2512.15959. Live data from your last FAHRN solve updates automatically.
Live Data — Last FAHRN Solve
Populated automatically when you run Solve on the FAHRN tab.
—
Tokens
—
Cost USD
—
Agents
—
Mode
—
BRAID Reused
—
Provider
Using @oasisomniverse/web6-api
This demo loads the npm package via esm.sh. The same code runs in Node.js or any bundler.
Install
npm install @oasisomniverse/web6-api
AI Completion with BRAID
import { Web6Client } from '@oasisomniverse/web6-api'; const web6 = new Web6Client({ baseUrl: 'https://dev.api.web6.oasisomniverse.one' }); web6.setToken('<your-oasis-avatar-key>'); const { result } = await web6.completion.complete({ Provider: 'auto', Model: 'auto', Messages: [{ Role: 'user', Content: 'Your prompt here' }], UseHolonicBraid: true, // Generator/Solver split — 74× cost reduction UseFAHRN: true, FahrnTaskType: 'general', Routing: { Priority: 'cost', Fallback: true }, }); console.log(result.content); console.log(`$${result.estimatedCostUSD} via ${result.provider}/${result.model}`);
FAHRN Multi-Agent Dispatch
const { result } = await web6.fahrn.solve({ problem: 'Design a zero-downtime Postgres migration for a 50M-row table', taskType: 'architecture', mode: 'Parallel', // Serial | Parallel | Debate | Voting | Decomposed maxTotalTokens: 8000, maxCostUsd: 0.50, }); console.log(result.answer); console.log('Agents used:', result.agentsUsed); console.log('BRAID graph reused:', result.braidGraphWasReused);
OpenServ Provider — one SERV key, all models
// Read OpenServ's live model catalogue (authenticated) const response = await fetch('https://dev.api.web6.oasisomniverse.one/v1/openserv/models', { headers: { Authorization: 'Bearer <your-oasis-jwt>' } } ); const models = await response.json(); // Route a completion through OpenServ const { result } = await web6.completion.complete({ Provider: 'openserv', // GPT-5, Claude, Gemini, Grok, DeepSeek via SERV gateway Model: 'auto', Messages: [{ Role: 'user', Content: 'Hello via OpenServ' }], });
Streaming SSE
const stream = await web6.completion.stream({ Provider: 'auto', Messages: [{ Role: 'user', Content: 'Write a long technical document...' }], }); for await (const chunk of stream) { process.stdout.write(chunk.delta); }