Configuration groups
Use.env.example as the source list. Important groups are:
Only Supabase’s browser URL and anonymous key, the public site URL, and browser observability values should use
NEXT_PUBLIC_. Connector, model, service-role, provider, worker, signing, and workflow database secrets are server-only.
Durable workflow checkpoints
Local development uses the local Supabase Postgres database. Hosted environments must provide a direct server-only Postgres connection inMANDALA_WORKFLOW_DATABASE_URL and initialize the LangGraph checkpoint schema:
Scheduled workers
Production scheduling should invoke the secret-protected internal routes for connector sync, Context Engine indexing, email/account cleanup, and related maintenance. A healthy worker pipeline has more than a successful HTTP response. Verify:- a recent worker heartbeat;
- claimed and completed leases;
- no growing stuck or retry queue;
- provider authentication and rate-limit state;
- source and catalog freshness;
- reconciliation outcomes; and
- downstream evidence or provenance on a real bounded run.
Connector readiness
Treat these as separate release checks:- credentials are configured server-side;
- the workspace installation is enabled;
- required capabilities are granted;
- provider health is passing;
- sync is continuous, not a one-time snapshot;
- required datasets are fresh and complete;
- the workspace catalog matches the current schemas; and
- a Sandbox or controlled run uses the expected sources.
Context Engine readiness
Provider sync, indexing, retrieval, and actual use in a work item are separate states. Verify the ledger and processing queue, then inspect the work item’soperationalContext and citations.
The scheduled Context worker also drains outcome-unknown add and replace records through bounded, tenant-scoped provider inventory reads. It confirms only completed provider documents whose stable identifier, current canonical version, policy hash, and content hash still match. Missing, stale, failed, or unavailable results remain quarantined with capped exponential backoff; Mandala does not blindly resend an uncertain write.
If the provider is unavailable or policy-ineligible, Mandala should record a bounded fallback reason. Do not remove freshness or policy gates to make a demo pass.