Skip to main content
Run through this checklist before every production deployment, not just the first one. Configuration changes, SDK upgrades, and new features each warrant a fresh review.

Authentication and Security

Credential management is the foundation of a secure Synap integration. A compromised API key gives an attacker full access to your instance’s memory store.
1

API key stored in a secrets manager

Never hardcode API keys in source code, environment files committed to version control, or Docker images. Use a proper secrets manager:
  • AWS: Secrets Manager or SSM Parameter Store
  • GCP: Secret Manager
  • Azure: Key Vault
  • Self-hosted: HashiCorp Vault
API key is stored in a secrets manager (not in code, .env files, or container images)
2

API key rotation schedule established

API keys should be rotated periodically. You can have multiple active keys per instance, so rotation is zero-downtime: generate a new key, roll it out, then revoke the old one.
  • Recommended rotation cadence: every 90 days for standard deployments, every 30 days for high-security environments
  • Document the rotation procedure in your team’s runbook
  • Automate rotation if possible. With the CLI, run api-keys create and api-keys revoke as two steps so you keep the grace period: api-keys rotate revokes the old key at once.
A long-running process needs one extra step. An SDK keeps the credential it was constructed with for its whole life, so rolling the new key into your secrets manager is not by itself enough to make a live process use it. If you construct with MaximemSynapSDK(api_key=...), the new key produces a new SDK and takes effect immediately. Switch your code to the new SDK, then await old_sdk.shutdown(). The same applies to SynapClient in JavaScript. If you construct with an explicit instance_id, that id is the identity and you get the existing SDK back (still on the old key), so await sdk.shutdown() before reconstructing, or restart the worker. Do that before revoking the old key, or in-flight requests will start failing authentication.
API key rotation schedule is established and documented
The runbook says how running processes pick up the new key (reconstruct after shutdown(), or restart), and that this happens before the old key is revoked
3

One API key per SDK, on a supported version

If a single process ever holds more than one Synap API key (a key per customer or tenant, staging and production side by side, or a worker that switches keys between jobs) pin maximem-synap ≥ 0.4.1.On 0.4.0 and earlier, the second and later SDKs constructed in one process silently adopted the first one’s credentials, so their reads returned the first key’s memory and their writes were committed against that instance. It produced no error and no log line. A process that uses a single API key was never affected.
maximem-synap is 0.4.1 or later (we recommend the latest release) if any process uses more than one API key

SDK Configuration

Proper SDK configuration ensures your integration performs well under production load and does not generate excessive logging or resource usage. These settings are Python. Create the SDK with them once:
1

Log level set appropriately

The default, "WARNING", is right for production. Avoid "DEBUG" and "INFO": they log user, customer and conversation ids. "ERROR" also hides the SDK’s retry warnings. In JavaScript, pass a logger function instead.
log_level is "WARNING"
2

Timeouts configured for your SLA

Default timeouts are suitable for most applications, but review them against your latency requirements:In the JavaScript SDK only read takes effect, and it limits the whole request.
Timeouts are reviewed and aligned with your application’s SLA requirements
3

Retry policy tuned

The default retry policy (3 attempts, exponential backoff with jitter) is appropriate for most use cases. Retried: connection errors, 429, 500 and 503, and a context fetch that timed out. Not retried: 400, 401, 402, 404, 409, credit or trial limits, and a write (create, batch, record a message) that timed out after it was sent. Adjust if needed:
  • High-throughput systems: Reduce max_attempts to 2 to avoid retry storms
  • Critical operations: Increase max_attempts to 5 for reliability
  • Low-latency paths: Reduce backoff_max to limit total retry time
Retry policy is reviewed and tuned for your workload profile
4

Cache backend enabled

SQLite is the default (Python only). Point storage_path at a writable folder; in a container, use a mounted or temporary path. On a read-only path, Python 0.6.4 and later turn the cache off with a warning; earlier versions fail on the first fetch. To run without a local cache, set cache_backend=None.
The cache folder (storage_path) is writable, or the cache is turned off on purpose with cache_backend=None

Memory Architecture

Synap generates each Instance’s memory configuration automatically from the use-case file you upload. Before going to production, make sure that file reflects the agent you are actually deploying.
1

Use-case file accurately describes the production agent

