Configuration & Deployment π‘ BETA
Change configuration and ship code with a snapshot taken first, the documented commands run in order, and a verification table completed last.
Configuration System
Bot behaviour is configured in each bot's config.csv under its .gbot/ tree. The Drive monitor reloads a changed config on ETag change (about 10 seconds); do not restart botserver for a config.csv edit. Secrets never go in config.csv: the .env file carries only VAULT_* variables and all service secrets live in Vault.
File Location
For git-owned bots the ALM repository is the source of .gbdialog/ and .gbot/; the runtime tree under Drive is a materialised copy. Edit in the repository, push, and let git_bot_monitor materialise the change. .gbkb and .gbdrive remain Drive-owned and are edited with oc.
Configuration Categories
| Category | Authority | Runbook |
|---|---|---|
| Server and bot parameters | source constants | Parameters |
| Environment variables | repository AGENTS.md |
Environment variables |
| LLM provider and model | Vault first, then env | LLM configuration |
| Context and retrieval | botserver/src/core/bot/kb_context/ |
Configuration management |
| Secrets | Vault paths | Secrets management |
| Sources sync | account credentials in Vault | Sources sync |
| Limits | enforced constants | System limits |
Key Features
Simple Format
config.csv is a two-column name,value file. Write only keys the code reads; a key that has no consumer is not a setting.
Flexible Structure
Empty rows and comments organise the file, but the parser sees only rows. Validate by reading the value back through the running bot, not by looking at the file.
Local-First
A local installation provisions its own components from the offline installer cache; component versions and checksums are pinned in botserver/3rdparty.toml.
Example Configurations
Use the parameter reference for the current key set. Do not copy a model path or a threshold from an older page: read the value the code actually consumes.
Configuration Philosophy
Prefer Vault for anything sensitive, prefer the directory service for identity, and prefer a verified reload over a restart. Every change ends with a verification table and a rollback step.
Installer-Managed Components (Local / Stage)
The installer resolves components from botserver/3rdparty.toml and verifies SHA-256 digests from the local cache. PostgreSQL, Valkey, Vault, OtterIO, Qdrant, Caddy, Zitadel, Forgejo, CoreDNS, Stalwart and LiveKit are pinned there; read the manifest for current versions.
Existing timeseries_db data
Preserve existing data during a reinstall: take a dump or snapshot first and verify it before any component is replaced. See the restore runbook.
Install acceptance harness
Offline self-test (--self-test)
The install plan supports an offline self-test that exercises the actions without provisioning live services. Use it before a real install.
Preconditions
Check free disk space, Incus availability and the presence of the offline installer cache before starting.
Running one action at a time
Execute a single action, print its state, then decide the next step. Do not batch provisioning, health checks and assertions in one long script.
Health probes used by the plan
Probe the documented health endpoint and the expected listeners; a listening port alone is not readiness.
Verdict and exit codes
A clean run exits 0; a policy or integrity failure exits non-zero. Record the verdict with the evidence under /tmp.
Live-evidence requirements
Do not call a plan "verified" from an offline self-test alone: collect live health and log evidence from the installed services.
See Also
| Resource | Use when |
|---|---|
| config.csv format | editing a bot's configuration file |
| LLM configuration | changing provider or model |
| Parameters | looking up a key |
| Secrets management | reading or rotating a secret |
| Sources sync | connecting an account as a source |
| System limits | reading an enforced limit |
| Operations runbooks | deploying, restoring, rotating |