Connector layers
An agent compiles only when its required capability can be resolved through all of these layers.
Current connectors
The repository contains:- Synthetic commerce: credential-free Mandala Bean Co. data and mock procurement capabilities for repeatable tests.
- ShipHero: catalog, inventory, sales, purchase-order, and vendor data sync.
- Trello: supporting business and open-order records used by workspace questions and procurement coverage.
Workspace data catalog
Imported records are profiled into a workspace data catalog. The catalog records dataset identity, shape, maintained counts, freshness, source coverage, and a schema fingerprint. Capability mapping versions connect a skill’s declared business fields to concrete catalog datasets. Activated agents bind to an immutable mapping version so a later connector change cannot silently reinterpret an existing workflow. Before a real-data Sandbox or manual agent run, Mandala checks that the mapping still matches the current catalog. Catalog drift triggers a refresh or blocks the run instead of guessing.Sync lifecycle
The connector worker:- claims an enabled installation;
- authenticates with the provider using server-side credentials;
- fetches a bounded page of records;
- normalizes records and source links;
- upserts snapshots with stable external ids;
- advances a signed pagination cursor;
- records success, error, and freshness state; and
- publishes changed-record events for downstream catalog and Context Engine work.
Health and freshness
Mandala treats these as different questions:- Installed: does the workspace have a connector record?
- Authenticated: can the server use the configured credentials?
- Granted: may this workspace use a particular capability?
- Healthy: is the provider reachable and schema-compatible?
- Fresh: are the required records recent enough for this workflow?
- Complete: did every required source participate successfully?
Adding a connector
A production connector requires more than an API client:- Define a stable connector and versioned capability catalog.
- Classify fields and explicitly approve model-visible paths.
- Normalize provider records into the external-record contract.
- Implement cursor-safe, retry-safe sync and health reporting.
- Add workspace installation, grant, and policy setup.
- Add catalog mapping and schema-drift tests.
- For writes, register a controlled executor with input/output validation, idempotency, timeout, retry, reconciliation, approval, and audit behavior.
- Prove tenant isolation and secret redaction before enabling the connector.