원클릭으로
quanux-annex-architecture
Operating procedures and architecture for the QuanuX-Annex Data Ingestion Engine and NATS JetStream mesh.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Operating procedures and architecture for the QuanuX-Annex Data Ingestion Engine and NATS JetStream mesh.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Reference for OS and Kernel parameter optimization on the QuanuX Edge.
Reference for using the QuanuX Control CLI (quanuxctl).
Official Figma Developer MCP integration for QuanuX. Allows agents to inspect designs, extract variables, and generate code from Figma files.
The authoritative "School of Architecture" for building QuanuX Extensions (Sidecars). Enforces the QXP protocol, Go runtime preference, and privacy-first security model.
Instructions for operating and configuring the SignalR Bridge for TopstepX.
Guidelines for adding functions to the AST translation map for QuanuX-Annex duckdb transpiler
SOC 직업 분류 기준
| name | QuanuX-Annex Architecture |
| description | Operating procedures and architecture for the QuanuX-Annex Data Ingestion Engine and NATS JetStream mesh. |
QuanuX-Annex is the high-performance, zero-allocation C++ data ingestion engine layer inside the QuanuX cluster. It is designed for maximum throughput, hardware-enforced thread affinity, and strict High Availability (HA) failover. It hooks directly into the QUANUX.MARKET.TICK, QUANUX.EXECUTION.LOG, and QUANUX.SCHEMA.DRIFT NATS subjects.
The core ingestion loop avoids all Python/JVM garbage collection penalties by using the native nats.c library (<nats/nats.h>). It maps incoming byte streams directly into byte-aligned C++ structs defined in include/quanux/annex/TelemetryExhaust.hpp:
MarketTickExecutionLogSchemaDriftEventThe client operates on an async callback model NatsSubscriber.cpp, preventing event loop blocking.
The QuanuX-Annex binary is deployed as a highly tuned systemd service (quanux-annex.service) to a dedicated edge compute node (e.g., DigitalOcean c-2 class). It requires the CLOUD_TARGET_DO CMake flag to enable DigitalOcean ZarrResolver_DO behaviors.
It dynamically binds to the 10.10.10.5 internal VPC interface. It explicitly prevents on-node builds during normal operations to preserve CPU cycles (though Phase 11 testing utilized on-node compilation, this is documented Technical Debt).
Telemetry for the edge nodes is handled by Telegraf and Promtail. Telegraf is deployed via direct .deb package injection to bypass broken APT repositories, and its collection interval is dynamically injected via quanuxctl habitat sentinel --telemetry-interval <seconds>.
A Python mock injector (tests/nats_injector.py) uses the Python struct module to pack simulated payload structs (<QIddIIB format) into the exact byte-alignment required by the C++ engine over NATS, validating the wire layout without live market data.
The QuanuX-Annex Edge Node implements a cpp-httplib Remote Schema webhook listener for Hasura GraphQL.
GET/PUT transfers to DO Spaces natively in C++, significantly multiplying ingestion throughput.nlohmann::json DOM trees representing gigabytes of ticks natively in RAM, ZarrResolver_DO.cpp directly intercepts libcurl streams, mapping them into raw memory chunks, and using cpp-httplib's chunked provider to asynchronously stream the snprintf JSON representations directly back to Hasura. CPU bottlenecking is eradicated.quanuxctl/main.py is safely packaged and executed.NATS_URL is definitively hardened into permanent C++ object lifecycles, surviving all memory decaying scope drops.# Deploy Payload to Edge Node
quanuxctl deploy -p annex_core -t quanux_annex_node --type cpp_binary
# Inject Mock NATS Data
python tests/nats_injector.py --url nats://10.10.10.5:4222 --subject QUANUX.MARKET.TICK --type tick --count 1000
The QuanuX-Annex includes the QuanuXDuckToBQTranspiler, critically bridging native DuckDB operator commands to BigQuery Standard SQL text for bounded remote execution.
The CLI quanuxctl infra gcp-sql exposes 3 deterministic states:
validate: Formally analyze AST tree restrictions strictly against the allowed matrix without cloud networking.transpile: Emits exact semantic BigQuery string transformations dynamically without native execution.execute: Dispatches transpiled AST requests enforcing rigorous payload constraints (--timeout, --max-rows). Machine-readable JSON structural guarantees flow efficiently to automated CI test grids.SELECT, FROM, WHERE, GROUP BY, ORDER BY, LIMIT, leveraging exactly matching COUNT/SUM/AVG/MIN/MAX statistical equivalencies over live dual-mapped BQ remote environments.IN (SELECT...) expressions securely to uncorrelated memory tables.INNER JOIN.To completely eradicate state mutability, internal DROP/UPDATE/INSERT commands invoke an immediate systemic execution halt. All unverified syntax vectors encompassing deep outer, cross, natural joins, chained correlated subqueries, raw recursive combinations, window functions, and proprietary database schemas emit fatal AST rejections forcing analysts natively onto GCP tooling bounds.