Skip to main content

Deterministic Boundary Layers core substrate on KL Kernel Logic

Project description

DBL Core

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

Ordering

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

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

dbl_core-0.3.1.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

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

dbl_core-0.3.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file dbl_core-0.3.1.tar.gz.

File metadata

  • Download URL: dbl_core-0.3.1.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for dbl_core-0.3.1.tar.gz
Algorithm Hash digest
SHA256 995e3c1c245206e31c22ca88d30e5ca3347546e559aa30061a25e1a983b0066c
MD5 3839c6a3d785e454a30f94f91680fe81
BLAKE2b-256 181c5d423bc9b22450e93a40eebdabe0bbfcbccc9322c2c489f3a92843c3eca0

See more details on using hashes here.

File details

Details for the file dbl_core-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: dbl_core-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for dbl_core-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cac3ed02df185e2ca7de9030fe3af1a43a94df9953dcf75a7bc8bcbc5fbacb52
MD5 b374291d187964061b008599d33de7f1
BLAKE2b-256 42385022199335c11a456b91ff82ed1391fdb5505c971e023043b2fb5712223e

See more details on using hashes here.

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