Skip to content

config: flag off 9 firestore-read levers on backend-sync 5xx guard breach (URGENT) - #23888

Merged
Git-on-my-level merged 2 commits into
mainfrom
fsr-flagoff-guard-1028
Oct 28, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
fsr-flagoff-guard-1028

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Summary

Firestore read config train — 5xx-guard flag-off (URGENT). The 2026-10-28T10:02Z evaluator tick failed the backend-sync 5xx guard (rate 0.0035 / 1424 errors vs ref 0.0014, floor 50) and flagged nine levers UNSAFE. This PR sets those nine levers to 0 in every FIRESTORE_READ_LEVERS declaration and keeps the eight SUPPORTED levers at 100. No source query, authority, transcription, speaker, price, Free benefit, or audio-retention behavior is changed here.

Flagged to 0: singleton_loops, usage_month_cache, backfill_task_reads, historical_scan_memo, ledger_purge_coalesce, people_scan_dedupe, queue_age_sample_budget, finjob_candidate_queries (was 5), usage_month_total (was 100 on Cloud Run only).

Kept at 100: deletion_marker_cache, subscription_cache, request_read_dedupe, serving_config_cache, candidates_page, action_items_page, mcp_conversation_cards_cache, canonical_statuses_dedupe. memory_list_index_window and batch_privacy_memoize stay 0.

Monthly-total split — dissolved by this flag-off

usage_month_total goes to 0 on every surface, including the four prod Cloud Run services. The previously qualified c2fs_20261026_r1 epoch declarations are left untouched: every reader is off, so no reader seeds or overwrites ready totals, and Cloud Run's qualified epoch stays recorded for a deliberate re-enable. Re-enable path per the loop guard: if the 5xx rate persists with these levers at 0, each lever is exonerated and may come back at 5% individually with complete-literal changes, restoring the monthly-total split at that point.

Declarations: backend/deploy/runtime_env/_base.yaml, prod.overlay.yaml (all four Cloud Run service overrides), four listen/pusher chart values; generated runtime manifest, flag registry, and both contract tests updated (test_verify_pusher_config_references.py pin; test_firestore_train_preserves_monthly_reader_scope_and_cloud_run_overrides now asserts readers-off on every surface with epochs unchanged).

Product invariants affected

  • INV-MEM-4 — keep privacy/deletion authority checks unchanged; this is a read-cache/scan-dedupe flag-off with 0% kill switch semantics in the direction of safety.
  • INV-DATA-1 — existing configuration keys and data planes; no routing or ownership change.

Verification

  • Focused suite: test_render_backend_runtime_env.py + test_verify_pusher_config_references.py — 119 passed on this head.
  • Complete-literal check: all 42 literal sites (11 base + 4 prod overlay + 22 rendered manifest + 4 chart + 2 test pins) grep-verified: every flagged lever is 0, every kept lever is 100/0 as intended, no other key moved.
  • Diff is literal-only outside README + one test expectation block; runtime_env.yaml changes are exclusively FIRESTORE_READ_LEVERS value lines.

Lead-owned ship plan (URGENT flag-off train)

