Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

DecisionBound

Evidence-grounded engineering decisions and bounded agent workflows.

CI Release Platforms Docs Python 3.11+ Apache-2.0 Status: alpha Cite

Documentation · Quickstart · Interactive concept demo · CarryBench · Roadmap · Issues

DecisionBound is a local-first Python library and CLI for one narrow question: when a human has approved an engineering decision in one repository, what may an agent do with it in another? It keeps the decision together with the file that justifies it (path and SHA-256), requires a separate approval step, and answers apply, translate, abstain or escalate for a target repository using explicit, deterministic rules. It then compiles the approved context within a token budget.

It is for developers building or running coding agents who want decisions to carry authority, evidence and limits, and for researchers studying when remembered decisions should not transfer. It is not an agent, a model, a code generator or a hosted service. The default path makes no model call, needs no account or API key and no network request.

Experimental alpha, version 0.13.0a1. The commands below work as shown. The transfer policy is a conservative rule set and has not been shown to beat simple baselines (see Status). Nothing here is production certified or independently security reviewed. Use the source installation below. Published packages are listed on PyPI when available. There is no editor Marketplace release.

Install

Needs Python 3.11 or newer and Git.

git clone https://github.com/ahmedjawedaj/decisionbound.git
cd decisionbound
python -m venv .venv && source .venv/bin/activate   # Windows PowerShell: .venv\Scripts\Activate.ps1
python -m pip install .
dbound --help

In the verification run the install took about 7 seconds. Add '.[web]' instead of . only if you want the local web interface (dbound serve).

60-second demo

Run this in a bash or zsh shell, from an empty directory outside the clone, for example after cd .. (on Windows use Git Bash or WSL). It creates three tiny projects, records one decision with its evidence, approves it, and shows how the policy treats each project. DBOUND_HOME points the state at a throwaway folder, so nothing is written to your real ~/.decisionbound. The script took about 3.5 seconds in the verification run.

mkdir dbound-demo && cd dbound-demo
export DBOUND_HOME="$PWD/state"   # throwaway state, nothing is written to ~/.decisionbound
mkdir -p shop/docs/adr blog acme

cat > shop/docs/adr/0001-thin-handlers.md <<'EOF'
# Thin handlers

## Context
HTTP code that held business rules was hard to test.

## Decision
Keep request handlers thin and put business rules in a separate module.
EOF

# 1. Record a decision with its evidence, then approve it as a human reviewer.
dbound init --path shop --name shop --owner ahmad --technologies python,django
dbound decision discover docs/adr/0001-thin-handlers.md --path shop --scope personal
ID=$(dbound decision list --path shop | python -c 'import json,sys; print(json.load(sys.stdin)[0]["decision_id"])')
dbound decision approve "$ID" --revision 1 --path shop

# 2. Ask what each repository may do with it.
dbound transfer --path shop                  # same project: apply
dbound init --path blog --name blog --owner ahmad --technologies python,flask
dbound transfer --path blog                  # same owner, compatible: translate
dbound init --path acme --name acme --owner someone-else --technologies python
dbound transfer --path acme                  # different owner: abstain

# 3. Compile the budgeted context a task would receive.
dbound prepare "Add a comments endpoint" --path blog --tokens 1200

Each transfer prints what that repository may do with the approved decision (identifiers differ on every run, and sha256 is the hash of the ADR file above):

shop, the project the decision came from:

[
  {
    "action": "apply",
    "decision_id": "dec_8727fde99ffe4d6fb90676790c251c41",
    "evidence_sha256": "d39cab7769e0d10b615f997e4ebf82c3c911fb89b74bbcf4f2d247fe3cdbc518",
    "reason": "Approved decision from the same project"
  }
]

blog, a different project with the same owner and compatible technology:

[
  {
    "action": "translate",
    "decision_id": "dec_8727fde99ffe4d6fb90676790c251c41",
    "evidence_sha256": "d39cab7769e0d10b615f997e4ebf82c3c911fb89b74bbcf4f2d247fe3cdbc518",
    "reason": "Personal principle is compatible but needs target-repository adaptation"
  }
]

acme, a project with a different owner:

[
  {
    "action": "abstain",
    "decision_id": "dec_8727fde99ffe4d6fb90676790c251c41",
    "evidence_sha256": "d39cab7769e0d10b615f997e4ebf82c3c911fb89b74bbcf4f2d247fe3cdbc518",
    "reason": "Personal decision owner differs from target owner"
  }
]

prepare then compiles the context a task in blog would receive, with the evidence hash attached:

