DocsInternals
Dependency Source Contract
The manifests and lockfile pin the entire SQLite family used by CASS (including
) 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. 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 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. 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 / 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. |
|
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), (compressed Codex rollouts), and (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 directory and every write/delete identity, but the Unicode schema sentinel requires rebuilding older ASCII-only postings with cass index . Upstream defaults use and retain their separate document identity policy. Features remain hash, , quill, ann, native; enables , the retained Tantivy-backed differential oracle. The new APIs are not yet in a registry release. |
frankentui (ftui, , , ) |
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 : 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.rsvalidates every named dependency contract against its exact version, package name, enabled features, andpolicy. Registry-only contracts reject Git fields; Git contracts require the exact repository and revision.default-features - The fsqlite-family gate additionally checks
Cargo.lockfor exactly one registry resolution per package at0.4.12and rejects everyredirect for the family, including the facade.[patch.crates-io] - Enable optional sibling-manifest validation with
rch execor-- env CARGO_TARGET_DIR=/data/tmp/cass-strict-target cargo check--features strict-path-dep-validationrch exec. 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.-- env CARGO_TARGET_DIR=/data/tmp/cass-strict-target CASS_STRICT_PATH_DEP_VALIDATION=1 cargo check - Use
cass swarmfor a fast read-only preflight. It reports each manifest pin, optional sibling checkout HEAD/dirty state, upstream status asdependency-drift --json not_checked, and the exact strict-validation commands to run; it never fetches remotes or mutates files.
Expected interface contract
frankensqlite(fsqlite):Connection,params!, andcompat::{ConnectionExt, RowExt}withrow.get_typed(...).:franken-agent-detection AgentDetectOptionsanddetect_installed_agents(...).frankensearch: the Quill CASS document/reader/writer surface, explicitcass::legacy_v9identity and schema policy, bounded positional-prefix execution, retainedlexical_tantivycompatibility surface, plusModelCategoryandModelTier.frankentui:ftui::Frame,GraphemePool,Style,,ftui-runtime , and theftui-tty features enabled by cass.ftui-extras asupersync:runtime::RuntimeBuilderandhttp::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.