Skip to content

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 FTS5 virtual tables (memory_entries_fts, migration 0006_v200_memory.sql) inside the single controller pod.
  • PostgreSQL HA: Uses native tsvector full-text search indexes (0005_v200_memory.sql) shared across controller replicas.
  • Tenant Partitioning: Every memory entry is scoped to its owning Automation tenant_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.

Operational memory is off by default (memory.enabled=false). Enable it in Helm values with one flag:

memory:
enabled: true

Or on the command line:

Terminal window
helm upgrade --install faber oci://ghcr.io/faberops/charts/faber \
--version 2.0.0 \
--namespace faber \
--set memory.enabled=true

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 RecallBrief is fenced, capped at 3072 bytes and 8 entries, 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_search engine tool.

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.

Operational memory is strictly advisory context for investigations. It can never influence autonomy decisions or trust promotion:

  • internal/operator/trust evaluates promotion exclusively from AutomationRun.status.verification outcomes.
  • An AST boundary test (internal/operator/memory/boundary_test.go) fails CI if internal/operator/trust ever imports internal/operator/memory or internal/store.

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.

Inspect, search, and delete memory entries from the command line:

Terminal window
# List memory entries (optionally filter by namespace or tier)
faberctl memory list --namespace faber
faberctl memory list --tier gold
# Full-text search across operational memory
faberctl memory search "oomkill checkout" --namespace faber
# Delete an entry and any derived descendants cleanly
faberctl memory forget <memory-id>
  • 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.