cass

DocsInternals

Dependency Source Contract

The manifests and lockfile pin the entire SQLite family used by CASS (including fsqlite-types) at =0.4.12, with asupersync =0.5.0. The published SQLite repair covers the reserved-page WAL conflict in GH#462; upstream GH#411 is also closed. Neither proves recovery of an already damaged archive. franken-agent-detection asks for fsqlite ^0.4.1, so it accepts the 0.4.12 family. SQLite 0.4.2 adds explicit derived WAL-index recovery for read-only opens (GH#477) and 0.4.4 adds durable pending-freelist repairs. 0.4.6 stops a live B-tree page from being freed and granted again across a WAL generation (page N is referenced multiple times, bd-b5vmw) and fixes a lost-index-entry race (bd-11sz4). 0.4.7 keeps index entries whole in large multi-row INSERTs (bd-2eebi), fixes a schema change inside an explicit BEGIN IMMEDIATE/EXCLUSIVE missing rows that another same-process connection autocommits concurrently (bd-4iaoi), lets cass doctor --rebuild-canonical-fts open and rebuild the GH#503 legacy fts_messages_config shadow catalog, bounds the shared page plane, and stops a connection's first sqlite_master query from reading the whole database file. CASS skipped 0.4.7 because its strict read-only opens spent about 30 s on a stale WAL index. All 26 public SQLite packages are published at 0.4.9 (which replaces the withdrawn 0.4.8): it refuses that stale index promptly again, and the first write after stock SQLite opened the archive read-only now establishes the WAL generation instead of failing BusyRecovery on every later commit (GH#509). 0.4.12 carries the 0.4.10 data-integrity advisory fix: inserts inside an explicit transaction could append through a stale retained right-edge leaf and corrupt a table b-tree (bd-obwsy; 0.4.9 and earlier are affected). It also returns the AUTOINCREMENT rowids a rolled-back transaction reserved (bd-gwoit), and reads a WAL that a stock SQLite writer truncated to zero bytes as empty instead of corrupt (bd-yxqs9, GH#519). The lockfile resolves the 20 SQLite packages CASS uses at 0.4.12. CASS's runtime qualification of 0.4.12 passed on Linux, macOS and Windows (the Windows storage failures predate the pin). The strict UBS gate remains pending, and no release of this pin proves recovery of an already damaged archive. The build guard enforces the reviewed uniform SQLite 0.4.12 versions, a single resolution per package, and registry sources.

cass pins its contract-critical ecosystem dependencies with exact versions in Cargo.toml; other direct dependencies use normal semver requirements, and Cargo.lock freezes the complete resolved graph. franken-agent-detection and frankensearch additionally pin immutable Git revisions (below). Optional sibling-path overrides stay commented out by default and must never be committed active.

