/** * DispatchPolicyRuntime — Wire DispatchPolicy tier executors to real runtimes. * * Bridges @holoscript/core's DispatchPolicy (inversion-critic tier router) * with concrete backends: * - Tier-1 Browser: @holoscript/snn-webgpu (WebGPU SNN) * - Tier-1 WASM: @holoscript/snn-webgpu CPUReferenceSimulator * - Tier-2: LLM proposal + engine simulation contract verifier * - Tier-3: CAELAgent CPU-direct trait execution * * Source: task_1778381112560_vc4t */ import { DispatchPolicy, DispatchPolicyConfig, DispatchableOperation, Tier1WasmEmulatorResult, Tier1WasmRuntimeProbeResult, Tier3CpuDirectOutput, DispatchEffectVerifierResult } from '@holoscript/core/compiler'; /** * Lazily initialise the WebGPU SNN runtime for Tier-1 Browser dispatch. * Returns `accepted: false` when WebGPU is unavailable so the policy * falls back to Tier-1 WASM or Tier-3 CPU. */ export declare function executeTier1BrowserSnn(op: DispatchableOperation): Promise<{ accepted: boolean; source: string; steps?: number; reason?: string; }>; /** Reset the singleton WebGPU state (for testing / hot-reload). */ export declare function resetTier1BrowserState(): void; /** * WASM fallback executor using @holoscript/snn-webgpu's CPUReferenceSimulator. * This is the real runtime backing the Tier-1 WASM path when WebGPU is absent. */ export declare function executeTier1WasmSnn(op: DispatchableOperation, runtime: Tier1WasmRuntimeProbeResult): Promise; /** * Placeholder LLM proposal provider. In production this wires to the * configured LLM provider (OpenRouter, local GGUF, etc.) via * @holoscript/llm-provider. */ export declare function tier2LlmPropose(op: DispatchableOperation): Promise; /** * Effect verifier using the engine's SimulationContract gate. * Returns `passed: true` when the manifest passes structural checks. */ export declare function tier2EffectVerifier(traits: string[]): Promise; /** * Simulation-contract verifier for Tier-2 acceptance gate. * Delegates to the core HoloMap contract assertion when a manifest is present. */ export declare function tier2SimulationContractVerifier(manifest: unknown): Promise; /** * Real Tier-3 CPU executor. Runs the trait directly through the engine's * CAEL cognition path when available, otherwise falls back to the scaffold * output used in unit tests. */ export declare function executeTier3CpuDirect(op: DispatchableOperation): Promise; export declare const DEFAULT_RUNTIME_DISPATCH_CONFIG: DispatchPolicyConfig; /** * Create a DispatchPolicy with all tier executors wired to real engine * and SNN-WebGPU backends. */ export declare function createRuntimeDispatchPolicy(overrides?: Partial): DispatchPolicy; //# sourceMappingURL=DispatchPolicyRuntime.d.ts.map