Two separate pipelines
Indexing
Changed business records enter an outbox. Workers project only policy-approved fields into provider documents, lease jobs, send add, replace, or delete operations, and record completion in a durable ledger. The indexing system includes:- tenant-scoped document ids;
- policy-version snapshots;
- duplicate prevention;
- batch admission and rate accounting;
- retry, crash recovery, tombstones, and reconciliation;
- provider health and processing status; and
- safe cleanup when a workspace disables the provider.
Retrieval
During an eligible run, Mandala builds a bounded request containing the workspace scope, allowed record types, filters, result limit, and text-size budget. Retrieved items are validated, deduplicated, trimmed, and attached to the context packet with provenance. The final packet records provider, status, bounds, timing, fallback reason, and citations. This makes it possible to distinguish data the workflow loaded directly from operational memory added by Context Engine.Safety rules
Context Engine retrieval is allowed only when all relevant gates pass:- the workspace selected a provider;
- server-side retrieval is explicitly enabled;
- the provider is operational and healthy;
- the record and field policy permits indexing and retrieval;
- the request is scoped to the selected workspace;
- the current run mode is eligible; and
- configured result and character limits are respected.
A record being indexed does not prove that a particular recommendation used it. Look for the work item’s
operationalContext provenance and citations.Degraded behavior
Provider failure does not silently become unbounded or uncited context. Mandala records a specific status and fallback reason, such as disabled context, provider unavailability, policy rejection, empty results, or budget limits. A workflow may continue using its directly loaded connector evidence when its skill and policy allow that fallback. If required context is missing, the recommendation blocks.Workspace settings
Check status with:off and supermemory. Changing the provider requires the current configuration version and an audit reason:
Operations
Indexing is driven by the internal worker route at/api/internal/mandala/context-index/run, protected by CONTEXT_INDEX_WORKER_SECRET or the shared cron secret. Hosted environments also require SUPERMEMORY_API_KEY and CONTEXT_RETRIEVAL_ENABLED=true for retrieval.
Use Context Engine readiness, provider health, ledger state, and work-item provenance as separate checks. A successful provider search outside Mandala is not enough to prove end-to-end use.