Decision log
Status is the design conclusion, Implementation is where v0.1 landed.
- Accepted: decided, implemented.
- Proposed: agreed direction, not built.
- Deferred: deliberately later.
- Blocked: decided, but the environment prevents it.
D — Architecture
| ID | Decision | Status | Implementation |
|---|---|---|---|
| D-001 | Ten packages plus two apps; @veya/protocol is the only cross-boundary contract | Accepted | Done |
| D-002 | The desktop app is the runtime: its Chromium renders the product under development | Accepted | Done |
| D-003 | No Chromium fork; Electron's own browser plus CDP | Accepted | Done |
| D-004 | No Playwright and no system Chrome; downloads were unreachable and the app owns the browser | Accepted | Done |
| D-005 | MCP is served by the app at POST /mcp (Streamable HTTP, stateless); veya mcp is a stdio bridge | Accepted | Done |
| D-006 | Hub and MCP listen on 127.0.0.1 only, no auth: a local development tool | Accepted | Done |
| D-007 | Injection happens only in development builds | Accepted | Done |
| D-008 | Deterministic signals first; LLM judges are a later, separate layer | Accepted | Done |
| D-009 | No @vitejs/plugin-react: Vite+ inlines Vite, so the plugin must stay self-contained | Accepted | Done |
| D-010 | The Electron main process is built by vite-plugin-electron; the app owns the product windows, the console, the hub and the MCP host | Accepted | Done; test/e2e is green |
| D-011 | Context is compiled on demand into a budgeted brief: @veya/context projects the latest snapshot and events, the hub keeps a bounded snapshot history for cursors, and the console reads the same document | Accepted | Done |
| D-012 | The desktop app opens a human product window in the default profile and an agent product window in persist:veya-agent; the preload stamps the window kind, session.mode routes commands to the owning host, MCP defaults to the agent session, and the console follows the human session with a picker | Accepted | Done |
D-010 was blocked in the first build: require("electron") returned the package path string and ESM named exports were absent. vite-plugin-electron now builds the main process, and the acceptance suite drives the real app.
V — Toolchain
| ID | Decision | Status | Implementation |
|---|---|---|---|
| V-010 | Vite+ is the toolchain: one vite.config.ts holds fmt, lint, staged, run and test; vp check = Oxfmt + Oxlint + tsrs | Accepted | Done |
| V-011 | landmines rules enabled with denyWarnings: true; built-in Oxlint limited to correctness, suspicious and perf | Accepted | Done |
| V-012 | Node runs the TypeScript directly; tests import from vite-plus/test; no separate vitest dependency | Accepted | Done |
| V-013 | test/ (singular) holds cross-functional suites only; unit tests live beside their subject | Accepted | Done |
| V-014 | The public docs are a VitePress 1.6 site generated from docs/: English at the root, Chinese under zh/, internal plans excluded, and i18n parity plus the production build run in pnpm check | Accepted | Done |
T — Protocol
| ID | Decision | Status | Implementation |
|---|---|---|---|
| T-001 | One envelope per event: seq, sessionId, traceId, spanId, source, type, payload | Accepted | Done |
| T-002 | traceId links a user action to every request, state change and component it caused | Accepted | Done |
| T-003 | Snapshots carry components with source: null rather than a missing branch; R008 reports them | Accepted | Done |
| T-004 | Non-serialisable state is sanitised (Date, Map, Set, cycles), never thrown | Accepted | Done |
| T-005 | Signals return pass and fail; only failures carry evidence | Accepted | Done |
| T-006 | ContextDocument is an additive projection in protocol 0.1: no new event types, no version bump; cursors are opaque, session-scoped snapshot pointers | Accepted | Done |
| T-007 | session.mode is a routing discriminator: same-URL replacement is scoped by mode, so human and agent sessions coexist; no new field was needed | Accepted | Done |
| T-008 | perform is an ordered list of click and expect steps: each expectation is scoped to the most recent click's trace, the first failure stops the list, and timeoutMs is per expectation; the single-target shape was replaced before v0.1, not aliased | Accepted | Done |
Deferred
- A scenario DSL and fault injection.
- LLM visual and UX judges, calibrated against human review.
- State-space exploration and regression generation.
- Desktop and mobile runtimes beyond the Electron web runtime.
- Packaging the app, SQLite, OpenTelemetry export.
- Upgrading to VitePress 2 after a stable release.