Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions:
contents: read
env:
CARGO_TERM_COLOR: never
TAG: v0.15.0
TAG: v0.15.1

jobs:
bench:
Expand Down
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ All notable changes to this project are documented here. The format follows

## Unreleased

## 0.15.1 - 2026-11-19

0.15.1 adds release channels for the MCP server: `server.json` for the official MCP Registry with a workflow that
publishes it only when started by hand, docs/mcp.md with the setup for each MCP client, and cargo-binstall metadata
(untested: the crates are not on crates.io). A reward without `src` on a persona with `reward_from` is still refused, and
the error now names the missing field and shows a line that is accepted. `bench/agentdojo/experiments/rerun.sh` stops at
once when the arm-A strands are not extracted. The documentation covers habits that yield under `on_conflict: yield` and
what mapping raw task success onto praise and criticism does to learned traits. Apart from the message of the
missing-`src` error, every document is byte for byte as 0.15.0 writes it (the P0 corpus: 653 recorded outputs; the 96
that carry the message equal their records once it is put back into the recorded words, and
`bench/individuality/p0.py check` reports them apart).

Upgrade notes:
- `probbit live`, `persona turn` and `persona replay` on a persona with `reward_from`: a reward without `src` still exits
2, and the error text changes: it names the missing field `src`, lists the kinds `reward_from` allows and shows one
accepted line. A script that matches the old error text needs the new words.
- `bench/agentdojo/experiments/rerun.sh` exits 2 with the exact `tar xzf tables/strands-A.tar.gz` command when
`strands/A` does not hold all 726 arm-A strands; before, E5 failed 0/726 and the tables differed.

### Added

