Skip to main content

NthLayer override-event sidecar — HTTP → gen_ai.override OTel span bridge

Project description

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 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/

License

Apache 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nthlayer_override_adapter-0.1.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nthlayer_override_adapter-0.1.0-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file nthlayer_override_adapter-0.1.0.tar.gz.

File metadata

File hashes

Hashes for nthlayer_override_adapter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c712fe1332ffe9a1657c1a0750c9abacf91f992c113dd8cb4ead38aad2e28574
MD5 eb35202bce8b895a0208811bf42b9f7b
BLAKE2b-256 96a253b885087b33fd2acdb6ccea193651014ad9eb404d0e46ae071d1f31d4cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for nthlayer_override_adapter-0.1.0.tar.gz:

Publisher: release.yml on rsionnach/nthlayer-override-adapter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nthlayer_override_adapter-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nthlayer_override_adapter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 509c4204af1e3146569a30df57b1ed5a0b5351d0a9ab3b7294de509918e9b569
MD5 4e2ca6cae5b04c208fa571708aae1b19
BLAKE2b-256 b31827e20cb6082547671ce6937d2ad2dd219946f2ba0d351cb18956dbc48a63

See more details on using hashes here.

Provenance

The following attestation bundles were made for nthlayer_override_adapter-0.1.0-py3-none-any.whl:

Publisher: release.yml on rsionnach/nthlayer-override-adapter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page