Repository navigation
feat(backend): screen evidence in one pass before meeting notes - #19911
Conversation
- 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]>
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]>
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]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
| 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 |
There was a problem hiding this comment.
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 👍 / 👎.
| futures = [ | ||
| submit_with_context( | ||
| llm_executor, | ||
| adjudicate_candidate, |
There was a problem hiding this comment.
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 👍 / 👎.
| if context is not None: | ||
| return context.model_copy(update={'participants': participants}) |
There was a problem hiding this comment.
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 👍 / 👎.
| owner_names: Iterable[str] = (), | ||
| owner_emails: Iterable[str] = (), |
There was a problem hiding this comment.
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 👍 / 👎.
| 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: |
There was a problem hiding this comment.
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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…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]>
… 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]>
There was a problem hiding this comment.
💡 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) |
There was a problem hiding this comment.
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 👍 / 👎.
…ned-URL TTL read Co-Authored-By: Claude Opus 5.5 <[email protected]>
…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]>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
…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]>
`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]>
#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]>
) * 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]>
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 Talbotstays human,Tomorrow Inc - NoteTakeris 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. NamedMeet - <name>tabs now count as conferencing rows. The shared Swift/Python vectors are inbackend/tests/fixtures/meeting_identity/call_tile_vectors.json.Judge output (
utils/screen_frames/judge.py,models/screen_frame.py). The judge now also returnsvisible_participant_names(at most 8) andscreen_summary(at most 280 chars). Both are normalised grapheme-safely rather than failed. They are persisted only on approved frame docs, encrypted at theenhancedlevel, 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):screen_activityparticipants 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.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.meeting_note_screenshots_enabledis off (reprocess included). A frame name pairs with a nameless invitee only when the email local part spells both its first and last token.MEETING_NOTES_SCREEN_FRAMES_CONTEXT_ENABLED(base/prod false, dev true) attaches up to 4 approved frames to the notes call asimage_urlparts: ≤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.omi:auto:conv-structure, andprovider_request_foron every route provider. A dropped image fails those tests.Environment scoping (dev and prod share Firestore, not buckets):
storage_bucket. Signing, reads, the cap/banner selection, per-frame delete, and notes evidence use only frames whose recorded bucket equals this host'sBUCKET_SCREEN_FRAMES.based-hardware-dev-screen-frames; this is tested.adjudicated_at, and the selection fingerprint are kept per bucket. Dev keeps its legacy top-level fields; other buckets usescreen_frames_env_state.<bucket>. A dev pass can't make prod skip.One-pass admission and latency (
routers/screen_frames.py):in_progress/processingconversations once the transcript fixes a trusted content window. The account setting and ownership/deletion rules are unchanged.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_agententries whenever the roster classifier recognises them (it now also accepts whole-tokenbot,notetaker,recorder,assistant,companionmarkers), 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_cleanuprecord (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 ownerGET /v1/conversations/{id}/screenshots. The frame-request retention job does not ownBUCKET_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 byGET /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 ofGET /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 whenmeeting_note_screenshots_enabledis off (the delete itself still runs).True signed-URL expiry: signed URLs are cached in Redis for up to an hour, but
url_expires_atalways 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_atis the earlier of the content and thumbnail expiries.Dev config:
BUCKET_SCREEN_FRAMESon dev backend-listen, pusher, and backend-sync so dev notes hosts can read frame evidence. Prod config only gains the new flag set tofalse.Deploy prerequisites before prod enables anything
BUCKET_SCREEN_FRAMESset to the prod bucket. Without it they read no frame evidence at all.MEETING_NOTES_RICH_CONTEXT_ENABLEDandMEETING_NOTES_SCREEN_TEXT_CONTEXT_ENABLEDfor names/moments, plusMEETING_NOTES_SCREEN_FRAMES_CONTEXT_ENABLEDfor images.storage.objects.geton the prod screen-frames bucket. Names and moments need only Firestore.Verification
test.shfile lists): newtest_call_tile_identity.py(shared vectors),test_screen_frame_notes_evidence.py, andtest_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. Alsopre-deploy-check.shandcheck_feature_flag_registry.py.spk 1 John Yang. Section and word counts held (e.g. 622→621, 675→637 words).Product invariants affected:
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