{
  "estimated_tokens": 24,
  "items": [
    {
      "key": "dec_8727fde99ffe4d6fb90676790c251c41",
      "priority": 10,
      "protected": false,
      "source": "docs/adr/0001-thin-handlers.md#sha256=d39cab7769e0d10b615f997e4ebf82c3c911fb89b74bbcf4f2d247fe3cdbc518",
      "text": "Keep request handlers thin and put business rules in a separate module."
    }
  ],
  "max_tokens": 1200,
  "omitted_keys": [],
  "task": "Add a comments endpoint"
}

What this shows: a decision is evidence plus a human approval, and reuse across repositories is an explicit, explainable outcome that defaults to abstain. The decision is declared --scope personal so that it can leave its own project. A project-scoped decision never transfers, and decision approve fails if the evidence file changed since discovery. What it does not show: whether the decision is good, or whether a model follows it. translate means compatible but needs adapting by someone, and DecisionBound does not rewrite anything in the target repository.

Notes from running it. approve --revision 1 returns revision 2: discovery creates revision 1 as a candidate and approval records the next one. dbound doctor --path . --strict prints "write_consent": false as an informational check, because code writes always need a separate consent. It does not mean setup failed, and "ready": true is what counts.

Next: the Quickstart registers your own repository with dbound setup, dbound doctor and your own ADRs. An ADR needs nonempty ## Context and ## Decision sections to be discovered.

Status and evidence

  • Alpha. The full Python test suite runs in CI on Linux, macOS and Windows. Some integrations (real Docker sandbox, real browser, editor host) are opt-in and skipped in a plain local run. A skipped test is not a pass. Check the Actions results for the commit you use.
  • No demonstrated benefit yet. CarryBench is the benchmark built to test this idea. Its real-repository tier has 66 cases from 50 permissively licensed public repositories, plus a 35-case holdout whose labels were frozen before any system was scored on it. All labels come from two blind LLM annotators and no human has labelled any case, so scores measure agreement with that annotator pair, not correctness. On both sets DecisionBound's shipped policy behaves exactly like always abstaining in its default setting (0.348 and 0.371 accuracy). Its best setting scores 0.409 and 0.514, with intervals that overlap always abstaining. A simple rule that escalates authority topics and otherwise compares the target's strongest evidence scores higher (0.576 and 0.771), partly because it mirrors a rule in the annotation guide. On the first set, two guide-free language model runs score 0.59 and 0.68 but escalated to a human in only 1 and 3 of the 11 cases that needed one. These are small, unvalidated first numbers. They do not rank any product. See the dataset card, baselines, DecisionBound results and the holdout results.
  • Synthetic fixtures under benchmarks/transferbench/ test the policy's logic against handwritten labels. They say nothing about real repositories.
  • Boundaries. Local single-device coordination only, no distributed consensus. Worker containment is not a security sandbox. The web interface and VS Code extension are loopback and read-only or review-only. MCP is a read-only stdio server. Provider calls need explicit configuration and consent. Read SECURITY.md before using it on a sensitive repository.

What is in the box

Area What exists Boundary
Decision records ADR discovery, evidence hashes, approval revisions, transfer policy Retrieved text never grants authority
Context Budgeted capsules with protected items and source pointers A baseline selector, not a proven ranking system
Agent execution Deterministic no-model demo, strict read-only tool contracts, optional provider adapters Live providers are unverified
Coding and review Patch validation, disposable worktrees, acceptance contracts, human-reviewed export No automatic apply, merge or push
Orchestration Local task graphs, leases, recovery, SQLite state backup and restore Single device
Surfaces CLI, Python SDK, loopback web UI, VS Code extension, MCP server See each guide

Guides: CLI reference, Python SDK, setup and diagnostics, agent execution, coding agents, orchestration, MCP, production readiness, API reference.

flowchart LR
    CLI["CLI / Python SDK"] --> Services["Project-bound services"]
    Web["Loopback web UI / API"] --> Services
    Editor["Read-only VS Code extension"] --> Web
    MCP["Read-only MCP stdio"] --> Services
    Services --> Evidence["Decision evidence & transfer policy"]
    Services --> Context["Budgeted context compiler"]
    Services --> Workflows["Local workflow journal & supervisor"]
    Workflows --> Verify["Host-side receipt checks"]
    Evidence --> State[("Private SQLite state")]
    Workflows --> State

Examples and development

From the repository root after installing, examples/ has four offline scripts (custom_policy.py, mock_readonly_agent.py, mock_patch_agent.py, mock_repair_agent.py) and three workflow manifests you can check with dbound workflow validate --file examples/workflow/repository-review.yaml. Mock results show lifecycles and integrity checks, never real test success.

