Configuration Management π‘ BETA
Resolve a configuration value from its real source β Vault, environment or the bot's config.csv β before changing it.
Admin guide Β· configuration resolution runbook
| When to use | Before you start | Steps | Verify | Roll back |
|---|---|---|---|---|
| Diagnosing a wrong setting, adding a key | Source checkout, Vault read access | Find the consumer, identify the source, change it | Running bot reads the new value | Restore the prior source value |
When to use
Use this runbook when a setting appears not to take effect, or before adding a key to a bot's configuration file.
Before you start
- LLM settings are read from Vault at the per-bot path
secret/gbo/{org_id}/{branch_id}/{bot_id}, then the nil path, then the globalsecret/gbo/llm. Environment variables are a fallback only when Vault has no value. - The LLM provider is built at boot: a Vault-only change is invisible until the process that cached it is restarted. A
config.csvchange is reloaded by the Drive monitor without a restart. - Retrieval and context keys are defined in
botserver/src/core/bot/kb_context/; read that directory for current names and behaviour. - Do not copy a model name, chunk size, top-k or threshold from an older page. If the number is not in the code, it is not documented.
The config.csv File
File Format
Two columns: name,value. Only keys that a consumer reads have an effect.
Core Configuration Sections
Server Configuration
Server endpoints are fixed by the repository AGENTS.md: the API on port 8080, suite on 3000, cloud on 4000 and login on 5000. Do not redefine them in a bot file.
LLM Configuration - Overview
Read the LLM block from Vault first, then from the environment fallback (LLM_URL, LLM_MODEL, LLM_KEY), then from the bot's config.csv keys llm-url, llm-model and llm-key. The provider is constructed at boot, so a Vault edit requires a restart of the caching process while a config.csv edit reloads on ETag change.
Core LLM Settings
The consumer in botserver/src/core/bot/pipeline/llm/ and botserver/src/basic/runtime_llm.rs is the authority for which keys are read. Verify a consumer before documenting a key.
Model Path Options
A local model path is a value the code reads; it is not a universal default. Use the path present in the deployment or in the offline manifest.
Supported Formats
Read the supported formats from the local model loader rather than from an older page.
LLM Cache Settings
Cache behaviour is read from the same configuration source; confirm the consumer before claiming a cache is active.
Context Management
Retrieval behaviour and configuration keys live in botserver/src/core/bot/kb_context/. A key with no caller outside its own module is dead code and is documented as unused.
Embedding Configuration
Read the embedding consumer in the source. Do not assert an embedding model or dimension that is not in the code.
LLM Server Settings (When Self-Hosting)
A self-hosted model server is configured through the LLM URL and model values; see LLM configuration and local LLM.
Email Configuration
Mail credentials belong in Vault (secret/gbo/email), not in a bot file.
Custom Database (Optional)
Per-bot databases are named by the project database manager; read the source for naming before changing one.
Configuration Examples
Minimal Configuration
Write only the keys the bot consumes; verify each one with a test turn.
Local Development (Self-Hosted)
Point the LLM URL at the local model server and keep credentials in Vault. Do not hardcode an address with an internal IP; use localhost or a hostname.
Configuration Priority
Vault per-bot β Vault nil path β Vault global β environment fallback β bot config.csv value. Verify this order in ConfigManager::get_config before relying on it.
Best Practices
Keep secrets in Vault, keep bot behaviour in config.csv, and keep every change accompanied by a read-back in a test session.
Validation
After a change, read the value through the running bot and check the log for a reload event. A file that parses but is not consumed is a failed change.
Hot Reload
config.csv changes are reloaded by the Drive monitor on ETag change in about 10 seconds. LLM provider changes need a process restart because the provider is built at boot.
Troubleshooting
Common Issues
| Symptom | Cause | Action |
|---|---|---|
| Value ignored | no consumer for the key | remove the claim, find the real key in source |
| Value ignored after Vault edit | provider cached at boot | restart the caching process |
| Value reverts | edit made in Drive on a git-owned bot | edit in the ALM repo instead |
Quick Model Recommendations
Best Models by Hardware
Read the local model bundle and hardware guidance in local LLM; do not copy a model name from an old table.
Summary
Configuration is a resolution order, not a list of guesses. Change the authoritative source, then read the value back.
Steps
# 1. Find the consumer of a key before changing it.
grep -RIn "<key-name>" botserver/src botserver/crates --include='*.rs' | head -30
# 2. Read Vault first (never print the secret value).
source <(grep -E '^VAULT_' "${WORKSPACE}/.env")
export VAULT_ADDR="$VAULT_ADDR"
export VAULT_CACERT="${WORKSPACE}/botserver-stack/conf/system/certificates/ca/ca.crt"
export VAULT_TOKEN=$(cat /tmp/vault-token-gb 2>/dev/null || echo "$VAULT_TOKEN")
VAULT_BIN="${WORKSPACE}/botserver-stack/bin/vault/vault"
VAULT_BIN kv get secret/gbo/llm > /tmp/llm-config.txt
Verify
| Check | Surface | Pass condition |
|---|---|---|
| Consumer | source grep | key has an enforcement or use site |
| Source | Vault / env / config.csv | value read from the expected layer |
| Reload | botserver.log |
ETag change observed for config.csv |
| Read-back | test turn | bot uses the resolved value |
| Secrets | /tmp/llm-config.txt |
stored outside the repo, access restricted |
Roll back
π΄ Restore the prior value in its own source (Vault or the bot's ALM repo) and repeat the verification table. A restart is only required for a provider change built at boot.