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:- 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:- Generate a signal with a unique ID for each incoming request
- Hold the external connection open
- Match response signals by
correlation_id - Enforce a configurable timeout (default: 30 seconds)
- Return an appropriate error to the external client on timeout