// CONTENTS Part 10 · AI operations

// PART 10

Consent and memory

Chapter 44 / 60 2 min read English Part 10 of 15

What the platform remembers, and what it may do without asking, are both governed. This page covers knowledge collections, conversation memory, redaction and the consent gates.

Knowledge base (memory that answers)

Vector collections emerge automatically from the folder structure within a bot’s .gbkb directory. Each folder becomes a distinct collection, indexed separately and activated independently; the folder name is the identifier used with the USE KB keyword. Documents are indexed as whole-file records — there is no chunking step and no overlap, which is why long documents can lose precision (documented September 2026). The indexer skips files above 10 MiB and unsupported types; caps are 100,000 documents per bot and 50 MiB per document.

Conversation memory

Message history persists in PostgreSQL (message_history); per-bot Vault settings include history-limit (how many turns feed the prompt). Episodic memory thresholds are bot configuration (episodic-memory-threshold in config.csv). The desktop editions additionally encrypt message text at rest (content_encrypted); on those installs reconstruct a turn from role, llm_model, llm_engine, llm_provider and created_at rather than from plaintext.

Run events and redaction

The run-event stream (GB_RUN_EVENTS) records what a turn did. Redaction is part of the pipeline (pipeline/event_sink/redactor.rs): labels carry the bot, org, provider, model and channel — never message text, a phone number or an e-mail address; bot and org identifiers are hashed before they leave the process. Retention is GB_RUN_EVENTS_RETENTION_DAYS.

Two consent systems exist, for different scopes:

Surface Mechanism Notes
Approvals (server) botconsent approvals store; signing key from GB_APPROVALS_SIGNING_KEY, otherwise a fresh per-process random key set the variable if approvals must survive a restart
VM consent (desktop) one gate (pipeline/vm_consent/); every VM exec requires a ticket the gate issues; grants live in app_permissions as vm:<agent>:<thread> with conversation scope “Permitir tudo” is VM-only and never covers protected paths (agent credentials); only the owner may resolve a card

Desktop agent bridges run pinned CLI versions with forced permission prompts (Codex @openai/codex@0.171.0 with approvalPolicy:"untrusted"; Claude Code 2.1.330 stream-json with --permission-prompt-tool stdio) and self-check that the CLI really asks — otherwise turns refuse with agent_unsafe_version.

Browser task memory

Browsing facts (GET /api/browser/memory) are stored per user, keyed by URL, with visit count and last-seen; top_facts ranks them with a recency-weighted score so frequently visited pages stay near the top. DELETE /api/browser/memory purges the caller’s facts. Facts are only written on successful steps; a failed step records its note in the progress document but contributes no memory. Deletion and purge are the data-subject tools for this surface — the compliance checklist’s “right to deletion” maps here.

Found a mistake? Open an issue · All books

// SEARCH ESC
Pagefind · 236 pages · 4 books Enter to open ↑ ↓ to move