Skip to main content

DBL Core

CI / Tests PyPI version Python >=3.11 Typing: Typed

DBL Core is a deterministic event substrate for the Deterministic Boundary Layer (DBL). It records intent, decisions, and executions as a single ordered stream.

Why DBL Core exists

DBL Core exists to provide a deterministic, audit-stable event substrate for systems that need to separate:

  • intent from decision
  • decision from execution
  • normative history from observational artifacts

It is designed for systems where replayability, auditability, and governance correctness matter more than convenience or performance.

Mental Model

DBL Core maintains a single append-only event stream V:

INTENT → DECISION → (optional) EXECUTION → (optional) PROOF

Only DECISION events are normative. All other data is treated as observational and excluded from digests.

Scope

  • Single-stream event model with deterministic t_index.
  • Canonical serialization and digest for events and behavior logs.
  • Gate decision events (ALLOW or DENY) as explicit Deltas.
  • Embeds kernel traces as observational artifacts with canonical integrity digests.

Non-Goals

  • No policy engine or templates.
  • No execution of user tasks.
  • No orchestration, UX flows, or intelligence.
  • No time, randomness, or I/O side effects.

What DBL Core is not

DBL Core is intentionally minimal. It is not:

  • a workflow engine
  • a policy engine
  • a domain framework
  • an execution orchestrator
  • an LLM wrapper

If you need domain semantics, validation, or verdict logic, implement a domainrunner on top of DBL Core.

Contract-first design

DBL Core behavior is defined by a stable, normative contract.

  • Code must conform to the contract.
  • Tests enforce contract invariants.
  • Domain-specific semantics are explicitly out of scope.

See:

Contract

Install

pip install dbl-core

Requires kl-kernel-logic>=0.5.0 and Python 3.11+.

Public API

  • DblEvent, DblEventKind
  • BehaviorV
  • GateDecision
  • normalize_trace is a canonicalization adapter only

Ordering

Ordering is derived from t_index (position in V). Timestamps and runtime fields are observational only.

Metadata

Release files for dbl-core 0.3.6

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-core 0.3.6
File Size Uploaded
dbl_core-0.3.6.tar.gz 13.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dbl-core 0.3.6
File Interpreter ABI Platform
dbl_core-0.3.6-py3-none-any.whl Python 3 none any Details

Total release size: 25.2 kB

Release files / dbl_core-0.3.6.tar.gz

Download URL dbl_core-0.3.6.tar.gz
Size 13.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dd8bf50788e9f6151468e4d0d73acd5e674a10da4b401e049c6b860c197d1342
BLAKE2b-256 checksum
How to use checksums
4d393686a756510800cf77ddd67048f3d4af4907a0e75a84262a079c329dc32d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.8

Release files / dbl_core-0.3.6-py3-none-any.whl

Download URL dbl_core-0.3.6-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70f5a349af0edd196f7c5ed4327372bac50526a04af263ddf1b1cd132c97d98a
BLAKE2b-256 checksum
How to use checksums
8d9d2083d97dd15cc31084af47f37aef8305c06e6e5bc35c18596b7fa1a4bfd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.8

Release history Release notifications | RSS feed

This release

0.3.6 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

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