System Architecture

Sovereign Edge Gateway · Verify-then-Execute
MOD_01 // THE_SENTRY_BRIDGE

Hardened Ingress

The Sentry acts as a "Fail-Closed" perimeter. Every request is treated as untrusted until the environment context and initData are resolved. Validated requests are passed to the Brain, while identity conflicts trigger an immediate 403 Forbidden response.

MOD_02 // THE_DETERMINISTIC_BRAIN

Unidirectional Logic

A high-performance state machine utilizing FastAPI and SQLite (WAL Mode). Every transaction enforces a strict 60/30/10 Allocation Protocol:

Verified via a 1-Million Transaction stress test to ensure zero write-collisions on edge hardware.

MOD_03 // THE_EXECUTION_BODY

Stateless Surface

The Flutter-based "Body" communicates exclusively through the Sentry Bridge. It features native support for Telegram WebApp initData and sovereign backup bridges for local-first recovery. Path isolation prevents side-channel data leakage.

MOD_04 // INFRASTRUCTURE

Tunneling Resilience

Optimized for Zero Trust tunnels (Reference Implementation: Cloudflare Tunnel). The architecture is engineered to eliminate interstitial handshakes and remain portable; the .db vault can be re-anchored to any compliant node without state loss.