Under the Hood of the Meynos Governance Kernel
Explore the microservice topology, event distribution paths, dynamic SQL AST rewriting engine, and cryptographic verification algorithms that power Meynos.
End-to-End Event & Query Pipeline
Data mutations stream through high-speed NATS JetStream subjects, while read queries pass through an inline AST masking parser that guarantees zero raw PII is ever transmitted to unauthorized AI agents or external consumers.
f1 daemon validates HMAC, wraps data in canonical CloudEvents envelope, publishes to NATS.
Consumes stream, builds dynamic ON CONFLICT DO UPDATE merges, isolates failures to DLQ.
Intercepts incoming query, rewrites AST with masking expressions based on caller role, clamps row limit.
Computes SHA-256 fingerprint, detects column addition or removal, flags BREAKING drift.
Microservice Component Specifications
High-Throughput Ingestion & Verification
Sub-millisecond ingress webhook gateway. Validates HMAC-SHA256 signatures, normalizes payloads into canonical Meynos CloudEvents envelopes, and publishes onto NATS JetStream subjects (e.g. meynos.cdc.v1.>).
Idempotent Storage & Lakehouse Dispatcher
Consumes durable NATS JetStream streams, generates dynamic idempotent ON CONFLICT DO UPDATE SQL merges, commits transactions, and handles error isolation with automatic Dead-Letter Queue (DLQ) routing.
Governed Serving & Dynamic AST Engine
High-performance data serving kernel. Rewrites SQL AST queries on the fly using PostgresMaskingQueryBuilder (REGEXP_REPLACE, MD5, REDACT), enforces McpQueryLimiter row/token caps, and serves dual-mode REST, GraphQL, and native MCP JSON-RPC 2.0.
Continuous Schema Drift Radar
Periodically introspects live database catalogs (PostgreSQL, Iceberg, Delta Lake), computes canonical SHA-256 fingerprints (name:type:nullable:pk), and emits BREAKING vs NON_BREAKING schema drift alerts over NATS.
Canonical Platform Contract Hub
The single source of truth for platform schemas: meynos_envelope.json, compiled_spec.json, and schema_drift.json. Automated codegen keeps Python, C#, and TypeScript type definitions 100% synchronized.
Production & Dev Infrastructure Mesh
Wired orchestration environment with zero hardcoding. Configures Envoy proxy routing, PostgreSQL Control Plane with Row-Level Security (RLS), and NATS JetStream message brokers.