Skip to content

Architecture

AetherWorkspace Implementation edited this page Nov 19, 2026 · 3 revisions

Architecture

AetherWorkspace is a local-first, policy-governed desktop automation reference. It demonstrates a strict separation between an untrusted proposal layer, a deterministic control plane and authenticated local execution. Repository detail: docs/architecture/overview.md; decisions: ADR directory.

Components

Component Responsibility
Aether.Contracts Protobuf envelopes/broker service, strict JSON ActionPlan/registry/catalog models, bridge contracts, error codes
Aether.Security Source-first classification, deny-by-default policy, consent, single egress gateway, hash-chained metadata-only audit, credential-source factory
Aether.Execution Strict plan parse/validation, capability authorization, deterministic bounded executor with deadlines/cancellation/compensation
Aether.AI Deterministic grammar planner, policy-gated cloud/local plan adapters, provider catalog/routing, private/local summarization, streaming cloud transport
Aether.Broker (+ client) Local gRPC endpoint, allowlisted launcher, process-bound sessions, bounded channels, window layout, health, audit
Aether.Workflow End-to-end orchestration and typed action handlers
Aether.Shell / .Headless WPF shell (Windows) and headless CI/E2E host; provider/mode health output
Aether.SampleApps / .Headless Independent synthetic Watchlist/Risk/Chart processes
Aether.SampleApps.WebView2 Independent WebView2-hosted chart process with a local-only JS renderer and strict typed-context bridge
tools/windows-test, tools/demo, tools/model-eval Physical gate/ledger/UI measurement, capture/media pipeline, gold-corpus evaluation

Trust boundaries

  1. Workspace/app text is untrusted input, not instructions to the model.
  2. AI plans are untrusted proposals; only typed, allowlisted, capability-authorized actions execute.
  3. Cloud egress passes one deny-by-default gateway; cloud is PUBLIC-only and requires explicit consent. Sanitized INTERNAL routing is rejected (ADR-011); the token vault stays local-only.
  4. Same-user IPC identity is not app trust; sessions are bound to launched processes with capability checks.
  5. The WebView2 chart is an independent broker session; only approved fdc3.instrument contexts cross a strict .NET→JavaScript bridge, and the local JS page has no remote scripts/network access.
  6. Local model/plugin endpoints are separate software dependencies and are not assumed air-gapped.

Full threat analysis: docs/security/threat-model.md.

v1.5.1 Workspace UX trust boundary

The Shell loads selectable apps from the live broker snapshot and creates an immutable LaunchSelectionContext (Preferred/Strict, allowed app IDs, revision) adjacent to the untrusted ActionPlan. In Strict mode the orchestrator pre-authorized the complete plan before step 1; a disallowed LaunchApp returns plan.selection.app_not_selected with no broker side effects. The planner never sees or forges the selection. Manual Launch Selected/Stop/Restart still goes through the same allowlisted broker and capability checks; it is not an AI workflow. See ADR-014.

Key invariants

  • No executable paths, shell commands or arbitrary URLs in the plan language.
  • Max actions configurable (library default 5, reference demo 6, hard cap 12); flat plans, deadlines, cancellation.
  • At-most-once channel delivery; bounded queues with explicit overflow; dedupe keys for idempotent retries.
  • Deterministic top-level window arrangement; no reparenting/docking.
  • No network listener; no telemetry egress by default.
  • Hybrid-AI provider/config failures fall back deterministically without relabelling provenance; cloud attempts and denials are recorded by the egress gateway.
  • FDC3 is a declared bounded subset (ADR-013); no conformance or external Desktop Agent claim.

Clone this wiki locally