nthlayer-override-adapter
Standalone HTTP sidecar that accepts human-override events and emits them as gen_ai.override OTel spans. Part of the NthLayer ecosystem; implements opensrm-jmy.7 — § 4 of NTHLAYER_MISSING_CAPABILITIES_SPEC.md.
Why
nthlayer-measure computes judgment SLOs from override metrics consumed via OTel. Operators reviewing AI decisions live in heterogeneous tools (Slack, Jira, internal review UIs, email). The override-adapter is the translation layer: HTTP in, canonical OTel gen_ai.override events out.
Endpoints
POST /api/v1/overrides— canonical OverrideEvent JSON in.POST /api/v1/overrides/batch—{overrides: [...]}with last-in-array-wins on duplicatedecision_id.POST /webhook/{source}— one route per configured adapter; runs a YAML-declared field mapping on the inbound webhook payload.GET /healthz— liveness probe.GET /metrics— Prometheus self-observability.
Run locally
uv sync --extra dev
uv run nthlayer-override-adapter serve --config override-adapter-config.yaml
See override-adapter-config.yaml.example for a Jira-shaped adapter declaration.
Tests
uv run pytest -q
uv run ruff check src/ tests/
Ecosystem testing conventions: ../nthlayer/docs/testing.md.
License
Apache 2.0.
Metadata
Release files for nthlayer-override-adapter 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nthlayer_override_adapter-0.2.2.tar.gz | 26.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nthlayer_override_adapter-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.0 kB
Release files / nthlayer_override_adapter-0.2.2.tar.gz
| Download URL | nthlayer_override_adapter-0.2.2.tar.gz |
|---|---|
| Size | 26.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc5e115176b0b4d3b81c22592e80965d14e588000b38b2da90ea1ec7a7bf1d66
|
|
BLAKE2b-256 checksum How to use checksums |
4095aee07410563f697c9fef4ab693d446e2e08683652d53e039fce648b2a720
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency logRelease files / nthlayer_override_adapter-0.2.2-py3-none-any.whl
| Download URL | nthlayer_override_adapter-0.2.2-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
639def60ac499d560f13902f3a156e3192242d1135a707abadf59b9fb709fc69
|
|
BLAKE2b-256 checksum How to use checksums |
9982e14cff7250cf2e6c05abaca948dddef5a8ed1b8dd090dcbf7475cca44ef8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency log