Repository navigation
chore(deploy): graduate screen evidence and rich meeting notes to prod - #19931
Conversation
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]>
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. |
…ce flags Co-Authored-By: Claude Opus 5.5 <[email protected]>
…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]>
There was a problem hiding this comment.
💡 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".
| SCREEN_FRAME_EGRESS_ENABLED: | ||
| value: 'true' |
There was a problem hiding this comment.
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 👍 / 👎.
| CONVERSATION_CALENDAR_CONTEXT_READ_ENABLED: | ||
| value: 'false' | ||
| value: 'true' | ||
| CONVERSATION_OCR_CONTEXT_ENABLED: | ||
| value: 'false' | ||
| value: 'true' | ||
| MEETING_NOTES_RICH_CONTEXT_ENABLED: |
There was a problem hiding this comment.
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 👍 / 👎.
| SCREEN_FRAME_EGRESS_ENABLED: | ||
| value: 'true' |
There was a problem hiding this comment.
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 👍 / 👎.
| BUCKET_SCREEN_FRAMES: | ||
| value: based-hardware-prod-screen-frames |
There was a problem hiding this comment.
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 👍 / 👎.
| - name: BUCKET_SCREEN_FRAMES | ||
| value: "based-hardware-prod-screen-frames" |
There was a problem hiding this comment.
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 👍 / 👎.
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 servicesbackendandbackend-sync.CONVERSATION_CALENDAR_CONTEXT_READ_ENABLEDCONVERSATION_OCR_CONTEXT_ENABLEDMEETING_NOTES_RICH_CONTEXT_ENABLEDMEETING_NOTES_SCREEN_TEXT_CONTEXT_ENABLEDMEETING_NOTES_SCREEN_FRAMES_CONTEXT_ENABLEDBUCKET_SCREEN_FRAMESbased-hardware-prod-screen-framesOnly on Cloud Run
backend:SCREEN_FRAME_EGRESS_ENABLED=trueSCREEN_FRAME_SIGNING_SECRETSecret Manager bindingThe feature-flag registry marks the three rich-notes flags as
graduate, with ownerdazheng.Infrastructure (already provisioned by hand on 2026-09-30, not in code)
gs://based-hardware-prod-screen-frames: US, uniform bucket-level access, public access prevention enforced, 7-day soft delete.208440318997-compute@(the Cloud Runbackendservice account), object viewer forbackend-listen-runtime@andpusher-runtime@.SCREEN_FRAME_SIGNING_SECRETv1 inbased-hardware, readable by the compute service account. It will be bound on the livebackendservice before deploy, as the Cloud Run preflight requires.Kill switches
Each flag can be set back to
falseon its own.SCREEN_FRAME_EGRESS_ENABLED=falsestops every frame upload and all judging.Checks
python3 backend/deploy/compose_runtime_env.py, with the manifest regenerated.scripts/render_feature_flag_registry.pyandscripts/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.pyandtest_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