Operational Memory
Faber includes slim, built-in operational memory designed to help investigations remember recurring cluster quirks, past verified fixes, and operator instructions without deploying a vector database or extra sidecar pods.
Zero Extra Pods (SQLite FTS5 and PostgreSQL tsvector)
Section titled “Zero Extra Pods (SQLite FTS5 and PostgreSQL tsvector)”Operational memory lives directly inside Faber’s existing backing store (internal/store):
- SQLite: Uses built-in
FTS5virtual tables (memory_entries_fts, migration0006_v200_memory.sql) inside the single controller pod. - PostgreSQL HA: Uses native
tsvectorfull-text search indexes (0005_v200_memory.sql) shared across controller replicas. - Tenant Partitioning: Every memory entry is scoped to its owning
Automationtenant_namespace. Searches and recalls never cross namespace boundaries. - No Embeddings Required: v2.0.0 uses deterministic full-text matching and explicit reinforcement counts instead of vector embeddings, keeping memory predictable, fast, and inspectable.
Enabling Operational Memory
Section titled “Enabling Operational Memory”Operational memory is off by default (memory.enabled=false). Enable it in Helm values with one flag:
memory: enabled: trueOr on the command line:
helm upgrade --install faber oci://ghcr.io/faberops/charts/faber \ --version 2.0.0 \ --namespace faber \ --set memory.enabled=trueGold, Silver, and Bronze Quarantine
Section titled “Gold, Silver, and Bronze Quarantine”Untrusted model notes must never poison future runs unchecked. Every memory entry carries a trust tier:
| Tier | Source | Turn-1 Recall Eligibility |
|---|---|---|
| Gold | Human operator via /faber remember PR comment or POST /api/v1/memory/{id}/promote |
Included in turn-1 RecallBrief immediately |
| Silver | Derived from a verified run outcome (status.verification.state == "Verified") |
Included in turn-1 RecallBrief |
| Bronze | Unverified run observation or single-run lesson | Quarantined until reinforced by a second distinct run (memory_reinforcements) |
Key safeguards:
- Idempotent reinforcement: The
memory_reinforcements(memory_id, run_id)table ensures one run cannot reinforce its own Bronze entry twice. - Bounded prompt injection: Turn-1
RecallBriefis fenced, capped at3072bytes and8entries, and injected only into dynamic user turns so the static system and tool prompt prefix stays cache-hot. - On-demand lookup: During multi-step runs, the agent can query older entries explicitly through the read-only
memory_searchengine tool.
Pre-Persistence PII and Secret Redaction
Section titled “Pre-Persistence PII and Secret Redaction”Before any memory entry reaches SQLite or PostgreSQL, internal/operator/memory runs deterministic redaction stripping bearer tokens, API keys (sk-, ghp_, glpat-, xox), AWS access keys, PEM private keys, inline URL credentials, and common PII patterns.
Strict Isolation from Trust Promotion
Section titled “Strict Isolation from Trust Promotion”Operational memory is strictly advisory context for investigations. It can never influence autonomy decisions or trust promotion:
internal/operator/trustevaluates promotion exclusively fromAutomationRun.status.verificationoutcomes.- An AST boundary test (
internal/operator/memory/boundary_test.go) fails CI ifinternal/operator/trustever importsinternal/operator/memoryorinternal/store.
Capturing and Managing Memory
Section titled “Capturing and Managing Memory”PR Review Capture (/faber remember)
Section titled “PR Review Capture (/faber remember)”Comment on any Faber pull request with /faber remember: followed by a durable rule or operational fact. The PR feedback syncer captures it as a Gold memory entry and also feeds active learning for .faber/rules.md:
/faber remember: Always keep payments-api replicas at 3 or higher during business hours.CLI Commands (faberctl memory)
Section titled “CLI Commands (faberctl memory)”Inspect, search, and delete memory entries from the command line:
# List memory entries (optionally filter by namespace or tier)faberctl memory list --namespace faberfaberctl memory list --tier gold
# Full-text search across operational memoryfaberctl memory search "oomkill checkout" --namespace faber
# Delete an entry and any derived descendants cleanlyfaberctl memory forget <memory-id>REST API Endpoints
Section titled “REST API Endpoints”GET /api/v1/memory: List or search memory entries (?namespace=,?tier=,?q=,?limit=).POST /api/v1/memory/{id}/promote: Promote a Bronze or Silver entry to Gold (requires operator write permission).DELETE /api/v1/memory/{id}: Delete an entry and cascade through derived descendants using a recursive CTE.