2027 SYSTEM DESIGN SPECIFICATION
#OwnFrontier Architecture & Threat Model
One sovereign micro-kernel built on a single premise: language models and external inputs are untrusted; invariants live in deterministic host code, OS sandboxes, and cryptographic state transitions.
1. Single Local Daemon, Synchronized Native Surfaces
#OwnFrontier rejects multi-gigabyte Electron clones. One local daemon on 127.0.0.1 owns durable SQLite WAL state, model adapters, sandboxed tools, schedules, and approvals, projecting cleanly onto:
- Native Desktop Cockpit: Thin GTK4/WebKitGTK (Linux), WKWebView (macOS), and WebView2 (Windows) shells rendering zero-dependency ESM UI with calibrated Daylight and Orbit mineral tokens.
- #OwnFrontier CLI & 120 FPS TUI: Differential terminal renderer targeting an
8.33 msframe budget with DEC 2026 synchronized output, fullNO_COLOR=1accessibility,12.7 msmedian first TUI frame (empty home, Linux ARM64), and machine-readable--output jsonlpipes. - Mobile Companion: Touch-first responsive and Android companion (preview) connected over authenticated LAN/VPN tunnels for fast 30-second approvals, Chief updates, and scheduled run reviews.
2. Always-Live Chief & Durable Scheduled Automation
Instead of forcing users to manually curate dozens of siloed chats, Chief acts as a persistent autonomous coordinator:
- Unified Intake & Dispatch: Write any request into Chief; it classifies intent, creates or updates the owning project thread or worktree, tracks parallel agents, and aggregates verified receipts.
- Adaptive Generative UI: Chief selects structured visual surfaces matched to the problem - Mission Progress Boards, side-by-side decision matrices, Z+ Flip-Condition cards, and schedule timelines - rather than repeating flat prose blocks.
- First-Class
ScheduledPanel: Accessible directly beneathChiefin both the GUI sidebar and TUI (/schedule). Supports cron expressions, intervals, and one-shot timers with natural-language preview, target routing, Run Now, Pause/Resume, failure escalation, and approval-gated external effects.
3. High-Throughput @browser & Off-Cursor @computer
Automation must sustain high daily volume without disrupting the human sitting at the keyboard:
@browserEngine: Persistent pooled CDP sessions, combined Accessibility-Tree + DOM element references, deterministic event-driven waits (eliminating brittle sleeps), origin-locked credential fills, and parallel worker tabs capable of scaling to tens of thousands of verified actions per day without dropping verification checks.@computerEngine: Layered OS-native backends (Linux Wayland Portal / wlroots / AT-SPI2 / X11, macOS AX / CGEvent / ScreenCaptureKit, Windows UIA / WGC) prioritizing background window-targeted APIs and virtual input channels so parallel UI testing, multi-app control, and real-time interactive tasks execute without stealing the user's physical mouse cursor.
4. Threat Model & Cryptographic Safety Boundaries
| Boundary | Threat Mitigated | Enforcement Mechanism |
|---|---|---|
| Loopback HTTP | DNS rebinding, cross-site request forgery | 127.0.0.1 bind, strict Host/Origin check, per-boot CSRF token, zero CORS. |
| Command Sandbox | Prompt-injected shell escape or secret theft | Fail-closed OS isolation on #OwnFrontier commands: bubblewrap + seccomp-BPF (Linux), Seatbelt (macOS), AppContainer (Windows); host git hooks disabled. |
| ApprovalGate | Silent external send, TOCTOU payload swap, duplicate retry | SQLite single-use canonical JSON SHA-256 pin for actions routed through #OwnFrontier; drift returns workspace_changed; crash records execution_unknown; mandatory post-write readback. |
| External ACP Agents | Confusion over external binary permissions | Explicit trust boundary: connected external ACP agents retain their own internal tools and settings. #OwnFrontier governs actions routed through it and is not an OS sandbox for external ACP binaries' internal tools. |
| Extension Runtime | Malicious plugin DOM takeover or ambient host access | Capability-scoped Wasm (Wasmtime WIT) / declarative OCS contracts; zero dlopen; zero host-DOM JS injection. |
| Secret Redaction | Credential leakage into logs or model context | Stream-aware redactor active across tool output, transcripts, and diagnostics. |
5. Deliberate Non-Goals
Focus is an architectural feature. #OwnFrontier intentionally does not build inline IDE autocomplete clones, drag-and-drop node spaghetti canvases, proprietary cloud-only note silos, sponsored ad search, or autonomous high-risk HR/credit/social scoring systems. Specialist tools interoperate cleanly through ACP, MCP, and OCS.