System design

Architecture

The desktop interface presents the system; the Python service owns AI and application logic.

Desktop UI

One Python process hosts the PySide6 shell and authenticated loopback backend. Advanced pages open in the default browser through one-use local launch tickets.

Application service

Python APIs coordinate chat, tasks, projects, providers, and permissions.

Orchestration

Routing and execution use registered Agents and configured Providers.

Local data

The packaged Windows SQLite database is at %LOCALAPPDATA%\ERSELMETZ AI\projects\ai_corporation.db. Retained Employee chats require explicit opt-in, are unencrypted, and remain read-only after restart until the owner deletes them.

Trusted application updates

When signed release assets are published, owners can check the fixed GitHub Releases origin and stage an installer after signature, version, migration, and SHA-256 checks. Preparation creates a SQLite backup; installation and recovery stay manual. No signed release is published yet, and the Windows installer is not Authenticode-signed.

Local performance readiness

The owner-only local readiness page reports setup timing, process memory, recorded model assignments, and queue claims from before the current app run. It never calls a model or replays work. The native Brain uses measured QPainter rendering with a list fallback. Provider workload, physical devices and hardware fit require their own evidence.

Encrypted local backup

In explicitly configured local mode, the owner can export safe diagnostic metadata and create encrypted backups. Preferences/configuration are selected by default; private app records require an explicit opt-in. Restore verifies the backup, stores an encrypted local pre-restore copy, and requires an app restart. The passphrase cannot be recovered. Provider-side data, model files, and credentials stored outside the app database are excluded.

See implementation status and evidence in the task roadmap.