Skip to content

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

fix(enterprise): stop uploading degraded screenshot thumbnails (#7607)

Louis Beaumontae15bfa9c393
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/enterprise/policy.rs b/apps/screenpipe-app-tauri/src-tauri/src/enterprise/policy.rs
index f359438f1..0e496857c 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/enterprise/policy.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/enterprise/policy.rs
@@ -601,7 +601,7 @@ pub fn is_tray_hidden() -> bool {
)
}
-/// Serializes any test that mutates `SYNC_STREAMS`. Cargo runs tests in
+/// Serializes tests that read or mutate `SYNC_STREAMS`. Cargo runs tests in
/// parallel within a binary by default, and the static here is shared with the
/// `enterprise_sync::run_one_sync` test mod — two tests racing on a global
/// will flake. Acquire this guard for the full duration of the test, including
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/enterprise/sync.rs b/apps/screenpipe-app-tauri/src-tauri/src/enterprise/sync.rs
index bd2f827a9..115eea33e 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/enterprise/sync.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/enterprise/sync.rs
@@ -376,12 +376,9 @@ pub trait LocalApiClient: Send + Sync {
Ok(Vec::new())
}
- /// Fetch a downsized JPEG thumbnail of the most recent frame. Called
- /// once per sync tick (so ~1 thumbnail every 5 min during active
- /// sessions). Returns None when there's no recent frame or the
- /// implementation chose to skip (e.g. the latest frame is identical
- /// to the previously snapshotted one). Default returns None — shims
- /// that don't support image fetching just don't sync screenshots.
+ /// Fetch the original JPEG of the most recent frame for a write-only
+ /// customer archive. Hosted/readable uploads use the frame-image channel.
+ /// Returns None when no recent exact frame is available.
async fn fetch_latest_snapshot(&self) -> Result<Option<SnapshotRow>, EnterpriseSyncError> {
Ok(None)
}
@@ -1007,9 +1004,15 @@ async fn run_one_sync_inner(
} else {
Vec::new()
};
- // One snapshot per tick. Best-effort — failure to encode/fetch
- // shouldn't block the rest of the batch.
- let snapshots: Vec<SnapshotRow> = if streams.snapshots && include_snapshot {
+ // Hosted/readable destinations already upload original frame images. Do
+ // not also send the legacy thumbnail stream, even when a cached policy
+ // enables it. Write-only archives cannot use that image channel; retain
+ // one original-quality snapshot in their direct-to-storage JSONL instead.
+ let snapshots: Vec<SnapshotRow> = if streams.snapshots
+ && streams.frame_images == crate::enterprise_policy::FrameImagesMode::All
+ && include_snapshot
+ && matches!(cfg.upload_mode, EnterpriseUploadMode::DirectWriteOnly(_))
+ {
match local.fetch_latest_snapshot().await {
Ok(Some(s)) => vec![s],
Ok(None) => Vec::new(),
@@ -1580,6 +1583,21 @@ pub fn prepare_frame_jpeg(bytes: &[u8]) -> Result<Vec<u8>, &'static str> {
Ok(bytes.to_vec())
}
+/// Package an exact local JPEG for a customer-owned write-only archive.
+/// Decode only to validate it and record dimensions; never resize/re-encode.
+pub fn snapshot_from_jpeg(frame_id: i64, timestamp: String, jpeg: &[u8]) -> Option<SnapshotRow> {
+ use base64::Engine as _;
+ let image = image::load_from_memory_with_format(jpeg, image::ImageFormat::Jpeg).ok()?;
+ Some(SnapshotRow {
+ frame_id,
+ timestamp,
+ mime: "image/jpeg".into(),
+ image_b64: base64::engine::general_purpose::STANDARD.encode(jpeg),
+ width: image.width(),
+ height: image.height(),
+ })
+}
+
/// Keep small images inline; send larger originals directly to workspace
/// storage so the API envelope never dictates screenshot resolution or quality.
async fn upload_frame_batch(
@@ -4338,6 +4356,7 @@ pub(crate) mod tests {
#[tokio::test]
async fn empty_batch_no_post_no_cursor_change() {
+ let _guard = crate::enterprise_policy::sync_streams_test_lock();
let dir = TempDir::new().unwrap();
let cfg = test_cfg(&dir, "http://does-not-matter".into());
let mut cursor = Cursor {
@@ -4388,6 +4407,7 @@ pub(crate) mod tests {
#[tokio::test]
async fn successful_post_advances_cursor() {
+ let _guard = crate::enterprise_policy::sync_streams_test_lock();
// Spin up a tiny server that 200s any POST.
let server = wiremock::MockServer::start().await;
wiremock::Mock::given(wiremock::matchers::method("POST"))
@@ -4483,6 +4503,7 @@ pub(crate) mod tests {
#[tokio::test]
async fn timestamp_gte_cursor_must_progress_past_a_full_boundary_tie() {
+ let _guard = crate::enterprise_policy::sync_streams_test_lock();
let server = wiremock::MockServer::start().await;
wiremock::Mock::given(wiremock::matchers::method("POST"))
.and(wiremock::matchers::path("/ingest"))
@@ -4659,6 +4680,7 @@ pub(crate) mod tests {
#[tokio::test]
async fn hosted_ingest_sends_large_payload_across_multiple_requests() {
+ let _guard = crate::enterprise_policy::sync_streams_test_lock();
let server = wiremock::MockServer::start().await;
wiremock::Mock::given(wiremock::matchers::method("POST"))
.and(wiremock::matchers::path("/ingest"))
@@ -4723,6 +4745,7 @@ pub(crate) mod tests {
#[tokio::test]
async fn hosted_ingest_chunk_failure_keeps_cursor_pinned() {
+ let _guard = crate::enterprise_policy::sync_streams_test_lock();
let server = wiremock::MockServer::start().await;
wiremock::Mock::given(wiremock::matchers::method("POST"))
.and(wiremock::matchers::path("/ingest"))
@@ -4765,6 +4788,7 @@ pub(crate) mod tests {
#[tokio::test]
async fn memories_advance_their_own_cursor() {
+ let _guard = crate::enterprise_policy::sync_streams_test_lock();
// Memory-only batch — no frame/audio activity. The tick should still
// POST and advance `last_memory_ts` to the latest memory's created_at.
// This is the load-bearing path for enterprise: an idle user who just
@@ -5014,6 +5038,7 @@ pub(crate) mod tests {
#[tokio::test]
async fn direct_upload_success_advances_cursor_after_complete() {
+ let _guard = crate::enterprise_policy::sync_streams_test_lock();
let server = wiremock::MockServer::start().await;
wiremock::Mock::given(wiremock::matchers::method("POST"))
.and(wiremock::matchers::path("/ticket"))
@@ -5229,6 +5254,7 @@ pub(crate) mod tests {
#[tokio::test]
async fn direct_upload_complete_failure_does_not_advance_cursor() {
+ let _guard = crate::enterprise_policy::sync_streams_test_lock();
let server = wiremock::MockServer::start().await;
wiremock::Mock::given(wiremock::matchers::method("POST"))
.and(wiremock::matchers::path("/ticket"))
@@ -5291,6 +5317,7 @@ pub(crate) mod tests {
#[tokio::test]
async fn auth_rejection_is_distinguished() {
+ let _guard = crate::enterprise_policy::sync_streams_test_lock();
let server = wiremock::MockServer::start().await;
wiremock::Mock::given(wiremock::matchers::method("POST"))
.respond_with(wiremock::ResponseTemplate::new(401))
@@ -5327,6 +5354,7 @@ pub(crate) mod tests {
#[tokio::test]
async fn server_error_is_classified() {
+ let _guard = crate::enterprise_policy::sync_streams_test_lock();
let server = wiremock::MockServer::start().await;
wiremock::Mock::given(wiremock::matchers::method("POST"))
.respond_with(wiremock::ResponseTemplate::new(503))
@@ -5363,6 +5391,7 @@ pub(crate) mod tests {
#[tokio::test]
async fn idempotency_header_is_sent() {
+ let _guard = crate::enterprise_policy::sync_streams_test_lock();
let server = wiremock::MockServer::start().await;
wiremock::Mock::given(wiremock::matchers::method("POST"))
.and(wiremock::matchers::header(
@@ -5463,7 +5492,11 @@ pub(crate) mod tests {
async fn fetch_latest_snapshot(&self) -> Result<Option<SnapshotRow>, EnterpriseSyncError> {
*self.snapshot_calls.lock().unwrap() += 1;
- Ok(Some(snapshot(1, "2026-05-07T10:00:00Z")))
+ Ok(snapshot_from_jpeg(
+ 1,
+ "2026-05-07T10:00:00Z".into(),
+ &archive_jpeg(),
+ ))
}
async fn fetch_memories_since(
@@ -5493,6 +5526,114 @@ pub(crate) mod tests {
.collect()
}
+ #[tokio::test]
+ async fn sync_never_uploads_legacy_thumbnails() {
+ let _guard = crate::enterprise_policy::sync_streams_test_lock();
+ let _restore = RestoreDefaultSyncStreams;
+ for destination in ["hosted", "readable", "write_only"] {
+ for mode in ["off", "cited", "all"] {
+ // The legacy flag must neither duplicate hosted/readable image
+ // uploads nor override off/cited screenshot policies.
+ crate::enterprise_policy::set_sync_streams(
+ true,
+ false,
+ true,
+ true,
+ true,
+ true,
+ "off".to_string(),
+ mode.to_string(),
+ );
+ let server = wiremock::MockServer::start().await;
+ wiremock::Mock::given(wiremock::matchers::method("POST"))
+ .and(wiremock::matchers::path("/ingest"))
+ .respond_with(wiremock::ResponseTemplate::new(200))
+ .expect(if destination == "hosted" { 1 } else { 0 })
+ .mount(&server)
+ .await;
+ wiremock::Mock::given(wiremock::matchers::path("/ticket"))
+ .respond_with(wiremock::ResponseTemplate::new(200).set_body_json(
+ serde_json::json!({"ok": true, "method": "PUT",
+ "upload_url": format!("{}/blob", server.uri()),
+ "headers": {"Content-Type": enterprise_upload::DIRECT_UPLOAD_CONTENT_TYPE}}),
+ ))
+ .mount(&server).await;
+ for path in ["/blob", "/complete"] {
+ wiremock::Mock::given(wiremock::matchers::path(path))
+ .respond_with(wiremock::ResponseTemplate::new(200))
+ .mount(&server)
+ .await;
+ }
+ let dir = TempDir::new().unwrap();
+ let mut cfg = test_cfg(&dir, format!("{}/ingest", server.uri()));
+ let direct = DirectUploadConfig {
+ ticket_url: format!("{}/ticket", server.uri()),
+ complete_url: format!("{}/complete", server.uri()),
+ pinned_hosts: Vec::new(),
+ };
+ cfg.upload_mode = match destination {
+ "readable" => EnterpriseUploadMode::DirectReadable(direct),
+ "write_only" => EnterpriseUploadMode::DirectWriteOnly(direct),
+ _ => EnterpriseUploadMode::HostedIngest,
+ };
+ let local = CallCountingLocal::new();
+ let mut cursor = Cursor::default();
+ let report = run_one_sync(&cfg, &mut cursor, &local, &reqwest::Client::new())
+ .await
+ .unwrap();
+ let requests = server.received_requests().await.unwrap();
+ let upload = requests
+ .iter()
+ .find(|request| matches!(request.url.path(), "/ingest" | "/blob"))
+ .unwrap();
+ let kinds = jsonl_kinds(&upload.body);
+ let archive_snapshot = destination == "write_only" && mode == "all";
+ assert_eq!(
+ kinds.iter().any(|kind| kind == "snapshot"),
+ archive_snapshot,
+ "unexpected snapshot upload for {destination}/{mode}: {kinds:?}"
+ );
+ assert_eq!(
+ *local.snapshot_calls.lock().unwrap(),
+ u32::from(archive_snapshot)
+ );
+ if archive_snapshot {
+ let row = std::str::from_utf8(&upload.body)
+ .unwrap()
+ .lines()
+ .map(|line| serde_json::from_str::<serde_json::Value>(line).unwrap())
+ .find(|row| row["kind"] == "snapshot")
+ .unwrap();
+ let jpeg = base64::engine::general_purpose::STANDARD
+ .decode(row["image_b64"].as_str().unwrap())
+ .unwrap();
+ assert_eq!(jpeg, archive_jpeg());
+ assert_eq!(
+ (row["width"].as_u64(), row["height"].as_u64()),
+ (Some(1920), Some(1080))
+ );
+ assert!(upload.body.len() > HOSTED_INGEST_REQUEST_BYTES);
+ }
+ assert!(kinds.iter().any(|kind| kind == "frame"));
+ assert!(kinds.iter().any(|kind| kind == "audio"));
+ assert_eq!(report.snapshots, usize::from(archive_snapshot));
+ assert_eq!(report.frames, 1);
+ }
+ }
+ }
+
+ fn archive_jpeg() -> Vec<u8> {
+ let mut jpeg = synth_jpeg(1920, 1080);
+ // Valid JPEG with trailing bytes, larger than the hosted API envelope.
+ jpeg.resize(4 * 1024 * 1024, 0);
+ jpeg
+ }
+
+ #[test]
+ fn archive_snapshot_rejects_invalid_jpeg() {
+ assert!(snapshot_from_jpeg(1, "2026-05-07T10:00:00Z".into(), b"bad jpeg").is_none());
+ }
+
#[tokio::test]
async fn sync_gate_skips_disabled_streams_and_lets_enabled_through() {
let _guard = crate::enterprise_policy::sync_streams_test_lock();
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/enterprise_sync.rs b/apps/screenpipe-app-tauri/src-tauri/src/enterprise_sync.rs
index 0445cbae5..9064f904b 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/enterprise_sync.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/enterprise_sync.rs
@@ -23,7 +23,6 @@ use crate::enterprise::sync as ee_sync;
mod imp {
use super::ee_sync;
use crate::recording::local_api_context_from_app;
- use base64::Engine;
use ee_sync::{
ActivityRow, AudioRow, EnterpriseSyncConfig, EnterpriseSyncError, FeedbackRow, FrameRow,
LocalApiClient, MemoryRow, ParsedRow, SnapshotRow, UiEventRow,
@@ -653,41 +652,18 @@ mod imp {
Err(_) => continue,
};
- // Step 3: decode → resize 320×180 → JPEG @ Q60 → base64.
- // Done in spawn_blocking — image decoding is CPU-bound and we
- // don't want to monopolize the tokio runtime. Bounded box: if
- // anything goes wrong, fall through to the next candidate.
- let bytes_vec = bytes.to_vec();
- let encoded =
- tokio::task::spawn_blocking(move || -> Option<(Vec<u8>, u32, u32)> {
- let img = image::load_from_memory(&bytes_vec).ok()?;
- let resized = img.resize(320, 180, image::imageops::FilterType::Triangle);
- let (w, h) = (resized.width(), resized.height());
- let mut buf = Vec::with_capacity(40 * 1024);
- let mut cursor = std::io::Cursor::new(&mut buf);
- let encoder =
- image::codecs::jpeg::JpegEncoder::new_with_quality(&mut cursor, 60);
- resized.into_rgb8().write_with_encoder(encoder).ok()?;
- Some((buf, w, h))
- })
- .await
- .ok()
- .flatten();
-
- let (jpeg, w, h) = match encoded {
- Some(v) => v,
- None => continue,
- };
- let image_b64 = base64::engine::general_purpose::STANDARD.encode(&jpeg);
-
- return Ok(Some(SnapshotRow {
- frame_id,
- timestamp: ts.to_rfc3339(),
- mime: "image/jpeg".to_string(),
- image_b64,
- width: w,
- height: h,
- }));
+ // Validate off the async runtime, retaining the exact JPEG.
+ // This stream goes directly to write-only customer storage,
+ // so an API payload limit must not dictate image quality.
+ let snapshot = tokio::task::spawn_blocking(move || {
+ ee_sync::snapshot_from_jpeg(frame_id, ts.to_rfc3339(), &bytes)
+ })
+ .await
+ .ok()
+ .flatten();
+ if let Some(snapshot) = snapshot {
+ return Ok(Some(snapshot));
+ }
}
// No recent frame was decodable (all still too fresh or expired).
diff --git a/docs/COVERAGE.md b/docs/COVERAGE.md
index 621680471..3b82998df 100644
--- a/docs/COVERAGE.md
+++ b/docs/COVERAGE.md
@@ -38,15 +38,15 @@ results and `cargo llvm-cov` data on top when judging release confidence.
- Mapped suites: 36
- Mapped Rust files: 391
-- Active test blocks: 3841
+- Active test blocks: 3842
- Ignored/manual test blocks: 181
-- Weighted coverage points: 3173.1
+- Weighted coverage points: 3173.8
| Platform | Suites | Active tests | Ignored tests | Weighted points | Layers | Flows | Critical score |
| --- | --- | --- | --- | --- | --- | --- | --- |
-| windows | 32 | 3693 | 166 | 3106.0 | 21 | 11 | 100% |
-| macos | 31 | 3721 | 142 | 3095.3 | 22 | 11 | 100% |
-| linux | 28 | 3276 | 141 | 2729.4 | 20 | 11 | 100% |
+| windows | 32 | 3694 | 166 | 3106.7 | 21 | 11 | 100% |
+| macos | 31 | 3722 | 142 | 3096.0 | 22 | 11 | 100% |
+| linux | 28 | 3277 | 141 | 2730.1 | 20 | 11 | 100% |
## Refresh
diff --git a/docs/coverage/CORE.md b/docs/coverage/CORE.md
index f23fe8e65..027f572a0 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, screenpipe-fs
- Mapped suites: 36
- Mapped Rust files: 391
-- Active test blocks: 3841
+- Active test blocks: 3842
- Ignored/manual test blocks: 181
-- Declared test blocks: 4022
-- Weighted coverage points: 3173.1
+- Declared test blocks: 4023
+- Weighted coverage points: 3173.8
Confidence 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 | 32 | 3693 | 166 | 3106.0 | 21 | 11 | 100% |
-| macos | 31 | 3721 | 142 | 3095.3 | 22 | 11 | 100% |
-| linux | 28 | 3276 | 141 | 2729.4 | 20 | 11 | 100% |
+| windows | 32 | 3694 | 166 | 3106.7 | 21 | 11 | 100% |
+| macos | 31 | 3722 | 142 | 3096.0 | 22 | 11 | 100% |
+| linux | 28 | 3277 | 141 | 2730.1 | 20 | 11 | 100% |
## Crate Summary
| Crate | Suites | Integration files | Source unit files | Active tests | Ignored tests | Weighted points | Flows |
| --- | --- | --- | --- | --- | --- | --- | --- |
-| screenpipe-engine | 12 | 22 | 128 | 1839 | 53 | 1416.2 | 10 |
+| screenpipe-engine | 12 | 22 | 128 | 1840 | 53 | 1416.9 | 10 |
| screenpipe-db | 5 | 68 | 27 | 624 | 31 | 594.7 | 9 |
| screenpipe-sqlite-coordinator | 1 | 0 | 3 | 27 | 0 | 27.0 | 2 |
| screenpipe-audio | 7 | 28 | 53 | 686 | 53 | 601.3 | 5 |
@@ -70,19 +70,19 @@ bun run coverage:core -- --llvm-cov-summary ../../docs/coverage/core-llvm-cov-su
| db-search | 2 suites / 118 active / 9 ignored / 118.0 pts | 2 suites / 118 active / 9 ignored / 118.0 pts | 2 suites / 118 active / 9 ignored / 118.0 pts |
| engine-lifecycle | 6 suites / 265 active / 1 ignored / 238.5 pts | 6 suites / 265 active / 1 ignored / 238.5 pts | 6 suites / 261 active / 9 ignored / 237.6 pts |
| local-api | 3 suites / 478 active / 12 ignored / 338.2 pts | 3 suites / 478 active / 12 ignored / 338.2 pts | 3 suites / 478 active / 12 ignored / 338.2 pts |
-| meeting | 6 suites / 1739 active / 32 ignored / 1422.8 pts | 6 suites / 1739 active / 32 ignored / 1422.8 pts | 4 suites / 1390 active / 28 ignored / 1097.5 pts |
+| meeting | 6 suites / 1740 active / 32 ignored / 1423.5 pts | 6 suites / 1740 active / 32 ignored / 1423.5 pts | 4 suites / 1391 active / 28 ignored / 1098.2 pts |
| ocr | 4 suites / 140 active / 7 ignored / 129.8 pts | 4 suites / 133 active / 7 ignored / 127.6 pts | 3 suites / 124 active / 6 ignored / 118.6 pts |
| os-integration | 1 suites / 6 active / 0 ignored / 1.7 pts | 1 suites / 6 active / 0 ignored / 1.7 pts | - |
| performance | 13 suites / 1668 active / 82 ignored / 1475.7 pts | 14 suites / 1778 active / 87 ignored / 1519.7 pts | 13 suites / 1668 active / 82 ignored / 1475.7 pts |
-| pipes | 1 suites / 545 active / 3 ignored / 381.5 pts | 1 suites / 545 active / 3 ignored / 381.5 pts | 1 suites / 545 active / 3 ignored / 381.5 pts |
-| privacy | 5 suites / 1007 active / 42 ignored / 812.6 pts | 5 suites / 1048 active / 18 ignored / 808.3 pts | 5 suites / 965 active / 14 ignored / 777.5 pts |
+| pipes | 1 suites / 546 active / 3 ignored / 382.2 pts | 1 suites / 546 active / 3 ignored / 382.2 pts | 1 suites / 546 active / 3 ignored / 382.2 pts |
+| privacy | 5 suites / 1008 active / 42 ignored / 813.3 pts | 5 suites / 1049 active / 18 ignored / 809.0 pts | 5 suites / 966 active / 14 ignored / 778.2 pts |
| real-app | - | 1 suites / 110 active / 5 ignored / 44.0 pts | - |
| speaker | 2 suites / 415 active / 18 ignored / 415.0 pts | 2 suites / 415 active / 18 ignored / 415.0 pts | 2 suites / 415 active / 18 ignored / 415.0 pts |
| storage | 4 suites / 686 active / 41 ignored / 571.7 pts | 4 suites / 686 active / 41 ignored / 571.7 pts | 4 suites / 686 active / 41 ignored / 571.7 pts |
-| sync | 1 suites / 545 active / 3 ignored / 381.5 pts | 1 suites / 545 active / 3 ignored / 381.5 pts | 1 suites / 545 active / 3 ignored / 381.5 pts |
+| sync | 1 suites / 546 active / 3 ignored / 382.2 pts | 1 suites / 546 active / 3 ignored / 382.2 pts | 1 suites / 546 active / 3 ignored / 382.2 pts |
| timeline | 4 suites / 1234 active / 48 ignored / 1013.2 pts | 4 suites / 1234 active / 48 ignored / 1013.2 pts | 4 suites / 1234 active / 48 ignored / 1013.2 pts |
| transcription | 6 suites / 882 active / 53 ignored / 691.9 pts | 5 suites / 876 active / 53 ignored / 687.8 pts | 5 suites / 876 active / 53 ignored / 687.8 pts |
-| ui-events | 4 suites / 822 active / 34 ignored / 623.5 pts | 3 suites / 753 active / 5 ignored / 575.2 pts | 3 suites / 753 active / 5 ignored / 575.2 pts |
+| ui-events | 4 suites / 823 active / 34 ignored / 624.2 pts | 3 suites / 754 active / 5 ignored / 575.9 pts | 3 suites / 754 active / 5 ignored / 575.9 pts |
| vision-capture | 6 suites / 576 active / 32 ignored / 453.6 pts | 6 suites / 569 active / 32 ignored / 451.4 pts | 5 suites / 560 active / 31 ignored / 442.4 pts |
## Critical Flow Matrix
@@ -142,7 +142,7 @@ bun run coverage:core -- --llvm-cov-summary ../../docs/coverage/core-llvm-cov-su
| 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-linux-keep-awake | screenpipe-engine | linux | engine-lifecycle | engine-health-lifecycle | high | conditional | mixed | 1 | 2 | 8 | Existing isolated-process missing/stalled bus regressions plus ignored live logind inhibitor tests. Live tests require logind and explicit execution. |
| engine-local-api-search-integration | screenpipe-engine | windows, macos, linux | local-api, db-search | local-api-search | high | strong | integration | 1 | 12 | 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 | 33 | 545 | 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 | 33 | 546 | 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 | 10 | 270 | 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 | 39 | 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 | 35 | 0 | PostHog capture gating, telemetry context shaping, piggyback telemetry forwarding, crash-log helpers, resource monitoring, and the recording-coverage reliability metric. |
@@ -379,7 +379,7 @@ bun run coverage:core -- --llvm-cov-summary ../../docs/coverage/core-llvm-cov-su
| engine-config-lifecycle | screenpipe-engine | src/bin/screenpipe-engine.rs | source | 4 | 0 | 4 |
| engine-meeting-privacy-sync | screenpipe-engine | src/calendar_speaker_id.rs | source | 41 | 0 | 41 |
| engine-meeting-privacy-sync | screenpipe-engine | src/capture_exclusions.rs | source | 7 | 0 | 7 |
-| engine-meeting-privacy-sync | screenpipe-engine | src/cli/agent.rs | source | 43 | 0 | 43 |
+| engine-meeting-privacy-sync | screenpipe-engine | src/cli/agent.rs | source | 44 | 0 | 44 |
| engine-db-recovery-cli | screenpipe-engine | src/cli/db.rs | source | 33 | 0 | 33 |
| engine-meeting-privacy-sync | screenpipe-engine | src/cli/install.rs | source | 4 | 0 | 4 |
| engine-meeting-privacy-sync | screenpipe-engine | src/cli/login.rs | source | 1 | 0 | 1 |