AENET.cloud PUBLIC GATEWAY
K.PUBLIC.GATEWAY
architecture K.PUBLIC.ARCHITECTURE

AENET ARCHITECTURE

AENET Architecture

How the AENET public gateway is composed: layers, data flow, API flow and the public/private boundary.

SYSTEM STRUCTURE VISUAL

Public traffic, static web, public API, sanitized snapshots, and private boundary are shown as a one-way display path.

7flows 5layers 17systems

API Flow

The Public API is a bounded read-only surface. It reads public snapshots and services, returns a consistent envelope, rejects preview/private routes with 403, and routes the single write path (early access registration) to D1 — never to the core.

  • ClientGET /api/v1/*read-only public endpoints
  • GET /api/v1/*Public snapshots + servicesstatus, time, architecture, queue, roadmap
  • Public snapshots + servicesClientconsistent JSON envelope
  • POST /api/v1/early-access/registerValidation + D1the only write path, never to the core
  • Client/preview/* and private routes403 — intentionally unavailable

Data direction Snapshots → API (read). Early access → D1 (write, only sanctioned path).

Security boundary Read-only, bounded, no authentication, no API keys issued, no core access.

Data Flow

Sanitized snapshots are exported one-way from the core, validated, versioned with a content hash and copied into web/public-data/. The UI and Public API read those snapshots. Anonymous traffic flows in the opposite direction as an observation signal and is reduced to aggregates.

  • AENET CoreSanitized snapshotexport, one-way, contract-gated
  • Sanitized snapshotpublic-data/*.jsonvalidation + version + contentHash
  • public-data/*.jsonweb/public-data/static host
  • web/public-data/Public pages / APIrendered read-only
  • VisitorTraffic channelanonymous observation events
  • Traffic channelPublic traffic summaryaggregates only, no raw publish

Data direction Core → public for content; visitor → aggregates for observation.

Security boundary Snapshots are sanitized before publish; raw traffic events are never published.

Development Flow

Curated content (articles, research, development log, roadmap) and curated snapshots are validated by the content index builder, enveloped with version/generatedAt/contentHash, and copied into web/public-data/. Everything is then deployable as static assets. The verification suite gates every change.

  • content/ + public-data/build-public-indexparse front matter, generate snapshots
  • build-public-indexpublic-data/*.jsonvalidate + envelope + hash
  • public-data/*.jsonweb/public-data/static copy
  • web/Wrangler deploystatic assets to Cloudflare edge
  • Any changenpm run checkverification gates: boundary, routes, contracts

Data direction Content → build → public-data → web → edge. One-way.

Security boundary Content is public-safe by construction; verification fails the build on boundary violations.

Public Gateway Architecture

The public gateway is a static-first, read-only observation surface. It layers a Cloudflare edge, a static front end, a bounded public API, sanitized snapshots and public services in front of an unreachable private boundary.

  • Internetaenet.cloudTLS + edge routing
  • aenet.cloudStatic Web / Public APIHTML, assets, read-only JSON API
  • Static Web / Public APIpublic-data/*.jsonsanitized pre-generated snapshots
  • public-data/*.jsonAENET Corenever — reverse path is forbidden

Data direction Core → sanitized snapshot → public. Public → core: never.

Security boundary One-way and read-only. The gateway can never query, proxy or control the core.

Public / Private Boundary

Everything public sits on one side; the AENET Core sits on the other. The only sanctioned crossing is the export of sanitized snapshots through the snapshot contract. Early Access is the only public write path, and it writes only to D1 — never through the core.

  • Public gatewaySanitized snapshotcore exports only sanitized data
  • Sanitized snapshotPublic pages / APIstatic + read-only
  • Public write pathD1early access registration only
  • Public sideAENET Coreforbidden: no proxy, no live query, no control

Data direction Core-to-public only. Early access → D1 only.

Security boundary forbiddenReverse: true. The core is labeled PRIVATE SYSTEM — NOT PUBLICLY ROUTABLE.

Search Flow

Public knowledge (knowledge blocks, content, public-data, locales, templates) is compiled at build time by the Go Search Compiler into static HTML with metadata, JSON-LD, sitemaps, hreflang sets and canonical URLs. The static output lands in web/, and Cloudflare serves it at the edge. The worker still owns routing, API and security.

  • Knowledge + content + public-dataGo Search Compilerbuild-time compilation, deterministic
  • Go Search Compilerweb/en|th|zh-cnfull static HTML pages
  • Go Search Compilersitemap + robots + search-graphcrawl surface
  • web/Wrangler deploystatic assets to Cloudflare edge
  • CrawlersCloudflare edgecrawlable, fast, static-first

Data direction Knowledge → compiler → static web → edge → crawlers/people. One-way, build-time.

Security boundary The compiler reads only allow-listed public sources and never touches the core, private memory or raw analytics.

Time Flow

The server clock feeds the public time service, which returns canonical UTC timestamps with an explicit quality (SERVER_UTC today). The UI shows a live time rail using one baseline fetch plus a monotonic client clock. Atomic verification is never claimed without a verified source.

  • Server clock (UTC)Time servicecanonical source, SERVER_UTC quality
  • Time serviceGET /api/v1/timetimestamp + quality, never fake precision
  • GET /api/v1/timeUI time railone baseline fetch + monotonic client clock
  • Atomic sourceATOMIC_VERIFIEDfuture — only when verified, atomicVerified=false today

Data direction Server clock → time service → API/UI. Read-only.

Security boundary Read-only time; exposes no internal clocks and no identity.