YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
[codex] add process-map Canvas template (#5780)
Louis Beaumont810b9f6cf2d2
diff --git a/COVERAGE.md b/COVERAGE.mdindex 67cc0d0c9..e54cbf6a0 100644--- a/COVERAGE.md+++ b/COVERAGE.md@@ -19,28 +19,28 @@ results and `cargo llvm-cov` data on top when judging release confidence.### Tauri E2E- Mapped specs: 89-- Declared test blocks: 250-- Weighted coverage points: 192.7+- Declared test blocks: 251+- Weighted coverage points: 193.7| Platform | Specs | Declared tests | Weighted points | Layers | Features | Critical score || --- | --- | --- | --- | --- | --- | --- |-| windows | 72 | 223 | 180.2 | 15 | 77 | 91% |-| macos | 85 | 213 | 163.5 | 17 | 79 | 89% |-| linux | 62 | 183 | 150.0 | 14 | 72 | 88% |+| windows | 72 | 224 | 181.2 | 15 | 77 | 91% |+| macos | 85 | 214 | 164.5 | 17 | 79 | 89% |+| linux | 62 | 184 | 151.0 | 14 | 72 | 88% |### Core Engine- Mapped suites: 32- Mapped Rust files: 308-- Active test blocks: 2857+- Active test blocks: 2858- Ignored/manual test blocks: 133-- Weighted coverage points: 2354.2+- Weighted coverage points: 2354.9| Platform | Suites | Active tests | Ignored tests | Weighted points | Layers | Flows | Critical score || --- | --- | --- | --- | --- | --- | --- | --- |-| windows | 29 | 2729 | 128 | 2295.5 | 21 | 11 | 100% |-| macos | 29 | 2780 | 108 | 2305.4 | 22 | 11 | 100% |-| linux | 25 | 2423 | 102 | 2017.9 | 20 | 11 | 100% |+| windows | 29 | 2730 | 128 | 2296.2 | 21 | 11 | 100% |+| macos | 29 | 2781 | 108 | 2306.1 | 22 | 11 | 100% |+| linux | 25 | 2424 | 102 | 2018.5 | 20 | 11 | 100% |## Refreshdiff --git a/apps/screenpipe-app-tauri/components/settings/__tests__/brain-overview.test.tsx b/apps/screenpipe-app-tauri/components/settings/__tests__/brain-overview.test.tsxindex b4d58f1ac..dd926c7fe 100644--- a/apps/screenpipe-app-tauri/components/settings/__tests__/brain-overview.test.tsx+++ b/apps/screenpipe-app-tauri/components/settings/__tests__/brain-overview.test.tsx@@ -312,6 +312,35 @@ const dailyMemoryTemplate = {],};+const processMapTemplate = {+ id: "process-map",+ title: "Process map",+ description: "Map one repeated workflow from trigger to improvement.",+ version: 1,+ timeRange: "7d" as const,+ periodPolicy: {+ type: "selectable.v1" as const,+ values: ["7d" as const, "30d" as const],+ },+ pipes: [{ name: "automate-my-work", distribution: "bundled" }],+ slots: [+ "trigger-and-outcome",+ "observed-steps",+ "handoffs",+ "bottlenecks",+ "controls-and-exceptions",+ "improvement-path",+ ].map((id, order) => ({+ id,+ title: id,+ component: "markdown.v1" as const,+ width: 6,+ order,+ intent: `Build ${id}`,+ binding: { pipeName: "automate-my-work" },+ })),+};+beforeEach(() => {vi.clearAllMocks();mocks.usageState = null;@@ -1459,6 +1488,64 @@ describe("BrainOverview", () => {);});+ it("installs the process map template with its connected Canvas seed", async () => {+ const installedTemplateView: ViewDefinition = {+ ...populatedView,+ id: "process-map",+ title: processMapTemplate.title,+ revision: 1,+ timeRange: processMapTemplate.timeRange,+ periodPolicy: processMapTemplate.periodPolicy,+ slots: processMapTemplate.slots.map((slot) => ({+ ...slot,+ value: null,+ feedback: { upCount: 0, downCount: 0, current: null },+ itemActions: { items: [] },+ })),+ };+ mocks.listBrainViews.mockResolvedValue({+ status: "ok",+ data: [populatedView],+ });+ mocks.listBrainViewTemplateKits.mockResolvedValue({+ status: "ok",+ data: [processMapTemplate],+ });+ mocks.installBrainViewTemplateKit.mockResolvedValue({+ status: "ok",+ data: installedTemplateView,+ });+ render(<BrainOverview />);++ await openDashboardMenu();+ fireEvent.click(await screen.findByTestId("overview-templates"));+ fireEvent.click(+ await screen.findByTestId("preview-live-view-template-process-map"),+ );+ fireEvent.click(await screen.findByTestId("overview-apply-template"));++ await waitFor(() =>+ expect(mocks.saveBrainViewCanvas).toHaveBeenCalledWith(+ expect.objectContaining({+ viewId: "process-map",+ expectedRevision: null,+ mode: "canvas",+ arrows: [+ expect.objectContaining({ label: "starts" }),+ expect.objectContaining({ label: "moves through" }),+ expect.objectContaining({ label: "reveals" }),+ expect.objectContaining({ label: "must preserve" }),+ expect.objectContaining({ label: "enables" }),+ ],+ }),+ ),+ );+ expect(mocks.localFetch).toHaveBeenCalledWith(+ "/pipes/automate-my-work/enable",+ expect.objectContaining({ method: "POST" }),+ );+ });+it("generates a whole Live View with the selected Pi preset, previews it, and applies it", async () => {mocks.listBrainViews.mockResolvedValue({ status: "ok", data: [] });mocks.generateLiveViewWithPi.mockResolvedValue({diff --git a/apps/screenpipe-app-tauri/components/settings/brain-overview.tsx b/apps/screenpipe-app-tauri/components/settings/brain-overview.tsxindex afc04a1c9..56c595d3b 100644--- a/apps/screenpipe-app-tauri/components/settings/brain-overview.tsx+++ b/apps/screenpipe-app-tauri/components/settings/brain-overview.tsx@@ -75,6 +75,7 @@ import {} from "@/lib/active-ai-preset";import { Input } from "@/components/ui/input";import {+ createTemplateCanvasDocument,reconcileCanvasDocument,toSaveCanvasRequest,} from "@/lib/live-views/canvas-layout";@@ -1832,6 +1833,7 @@ export function BrainOverview({`You can keep up to ${MAX_DASHBOARDS} dashboards. Delete one before creating another.`,);}+ await pumpCanvasSaves();const requestedTitle = creatingNew? uniqueDashboardTitle(draft?.title.trim() || kit.title, views): draft?.title.trim() || kit.title;@@ -1858,6 +1860,30 @@ export function BrainOverview({throw new Error(renameResult.error);installedView = renameResult.data;}+ let canvasSeedFailure: string | null = null;+ const canvasSeed = createTemplateCanvasDocument(kit.id, installedView);+ if (canvasSeed) {+ const expectedCanvasRevision = creatingNew+ ? null+ : (canvasServerRevisionsRef.current.get(installedView.id) ?? null);+ const canvasResult = await commands.saveBrainViewCanvas({+ ...toSaveCanvasRequest({+ ...canvasSeed,+ revision: expectedCanvasRevision ?? 0,+ }),+ expectedRevision: expectedCanvasRevision,+ });+ if (canvasResult.status === "error") {+ canvasSeedFailure = canvasResult.error;+ } else {+ canvasServerRevisionsRef.current.set(+ installedView.id,+ canvasResult.data.revision,+ );+ canvasLatestRef.current = canvasResult.data;+ setCanvasDocument(canvasResult.data);+ }+ }const pipeEnableFailures: string[] = [];await Promise.all(kit.pipes.map(async (pipe) => {@@ -1898,7 +1924,9 @@ export function BrainOverview({description:pipeEnableFailures.length > 0? `Open Pipes to enable continuous updates for ${pipeEnableFailures.join(", ")}.`- : undefined,+ : canvasSeedFailure+ ? `The source-backed Blocks were installed, but the process Canvas could not be arranged: ${canvasSeedFailure}`+ : undefined,});posthog.capture("live_view_dashboard_saved", {...liveViewAnalyticsProperties(diff --git a/apps/screenpipe-app-tauri/e2e/COVERAGE.md b/apps/screenpipe-app-tauri/e2e/COVERAGE.mdindex e34541f6e..b0401490f 100644--- a/apps/screenpipe-app-tauri/e2e/COVERAGE.md+++ b/apps/screenpipe-app-tauri/e2e/COVERAGE.md@@ -7,8 +7,8 @@ and layer declared in the manifest, weighted by confidence and criticality.- Manifest: `e2e/coverage-map.json`- Specs directory: `e2e/specs`- Mapped specs: 89-- Declared test blocks: 250-- Weighted coverage points: 192.7+- Declared test blocks: 251+- Weighted coverage points: 193.7Confidence weights: strong=1.0, partial=0.7, conditional=0.4, smoke=0.3.Criticality weights: high=1.0, medium=0.7, low=0.4.@@ -19,9 +19,9 @@ can execute more runtime cases than this number shows.| Platform | Specs | Declared tests | Weighted points | Layers | Features | Critical score || --- | --- | --- | --- | --- | --- | --- |-| windows | 72 | 223 | 180.2 | 15 | 77 | 91% |-| macos | 85 | 213 | 163.5 | 17 | 79 | 89% |-| linux | 62 | 183 | 150.0 | 14 | 72 | 88% |+| windows | 72 | 224 | 181.2 | 15 | 77 | 91% |+| macos | 85 | 214 | 164.5 | 17 | 79 | 89% |+| linux | 62 | 184 | 151.0 | 14 | 72 | 88% |## Runtime Results@@ -39,13 +39,13 @@ pass/fail/skip counts.| capture-ocr | 2 specs / 16 tests / 6.4 pts | 5 specs / 7 tests / 2.8 pts | 1 specs / 3 tests / 1.2 pts || chat-ai | 23 specs / 37 tests / 28.1 pts | 30 specs / 50 tests / 33.7 pts | 22 specs / 36 tests / 27.6 pts || entitlement | - | 1 specs / 1 tests / 1.0 pts | - |-| local-api | 18 specs / 100 tests / 82.8 pts | 19 specs / 75 tests / 63.8 pts | 14 specs / 71 tests / 62.2 pts |+| local-api | 18 specs / 101 tests / 83.8 pts | 19 specs / 76 tests / 64.8 pts | 14 specs / 72 tests / 63.2 pts || notifications | 3 specs / 24 tests / 15.3 pts | 2 specs / 4 tests / 2.4 pts | 1 specs / 3 tests / 2.1 pts || onboarding | 2 specs / 7 tests / 4.6 pts | 2 specs / 7 tests / 4.6 pts | 2 specs / 7 tests / 4.6 pts || os-integration | 6 specs / 18 tests / 17.1 pts | 8 specs / 8 tests / 4.7 pts | 1 specs / 1 tests / 1.0 pts || performance | 2 specs / 44 tests / 44.0 pts | 4 specs / 34 tests / 30.5 pts | 1 specs / 29 tests / 29.0 pts |-| pipes | 5 specs / 15 tests / 15.0 pts | 5 specs / 15 tests / 15.0 pts | 5 specs / 15 tests / 15.0 pts |-| real-ui-e2e | 49 specs / 140 tests / 113.0 pts | 53 specs / 128 tests / 104.1 pts | 45 specs / 118 tests / 99.4 pts |+| pipes | 5 specs / 16 tests / 16.0 pts | 5 specs / 16 tests / 16.0 pts | 5 specs / 16 tests / 16.0 pts |+| real-ui-e2e | 49 specs / 141 tests / 114.0 pts | 53 specs / 129 tests / 105.1 pts | 45 specs / 119 tests / 100.4 pts || settings | 14 specs / 37 tests / 34.0 pts | 16 specs / 32 tests / 27.7 pts | 13 specs / 29 tests / 26.0 pts || storage-privacy | 8 specs / 37 tests / 28.3 pts | 7 specs / 18 tests / 17.1 pts | 5 specs / 16 tests / 15.1 pts || tauri-command | 13 specs / 22 tests / 15.3 pts | 15 specs / 25 tests / 16.8 pts | 12 specs / 21 tests / 14.3 pts |@@ -105,7 +105,7 @@ pass/fail/skip counts.| app-lifecycle.spec.ts | windows, macos, linux | real-ui-e2e, window-lifecycle | app-launch, home-navigation, webview-stability, route-churn, browser-storage | high | strong | mixed | 14 | Home webview, routing, reload, focus, resize, and storage stability. || artifacts-api.spec.ts | windows, macos, linux | local-api | local-api-auth, artifacts | medium | strong | api | 7 | CRUD coverage for artifact registration, validation, unified listing, upsert, and delete. || audio-fallback.spec.ts | macos | audio-device, settings, notifications | audio-device-health, settings-recording, notifications | medium | conditional | real-user-flow | 1 | Opt-in macOS cloud audio fallback seed. |-| brain-overview.spec.ts | windows, macos, linux | real-ui-e2e, local-api, pipes | brain, brain-overview, brain-canvas, artifacts, pipes | high | strong | real-user-flow | 2 | Creates the first-open starter dashboard, renders source-backed selectable and fixed-period Live Views, verifies dashboard switching stays available during refresh, omits fixed-period controls from view and Customize, exercises durable Canvas notes, connections, keyboard movement, navigation restore, deletion cleanup, and checks layout bounds from 800x600 through 1920x1080. |+| brain-overview.spec.ts | windows, macos, linux | real-ui-e2e, local-api, pipes | brain, brain-overview, brain-canvas, artifacts, pipes | high | strong | real-user-flow | 3 | Creates the first-open starter dashboard, renders source-backed selectable and fixed-period Live Views, verifies dashboard switching stays available during refresh, omits fixed-period controls from view and Customize, exercises durable Canvas notes, connections, keyboard movement, navigation restore, deletion cleanup, and checks layout bounds from 800x600 through 1920x1080. || brain-section.spec.ts | windows, macos, linux | real-ui-e2e | brain, artifacts, memories, viewer-deeplink | medium | strong | real-user-flow | 10 | Brain coverage for filters, search, delete flows, selection pruning, add memory, and inline artifact markdown preview. || capture-frequency-floor.spec.ts | macos | capture-ocr, settings, real-ui-e2e | capture-ocr, settings-recording, restart-flow | high | conditional | real-user-flow | 1 | macOS fixed screenshot cadence regression: persists the 1s setting before immediate Apply & Restart, then verifies real capture attempts and frame writes. || capture-loop-liveness.spec.ts | macos | capture-ocr, local-api, os-integration | app-launch, capture-ocr | high | conditional | api | 1 | Opt-in macOS fault injection wedges a visual-change probe; asserts the bounded probe keeps the capture loop and its /health heartbeat live (no false stale/incident). |diff --git a/apps/screenpipe-app-tauri/e2e/screenshots/brain-process-map-template.png b/apps/screenpipe-app-tauri/e2e/screenshots/brain-process-map-template.pngnew file mode 100644index 000000000..ab86c2fafBinary files /dev/null and b/apps/screenpipe-app-tauri/e2e/screenshots/brain-process-map-template.png differdiff --git a/apps/screenpipe-app-tauri/e2e/specs/brain-overview.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/brain-overview.spec.tsindex 1019b6a7f..0d3c9280d 100644--- a/apps/screenpipe-app-tauri/e2e/specs/brain-overview.spec.ts+++ b/apps/screenpipe-app-tauri/e2e/specs/brain-overview.spec.ts@@ -39,7 +39,12 @@ interface CanvasDocument {height: number;}>;notes: Array<{ id: string; text: string }>;- arrows: Array<{ id: string; fromId: string; toId: string }>;+ arrows: Array<{+ id: string;+ fromId: string;+ toId: string;+ label: string | null;+ }>;strokes: Array<{ id: string }>;}@@ -371,6 +376,68 @@ describe("Brain Live Views", function () {}});+ it("installs the process map template as a connected Canvas", async () => {+ await waitForAppReady();+ await openHomeWithDiagnostics();+ const existingViews = await invokeOrThrow<BrainView[]>("list_brain_views");+ if (existingViews.some((view) => view.id === "process-map")) {+ await invokeOrThrow("delete_brain_view", { id: "process-map" });+ }++ const brainNav = await waitForTestId("nav-brain", 10_000);+ await brainNav.click();+ await waitForTestId("section-brain", 15_000);+ await openDashboardMenu();+ await waitForTestId("overview-templates", 10_000).then((element) =>+ element.click(),+ );+ await waitForTestId("preview-live-view-template-process-map", 10_000).then(+ (element) => element.click(),+ );+ await waitForTestId("overview-apply-template", 10_000).then((element) =>+ element.click(),+ );++ const selector = await waitForTestId("overview-dashboard-selector", 20_000);+ await browser.waitUntil(+ async () => (await selector.getText()).includes("Process map"),+ {+ timeout: t(20_000),+ timeoutMsg: "Process map dashboard was not selected after install",+ },+ );+ await waitForTestId("live-view-canvas", 15_000);+ expect(await $("textarea[aria-label='Canvas note']").getValue()).toContain(+ "Observed workflow → handoffs → friction → controls → improvement",+ );+ expect(await $$(`[data-testid^='canvas-arrow-']`)).toHaveLength(5);+ const canvasText = (await browser.execute(+ () => document.body?.innerText || "",+ )) as string;+ expect(canvasText).toContain("moves through");+ expect(canvasText).toContain("must preserve");+ await waitForTestId("canvas-fit", 10_000).then((element) =>+ element.click(),+ );+ await browser.pause(300);+ const screenshot = await saveScreenshot("brain-process-map-template");+ expect(existsSync(screenshot)).toBe(true);++ const saved = await invokeOrThrow<CanvasDocument | null>(+ "load_brain_view_canvas",+ { viewId: "process-map" },+ );+ expect(saved?.mode).toBe("canvas");+ expect(saved?.arrows.map((arrow) => arrow.label)).toEqual([+ "starts",+ "moves through",+ "reveals",+ "must preserve",+ "enables",+ ]);+ await invokeOrThrow("delete_brain_view", { id: "process-map" });+ });+it("renders a Pipe-filled Live View template", async () => {await waitForAppReady();await openHomeWithDiagnostics();diff --git a/apps/screenpipe-app-tauri/lib/live-views/__tests__/canvas-layout-evals.test.ts b/apps/screenpipe-app-tauri/lib/live-views/__tests__/canvas-layout-evals.test.tsindex 3c3bfce50..dab1105d2 100644--- a/apps/screenpipe-app-tauri/lib/live-views/__tests__/canvas-layout-evals.test.ts+++ b/apps/screenpipe-app-tauri/lib/live-views/__tests__/canvas-layout-evals.test.ts@@ -12,6 +12,7 @@ import {clampCanvasZoom,createCanvasBlockLayout,createCanvasDocument,+ createTemplateCanvasDocument,reconcileCanvasDocument,snapCanvasValue,toSaveCanvasRequest,@@ -73,6 +74,42 @@ function overlap(}describe("Live View Canvas layout evals", () => {+ it("seeds the process-map template as a connected editable Canvas", () => {+ const ids = [+ "trigger-and-outcome",+ "observed-steps",+ "handoffs",+ "bottlenecks",+ "controls-and-exceptions",+ "improvement-path",+ ];+ const processView = view(+ ids.map((id, index) => ({+ ...slot(index),+ id,+ title: id,+ })),+ );++ const document = createTemplateCanvasDocument("process-map", processView);++ expect(document?.mode).toBe("canvas");+ expect(document?.blocks.map((block) => block.slotId)).toEqual(ids);+ expect(document?.arrows.map((arrow) => arrow.label)).toEqual([+ "starts",+ "moves through",+ "reveals",+ "must preserve",+ "enables",+ ]);+ expect(document?.notes[0].text).toContain(+ "Observed workflow → handoffs → friction → controls → improvement",+ );+ expect(+ createTemplateCanvasDocument("daily-memory", processView),+ ).toBeNull();+ });+for (const count of [1, 2, 5, 12, 24]) {it(`lays out ${count} mixed-width source Blocks deterministically without overlap`, () => {const slots = Array.from({ length: count }, (_, index) =>diff --git a/apps/screenpipe-app-tauri/lib/live-views/canvas-layout.ts b/apps/screenpipe-app-tauri/lib/live-views/canvas-layout.tsindex 2275152a2..d2c12fdd3 100644--- a/apps/screenpipe-app-tauri/lib/live-views/canvas-layout.ts+++ b/apps/screenpipe-app-tauri/lib/live-views/canvas-layout.ts@@ -113,6 +113,83 @@ export function createCanvasDocument(};}+export function createTemplateCanvasDocument(+ templateId: string,+ view: BrainViewDefinition,+): BrainViewCanvasDocument | null {+ if (templateId !== "process-map") return null;+ const available = new Set(view.slots.map((slot) => slot.id));+ const blocks: BrainViewCanvasBlock[] = [+ {+ slotId: "trigger-and-outcome",+ x: 64,+ y: 240,+ width: 360,+ height: 280,+ },+ {+ slotId: "observed-steps",+ x: 480,+ y: 240,+ width: 360,+ height: 280,+ },+ { slotId: "handoffs", x: 896, y: 240, width: 360, height: 280 },+ { slotId: "bottlenecks", x: 896, y: 608, width: 360, height: 280 },+ {+ slotId: "controls-and-exceptions",+ x: 480,+ y: 608,+ width: 360,+ height: 280,+ },+ {+ slotId: "improvement-path",+ x: 64,+ y: 608,+ width: 360,+ height: 280,+ },+ ].filter((block) => available.has(block.slotId));+ const connections = [+ ["trigger-and-outcome", "observed-steps", "starts"],+ ["observed-steps", "handoffs", "moves through"],+ ["handoffs", "bottlenecks", "reveals"],+ ["bottlenecks", "controls-and-exceptions", "must preserve"],+ ["controls-and-exceptions", "improvement-path", "enables"],+ ] as const;+ const arrows = connections+ .filter(([fromId, toId]) => available.has(fromId) && available.has(toId))+ .map(([fromId, toId, label], index) => ({+ id: `process-step-${index + 1}`,+ fromId: canvasBlockNodeId(fromId),+ toId: canvasBlockNodeId(toId),+ label,+ }));++ return {+ schema: "live-view-canvas.v1",+ viewId: view.id,+ revision: 0,+ mode: "canvas",+ viewport: { x: 16, y: 8, zoom: 0.82 },+ blocks,+ notes: [+ {+ id: "process-map-guide",+ text: "Observed workflow → handoffs → friction → controls → improvement\n\nMove the Blocks and connections until the map matches how the work actually happens.",+ x: 64,+ y: 64,+ width: 776,+ height: 128,+ },+ ],+ arrows,+ strokes: [],+ updatedAt: "",+ };+}+function canvasNodeIds(blocks: BrainViewCanvasBlock[],notes: BrainViewCanvasNote[],diff --git a/crates/screenpipe-engine/schemas/kits/process-map.live-view-kit.v1.json b/crates/screenpipe-engine/schemas/kits/process-map.live-view-kit.v1.jsonnew file mode 100644index 000000000..92f6ad0c7--- /dev/null+++ b/crates/screenpipe-engine/schemas/kits/process-map.live-view-kit.v1.json@@ -0,0 +1,100 @@+{+ "schema": "live-view-kit.v1",+ "id": "process-map",+ "title": "Process map",+ "description": "Map one repeated workflow from trigger to handoffs, friction, controls, and a safe improvement.",+ "version": 1,+ "pipes": [+ {+ "name": "automate-my-work",+ "distribution": "bundled"+ }+ ],+ "template": {+ "schema": "live-view-template.v1",+ "id": "process-map",+ "title": "Process map",+ "revision": 1,+ "timeRange": "7d",+ "periodPolicy": {+ "type": "selectable.v1",+ "values": ["7d", "30d"]+ },+ "blocks": [+ {+ "id": "trigger-and-outcome",+ "title": "Trigger and outcome",+ "kind": "markdown.v1",+ "width": 6,+ "order": 0,+ "intent": "Identify one repeated workflow observed in the selected period. State its source-backed trigger, intended outcome, and the evidence boundary without merging unrelated workflows.",+ "source": {+ "type": "pipe.v1",+ "pipeName": "automate-my-work"+ }+ },+ {+ "id": "observed-steps",+ "title": "Observed steps",+ "kind": "timeline.v1",+ "width": 6,+ "order": 1,+ "intent": "Map the selected workflow as an ordered sequence of observed steps. Include the application or system and supporting timestamp for each step when available; mark unobserved transitions as unknown.",+ "source": {+ "type": "pipe.v1",+ "pipeName": "automate-my-work"+ }+ },+ {+ "id": "handoffs",+ "title": "People and handoffs",+ "kind": "table.v1",+ "width": 6,+ "order": 2,+ "intent": "Show source-backed people, roles, systems, or queues involved in the selected workflow and where work changes hands. Do not infer an owner that was not observed.",+ "source": {+ "type": "pipe.v1",+ "pipeName": "automate-my-work"+ }+ },+ {+ "id": "bottlenecks",+ "title": "Friction and bottlenecks",+ "kind": "list.v1",+ "width": 6,+ "order": 3,+ "intent": "List repeated waits, rework, manual copying, context switching, or error risk observed in the selected workflow. Separate direct evidence from interpretation.",+ "source": {+ "type": "pipe.v1",+ "pipeName": "automate-my-work"+ }+ },+ {+ "id": "controls-and-exceptions",+ "title": "Controls and exceptions",+ "kind": "table.v1",+ "width": 6,+ "order": 4,+ "intent": "Map observed review steps, approvals, exception paths, and safety checks in the selected workflow. Keep risky decisions and external writes explicitly human-controlled.",+ "source": {+ "type": "pipe.v1",+ "pipeName": "automate-my-work"+ }+ },+ {+ "id": "improvement-path",+ "title": "Safe improvement path",+ "kind": "markdown.v1",+ "width": 6,+ "order": 5,+ "intent": "Recommend the smallest source-backed process improvement or automation trial, including what remains human-approved and how to measure success before expanding it.",+ "source": {+ "type": "pipe.v1",+ "pipeName": "automate-my-work"+ }+ }+ ],+ "createdAt": "2026-08-02T00:00:00Z",+ "updatedAt": "2026-08-02T00:00:00Z"+ }+}diff --git a/crates/screenpipe-engine/src/live_views.rs b/crates/screenpipe-engine/src/live_views.rsindex bd625119c..af8547f33 100644--- a/crates/screenpipe-engine/src/live_views.rs+++ b/crates/screenpipe-engine/src/live_views.rs@@ -687,6 +687,7 @@ pub fn list_bundled_live_view_kits() -> Result<Vec<LiveViewKit>, LiveViewError>include_str!("../schemas/kits/standup-ready.live-view-kit.v1.json"),include_str!("../schemas/kits/commitments.live-view-kit.v1.json"),include_str!("../schemas/kits/accounting-follow-through.live-view-kit.v1.json"),+ include_str!("../schemas/kits/process-map.live-view-kit.v1.json"),];BUNDLED_KITS@@ -1388,7 +1389,7 @@ mod tests {#[test]fn bundled_kits_declare_every_pipe_used_by_their_templates() {let kits = list_bundled_live_view_kits().unwrap();- assert_eq!(kits.len(), 8);+ assert_eq!(kits.len(), 9);assert_eq!(live_view_kit_json_schema()["$id"], LIVE_VIEW_KIT_SCHEMA);for kit in kits {validate_live_view_kit(&kit).unwrap();@@ -1413,6 +1414,37 @@ mod tests {.any(|block| block.id == "resume-here"));}+ #[test]+ fn process_map_has_source_backed_stages_for_a_connected_canvas() {+ let kits = list_bundled_live_view_kits().unwrap();+ let process_map = kits.iter().find(|kit| kit.id == "process-map").unwrap();++ assert_eq!(+ process_map.template.time_range,+ LiveViewTimeRange::Last7Days+ );+ assert_eq!(+ process_map+ .template+ .blocks+ .iter()+ .map(|block| block.id.as_str())+ .collect::<Vec<_>>(),+ vec![+ "trigger-and-outcome",+ "observed-steps",+ "handoffs",+ "bottlenecks",+ "controls-and-exceptions",+ "improvement-path",+ ]+ );+ assert!(process_map.template.blocks.iter().all(|block| block+ .source+ .as_ref()+ .is_some_and(|source| source.pipe_name() == "automate-my-work")));+ }+#[test]fn kit_rejects_an_undeclared_pipe_source() {let mut kit = list_bundled_live_view_kits().unwrap().remove(0);diff --git a/docs/coverage/CORE.md b/docs/coverage/CORE.mdindex 2c7737598..5d187fedd 100644--- a/docs/coverage/CORE.md+++ b/docs/coverage/CORE.md@@ -9,10 +9,10 @@ confidence, and criticality.- Tracked crates: screenpipe-engine, screenpipe-db, screenpipe-sqlite-coordinator, screenpipe-audio, screenpipe-screen, screenpipe-a11y- Mapped suites: 32- Mapped Rust files: 308-- Active test blocks: 2857+- Active test blocks: 2858- Ignored/manual test blocks: 133-- Declared test blocks: 2990-- Weighted coverage points: 2354.2+- Declared test blocks: 2991+- Weighted coverage points: 2354.9Confidence weights: strong=1.0, partial=0.7, conditional=0.4, smoke=0.3.Criticality weights: high=1.0, medium=0.7, low=0.4.@@ -23,15 +23,15 @@ are explicitly enabled in a runtime lane.| Platform | Suites | Active tests | Ignored tests | Weighted points | Layers | Flows | Critical score || --- | --- | --- | --- | --- | --- | --- | --- |-| windows | 29 | 2729 | 128 | 2295.5 | 21 | 11 | 100% |-| macos | 29 | 2780 | 108 | 2305.4 | 22 | 11 | 100% |-| linux | 25 | 2423 | 102 | 2017.9 | 20 | 11 | 100% |+| windows | 29 | 2730 | 128 | 2296.2 | 21 | 11 | 100% |+| macos | 29 | 2781 | 108 | 2306.1 | 22 | 11 | 100% |+| linux | 25 | 2424 | 102 | 2018.5 | 20 | 11 | 100% |## Crate Summary| Crate | Suites | Integration files | Source unit files | Active tests | Ignored tests | Weighted points | Flows || --- | --- | --- | --- | --- | --- | --- | --- |-| screenpipe-engine | 10 | 18 | 99 | 1358 | 42 | 1045.6 | 10 |+| screenpipe-engine | 10 | 18 | 99 | 1359 | 42 | 1046.3 | 10 || screenpipe-db | 5 | 48 | 14 | 406 | 16 | 387.2 | 9 || screenpipe-sqlite-coordinator | 1 | 0 | 2 | 10 | 0 | 10.0 | 2 || screenpipe-audio | 6 | 23 | 47 | 524 | 39 | 454.6 | 5 |@@ -69,19 +69,19 @@ bun run coverage:core -- --llvm-cov-summary ../../docs/coverage/core-llvm-cov-su| db-search | 2 suites / 105 active / 9 ignored / 105.0 pts | 2 suites / 105 active / 9 ignored / 105.0 pts | 2 suites / 105 active / 9 ignored / 105.0 pts || engine-lifecycle | 6 suites / 201 active / 1 ignored / 176.6 pts | 6 suites / 201 active / 1 ignored / 176.6 pts | 5 suites / 195 active / 1 ignored / 174.9 pts || local-api | 2 suites / 295 active / 9 ignored / 207.7 pts | 2 suites / 295 active / 9 ignored / 207.7 pts | 2 suites / 295 active / 9 ignored / 207.7 pts |-| meeting | 6 suites / 1289 active / 15 ignored / 1050.8 pts | 6 suites / 1289 active / 15 ignored / 1050.8 pts | 4 suites / 1018 active / 12 ignored / 800.2 pts |+| meeting | 6 suites / 1290 active / 15 ignored / 1051.5 pts | 6 suites / 1290 active / 15 ignored / 1051.5 pts | 4 suites / 1019 active / 12 ignored / 800.9 pts || ocr | 4 suites / 120 active / 7 ignored / 114.3 pts | 4 suites / 124 active / 7 ignored / 119.8 pts | 3 suites / 115 active / 6 ignored / 110.8 pts || os-integration | 1 suites / 6 active / 0 ignored / 1.7 pts | 1 suites / 6 active / 0 ignored / 1.7 pts | - || performance | 13 suites / 1301 active / 67 ignored / 1153.0 pts | 14 suites / 1396 active / 70 ignored / 1191.0 pts | 13 suites / 1301 active / 67 ignored / 1153.0 pts |-| pipes | 1 suites / 435 active / 3 ignored / 304.5 pts | 1 suites / 435 active / 3 ignored / 304.5 pts | 1 suites / 435 active / 3 ignored / 304.5 pts |-| privacy | 5 suites / 842 active / 36 ignored / 686.9 pts | 5 suites / 889 active / 16 ignored / 691.3 pts | 5 suites / 818 active / 14 ignored / 665.1 pts |+| pipes | 1 suites / 436 active / 3 ignored / 305.2 pts | 1 suites / 436 active / 3 ignored / 305.2 pts | 1 suites / 436 active / 3 ignored / 305.2 pts |+| privacy | 5 suites / 843 active / 36 ignored / 687.6 pts | 5 suites / 890 active / 16 ignored / 692.0 pts | 5 suites / 819 active / 14 ignored / 665.8 pts || real-app | - | 1 suites / 95 active / 3 ignored / 38.0 pts | - || speaker | 2 suites / 292 active / 5 ignored / 292.0 pts | 2 suites / 292 active / 5 ignored / 292.0 pts | 2 suites / 292 active / 5 ignored / 292.0 pts || storage | 3 suites / 436 active / 29 ignored / 354.4 pts | 3 suites / 436 active / 29 ignored / 354.4 pts | 3 suites / 436 active / 29 ignored / 354.4 pts |-| sync | 1 suites / 435 active / 3 ignored / 304.5 pts | 1 suites / 435 active / 3 ignored / 304.5 pts | 1 suites / 435 active / 3 ignored / 304.5 pts |+| sync | 1 suites / 436 active / 3 ignored / 305.2 pts | 1 suites / 436 active / 3 ignored / 305.2 pts | 1 suites / 436 active / 3 ignored / 305.2 pts || timeline | 4 suites / 865 active / 33 ignored / 707.5 pts | 4 suites / 865 active / 33 ignored / 707.5 pts | 4 suites / 865 active / 33 ignored / 707.5 pts || transcription | 5 suites / 622 active / 37 ignored / 485.7 pts | 5 suites / 622 active / 37 ignored / 485.7 pts | 5 suites / 622 active / 37 ignored / 485.7 pts |-| ui-events | 4 suites / 670 active / 28 ignored / 512.9 pts | 3 suites / 622 active / 5 ignored / 479.3 pts | 3 suites / 622 active / 5 ignored / 479.3 pts |+| ui-events | 4 suites / 671 active / 28 ignored / 513.6 pts | 3 suites / 623 active / 5 ignored / 480.0 pts | 3 suites / 623 active / 5 ignored / 480.0 pts || vision-capture | 5 suites / 454 active / 32 ignored / 365.3 pts | 5 suites / 458 active / 32 ignored / 370.8 pts | 4 suites / 449 active / 31 ignored / 361.8 pts |## Critical Flow Matrix@@ -139,7 +139,7 @@ bun run coverage:core -- --llvm-cov-summary ../../docs/coverage/core-llvm-cov-su| engine-db-recovery-cli | screenpipe-engine | windows, macos, linux | database, engine-lifecycle | engine-health-lifecycle, performance-liveness | high | strong | unit | 1 | 7 | 0 | Exact DB/WAL/SHM working-copy preservation, rollback on archive failure, and restart repair for crashes during the multi-file generation swap. || engine-focus-os | screenpipe-engine | windows, macos | engine-lifecycle, os-integration | engine-health-lifecycle, performance-liveness | medium | conditional | unit | 3 | 6 | 0 | Platform focus-tracker parsing/helpers. These files are cfg-gated and only execute on their target OS. || engine-local-api-search-integration | screenpipe-engine | windows, macos, linux | local-api, db-search | local-api-search | high | strong | integration | 1 | 4 | 5 | Active /search route test builds an audio-disabled router, seeds captured-screen-shaped OCR data into an in-memory DB, and asserts the HTTP response and pagination. |-| engine-meeting-privacy-sync | screenpipe-engine | windows, macos, linux | meeting, privacy, ui-events, pipes, sync | meeting-live-notes, privacy-and-redaction, accessibility-ui-events, performance-liveness | medium | strong | unit | 29 | 435 | 3 | Unit-heavy coverage for privacy filter policy, capture exclusions, UI recorder safety, pipes/live-view/structured-output helpers, sync helpers, and CLI parsing. Meeting detection moved to the engine-meeting-watcher suite. |+| engine-meeting-privacy-sync | screenpipe-engine | windows, macos, linux | meeting, privacy, ui-events, pipes, sync | meeting-live-notes, privacy-and-redaction, accessibility-ui-events, performance-liveness | medium | strong | unit | 29 | 436 | 3 | Unit-heavy coverage for privacy filter policy, capture exclusions, UI recorder safety, pipes/live-view/structured-output helpers, sync helpers, and CLI parsing. Meeting detection moved to the engine-meeting-watcher suite. || engine-meeting-watcher | screenpipe-engine | windows, macos | meeting | meeting-live-notes | high | strong | mixed | 9 | 203 | 3 | Successor of src/meeting_detector.rs and src/meeting_telemetry.rs. Audio-process and UI-scan backend state machines, candidate resolution, shared telemetry, and a scored trajectory eval. ui_scan/macos.rs and ui_scan/windows.rs are cfg-gated and only execute on their target OS; both backends are null on Linux. || engine-retention-storage | screenpipe-engine | windows, macos, linux | storage, engine-lifecycle, performance | engine-health-lifecycle, performance-liveness | medium | strong | mixed | 5 | 38 | 0 | Local retention deletion (including lean-mode heavy-text stripping), cloud archive watermarking, atomic state-file replacement, and the low-disk capture monitor. || engine-telemetry-observability | screenpipe-engine | windows, macos, linux | engine-lifecycle, performance | engine-health-lifecycle, performance-liveness | medium | strong | unit | 6 | 29 | 0 | PostHog capture gating, telemetry context shaping, piggyback telemetry forwarding, crash-log helpers, resource monitoring, and the recording-coverage reliability metric. |@@ -352,7 +352,7 @@ bun run coverage:core -- --llvm-cov-summary ../../docs/coverage/core-llvm-cov-su| engine-capture-timeline | screenpipe-engine | src/hd_recorder.rs | source | 13 | 0 | 13 || engine-capture-timeline | screenpipe-engine | src/high_fps_controller.rs | source | 28 | 0 | 28 || engine-capture-timeline | screenpipe-engine | src/hot_frame_cache.rs | source | 4 | 0 | 4 |-| engine-meeting-privacy-sync | screenpipe-engine | src/live_views.rs | source | 13 | 0 | 13 |+| engine-meeting-privacy-sync | screenpipe-engine | src/live_views.rs | source | 14 | 0 | 14 || engine-api-routes | screenpipe-engine | src/local_chat.rs | source | 5 | 0 | 5 || engine-config-lifecycle | screenpipe-engine | src/logging.rs | source | 18 | 0 | 18 || engine-meeting-privacy-sync | screenpipe-engine | src/mcp_servers_api.rs | source | 16 | 0 | 16 |