Skip to main content

nthlayer-override-adapter

Standalone HTTP sidecar that accepts human-override events and emits them as nthlayer.reversal OTel log records (OpenSRM Addendum A1 §4.0, §4.2; a span before 0.4.0, see docs/upgrading-0.4.md; formerly gen_ai.override). 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 nthlayer.reversal log records out.

Endpoints

  • POST /api/v1/overrides — canonical OverrideEvent JSON in.
  • POST /api/v1/overrides/batch — {overrides: [...]} with last-in-array-wins on duplicate decision_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.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nthlayer-override-adapter 0.4.0
File Size Uploaded Provenance Actions
nthlayer_override_adapter-0.4.0.tar.gz 37.5 kB With provenance Details for nthlayer_override_adapter-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nthlayer-override-adapter 0.4.0
File Interpreter ABI Platform Actions
nthlayer_override_adapter-0.4.0-py3-none-any.whl Python 3 none any Details for nthlayer_override_adapter-0.4.0-py3-none-any.whl

Total release size: 60.3 kB

Release files / nthlayer_override_adapter-0.4.0.tar.gz

Download URL nthlayer_override_adapter-0.4.0.tar.gz
Size 37.5 kB
Tags Source
SHA-256 checksum
How to use checksums
13301c13907b2b6b838ca82cffe06df694260353be3a3fbc09421f536c414703
BLAKE2b-256 checksum
How to use checksums
06a1ed863f9fbece1c905aec16ade44a0bbb53634d1dc6046d717e1a4623c825
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 3, 2026.

Transparency log

Release files / nthlayer_override_adapter-0.4.0-py3-none-any.whl

Download URL nthlayer_override_adapter-0.4.0-py3-none-any.whl
Size 22.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
285ae92de8f476bc28874ef8510bc3ee06366aa888979434ebe251371ad40a63
BLAKE2b-256 checksum
How to use checksums
536cddadae2455efe325bf46341f8f6eb260ff01b5b1a3e7bc3e62aef95eaef5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 3, 2026.

Transparency log

Security for nthlayer-override-adapter 0.4.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nthlayer_override_adapter-0.4.0.tar.gz

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 Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page