The use-case Markdown you uploaded at instance creation drives every memory decision: which categories are extracted, how scopes are partitioned, what retention behavior applies. Review it now. The file cannot be replaced after the instance exists, so if the agent’s purpose, audience, or compliance requirements have shifted since you created the instance, create a new instance from an updated file before launch.
Use-case file reflects the production agent’s behavior, audience, and compliance posture
2

Verify retrieval quality on representative queries

Before going live, run a handful of representative production queries against the Instance and confirm the returned memories are relevant and complete. Catch retrieval drift before users do.
Retrieval quality validated on at least 10 representative queries
3

Wait for the memory architecture build

Open the instance in the Dashboard and wait until its memory architecture build has finished. Do not send production traffic before then: calls fail with InstanceNotReadyError.
The memory architecture build is complete

Sensitive Data

Synap detects sensitive values in the content you send and applies the policy you set. Until somebody reviews and approves that policy, your account is watching only: values are counted and reported, and nothing is changed. Watching is a reasonable place to start, but it should be a decision rather than an oversight.
1

Detection findings reviewed against real traffic

Open Sensitive data in the Dashboard and read the What we found tab. It lists what has actually been detected in your traffic, by field type, with counts and how many of your users each appeared for.Do this before you set anything. The list tells you what decision you are actually making, and it routinely contains something the team did not expect to be there.
The findings list has been reviewed by someone who knows what the data should contain
2

Policy set, tested, and approved by a named person

Set a policy, either from a preset or row by row, then check it in the Try it tab with text that looks like your real content before you approve it. Nothing takes effect until approval, and approval records who did it and when.Confirm you know which of your choices affect your application. Keep it, Protect it and Never send it to a third party all leave your reads unchanged. Do not store it and Protect it from your app too do not.
A policy is approved (not left as a draft), and the approver is recorded
The team knows which chosen settings change what the application reads back, and the application has been tested against them
3

Policy scope matches your instance layout

The policy applies to the whole account by default. If one instance handles materially different data, such as a regulated workload alongside a general one, give that instance its own policy rather than making the account-wide setting stricter for everything.
Policy scope (whole account, or per instance) is a deliberate choice
4

Restricted keys issued where a tool does not need values

An API key’s grant can only narrow what your policy allows, never widen it. Internal dashboards, support tools, and analytics jobs usually need to read memories without reading values; give those a masked or none key rather than a full one. Set it with the CLI: privacy credential-grant --credential-id <id> --grant masked.Allow up to about a minute for a grant change to take effect on live traffic.
Any key used by a tool that does not need real values is restricted
5

Audit export and erasure path tested once, before you need them

Export the Activity trail once and confirm the file opens in whatever your compliance team uses. Confirm the team knows that erasing a person is requested through [email protected] and is irreversible, and that the request needs an instance and a user_id or customer_id.
Activity export has been produced and opened at least once
The runbook names who requests an erasure, and what information the request must carry
Detection has limits worth knowing before you rely on it: health and origin/belief data are not detected, name detection depends on a separate service, and images, audio and scanned documents are not covered. See Sensitive Data Protection.

Error Handling

Robust error handling ensures your application degrades gracefully when Synap encounters issues, rather than crashing or returning empty responses.
1

Transient and permanent errors handled

Handle transient and permanent errors differently:
Error handling distinguishes between transient and permanent errors
2

Transient errors logged with correlation_id

Every SynapError has a correlation_id attribute. It is set for errors that came back from Synap and is None for errors the SDK raised before sending anything. Always log it: this is the primary identifier Synap support uses to trace issues.
All error logs include the correlation_id from the Synap error
3

Graceful degradation implemented

Your application should continue functioning when Synap is unavailable, just without memory context. This is the single most important resilience pattern.
Application continues working (without memory) when Synap is unavailable
4

Rate limit handling with retry_after

A RateLimitError reaches you after the SDK has already retried. If e.reason is set, your credits or trial cap are used up: do not retry; top up or contact us. Otherwise wait and retry once.
Rate limits are retried once, and credit limits are not retried

Monitoring

Observability is critical for understanding how your Synap integration performs in production and catching issues before they impact users.
1

