@booga/bground
v0.2.0
Published
Prompt lookup tool. Agent names a claim type from a fixed list; bground returns the prompt for that claim type. The prompt tells the agent how to check the claim against supplied evidence.
Downloads
431
Readme
bground
For agents that make claims. Before your AI coding agent writes "the parser handles UTF-8" or "we cache for 5 minutes", bground verifies that claim against the evidence the agent cited: a function signature, a test case, a config row, a doc paragraph. If the evidence does not back the claim, bground emits an UNGROUNDED directive that tells the agent which evidence to cite or which claim to drop. The claim taxonomy is closed (16 types); the prompt library that powers grounding evolves continuously via empirical-lift evaluation, so the same bground verify invocation gets stricter at catching ungrounded claims as the corpus matures.
v0.2 note: the directive library shipped in this release is a hand-authored seed corpus -- fixture material that covers the full 16-variant claim taxonomy. An empirically evolved corpus ships in a later release.
Prompt lookup tool. Agent names a claim type from a fixed list; bground returns the prompt for that claim type. The prompt tells the agent how to check the claim against supplied evidence.
Built for agentic loops. Parses a typed claim, takes supplied evidence, writes a verdict on stdout, exits with a discriminating code so the calling agent can branch.
bground verify <claim> check a claim against supplied evidence; exit 0 / 1 / 2 / 64
bground claim-types list the 16 supported claim-type identifiers
bground init scaffold a manifest in the current directory
bground update self-update to the latest published version
bground tail stream recent verdict transcripts
bground explain print taxonomy + exit-code referenceExit code contract: 0 claim grounded, 1 claim NOT grounded, 2 internal error, 64 malformed input.
Install
cargo install --git https://github.com/bvasilenko/bGroundUse
bground verify "file-exists:README.md:README must exist" \
--evidence readme=$(test -f README.md && echo present || echo absent)
# stdout: GROUNDED
# exit: 0
bground verify "value-equals:VERSION:0.1.0" \
--evidence VERSION=0.2.0
# stdout: UNGROUNDED
# exit: 1The <claim> argument is parsed as <claim-type>:<target>:<assertion>. Supply evidence with repeatable --evidence <id>=<value> flags. Optional flags: --manifest <path>, --json, --quiet, --reason <text>.
Claim taxonomy
Closed 16-variant ClaimType enum. The taxonomy is fixed at this version; widening lands in a later version.
| Category | Variants |
|---|---|
| Existence | file-exists, fn-defined, dependency-installed |
| Equality | value-equals, state-equals, fn-signature |
| Runtime | fn-return-type, url-returns, cmd-output-matches, behavior |
| Coherence | coherent-refactor, coherent-migration, coherent-spec-impl, coherent-contract, coherent-test-cover, coherent-dep-upgrade |
bground claim-types prints the full list.
Environment variables
| Variable | Purpose | Default |
|---|---|---|
| BSUITE_UPDATE_BASE_URL | Base URL for the bground update manifest endpoint | placeholder (update will fail without a real endpoint) |
| BSUITE_TRANSCRIPT_DIR | Override the transcript directory path | platform XDG/AppSupport/LocalAppData default |
| BSUITE_TRANSCRIPT_RETENTION_DAYS | Transcript retention window in days | 90 |
| BSUITE_HOST_CONTEXT | CMS adapter host context tag (set by adapters; not for manual use) | l2a |
License
MIT.
