Proposal: move CAIPE's default persistence from MongoDB to DocumentDB #2419
sriaradhyula
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Proposal
Move CAIPE's default persistence provider from MongoDB Community Server to DocumentDB in a future release, while continuing to support MongoDB as an operator choice.
DocumentDB is a MongoDB-compatible document database built on PostgreSQL and licensed under MIT. MongoDB Community Server is distributed under the Server Side Public License. For an OSS-first distribution, MIT is the simpler and more permissive default.
This is a staged change:
setup-caipe.sh, and Helm.Why discuss this now?
MONGODB_URI/MONGODB_DATABASEsettings.Complete MongoDB dependency inventory
The audit covered application code, integration services, deployment manifests, setup automation, tests, and migration tooling. These are the places that must remain compatible:
users,user_settings,user_preferences,conversations,messages,turns,conversation_bookmarks,sharing_access,feedback,in_app_notifications,auth_token_cache; conversation sharing, pin/archive/delete, audit views, statistics, and admin cleanupdynamic_agents,mcp_servers,llm_models,platform_config,review_configs,policies,workflow_runs,publication_requestsagent_skills,builtin_skill_scans,skill_hubs,hub_skills,skill_revisions,catalog_api_keys; catalog loading, hub crawling, scan results/overrides, and skill revision historyservice_accounts,credential_secret_refs,credential_encrypted_payloads,oauth_connectors,provider_connections,credential_migration_previewsteams,identity_providers,identity_group_sync_rules,identity_group_sync_runs,external_groups,external_group_team_links,team_membership_sources,idp_sync_settings,idp_sync_runs,rebac_resources,rebac_relationships,policy_rules,policy_change_sets,rebac_enforcement_status,rebac_drift_findings; schema/data migration bookkeeping and self-checksMongoDBSavercollections (checkpoints_conversation,checkpoint_writes_conversation), GridFS (agent_files.files,agent_files.chunks), TTL handling, file APIs, conversation deletion, and health checksschedules,schedule_one_off_runs,autonomous_tasks,autonomous_runs,trigger_instances,webex_thread_map; dynamic-agent lookups and publishing completed runs intoconversations/messageschannel_team_mappings,slack_channel_agent_routes,slack_channel_grants,slack_link_nonces,slack_user_metrics, plusteams,dynamic_agents,service_accounts, conversations/messages, route resolution, auto-assignment, identity linking, admin sync, and feedbackwebex_space_team_mappings,webex_space_agent_routes,webex_space_grants,webex_direct_user_routes,webex_link_nonces,webex_user_metrics, plusteams,dynamic_agents, conversations/messages, route resolution, auto-assignment, identity linking, and admin syncrag_ingestion_sources,rag_collections,team_rag_tools, and legacyteam_kb_ownership. Vector/document content remains in Milvus/Neo4j; this proposal changes the MongoDB-backed ownership/configuration metadata onlydocker-compose.yaml,docker-compose.dev.yaml,.env.example,setup-caipe.sh, thecaipe-ui-mongodbsubchart and umbrella values, and the UI, Dynamic Agents, scheduler, autonomous-agents, Slack, and Webex chart Secret/config pathsMongo Express is MongoDB-specific operational tooling. It remains attached only to the MongoDB profile and is not started with DocumentDB.
What draft PR #2418 adds
caipe-documentdbCompose profiles for production and development stacks.--database=mongodb|documentdb, andDATABASE_PROVIDERsupport.provider: mongodb|documentdbswitch and an opt-in DocumentDB values example.pg17-0.113.0. The upstream 0.114 release warning says active connections can close after two hours and recommends waiting for a fixed release for longer-running workloads.Compatibility evidence so far
MongoDBSavercheckpoint persistence passed.This evidence supports opt-in use. It is not yet sufficient to claim complete MongoDB behavioral parity or to change the default immediately.
Known constraints
retryWrites=falseand direct connection settings are required for the bundled DocumentDB path.tlsAllowInvalidCertificates=trueis acceptable only for local/in-cluster evaluation; production needs a trusted CA and strict verification.pg17-0.113.0pin must stay until an upstream release fixes the 0.114 long-lived-connection regression and passes CAIPE's matrix.Gates before changing the default
$lookup,$group, and deduplication paths.Feedback requested
All reactions