Spaces:
Running
Running
Deploy Aureon OS (deploy/selfhost stack: nginx edge + fusion API x2 + console + HNC organ + redis + postgres; paper mode) (part 9)
002f18c verified |
Download flameborn/docs/ARCHITECTURE.md from GaryLeckey/aureon-os: direct link, hf CLI and curl.
- Browser
- Download file 1.35 kB
-
https://huggingface.co/spaces/GaryLeckey/aureon-os/resolve/main/flameborn/docs/ARCHITECTURE.md
- Command line
-
hf download hf://spaces/GaryLeckey/aureon-os/flameborn/docs/ARCHITECTURE.md
-
curl -L -o ARCHITECTURE.md https://huggingface.co/spaces/GaryLeckey/aureon-os/resolve/main/flameborn/docs/ARCHITECTURE.md
1.35 kB
Architecture
Legal execution model
Cloudflare-hosted web UI cannot safely or directly control a user's privileged local shell.
The supported model is:
Cloudflare or local web app -> browser -> localhost companion runtime -> PTY / shell or Docker sandbox
Components
Web app
index.htmlscript.jsstyle.cssserver.mjs
Responsibilities:
- AI chat
- provider routing
- Classroom features
- terminal/sandbox UI
- calling the companion runtime
Companion runtime
runtime/server.mjs
Responsibilities:
- host command execution
- PTY session management
- Docker session management
- WebSocket streaming
- command safety checks
- local-only trust boundary
Docker sandbox
runtime/Dockerfile
Responsibilities:
- reproducible execution environment
- isolation
- session workspaces
- bounded CPU/RAM
Runtime endpoints
REST:
GET /healthGET /api/runtime/infoGET /api/terminal/statusPOST /api/terminal/runGET /api/sandbox/statusPOST /api/sandbox/run
WebSocket:
/ws/terminal/ws/sandbox-terminal
Design choices
sudois never silently executed from the web UI- Docker sandbox is the preferred publication path
- host execution remains explicit and auditable
- remote access is deny-by-default