Dependency Pinned source
frankensqlite / fsqlite-types and the whole SQLite family crates.io =0.4.12 (tag v0.4.12 = 26aa19afcbd5afdb01658a10bb33417ad0b513be). Carries 0.4.12's fixes for explicit-transaction inserts corrupting a table b-tree (bd-obwsy, the 0.4.10 advisory), AUTOINCREMENT after ROLLBACK (bd-gwoit) and stock-truncated empty WALs (bd-yxqs9), plus 0.4.1's GH#462 reserved-page WAL repair, 0.4.2's derived WAL-index recovery for read-only opens (GH#477), 0.4.4's durable pending-freelist repairs, 0.4.6's page-referenced-twice (bd-b5vmw) and lost-index-entry (bd-11sz4) fixes, 0.4.7's large multi-row INSERT index fix (bd-2eebi), serialized-DDL race fix (bd-4iaoi), GH#503 shadow-autoindex repair open, bounded page plane and first-sqlite_master full-file read fix, and 0.4.9's prompt stale-WAL-index refusal for strict read-only opens (48c6cf6b2) and first-write recovery from stock SQLite's empty WAL index (GH#443 / cass GH#509). The whole family resolves from one exact registry version; build.rs rejects any fsqlite-family registry patch, duplicate package resolution, wrong version, or non-crates.io lockfile source. src/franken_sync.rs keeps cass's synchronous call shape through a current-thread asupersync block_on bridge.
franken-agent-detection git 224184da59adc2229072cd79ed8e8b751f2375a7 (package version 0.3.10; OpenCode 2.4 split assistant parts, tool calls, API usage and complete changed-store snapshots, GH#590; native ZCode session indexing and OpenCode disambiguation, GH#573; host-approved inactive Codex tail recovery, GH#560; bounded complete-record recovery after torn Pi/OMP, Codex and Claude JSONL prefixes, GH#553; structured ChatGPT voice transcripts and stable message identities, GH#552; narrow OpenClaw explicit-file isolation, historical sessions, opaque mirror discovery, and physical-store migration backports; native qualification pending; build.rs checks the repository, revision and version), features zcode (native ZCode SQLite sessions, without raw mirroring), codex-zstd (compressed Codex rollouts), pi-durable and pi-sqlite (Pi durable-harness stores, pi_agent_rust SQLite sessions)
asupersync crates.io =0.5.0 (the line fsqlite 0.4.x names in its public API)
frankensearch =0.7.1 at Git revision bc28e5e24edb1af4bb8e6ce0d83a6b40fa7c3c33, with the entire Frankensearch family from that revision. Carries GH #586 Unicode lexical indexing, GH #548 tokenizer-aligned queries, complete bounded positional prefixes, the explicit cass::legacy_v9 adapter and a concat-merge term merge without per-term allocations (the merge inside each run of the end-of-rebuild fold). CASS retains the v9-quill directory and every write/delete identity, but the Unicode schema sentinel requires rebuilding older ASCII-only postings with cass index --full. Upstream defaults use v11-quill and retain their separate document identity policy. Features remain hash, cass-compat, quill, ann, native; cass-compat enables lexical-tantivy, the retained Tantivy-backed differential oracle. The new APIs are not yet in a registry release.
frankentui (ftui, ftui-runtime, ftui-tty, ftui-extras) crates.io =0.5.0 (2026-08-21; previously git 5f78cfa0 / 0.3.1 — the 0.5 API compiled with zero call-site changes)
toon (tru) crates.io =0.3.0 (2026-11-21) with default-features = false, features = ["serde"]: 0.3.0 splits the crate into lib, serde and cli features, and CASS needs only the serde_json conversions, so the CLI and its build-time dependencies stay out of the graph. Previously =0.2.4, whose production sources were byte-identical to the earlier git rev d7185c78

Build-time validation

  • build.rs validates every named dependency contract against its exact version, package name, enabled features, and default-features policy. Registry-only contracts reject Git fields; Git contracts require the exact repository and revision.
  • The fsqlite-family gate additionally checks Cargo.lock for exactly one registry resolution per package at 0.4.12 and rejects every [patch.crates-io] redirect for the family, including the facade.
  • Enable optional sibling-manifest validation with rch exec -- env CARGO_TARGET_DIR=/data/tmp/cass-strict-target cargo check --features strict-path-dep-validation or rch exec -- env CARGO_TARGET_DIR=/data/tmp/cass-strict-target CASS_STRICT_PATH_DEP_VALIDATION=1 cargo check. For sibling checkouts that are present, this verifies package names, versions, and required features before you switch to local path overrides; registry-only contracts do not require a particular sibling branch or clean worktree.
  • Use cass swarm dependency-drift --json for a fast read-only preflight. It reports each manifest pin, optional sibling checkout HEAD/dirty state, upstream status as not_checked, and the exact strict-validation commands to run; it never fetches remotes or mutates files.

Expected interface contract

  • frankensqlite (fsqlite): Connection, params!, and compat::{ConnectionExt, RowExt} with row.get_typed(...).
  • franken-agent-detection: AgentDetectOptions and detect_installed_agents(...).
  • frankensearch: the Quill CASS document/reader/writer surface, explicit cass::legacy_v9 identity and schema policy, bounded positional-prefix execution, retained lexical_tantivy compatibility surface, plus ModelCategory and ModelTier.
  • frankentui: ftui::Frame, GraphemePool, Style, ftui-runtime, ftui-tty, and the ftui-extras features enabled by cass.
  • asupersync: runtime::RuntimeBuilder and http::h1::HttpClient::builder().
  • toon (tru): toon::encode(...).

When intentionally updating one of these sibling crates, update the manifest pin, the build.rs contract, and the compile-contract test together.