System CorePlatform APIs
Vitruvyan Docs
π Memory Orders API
π Location
- Service:
services/api_memory_orders/ - Pure core:
vitruvyan_core/core/governance/memory_orders/
πͺ Base URL / Port
- Config default:
MEMORY_API_PORT=8016(services/api_memory_orders/config.py)
Deploy note: other documents may refer to a different βfleetβ port. Treat docker-compose mapping as the source of truth.
π§ Endpoints (implemented)
Defined in services/api_memory_orders/api/routes.py:
GET /β service infoGET /healthβ simple health checkGET /health/ragβ full dependency + coherence health (returns503when degraded/critical)POST /coherenceβ drift analysis between Postgres and QdrantPOST /syncβ sync planning (planning only, no execution)GET /metricsβ Prometheus (defined inservices/api_memory_orders/main.py)
π§Ύ Request/Response models
See services/api_memory_orders/models/schemas.py.
π POST /coherence
Request (CoherenceRequest):
table: str = "entities"collection: str | nullembedded_column: str = "embedded"
Response (CoherenceResponse):
status: healthy|warning|criticaldrift_percentage: floatrecommendation: strpg_count: intqdrant_count: intdrift_absolute: inttimestamp: strtable: strcollection: str
π POST /sync
Request (SyncRequest):
mode: incremental|full(defaultincremental)table: str = "entities"collection: str | nulllimit: int = 1000
Response (SyncResponse):
operations: SyncOperationResponse[]estimated_duration_s: floatmode: strtotal_operations: int
βοΈ Env vars (service-level)
Loaded in services/api_memory_orders/config.py:
- Service:
MEMORY_API_PORT,LOG_LEVEL - Postgres:
POSTGRES_HOST,POSTGRES_PORT,POSTGRES_DB,POSTGRES_USER,POSTGRES_PASSWORD - Qdrant:
QDRANT_HOST,QDRANT_PORT,QDRANT_COLLECTION - Redis:
REDIS_HOST,REDIS_PORT,REDIS_DB,REDIS_URL - External checks:
EMBEDDING_API_URL,BABEL_GARDENS_URL - Coherence thresholds:
COHERENCE_THRESHOLD_HEALTHY,COHERENCE_THRESHOLD_WARNING - Audit:
MEMORY_AUDIT_TABLE - Flags:
ENABLE_AUTO_SYNC,ENABLE_PROMETHEUS