Skip to main content

dbl-gateway

Records what was allowed before anything runs.

dbl-gateway puts a deterministic decision layer in front of non-deterministic execution. Every request is recorded as:

INTENT → DECISION → PROOF → EXECUTION

DECISION happens first. Execution stays non-normative. The full chain is replayable.

1.0.0 marks the core boundary-to-decision contract as stable.

For the architecture entry point, see deterministic-boundary-layer.

pytest PyPI Python >=3.11

Run it in 1 minute with Docker, or install the package and connect your own provider.

No API keys required:

docker compose --profile demo up demo

Open http://localhost:8010/ui and click Start Demo.

The demo runs scripted scenarios through the full governance pipeline. Use Manual Intent in the observer to submit your own requests — the gateway is a working runtime, not just a demo harness.

Observer UI

How it works

Every request passes through the same deterministic chain:

INTENT  →  DECISION  →  PROOF  →  EXECUTION

INTENT records what was asked. DECISION records what policy allowed — the only normative event. PROOF records what will be sent to the provider. EXECUTION records what happened.

Execution output never feeds back into policy.

Part of the Deterministic Boundary Layer architecture.

Use your own provider

cp .env.example .env        # add one API key (OpenAI, Anthropic, or Ollama)
docker compose up

One active provider is enough. See .env.example for all options.

The default runtime boundary profile is operator:

  • /ingress/intent, /capabilities, /snapshot, /tail, /status, /surfaces, and /intent-template stay available
  • /ui/* is not exposed

For the boundary contract in detail, see env_contract.md, wire_contract.md, and CAPABILITIES.md.

Install

pip install dbl-gateway

Or from source:

pip install -e .

For a minimal Python helper over the raw HTTP surfaces, use dbl_gateway.client.GatewayClient.

Reference implementation

dbl-gateway is the DBL runtime reference implementation.

INTENT → DECISION → PROOF → EXECUTION

DECISION is normative. Execution is observational. Replay is deterministic under fixed inputs and policy.

Observer UI

Open /ui only when the active boundary profile is demo.

The built-in observer includes the event stream, decision replay, chain verification, a policy inspector for DECISION events, manual intent submission, and the integrated demo controller.

Documentation

Metadata

Release files for dbl-gateway 1.0.1

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

Source distribution (sdist)

Source distribution for dbl-gateway 1.0.1
File Size Uploaded
dbl_gateway-1.0.1.tar.gz 142.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dbl-gateway 1.0.1
File Interpreter ABI Platform
dbl_gateway-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 256.6 kB

Release files / dbl_gateway-1.0.1.tar.gz

Download URL dbl_gateway-1.0.1.tar.gz
Size 142.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f0c9d2e0f93845d898c864698bc28a5ad9e25cd30e384cae119ebd6ca75c00d2
BLAKE2b-256 checksum
How to use checksums
9714a8f7be45b0d0398a6328c35a1b9773639454111f7fd6e68f4f1952a79eab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / dbl_gateway-1.0.1-py3-none-any.whl

Download URL dbl_gateway-1.0.1-py3-none-any.whl
Size 114.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a1aee79847df261c2dcab07734b29456fa7db4b7d93dd1fd00c5a4b48987996
BLAKE2b-256 checksum
How to use checksums
26241e0393cbb3ac7ef705e7558aef7a6e90947d449f64d36df97d54616b1539
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.9.26

2 release files

0.9.11

2 release files

0.9.10

2 release files

0.9.8

2 release files

0.9.7

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.6.0

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.2

2 release files

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