Scope: current working tree, original desktop requirements, frontend preview on localhost:1420, TypeScript builds, frontend tests and both linters. No production traffic or configuration changes. Native installers, authenticated operations, worker enrollment and updater installation were not exercised in this audit.
apps/desktop/src-tauri/src/engine.rs starts dist/main.js in development and the compiled main entry in release, with BOT_ROLE=producer. src/main.ts:230-251 submits a batch and shuts down for producer mode. Opening the app can therefore enqueue work and terminate its own API. dev:engine instead runs dist/controller.js, so development paths disagree. Use a long-running management entry point and verify startup never schedules work implicitly.apps/desktop/src/components/Onboarding.tsx:24 returns before the effect at line 41. Dismissing onboarding changes the number of hooks and can crash the dashboard. Move all hooks before conditional returns and cover dismissal and automatic completion.src/application/api/ControlServer.ts:480-504 converts any submitted key into an environment variable, inserts raw values into .env, and changes process.env without schema validation. Newlines can inject settings. The runtime Config object was parsed earlier, so the returned settings can disagree with effective worker behavior. Add an explicit allowlist, typed validation, safe persistence, and restart-required semantics. Store writable settings outside packaged resources.scripts/prepare-desktop-engine.cjs always chooses ARM64 on macOS and x64 on Linux/Windows. Tauri configuration specifies only the app bundle target, which does not provide the required Windows/Linux installer targets. Installed Rust targets alone do not create universal macOS builds. Verify actual native artifacts on each target OS and architecture.Source inspection also finds campaign labels without explicit input association and detail panels without modal focus management/Escape handling. These are accessibility risks requiring keyboard and assistive-technology testing, not a compliance assessment.
Screenshot evidence: /tmp/trafficbot-app-audit/02-sessions.png (captured and inspected during this run).
| Check | Result |
|---|---|
| Backend TypeScript build | Pass |
| Desktop TypeScript/Vite build | Pass; ~739 kB main JS chunk warning |
| Frontend tests | 13 pass, 3 fail: localStorage.getItem unavailable in Onboarding test environment |
| Backend lint | Fail: 14 unused-variable errors |
| Frontend lint | Reports conditional-hook error and 18 warnings; command still exits successfully |
| Authenticated engine/session operations | Not exercised this run |
| Native packaging/install/updater | Source reviewed; not executed this run |
Recommended order: fix engine startup and onboarding, harden settings, restore test/lint gates, complete campaign compatibility selection and session controls, then validate installers and native lifecycle on supported platforms. Feature pages exist for all navigation sections; their existence does not establish end-to-end completeness.