Stable JSON contracts

Stable JSON contracts

index

colibri-contracts holds the stable, language-agnostic wire shapes shared

between Colibri (Rust) and Clawdie agents (TypeScript). It owns _schemas and

(De)serialize_, not business logic.

Why a separate contracts crate

defaults.

Active schemas

SchemaRust structPurpose
clawdie.interagent.run-manifest.v1RunManifestRecords a build/test run — role, agent, artifacts, summary.
clawdie.runtime-version-inventory.v1RuntimeInventoryHost runtime snapshot — OS, package versions, npm/node/zot/pi.
clawdie.provider-smoke.result.v1ProviderSmokeResultDeepSeek cache-hit probe result and token accounting.

Schema constants and structs live in crates/colibri-contracts/src/lib.rs.

Evolution rules

still parse. zot. output can be captured without forcing a schema bump.

Golden tests

crates/colibri-contracts/tests/golden.rs parses every committed manifest in manifests/ and asserts round-trip equality. The fixtures are intended to be cross-platform — if a manifest produced on Linux differs from one produced

on FreeBSD 15, the difference must be understood and documented before it is

merged.

See also

metering. produced.