RoboPersona .botpack

Open format · draft 0.1.0 · MIT OR Apache-2.0

Behavior packages for embodied AI.

A .botpack bundles a persona manifest, payload files and a SHA-256 index into one integrity-checked archive. Its affect engine is specified to return bit-identical IEEE-754 doubles in Rust, Python and WebAssembly for the same sequence of operations. CI checks all three runtimes against a published fixture.

Read the spec Quickstart Source

One archive, fixed order

A .botpack is a zstd-compressed tar. The entry order is normative.

PositionEntryContent
firstmanifest.jsonIdentity and persona (§3)
middlepayloadAny files: prompts, configs, assets (§5)
lastchecksums.jsonSHA-256 of every payload entry (§4)

Check the determinism claim yourself

Reference scenario: baseline (0.1, 0.2, 0.0), decay rate λ = 0.5, max step 0.3, one stimulus (0.9, -0.3, 0.6), then 10 ticks of 1.7 s. A conforming runtime ends in exactly these bits:

valence    3fb99d99b098e231
arousal    3fc997998e19f54f
dominance  3f10005bfd225a03

Each value is f64::to_bits() as 16 lowercase hex digits. The inputs are pinned as bit patterns too: 1.7 is not exactly representable, so the fixture fixes 3ffb333333333333. Decimal renderings are non-normative.

CI checks the same file from Rust (f64::from_bits), Python (struct.unpack(">d")) and Node via wasm (DataView, big-endian). Fixture: affect-reference.json. Contract: §7.

Quickstart

The latest release ships CLI binaries for macOS arm64 and Linux x86_64 plus a SHA256SUMS file.

BIN=botpack-aarch64-apple-darwin      # Linux: botpack-x86_64-unknown-linux-gnu
curl -fLO https://github.com/VirilePeak/robopersona/releases/latest/download/$BIN
curl -fLO https://github.com/VirilePeak/robopersona/releases/latest/download/SHA256SUMS
shasum -a 256 -c SHA256SUMS --ignore-missing   # Linux: sha256sum -c SHA256SUMS --ignore-missing
chmod +x $BIN && mv $BIN botpack             # then put it on your PATH

The Linux binary needs glibc 2.34 or newer (Ubuntu 22.04+, Debian 12+). The macOS binary is not notarized: download it with curl as above. A copy downloaded in a browser is quarantined, and Gatekeeper refuses to run it. Or build from source:

cargo install --git https://github.com/VirilePeak/robopersona --locked botpack

A package is a directory with a manifest.json. Everything else in it becomes payload:

$ mkdir -p atlas/prompts
$ printf '%s' '{"format_version":"0.1.0","name":"atlas-caretaker","version":"0.1.0","persona":{"display_name":"Atlas Caretaker","languages":["en"]}}' > atlas/manifest.json
$ echo "Hello. I keep the aisles clear." > atlas/greeting.txt
$ echo "You are a careful warehouse robot." > atlas/prompts/system.txt
$ botpack pack ./atlas -o atlas.botpack
packed ./atlas -> atlas.botpack
$ botpack verify atlas.botpack
OK atlas-caretaker v0.1.0 (format 0.1.0) — 2 payload entries
$ botpack unpack atlas.botpack -o ./out && diff -r atlas out && echo identical
verified + extracted 2 entries -> ./out
identical

Reference implementation

CratePurpose
botpack-coreManifest schema, validation, JSON round-trip
botpack-archiveContainer: tar + zstd, SHA-256 index, path safety
botpack-affectno_std affect engine: PAD vector, exponential decay, runtime loop
botpack-wasmwasm-bindgen bindings; the release .wasm is about 68 kB
botpack-pythonpyo3 bindings, module botpack
botpackCLI: pack, unpack, verify, show

Crate version 0.1.1. Nothing is on crates.io or PyPI yet. The Python wheel builds from source with maturin build -m crates/botpack-python/Cargo.toml.

Status

Issues, questions and independent implementations: GitHub issues.