Skip to content

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 ​

IDDecisionStatusImplementation
D-001Ten packages plus two apps; @veya/protocol is the only cross-boundary contractAcceptedDone
D-002The desktop app is the runtime: its Chromium renders the product under developmentAcceptedDone
D-003No Chromium fork; Electron's own browser plus CDPAcceptedDone
D-004No Playwright and no system Chrome; downloads were unreachable and the app owns the browserAcceptedDone
D-005MCP is served by the app at POST /mcp (Streamable HTTP, stateless); veya mcp is a stdio bridgeAcceptedDone
D-006Hub and MCP listen on 127.0.0.1 only, no auth: a local development toolAcceptedDone
D-007Injection happens only in development buildsAcceptedDone
D-008Deterministic signals first; LLM judges are a later, separate layerAcceptedDone
D-009No @vitejs/plugin-react: Vite+ inlines Vite, so the plugin must stay self-containedAcceptedDone
D-010The Electron main process is built by vite-plugin-electron; the app owns the product windows, the console, the hub and the MCP hostAcceptedDone; test/e2e is green
D-011Context 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 documentAcceptedDone
D-012The 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 pickerAcceptedDone

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 ​

IDDecisionStatusImplementation
V-010Vite+ is the toolchain: one vite.config.ts holds fmt, lint, staged, run and test; vp check = Oxfmt + Oxlint + tsrsAcceptedDone
V-011landmines rules enabled with denyWarnings: true; built-in Oxlint limited to correctness, suspicious and perfAcceptedDone
V-012Node runs the TypeScript directly; tests import from vite-plus/test; no separate vitest dependencyAcceptedDone
V-013test/ (singular) holds cross-functional suites only; unit tests live beside their subjectAcceptedDone
V-014The 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 checkAcceptedDone

T — Protocol ​

IDDecisionStatusImplementation
T-001One envelope per event: seq, sessionId, traceId, spanId, source, type, payloadAcceptedDone
T-002traceId links a user action to every request, state change and component it causedAcceptedDone
T-003Snapshots carry components with source: null rather than a missing branch; R008 reports themAcceptedDone
T-004Non-serialisable state is sanitised (Date, Map, Set, cycles), never thrownAcceptedDone
T-005Signals return pass and fail; only failures carry evidenceAcceptedDone
T-006ContextDocument is an additive projection in protocol 0.1: no new event types, no version bump; cursors are opaque, session-scoped snapshot pointersAcceptedDone
T-007session.mode is a routing discriminator: same-URL replacement is scoped by mode, so human and agent sessions coexist; no new field was neededAcceptedDone
T-008perform 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 aliasedAcceptedDone

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.

Released under the Apache-2.0 License.