1. Edge Architecture Overview1. 边缘计算拓扑概览
CalmSharp runs natively on the Cloudflare global network without centralized origin servers:
CalmSharp 完全原生部署于 Cloudflare 全球边缘网络,无需中心化传统服务器:
- calmsharp-site Worker: Hostname routing, static pages generation, 301 redirects, security headers.
- calmsharp-friend Worker: AI Friend UI, streaming LLM gateway, Turnstile verification, auth & D1 database.
- Cloudflare D1: Serverless SQLite relational database storing users, sessions, memories, and audit logs.
- Cloudflare Workers AI: Direct inference on models like Llama 3.2 without third-party API exposure.
2. Administrative Control & Killswitches2. 管理控制权与紧急关停机制 (Killswitch)
Administrators maintain independent, programmatic killswitches backed by zero-plaintext credentials:
管理层拥有独立、程序化的熔断关停机制,由严格凭据保护:
POST /api/admin/killswitchwithaction: pause_generationhalts all model inference immediately with 503.POST /api/admin/killswitchwithaction: resumerestores normal operations.- Model cannot modify or bypass this gate under any circumstances.