Configuration
- Everything lives in one file:
cymatix.toml, read once at process start bycymatix_context.config.load_config(). There is no dotfile; the one other source is the optional per-store settings sidecar (sync folders and Freeze), described under Opt-in since 0.9.2. - Malformed TOML logs an error and uses defaults. Unknown keys and non-table
known sections log warnings and are ignored. Invalid fields inside valid
tables can still raise errors — for example, a nonnumeric timeout or
[abstain] mode = "per_classifier"without an[abstain.default]block. Section-shape recovery in v0.9.2 preserves this field validation. - Defaults are the interesting part. Almost every expensive feature in this
project ships off, and every default-off flip is attached to a receipt. This
page gives the tour and the flip dates; the exhaustive per-key reference is
docs/config-reference.md. - Canonical names are shown first.
[compressor]and[knowledge_store]are the software-lexicon spellings;[ribosome]and[genome]are the legacy spellings the file on disk still uses, and both resolve. See Lexicon. The aliases come from the Tier-2 lexicon pass (#419), which follows the 0.9.1 tag — on a 0.9.1 wheel only the legacy spellings resolve. - This page documents v0.12.0 (released 2026-11-21). The wave-1 ranking defaults (#407), the delivered-seat floor and its graduation to 12 (#409), the entity auto-link hub cutoff knob (#412), and the tagger v2 behavior change (#413) all shipped in v0.9.1 (released 2026-08-30) and are cited where they appear.
- No shipped retrieval or delivery default has changed since 0.9.2.
Everything added in 0.10.0 through 0.12.0 is opt-in or launcher-side; see
Opt-in since 0.9.2. 0.11.4 was never tagged or
published to PyPI; its knobs first ship in the 0.12.0 wheel and are listed
under their own heading there. 0.12.0 adds
[plugins], which is on by default but does nothing until an add-on is installed.
Where a value comes from
Highest priority wins:
- Per-call request fields —
caller_model_class,include_cold,decoder_mode,ignore_deliveredand friends on the/contextbody. These never mutate the loaded config. - Environment variables — the
CYMATIX_*set below. cymatix.toml— the path inCYMATIX_CONFIG, elsecymatix.tomlin the current working directory.- Dataclass defaults in
cymatix_context/config.py, returned as-is when no file is found.
Two typo guards run at load, both warning-only:
- An unrecognized key inside a known section logs
Unknown-key checkoutput naming the section and key. - An unrecognized top-level section logs
Unknown top-level section [<name>] in cymatix.toml. Added by the Tier-2 lexicon pass (#419, after the 0.9.1 tag) — it catches a mistyped[retreival]that would previously have been silently ignored while you wondered why the flip did nothing.
Canonical and legacy names
The Tier-2 lexicon pass (#419, merged after the 0.9.1 tag — not in the 0.9.1 wheel) adds canonical software-term aliases across the config surface. They are additive: every legacy spelling keeps working, unchanged.
| Canonical | Legacy | Surface |
|---|---|---|
[compressor] |
[ribosome] |
TOML section |
[knowledge_store] |
[genome] |
TOML section |
[budget] retrieval_tokens |
expression_tokens |
TOML key |
[budget] max_docs_per_turn |
max_genes_per_turn |
TOML key |
CYMATIX_STORE_PATH |
CYMATIX_GENOME_PATH |
environment variable |
Collision rule: the legacy name wins, and a WARNING names both. If a
config carries both [compressor] and [ribosome], the [ribosome] block is
the one that binds and the alias is dropped with a log line. Same for the key
pairs and for the two env vars. The rule is deliberately conservative — an
operator who has both spellings in play gets the behavior their existing file
already had, not a silent change.
(The CLI is the one exception: --max-docs and --max-genes share an argparse
destination, so passing both is plain last-wins. See CLI.)
Every section
| Section | What it governs | Key settings (shipped defaults) |
|---|---|---|
[compressor] (legacy [ribosome]) |
The optional compression / enrichment layer. Off the retrieval hot path entirely. | enabled = false, backend = "none" (only "litellm" and "deberta" are honored when enabled; anything else, including "claude" and legacy "ollama", dispatches the no-op DisabledBackend), model = "gemma4:e2b", timeout = 120, query_expansion_enabled = false |
[hardware] |
Device picker and per-model batch-size policy. | device = "auto" (cuda → rocm → mps → cpu), batch_sizes = "auto", low_vram_threshold_gb = 4.0, lazy_encoders = true |
[budget] |
Token caps, per-turn document caps, decoder mode, assembly-time safety. | retrieval_tokens = 7000 (legacy expression_tokens), max_docs_per_turn = 12 (legacy max_genes_per_turn), decoder_mode = "condensed", splice_aggressiveness = 0.3, legibility_enabled = true, session_delivery_enabled = true, abstain_enabled = true, neutralize_control_tags = true, min_delivered_docs = 12 (0.9.1; graduated from 0), full_text_delivery = false, companion_chunks = 4, context_max_chars = 100000, wire_format = "legacy", tier_seat_floor_enabled = false (last five 0.10.0, opt-in) |
[session] |
Session and party attribution fallbacks for the CWoLa label logger. | default_party_id = "default", synthetic_session_enabled = true, synthetic_session_window_s = 300 |
[knowledge_store] (legacy [genome]) |
Store path, compaction cadence, write durability. | path = "genomes/main/genome.db", compact_interval = 3600, cold_start_threshold = 10, replicas = [], synchronous = "NORMAL" (WAL-safe; skips SQLite's per-commit fsync) |
[server] |
HTTP bind, chat upstream, and the two admin-surface hardening knobs. | host = "127.0.0.1", port = 11437, upstream = "http://localhost:11434", upstream_timeout = 180, admin_token = "", swap_db_roots = [], bench_enabled = false, bench_port = 11439 |
[[lanes]] |
Extra launcher-supervised servers, one per port and store directory (0.11.0). Absent from the shipped file except as a commented example. | Each entry: name, port, genome_path (required); role = "custom", python_executable = "", engine_path = "", config_path = "", autostart = true, genome_source = "" |
[telemetry] |
OpenTelemetry export defaults. | enabled = false, endpoint = "localhost:4317", insecure = true, sampler_ratio = 1.0, redact_query = true, logs_enabled = true, logs_level = "INFO" |
[trace] |
Opt-in packet trace (0.11.2). Shipped commented out. | enabled = false, level = "metadata" ("off" / "metadata" / "full"), path = "" (= <store dir>/traces), hash_chain = false, sampler_ratio = 1.0, rotate_bytes = 67108864 |
[headroom] |
Optional Headroom compression-proxy lifecycle — launcher only. | enabled = true, autostart = true, port = 8787, mode = "token", route_upstream = false |
[ingestion] |
What happens to content on the way in. | backend = "cpu" (spaCy + regex), entity_graph = true, splade_enabled = false, sema_embed_on_ingest = false, dense_embed_on_ingest = false, symbol_graph = false, entity_autolink_hub_cutoff = 200 (0.9.2; was 0), locale_demotion_enabled = true |
[context] |
Cold-tier fallthrough, the fingerprint profile, and what decides freshness. | cold_tier_enabled = false, cold_tier_k = 3, cold_tier_min_cosine = 0.15, fingerprint_mode_profile = "balanced", freshness_basis = "clock" (0.11.2; "source" is opt-in) |
[cymatics] |
The 256-bin term-spectrum scorer. Blends as a bonus, never re-sorts. | enabled = true, harmonic_links = true, distance_metric = "cosine" (or "w1"), peak_width unset (derives from [budget] splice_aggressiveness) |
[classifier] |
The Stage-0 rule-based query classifier. | enabled = true — and that is the whole surface. Per-class caps and decoder hints are code constants pending #205 |
[retrieval] |
The big one: every recall tier, the fuser, the rerank layer. | fusion_mode = "rrf", rrf_k = 20 (0.9.1; was 60), rerank_combinator_by_class = all five classes → eps_band (0.9.1; was {multi_hop, default}), cover_walk_enabled = false (0.9.1, W2.1 — shipped inert, killed by its receipt, #408), dense_embedding_enabled = false, pki_enabled = false, rerank_enabled = false, filename_anchor_enabled = true, bm25_shortlist_enabled = true, sr_enabled = false, seeded_edges_enabled = false, harmonic_batching_enabled = false (0.10.0, opt-in), blend_mode = "scale_relative" |
[plr] |
The PLR query-confidence head that decorates /context/packet. |
enabled = true, model_path = "training/models/stacked_plr.joblib", expected_sha256 = "" (empty trusts the trainer's .sha256 sidecar), high_risk_threshold = 0.5 |
[know] |
The KnowBlock confidence logistic and its calibration provenance. | emit_floor = 0.45, s_ref = 4.2503, g_ref = 0.4386, betas (6 coefficients), calibrated_at / calibrated_on_n written by scripts/calibrate_know_confidence.py, stale_after_days = 30. Opt-in since 0.11.1/0.11.2: model = "legacy" (or "lanes"), lanes_intercept, lanes_betas, lanes_platt_a = 1.0, lanes_platt_b = 0.0, lanes_ce_model = "", neutral / fitted_inputs (unset) |
[sync] |
In-process delta sync of tracked folders (0.11.0). | enabled = false, roots = [], include (same extension set as cymatix ingest), exclude (.git, node_modules, .venv, …), interval_s = 30, max_delete_fraction = 0.2, max_files_per_pass = 200, max_file_bytes = 2000000 |
[plugins] |
Optional add-ons found through the cymatix.plugins entry-point group or the plugin directory (0.12.0). Core works the same with none installed. |
enabled = true (false = no discovery, nothing imported), disabled = [] (names to skip), dir = "" (= <user data dir>/cymatix/plugins) |
[mem_sync] |
Auto-sync of a watched notes directory into the store. Consumed by scripts/run_mem_sync.py, not by the server. |
enabled = false, watch_dirs = [], sync_interval_s = 60, agent_kind = "claude-code" |
[synonyms] |
Query-keyword → tag expansion. Flat key = [values] map; read once at start. |
Ships ~40 rows (cache, auth, db, api, …). Add your own project vocabulary here — see the note below |
[abstain] |
Confidence floors for the ABSTAIN tier. | mode = "global" (legacy hard-coded floors, byte-for-byte), ratio_threshold = 1.8 (additive), ratio_threshold_rrf_norm = 1.5 (RRF). "per_classifier" requires an [abstain.default] sub-table |
[vault] |
Obsidian-style read-only export plus diagnostic /context traces. Shipped commented out. |
enabled = false, path = "~/.cymatix/vault", redact_body = false, [vault.traces] retention_hours = 48 |
[encoder_daemon] |
Route dense / SPLADE / SEMA encoding through one shared process instead of loading weights per seam. Absent from the shipped file. | url = "" (off — every seam encodes in-process, byte-identical). Set e.g. "http://127.0.0.1:11440"; CYMATIX_ENCODER_URL wins over the TOML value |
The synonym map earns its own warning. Retrieval matches query keywords
against the tags assigned at ingest time. When a query returns "no relevant
context", the most common cause by far is that your vocabulary and your
corpus's tags never meet. Add a row under [synonyms] and restart before
concluding that retrieval is broken.
Default-off, and when it flipped
Every one of these was flipped by a measurement, not a preference. The default retrieval path has made zero model calls since 0.9.1 as a result.
| Knob | Default | Since | Why |
|---|---|---|---|
[retrieval] dense_embedding_enabled |
false |
2026-08-15 | Four-scale isolation receipts (100k / 250k / 500k carves + the 829k blob, every pair replicated) measured dense displacing gold from the delivered top-k at every scale — final recall −0.20..−0.33 against the lexical floor — for at most +0.02 pool recall |
[ingestion] splade_enabled |
false |
2026-08-16 | At n=469 on the 829k blob, query-side SPLADE over the full 147M-row expansion index was null-to-negative against the lexical floor, and the index contributed nothing passively (floors byte-identical with and without it) |
[retrieval] pki_enabled |
false |
2026-08-17 (#370) | The exact-shipped-default confirm at full power (n=469, delivered basis) measured PKI on as −1 delivered needle — null-to-hair-negative. Flipping it back does not reclaim an existing path_key_index table |
[ingestion] sema_embed_on_ingest |
false |
2026-08-19 (#371) | Its only live retrieval consumer at shipped defaults is the Tier-4 sema_boost re-rank, and the deciding read-gate cell was a wash (+1 delivered needle, ranks byte-identical). Riders: ~9.7 s cold start removed, ingest wall 835.9 s → 761.5 s on the 1,181-file corpus |
[ingestion] dense_embed_on_ingest |
false |
2026-08-19 (#371) | A dead write at neural-free retrieval defaults — nothing read the vectors |
[retrieval] rerank_enabled |
false |
always (#341) | The cross-encoder costs roughly 270–560 ms/query at 829k documents on a GPU encoder daemon; enable it only on populations with near-cutoff rerank headroom |
[compressor] enabled |
false |
always | The design pillar. With it false the backend string is ignored entirely and /context never touches an LLM |
Two consequences worth internalizing. Turning a retrieval knob back on is
not enough on its own — dense recall additionally needs the vectors to exist,
so a store ingested with dense_embed_on_ingest = false returns nothing from
the dense tier until scripts/backfill_bgem3_v2.py has run (same story for
scripts/backfill_sema.py). And the dense-off default carries a disclosed p50
latency regression — dense's ANN gate was load-bearing as a candidate-list cap
— ×2.5–2.6 at 100k fragments, shrinking to ×1.09–1.38 at the 829k operating
point (#374); the
mitigation has not landed.
New in 0.9.1
[budget] min_delivered_docs — the delivered-seat floor
[budget]
min_delivered_docs = 12 # default since 2026-08-30 ([w24-floor-flip]); 0 = legacy eviction-only trim
- Guards both mechanisms that cost a document its seat. It lifts the
classifier's per-rule assembly cap to at least N, and it makes the Stage-5
budget trimmer shrink the largest parts (tail-truncated, header-preserving,
marked
...[budget-trimmed]) instead of evicting whole documents. - The token budget still wins last: if every part is already at the truncation floor and the prompt still overflows, eviction resumes below the floor.
- Model-class caps (
small_moe = 4) are a model-capability concern and stay untouched. - Measured at floor 12 on the 829k bed: gold-document delivery 0.630 → 0.668, +18 / −0 needles — zero paired losses, and the map and final rank bases came back byte-identical per needle, so this is a pure delivery change (#409).
- Graduated 0 → 12 in the same release (the commit subject-tagged
[w24-floor-flip]), gated on a cross-corpus confirm with zero paired delivered losses: EnronQA v2 0.820 → 0.856 (+18/−0) and EnronQA padded 597k 0.776 → 0.792 (+8/−0) alongside the 829k row; recall@12 / final recall@12 identical in every cell.min_delivered_docs = 0restores the legacy eviction-only trim byte-for-byte; the revert is onegit revertof the flip commit. - What the receipts do not grade: answer quality under a widened seat count. More documents in the window is not automatically a better answer, and twelve full-length documents per window costs real tokens — that lane is still owed.
[ingestion] entity_autolink_hub_cutoff — bound the auto-link sweep
[ingestion]
entity_autolink_hub_cutoff = 200 # default since 0.9.2 (#425, closes #411); 0 = off = legacy linking
- Ingest-time entity auto-linking sweeps every
entity_graphposting row of every probe entity before its per-insertGROUP BY. On hub-heavy corpora that is O(N²) per build: on a 289k-document EnronQA bed,auto_link_by_entitywas 89.5% of writer wall time — 148.9 ms/insert, versus 7.4 ms without the two MIME-header hubs. - Above
0, entities whose posting count exceeds the bound are dropped from the probe set before theGROUP BY. The count probe isLIMIT-bounded, so per-insert cost becomes O(n_entities × cutoff). The shipped200is thePKI_NOISE_CUTOFFprecedent value. The knob shipped off in 0.9.1 (#412); the flip to200lands in 0.9.2 (#425) with both conditions on #411 receipted — see the two bullets below. - Measured on a 500-document read-only replay at cutoff 200: 0.53% of distinct entities held 56.9% of all postings; the per-link call went 210.5 ms → 0.62 ms (~340×) (#412).
- What the cutoff changes, and why it was gated: which relation=5 COVER edges form — 4,842 → 2,867 on that bed. A store built with the cutoff on is not edge-identical to one built without it. Those edges are default-inert at query time (the W2.1 cover-walk arm was killed by its own receipt), but "inert" is not "absent" — which is why the flip waited for the retrieval-side measurement.
- Flip condition 1 — retrieval null: a paired EnronQA A/B (n=500; two beds
differing only in the cutoff, gene-id sets identical) was null in both the
0.9.0 and 0.9.1 configs — 0/500 per-needle delivered flips (ledger row
2026-08-30-entity-hub-cutoff-retrieval-ab, receiptbenchmarks/dogfood/receipts/entity_hub_cutoff_retrieval_ab_enronqa_2026-08-30.json). - Flip condition 2 — the hubs survive tagger v2: paired 500-document
replays on content-identical 85k beds, one tagger-v1 and one tagger-v2
(
benchmarks/dogfood/receipts/entity_hub_cutoff_reprobe_85k_taggerv1_2026-08-30.json,…_reprobe_85k_taggerv2_2026-08-31.json, ledger row2026-08-31-entity-hub-cutoff-reprobe-85k). Tagger v2 removes 15.2% of distinct entities, but the natural hub population persists: at cutoff 200, 0.22% of entities still hold 30.1% of postings, and the mean per-link call falls 4.15 → 0.42 ms. - Opt out:
entity_autolink_hub_cutoff = 0restores byte-identical legacy linking. The bareKnowledgeStoreconstructor default stays0, and the bench builder reads the cutoff only fromCYMATIX_BFM_HUB_CUTOFF.
Wave-1 ranking defaults (#407)
[retrieval] rrf_kgraduates 60 → 20, tightening the rank-position discount so a high-ranked candidate from any single signal survives fusion. Set60to restore the Cormack 2009 default.[retrieval] rerank_combinator_by_classextends from{multi_hop, default}to all five classifier classes, all mapped toeps_band. Pass an explicit{}to restore global-combinator behavior.- Together, on the 829k bed at n=470: delivered gold 0.555 → 0.630, recall@12 0.651 → 0.681, paired +18 / −4, zero question-type regressions. The band also protects paraphrastic gold — the unbanded arm dropped semantic recall@12 0.32 → 0.16.
- Both halves ship as one commit, so the whole thing reverts with one
git revert. Full context: Pipeline.
Tagger v2 (#413) — a behavior change, not a knob
- The CPU ingest tagger now rejects entities containing newlines or tabs, and
no longer emits standard email/MIME header field names,
x-*extension headers, or MIME transport artifacts as entities. It fixes the EnronQA entity-graph hub problem at the source. - There is no config knob. The version is the module constant
TAGGER_VERSION = 2incymatix_context/tagger.py. - Comparability rule: the tagger determines document boundaries and tags,
so beds built under different tagger versions are not cross-comparable.
Every bed built before 2026-08-30 is
tagger_version = 1.scripts/build_fixture_matrix.pyrecords the value in each bed's manifest anddocs/benchmarks/BASELINES.mdrequires matching versions for a cross-bed claim. See Benchmarks and Receipts.
Opt-in since 0.9.2
Every knob below ships off (or at a value that reproduces the released behavior byte-for-byte). Releases 0.11.1, 0.11.2 and 0.11.3, and the never-published 0.11.4 merge, each passed the 947k merged-stack witness with 0/470 per-needle differences; 0.11.0 shipped without one by owner decision, since nothing on the retrieval or delivery path changed. 0.12.0 shipped without a 947k witness, by owner waiver: three of its fixes touch the retrieval path (#537, #536, #533) and each merged on its own test-first receipt, so treat 0.12.0 retrieval numbers as unwitnessed. See Roadmap and Releases.
Full-text delivery and companions (0.10.0)
[budget]
full_text_delivery = false # true = complete stored bodies plus same-source companions
companion_chunks = 4 # same-source chunks added after primary selection; 0 disables (0..32)
context_max_chars = 100000 # hard ceiling on serialized packet evidence
expression_tokens = 7000 # set 25000 for the full-text companion profile
- With
full_text_delivery = true,/context/packetitems carry the whole stored body, and up tocompanion_chunksquestion-ranked chunks from already-selected sources land in the packet'scompanionslist. Primary scores and ordering are untouched. - Oversized packets drop whole items (companions first) rather than clipping a body. This costs real downstream tokens: on the 947k ERB bed the 12 + 4 companion profile averaged 15,917 tokens per packet against 8,345 for compressed delivery (1.9x).
Experimental migrations (0.10.0)
| Knob | Default | What true / the non-default does |
|---|---|---|
[budget] wire_format |
"legacy" |
"canonical" renames owned JSON response fields to software terms across HTTP, CLI --json and MCP (gene_id → document_id, do_not_answer_from_genome → do_not_answer_from_knowledge_store, …). Request field names, SQL and the /v1/* proxy are unchanged. See Lexicon (#417) |
[budget] tier_seat_floor_enabled |
false |
TIGHT and FOCUSED tier cuts also honor min_delivered_docs when eligible candidates exist (#430) |
[retrieval] harmonic_batching_enabled |
false |
Oversized Tier-5 pools stream through connection-local temp storage instead of hitting SQLite's bind limit (#431) |
All three keep their benchmark gates open; none is a promoted default.
[[lanes]]: several stores and engine builds at once (0.11.0)
[[lanes]]
name = "staging"
role = "staging"
port = 11441
genome_path = "genomes/staging/genome.db"
engine_path = "F:/path/to/a/worktree" # serve this source tree instead of the installed package
genome_source = "snapshot:stable" # serve a consistent copy of another lane's store
autostart = false
- One server serves one store. The launcher always runs the primary
stablelane (from[server] port+[knowledge_store] path) andbench(from[server] bench_*); each[[lanes]]entry adds one more. Existing configs resolve unchanged. - Validation rejects duplicate names or ports, shared store directories, and the reserved ports 11438 (launcher UI), 11440 (encoder daemon) and 8787 (Headroom).
genome_source = "snapshot:<lane>"serves an SQLite-backup copy, so a newer engine build never writes to a live store. A chat picks a lane withcymatix mcp install --lane NAME;cymatix comparediffs two lanes. See CLI.
[sync]: keep tracked folders fresh (0.11.0)
- An in-process worker walks
rootseveryinterval_s: new files are ingested, changed files re-ingested with their stale chunks soft-tombstoned, deleted files tombstoned. Before this, every ingest path left the old version of a changed file live beside the new one. - Guards: a missing root is skipped, never read as "everything deleted"; if
more than
max_delete_fractionof tracked files vanish in one pass, the pass tombstones nothing untilPOST /sync/rescan {"allow_mass_delete": true};max_files_per_passthrottles cold starts; a single-writer lease. - State:
GET /sync/status. Supersedes[mem_sync]for repo folders.
Per-store settings and Freeze (0.11.2). A store may carry a sidecar
<store>.db.cymatix.json with its own sync folders and a Freeze flag. A
store's own sync block overrides the global [sync] enabled / roots /
interval for that store only. Freeze opens the store read-only for knowledge
content, turns its sync off, and makes /ingest and /consolidate answer
409. With no sidecar nothing changes. Both are set from the dashboard's
Database panel.
[trace]: opt-in packet trace (0.11.2, faster in 0.11.3)
- With
enabled = true, each/contextand/context/packetrequest appends one event topackets.jsonlunderpath, through an async writer."metadata"holds keyed HMAC hashes, ids, ranks, scores and the verdict, never raw query or chunk text;"full"adds the raw text and is for local debugging only.hash_chainmakes the file tamper-evident. - Precedence is env > TOML > default per knob (
CYMATIX_TRACE_ENABLED,CYMATIX_TRACE_LEVEL,CYMATIX_TRACE_PATH), resolved at use time like the OTel settings. - Measured cost in 0.11.3: 0.19 ms p50 / 0.70 ms p95 of trace work per request at metadata level on the 947k store, down from 47 / 57 ms in 0.11.2.
- The packet id is returned whether or not tracing is on. Read-back routes and
the id contract: HTTP API. Schema:
docs/specs/packet-trace-v0.md.
[context] freshness_basis: verify on the source (0.11.2)
"clock"(default) decays freshness by age since last verification, so a static store turns all-stale about 15 days after ingest, and a source this machine cannot find reads as stale. On the 947k ERB bed that forced 470/470 queries tomiss(stale)."source"asks the source instead: unchanged on disk = verified, changed = needs refresh, not on this disk = unknown (stale_riskfor ordinary tasks), not stale. Any other value logs a warning and falls back to"clock". See Agent Contract.
[know] model = "lanes": a dense-free know confidence (0.11.1-0.11.2)
"legacy"(default) is the shipped 5-feature logistic."lanes"scores inputs every query has (score shape,coordinate_confidence, lane agreement), each with a missing indicator. The gates before confidence are unchanged.- Fit it with
scripts/fit_know_lanes.py(writes a[know]block, never editscymatix.toml), then calibrate per store withscripts/calibrate_know_store.py, which writeslanes_platt_a/lanes_platt_band anemit_floor, or refuses when held-out precision misses the target.lanes_ce_model(empty = off) adds cross-encoder features at one CE call per query. - It stays opt-in: calibration does not transfer across corpora yet. Numbers and caveats: Agent Contract.
New in 0.11.4 (first published in 0.12.0)
0.11.4 was merged to master on 2026-10-26 but never tagged or published to
PyPI. Its contents shipped inside 0.12.0, so these knobs need a 0.12.0
install; a 0.11.3 install does not act on them.
[system_one]: an external packet judge (experimental).
[system_one]
enabled = false # true = 2 provider calls per /context/packet
url = "https://api.typesafe.ai/v1/systemone"
model = "jev-latest"
api_key_env = "TYPESAFE_API_KEY" # the variable's name; the key is never read from TOML
know_threshold = 0.5
rerank_items = false # true = 1 more call per item, reorders inside each bucket
max_item_chars = 8000
- When on,
/context/packetgains asystem_oneblock. Items are never dropped or moved across buckets, and know/miss is unchanged. A provider failure yields{"available": false}. - Privacy: the query and each item's text go to
url. timeout_s(30) andmin_interval_s(0.3) bound the calls. Receipts: Benchmarks and Receipts.
Char-basis caps for small chunks (experimental).
| Knob | Default | What a non-zero value does |
|---|---|---|
[budget] tier_tight_chars / tier_focused_chars |
0 |
The TIGHT / FOCUSED cut keeps ranked candidates while their content fits this many characters, instead of 3 / 6 documents. 4500 / 9000 reproduce the legacy cuts on 4000-char beds |
[budget] classifier_cap_ref_chars |
0 |
The classifier's per-class seat cap (2 / 5 / 6 / 8) becomes seats × N characters, never fewer than the legacy seats |
These matter only on beds chunked smaller than the default (the bench
builder's CYMATIX_BFM_CHUNK_CHARS). The c580 vs c4000 results, and why they
are not a default-flip receipt, are on
Benchmarks and Receipts.
Also in 0.11.4:
[retrieval] dense_model = "google/embeddinggemma-2"loads EmbeddingGemma 2 text-only, withdense_embedding_dim768 / 512 / 256 / 128. Install withpip install "cymatix-context[gemma]". Dense stays off and BGE-M3 stays the default model.[knowledge_store] cover_index_autobuild(legacy[genome]) (defaulttrue) builds theidx_genes_id_chromatincovering index in a background thread after a writable open of a store with 50k+ rows. At 947k it holds the write lock for about 38 s; readers are not blocked.falseorCYMATIX_COVER_INDEX_AUTOBUILD=0turns it off, andscripts/migrate_genes_cover_index.pybuilds it explicitly. Results are identical with or without the index.
[plugins]: optional add-ons (0.12.0)
[plugins]
enabled = true # false = no discovery at all; nothing is imported
disabled = [] # plugin names to skip (reported as skipped)
dir = "" # "" = <user data dir>/cymatix/plugins
- Add-ons come from installed packages (entry-point group
cymatix.plugins) and from the plugin directory. They can add CLI commands, supervised services, launcher routes and panels, and tray menu items (#542). Core behaves the same with none installed, and retrieval is unchanged. - Directory plugins load only when signed. Set
CYMATIX_ALLOW_UNSIGNED_PLUGINS=1to load unsigned ones. An exception in a plugin hook disables that plugin for the process and never affects core. cymatix plugins listshows each plugin's source, signature check and status (see CLI). The launcher servesGET /api/pluginsandPOST /api/plugins/{name}/actions/{id}; the action route requires the headerX-Cymatix-Action: 1and a loopbackHost.- Both trays (Python and Electron) show plugin menu items. A loaded plugin that reports a warn or error status turns a green tray icon amber, never red.
Security knobs
A loopback bind is not authentication — any process on the same host can reach the port. Three knobs harden the surface; two are opt-in, one is now on by default.
[server]
admin_token = "your-secret" # 401s /admin/*, /ingest, /consolidate, /sync/rescan, /trace/* without the bearer
swap_db_roots = ["F:/cymatix/genomes"] # 403s /admin/swap-db targets outside these roots
[budget]
neutralize_control_tags = true # default since 2026-08-19 (#351) — set false to opt out
admin_token(default""= no auth). When non-empty, every/admin/*route plus/ingest,/consolidate,POST /sync/rescanand the/trace/*routes demandsAuthorization: Bearer <token>and returns 401 otherwise. Read-only routes (/stats,/health,/context,/sync/status, …) stay open. The MCP proxy andcymatix comparesend$CYMATIX_ADMIN_TOKENas that bearer (0.11.0; ingest through MCP used to 401 when a token was set).swap_db_roots(default[]= unrestricted). When non-empty,POST /admin/swap-dbonly opens.dbpaths that resolve under one of the listed roots; anything else is rejected 403 before a store is opened. A root on a different drive than the target never matches.neutralize_control_tags(defaulttruesince 2026-08-19, #351). The assembly loop escapes a content-sourced<cymatix:to<cymatix:so an ingested document cannot forge the genuine<cymatix:no_match/>/<cymatix:slate>control tags that downstream agents trust. The genuine no-match tag is emitted on a separate branch and is never escaped. The flip was receipt-gated: the escape runs strictly after retrieval, fusion, and rank publication, and the 141-needle 100k-carve A/B measured the delivered basis and 141/141 assembled windows byte-identical across arms. Setfalseand documents legitimately containing the literal<cymatix:string ship verbatim. Scope limit: this closes control-tag forgery only. General indirect prompt injection through document text is inherent to context injection and is not addressed.- Startup warning. When
[server] hostis non-loopback (not127.0.0.1/localhost/::1) whileadmin_tokenis empty, the app logs a prominentNETWORK-EXPOSED ADMIN SURFACEwarning at startup. Warning only — the bind is honored unchanged.
Environment variables
All process-level overrides use the CYMATIX_ prefix and beat the TOML file.
| Variable | Overrides |
|---|---|
CYMATIX_CONFIG |
Path to the TOML file (default ./cymatix.toml) |
CYMATIX_STORE_PATH (legacy CYMATIX_GENOME_PATH, which wins on conflict) |
[knowledge_store] path. :memory: for ephemeral runs |
CYMATIX_SERVER_PORT |
[server] port (read since 0.11.0; a non-integer value logs a warning and is ignored) |
CYMATIX_SERVER_UPSTREAM / CYMATIX_SERVER_UPSTREAM_TIMEOUT |
[server] upstream / upstream_timeout |
CYMATIX_DEVICE |
One-shot device pin, consumed by hardware.init_from_config() |
CYMATIX_PARTY_ID |
[session] default_party_id — the preferred way to set it |
CYMATIX_USE_SHARDS, CYMATIX_SHARD_WORKERS, CYMATIX_SHARD_FETCH_FACTOR, CYMATIX_SHARD_COACT_RESERVE |
Sharded read-path routing and fan-out. Inert in blob mode |
CYMATIX_FILENAME_ANCHOR_ENABLED |
[retrieval] filename_anchor_enabled |
CYMATIX_ABSTAIN_DISABLE |
Forces [budget] abstain_enabled off without a redeploy |
CYMATIX_ENCODER_URL |
[encoder_daemon] url |
CYMATIX_BENCH_ENABLED |
[server] bench_enabled |
CYMATIX_HEADROOM_ROUTE_UPSTREAM_AUTO |
[headroom] route_upstream, per launch |
CYMATIX_MCP_FULL |
Exposes the full MCP tool surface — see MCP and IDE Integration |
CYMATIX_OTEL_* |
[telemetry] — see the precedence note below |
CYMATIX_TRACE_ENABLED, CYMATIX_TRACE_LEVEL, CYMATIX_TRACE_PATH |
[trace] enabled / level / path, resolved at use time like the OTel set |
CYMATIX_ADMIN_TOKEN |
Client side, not a server override: the bearer the MCP proxy and cymatix compare send. The server reads [server] admin_token |
CYMATIX_MCP_HTTP_TOKEN |
Optional bearer for cymatix mcp serve --http (0.12.0): when set, a request without Authorization: Bearer <token> gets 401 |
CYMATIX_ALLOW_UNSIGNED_PLUGINS |
1 loads unsigned directory plugins (0.12.0); otherwise only signed ones load |
CYMATIX_LAUNCHER_UPDATE_CHECK |
1 (or true / yes / on) turns on the launcher's PyPI update check. Off by default since 0.12.0 (#481); before, it was on unless set to 0 |
The OTel rule is env-wins in both directions. CYMATIX_OTEL_ENABLED=0
silences a [telemetry] enabled = true, and the tray launcher's auto-export of
CYMATIX_OTEL_ENABLED=1 beats a [telemetry] enabled = false once the
observability stack's collector port is up. Resolution happens in
otel.resolve_telemetry_settings(), not in the TOML loader. See
Observability.
CYMATIX_STORE_PATH=genomes/dogfood/genome.db cymatix-server
CYMATIX_OTEL_ENABLED=1 CYMATIX_OTEL_ENDPOINT=localhost:4317 cymatix-server
When a change takes effect
- Restart required for most of the surface:
[compressor],[hardware],[server],[knowledge_store],[ingestion],[cymatics],[classifier],[plr],[abstain],[mem_sync],[sync],[trace],[synonyms],[vault],[headroom], the[budget]token caps, and the[retrieval]weights and mode.[[lanes]]is read by the launcher, so it needs a launcher restart. POST /admin/reloadre-reads the file but keeps the running values of[budget] wire_formatand[retrieval] harmonic_batching_enabled, which are installed at startup; a changed value is listed underrestart_requiredin its response.- Read per request:
[budget] foveated_alpha/foveated_c_min/foveated_base_chars,[retrieval] ann_threshold_mode, and[retrieval] fusion_mode. POST /admin/refreshinvalidates the retrieval-layer caches and the[know]calibration table. That route is one of the onesadmin_tokengates.- When in doubt, restart. The hot-reload paths exist for the highest-churn knobs, not as a general contract.
A note on names in code blocks: the shipped cymatix.toml on disk still uses
the legacy spellings ([ribosome], [genome], genome.db,
max_genes_per_turn), and this page reproduces them verbatim where it quotes
the file. Renaming the on-disk file and the SQL columns is a tracked Tier-3
change, deliberately not taken because it breaks every existing store and
consumer. The opt-in [budget] wire_format = "canonical" (0.10.0) renames
JSON response fields only; SQL and persistence are unchanged. See
Lexicon.
Go deeper
docs/config-reference.md— the canonical per-key reference: type, default, and the rationale for every knob, plus loading order and hot-reload semanticscymatix.toml— the shipped file, with the flip receipts written inline as commentsdocs/benchmarks/2026-08-14-encoder-isolation-scale-curve.md— the four-scale receipts behind the dense and SPLADE flipsCHANGELOG.md— every default flip with its receipt path and disclosuredocs/operator-runbooks.md— backfill and calibration procedures with timings- Next: Retrieval Dimensions · HTTP API · Benchmarks and Receipts · Observability