python -m pip install -e '.[test,web,docs,release,mcp]'
python -m pytest -q --cov=decisionbound --cov-fail-under=80
python scripts/check_publication.py
python scripts/generate_api_docs.py && python scripts/build_site.py
python scripts/verify_docs.py && python scripts/check_docs.py

tests/integration/test_docs_quickstart.py runs the demo above from the installed package and compares its output with the blocks pasted here, so this README cannot drift from the CLI. Extension checks are in apps/vscode (npm run check && npm test). The public file list is PUBLIC_CONTENT.json, see PUBLICATION_POLICY.md.

DecisionBound reads decision records rather than authoring them. It pairs with existing ADR tooling:

  • adr-tools creates and links ADRs from the command line. Its default template uses the ## Context and ## Decision headings that dbound decision discover expects.
  • MADR is a Markdown ADR template. Its default headings differ, so include ## Context and ## Decision sections in records you want DecisionBound to discover.
  • Log4brains manages and publishes ADRs as a browsable site.
  • adr.github.io collects ADR background, templates and tools.

DecisionBound is not the first tool or benchmark in this space. These are the closest items found in a primary-source review on 2026-11-16, listed so you can compare. Descriptions are brief and may be incomplete.

  • Mneme keeps decision records with status, priority and scope for coding agents, and ships a small applicability benchmark.
  • archgate turns architecture decisions into checks that can run in CI.
  • ManyIH-Bench tests how models resolve conflicting instructions across many priority tiers.
  • Memory Transfer Learning studies how memories move across domains in coding agents, including cases where they hurt.
  • VibeMemBench compares memory systems for coding agents on real repositories.
  • COUNTERMEM studies verified corrections and when an agent should skip memory.

What this project explores is cross-repository reuse of human-approved decisions with an explicit apply, translate, abstain or escalate response. CarryBench is an early, AI-labelled attempt to evaluate that combination; its current results do not establish a benefit. The separate TransferBench fixtures are synthetic and cannot support outside claims.

For agent hosts, the read-only server follows the Model Context Protocol and uses the official MCP Python SDK through the optional mcp extra.

Contributing and support

  • Follow CONTRIBUTING.md for setup, scoped changes, verification and pull requests.
  • Use Issues for reproducible bugs and focused proposals. Include the version/commit, OS and a minimal sanitized reproduction.
  • Use Discussions for usage and architecture questions.
  • Use private vulnerability reporting for sensitive security findings.
  • Review GOVERNANCE.md and the Code of Conduct. The latest alpha/main checkpoint is maintained without a stable-release or response-time SLA.

License and citation

Original DecisionBound material is licensed under Apache License 2.0. See NOTICE; third-party dependencies and datasets retain their own terms.

Citation

If you use the software, cite the version or commit using CITATION.cff. GitHub's Cite this repository feature reads that metadata. The source repository does not imply a DOI, peer-reviewed result, signed production release or Marketplace distribution. Check the package index and release pages for distribution availability.

@software{jawed2026decisionbound,
  author  = {Jawed, Ahmed},
  title   = {{DecisionBound}: Evidence-grounded engineering judgment for {AI} agents},
  year    = {2026},
  version = {0.13.0a1},
  license = {Apache-2.0},
  url     = {https://github.com/ahmedjawedaj/decisionbound},
  note    = {Experimental alpha. Please also record the commit you used.}
}

Metadata

Release files for decisionbound 0.13.0a1

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

Source distribution (sdist)

Source distribution for decisionbound 0.13.0a1
File Size Uploaded Provenance Actions
decisionbound-0.13.0a1.tar.gz 167.8 kB With provenance Details for decisionbound-0.13.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for decisionbound 0.13.0a1
File Interpreter ABI Platform Actions
decisionbound-0.13.0a1-py3-none-any.whl Python 3 none any Details for decisionbound-0.13.0a1-py3-none-any.whl

Total release size: 355.9 kB

Release files / decisionbound-0.13.0a1.tar.gz

Download URL decisionbound-0.13.0a1.tar.gz
Size 167.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fa1f387be2f17c4e1b156ca34849058b202de1c792c851772e7e2cd5da0c2c80
BLAKE2b-256 checksum
How to use checksums
7b5c9f80b16c92e87f09fe15de73af3cf5ae62c094c058ad87f8d4b3a00e9c40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / decisionbound-0.13.0a1-py3-none-any.whl

Download URL decisionbound-0.13.0a1-py3-none-any.whl
Size 188.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0832888e0a33467c8e7f4bc2491608511925bb138e26cc692b8e5c7ef2db57be
BLAKE2b-256 checksum
How to use checksums
5d4711a6e577c071de8bcfda05ae5261b932b8d9a046c4c548e795ee6310c9c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for decisionbound 0.13.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for decisionbound-0.13.0a1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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