Dashboard analytics reviewed regularly

  • The Dashboard Overview shows total memories, requests, active instances and token savings.
  • The Requests page lists each call with its status, latency and correlation ID.
  • Credits & Usage → Usage shows credits by operation and a P95 latency over recent requests.
Establish a regular review cadence (at least weekly).
Dashboard analytics are reviewed on a regular schedule
2

P95 latency baseline established

Synap does not publish per-operation latency SLOs; real numbers depend on your MACA configuration, payload sizes, retrieval mode, network path, and traffic shape. Measure your own staging baseline and set alert thresholds from that baseline.Recommended approach:
  1. Run a representative mix of memories.create(), context.fetch() (both fast and accurate), and memories.batch_create() against your staging Instance.
  2. Record P50 / P95 / P99 for each operation over a representative window (at least 1 hour of realistic traffic).
  3. Set production alert thresholds at a multiple of your staging P95 (e.g., 2-3× P95) so normal variance doesn’t page you.
  4. Re-baseline after any MACA change, SDK upgrade, or significant traffic-pattern shift.
P95 latency baselines are established from your own staging measurements and alert thresholds are derived from those baselines
3

Error rate alerts configured

Set up alerts in your monitoring system (Datadog, PagerDuty, CloudWatch, etc.) for:
  • Synap API error rate exceeding 1% over 5 minutes
  • Authentication failures (any occurrence)
  • Rate limit hits exceeding your expected threshold
  • Retrieval returning zero results when memories are expected
Error rate alerts are configured in your monitoring platform
4

Cost tracking enabled

Usage is billed in credits per operation: Retrieval and Ingestion. See it under Credits & Usage → Usage, and read your balance in code with sdk.credits.get_balance(). A fast fetch costs 1 credit per search query and an accurate one costs 3.
Usage and cost tracking is enabled and reviewed regularly

Performance

Optimization ensures your integration meets latency requirements and minimizes unnecessary resource usage.
1

Using fast mode for latency-sensitive paths

Use mode="fast" for any operation in the critical path of user-facing requests. Reserve mode="accurate" for background tasks, research queries, or paths where the user is willing to wait.
Fast mode is used for all latency-sensitive code paths
2

Batch ingestion for bulk operations

When ingesting multiple documents, use batch_create() instead of multiple create() calls:
Batch ingestion is used for all bulk operations
3

Compaction for long conversations

Compaction runs automatically as a conversation grows. Call compact() only to force it: it finishes in the background, so read the result with get_compacted() afterwards.
Context compaction is configured for conversations that may exceed token budgets
4

Cache is enabled

Verify the cache backend is active and functioning:
In Python, cache.stats() is synchronous and returns a dict with enabled, client_id, base_path, total_entries, total_bytes, and per-backend stats under backends. If enabled is False or total_entries stays at 0 over time, your cache backend isn’t engaged; check SDKConfig.cache_backend. In JavaScript, cache.stats() returns the number of cached bundles and items; the JavaScript cache only holds prefetched context.
Cache backend is enabled and accumulating entries

Operational Readiness

Beyond code and configuration, production readiness requires documented procedures and team alignment.
1

Team roles assigned appropriately

In the Synap Dashboard, assign roles based on the principle of least privilege:
Team members have appropriate roles (not everyone is Owner)
2

Credential rotation runbook documented

Document the step-by-step procedure for rotating API keys:
  1. Generate new key in Dashboard
  2. Update secrets manager with new key
  3. Deploy application with updated secret reference
  4. Verify the new key with a real test call from one worker before revoking the old key.
  5. Revoke old key after grace period (48 hours). A revoked key can keep working for up to a minute.
Credential rotation runbook is documented and accessible to the operations team
3

Shut the SDK down on exit

Call await sdk.shutdown() when your process stops. It sends pending telemetry and closes connections.
await sdk.shutdown() runs when the process stops
4

Support channel documented

Ensure your team knows how to get help:
Support channels are documented and the team knows how to report issues

Quick Summary

Use this condensed checklist for quick pre-deployment reviews:

Next Steps

Migrate from Competitors

Mapping your existing memory system (Mem0, Zep, Letta, SuperMemory) to Synap.

Dashboard

What each part of the Synap dashboard is for.

Error Handling

Complete reference for all Synap error types and handling patterns.