Ship listen → pusher → Cloud Run as soon as the train allows (FIRESTORE_READ_LEVERS order listen → pusher → Cloud Run); desktop-backend and jobs follow the standing train. This is a guard-response rollback: reads give back until attribution lands. If the breach is attributed to a non-lever cause (sync-path code PRs #23849/#23857 merged 08:33–09:01Z inside the breach window are candidates), restore the prior literal (#23837 state) in every applicable full literal, retaining the monthly-total split.

View guided diff Turn on auto-fix

…each (10-28T10Z verify FAIL)

verify.py verdict FAIL at 2026-10-28T10:02:08Z: backend-sync 5xx rate 0.0035
(1424 errors) vs ref 0.0014 -> 9 levers UNSAFE. Complete 19-key replacement
literal on every surface: singleton_loops, usage_month_cache,
backfill_task_reads, historical_scan_memo, ledger_purge_coalesce,
people_scan_dedupe, queue_age_sample_budget, finjob_candidate_queries (5->0),
usage_month_total (CR 100->0) all to 0; eight SUPPORTED levers stay 100.
Monthly-total split dissolved (readers off everywhere); epochs unchanged
(c2fs_20261026_r1 kept recorded on CR prod). Monthly-scope contract test
updated to readers-off; focused suite 119 passed.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 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-10-28T12:41:51.735330Z 2b14608 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.

…r1 (exec-horror-camp-yard-spawn-grid-borrow)

The four Cloud Run override comments still claimed monthly-total stays 100 on
prod CR and people=5; both false under the flag-off literal. Now states the
2026-10-28 flag-off (nine levers 0 everywhere, epoch inert while readers off),
re-enable per runtime_env/README.md train section.
@Git-on-my-level
Git-on-my-level merged commit d04e3ce into main Oct 28, 2026
56 checks passed
@Git-on-my-level
Git-on-my-level deleted the fsr-flagoff-guard-1028 branch October 28, 2026 12:56
Git-on-my-level added a commit that referenced this pull request Oct 28, 2026
…: 5xx breach NOT lever-caused) (#23913)

## Summary

Firestore read config train — **revert of #23888** (the 2026-10-28
5xx-guard flag-off), per the lead's 2026-10-28T13:04Z ruling (bus
e54718) after the RCA in
`data/run-2026-10-13-two-lane-nemotron/swarm/state/refs/1028-audiomerge-rca.md`:
the backend-sync 5xx breach is **NOT lever-caused** — 100% of the
audio_merge 500s are `playback source manifest changed` in
`playback_identity.resolve_sources`, continuous for 2+ days across ~40
revisions with no lever in that path. This restores the exact pre-#23888
`FIRESTORE_READ_LEVERS` literal everywhere (git revert -m 1 of merge
d04e3ce, byte-identical restoration).

Restored to their prior values: `singleton_loops`, `usage_month_cache`,
`backfill_task_reads`, `historical_scan_memo`, `ledger_purge_coalesce`,
`people_scan_dedupe`, `queue_age_sample_budget` (all 100),
`finjob_candidate_queries` (5), `usage_month_total` (100 Cloud Run only
— monthly-total split restored, epochs unchanged). Unchanged from the
flag-off state: the eight SUPPORTED levers stay 100;
`memory_list_index_window` and `batch_privacy_memoize` stay 0 (verify
FALSIFIED, #23797).

## Monthly-total split — restored

`usage_month_total` returns to 100 on Cloud Run only with the qualified
`c2fs_20261026_r1` epoch declarations, exactly as qualified by the P3
owner (op1, bus 04:16Z 10-26). The flag-off had dissolved the split by
setting every reader to 0; this restores readers-on per the split
design.

## Product invariants affected

- INV-MEM-4 — keep privacy/deletion authority checks unchanged; this
restores previously reviewed cache/dedupe lever values to their
pre-flag-off state.
- INV-DATA-1 — existing configuration keys and data planes; no routing
or ownership change.

## Verification

- `git revert -m 1 d04e3ce` on origin/main fab07e2 — clean
auto-merge, 11 files, no drift on `backend/deploy/runtime_env*` or
`backend/charts` since d04e3ce (path-scoped log empty).
- Restored literal spot-check: 19 keys — 8 flagged levers back to 100,
`finjob_candidate_queries` 5, `usage_month_total` 100,
`memory_list_index_window` 0, `batch_privacy_memoize` 0.
- Focused suite + CI on this head (pending; same test pair passed at the
#23888 parent).

## Lead-owned ship plan

Per lead ruling e54718: if this revert lands **before** the paired25
listen roll, the flag-off is net zero deploy — the roll from the new
main tip carries the restored literal and the sealed excluded delta
(d04e3ce) is superseded. Train order unchanged (listen → pusher → Cloud
Run). Companion change: the loop's 5xx guard is being updated (workspace
repo `avo/firestore-reads/measure.py`) to exclude the
Cloud-Tasks-retried internal route `/v2/audio-merge-jobs/run` from the
5xx signal so this baseline noise cannot re-trip the guard.


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/23913?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/23913?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F23913&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
kriegcloud pushed a commit to kriegcloud/omi that referenced this pull request Oct 28, 2026
…guard breach (URGENT) (BasedHardware#23888)"

This reverts commit d04e3ce, reversing
changes made to d8fa0db.
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