Skip to content

config(firestore-reads): guard flag-off singleton/backfill/historical/ledger_purge 100->0 (backend-sync 5xx 0.0134 vs ref 0.0073) - #24348

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/firestore-reads-flagoff-guard-1102
Nov 2, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/firestore-reads-flagoff-guard-1102

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Firestore reads loop guard flag-off — 2026-11-02 (singleton/backfill/historical/ledger_purge 100→0)

Summary

Firestore reads loop URGENT guard flag-off (autonomous, loop RUNBOOK step 1): four FIRESTORE_READ_LEVERS
values 100 → 0, everything else byte-identical to main. Response to verify tick 2026-11-02T05:00:20Z FAIL
(pending-actions flag_off: singleton_loops, usage_month_cache, backfill_task_reads, historical_scan_memo,
ledger_purge_coalesce).

Config only, generated with avo/firestore-reads/set_levers.py (replace-mode, complete 20-key literal) plus the
four prod.overlay inline sites hand-patched (flagged keys only) and the third pinned expected dict in
test_firestore_train_preserves_monthly_reader_scope_and_cloud_run_overrides updated (set_levers' regexes do not
cover it). Stale #24194-era comment blocks refreshed to the current scope. Regenerated runtime_env.yaml +
feature-flag registry.

Product invariants affected

  • INV-MEM-4 — config-only lever rollout; no data-path, promotion or authority change; every flagged lever reverts
    to flag-off behavior at 0; the fix(backend): restore monthly usage reads only for sync admission #24210 admission exception is unchanged (epoch c2fs_20261026_r1 preserved).
  • INV-DATA-1 — no routing or ownership change; value-only edit of the existing FIRESTORE_READ_LEVERS key.

Test plan

  • backend/tests/unit/test_render_backend_runtime_env.py +
    backend/tests/unit/test_verify_pusher_config_references.py: 119/119 pass on the lane venv
    (backend/.venv freshly synced from pylock.macos.toml via make setup-backend).
  • Literal audit: 26 deploy value sites JSON-parsed — the 4 flagged keys = 0 at every site; usage_month_cache/
    usage_month_total = 100 only at the prod.overlay + rendered backend-sync exception; queue_age_sample_budget
    = 100 everywhere; finjob/bpm/mliw/people = 0 everywhere.

Rollout

  1. URGENT: lead-owned train, order listen → pusher → cloud-run (FIRESTORE_READ_LEVERS order). The loop
    does not dispatch deploys or approve gates.
  2. Post-serve: hourly tick verify runs the discrimination (2 clean ticks at 0 → cohort implicated, stays 0;
    flat >ref → exogenous, restoration re-plan with the lead). Re-baseline after the served revision changes.

View guided diff Turn on auto-fix

…/ledger_purge 100->0 (backend-sync 5xx 0.0134 vs ref 0.0073, 05Z tick; #24210 admission exception kept)
@chatgpt-codex-connector

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 ⚠️ Failed 2026-11-02T05:44:52.746715Z
We couldn’t complete this review. Comment @codex review to try again.
23f8233 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 10 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

View guided diff | Turn on auto-fix | Re-trigger cubic

@Git-on-my-level
Git-on-my-level merged commit d963454 into main Nov 2, 2026
72 of 74 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/firestore-reads-flagoff-guard-1102 branch November 2, 2026 06:32
Git-on-my-level added a commit that referenced this pull request Nov 2, 2026
Reverts #24348 (merge d963454) to
restore singleton, backfill, historical and ledger-purge read levers to
100.
The upload503 investigation attributes the sync 503 rise to
sampled-language admission; the lead requested this exact revert before
the next train.

Product invariants: INV-MEM-4, INV-DATA-1. Configuration-only
restoration; preserve monthly usage exception and epochs. Lead owns
merge and deployment.

Validation: exact inverse-patch roundtrip reproduces the base tree; all
41 deploy literals equal pre-#24348 values. 119 runtime-env/pusher tests
plus 265 deploy-safety tests passed through backend/test.sh; make
preflight and hermetic deploy validators passed. Luna review and CI
results will be handed to the lead.


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/24368?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/24368?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F24368&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. -->
MichaelC001 pushed a commit to MichaelC001/omi that referenced this pull request Nov 3, 2026
…storical/ledger_purge 100->0"

This reverts commit d963454, reversing
changes made to a253523.

The upload503 investigation attributes sync upload 503s to sampled-language
admission. Restore the exact pre-BasedHardware#24348 lever configuration for the lead's
next train.
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