Experiments
Experimental Flags
Look up selected experimental switches in the released runtime and use them with isolated data.
At a glance
01
These selected v0.20.2 switches are experimental and off by default.
02
Test changes with isolated data and record the configuration; disabling a switch does not reverse earlier writes.
01
Status first
The switches below are present in released v0.20.2 source. They are experimental controls, not a promise of better retrieval or a substitute for evaluating your own use. Set an environment variable for the process that reads it.
02
Retrieval and context flags
These selected v0.20.2 flags default off. For either flag, 1, true, or yes enables it; unset, 0, false, or no disables it. Restart the process after changing the environment.
- WENLAN_ENABLE_GRAPH_GATE: when enabled, skips the normally active graph hop for queries without relational or temporal phrasing or an entity anchor. Default off.
- WENLAN_ENABLE_CONTEXT_COMPRESS: enables the compression gate when the other configuration permits it. Default off; source warns against use beyond evaluation because coverage safeguards are incomplete.
03
Memory maintenance flags
Use isolated data for write-time experiments. Restart after changing a variable; turning a flag off does not undo prior writes.
- WENLAN_ENABLE_DUAL_POOL_RESOLVE: default off; 1, true, or yes compares incoming memories against duplicate and contradiction candidates; invalidations soft-suppress older memory and duplicates propose consolidation. Unset, 0, false, or no disables it.
- WENLAN_ENABLE_EVICTION: default off; 1, true, or yes soft-evicts eligible stale, low-confidence, nonimmune memories without hard deletion. Unset, 0, false, or no disables it.
- WENLAN_MERGE_SHRINK_GUARD: default off; a numeric minimum new-to-old content ratio enables the guard for LLM rewrites. Unset or an unparseable value disables it; zero is a threshold, not an off switch.
04
Eval discipline
Record the release or commit, fixture, model, run count, and active flags when comparing results.
05
Safe local testing
From a source checkout with Cargo installed, use a separate port and data directory. This command only starts an isolated daemon; it does not enable or verify a flag. Both assignments apply to the launched process, not an already running daemon. A client must target port 7879 to reach this test daemon rather than the default daemon on 7878.
WENLAN_PORT=7879 WENLAN_DATA_DIR=/tmp/wenlan-test cargo run -p wenlan-serverNext
Wenlan Local Data and Privacy
Where Wenlan stores local AI work memory, what stays on your machine, and when connected model providers may see prompts.
Read next