Reference service exposing a governed LLM boundary via DBL and KL
Project description
DBL Boundary Service Demo
Reference UI and service for deterministic boundary evaluation. Each request produces explicit DECISION events in V (append-only). Observations are non-normative.
Quick Start
pip install dbl-boundary-service
dbl-boundary
What it does
Flow:
Input -> Boundary policies -> DECISION -> LLM call -> Observations
DECISION is produced before any LLM call and is the only normative effect in V.
Demo presets
| Preset | Purpose |
|---|---|
| minimal | no policies (testing only) |
| basic_safety | light content safety |
| standard | content safety and rate limiting |
| enterprise | strict content safety and rate limiting |
Dry run (no LLM)
Use "Dry run" to exercise the full boundary flow without calling the LLM.
Observable outputs
The UI exposes the following outputs for each run:
- Outcome and DECISION events
- Request context and Psi definition
- LLM payload and LLM result (when executed)
- Observations (request id, timestamps, trace id)
Observations and timing metrics are non-normative and MUST NOT affect decisions.
API usage
curl -X POST http://127.0.0.1:8787/run \
-H "Content-Type: application/json" \
-d '{
"prompt": "Hello, how are you?",
"pipeline_mode": "standard",
"dry_run": true
}'
Learn more
Deterministic Boundary Layer: https://github.com/lukaspfisterch/deterministic-boundary-layer
This repo is the reference UI/service. The theory and ecosystem map live there.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dbl_boundary_service-0.2.1.tar.gz.
File metadata
- Download URL: dbl_boundary_service-0.2.1.tar.gz
- Upload date:
- Size: 25.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7623054f77c0d186f4b33b97c80891c9f504ee60826736512d9a97e8e9b82d3
|
|
| MD5 |
047fcfab6e1d0e6add9d3e58e66cb39f
|
|
| BLAKE2b-256 |
832c70a89cae8113dbec611da0da94b957f3def87f3cc6d1def7ec0398c86949
|
File details
Details for the file dbl_boundary_service-0.2.1-py3-none-any.whl.
File metadata
- Download URL: dbl_boundary_service-0.2.1-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ae0509322691a3984f99555ccf3b5115755c94d7344b3539a4195acaa9555f9
|
|
| MD5 |
dec9e5e930f03f3d784aa229935df9b9
|
|
| BLAKE2b-256 |
8c3680a3c1a47a166e0b8e47dde5934bf1bc381b3ede4f19661378dc9e69e49d
|