Skip to main content

buildbard

buildbard

Spec-driven TDD orchestrator. Python CLI (buildbard / bard).

Setup

mise run setup

Use

mise run dev          # CLI help
mise run check        # lint + format-check
mise run test         # unit tests
mise run verify       # CLI + integration behavior checks

Where the contract lives

  • specs/constitution.md — invariants, execution interface, phase write boundaries.
  • docs/09-data-model.md — durable state and JSONL schemas.
  • docs/11-error-taxonomy.md — halt tokens and their recovery.

specs/ is the specification record: epics, PRDs, issues, and the ledger. Older epics cite retired docs/ files; the contracts they describe live in the files above.


## Automatic phase timeout

Automatic Tasks preparation and micro phases have a one-hour (3,600-second)
agent timeout, including phases launched through `bard run` and review repair.
Set `BARD_PHASE_TIMEOUT` to a positive integer number of seconds to override it:

```sh
BARD_PHASE_TIMEOUT=2400 bard micro run --task TSK-013-01 --unpark

Invalid values fail before an agent starts or its handover changes. An explicit Python-call timeout takes precedence. Standalone non-micro commands retain their existing timeouts; verification and human-review gates remain required.

An explicit micro run --task … --unpark retry excludes commits rejected by the committed RED/GREEN proof gates. It retains the task's earlier eligible RED, including across an operator repair, and reruns GREEN instead of fabricating another failing test. Missing or mismatched failure history halts recovery. The retry still needs fresh accepted-commit checks, JUDGE, and required human review. Ordinary queued-task resume remains conservative.

Missing proof on a parked DIRECT task

A required-review DIRECT task without a resolved Test target stays parked. Do not clear its checkpoint or substitute an unrelated passing test. Commit an additive amendment: one meaningful Test target and its file appended to Files. Keep the remaining card unchanged, including its human oracle and acceptance. With a clean tree, explicitly request the repair at the expected commit:

bard review repair-contract --task TSK-013-01 --expected-head "$(git rev-parse HEAD)"
bard review run --task TSK-013-01

Repair requires a nonempty passing target check and human approval of the additive contract. It preserves the original checkpoint in the committed ledger and keeps the whole-task review baseline. A separate fresh check, JUDGE and human task sign-off remain required. Existing approvals, scope removal, changed criteria and dirty/stale inputs are refused; ordinary resume never adopts a changed contract. If checkpoint persistence is interrupted after the repair ledger commit, rerun the explicit repair at the current HEAD without making further project edits.

Explicit repair after a test-defect JUDGE

For an unapproved running required-review TDD task, a committed JUDGE header must identify task, verdict: revert_red, classification: test_defect, red (the original valid RED), and head (its immediate GREEN parent). After authorization, leave repairs uncommitted, within the unchanged card's declared files and handover.md, then run:

bard review repair-judge --task TSK-001-01 --expected-head "$(git rev-parse HEAD)"
bard review run --task TSK-001-01

This opt-in commits repairs with hooks and durable original checkpoint/RED/JUDGE provenance, executes a nonempty native check at the repair commit, then parks for fresh JUDGE and the normal whole-task human gate. It never completes or approves the task. RED roles, failing-proof rules, rollback, ordinary resume, and human --repaired semantics do not change. The full card/baseline must match; history is bounded to 100 linear task commits, and only recognized task ledger transitions may follow JUDGE. Unrelated dirty files, runner-state edits and ambiguous history are refused. Failed checks preserve the repair commit; retry the command at that HEAD with clean inputs. Further edits after a failed repair require inspection, not automatic adoption. No reset or history deletion occurs.

Metadata

Release files for buildbard 1.22.0

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

Source distribution (sdist)

Source distribution for buildbard 1.22.0
File Size Uploaded Provenance Actions
buildbard-1.22.0.tar.gz 805.9 kB Without provenance Details for buildbard-1.22.0.tar.gz

Built distribution (wheel)

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

Total release size: 987.6 kB

Release files / buildbard-1.22.0.tar.gz

Download URL buildbard-1.22.0.tar.gz
Size 805.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2edf6baf46c9d8ab74ffdf8d3c4b9e6d7ac85180654023393889a18289288113
BLAKE2b-256 checksum
How to use checksums
aa2c55f73d70fbd41e97a1cd8d401edce29fedbbfea0a9764e984bf66059eb16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / buildbard-1.22.0-py3-none-any.whl

Download URL buildbard-1.22.0-py3-none-any.whl
Size 181.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72fc6a2c958de1b5407079c848d6e7d9f1e5566a0403a5e0f42fd750ea72f883
BLAKE2b-256 checksum
How to use checksums
21ff6f0a344f61dfcc996a837af9f09b917ab4d7eb620a52112bc389cdda7e0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for buildbard 1.22.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

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