loopx icon indicating copy to clipboard operation
loopx copied to clipboard

[Bug]: Normalize eager NoKV client admission failures

Open wchwawa opened this issue 3 months ago • 0 comments

Preflight

  • [x] I searched existing issues and discussions for this behavior.
  • [x] This report is not an unpatched security vulnerability.
  • [x] The report and attachments contain no credentials or private/internal material.

Issue origin

Observed and reproduced in a real environment.

LoopX version or commit

d453ef0c2

Host or runtime surface

Not host-specific.

LoopX area

Capability or extension (providers, adapters, skills).

Problem

The NoKV shadow-provider example maps client failures inside provider methods, but a fresh NoKV client performs route admission before the provider exists. If that admission fails, a bare SDK RuntimeError escapes the composition boundary.

This makes fresh coordination-provider construction behave differently from an already-established provider and bypasses LoopX's typed fail-closed contract.

Minimal reproduction

  1. Configure a NoKV client factory for an unavailable route.
  2. Evaluate NoKVCoordinationProvider(make_client(), workbench, goal_id).
  3. Observe that make_client() raises before the provider can translate the failure.

Expected behavior

Fresh construction and established-client failures both raise ProviderUnavailableError, publish no coordination mutation, and do not fall back to the file provider.

Actual behavior

Fresh construction exposes a bare SDK RuntimeError; the provider method-level mapper is never reached.

Sanitized diagnostics

The failure reproduces with an isolated NoKV 0.11.0 server using Holt 0.8.6. The unavailable-route probe records no provider return, no fallback, and a bare RuntimeError before the fix.

Additional context

The narrow owner is the example composition boundary that creates the SDK client. This issue does not request a production authority-source flip or change the native TypeScript control plane.

wchwawa avatar Sep 01 '26 06:09 wchwawa