config
Configuration loading from environment variables. All Cruvero configuration uses the CRUVERO_* prefix — there are no config files. The Config struct is loaded once at startup via config.Load().
Used by every cmd/ binary.
Usage
import "cruvero/internal/config"
cfg := config.Load()
Key Types / Interfaces
| Type | Source | Description |
|---|---|---|
Config | config.go | Comprehensive config struct with 100+ environment-driven fields |
Config Sections
The Config struct covers:
- Infrastructure: Temporal, PostgreSQL, Dragonfly, vector stores
- LLM: Provider selection, failover chain, timeouts, model pricing
- Memory: Episodic/semantic/procedural stores, salience weights
- Agent: Context budgets, temporal constraints, metacognitive reasoning
- Security: Sandbox modes, input sanitization, PII redaction, network policies, Vault
- Audit: Logging, retention, PII detection, export formats
- Quotas: Rate limiting, token limits, cost budgets
- Immune System: Quarantine thresholds, anomaly detection
Key Files
| File | Purpose |
|---|---|
config.go | Config struct definition and Load() function |