Skip to main content
Version: beta_0.0.0
Implementation status. The Adapter trait this document specifies exists in ntl-core and is exercised by the test suite. No adapter implements it: adapters/web2, adapters/web3 and adapters/legacy are placeholder crates containing a single doc comment each, and no binary reads an [adapter.*] configuration table.This page is therefore normative and unimplemented at the same time — the contract is fixed, the implementations are not written. The adapter guides describe intended behaviour on top of it. Tracking: openNTL/ntl#14.

Overview

Adapters translate between NTL signals and external protocols. This document specifies the interface that all adapters MUST implement.

Interface

ExternalPayload

The generic container for external protocol data:

AdapterCapabilities

Adapters declare their capabilities:

Health States

Registration

Adapters MUST register with their node:
Registered adapters:
  • Appear in node health checks
  • Are included in discovery signals
  • Can be queried via the node management interface

Correlation Requirements

Adapters that support correlation (request-response patterns) MUST:
  1. Generate a signal with a unique ID for each incoming request
  2. Hold the external connection open
  3. Match response signals by correlation_id
  4. Enforce a configurable timeout (default: 30 seconds)
  5. Return an appropriate error to the external client on timeout

Standard Adapters

The NTL reference implementation MUST include:
Last modified on September 11, 2026