Skip to content

feat(backend): screen evidence in one pass before meeting notes - #19911

Merged
Git-on-my-level merged 11 commits into
mainfrom
lane/screen-evidence-backend
Sep 30, 2026
Merged

Git-on-my-level merged 11 commits into
mainfrom
lane/screen-evidence-backend

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Why

Conversation 449565eb (Google Meet 1:1): the other participant's name was on the video tile the whole call, yet the roster read "You, Speaker 2" and the notes said "the feedback user". The OCR extractor only accepted names from roster sentences or email-corroborated lines, the frame judge's output fed nothing, and frames were adjudicated only when the note was opened. This is the backend half of "screen evidence: one pass" (desktop half: #19886).

What changes

OCR call-tile rule (utils/conversations/meeting_context.py). A bare 2–4 token capitalised name that persists on call-window rows (≥3 rows and ≥25% of them) becomes a participant. Excluded: the owner (a (You) marker, or a supplied owner name/email), AI agents (whole-token markers only: James Talbot stays human, Tomorrow Inc - NoteTaker is an agent), window-title parts, Meet codes, chrome words, and labels that recur across the same browser's non-call windows. Messaging apps keep their window-title rule. Named Meet - <name> tabs now count as conferencing rows. The shared Swift/Python vectors are in backend/tests/fixtures/meeting_identity/call_tile_vectors.json.

Judge output (utils/screen_frames/judge.py, models/screen_frame.py). The judge now also returns visible_participant_names (at most 8) and screen_summary (at most 280 chars). Both are normalised grapheme-safely rather than failed. They are persisted only on approved frame docs, encrypted at the enhanced level, and never added to a response model. Prompt version bumped to v2.

Notes consumption (meeting_notes_wiring.py, screen_frame_evidence.py, meeting_context_pack.py, meeting_notes_rich_prompts.py, conversation_processing.py):

  • Frame names join the roster as screen_activity participants only where no better source already named them. A nameless email invitee whose address matches a frame name gets that name instead of a duplicate entry.
  • A SCREEN MOMENTS part (at most 900 chars) is rendered ahead of SCREEN ACTIVITY, inside the 6,000-char pack cap.
  • Moments ride MEETING_NOTES_SCREEN_TEXT_CONTEXT_ENABLED. Frame names join the roster whenever frame evidence loads (either flag), so names the model reads from attached images survive notes validation.
  • No frame evidence at all when the account's meeting_note_screenshots_enabled is off (reprocess included). A frame name pairs with a nameless invitee only when the email local part spells both its first and last token.
  • New MEETING_NOTES_SCREEN_FRAMES_CONTEXT_ENABLED (base/prod false, dev true) attaches up to 4 approved frames to the notes call as image_url parts: ≤1024 px JPEG, banner plus evenly spaced frames, 3 s per-read timeout with the GCS library retry disabled and a 6 s total budget, fail-open.
  • Tests pin the image parts through the LangChain payload (direct and gateway client), gateway validation/resolution for omi:auto:conv-structure, and provider_request_for on every route provider. A dropped image fails those tests.

Environment scoping (dev and prod share Firestore, not buckets):

  • Frame docs record storage_bucket. Signing, reads, the cap/banner selection, per-frame delete, and notes evidence use only frames whose recorded bucket equals this host's BUCKET_SCREEN_FRAMES.
  • Docs without the field belong to based-hardware-dev-screen-frames; this is tested.
  • Revision, adjudicated_at, and the selection fingerprint are kept per bucket. Dev keeps its legacy top-level fields; other buckets use screen_frames_env_state.<bucket>. A dev pass can't make prod skip.
  • Conversation deletion still removes every frame doc; foreign-bucket bytes it cannot delete are recorded for the owning environment (below).

One-pass admission and latency (routers/screen_frames.py):

  • Adjudication now admits in_progress/processing conversations once the transcript fixes a trusted content window. The account setting and ownership/deletion rules are unchanged.
  • Finalize doesn't move the fingerprint (it is the transcript span). It moves only if finalize changes segment timing, and the client then offers the new tail.
  • Candidates are judged concurrently on the bounded llm_executor. Each candidate keeps its own canonicalization, verdict, one-use approval, and writer call. A writer failure on any candidate is still a 503.

Agents stay visible to the speaker guard: agent tiles (OCR rule and judge names) join the roster as ai_agent entries whenever the roster classifier recognises them (it now also accepts whole-token bot, notetaker, recorder, assistant, companion markers), so a speaking agent like Boardy still blocks binding the mixed remote channel to the one visible human. A silent recorder (NoteTaker/Recorder bots, recorder domains) neither mixes the channel nor blocks binding. Agent tiles never appear in SCREEN MOMENTS.

Call evidence per window: a Teams/Zoom/Webex/FaceTime (or marker-matched) window counts for tile persistence only when that window shows call controls or a meeting/call/webinar/huddle title; Meet - <name> tabs remain calls.

Pool assignment and cleanup: only the judge call runs on the LLM pool (concurrently); canonicalization runs before it and the writer (signing, Redis, GCS) after it on the request thread. If a write fails, frames already written in that pass are deleted (best effort, logged) before the 503, so nothing is orphaned without a Firestore doc.

Cross-environment delete tombstones: when a conversation delete cannot remove bytes in the other environment's bucket, it writes a durable screen_frame_cleanup record (bucket, uid, conversation, frame, object paths) before deleting the frame docs; a failed record write keeps the docs. The owning environment drains up to 5 records for its own bucket, in the background, on each owner GET /v1/conversations/{id}/screenshots. The frame-request retention job does not own BUCKET_SCREEN_FRAMES (different bucket, env, and IAM), so it is not the drain. Signed-URL cache eviction now runs even when the object delete fails.

Trusted selection fingerprint on the owner read: ConversationScreenFrameSet.trusted_selection_fingerprint (optional, additive) is set only by GET /v1/conversations/{id}/screenshots, including the setting-off empty set: the fingerprint of the conversation's current trusted content window (same arithmetic adjudication stamps), or null. Desktop background passes use it instead of GET /v1/conversations/{id}, which triggers first-open enrichment. Never set on the public shared route. OpenAPI export and generated TS clients regenerated; app-client compatibility passes.

Per-frame delete gate: DELETE /v1/conversations/{id}/screenshots/{frame_id} now returns the same revision-0 empty set as GET when meeting_note_screenshots_enabled is off (the delete itself still runs).

True signed-URL expiry: signed URLs are cached in Redis for up to an hour, but url_expires_at always claimed now+60 min, so clients renewed after the URL had already died. Screen-frame signing now returns the real expiry (a cache hit reports the entry's remaining TTL, and a cached URL with less than 15 min left is re-signed); url_expires_at is the earlier of the content and thumbnail expiries.

Dev config: BUCKET_SCREEN_FRAMES on dev backend-listen, pusher, and backend-sync so dev notes hosts can read frame evidence. Prod config only gains the new flag set to false.

Deploy prerequisites before prod enables anything

  • Notes hosts (backend-listen GKE, pusher, Cloud Run backend, backend-sync, and backend-sync-backfill if it finalizes) need BUCKET_SCREEN_FRAMES set to the prod bucket. Without it they read no frame evidence at all.
  • The same hosts need MEETING_NOTES_RICH_CONTEXT_ENABLED and MEETING_NOTES_SCREEN_TEXT_CONTEXT_ENABLED for names/moments, plus MEETING_NOTES_SCREEN_FRAMES_CONTEXT_ENABLED for images.
  • For images, each host's runtime identity needs storage.objects.get on the prod screen-frames bucket. Names and moments need only Firestore.

Verification

  • Backend unit layer (test.sh file lists): new test_call_tile_identity.py (shared vectors), test_screen_frame_notes_evidence.py, and test_screen_frame_env_state.py; updated screen-frame router, enforcement, store, and judge tests; test_meeting_notes_rich_context.py (its canonical-memory pack test now stubs meetings/conversations/goals; it previously read live Firestore and took ~14 min locally); test_backend_runtime_env_validator.py. Also pre-deploy-check.sh and check_feature_flag_registry.py.
  • Offline replay on 3 private meeting fixtures (gpt-6-luna via OpenRouter, rich path, origin/main extractor vs this one): John Yang, Shantay Ames + Cody Holm, and Aryan Gupta now appear as named participants (before: none). db9d325f's remote voice binds to spk 1 John Yang. Section and word counts held (e.g. 622→621, 675→637 words).
  • Vision probe: with one synthetic tile frame attached, the notes named the tile's person as the action-item owner; without it, the owner was "Other speaker" (+735 prompt tokens).
  • Not verified: a live dev deploy, GCS reads from GKE, and prod IAM.

Product invariants affected:

  • INV-MEM-4: no change to memory promotion; the memory/app prompts share the enriched roster only.
  • INV-TASK-2: no change to task capture; action items still come only from the existing notes extraction.

Failure-Class: none

Line-Count-Exception: backend/utils/other/storage.py | 2003 -> 2049 | bucket-aware screen-frame read/delete helpers and true-expiry signing belong beside the existing screen-frame blob functions
Line-Count-Exception: backend/database/redis_db.py | 1772 -> 1778 | signed-URL cache TTL read beside the existing signed-URL cache helpers
Line-Count-Exception: backend/utils/llm/conversation_processing.py | 1955 -> 1959 | notes call gains the screen_frames argument and image message; the builder lives in meeting_notes_rich_prompts.py
Line-Count-Exception: backend/utils/conversations/process_conversation.py | 3422 -> 3423 | notes call site passes frame images through

🤖 Generated with Claude Code

Git-on-my-level and others added 6 commits September 30, 2026 10:41
- OCR extractor: call-tile name rule (persistent bare tile labels on call-window
  rows; owner "(You)"/owner identity, AI agents by whole-token markers, window
  titles, and same-app browser chrome excluded) with shared Swift/Python
  vectors at backend/tests/fixtures/meeting_identity/call_tile_vectors.json.
  Named "Meet - <name>" tabs now count as conferencing rows.
- Frame judge: visible_participant_names + screen_summary, normalised (never
  fail the verdict), persisted server-side for approved frames only and
  encrypted at rest; not in any response model. Judge prompt v2.
- Notes: frame names join the roster where no better source named them,
  SCREEN MOMENTS in the background pack, and up to four downscaled frames as
  image parts on the notes call behind MEETING_NOTES_SCREEN_FRAMES_CONTEXT_ENABLED
  (dev on, prod off). Tests pin image parts through LangChain, gateway
  validation, and the gateway provider request.
- Environment scoping: frame docs record storage_bucket; reads, signing,
  deletes, cap/banner, and notes evidence use only this environment's frames
  (legacy docs belong to based-hardware-dev-screen-frames); revision and the
  adjudication marker are kept per bucket.
- Adjudication admits in_progress/processing conversations with a trusted
  transcript window, and judges candidates concurrently on the LLM pool.
- Dev: BUCKET_SCREEN_FRAMES on backend-listen, pusher, backend-sync.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…; hermetic pack test

The per-frame DELETE returned the remaining frame set even with
meeting_note_screenshots_enabled off, unlike GET; it now returns the same
revision-0 empty set. test_gather_reads_memories_through_the_canonical_authority
read live Firestore for meetings, prior conversations, and goals; those sources
are now stubbed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A cached signed URL can have minutes left, but url_expires_at always claimed
a fresh hour, so clients renewed after the URL died. Cache hits now report the
cached entry's remaining TTL, entries under 15 min are re-signed, and the frame
reports the earlier of content/thumbnail expiry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… frame reads; stricter email pairing

- No frame evidence (names, summaries, images) when the account's
  meeting_note_screenshots_enabled setting is off, including on reprocess.
- Frame downloads pass retry=None so one image cannot run to the GCS default
  120 s retry deadline past the notes read budget.
- A frame name joins a nameless invitee only when the email local part spells
  both its first and last token; a shared first name adds a separate participant.
- Frame names reach the roster whenever frame evidence loads (either flag), so
  names the model reads from attached images survive notes validation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-30T05:33:15.021715Z 2c18c71 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3e11036ca1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread backend/utils/screen_frames/store.py Outdated
Comment on lines +76 to +78
try:
storage.delete_screen_frame_blobs(uid, conversation_id, frame_id, bucket=frame_bucket)
except Exception as error: # noqa: BLE001 - another environment's bucket is best effort

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve frame records when foreign blob deletion fails

When this host lacks access to another environment's bucket, the exception is logged and ignored, after which delete_conversation_screen_frame_docs removes every Firestore record. Both conversation deletion and the delete-all-screenshots endpoint use this helper, so the foreign screenshot bytes remain in GCS while their only cleanup metadata is destroyed, potentially orphaning sensitive user data indefinitely. Keep failed records until deletion succeeds or dispatch cleanup to the environment that owns the bucket.

Useful? React with 👍 / 👎.

Comment thread backend/routers/screen_frames.py Outdated
Comment on lines +304 to +307
futures = [
submit_with_context(
llm_executor,
adjudicate_candidate,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid running whole adjudication pipelines on the shared LLM pool

A valid request may contain eight candidates, so this submits eight full adjudicate_candidate pipelines to the shared six-worker llm_executor; a single request therefore occupies every worker while canonicalizing images, waiting on the provider, computing palettes, and uploading approved frames, delaying unrelated LLM work and allowing concurrent requests to build an unbounded queue. Use an async coordinator with bounded fan-out and reserve this pool for the LLM leaf operation rather than synchronously waiting on submit_with_context, which the backend guide limits to short fire-and-forget work.

AGENTS.md reference: backend/AGENTS.md:L253-L262

Useful? React with 👍 / 👎.

Comment on lines +196 to +197
if context is not None:
return context.model_copy(update={'participants': participants})

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve screen provenance when enriching calendar rosters

When a Google or system-calendar context exists and a frame contributes a new name that was not on the invite, this returns a copied context with its original calendar_source; normalize_meeting_participants then assigns that source to every entry, so the screen-only name is rendered to the notes model as via google or via system_calendar. This collapses the documented calendar-over-screen evidence ordering and makes an uncertain vision-derived label look like a confirmed calendar attendee; retain per-participant provenance or merge these names into the normalized roster as screen_activity.

AGENTS.md reference: backend/AGENTS.md:L133-L134

Useful? React with 👍 / 👎.

Comment on lines +568 to +569
owner_names: Iterable[str] = (),
owner_emails: Iterable[str] = (),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Wire owner identity into the production OCR call

When a conferencing UI renders the account owner's tile as a bare full name rather than adding (You), exclusion depends on the new owner_names or owner_emails arguments. The production _screen() caller in process_conversation.py supplies neither, so it always uses these empty defaults, while the new tests pass owner identity directly and miss the wiring gap; the owner's repeated label can consequently enter the extracted meeting context as another participant whenever later normalization lacks the same spelling. Resolve and pass the owner's identity at the production call site.

Useful? React with 👍 / 👎.

Comment thread backend/routers/screen_frames.py Outdated
Comment on lines 317 to 320
wait(futures)
try:
new_frames = []
for candidate in request.candidates:
outcome = adjudicate_candidate(
uid=uid,
purpose=request.purpose,
subject_id=request.subject.id,
policy=policy,
candidate=candidate,
raw_bytes=decoded_by_id[candidate.client_frame_id],
)
if outcome.written is not None:
new_frames.append(outcome.written)
outcomes = [future.result() for future in futures]
except ScreenFrameWriteError as error:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Roll back successful writes when a parallel candidate fails

When an early candidate raises ScreenFrameWriteError but another candidate succeeds, all futures have already run and the successful candidate has uploaded its blobs; iterating future.result() then raises immediately and returns 503 without passing those successful writes to enforcement or deleting them. Unlike the former sequential fail-fast behavior for an early failure, this leaves approved screenshot objects with no Firestore record or later cleanup path. Inspect every completed result and delete successful writes before raising, or parallelize judging only and perform writes after all verdicts succeed.

Useful? React with 👍 / 👎.

… evidence; clean up orphaned sibling uploads

- Agent tiles (OCR and judge names) join the roster as ai_agent entries when the
  roster classifier recognises them, so a speaking agent still blocks binding
  the mixed remote channel; silent recorders (NoteTaker/Recorder bots) neither
  mix the channel nor block binding (incident 449565eb).
- Tile persistence needs call evidence in the window itself: call controls or
  a meeting/call/webinar/huddle title. Teams chat and Zoom home lists no longer
  yield participants.
- A failed candidate no longer strands a sibling's uploaded bytes: they are
  deleted before the error returns.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Git-on-my-level added a commit that referenced this pull request Sep 30, 2026
…name keys

Cross-PR review with #19911:
- A cached screenshot set is rendered only while its signed URLs outlive a
  5-minute margin; otherwise the persisted set is re-read. A failed
  thumbnail load triggers one coalesced re-read.
- Call-tile owner/candidate keys use full Unicode case folding (Python
  casefold parity: ß/ss, final sigma).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Git-on-my-level added a commit that referenced this pull request Sep 30, 2026
… rules

Tile rows need per-window call evidence unless they are a Meet tab; agent
tiles the roster classifier agrees on join the upload as names (the roster
types them ai_agent). Parity with the 23 shared vectors on #19911.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rame cleanup

- Only the judge call runs on llm_executor; canonicalization runs before it and
  the writer after it on the request thread. Frames written before a write
  failure are still removed before the 503.
- A conversation delete that cannot remove the other environment's frame bytes
  records a screen_frame_cleanup doc before deleting frame docs; the owning
  environment drains records for its bucket from the owner screenshots read.
- Signed-URL cache eviction runs even when the object delete fails.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c640de4c77

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

_get_owned_conversation(uid, conversation_id)
# Opportunistic, bounded: bytes the other environment recorded as undeletable in this
# environment's bucket (utils/screen_frames/store.py). No scheduled job owns this bucket.
submit_with_context(storage_executor, screen_frame_store.drain_screen_frame_cleanups)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Deduplicate opportunistic cleanup drains

When a cleanup record remains undeletable because of a GCS/IAM outage or a Firestore failure, every successful screenshots GET submits another global drain with no single-flight guard or backoff. Each drain re-queries the same records and can perform up to ten synchronous GCS deletes, so normal polling—or one noisy user—can build an unbounded storage_executor queue and delay user-facing uploads/downloads; use a bounded scheduled worker or gate these submissions with a shared lock/backoff. submit_with_context is reserved for short fire-and-forget operations, not potentially long cleanup pipelines.

AGENTS.md reference: backend/AGENTS.md:L253-L258

Useful? React with 👍 / 👎.

Git-on-my-level and others added 2 commits September 30, 2026 12:01
…ingerprint

GET /v1/conversations/{id}/screenshots (owner only, including the setting-off
empty set) carries trusted_selection_fingerprint, the same window arithmetic
adjudication stamps, so desktop background passes need not read the
conversation (which triggers first-open enrichment). Null on the public
shared route and when no trusted window exists. OpenAPI export and generated
TS clients regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mintlify

mintlify Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
omi 🟢 Ready View Preview Sep 30, 2026, 5:26 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@Git-on-my-level
Git-on-my-level merged commit 6cc7112 into main Sep 30, 2026
64 of 66 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/screen-evidence-backend branch September 30, 2026 05:36
Git-on-my-level added a commit that referenced this pull request Sep 30, 2026
…ngerprint

#19911 and #19887 merged within minutes; the generated model predates the
new optional field, so the Dart schema check on main is stale.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
xyz-is-best added a commit to xyz-is-best/omi that referenced this pull request Sep 30, 2026
`generate_dart_models.py --all --check` fails on main: the `screen_frames`
group added while BasedHardware#19911/BasedHardware#19882/BasedHardware#19887 merged together left
`GeneratedConversationScreenFrameSet` without `trustedSelectionFingerprint`,
so the generated file no longer matches the committed app-client spec.
Regenerated output adds only that field.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <[email protected]>
Git-on-my-level added a commit that referenced this pull request Sep 30, 2026
#19931)

* chore(deploy): graduate screen evidence and rich meeting notes to prod

Turn on calendar/OCR context, rich notes, screen text, and screenshot
images for notes on listen, pusher, backend and backend-sync; wire the
prod screen-frames bucket everywhere and enable frame egress with the
signing secret on Cloud Run backend.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(deploy): assert graduated prod meeting-context and screen-evidence flags

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(app): regenerate screen_frames Dart wire for trusted_selection_fingerprint

#19911 and #19887 merged within minutes; the generated model predates the
new optional field, so the Dart schema check on main is stale.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Git-on-my-level added a commit that referenced this pull request Sep 30, 2026
)

* feat(desktop): gather meeting screen evidence once, before notes

Meeting screenshots were selected and adjudicated only when a note was
opened, long after the notes were written, and the on-device roster
dropped names that appear only on video tiles (conversation 449565eb).

- Finalization runs on-device frame selection + adjudication for meeting
  sessions before asking the backend to finalize (cloudReconcile, when the
  conversation id is known), bounded at 20s and fail-open. The run goes
  through MeetingScreenshotsStore, so a note opened mid-run joins it.
- /from-segments meetings adjudicate right after creation (not awaited).
- A bounded OCR flush pushes the meeting's own screen-activity rows before
  notes so the backend screen-text digest sees the end of the call.
- The selection window/fingerprint now follows the server's arithmetic
  (microsecond started_at, half-even rounding, 30s legacy tolerance), so
  the note reuses the persisted set instead of re-adjudicating.
- Call-tile name rule in OnDeviceMeetingIdentityExtractor, in parity with
  the backend's call_tile_names and its shared test vectors; owner and AI
  agent tiles are excluded.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(desktop): cover the meeting screen evidence pass in the capture lifecycle flow

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(desktop): retry meeting screen evidence after finalize; whole-token agent markers

Review follow-ups for #19886:
- Retry adjudication right after the backend finalizes when the pre-notes
  pass failed, timed out, or had no trusted window (and after force-process
  reveals the id), joining any run still in flight through the shared store.
- Record degraded fallback telemetry when the pre-notes deadline expires or
  the pass fails (area meeting_screen_evidence).
- AI-agent tile markers are whole tokens only, so Talbot/Abbot survive.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore(desktop): keep diagnostics manager within its line-count ratchet

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(desktop): terminal-status screen evidence retry, sealed final chunk, flush telemetry

Second review round for #19886:
- Post-finalize adjudication waits for the terminal finalization projection
  (shared schedule with the meeting-completion wake), not the /finalize POST.
- Seal Rewind's active chunk and reselect before judging; if frames are still
  unsealed, fail retryably without uploading or caching .noCapture.
- OCR flush push/database failures record degraded fallback telemetry.
- Call-tile rows follow the backend's updated call-window rule (shared vectors).
- A screenshots-disabled pass never schedules a retry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(desktop): record degraded telemetry when post-creation screen evidence fails

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(desktop): refetch expiring cached screenshot URLs; casefold tile-name keys

Cross-PR review with #19911:
- A cached screenshot set is rendered only while its signed URLs outlive a
  5-minute margin; otherwise the persisted set is re-read. A failed
  thumbnail load triggers one coalesced re-read.
- Call-tile owner/candidate keys use full Unicode case folding (Python
  casefold parity: ß/ss, final sigma).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(desktop): report failed strip thumbnails through the existing placeholder

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(desktop): mirror the backend call-window evidence and agent-tile rules

Tile rows need per-window call evidence unless they are a Meet tab; agent
tiles the roster classifier agrees on join the upload as names (the roster
types them ai_agent). Parity with the 23 shared vectors on #19911.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(desktop): read the evidence window without first-open side effects; batch OCR flush

Final review round for #19886:
- Background screen-evidence passes read the server's trusted selection
  window from the screenshots route (trusted_selection_fingerprint) instead
  of the conversation detail route, which runs deferred enrichment and
  first-open fanout. Absent the field, they skip and the note adjudicates.
- The meeting OCR flush ships batches of at most 100 rows (the sync route's
  limit) and drains within the pass deadline, recording degraded telemetry
  when it stops early.
- A failed post-finalize pass records degraded telemetry (to note_open).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(desktop): decode the merged backend's trusted_selection_fingerprint body

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(desktop): flush meeting OCR on every local-segments upload; degrade on failed window reads

Post-merge review of #19886:
- The bounded meeting OCR flush now runs inside uploadLocalSegments, so the
  exhausted-cloud-reconciliation fallback upload gets it too.
- An unbound pre-notes call (no conversation id yet) is `.unbound` and
  records nothing; a failed screenshots-window read is
  `.conversationUnavailable` and records degraded fallback telemetry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(desktop): implement the meeting evidence admission contract (#19932)

- Meeting listen sessions with screenshots on declare screen_evidence=enabled.
- Pre-notes order is identity upload, then the bounded OCR flush, then the
  adjudication call, whose marker therefore means all three landed.
- An empty selection, unreadable candidates, or no trusted window send the
  empty-candidates stamp instead of nothing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(desktop): pin the empty evidence stamp to the backend request shape

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(desktop): stamp empty evidence only after a real empty read; never cache a failed stamp

- MeetingFrameSelector reports an unavailable Rewind pool or failed query as
  localReadFailed; the store returns an uncached retryable failure and never
  sends the empty stamp for it.
- A failed empty-stamp request is an uncached .failed (retry + degraded
  telemetry), not a cached .noCapture.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(desktop): owner-bind every screen evidence upload; judge the terminal window

- One owner snapshot per evidence run, captured before reading that owner's
  Rewind/OCR data, rechecked after reads and before each upload, and bound
  into transport auth: frame adjudication and empty stamp, on-device identity
  upload, and the meeting OCR flush. An owner change aborts with degraded
  (auth) telemetry and nothing sent or marked.
- After finalization is terminal, run the terminal pass even when the
  pre-pass settled, so a window widened by a late STT tail is judged; an
  unchanged window is a cache/persisted-set no-op.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(desktop): cover the evidence owner binding in the capture lifecycle flow

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(desktop): no empty stamp for transient pixel reads or untrusted windows

- MeetingFrameJudge distinguishes permanently missing pixels (not found,
  corrupt, undecodable) from retryable read failures; a retryable failure
  throws, so nothing is stamped and the store stays uncached and retryable.
- The pre-notes pass no longer stamps a conversation with no trusted
  window (the server 409s it and no longer waits on it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(desktop): lease-bind flush writes; gather evidence on rotations and every recovery path

- Meeting OCR flush compaction and sync-state writes hold an INV-AUTH-1
  owner mutation lease through commit, with the owner re-required inside the
  transaction and rechecked after the pool opens.
- Evidence gathering no longer depends on force-process permission: 4-hour
  and max-duration rotations run the pre-notes pass and the terminal pass.
- Audit fixes: identity upload on the exhausted local-fallback recovery path;
  terminal pass for already-processed timestamp matches; a probed 404 id is
  unbound (no telemetry); never seal a replacement owner's Rewind chunk.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(desktop): the owner-bound meeting flush never delivers frame requests

Frame-request delivery reads Rewind pixels across further awaits, where an
account switch could pair one owner's pixels with another's headers. The
backend returns recoverable requests on every sync response, so the periodic
sync delivers them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>

This branch was successfully deployed

1 active deployment
staging - docs — 2c18c710 Deployed Sep 30, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant