Validation & Source Control

Key facts

  • StageValidation — stage 5 of the pipeline.
  • GatesTypecheck, vitest, build, Playwright smoke. P0 filter blocks regressions.
  • Checkpoint500 files / 5 MB / 256 KB-per-file caps; local SQLite; Git-independent.

Pipeline stages this surface serves

  • validation
  • compact-memory

What it does

  • Compile + test gates

    Detected typecheck, lint, test, and build:renderer commands feed the prompt's Validation section; the Compile pane runs them. Full electron build stays in the embedded terminal under user control.

    evidence · electron/chat/ipc/compileIpc.ts · testIpc.ts

  • Playwright validation

    Runtime smoke runs verify the running app did not break before the loop declares done.

    evidence · electron/ipc/playwright.ts

  • File-level checkpoints

    A local snapshot is taken on every chat:send (500 files / 5 MB / 256 KB-per-file caps), restorable via the Restore pane. Git-independent.

    evidence · electron/ipc/checkpoints.ts · src/components/RestorePanel.tsx

  • Git surface

    isRepo, status, branches, remotes, checkout, createBranch, push, fetch, log. Live branch badge in the terminal tab bar; commits stay gated behind approval.

    evidence · electron/ipc/git.ts · src/components/GitPanel.tsx

  • Tool-feedback telemetry (local)

    Route outcomes and tool feedback persist to local SQLite only — no analytics SDK, no phone-home.

    evidence · electron/chat/toolFeedback.ts · routeOutcome.ts

Surfaces

Screenshots captured in a later phase. Frame names + intended dimensions shown today.

Compile pane running typecheck, vitest, and Playwright smoke as validation gates.evidence · electron/chat/ipc/compileIpc.ts · electron/ipc/playwright.ts
Restore pane previewing a file-level checkpoint rewind taken automatically on each chat:send.evidence · electron/ipc/checkpoints.ts:1-31 · src/components/RestorePanel.tsx
Git panel showing branch, status, and staged diff; commits stay gated behind approval.evidence · electron/ipc/git.ts · src/components/GitPanel.tsx

Evidence

Every claim on this page traces to a file in the desktop app repository.

  • electron/chat/ipc/compileIpc.ts
  • electron/chat/ipc/testIpc.ts
  • electron/ipc/playwright.ts
  • electron/ipc/git.ts
  • electron/ipc/checkpoints.ts
  • src/components/GitPanel.tsx
  • src/components/RestorePanel.tsx