Skip to content

config: flag off five FIRESTORE_READ_LEVERS (guard response, 05:01:28Z tick) - #22994

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/fsr-flagoff-05z
Oct 21, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/fsr-flagoff-05z

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

Firestore reads loop (avo/firestore-reads), config-only change to FIRESTORE_READ_LEVERS via set_levers.py (full 13-key replace-mode literal): five levers flag OFF per a 5xx guard breach, eight keys unchanged. URGENT flag-off; deploy order matters (see Rollout).

  • Breach: verify.py at snapshot 2026-10-21T05:01:28Z (window_end 04Z) graded usage_month_cache, backfill_task_reads, historical_scan_memo, ledger_purge_coalesce, queue_age_sample_budget UNSAFE — guard backend-sync 5xx rate 0.0065 (2182 errors) vs reference 0.0025. Verify verdict FAIL; pending-actions.json flag_off written by the tick.
  • Timeline (checked via git ancestry + workflow runs): usage_month_cache/queue_age_sample_budget reached 100% via lead train 017c8ed (verified serving ~01:0xZ); the graduation PR config(firestore): graduate backfill/historical-scan/ledger-purge levers 5->100 (verify PASS x3) #22958 (merge 4f8a5af, 100% for backfill_task_reads/historical_scan_memo/ledger_purge_coalesce) was served by the 02:47Z Cloud Run train (head 2a46d6a, SUCCESS) — i.e. all five were at/heading to 100% before the 04Z breach window. Causation is plausible, not exonerated: backend-sync 5xx 0.0065 vs ref 0.0025 arrived after the 100% rollout, and the runbook's flag-off-on-breach rule applies regardless. Re-enable at 5% once the rate persists in band with the levers at 0 (that exonerates them).
  • Unchanged: action_items_page, candidates_page, deletion_marker_cache, request_read_dedupe, serving_config_cache, subscription_cache at 100; singleton_loops stays 25; people_scan_dedupe stays 0.

Regenerated by set_levers.py: backend/deploy/runtime_env.yaml, feature-flag registry, and the contract tests pinning the rendered literal. Delta reviewed: every literal occurrence changes by exactly the five keys 100→0 (43 insertions / 43 deletions across 9 files, no other change).

Product invariants affected

  • INV-MEM-4 — named because this PR changes backend/deploy/runtime_env.yaml (a registry path); the change is a config value only (the FIRESTORE_READ_LEVERS literal) and does not alter memory promotion, consolidation, or intake behavior.

How it was verified

  • set_levers.py replace-mode regeneration: diff reviewed line-by-line — delta is exactly the five flagged levers 100→0 at all 45 literal value sites across 9 files.
  • Contract tests: test_render_backend_runtime_env.py + test_verify_pusher_config_references.py + test_firestore_read_levers.py — 121 passed (this branch).
  • Guards: verify.py FAIL at 05:01:28Z tick (the trigger); verdict PASS at 01Z–04Z ticks (4 consecutive prior ticks in band).
  • zcode glm-5.3 review of the diff: r1 exec-embrace-silent-make-market-turn-uncover FIX-REQUIRED (draft 8a82eaabe44 had usage_month_cache left at 100 — only 4 of 5 levers flagged; fixed in 016e543, all 45 literal sites re-verified carrying usage_month_cache:0); r2 re-review of 016e543: exec-age-awful-summer-permit-rabbit-slush VERDICT SAFE (all 45 occurrences verified byte-identical 13-key literal, compose render check clean, 121/121 re-run, no collateral flag changes)
  • CI gates this PR (Backend Unit Tests + Hermetic E2E); the loop compares failures against main's known-red set before merge-on-green.

Tests

Contract-test updates only; no code change.

UI evidence

UI-Evidence: none — config-only change.

Failure class (fixes)

Failure-Class: none

Rollout

URGENT flag-off. Config-only. Since 2026-10-20 the two-lane rollout lead owns every prod deploy: the loop posts the bus handoff after merge (train order listen → pusher → Cloud Run; FIRESTORE_READ_LEVERS order listen -> pusher -> Cloud Run). Every hour this literal stays at 100% the five levers stay enabled behind a 5xx-rate guard that has already breached once; the earlier the trains roll, the shorter the exposure. Rollback: revert this PR's literal (five levers back to 100) and re-run the same train; lever-off is the safe direction. Re-enable path: backend-sync 5xx in band 3+ ticks with these levers at 0 exonerates them → config PR back to 5% → ramp5 rule.

…Z tick)

verify.py UNSAFE at snapshot 2026-10-21T05:01:28Z: backend-sync 5xx rate
0.0065 (2182) vs ref 0.0025. Ambiguous causation (graduation train
#22958 may not have served yet) -> flag off per runbook judgment rule.
Re-enable at 5% once the rate persists in band with levers at 0.

Full 13-key replace-mode literal via set_levers.py; 121/121 contract
tests pass.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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-21T07:14:10.439068Z 016e543 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
Git-on-my-level merged commit 18f90e1 into main Oct 21, 2026
66 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/fsr-flagoff-05z branch October 21, 2026 07:28
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