/**
 * Nexus Prime Engines — Root Barrel
 *
 * 85 engine files organized into 15 categories. Each category has its own
 * barrel at `src/engines/<category>/index.ts` for targeted imports:
 *
 *   memory/        — 3-tier Zettelkasten memory (createMemoryEngine)
 *   orchestration/ — master control plane (createOrchestrator)
 *   tokens/        — CAS compression + knapsack (TokenSupremacyEngine)
 *   context/       — context assembly (ContextEngine, ContextAssembler)
 *   search/        — trigram index, RAG, hybrid retrieval (NgramIndex, RagCollectionStore)
 *   knowledge/     — multi-source context weaving (KnowledgeFabricEngine)
 *   learning/      — Darwin self-improvement, meta-learning (MetaLearner, DarwinLoop)
 *   runtime/       — registry, health, backends, cache (RuntimeRegistry, CacheManager)
 *   skills/        — skill load/execute/validate (SkillRuntime)
 *   networking/    — GStack, GitHub, NexusNet, federation bridges
 *   security/      — governance boundary, security shield, guardrails
 *   monitoring/    — event bus, telemetry, attention streams, compaction sentinel
 *   session/       — DNA, client bootstrap, client registry (SessionDNAManager)
 *   research/      — Phase-3 engines: entanglement, Byzantine consensus, simulation
 *   nxl/           — NXL interpreter, Nexus Layer, brand constants
 *   specialists/   — 139 domain specialists loaded from generated-specialist-details/
 *   lifecycle/     — lifecycle policy, feature registry, repo tree, work ledger
 *
 * This root barrel re-exports the most commonly used symbols for convenience.
 * For engine-specific imports, prefer the category barrel to reduce bundle size.
 */
export { TokenSupremacyEngine as TokenOptimizer, createTokenSupremacyEngine as createTokenOptimizer } from './token-supremacy.js';
export { TokenOptimizer as LegacyTokenOptimizer, createTokenOptimizer as createLegacyTokenOptimizer } from './token-optimizer.js';
export { ContextEngine, createContextEngine } from './context.js';
export { ContextCompressor, type CompressionOptions, type CompressionStats } from './context-compressor.js';
export { MemoryEngine, createMemoryEngine } from './memory.js';
export type { MemoryItem } from './memory.js';
export { NgramIndex, getSharedNgramIndex } from './ngram-index.js';
export { OrchestratorEngine, createOrchestrator } from './orchestrator.js';
export type { Agent, AgentType, Task } from './orchestrator.js';
export { KnowledgeFabricEngine } from './knowledge-fabric.js';
export { LifecyclePolicy, createLifecyclePolicy } from './lifecycle-policy.js';
export type { LifecycleFeature, LifecyclePolicyDecision } from './lifecycle-policy.js';
export type { ContextProvenanceTrace, KnowledgeFabricBundle, KnowledgeFabricSnapshot, ModelTierPolicy, ModelTierTrace, SourceMixDecision, TokenBudgetAllocation, } from './knowledge-fabric.js';
export { RagCollectionStore } from './rag-collections.js';
export type { RagCollection, RagCollectionSummary, RagRetrievalHit, } from './rag-collections.js';
export { PatternRegistry } from './pattern-registry.js';
export type { PatternCard, PatternSearchResult, } from './pattern-registry.js';
export { InstructionGateway, DEFAULT_REQUIRED_SEQUENCE, createExecutionLedger, markExecutionLedgerStep, renderInstructionPacketMarkdown, PACKET_TOKEN_LIMIT, } from './instruction-gateway.js';
export type { ClientInstructionEnvelope, ExecutionLedger, ExecutionLedgerStep, ExecutionLedgerStepId, GovernanceSnapshot, InstructionPacket, OrchestrationExecutionMode, PacketCompileInput, TokenPolicySnapshot, } from './instruction-gateway.js';
export { CacheManager, createCacheManager } from './cache-manager.js';
export type { CacheEntry, AgentDelta } from './cache-manager.js';
export { MetaLearner, AdaptiveInterpolator, TokenRetention, createMetaLearner, createAdaptiveInterpolator, createTokenRetention } from './meta-learner.js';
export type { CompressionFeatures } from './meta-learner.js';
export { BenchmarkSuite, createBenchmarkSuite, EXPECTED_RESULTS } from './benchmark.js';
export type { BenchmarkResult } from './benchmark.js';
export { EntanglementEngine, entanglementEngine } from './entanglement.js';
export type { EntangledState, MeasurementResult, CorrelationEntry } from './entanglement.js';
export { PatternCodebook } from './pattern-codebook.js';
export { ContinuousAttentionStream } from './attention-stream.js';
export type { AttentionFluid, CASStats } from './attention-stream.js';
export { ByzantineConsensus } from './byzantine-consensus.js';
export type { ConsensusProposal, ConsensusResult } from './byzantine-consensus.js';
export { KVBridge, createKVBridge } from './kv-bridge.js';
export type { KVBridgeConfig, MergeDecision, BridgeMetrics } from './kv-bridge.js';
export { NXLInterpreter, nxl } from './nxl-interpreter.js';
export type { AgentArchetype, SwarmConfig, NXLExecutionSpec } from './nxl-interpreter.js';
export { createRuntimeBackendRegistry, normalizeReadingPlan, createSQLiteMemoryBackend, createDeterministicCompressionBackend, createDeterministicDSLCompilerBackend, buildRunId } from './runtime-backends.js';
export type { BackendDescriptor, BackendMode, MemoryBackend, CompressionBackend, CompressionPlanResult, CompressionShadow, DSLExecutionSpec, DSLCompilationResult, DSLCompilerBackend, RuntimeBackendRegistry } from './runtime-backends.js';
export { PersistentWorkLedger, type LedgerEntry } from './work-ledger.js';
export { SkillRuntime, createSkillRuntime } from './skill-runtime.js';
export type { SkillArtifact, SkillBinding, SkillBindingType, SkillCheckpoint, SkillDeploymentRecord, SkillRiskClass, SkillRuntimeMetrics, SkillScope, SkillValidationResult } from './skill-runtime.js';
export { WorkflowRuntime, createWorkflowRuntime } from './workflow-runtime.js';
export type { WorkflowArtifact, WorkflowDeploymentRecord, WorkflowRuntimeMetrics, WorkflowStep } from './workflow-runtime.js';
export type { RuntimeBinding, RuntimeBindingType } from './runtime-assets.js';
