Sibyl

Sibyl Site + Oracle API

FastAPI oracle site -- SQLite visits/downloads/queries, Carousel AI routing, public query endpoint.

Sibyl Site + Oracle API (v2026-08-02T101544Z-ab2bbdebf5) 2026-08-13 | FastAPI oracle site -- SQLite visits/downloads/queries, Carousel AI routing, public query endpoint. 1 - API ENDPOINTS - handles HTTP requests index() GET / apps/sibyl-site/server.py:40 visit() POST /api/visit apps/sibyl-site/server.py:51 download() POST /api/download apps/sibyl-site/server.py:70 query() POST /api/query apps/sibyl-site/server.py:92 visit data download data query request 2 - DATABASE OPERATIONS - interacts with SQLite visits.db CREATE TABLE visits CREATE TABLE downloads _db() sqlite3.connect apps/sibyl-site/server.py:27 visit record 3 - CAROUSEL AI ROUTING - handles AI queries _carousel_ask() carousel.call.ask apps/sibyl-site/server.py:120 query() _connection_meta apps/sibyl-site/server.py:92 AI query 1. POST /api/visit -> visits.db 2. POST /api/download logged 3. POST /api/query -> query() 4. _carousel_ask() if available 5. _db() writes every row Visit Request Payload { "ip": "192.168.1.1", "forwarded": "10.0.0.1", "user_agent": "Mozilla/5.0"} } Query Request Payload { "query": "What is the meaning of life?", "model_tier": "standard" } Carousel AI routing is optional and depends on _CAROUSEL_AVAILABLE. The daemon and KevinProxy components are not directly involved in this dataflow. Legend actor = initiates work · process = code path · store = state on disk · bus = durable queue · dashed = separate process cyan = request flow · pink = state read/write · dashed green = pull / return path · red = refusal As of 2026-08-13 14:13 UTC, from commit 3f277b3

Provenance

This drawing is generated, not drawn. It is rebuilt from the source files below, so when they change the picture changes — a diagram here cannot quietly describe a system that no longer works this way.

Owner
Sibyl
Slug
sibyl-site
Rendered
2026-08-02T101544Z
From commit
ab2bbdebf5
Updated
13 Aug 2026, 14:13 UTC
Sources at
3f277b3
Watches
2 paths
  • apps/sibyl-site
  • apps/sibyl