Skip to content

chore(deploy): graduate screen evidence and rich meeting notes to prod - #19931

Merged
Git-on-my-level merged 3 commits into
mainfrom
lane/screen-evidence-prod-config
Sep 30, 2026
Merged

Git-on-my-level merged 3 commits into
mainfrom
lane/screen-evidence-prod-config

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Graduate screen evidence + rich meeting notes to production

David approved on 2026-09-30 moving the one-pass screen evidence work (#19911, #19882, #19887, #19886) to production, with screenshots on every surface.

What changes in prod

Four hosts that write meeting notes, from both the base overlay and the helm charts: backend-listen (GKE), pusher (GKE), and the Cloud Run services backend and backend-sync.

Setting Before After
CONVERSATION_CALENDAR_CONTEXT_READ_ENABLED false true
CONVERSATION_OCR_CONTEXT_ENABLED false true
MEETING_NOTES_RICH_CONTEXT_ENABLED false true
MEETING_NOTES_SCREEN_TEXT_CONTEXT_ENABLED false true
MEETING_NOTES_SCREEN_FRAMES_CONTEXT_ENABLED false true
BUCKET_SCREEN_FRAMES unset based-hardware-prod-screen-frames

Only on Cloud Run backend:

  • SCREEN_FRAME_EGRESS_ENABLED=true
  • The SCREEN_FRAME_SIGNING_SECRET Secret Manager binding

The feature-flag registry marks the three rich-notes flags as graduate, with owner dazheng.

Infrastructure (already provisioned by hand on 2026-09-30, not in code)

  • Bucket gs://based-hardware-prod-screen-frames: US, uniform bucket-level access, public access prevention enforced, 7-day soft delete.
  • Access to the bucket: object admin for 208440318997-compute@ (the Cloud Run backend service account), object viewer for backend-listen-runtime@ and pusher-runtime@.
  • Secret SCREEN_FRAME_SIGNING_SECRET v1 in based-hardware, readable by the compute service account. It will be bound on the live backend service before deploy, as the Cloud Run preflight requires.

Kill switches

Each flag can be set back to false on its own. SCREEN_FRAME_EGRESS_ENABLED=false stops every frame upload and all judging.

Checks

  • python3 backend/deploy/compose_runtime_env.py, with the manifest regenerated.
  • scripts/render_feature_flag_registry.py and scripts/check_feature_flag_registry.py: OK.
  • .github/scripts/check_deployment_secret_boundary.py --base origin/main: passed.
  • test_backend_runtime_env_validator.py, test_render_backend_runtime_env.py and test_verify_pusher_config_references.py: 126 passed.

Invariants: INV-MEM-4 (the runtime_env manifest changed). There is no code change.
Failure-Class: none

🤖 Generated with Claude Code

Review in cubic

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]>
@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-30T06:03:33.411472Z 2aeba49 PR opened
ℹ️ 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.

Git-on-my-level and others added 2 commits September 30, 2026 12:44
…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]>

@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: 2aeba4991e

ℹ️ 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 on lines +301 to +302
SCREEN_FRAME_EGRESS_ENABLED:
value: 'true'

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 Keep egress off until the writer has a dedicated identity

When an opted-in production user submits frames, this enables real writes from the Cloud Run backend, but utils/screen_frames/writer.py:14-18 makes a separate, bucket-only service account a deploy prerequisite. This overlay does not assign such an identity, and the rollout description instead grants object-admin access to the shared 208440318997-compute@ account; consequently, any other workload using that broad identity can access or modify sensitive screenshot objects outside the writer boundary. Keep the switch off until the backend uses the required dedicated writer identity.

Useful? React with 👍 / 👎.

Comment on lines 61 to 65
CONVERSATION_CALENDAR_CONTEXT_READ_ENABLED:
value: 'false'
value: 'true'
CONVERSATION_OCR_CONTEXT_ENABLED:
value: 'false'
value: 'true'
MEETING_NOTES_RICH_CONTEXT_ENABLED:

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 Update the prod rollout contract tests

In the backend unit workflow, the changed Pusher chart selects tests/unit/test_conversation_notes_v2_beta_rollout.py, whose tests at lines 77-90 still require the calendar/OCR and rich-notes prod values to be false. These new true values therefore deterministically fail two selected CI tests; migrate those assertions and their stale descriptions alongside the rollout. The backend guide also still records calendar/OCR as prod-off.

AGENTS.md reference: backend/AGENTS.md:L132-L132

Useful? React with 👍 / 👎.

Comment on lines +2655 to +2656
SCREEN_FRAME_EGRESS_ENABLED:
value: 'true'

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 Require explicit screenshot consent before enabling egress

When this production switch is enabled, existing accounts are admitted without any opt-in: database/users.py:235-241 returns True when the account field is absent, and macOS independently treats a missing cached setting as enabled in MeetingScreenshotsStore.swift:20-36. Opening an eligible meeting can therefore send screen pixels to Gemini and persist them in GCS for existing users even though the registry describes the paired setting as account-level screenshot consent and still records the rollout as blocked on consent. Keep production egress disabled, or migrate only explicitly consented accounts and make the missing-value default false first.

Useful? React with 👍 / 👎.

Comment on lines +2660 to +2661
BUCKET_SCREEN_FRAMES:
value: based-hardware-prod-screen-frames

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 Purge screen-frame objects during account deletion

Once this bucket stores production frames, account deletion removes their Firestore metadata but leaves the screenshot objects behind: purge_derived_user_data calls delete_all_user_storage_objects, whose configured bucket list at utils/other/storage.py:188-198 omits the screen-frame bucket, before the recursive Firestore wipe erases the frame IDs. Screen-frame uploads also bypass owner_storage_write_gate, so an in-flight adjudication can race the wipe. Add a verified UID-prefix purge and gate writer uploads before enabling this bucket in production.

Useful? React with 👍 / 👎.

Comment on lines +180 to +181
- name: BUCKET_SCREEN_FRAMES
value: "based-hardware-prod-screen-frames"

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 Grant bucket access to the credential GKE actually uses

On both production GKE finalizers, SERVICE_ACCOUNT_JSON remains mounted and create_storage_client() always constructs the GCS client from that JSON before considering ADC, so the Workload Identity accounts in the chart annotations are ignored. The rollout description grants object-viewer access only to backend-listen-runtime and pusher-runtime; with that IAM, live finalizers receive permission errors and load_notes_frame_images silently drops every image. Grant the mounted JSON identity access or remove the key so Workload Identity wins before enabling frame reads.

AGENTS.md reference: backend/AGENTS.md:L26-L26

Useful? React with 👍 / 👎.

@Git-on-my-level
Git-on-my-level merged commit 98c02d0 into main Sep 30, 2026
51 of 53 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/screen-evidence-prod-config branch September 30, 2026 06:11
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