ruvnet/ruflo · error · Error

Hyperbolic module not initialized

Error message

Hyperbolic module not initialized

What it means

HyperbolicBridge.embed() was called while this._module is null — the hyperbolic module was never loaded (initialize() not run, failed, or destroy() called). Every module-backed method on the bridge carries this not-initialized sentinel.

Source

Thrown at v3/plugins/ruvector-upstream/src/bridges/hyperbolic.ts:102

  async destroy(): Promise<void> {
    this._module = null;
    this._status = 'unloaded';
  }

  isReady(): boolean {
    return this._status === 'ready';
  }

  getModule(): HyperbolicModule | null {
    return this._module;
  }

  /**
   * Embed a vector into hyperbolic space
   */
  embed(vector: Float32Array, config?: Partial<HyperbolicConfig>): HyperbolicPoint {
    if (!this._module) throw new Error('Hyperbolic module not initialized');
    const mergedConfig = { ...this.config, ...config };
    return this._module.embed(vector, mergedConfig);
  }

  /**
   * Project hyperbolic point to Euclidean space
   */
  project(point: HyperbolicPoint): Float32Array {
    if (!this._module) throw new Error('Hyperbolic module not initialized');
    return this._module.project(point);
  }

  /**
   * Compute hyperbolic distance
   */
  distance(a: HyperbolicPoint, b: HyperbolicPoint): number {
    if (!this._module) throw new Error('Hyperbolic module not initialized');
    return this._module.distance(a, b);

View on GitHub (pinned to fa13ee4ad6)

Solutions

  1. Ensure the module/bridge/plugin initialize() method has been called and awaited before invoking this operation.
  2. Guard against calls made during startup: await the initialization promise or check the initialized flag and fail fast with a clear setup hint.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at v3/plugins/ruvector-upstream/src/bridges/hyperbolic.ts:102 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18). Data as JSON: /api/errors/870165e6e4dd62bb. Report an issue: GitHub.