Diagram

Draw.io source: documentations/architecture/JobSim_Simple_Diagrams.drawio

Pipeline Stages

StageWritesReadsSource
API writemessages, conversations, channels.updated_at, simulation_state_events, unread_countsauth context, channel/conversation membership, simulation lifecyclesrc/core/messages/message_create_service.py
Agent processingagent replies in messages; diagnostics in autogen-logs, simulation_audit_events, ai_usage_eventsmessages, characters, settings, tasks, memory, workplace contextsrc/core/messages/message_background.py, src/core/agents/agent_monitor.py
Agent memoryagent_memories, agent_user_memory_summary; optional mem0 storescoped message history, org policy, org docssrc/core/autogen/mongo_driven_memory.py, src/core/autogen/mem0_memory.py
Knowledge indexingQdrant vectors in jobsim_org_knowledgeorg_knowledge_docssrc/memory/org_knowledge_qdrant.py
Analyticscommunication_analysis, user_metrics, ai_usage_eventsmessages, users, existing metricssrc/core/analytics/analytics_processor.py, src/core/analytics/user_analytics.py
Task evaluationtask_evaluations, follow-ups, consequences, relationship edges, competency snapshots, session assessmentssubmissions, task criteria, org knowledge, workplace framesrc/core/tasks/task_evaluation_service.py, src/core/tasks/task_followup_persistence_service.py
Replay and diagnosticsread-only response shapingautogen-logs, simulation_audit_events, state events, outcomessrc/apis/simulation_admin/replay.py, src/apis/simulation_admin/analytics.py

Storage Rules

  • MongoDB is source of truth for product state: users, orgs, channels, conversations, messages, tasks, settings, characters, evaluations, audit state, and outcomes.
  • Qdrant stores derived vectors only. Payloads include organization_id, doc_id, title, chunk index, and chunk text. Retrieval enforces org scope in Qdrant filters.
  • mem0 is optional long-horizon memory and is attached per agent only when org settings enable it.
  • autogen-logs has 30-day TTL. simulation_audit_events has 90-day TTL. Both are debug/audit streams, not primary domain state.
  • ai_usage_events is normalized cost telemetry. Legacy token_usage can be backfilled into it.