Highlights
- Transformers 4 standalone embedding migration (
#92progress):- Migrated local text embeddings from deprecated
@xenova/transformers2.x (and its vulnerable Sharp0.32.6/ ONNX1.14.0graph) to pinned@huggingface/transformers4.3.2(sharp0.35.5,onnxruntime-node1.30.0, upstream-pinnedonnxruntime-web1.31.0-dev.20260914-8d85527a0). bun auditreports 0 vulnerabilities across 117 packages (sharp0.35.5resolvesGHSA-f88m-g3jw-g9cj,GHSA-rgj7-g3m4-5g8c, andGHSA-wq5f-xc86-pv6w).- Standalone binaries embed the matching ONNX Web WASM binary and JavaScript factory with version- and source-hash-verified installation patches that exclude native ONNX and image decoding from CM's text inference path while preserving existing
xenovasettings, local model directories, offline retries, and filesystem caching (~/.cache/cass-memory/transformers/). - Derived local embedding caches move to version 3 (compatible Ollama version 2 caches and raw model downloads remain reusable).
- Migrated local text embeddings from deprecated
- Isolated per-project semantic runtimes & retrieval recovery:
- Resolves each operation's backend, effective model, and endpoint before asynchronous work and isolates derived caches by runtime identity across retrieval, reflection deduplication, rule validation, onboarding, stats, and doctor.
- Rejects stale, malformed, zero, and dimension-mismatched embeddings, preserves keyword retrieval on semantic failure without mislabeling fallback as semantic mode, and verifies usable inference before
cm doctorenables semantic search.
- Anthropic & CLI reflection output contracts, cancellation, and retry deadlines (
#103,#104):- Omitted system-owned
sourceSessionfrom native structured-output schemas (reducing Anthropic union-typed parameters from 17 to 14) while preserving OpenAI strict schemas and trusted session provenance binding. - Preserves complete CLI reflection replies surrounded by wrapper logs, markdown fences, or brace-containing prose; rejects ambiguous or malformed nested salvage; and identifies the exact failing delta index and field in retry diagnostics.
- Terminates and reaps cancelled CLI subprocesses and POSIX process groups (escalating
TERM->KILL), caps stdout/stderr reads at 10 MiB per stream, and enforces explicitllm.totalTimeoutMs/CM_LLM_TOTAL_TIMEOUT_MSceilings across every attempt and retry backoff.
- Omitted system-owned
Build and verification
Built and released via DSR (no GitHub Actions) from commit f4cefd27 using Bun 1.4.5:
- Quality gates (unchanged commands, assertions, and deadlines;
TZ=UTC, frozen lockfile):bun install --frozen-lockfile: clean (Transformers4.3.2text-only WASM patch verified).bun run typecheck(tsc --noEmit): clean.bun audit: 0 vulnerabilities across 117 packages.TZ=UTC bun run test:unit: passed 3,195 tests (1 API-key-dependent skip, 0 failures, 10,689 assertions across 103 files).TZ=UTC bun run test:ci: passed 3,929 tests (3 environment-dependent skips, 0 failures, 13,866 assertions across 156 files).
- Binary & compiled semantic verification:
cass-memory-linux-x64— ELF x86-64,GLIBC_2.17floor, executed natively (0.6.1) + compiled MiniLM cold download,--network=noneoffline reuse, cache v3 384d vectors, bit-identical cosine similarity, and offline uncached keyword-fallback negative check verified.cass-memory-linux-arm64— ELF aarch64,GLIBC_2.17floor, executed under QEMU aarch64 (0.6.1) + compiled MiniLM cold download,--network=noneoffline reuse, and bit-identical cosine similarity verified.cass-memory-macos-arm64— Mach-O arm64, Apple ad-hoc codesigned (codesign --verify --verbose=2), executed natively (0.6.1) + compiled MiniLM cold download, offline reuse, bit-identical cosine similarity, and offline uncached keyword-fallback negative check verified.cass-memory-macos-x64— Mach-O x86_64, Apple ad-hoc codesigned (codesign --verify --verbose=2), executed under Rosetta (0.6.1) + compiled MiniLM cold download, offline reuse, bit-identical cosine similarity, and offline uncached keyword-fallback negative check verified.cass-memory-windows-x64.exe— PE32+ x86-64 (not executed natively on Windows; native Windows qualification remains tracked in #92).- All 5 binaries passed the
#45trauma-guard escape check. Each binary ships with a matching.sha256sidecar, plusinstall.sh.sha256(install.shis unchanged sincev0.5.1).
See the v0.6.1 changelog for full details.
Full Changelog: v0.6.0...v0.6.1