- `server.json` for the official MCP Registry (the name is the npm package's `mcpName`; the package `probbit`, stdio,
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ cff-version: 1.2.0
message: "If you use probbit in research or a product, please cite it as below."
title: "probbit: an exact, auditable stance layer beside language-model agents"
type: software
version: 0.15.0
date-released: 2026-11-18
version: 0.15.1
date-released: 2026-11-19
license: Apache-2.0
repository-code: "https://github.com/BitmapAsset/probbit"
url: "https://github.com/BitmapAsset/probbit"
Expand Down
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver = "2"
members = ["probbit-nostd", "probbit-core", "probbit-ir", "probbit-decide", "probbit-persona", "probbit-cli", "probbit-wasm"]

[workspace.package]
version = "0.15.1-dev"
version = "0.15.1"
edition = "2021"
license = "Apache-2.0"
rust-version = "1.78"
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ curl -fsSL https://raw.githubusercontent.com/BitmapAsset/probbit/main/install.sh
# 2. Put that directory on PATH for this shell. No output.
export PATH="$HOME/.local/bin:$PATH"

# 3. Expect "probbit 0.15.0" (or later). Exit 0.
# 3. Expect "probbit 0.15.1" (or later). Exit 0.
probbit --version

# 4. Fetch an example persona (a tutor called Pip). No output; tutor.yaml appears.
Expand Down Expand Up @@ -104,7 +104,7 @@ The MCP server client by client (setup, the 10 tools, two worked examples, troub
| CLI event receipt | [explain one logged turn](docs/CHEATSHEET.md#probbit-explain-strand---event-n) | `probbit explain run.strand --event 2` → inputs, before/after stance, binding habits, chain and `recomputes` or `differs`; add `--json` |
| MCP server (Claude Code, Codex, Cursor, mcporter, any MCP client) | `claude mcp add probbit -- probbit mcp` ([docs/agents.md](docs/agents.md)) | step 8 above: 10 tools, `probbit_decide` … `probbit_live_verify` |
| OpenClaw plugin | `openclaw plugins install npm:probbit-stance --accept-capabilities` | `openclaw plugins inspect probbit-stance --runtime --json` lists both hooks ([plugins/openclaw](plugins/openclaw/README.md)) |
| npm | `npm i -g probbit` (Node 18+; downloads the prebuilt binary, SHA-256 checked) | `probbit --version` → `probbit 0.15.0` |
| npm | `npm i -g probbit` (Node 18+; downloads the prebuilt binary, SHA-256 checked) | `probbit --version` → `probbit 0.15.1` |
| Python | `curl -fsSLO https://raw.githubusercontent.com/BitmapAsset/probbit/main/python/probbit.py`: a stdlib-only wrapper around the CLI (decide, run, evaluate, persona, live; typed errors); not on PyPI | `python3 -c 'import probbit; s=probbit.persona_init("tutor.yaml", seed=2); print(probbit.persona_turn("tutor.yaml", s, {"sentiment":"negative"})["stance"]["line"])'` → `Stance: go easy on the jokes; …` |
| Agent SDK adapters | Claude Code hooks, OpenAI Agents SDK, LangChain, Vercel AI SDK ([docs/adapters.md](docs/adapters.md)) | in a clone: `python3 python/test_host.py` (Python hosts) or `node --test examples/node/stance-host.test.mjs` |
| Browser (wasm) | in a clone, with Rust and `rustup target add wasm32-unknown-unknown`: `playground/build.sh` | `ls -l playground/probbit.wasm`, then open `playground/index.html` |
Expand Down Expand Up @@ -216,7 +216,7 @@ modes"). The tables are in [BENCHMARKS.md](BENCHMARKS.md).

## Install

One line, no sudo, the archive's SHA-256 checked before anything is installed. The current release is v0.15.0.
One line, no sudo, the archive's SHA-256 checked before anything is installed. The current release is v0.15.1.

| how | command |
|---|---|
Expand Down Expand Up @@ -663,7 +663,7 @@ numbers), and uploads the JSON report as an artifact:

```yaml
- uses: actions/checkout@v7
- uses: BitmapAsset/probbit@v0.15.0 # the action needs probbit 0.9.0 or later
- uses: BitmapAsset/probbit@v0.15.1 # the action needs probbit 0.9.0 or later
with:
persona: agent/policy.yaml
props: agent/rules.json
Expand All @@ -679,7 +679,7 @@ numbers), and uploads the JSON report as an artifact:
| `strands` | | strands to replay, one path or glob per line; a glob that matches nothing fails the check |
| `seeds` | `0-99` | the individuals |
| `depth` | probbit's (8) | events per fuzzed script |
| `version` | `latest` | the release `install.sh` installs (`v0.15.0`, ...) |
| `version` | `latest` | the release `install.sh` installs (`v0.15.1`, ...) |
| `binary` | | a probbit binary to use instead (one built earlier in the job); overrides `version` |
| `allow-unproven` | `false` | `true`: exit 3 is a warning and the job passes |
| `json-artifact` | `true` | upload `probbit-check.json` (`actions/upload-artifact@v4`, the only action it uses) |
Expand Down
2 changes: 1 addition & 1 deletion REPRODUCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ place to report what you got. An outside reproduction (or a disagreement) is wor
```sh
npm i -g probbit # or: curl -fsSL https://raw.githubusercontent.com/BitmapAsset/probbit/main/install.sh | sh
git clone https://github.com/BitmapAsset/probbit && cd probbit
probbit version # probbit 0.15.0
probbit version # probbit 0.15.1

# a rule held by construction over 100 individuals (README, "Test a character")
probbit persona prove examples/persona/tutor.yaml --seeds 0-99 --never '{when: {sentiment: negative}, then: {humour: {at_most: light}}}'
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ inputs:
description: Events per fuzzed script, 1 to 64 (empty = probbit's default, 8).
default: ''
version:
description: The probbit release to install with install.sh (latest, or a tag such as v0.15.0). probbit check needs 0.9.0 or later.
description: The probbit release to install with install.sh (latest, or a tag such as v0.15.1). probbit check needs 0.9.0 or later.
default: latest
binary:
description: Path to a probbit binary to use instead of installing one (for example one built earlier in the job). Overrides version.
Expand Down
2 changes: 1 addition & 1 deletion docs/CHEATSHEET.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# probbit cheat sheet (0.15.0)
# probbit cheat sheet (0.15.1)

The CLI's own help and docs, shortened; `probbit <command> --help` has every flag.

Expand Down
2 changes: 1 addition & 1 deletion docs/persona.md
Original file line number Diff line number Diff line change
Expand Up @@ -1576,7 +1576,7 @@ credits every learned trait with the level it took, so a reward aimed at one tra
demo below, praise for short answers also raised the light joke the tutor was making): learn the traits the feedback judges.

**The strand.** `--strand FILE` logs the life. Line 1 is the header, compact JSON:
`{"probbit_strand":1,"engine":"probbit 0.15.0","persona":{"name","version","digest"},"seed":N,"state":{...},"document":{...}}`,
`{"probbit_strand":1,"engine":"probbit 0.15.1","persona":{"name","version","digest"},"seed":N,"state":{...},"document":{...}}`,
with the initial state as canonical JSON (one individual has one header, whether it comes from `init` or from a state file) and
the persona document in its own key order (the compiled program, and `engine.program` with it, follows the document's key order).
Then one line per event, canonical JSON: `{"inputs":{...,"elapsed_hours":h},"n":k,"prev":"sha256:...","stance":"sha256:...",
Expand Down
2 changes: 1 addition & 1 deletion docs/probbit.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH PROBBIT 1 "" "probbit 0.15.1-dev" "probbit manual"
.TH PROBBIT 1 "" "probbit 0.15.1" "probbit manual"
.SH NAME
probbit \- a virtual probabilistic (p\-bit) processor: joint decisions under hard rules, with gated odds
.SH SYNOPSIS
Expand Down
6 changes: 3 additions & 3 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# and installs probbit.exe. No administrator rights needed.
#
# irm https://raw.githubusercontent.com/BitmapAsset/probbit/main/install.ps1 | iex
# & ([scriptblock]::Create((irm https://raw.githubusercontent.com/BitmapAsset/probbit/main/install.ps1))) -Version v0.15.0
# & ([scriptblock]::Create((irm https://raw.githubusercontent.com/BitmapAsset/probbit/main/install.ps1))) -Version v0.15.1
#
# Parameters (each also read from the environment variable named after it):
# -Version PROBBIT_VERSION release tag, e.g. v0.15.0 (default: the latest release)
# -Version PROBBIT_VERSION release tag, e.g. v0.15.1 (default: the latest release)
# -InstallDir PROBBIT_INSTALL_DIR where probbit.exe goes (default: $HOME\.local\bin)
# -DownloadBase PROBBIT_DOWNLOAD_BASE the archive is fetched from <DownloadBase>/<tag>/probbit-<tag>-<target>.zip
# (default: https://github.com/BitmapAsset/probbit/releases/download); needs -Version
Expand Down Expand Up @@ -37,7 +37,7 @@ $customBase = [bool]$DownloadBase
if (-not $DownloadBase) { $DownloadBase = "https://github.com/$Repo/releases/download" }
$DownloadBase = $DownloadBase.TrimEnd('/')
if (-not $Version) {
if ($customBase) { throw 'probbit install: set -Version (or PROBBIT_VERSION), e.g. v0.15.0, together with -DownloadBase' }
if ($customBase) { throw 'probbit install: set -Version (or PROBBIT_VERSION), e.g. v0.15.1, together with -DownloadBase' }
$Version = (Invoke-RestMethod -UseBasicParsing -Uri "https://api.github.com/repos/$Repo/releases/latest").tag_name
if (-not $Version) { throw 'probbit install: no published release found (set -Version)' }
}
Expand Down
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# probbit installer: fetches a prebuilt release archive, checks its SHA-256 and installs the `probbit` binary. Never uses sudo.
#
# curl -fsSL https://raw.githubusercontent.com/BitmapAsset/probbit/main/install.sh | sh
# curl -fsSL https://raw.githubusercontent.com/BitmapAsset/probbit/main/install.sh | PROBBIT_VERSION=v0.15.0 sh
# curl -fsSL https://raw.githubusercontent.com/BitmapAsset/probbit/main/install.sh | PROBBIT_VERSION=v0.15.1 sh
#
# Environment (all optional):
# PROBBIT_VERSION release tag, e.g. v0.15.0 (default: the latest release)
# PROBBIT_VERSION release tag, e.g. v0.15.1 (default: the latest release)
# PROBBIT_INSTALL_DIR where `probbit` goes (default: ~/.local/bin; never overwrites a system-wide install implicitly)
# PROBBIT_DOWNLOAD_BASE the archive is fetched from $PROBBIT_DOWNLOAD_BASE/<tag>/probbit-<tag>-<target>.tar.gz
# (default: https://github.com/BitmapAsset/probbit/releases/download); needs PROBBIT_VERSION
Expand Down Expand Up @@ -103,7 +103,7 @@ main() {

version="${PROBBIT_VERSION:-}"
if [ -z "$version" ]; then
[ -z "${PROBBIT_DOWNLOAD_BASE:-}" ] || die "set PROBBIT_VERSION (e.g. v0.15.0) together with PROBBIT_DOWNLOAD_BASE"
[ -z "${PROBBIT_DOWNLOAD_BASE:-}" ] || die "set PROBBIT_VERSION (e.g. v0.15.1) together with PROBBIT_DOWNLOAD_BASE"
version=$(latest_tag) || exit 1
[ -n "$version" ] || die "no published release found (set PROBBIT_VERSION)"
fi
Expand Down
14 changes: 7 additions & 7 deletions llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ curl -fsSL https://raw.githubusercontent.com/BitmapAsset/probbit/main/install.sh
# 2. Put that directory on PATH for this shell. No output.
export PATH="$HOME/.local/bin:$PATH"

# 3. Expect "probbit 0.15.0" (or later). Exit 0.
# 3. Expect "probbit 0.15.1" (or later). Exit 0.
probbit --version

# 4. Fetch an example persona (a tutor called Pip). No output; tutor.yaml appears.
Expand Down Expand Up @@ -116,7 +116,7 @@ The MCP server client by client (setup, the 10 tools, two worked examples, troub
| CLI event receipt | [explain one logged turn](docs/CHEATSHEET.md#probbit-explain-strand---event-n) | `probbit explain run.strand --event 2` → inputs, before/after stance, binding habits, chain and `recomputes` or `differs`; add `--json` |
| MCP server (Claude Code, Codex, Cursor, mcporter, any MCP client) | `claude mcp add probbit -- probbit mcp` ([docs/agents.md](docs/agents.md)) | step 8 above: 10 tools, `probbit_decide` … `probbit_live_verify` |
| OpenClaw plugin | `openclaw plugins install npm:probbit-stance --accept-capabilities` | `openclaw plugins inspect probbit-stance --runtime --json` lists both hooks ([plugins/openclaw](plugins/openclaw/README.md)) |
| npm | `npm i -g probbit` (Node 18+; downloads the prebuilt binary, SHA-256 checked) | `probbit --version` → `probbit 0.15.0` |
| npm | `npm i -g probbit` (Node 18+; downloads the prebuilt binary, SHA-256 checked) | `probbit --version` → `probbit 0.15.1` |
| Python | `curl -fsSLO https://raw.githubusercontent.com/BitmapAsset/probbit/main/python/probbit.py`: a stdlib-only wrapper around the CLI (decide, run, evaluate, persona, live; typed errors); not on PyPI | `python3 -c 'import probbit; s=probbit.persona_init("tutor.yaml", seed=2); print(probbit.persona_turn("tutor.yaml", s, {"sentiment":"negative"})["stance"]["line"])'` → `Stance: go easy on the jokes; …` |
| Agent SDK adapters | Claude Code hooks, OpenAI Agents SDK, LangChain, Vercel AI SDK ([docs/adapters.md](docs/adapters.md)) | in a clone: `python3 python/test_host.py` (Python hosts) or `node --test examples/node/stance-host.test.mjs` |
| Browser (wasm) | in a clone, with Rust and `rustup target add wasm32-unknown-unknown`: `playground/build.sh` | `ls -l playground/probbit.wasm`, then open `playground/index.html` |
Expand Down Expand Up @@ -228,7 +228,7 @@ modes"). The tables are in [BENCHMARKS.md](BENCHMARKS.md).

## Install

One line, no sudo, the archive's SHA-256 checked before anything is installed. The current release is v0.15.0.
One line, no sudo, the archive's SHA-256 checked before anything is installed. The current release is v0.15.1.

| how | command |
|---|---|
Expand Down Expand Up @@ -675,7 +675,7 @@ numbers), and uploads the JSON report as an artifact:

```yaml
- uses: actions/checkout@v7
- uses: BitmapAsset/probbit@v0.15.0 # the action needs probbit 0.9.0 or later
- uses: BitmapAsset/probbit@v0.15.1 # the action needs probbit 0.9.0 or later
with:
persona: agent/policy.yaml
props: agent/rules.json
Expand All @@ -691,7 +691,7 @@ numbers), and uploads the JSON report as an artifact:
| `strands` | | strands to replay, one path or glob per line; a glob that matches nothing fails the check |
| `seeds` | `0-99` | the individuals |
| `depth` | probbit's (8) | events per fuzzed script |
| `version` | `latest` | the release `install.sh` installs (`v0.15.0`, ...) |
| `version` | `latest` | the release `install.sh` installs (`v0.15.1`, ...) |
| `binary` | | a probbit binary to use instead (one built earlier in the job); overrides `version` |
| `allow-unproven` | `false` | `true`: exit 3 is a warning and the job passes |
| `json-artifact` | `true` | upload `probbit-check.json` (`actions/upload-artifact@v4`, the only action it uses) |
Expand Down Expand Up @@ -2612,7 +2612,7 @@ credits every learned trait with the level it took, so a reward aimed at one tra
demo below, praise for short answers also raised the light joke the tutor was making): learn the traits the feedback judges.

**The strand.** `--strand FILE` logs the life. Line 1 is the header, compact JSON:
`{"probbit_strand":1,"engine":"probbit 0.15.0","persona":{"name","version","digest"},"seed":N,"state":{...},"document":{...}}`,
`{"probbit_strand":1,"engine":"probbit 0.15.1","persona":{"name","version","digest"},"seed":N,"state":{...},"document":{...}}`,
with the initial state as canonical JSON (one individual has one header, whether it comes from `init` or from a state file) and
the persona document in its own key order (the compiled program, and `engine.program` with it, follows the document's key order).
Then one line per event, canonical JSON: `{"inputs":{...,"elapsed_hours":h},"n":k,"prev":"sha256:...","stance":"sha256:...",
Expand Down Expand Up @@ -3487,7 +3487,7 @@ place to report what you got. An outside reproduction (or a disagreement) is wor
```sh
npm i -g probbit # or: curl -fsSL https://raw.githubusercontent.com/BitmapAsset/probbit/main/install.sh | sh
git clone https://github.com/BitmapAsset/probbit && cd probbit
probbit version # probbit 0.15.0
probbit version # probbit 0.15.1

# a rule held by construction over 100 individuals (README, "Test a character")
probbit persona prove examples/persona/tutor.yaml --seeds 0-99 --never '{when: {sentiment: negative}, then: {humour: {at_most: light}}}'
Expand Down
1 change: 1 addition & 0 deletions llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Install on Linux or macOS: `curl -fsSL https://raw.githubusercontent.com/BitmapA

- [Persona format](https://raw.githubusercontent.com/BitmapAsset/probbit/main/docs/persona.md): the persona file (traits, moods, habits), the stance and state documents, bounded learning, `probbit live`, `probbit monitor`, what a persona can not do
- [Calling probbit from agents](https://raw.githubusercontent.com/BitmapAsset/probbit/main/docs/agents.md): shell, Python, Node, PowerShell, the MCP server and its tools, a browser
- [probbit as an MCP server](https://raw.githubusercontent.com/BitmapAsset/probbit/main/docs/mcp.md): the 10 tools, setup for Claude Code, Codex CLI, Gemini CLI, Claude Desktop, Cursor, VS Code and OpenClaw, two worked examples, troubleshooting
- [Agent SDK adapters](https://raw.githubusercontent.com/BitmapAsset/probbit/main/docs/adapters.md): a live individual beside Claude Code hooks, the OpenAI Agents SDK, LangChain and the Vercel AI SDK
- [Receipts](https://raw.githubusercontent.com/BitmapAsset/probbit/main/docs/receipts.md): one receipt per decision from any strand
- [OpenClaw plugin](https://raw.githubusercontent.com/BitmapAsset/probbit/main/plugins/openclaw/README.md): `probbit-stance`, the stance in every turn of the sessions you list
Expand Down
Loading
Loading