Repository navigation
flags: dated sweep exceptions for overdue review_by rows; check on the UTC date - #24950
Merged
Merged
Conversation
…e UTC date ACTION_ITEM_REFRESH_PRESERVE_ENABLED passed its grace on the m5 local date and blocks every push; 91 more rows pass it by 2026-11-12. Cover the 97 rows that pass their grace before 2026-11-14 with REVIEW_OVERDUE entries expiring 2026-11-15 (ad1268 sweep in progress), allow an exception on a row still inside its grace, and default the check date to UTC so pre-push agrees with CI. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
No issues found across 2 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
You’re at about 99% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact [email protected].
This was referenced Nov 8, 2026
harden(flags): one due date, bounded extensions, owner cap on real debt, ops_kill defaults on
#24954
Merged
Git-on-my-level
added a commit
that referenced
this pull request
Nov 8, 2026
…ing (#24938) Published correction **20213fb59ddfc8faac2876f907c91d51a0433024**, verified **2026-11-08T23:33:16Z**; PR OPEN/unmerged, zero review requests. Review-desk FIX-FIRST findings are fixed: 55-minute per-series observation history, no optional-summary freshness failure, and same-replica summary freshness filtering. **All 14 requested monitoring/store suites passed (535 tests, no skips)**, including 53 real Prometheus scenarios. Complete guarded push hooks passed. **Exact-head CI is GREEN: 64 terminal checks, 0 pending/failed**. No production action or lifecycle state change. ## Symptom and evidence The N5 scope report measured held assignment age **881815s**, quarantine-held age **1835094s**, and corrupt record-pending age **~1.794e9s (~57 years)** during **2026-11-08T14:03–14:10Z**. Held-content snapshot was **6859s stale at 14:08Z**, with oldest published age **3678199s (42.6d)**. An approximately zero enqueue clock poisons the held-age sample. The aggregate Grafana dry-run measured **66 unprovisioned/changed rules** at **2026-11-08T14:05–14:59Z**: **17 firing**, including five real backlog pages and a false queue-blind page. Worker-plane sampler cadence was **~514s**, exceeding the prior 120s freshness budget. BYOK age was **219900s**, below 259200s but predicted to cross in ~11h if it keeps aging. These are the reports' historical measurements, not fresh production measurements in this lane. Evidence: workspace `data/run-2026-11-08-retro-fixnow/out-n5-scope.md` §§4–5 (source `0dc944b9e02`) and `out-grafana-dryrun.md` (rules at `2958b7c1b369`, baseline `027a61e0e951`). Import preparation authorized by lane-owner relay of lead2 ruling **699300, 2026-11-08T15:13Z**, superseding the dry-run's proposed BYOK page disposition. ## Change - Held-age sampling skips nonnumeric, boolean, nonfinite and nonpositive leg clocks, walking oldest-first by snapshot cursor with `limit(1)` per RPC. **Metrics sampler fix, not a lifecycle point fix**: no row writes, transitions, admission or lifecycle decisions. P3 freeze respected; drain/new-cohort sampling unchanged. Invalid prefixes require additional read-only document reads. - New `omi-oldest-age-gauge-flat-1h`: positive per-series projection-obligation/vendor-held/summary-debt/demand-processing ages with equal 1h maximum and minimum AND an observation at least 3300s old in that window, using `time() - min_over_time(timestamp(age)[1h:1m]) >= 3300`. Summary ages also require the matching replica timestamp younger than 300s. Positive total for 10m, noData OK. No absent/stale summary-timestamp failure arm; enablement-aware producer-blindness is separate runbook debt. Freshness companions named in verification. - New `omi-held-content-snapshot-stale`: newest fleet snapshot timestamp older than 3600s for 10m; missing snapshot Alerting. Both new rules are active warning/tier agent/audience agent with `omi-tier-silent`. - `omi-batch-queue-safety-blind`: freshness arm **120s → 900s**, retaining 5m pending, page routing and other query arms. Producer cadence and adapter freshness do not change. - Five known backlog page rules land **paused**, with written owner-approved unpause criteria below. Their tiers, thresholds and pending windows remain unchanged; notably held-row-age stays page / >21600s. - `omi-finalization-byok-dwell-page` retains UID, >259200s/1h threshold and source freshness; now active **warning/tier agent/audience agent**, `omi-tier-silent`, sibling warning notification timings. - Regenerated combined rules and GMP consumer-query inventory, metric declarations, runbooks and offline contracts. Existing vendor-held collector identity is expressed literally for the emitter scanner, pinned equal to its frozen name; emitted identity/labels/behavior unchanged. Corrected the older drain test's original-rule-only review deadline assumption. The reviewed lifecycle test inventory records BYOK's agent tier and eleven explicit strict known-gap clauses while the borrowed backlog pages are paused under ruling699300. The active-alert assertion is unchanged: each gap remains genuinely red, real unpause produces strict XPASS and forces debt-record removal, and an unreviewed pause still fails. The pre-push fallback now selects pytest filenames, excluding support modules/conftest that collect zero tests; the existing cap regression covers both test-name forms and helper-only changes. Its cap and full-CI requirement are unchanged. The separate fleet-verifier tests now expect exactly the three intentional gated-pause errors; the runtime verifier remains fail-closed. No state/exit/deadline or lifecycle decision is changed. ## Day-1 page list These are all active tier=page rules in the full import. Every row's receiver is explicitly listed; a row is eligible to notify only if its condition and pending window fire. **This is routing inventory, not a claim that every row fires at import.** The 12 rows marked `new/changed set` are the retained page guards in the dry-run's 66-rule set; other rows were already in the baseline. Four new/changed page guards remain unevaluable from GMP (N1 debt below). Agent-tier rules, including BYOK and both N5 sampler rules, are muted. | UID | Receiver | Meaning | Import set | | --- | --- | --- | --- | | `tz_parakeet_rps_zero` | Omi - Services Alerting (Telegram) | Parakeet receiving zero traffic for 10+ minutes — possible ILB connectivity or config issue | existing baseline | | `tz_backend_listen_lb_zero` | Omi - Services Alerting (Telegram) | Backend-listen receiving zero LB traffic for 10+ minutes — transcription pipeline may be down | existing baseline | | `tz_backend_listen_pods_zero` | Omi - Services Alerting (Telegram) | Backend-listen has zero ready pods — all replicas are down or failing health checks | existing baseline | | `tz_pusher_connections_zero` | Omi - Services Alerting (Telegram) | Pusher has zero active WebSocket connections for 10+ minutes — live transcription pipeline broken | existing baseline | | `tz_backend_cloudrun_zero` | Omi - Services Alerting (Telegram) | Backend Cloud Run service receiving zero LB traffic for 15+ minutes — API may be unreachable | existing baseline | | `tz_chat_agent_requests_zero` | Omi - Services Alerting (Telegram) | The AI chat agent lane served under 5 requests in an hour; the lowest hour in the preceding week was 18 | existing baseline | | `omi-journey-capture-success-critical` | Omi - Services Alerting (Telegram) | Capture finalization success share below the 90% paging floor while at least 20 journeys were accepted in 30m | existing baseline | | `omi-journey-pusher-success-critical` | Omi - Services Alerting (Telegram) | Pusher session success share below the 90% paging floor while at least 20 journeys were accepted in 30m | existing baseline | | `omi-journey-chat-success-critical` | Omi - Services Alerting (Telegram) | Chat response success share below the 90% paging floor with at least 20 journeys accepted and at least 5 failures in 30m | existing baseline | | `omi-stt-chain-exhausted-page` | Omi - Services Alerting (Telegram) | More than 60% of accepted /v4/listen sessions exhaust the live-STT provider chain in 5m | existing baseline | | `omi-stt-provider-budget` | Omi - Services Alerting (Telegram) | A live STT provider is out of balance or quota - top up the provider named in the alert instance labels. | existing baseline | | `omi-soniox-budget-exhausted` | Omi - Services Alerting (Telegram) | Soniox balance exhausted — top up now | existing baseline | | `omi-slo-live-critical` | Omi - Services Alerting (Telegram) | Live transcription - SLO budget burn (critical) | existing baseline | | `omi-slo-chat-critical` | Omi - Services Alerting (Telegram) | Mobile chat - SLO budget burn (critical) | existing baseline | | `omi-slo-pusher-critical` | Omi - Services Alerting (Telegram) | Pusher session - SLO budget burn (critical) | existing baseline | | `omi-datasource-prometheus` | Omi - Services Alerting (Telegram) | Prometheus alert query path failed or returned no sentinel samples. | existing baseline | | `omi-datasource-cloud-monitoring` | Omi - Services Alerting (Telegram) | Cloud Monitoring alert query path failed or returned no sentinel samples. | existing baseline | | `omi-datasource-gmp` | Omi - Services Alerting (Telegram) | GMP alert query path failed or returned no Cloud Run sentinel samples. | existing baseline | | `omi-capture-summary-never-published` | Omi - Services Alerting (Telegram) | Capture finalization - summary has not published | existing baseline | | `omi-stt-no-full-stage-target` | Omi - Services Alerting (Telegram) | No live STT target has been at cost-routing stage 100 for 10m, so the router serves every session from its availability escape | existing baseline | | `omi-sync-provider-budget-exhausted` | Omi - Services Alerting (Telegram) | Sync/prerecorded transcription jobs are failing because an STT vendor says the account is out of credits or budget | existing baseline | | `omi-device-wal-backlog-over-cap` | Omi - Services Alerting (Telegram) | Device signal wal-backlog-over-cap: distinct devices in the last hour exceed both the floor and 2x the 7-day hourly median. | existing baseline | | `omi-device-wedge-count-cap` | Omi - Services Alerting (Telegram) | Device signal wedge-count-cap: distinct devices in the last hour exceed both the floor and 2x the 7-day hourly median. | existing baseline | | `omi-batch-queue-safety-blind` | Omi - Services Alerting (Telegram) | Batch queue safety cannot measure every queue/retry priority, or its sample has been stale for fifteen minutes. | new/changed set | | `omi-batch-vendor-overflow-spend` | Omi - Services Alerting (Telegram) | Batch GPU overflow has sent more than $50 of fresh audio to Modulate in the last 24 hours | new/changed set | | `omi-finalization-pair-drift` | Omi - Services Alerting (Telegram) | Fresh lifecycle pair drift persists | new/changed set | | `omi-pipeline-upload-503-storm` | Omi - Services Alerting (Telegram) | Backend-sync upload admission exceeds 100 size-class 266-byte 503s/min for 10 minutes. | new/changed set | | `omi-pipeline-firestore-contention` | Omi - Services Alerting (Telegram) | Batch services log more than 20 FirestoreContentionExhausted entries/min for 10 minutes. | new/changed set | | `omi-pusher-storage-queue-critical` | Omi - Services Alerting (Telegram) | Pusher storage work is queuing persistently. | new/changed set | | `omi-pusher-memory-working-set-high` | Omi - Services Alerting (Telegram) | Pusher memory is approaching its container limit. | new/changed set | | `omi-batch-held-backlog-growing` | Omi - Services Alerting (Telegram) | Held batch backlog is growing or at least 10000 units | new/changed set | | `omi-enrichment-queue-depth-page` | Omi - Services Alerting (Telegram) | Enrichment queue is beyond its recent operating range | new/changed set | | `omi-stt-vendor-benched-page` | Omi - Services Alerting (Telegram) | A serving STT vendor remains at a low routing stage | new/changed set | | `omi-incluster-guard-unsafe-page` | Omi - Services Alerting (Telegram) | An in-cluster safety guard reports TRIP or BLIND | new/changed set | | `omi-modulate-credit-page` | Omi - Services Alerting (Telegram) | Modulate has rejected company credit | new/changed set | Historically firing page rules are paused; the queue-blind cadence fix should remove its healthy-cycle false positive. Current firing state must be rechecked at deployment. Existing baseline rules were not re-evaluated by the 66-rule dry-run. ## Paused at import Pausing withholds these five known-debt pages while #24731/#24893 drain owners track recovery. No automatic unpause; each requires a separate approved source/provisioning change. Missing/stale observations do not count as recovery. | UID | Unpause criteria (thresholds unchanged) | | --- | --- | | `omi-pipeline-held-row-age` | After #24731/#24893 drain work and the N5 invalid-clock sampler guard reach production, require fresh samples of every held leg below 21600s continuously for 24h. The drain owner must approve a separate unpause change; missing, stale or undated samples do not count as healthy. | | `omi-batch-unit-unpublished-2h` | After #24731/#24893 drain work reaches production, require both fresh timeliness and queue sources below 7200s continuously for 24h, with no blind scan. The drain owner must approve a separate unpause change; missing or stale samples do not count as healthy. | | `omi-enrichment-fresh-dwell` | After #24893 enrichment drain work reaches production, require fresh, untruncated fresh-cohort observations below 3600s continuously for 24h. The lifecycle owner must approve a separate unpause change; missing or stale samples do not count as healthy. | | `omi-record-pending-dwell` | After #24893 record-admission drain work reaches production, require fresh, untruncated record_pending cohort observations below 7200s continuously for 24h. The lifecycle owner must approve a separate unpause change; missing or stale samples do not count as healthy. | | `omi-pipeline-projection-drain-stall` | After #24731 projection drain work reaches production, require fresh projection-debt samples and complete delayed turn metrics continuously for 24h: either no pending projection debt, or claim_busy share <=0.5 and progress >=10 rows/s. The drain owner must approve a separate unpause change; missing or stale samples do not count as healthy. | ## Debt: 22 rules not evaluable from GMP until N1 scrape fixes land The dry-run could not query the in-cluster-only series through the ro-prod bot; these verdicts are **fires-unknown**, not healthy. Retro N1 owns listen/pusher scrapes and token, PodMonitoring and record-seal crashloop recovery. Four listed page-tier guards are expected to remain blind until their series exist; verify directly against Grafana's actual in-cluster datasource before import rather than treating GMP absence as acceptance. - `omi-scrape-backend-listen-metrics` - `omi-scrape-pusher-metrics` - `omi-scrape-llm-gateway-metrics` - `omi-scrape-dg_engine_metrics` - `omi-scrape-stackdriver-metrics` - `omi-scrape-cloud-run-application-metrics` - `omi-scrape-gpu-metrics` - `omi-scrape-parakeet` - `omi-scrape-record-seal-worker-metrics` - `omi-scrape-batch-pipeline-worker-metrics` - `omi-scrape-diarizer-batch-metrics` - `omi-stt-enabled-state-unknown` - `omi-stt-evidence-loss` - `omi-stt-pressure-sampler-stuck` - `omi-stt-snapshot-unready` - `omi-stt-stage-disagreement` - `omi-stt-vendor-benched-page` - `omi-modulate-credit-page` - `omi-pusher-storage-queue-warning` - `omi-pusher-storage-queue-critical` - `omi-pusher-storage-pcm-refusals` - `omi-pusher-memory-working-set-high` ## Expected firing and design questions From the historical baseline, **snapshot-stale will enter Alerting** after 10m if its measured 6859s stall persists, silently at agent tier. Known backlog pages remain paused; BYOK remains silent even when its dwell threshold crosses. Existing retry-age, lifecycle scan-blindness and sentinel warnings remain active agent-muted debt. Review-desk FIX-FIRST correction: all four series families require at least 55 minutes of per-series timestamp history within the 1h window (1m subquery, five-minute scrape/grid tolerance). This proves an observed span, not continuous scrape coverage, and cannot combine replicas. The existing 10m pending period remains. The standalone summary freshness arm, including `or vector(1)`, is removed entirely: intentional absence, zero or staleness of this optional producer cannot independently fire the rule. Summary flat-age counts require the same replica's sample younger than 300s, excluding retained former lease holders under `summary-guarantee.md:109–115`. Separate runbook debt: add an enablement/expected-producer signal and a dedicated freshness rule before claiming summary-debt blindness coverage. Current production enablement is not measured here. Offline Prometheus fixtures cover startup, 55-minute eligibility, pending/fire/recovery, cadence, replica separation, disabled/absent/stale timestamps and lease handoff. Review-thread replies are authorized; no review requests or production actions. ## Deploy, readback and rollback (not performed here) 1. Deploy the invalid-clock guard through the normal **backend train** to backend-integration and batch-worker sampler consumers. Verify each running release identity plus a fresh sampler metric/log; held ages must no longer use epoch-zero clocks. No migration or historical data repair. 2. After merge, an authorized deployer dispatches **`grafana_dashboard_provisioning.yml` with `environment=prod`**. A main push provisions dev only; live-STT egress import does not carry the N5 rules. No workflow edits or dispatches in this PR. 3. The separate live-STT coverage verifier currently rejects intentionally paused gated rules (`verify_pusher_live_alert_route.py:585–591,664–684`); report that debt to the import owner rather than unpausing known backlog to satisfy it. Full provisioning preserves the approved pauses. Read back production definitions with the provisioner without `--apply`. Require no drift: both N5 UIDs and queries/no-data states, all five pause flags and unpause annotations, queue-blind >=900s, BYOK warning/agent mute, preserved thresholds, receiver routing. Recheck signals on the actual datasource, including the 22 N1-debt rules. Then verify fresh snapshot publication and gauge behavior. Offline tests prove no live notification delivery. 4. Rollback uses the provisioner's saved backup or a scoped revert/regenerate/reapply through authorized provisioning. Pausing the new sampler UIDs is reversible; revert the clock guard through the backend train if needed. Do not unpause known backlog pages or restore the known 120s false-positive arm as an incidental rollback. No lifecycle/data rollback. ## Validation and publication - Correction head **20213fb59ddfc8faac2876f907c91d51a0433024**, local/remote/PR readback **2026-11-08T23:21:25Z**. Worktree clean; PR OPEN/unmerged, zero review requests. Published with required credential scrubbing, `TZ=UTC`, `OMI_PR_BODY_FILE` and 900s backend file budget through `bin/omi-heavy`. - Regenerated/linted **222 combined/split definitions**, regenerated GMP query audit, and passed the actual Promtool rule parser. The review correction changes only the flat-age rule query/annotations among those 222 UIDs. - Complete publication hooks passed: **51 manifest checks in 814.45s**, Pyright (192s), OpenAPI compatibility/schema checks, incremental macOS debug build (16.63s), and pinned formatting. No application launch/install or deployed acceptance. - Changed-file unit gate: **565 passed / 86 existing strict known-gap xfails**, seven isolated files. This includes all **14 oldest-age tests**, with four real Prometheus regressions covering **53 synthetic scenarios**, no skips (23:17Z). Startup/short history cannot qualify; sustained flat ages fire after observation history plus pending time, then resolve on change. Optional producer and replica-handoff controls pass. The 98-test sampler suite also passed, including invalid enqueue clocks. - All **14 requested monitoring/store suites passed: 535 tests, no skips**, verified **2026-11-08T23:33:16Z**. Five suites passed in the hook (215 tests); nine complementary suites passed through `bin/omi-heavy` (320 tests). `PROMTOOL_BIN` also executed the two older optional semantic regressions. These are two isolated runner commands on the same correction SHA, not a single combined pytest session. - Registry prerequisite: [#24950](#24950), merge `fadad03099acbf133fa6461f8f928d606cf6a236` at **2026-11-08T19:20:24Z**, covers the overdue flag and UTC date. Merged origin/main without rebasing before publication; no own registry metadata or `.github/` edits. - Exact-head CI **GREEN at 2026-11-08T23:33:16Z**: **64 terminal checks**, 0 pending/failed, first run on this correction (no retry). `scripts/pr-preflight --suggest`, draft-body metadata validation and complete publication checks passed. Four related review threads received correction/validation replies. Earlier source-audio CPU-budget timing instability and prior-head retries are recorded in the implementation report; no assertion, duration limit or allowlist was weakened. - No production reads or GCP tier used; no deployment, Grafana apply/readback, production historical replay, live notification delivery, merge, review request, bus post, heartbeat or new ANX ask. Failure-Class: none This observability/sampler and import-disposition change does not match an existing lifecycle/admission failure class. It changes no lifecycle decision or user row and adds no `.github/` definition under the lane boundary. Regression coverage pins invalid-clock walking, query observation history, optional-producer freshness, replica matching, inventory, preserved thresholds, pause recovery criteria and silent agent routing.
Git-on-my-level
added a commit
that referenced
this pull request
Nov 9, 2026
Import the exact checker and fixture versions already merged by PR #24950 on origin/main. This incorporates the approved dated sweep exceptions without changing registry decisions or runtime values.
Git-on-my-level
added a commit
that referenced
this pull request
Nov 9, 2026
…ple and task workflows (A2b) (#24870) <!-- claude-projects-attribution: {"github_login":"Git-on-my-level"} --> _Requested by **David**_ ## What changed and why Compose conformance-only typed cell adapters for folders, people, action items, goals and workstreams over the existing cell UoW, with expand-only query columns and shared simulator/Firestore/Postgres contracts. Restore legacy IDs from document keys without rewriting payloads, use keys for retirement and replacement, and preserve UTC goal-history fallback for falsy or invalid timezones. No serving selectors or configuration change; enrollment remains outside this PR. Firestore folder/event serving behavior and read costs remain unchanged. The earlier legacy person identity recovery remains: `FirestorePeople` receipt replay of a legacy person document stored without an `id` field now returns the document key as `id` (previously the replayed dict had no `id`); stored payloads are not rewritten. Covered by the shared ID-less conformance cases. ## Product invariants affected none ## How it was verified Round-1 conformance passed all 186 cases on required simulator, Firestore emulator and disposable local Postgres backends. Six focused/failed-file replays passed all 206 cases, including the corrected fingerprint and timeout fixture, strict port contracts, cell migration contracts, and unchanged speaker timing tests. The full 2,677-file unit command exited 1: 65,732 passed / 4 failed, plus one file timed out. The corrected and timing-sensitive cases passed serialized replay; the unchanged deploy-contract fixture still timed out at 900 seconds in both bulk and isolated runs. Its diagnostic stack was parsing AST import closures. No whole-suite green is claimed. The async scanner and expanded typecheck passed (0 type errors); frozen preflight passed all 43 checks. Metadata validation passed all 4 checks. No production access or GCP tier was used. ## Tests Shared regressions read ID-less documents across all five domains, check mutation-return IDs and key-based retirement/replacement, and verify projections do not add IDs to stored legacy payloads. Goal progress history covers valid, null, empty and invalid timezones through both append and update APIs. Existing migration contracts now reject destructive DDL; the import-only guard permits 120 seconds for process startup under load. ## UI evidence UI-Evidence: none -- backend only ## Failure class (fixes) Failure-Class: none ## Review fixes (round 17) - Goal focus enumerates the focus set, which locks it sorted, before it reads the requested goal. Folder reorder locks its ids sorted before it checks them. The cross-domain lock-order test now covers focus and reorder. - Lock order is a latency property here, not a correctness one. Every body read is `SELECT ... FOR UPDATE`, and some bodies are data-dependent: `append_progress_event` locks the goal, then `goal_history/<goal>/<day>`, and the day comes from `users/profile`. Those bodies cannot always lock in flush order. Correctness rests on the store treating `40P01` as retryable (`store.py:326`, bounded and jittered, whole-body replay). New test `test_inverted_lock_order_deadlock_is_detected_and_retried` uses two real connections that lock `a,b` and `b,a`. PostgreSQL aborts one, the retry commits it, and both increments land. 25 related files pass under test.sh. ## Review fixes (round 16) - Cross-domain bodies take row locks in flush's sorted `(entity, id)` order, so a concurrent raw write cannot deadlock them. Goal lifecycle detach locks linked tasks before the goal, then workstreams. Folder delete locks conversations before folders, and locks the deleted folder and its target in sorted order. Folder moves lock conversations sorted and refresh counts in sorted folder order. `_lock_in_order` moves from `WorkflowRepo` to `Repo` so the folder adapter can use it. - Sweep: `import_task_goal_links` already locked in order. `resolve_work_intent` touches only brand-new rows after the task and goal, and the other single-collection paths go through sorted queries. Test: `test_cross_domain_bodies_lock_in_flush_order` fails on 9e19c3f. 25 related files pass under test.sh. ## Review fixes (round 15) - A goal update now rejects `id`, `goal_id` and `account_generation`. Before, the patch was copied whole, so it could change identity or generation past the generation checks. Routers pass typed models without these fields. Test: `test_goal_update_rejects_identity_and_generation_fields[backend x field]`. - A `people.create` replay whose person was deleted returns the receipt id, as the Firestore path does, instead of raising `KeyError`. Test: `test_person_create_replay_survives_deleted_person[postgres|sim]`. - Sweep: every other `if prior is not None` replay in the cell adapters returns a stored id or reads through `.get`. Workstream and folder updates use typed patch models, so they cannot carry identity fields. Both fixes are mirrored in the sim twin. All 8 new cases fail on a1def7b, and the file passes 71/71. ## Review fixes (round 14) - A saved `None` mutation result now replays. `receipt()` returned `None` both when there was no receipt and when the saved result was `None`, so a missing-goal update that was retried after the goal appeared applied the old patch. `_idempotent` now checks whether a receipt exists (`receipt_entry`), in the adapter and in its sim twin. Test: `test_goal_update_replays_saved_none_after_goal_appears[postgres|sim]`, which fails on the previous head. - Merged origin/main to pick up the #24950 registry-gate fix. The flake-fix conflict in `test_qualify_parakeet_route.py` took main's version (#24948). The `domain_sim/store.py` baseline moved to 1511 -> 1619. ## Scoped cleanups (optional) Cell-native creates retain redundant IDs as a documented metadata exception to payload byte parity. Before W5 enrollment, integrate the Firestore-owned profile timezone source and confirm the naive legacy timestamp policy before serving those paths. Round 5 verifies the list indexes; round 6 aligns raw and typed writer lock ordering. No edits under `.github/`, `backend/database/jobstore/` or `backend/testing/store_fixtures.py`. Line-Count-Exception: backend/testing/domain_sim/store.py | 1511 -> 1625 | Shared legacy identity, timezone, chat snapshot, lifecycle, malformed-event, jsonb key-order and typed-generation conformance requires independent simulator behavior in the existing reference adapter. ## Housekeeping Removes lane working notes (`.agent-artifacts/pgf/{a2a,b2,merge-owner-fix}-*`) that merged with #24852 and #24805. One test-only isolation fix in `test_qualify_parakeet_route.py` (timeout injection leaked across cases under load). Long-term data foundation wave A2b (follows #24852). Rebased on main after #24852 merged. ## Review fixes (round 7) - Object- and array-valued legacy folder `order` values sort by PostgreSQL `jsonb::text` (keys by length, then bytes) in the cell cursor and the simulator, matching the SQL order function and index; regression case `[{'b': 0}, {'aa': 0, 'z': 0}]` across limits and pending/committed rows. ## Review fixes (round 8) - `account_generation` filters in cell action-item idempotency and workstream lists compare typed JSON (`coalesce(doc->'account_generation','0')=to_jsonb(gen)`): missing is 0, wrong-typed legacy values are nonmatches instead of a failing bigint cast; regression test for string, boolean, numeric-string and null values. ## Review fixes (round 9) - Python mutation guards (`CellWorkstreams._require`, action-item document reuse) use `generation_matches`, the twin of the typed SQL filter: a missing field is 0, only JSON numbers match, booleans/strings/null are refused; regression test for update on wrong-typed rows. 🤖 Generated with [Claude Code](https://claude.com/claude-code) ## Review fixes (round 2) The immutable timestamp decoder now treats PostgreSQL timezone displacement errors (SQLSTATE 22009) as NULL, alongside malformed dates and datetime overflow. Real PostgreSQL regressions cover positive and negative +99:99/+24:00 equivalents in both plain strings and codec-tagged timestamps, including STORED-column writes. Migration 0003 remains expand-only and its checksum is re-pinned before enrollment. The cell action-item update enforces the same encoded before-state comparison and after-state result as Firestore. Shared conformance covers stale snapshots for changed and no-op patches, rejection without writes or receipts, matching snapshots, and successful receipt replay. The independent simulator is corrected too. The mutation fingerprint is unchanged because Firestore excludes expected_chat_state. The full shared run also exposed a cell folder-deletion parity defect: rehoming overwrote folder_user_set instead of preserving the stored marker. The one-line cell correction follows Firestore and the independent simulator; the existing shared parametrized regression covers absent, false and true markers, with and without a default folder, inside and outside a UoW. Round-2 focused regressions passed all 14 cases, and the final required simulator/Firestore-emulator/Postgres conformance plus migration run passed all 225 cases with no skips. Full backend typecheck passed with zero errors. At the round-2 handoff the full selected unit run was still in progress; its unchanged timeout-probe and Opus-discovery failures both pass isolated replay (16 and 68 tests respectively). No whole-suite green is claimed; terminal counts and preflight results will be recorded before handoff. ## Review fixes (round 3) Cell and simulator now preserve terminal/paused/background goals on unfocus, reject invalid relationship dispositions, and apply the same strict workstream patch schema as Firestore so identity and account generation cannot change through update. Shared tests assert no writes on rejection and that rejected requests do not consume idempotency keys. Round 4 restores `backend/database/{folders,goals,workstreams}.py` and `test_firestore_query_contract.py` exactly to their pre-round-3 contents (61e183e). Firestore folder/event serving behavior and read costs stay unchanged. Cell and simulator exclude missing or null discarded fields from default folder listings, matching Firestore's server-side `discarded == False` predicate before pagination. Include-discarded behavior and the historical post-pagination deleted filter are preserved. Cell event queries keep a guarded numeric cast and apply stored-type ordering and the query limit before validating the existing Firestore presentation model; malformed rows consume window slots and are then dropped. Workstream numeric inequality excludes nonnumeric stored types; goal ordering includes them. Valid integer strings above bigint range remain readable, with no bigint cast. Oversized doubles consume their query slot and are then dropped, matching Pydantic's existing float-to-int range check; the cell accounts for JSONB decoding integral doubles as Python integers. Shared cases cover malformed strings, null, objects, arrays, fractional/zero/negative/boolean/timestamp sequences, a one-row window consumed by malformed parent IDs/kinds/summaries, missing ordered fields, numeric versus string ordering, and document-key tiebreaks. People name lookup remains string-only in cell and simulator. Migration 0003 adds all ten generated columns with one ALTER TABLE, preventing repeated table rewrites. Its name remains 0004_task_workflow_typed.sql for lead-owned merge-time renumbering, and the checksum and migration contract are updated. Round-4 validation supersedes the earlier round-3 result: required simulator/Firestore-emulator/Postgres shared conformance and cell migration tests passed all 327 cases without failures or skips. All 17 focused unit files passed 1,036 cases, including all 50 restored query-contract cases; the standard unit runner deselected one slow query-shape sentinel. The full preflight then included that sentinel and passed all 840 Firestore guard cases and all 39 checks (550.42 seconds). Environment preflight passed 17 checks with 9 optional warnings and 0 failures. Canonical full backend typecheck passed with 0 errors / 76,784 warnings. The initial preflight timed out the query-shape file at its default 300-second budget; the retry used the supported 1,800-second local per-file override, with no assertion, repository timeout or guard changes. An ad hoc typecheck omitted --pythonpath and reported missing dependencies; the canonical backend/scripts/typecheck.sh invocation explicitly bound this worktree's Python and passed. A conservative 2,694-file unit attempt was stopped after focused coverage passed, following the lead's earlier publication-gate scope. No full-unit-suite or CI green is claimed. No GCP tier, production access, push or PR creation was used. ## Known parity differences No unavoidable bigint-range result difference is known for Firestore-storable values: shared tests require identical accepted large integer strings and rejection of oversized doubles. Firestore does not store integer-typed values outside signed 64-bit range. Cell numeric fields outside that range are dropped after LIMIT, matching the only Firestore-storable numeric representation (double); integer strings are preserved without that bound. This PR does not enroll or serve cell owners. ## Review fixes (round 5) Cell folder pagination now returns the exact SQL ordering key as JSONB text with each row and uses that text unchanged in the next cursor. This removes Python repr differences for legacy objects and arrays, preserves SQL numeric precision, and works for persisted rows and pending UoW writes. PostgreSQL regressions put page boundaries on arrays and non-datetime objects, including equal values with document-key tiebreaks and page sizes one and two. Migration 0003 retains its filename and one ALTER TABLE for all ten generated columns, with its checksum re-pinned. The folder list and expression index share the immutable cell_folder_order_key(q_order) function. The action-item list index matches the query's coalesced completion, due-null marker, due epoch, negative created epoch, and document-key expressions. Explicit UTC extraction makes the epoch expressions immutable without changing ordering. EXPLAIN regressions inspect the actual adapter queries and require their named indexes with no Sort or Incremental Sort. Before the fix, all ten new regressions failed: eight pagination cases skipped rows and both index cases required a sort. After the fix, all 31 migration/typed-cell tests passed. No production access, GCP tier, push, PR creation, main merge, full selector, full preflight or repository typecheck was used in round 5; the lead owns the publication gate. Round-5 terminal validation: required shared simulator/Firestore-emulator/Postgres conformance passed all 306 cases with no skips, and the nine directly related file-isolated unit suites passed all 167 cases. Together with the 31 migration/typed-cell cases, all 504 focused cases passed. Firestore emulators shut down normally; all verification commands and the task-owned heartbeat are stopped. Commit: 7a15c78. ## Review fixes (round 6) Raw and typed cell writers now take document/missing-key locks before the admission/sequence head. The typed UoW retains its per-space advisory serialization, but no longer locks space_heads before the body; raw flush locks all buffered addresses before checking the writable-space fence and replay receipts. The fence, sequence allocation, change log and receipt writes remain in the same transaction through commit. Four two-connection PostgreSQL regressions cover existing and missing rows, raw read-before-write and buffered-only writes, with a one-second lock_timeout and retries disabled. Each verifies distinct connection PIDs, both commits, the final shared row and the sequence head. The shared event decoder rejects numeric values below -9223372036854775808 as well as above 9223372036854775807. Eight real JSONB round-trip cases verify both numeric bounds, integral doubles losing their float type, and preservation of integer strings outside the numeric range. Migration 0004_task_workflow_typed.sql is unchanged. The pre-fix regression run reproduced six failures (four lock-order cases and two lower-bound cases), with six passing boundary controls. After the fix, the complete migration/typed-cell and raw-cell suites passed all 71 cases with no skips. No full selector, full preflight or repository typecheck was run in round 6; the lead owns the publication gate. No production access, GCP tier, push, PR creation or main merge was used. Round-6 terminal validation: all 547 focused cases passed with no failures or skips (71 migration/raw-cell cases, 306 required simulator/Firestore-emulator/Postgres shared cases, 170 directly related file-isolated unit cases). Backend Pyright scoped to the four changed Python files passed with zero errors / 733 warnings. The initial typecheck identified the regression's deliberate protected-method instrumentation; its single targeted annotation documents that test seam. The pinned formatter left all four files unchanged, and git diff --check passed. All verification commands and disposable stores have stopped, and the task-owned heartbeat was verified by PID/parent and terminated. Code commit: cf43cce. No artifacts were committed. ### Review fixes (round 10) - **Strict generation checks on link paths.** `resolve_work_intent`, `import_task_goal_links` and `validate_task_relationship` compared generations with Python equality, so a boolean `false`/`true` passed the generation 0/1 guards. They now use the typed `generation_matches` helper, which reads the raw row (the entity model would coerce a boolean to an int). The simulator twin gets the same checks, including its create-reuse, document-id and `list_open` paths. - `test_wrong_typed_generation_refuses_task_goal_links` covers boolean, string and fractional generations; it fails on the previous head. - Verified: 15 cells, workstream, goal, action-item and cell-store conformance suites, 321 passed. ### Review fixes (round 11) - **Key projections keep the JSON type.** `q_conversation_id`, `q_idempotency_key` and `q_goal_id` in migration 0004 now project only JSON strings, so a legacy numeric `idempotency_key: 123` no longer matches a request for `"123"`. The simulator already compared typed values. `q_status` is unchanged, since a NULL there would read as `active`. The pinned 0004 checksum in the migration test is updated (0004 has never been applied outside tests). - `test_numeric_legacy_idempotency_key_does_not_match_string_request` fails on the previous migration and passes now. - Verified: the same 15 suites, 322 passed. ### Review fixes (round 12) - **Pending overlay matches migration 0004.** The read-your-writes overlay in `space_store.py` now projects `q_conversation_id`, `q_idempotency_key` and `q_goal_id` as string-only, exactly like the generated columns, so a numeric legacy key edited in the same unit of work no longer matches a string request. `test_pending_overlay_keeps_numeric_idempotency_key_typed` fails on the previous head. - The same rule now covers the two remaining id lookups this PR adds: folder conversations by `folder_id` and workstream artifacts by `workstream_id` match only string-valued ids, as the simulator's typed equality does. - Verified: the workflow, cells and conformance suites (323 passed) plus 12 folder test files run one per process (99 passed). ### CI fix (round 12b) - **Migration 0004 on a fresh PostgreSQL 17 database.** CI failed `test_cell_wipe_step`, `test_directory_router` and `test_cell_store_conformance` at collection time with `function cell_query_timestamp(jsonb) does not exist`. PostgreSQL 17 builds expression indexes under `search_path = pg_catalog, pg_temp`, so the SQL `cell_folder_order_key` could not resolve the decoder while building `cell_docs_folder_order`. The function now pins `SET search_path FROM CURRENT`. Reproduced locally on a fresh database: the old migration fails a `REINDEX` under the restricted path, and the new one passes. `test_folder_order_index_rebuilds_under_restricted_search_path` covers it. The pinned 0004 checksum is updated. ### Review fixes (round 13) - **Consistent row-lock order.** `delete_batch`, `get_by_ids` and `import_task_goal_links` read (and so lock) rows in caller order, while buffered raw writes lock in sorted `(entity, entity_id)` order at flush; two such transactions could deadlock. A new `_lock_in_order` helper reads the ids sorted first, in flush's entity order (action items, then goals, then workstreams), before the body runs. `test_multi_row_bodies_lock_rows_in_flush_order` fails on the previous head. - Verified: workflow, cells and conformance suites, 325 passed.
Git-on-my-level
added a commit
that referenced
this pull request
Nov 9, 2026
#24956) <!-- claude-projects-attribution: {"github_login":"Git-on-my-level"} --> _Requested by **David**_ Episode F reached 100% while backend-listen served an image without its code; listen/pusher were unscraped, so missing metric series looked clean. Production raises now require evidence from the serving code and its telemetry before writing. All three writers share `backend/scripts/rollout/live_preflight.py`: flag-store set/import/delete writes, operator `_ramp` percent raises, and controller ADVANCE. Runtime containment comes from reading sites and `runtime_images.json`, deriving record-seal from the batch chart and excluding the uninstalled pilot. The registry also drives direct deploy admission, so the child deployment is derived in code instead of adding an incompatible standalone service row. All nonterminated GKE replicas and the actual 100% Cloud Run traffic revision must contain every required code/registry commit, including introductions on parallel Git branches. Digest images bind through release SHA/tree labels. Refusals are `RAMP_PREFLIGHT REFUSE not_live`, `commit_unbound`, `key_unread`, `scrape_unknown runtime=<name>`, `scrape_dead`, or `metric_dead` (exit 3). Transport or malformed evidence emits `RAMP_PREFLIGHT UNREAD <what> reason=<fixed-token>` (exit 4). Scrapes use the repository expected-targets inventory and require samples with every `up` value 1 over 30 minutes. The first `\bomi_[a-z0-9_]+\b` metric in ramp prose must have a nonzero series in 30 minutes; unparseable prose emits `RAMP_PREFLIGHT NOTE metric_unparsed key=<K>` and skips that metric check. One shared `widens_exposure` predicate governs all writers: percent increases, activation, allow additions and deny removals widen; decreases, deactivation, allow removals and deny additions narrow. Deleting an Omi override returns control to PostHog and is widening unless the current rule is active at 100% with no deny UIDs; delete is gated against possible 100% exposure. Pure narrowing never runs preflight or its Git fetch. Mixed widening/narrowing writes refuse with `RAMP_PREFLIGHT REFUSE mixed_write` (exit 2) before liveness evidence; run the narrowing change alone first, then the raise. Overrides cannot accept a mixed write. A controller refusal HOLDs its advance; rollback remains available when evidence reads fail. Existing CAS, writer authority and quality-floor rules remain in force. `--accept-not-live REASON` requires at least 15 characters. It prints OVERRIDE and appends `accept_not_live:<REASON>` to the writer's existing durable audit reason. `_ramp` stores the explanation in its transaction's history row while preserving the short serving reason token for deployed reader compatibility. No bus dependency or credential installation is introduced; reads use the write command's existing operator credentials. Why isn't this a shared primitive instead? It is: one prover is imported by all three writers and is reusable by train readback. The real incident above is the regression case. The drift report and meta-repo ramp_apply gate are outside this PR. ## Product invariants affected none — operator admission and audit behavior only. ## Failure class Failure-Class: FC-unprovisioned-rollout-target Exposure must not increase before the required reader code is deployed. The shared live preflight and its temporary-Git/cloud evidence regressions enforce that admission contract for these writers. ## Verification prerequisite Synced `scripts/check_feature_flag_registry.py` and its test file exactly from `origin/main` at `6a03440964b9ecf21330cc87a8b2c30dcce712da`, incorporating the already-merged #24950 dated sweep exceptions/UTC-date fix. The lane's older checker began failing on the unchanged Nov 1 review date after UTC midnight. No new review decision, exception, registry value, local merge or force-push is introduced; these two files are byte-identical to current main. ## Validation Third-review fix: - Deleting an inactive or partial Omi override now preflights the PostHog handoff at 100%; a fully active 100% rule bypasses only when it has no deny UIDs. Regressions cover both decisions and exits 3/4 preserving the rule before any write. The shared predicate and runbook document the handoff. `_ramp`/controller writes merge percent patches and expose no delete/reset-to-another-source operation; clearing a lock does not remove percentages. Kill/deactivate/decrease/deny-add/allow-removal remain preflight-free. Second-review fixes: - Mixed `_ramp` increases/decreases refuse with exit 2 and `mixed_write` before either evidence gate, Git fetch or write, including overrides and dry runs. The regression commits a standalone decrease with CAS, then proves a failed fetch blocks only the later raise. - Flag allow-add/percent-down and activation/percent-down combinations refuse as mixed; the expanded matrix also covers raises combined with deny additions, allow removals and kills. Pure narrowing remains independent of liveness reads. - Deny UID removal is widening and runs preflight even at zero percent or on an inactive rule; failure refuses before writing. The same predicate governs flag set/import, ramp_set and the controller; controller HOLD and rollback behavior remain covered. Prior review regressions remain: fresh reader discovery after bounded origin fetch, job-template SHA/image containment with scrape-not-applicable NOTE, and source-projected Cloud Run evidence that excludes secret-looking env values. Canonical five-file `backend/test.sh` via `TZ=UTC BACKEND_UNIT_FILE_BUDGET_SECONDS=900 /Users/dazheng/workspace/omi/bin/omi-heavy run --wait 7200 -- bash .../verify-live.sh`: **490 passed** (live_preflight 27; omi_flags 71; ramp_controller/ramp_set 120; rollout_cohorts 29; runtime_percent 243), measured completion **2026-11-09T01:27:49Z**. Evidence: `live3-tests.log` and `live3-unit-receipt.json` in the run directory. Targeted Pyright of all **nine** PR Python files through `omi-heavy` completed **2026-11-09T01:26:46Z**: **61 pre-existing errors, 1547 warnings, zero new errors**. Every current error maps to an unchanged line with the same message/rule/column in prior head `b1f33d58c6e3`; the targeted command remains non-green on that existing debt. No diagnostic settings were relaxed. Evidence: `live3-pyright-all.py`, `live3-pyright-all.log` and `live3-pyright-all.json`. Full `scripts/pr-preflight --lane local --pr-body-file .../live3-pr-body.md` through `omi-heavy` passed **38 checks**, measured completion **2026-11-09T01:33:46Z** (`live3-preflight.log`). The credential-scrubbed `bash .../live3-push.sh` completed **2026-11-09T01:43:45Z** on head `391e70be7556c3d9e6e408eab7df400d999fde22`: all mandatory hooks passed, including **38 preflight checks**, **218 selected unit tests** (27 + 71 + 120), configured backend Pyright **0 errors**, and pinned formatting. No check was skipped. The wrapper unsets `GOOGLE_APPLICATION_CREDENTIALS` and every `CLOUDSDK_*` variable and exports `BACKEND_UNIT_FILE_BUDGET_SECONDS=900 TZ=UTC`. Evidence: `live3-push.log` and `live3-push-receipt.json`. No .github change. No prod calls in tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code). <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/24956?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/24956?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F24956&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. -->
Git-on-my-level
added a commit
that referenced
this pull request
Nov 9, 2026
…4964) Data only: extend overdue registry review scheduling by 14 days under David's decision to extend ACTION_ITEM_REFRESH_PRESERVE_ENABLED (coordkit-relay b7315f, 2026-11-09 03:09Z) and lead2 ruling dc90dd authorizing one data-only PR for all flags that would fail the seven-day grace gate through 2026-11-12 UTC without exceptions. 80 eligible entries: review_by <= 2026-11-04. Each note retains its existing text and adds the owner and a reason from the entry's summary/state. ACTION_ITEM_REFRESH_PRESERVE_ENABLED moves 2026-11-01 to 2026-11-15. Other eligible review dates move exactly 14 days. Regenerated documentation retains its committed as-of date, 2026-11-05. Decisions, terminal states, ramps, done_by, defaults and runtime values are unchanged. The lane owner authorized removing exactly the REVIEW_OVERDUE entries for the 80 renewed flags; the remaining 15 sweep exceptions and OWNER_BACKLOG_EXCEPTIONS are unchanged. _AD1268_SWEEP remains used. No checker logic or fixture tests change. No deployment, flag flip, merge or review requests. ## Product invariants affected none — registry scheduling metadata, stale-exception data cleanup, and generated documentation only. ## Failure class Failure-Class: none Registry gate: overdue review dates. This change renews review scheduling only; no runtime behavior fix. removes the 80 #24950 sweep exceptions these renewals make stale ## Full old-to-new table | Flag | Owner | Old review_by | New review_by | Reason | Source | | --- | --- | --- | --- | --- | --- | | `ACTION_ITEM_REFRESH_PRESERVE_ENABLED` | dazheng | 2026-11-01 | 2026-11-15 | Graduated default-on task preservation still needs its follow-up review | `config/feature-flags.yaml:496` | | `BATCH_PIPELINE_ASYNC_PROJECTION_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Default off; ordered assignment releases its owner claim before bounded asynchronous durable projection follow-ups | `config/feature-flags.yaml:267` | | `BATCH_PIPELINE_AUTHORITATIVE_LABELS_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Default off; persist pyannote batch speaker authority and explicit anonymous abstention | `config/feature-flags.yaml:288` | | `BATCH_PIPELINE_CORRECTNESS_METRICS_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Default off; count observed committed transitions, captured duration and projected assignment authority without reads | `config/feature-flags.yaml:293` | | `BATCH_PIPELINE_EMPTY_ASR_DISPOSITION_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Default off; strict local VAD resolves empty/no-owned ASR to silence or one fenced legacy recovery; historical operator never resets paid intents | `config/feature-flags.yaml:289` | | `BATCH_PIPELINE_EMPTY_ASR_RECOVERY_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Default off; hand speech-bearing empty ASR after padded retry to fenced per-segment recovery | `config/feature-flags.yaml:290` | | `BATCH_PIPELINE_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Code-default-off durable batch admission gate; requires explicit allowlist or nonzero stable cohort; prod David-only rollout, dev off | `config/feature-flags.yaml:312` | | `BATCH_PIPELINE_HEAD_PRIORITY_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Default off; prioritize an eligible queued owner merge head within its existing scheduling class | `config/feature-flags.yaml:266` | | `BATCH_PIPELINE_LIVE_ADMISSION_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Default off; reserve retained live and desktop recordings for durable record admission with the sync cohort | `config/feature-flags.yaml:274` | | `BATCH_PIPELINE_PERCENT` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Env fallback for runtime _ramp batch-pipeline percentage; stable owner cohort requires global enable; code default zero | `config/feature-flags.yaml:313` | | `BATCH_PIPELINE_PROJECTION_CONTENTION_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Default off; coalesce batch projection per owner and retry explicit transaction contention | `config/feature-flags.yaml:276` | | `BATCH_PIPELINE_PROJECTION_TIMING_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Default false; content-free monotonic start finish and error timings for batch projection phases | `config/feature-flags.yaml:269` | | `BATCH_PIPELINE_READ_ONLY_METRICS_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Default false; refresh batch queue gauges without scrape-driven reconciliation when supervised serving is enabled | `config/feature-flags.yaml:268` | | `BATCH_PIPELINE_RECOVERY_ALL_ADMITTED` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Default off; recovery mode on permits the existing bounded sweep across already-admitted batch owners | `config/feature-flags.yaml:292` | | `BATCH_PIPELINE_RECOVERY_MODE` | dazheng | 2026-11-04 | 2026-11-18 | Retention follow-up remains due for: Default off; on enables fenced per-segment legacy STT recovery for recovery allowlisted owners or the explicit all-admitted gate | `config/feature-flags.yaml:300` | | `BATCH_PIPELINE_RECOVERY_UID_ALLOWLIST` | dazheng | 2026-11-04 | 2026-11-18 | Removal follow-up remains due for: Comma-separated recovery owners; empty denies all unless the separate all-admitted gate is enabled | `config/feature-flags.yaml:301` | | `BATCH_PIPELINE_REQUIRE_LIVE_TARGET_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Default off; hold explicit batch targets until live persistence instead of creating a duplicate anchor | `config/feature-flags.yaml:291` | | `BATCH_PIPELINE_SERVING_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Retention follow-up remains due for: Code-default-off supervised backend recovery and ordered projection pump; keep on to drain after admission rollback; prod David-only rollout, dev off | `config/feature-flags.yaml:304` | | `BATCH_PIPELINE_SHADOW_PERCENT` | dazheng | 2026-11-04 | 2026-11-18 | Removal follow-up remains due for: Default zero; independent static owner-hash shadow of legacy uploads, disjoint from batch admission, idle GPU offers only and no publication | `config/feature-flags.yaml:189` | | `BATCH_PIPELINE_SHARED_LIVE_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Default-off shared-live pull gate; requires fresh exclusive slack, empty live queue, GPU memory and utilization checks and one item at most 120 seconds | `config/feature-flags.yaml:311` | | `BATCH_PIPELINE_SPEECH_EMPTY_MULTILINGUAL_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Default off; speech-positive empty batch ASR uses one independent multilingual recovery call within its paid intent | `config/feature-flags.yaml:275` | | `BATCH_PIPELINE_TERMINAL_EMPTY_DISPOSITION_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Default off; positive strict VAD with exhausted GPU padded and multilingual recognition completes with distinct no_recoverable_speech result | `config/feature-flags.yaml:273` | | `BATCH_PIPELINE_UID_ALLOWLIST` | dazheng | 2026-11-04 | 2026-11-18 | Removal follow-up remains due for: Explicit durable batch admission owner cohort; default empty and requires global enable; prod David-only rollout, dev off | `config/feature-flags.yaml:314` | | `BATCH_PIPELINE_WORKER_SILENCE_DISPOSITION_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Default off; empty-ASR worker jobs reuse integration strict local VAD to commit confirmed silence before quarantine | `config/feature-flags.yaml:271` | | `CAPTURE_GROUP_CONTAINMENT_MODE` | dazheng | 2026-11-03 | 2026-11-17 | Rollout review remains due for: Time-aligned user utterance containment for complementary cross-source capture groups; off\|shadow\|on, default shadow, unknown off | `config/feature-flags.yaml:516` | | `CONVERSATION_REPROCESS_RESULT_CONTRACT_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Default off; an explicit app that produces nothing on user reprocess answers 502 app_result_failed instead of the generic 500. The 409 busy answer and keep-other-results replacement are unconditional since the summary-correctness fix | `config/feature-flags.yaml:286` | | `DREAM_AGENT_PAID_PERCENT` | dazheng | 2026-11-04 | 2026-11-18 | Removal follow-up remains due for: Stable per-owner percent of paid owners eligible under ELIGIBILITY=paid; unset admits all paid owners, malformed admits none; listed owners always stay in | `config/feature-flags.yaml:355` | | `DREAM_HISTORY_COMPACT_MODE` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Replace older large Dream tool results with a stub once the main prompt is large (seed and latest results kept): off/shadow/serve; default shadow measures elidable size only | `config/feature-flags.yaml:365` | | `DREAM_HISTORY_COMPACT_MODE_SERVE_PERCENT` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: History-compaction serve cohort percentage under shadow mode; default 0 | `config/feature-flags.yaml:366` | | `DREAM_IDLE_SKIP_MODE` | dazheng | 2026-11-04 | 2026-11-18 | Removal follow-up remains due for: Skip and park scheduled Dream passes for owners with no dirty work or owed backlog intake (no slow-rotation floor, David 2026-10-28): off/shadow/serve; default off (retired 2026-10-30); shadow records would_skip | `config/feature-flags.yaml:361` | | `DREAM_IDLE_SKIP_MODE_SERVE_PERCENT` | dazheng | 2026-11-04 | 2026-11-18 | Removal follow-up remains due for: Idle-skip serve cohort percentage under shadow mode; default 0, invalid admits nobody | `config/feature-flags.yaml:362` | | `DREAM_MATERIAL_BUDGET_MODE` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Size the Dream pass token ceiling by new material (dirty refs plus backlog candidates) instead of history size; never above today's ceiling: off/shadow/serve; default shadow | `config/feature-flags.yaml:363` | | `DREAM_MATERIAL_BUDGET_MODE_SERVE_PERCENT` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Material-budget serve cohort percentage under shadow mode; default 0 | `config/feature-flags.yaml:364` | | `DREAM_PAYOFF_ORDER_MODE` | dazheng | 2026-11-04 | 2026-11-18 | Retention follow-up remains due for: Order each Dream sweep's oldest 1,000 due owners by new material, last yield and heavy size, owners 30 days overdue first: off/shadow/serve (global); default serve (David 2026-10-30: payoff first) | `config/feature-flags.yaml:367` | | `EPISODES_CLIENT_CHANNELS` | dazheng | 2026-11-03 | 2026-11-17 | Rollout review remains due for: Default beta; comma-separated X-Omi-App-Channel values (beta, store) whose episodes API calls are admitted and set the client-seen marker. A missing or unknown channel is never admitted | `config/feature-flags.yaml:194` | | `EPISODES_PERCENT` | dazheng | 2026-11-03 | 2026-11-17 | Rollout review remains due for: Default 100; stable salted uid bucket admitted to episodes when EPISODES_ENABLED is on. Admission alone spends nothing: listen and the finalizer also need a client that called /v1/episodes within 14 days (Redis episodes:client_seen:{uid}). Invalid values admit only the allowlist | `config/feature-flags.yaml:193` | | `FIRST_SUMMARY_DEADLINE_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Code default false; production on across all summary hosts; durable first-summary deadline and terminal receipt contract | `config/feature-flags.yaml:676` | | `FIRST_SUMMARY_DEADLINE_PERCENT` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Code default zero; production 100 percent on all summary hosts; zero percent admits only explicit allowlist owners | `config/feature-flags.yaml:315` | | `FIRST_SUMMARY_PRESERVE_ADMITTED_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Default false; preserve existing first-summary deadlines and output obligations across cohort rollback while the deadline master remains on | `config/feature-flags.yaml:270` | | `FIRST_SUMMARY_UID_ALLOWLIST` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Optional summary canary owner allowlist; empty admits only the positive percentage cohort when global gate is on | `config/feature-flags.yaml:677` | | `LIVE_CAPTURE_WINDOW_MERGE_PRESERVATION` | dazheng | 2026-11-03 | 2026-11-17 | Rollout review remains due for: Preserve original live provider segments when a merge or partial repair would discard known capture windows; default off | `config/feature-flags.yaml:470` | | `LIVE_CAPTURE_WINDOW_MERGE_UNION` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Union known live windows across positive gaps only with same-epoch accepted-send proof; default off | `config/feature-flags.yaml:471` | | `LIVE_CAPTURE_WINDOW_RETENTION` | dazheng | 2026-11-03 | 2026-11-17 | Rollout review remains due for: Retain up to 512 observed capture anchors and 16384 accepted-send spans for delayed live finals; default off | `config/feature-flags.yaml:468` | | `LIVE_CAPTURE_WINDOW_STRICT_PROJECTION` | dazheng | 2026-11-03 | 2026-11-17 | Rollout review remains due for: Project legacy capture windows as half-open intervals and refuse observed wall hiatuses; default off | `config/feature-flags.yaml:469` | | `LIVE_CAPTURE_WINDOW_TRANSLATOR_SENDS` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Register observed raw replay and managed pre-finalize sends; default off | `config/feature-flags.yaml:455` | | `PARAKEET_EXPLICIT_CUDA_GRAPHS` | dazheng | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Default-off persistent NeMo CUDA graph selection across timestamp initialization | `config/feature-flags.yaml:296` | | `PARAKEET_PACKING_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Retention follow-up remains due for: Default-off bounded historical GPU quanta and strict live dispatch priority | `config/feature-flags.yaml:295` | | `PARAKEET_WINDOW_DIARIZATION` | dazheng | 2026-11-04 | 2026-11-18 | Removal follow-up remains due for: Enable Parakeet window diarization | `config/feature-flags.yaml:560` | | `SERVER_BATCH_ONLY_VISIBLE_RESTORE_PERCENT` | dazheng | 2026-11-03 | 2026-11-17 | Rollout review remains due for: Default 0; batch-only mobile Modulate preview only after 15 seconds transcript visible; fail closed | `config/feature-flags.yaml:704` | | `SONIOX_CAPTURE_AXIS_DIAGNOSTICS` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Measure raw Soniox token clocks against wire PCM and the managed send ledger; default off, no placement changes | `config/feature-flags.yaml:454` | | `SONIOX_ELAPSED_AXIS` | dazheng | 2026-11-04 | 2026-11-18 | Removal follow-up remains due for: Measure Soniox elapsed timestamps before enabling speaker windows | `config/feature-flags.yaml:567` | | `SONIOX_WIRE_LEDGER` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Account every emitted managed Soniox sample on the compact axis; unknown capture origins reserve unplaceable intervals; reserve reported finalize padding as provider-only holes and refuse raced intervals; preserve every control frame; default off | `config/feature-flags.yaml:447` | | `SPEAKER_MATCH_SCORES_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Persist bounded internal voice-match evidence on existing conversation writes; dev/local/offline default on; production hosts explicitly on | `config/feature-flags.yaml:446` | | `STT_FAILOVER_RECOVERY_ENABLED` | backend | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Enable live-STT failover recovery on prod listen | `config/feature-flags.yaml:569` | | `STT_LEARNED_LANGUAGE_PROFILE` | backend | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Use a bounded per-user spoken-language history for live STT routing and Soniox hints | `config/feature-flags.yaml:571` | | `STT_MULTI_LANGUAGE_HINTS` | backend | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Send primary and English hints to Soniox in non-English multilingual live sessions | `config/feature-flags.yaml:570` | | `STT_NON_EN_MULTI_PREFER_HINTABLE_PERCENT` | backend | 2026-11-04 | 2026-11-18 | Graduation follow-up remains due for: Prefer Soniox for allocated non-English multilingual live sessions | `config/feature-flags.yaml:572` | | `STT_PAID_SPILLOVER_BUDGET_ENABLED` | backend | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Default-off fleet budget for paid router promotions after Parakeet capacity refusal; denial restores static order | `config/feature-flags.yaml:451` | | `STT_RESILIENT_RECONNECT` | backend | 2026-11-04 | 2026-11-18 | Removal follow-up remains due for: Replay bounded live audio on eligible Soniox reconnects | `config/feature-flags.yaml:568` | | `STT_ROUTING_MODE` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Off shadow or cost-ordered health-gated live STT routing | `config/feature-flags.yaml:608` | | `STT_ROUTING_ON_PERCENT` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Sticky UID percentage admitted to the cost router; zero keeps static routing | `config/feature-flags.yaml:610` | | `SUMMARY_DEBT_REPAIR_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Code default false; production off (held with the 2026-10-20 deferral) on scheduled backend-sync; bounded completed server-minimum repair; requires first-summary gate | `config/feature-flags.yaml:679` | | `SYNC_ASSIGNMENT_CONTENTION_RETRY_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Bounded fresh-transaction retries for sync assignment contention | `config/feature-flags.yaml:647` | | `SYNC_BACKFILL_ORDER` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Default oldest; newest selects descending pending capture time and earlier direct-task eligibility for the selected UID cohort | `config/feature-flags.yaml:297` | | `SYNC_BACKFILL_ORDER_PERCENT` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Stable SHA-256 UID cohort for newest ordering; default 100 only when order is newest | `config/feature-flags.yaml:298` | | `SYNC_BACKFILL_ORDER_UID_ALLOWLIST` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Comma-separated UID cohort for newest backfill ordering; empty by default and newest master policy required | `config/feature-flags.yaml:299` | | `SYNC_BACKFILL_RETIRE_EXPIRED_AT_CLAIM` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Retire Redis-absent unbound backfill heads before dispatch; default and current dev/prod manifests off pending durable redrive guard | `config/feature-flags.yaml:351` | | `SYNC_DURABLE_REDRIVE_GUARD` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Durable custody before expired accepted sync requests leave dispatch; code/dev off, prod sync hosts on | `config/feature-flags.yaml:347` | | `SYNC_LEGACY_COMPLETION_CONVERGENCE` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Under-lock durable completion convergence before legacy provider retries; code/dev off, prod sync hosts on | `config/feature-flags.yaml:348` | | `SYNC_POLL_BACKOFF_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Return queued 60s, active/open 20s and terminal stop poll hints without extra Firestore reads | `config/feature-flags.yaml:338` | | `TRANSCRIPTION_FINAL_PASS_AUTHORITATIVE` | dazheng | 2026-11-04 | 2026-11-18 | Removal follow-up remains due for: Revision-fenced speaker-only promotion preserving stored text | `config/feature-flags.yaml:584` | | `TRANSCRIPTION_FINAL_PASS_PERCENT` | dazheng | 2026-11-04 | 2026-11-18 | Removal follow-up remains due for: Shared diarization cohort percentage | `config/feature-flags.yaml:582` | | `TRANSCRIPTION_FINAL_PASS_SYNC_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Removal follow-up remains due for: Shared diarization and centroid naming for sync and safety WAL | `config/feature-flags.yaml:585` | | `TRANSCRIPTION_FINAL_PASS_UID_ALLOWLIST` | dazheng | 2026-11-04 | 2026-11-18 | Removal follow-up remains due for: Explicit UID cohort for final-pass diarization; empty by default | `config/feature-flags.yaml:583` | | `TRANSCRIPTION_FINAL_PASS_VAD_COMPACTION_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Removal follow-up remains due for: Default-off local speech VAD compaction for stored-audio ASR and pyannote final passes; sample-exact original clocks; failures retain original audio | `config/feature-flags.yaml:310` | | `TRANSCRIPTION_SHADOW_ENABLED` | dazheng | 2026-11-04 | 2026-11-18 | Removal follow-up remains due for: Run the stored-audio Parakeet final pass in shadow | `config/feature-flags.yaml:586` | | `TRANSCRIPTION_SHADOW_PERCENT` | dazheng | 2026-11-04 | 2026-11-18 | Removal follow-up remains due for: Allocate UIDs to the Parakeet final-pass shadow | `config/feature-flags.yaml:588` | | `TRANSCRIPTION_SHADOW_UID_ALLOWLIST` | dazheng | 2026-11-04 | 2026-11-18 | Removal follow-up remains due for: Explicit UIDs admitted to the Parakeet final-pass shadow; empty by default | `config/feature-flags.yaml:589` | | `proactivity_v2` | dazheng | 2026-11-03 | 2026-11-17 | Rollout review remains due for: Server v2 proactivity admission; absent or unknown denies | `config/feature-flags.yaml:466` | | `summary-generation-v2` | dazheng | 2026-11-04 | 2026-11-18 | Rollout review remains due for: Mobile conversation-detail summary redesign: Not summarized yet card, Summarize with template sheet, summary source chips and inline failure cards; client-evaluated, default off; reliability fixes and the single in-tab progress state ship without it | `config/feature-flags.yaml:287` | ## Validation - `TZ=UTC python3 scripts/render_feature_flag_registry.py --as-of 2026-11-05`: regenerated; no additional drift. - Data verification: exactly 80 rows change only review_by (+14 days) and appended notes; checker verification: exactly those 80 exception keys removed, all other AST nodes unchanged; 15 sweep exceptions retained. - `TZ=UTC python3 scripts/check_feature_flag_registry.py`: passed. - `TZ=UTC python3 scripts/test_check_feature_flag_registry.py`: 59 tests passed. - `TZ=UTC scripts/pr-preflight --pr-body-file <body>`: 20 checks passed. - `TZ=UTC OMI_PR_BODY_FILE=<body> make preflight`: 20 checks passed. Local validation completed 2026-11-09 03:21 UTC. Tests and preflights ran through `bin/omi-heavy`. No production access or flag changes. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/24964?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/24964?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F24964&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
Nov 9, 2026
Removes exactly the 80 BasedHardware#24950 sweep exceptions these renewals make stale, as authorized by the cl2-fixnow lane owner. Preserve the other 15 sweep exceptions, OWNER_BACKLOG_EXCEPTIONS and checker behavior. Failure-Class: registry gate: overdue review dates
Git-on-my-level
added a commit
that referenced
this pull request
Nov 9, 2026
…bt, ops_kill defaults on (#24954) <!-- claude-projects-attribution: {"github_login":"Git-on-my-level"} --> _Requested by **David**_ David approved 2026-11-08 17:09Z: enforce review_by and done_by in CI, sweep the registry metadata, and make ops_kill mean default on. This applies those rules and the lead's subsequent sweep rulings. The pre-sweep registry had 82 rollout/experiment rows whose review dates would fail the old seven-day-grace checker on 2026-11-12, turning every PR red without a sweep (measured against the saved pre-sweep registry on 2026-11-08 19:24Z). - Use UTC for the default check date so UTC+7 pre-push hooks agree with CI. - Enforce review dates and pending rollout ramp completion dates with the same seven-day grace. A row's single extension affects both deadlines. Decided flags still read by code must retire their code paths. - Validate a single self-service extension of at most 14 days, with a meaningful reason, lane, and grant date that has already occurred. Compare against the merge-base to refuse second extensions and later original deadlines, for pending and already-decided rows. Existing ramp plans cannot lose their deadline while ramp enforcement still applies. Missing merge-base data explicitly warns and skips diff rules. - Count only pending rollout debt without a live dated ramp toward the owner cap of five, including all new debt added in the same PR. Reject any account token on new rows (existing rows are grandfathered), split shared owners on /, comma, &, +, | and whitespace-delimited "and", and count each debt row once per distinct normalized lane token. Remove the dazheng backlog exception. - Reject default-off ops_kill rows except the 18 remaining migration exceptions, which expire 2026-11-29. Retain stale-entry and expiry enforcement. Warn about rollout rows decided keep/with_legacy. - Emit FLAG_DUE_SOON, FLAG_OVERDUE_COUNT, FLAG_DARK_OVER_14D and the revised FLAG_OWNER_BACKLOG counts; regenerate the registry documentation with its existing 2026-11-05 header. The CSV contains 307 rows: 304 active rows were applied; SYNC_BACKFILL_INFLIGHT_LIMIT was already retired in #19352, and two DREAM_NO_PROGRESS_STOP_MODE rows retired in #24955 were preserved when merging current main. None was recreated. All other 286 rows still owned by dazheng were reassigned. Owner assignments to omi-pipeline now require an existing origin/main assignment or PROJECTION_DRAIN_LIVE_TARGET_BACKOFF. Assignments to backlog-refactor require an existing origin/main assignment or the accepted BATCH_/SYNC_ scope; other previously inferred assignments go to auditfix pending retirement or an explicit owner claim. No account owner token remains in flags, ignored entries, or retired entries (verified with the same tokenizer used by the checker). The ignored entries localEmbeddingsEnabled and meeting_note_screenshots_enabled also move from dazheng to auditfix; active flag owner counts below are unchanged. All 97 exceptions introduced by #24950 are now extended rows, permanent lifecycles, or retired upstream; REVIEW_OVERDUE and _AD1268_SWEEP are removed. | CSV action | Rows | Applied treatment | | --- | ---: | --- | | A | 15 | Extension through Nov22; two subsequently retired in #24955 | | B | 65 | Extension through Nov22, preserving client-surface reason | | C | 12 | Extension through Nov22 | | D | 88 | Extension through Nov22 | | E | 15 | Extension through Nov22 | | E-MISMATCH | 40 | Extension through Nov22 | | F → config_switch | 32 | Relabel permanent opt-in controls | | F → rollout | 17 | Relabel and add missing review_by Nov22 only | | G → config_switch | 15 | Relabel 14 active rows; one already retired | | G → ops_kill | 8 | Per lead ruling, use config_switch because all eight default off | There are 234 bounded extensions, all granted Nov8 by auditfix and ending Nov22. One additional extension covers AUDIO_ARCHIVE_STOP_PCM_PERCENT, outside the CSV, whose unchanged Nov14 ramp deadline would otherwise fail Nov23. Permanent G relabels drop inapplicable review/ramp metadata and preserve the old review date in notes. No decision, terminal, parser fail/default, runtime value, or production value changed. Existing dates were not postponed: the only original review/ramp metadata changes are the explicitly approved G removals; 17 missing F review dates were added. The checker change also aligns the policy validation script (`backend/config/policy/guard.py`): default-on live controls must remain ops_kill; opt-in live controls may be config_switch or rollout. Hermetic fixtures cover both accepted and rejected lifecycles. The backend flag-budget fixture also follows the approved rollout labels and lane ownership, rather than freezing the former account owner. No workflow or runtime application code changed. No production access was used. CSV proposed-owner counts (unowned mapped to auditfix): omi-pipeline 122; auditfix 82; backlog-refactor 78; uicleanup 19; firestore-lead 2; cl2-coordkit 2; pgfoundation 1; cl2-deploy 1. The already-retired limit row is included in the backlog-refactor source count; the two subsequently retired Dream rows are included in the auditfix source count. Registry-wide owner counts after reassignment (712 rows). The ownership correction moves 179 rows from omi-pipeline and 62 from backlog-refactor to auditfix. The ownership correction changes no decision, deadline, lifecycle, extension, fail/default, or runtime value. Shared-owner validation now refuses account tokens on added rows and applies the cap separately to each named lane, with duplicate lane tokens counted once; existing rows remain exempt from the new-row account rule. Regression fixtures cover every separator, lane-only acceptance, legacy rows, shared existing debt and batched additions. | Owner | Before correction | After correction | | --- | ---: | ---: | | auditfix | 190 | 431 | | backlog-refactor | 181 | 119 | | unowned | 40 | 40 | | two-lane lead | 27 | 27 | | uicleanup | 23 | 23 | | backend | 14 | 14 | | planscost | 8 | 8 | | merge-desk | 6 | 6 | | omi-pipeline | 184 | 5 | | firestore-lead | 4 | 4 | | home-overlap | 4 | 4 | | review-desk | 4 | 4 | | lead2 | 3 | 3 | | two-lane rollout lead | 3 | 3 | | cl2-coordkit | 2 | 2 | | cl2-deploy | 2 | 2 | | pgfoundation | 2 | 2 | | speaker rollout lead | 2 | 2 | | vroute-c / batch rollout lead | 2 | 2 | | backend listen | 1 | 1 | | backend runtime_env (PR #18855) | 1 | 1 | | cl2-cost / lead2 | 1 | 1 | | flightcut / batch rollout lead | 1 | 1 | | fswrites | 1 | 1 | | nik | 1 | 1 | | omi-lifecycle | 1 | 1 | | rollout-meetings | 1 | 1 | | speakerrename | 1 | 1 | | uicleanup (omi-lifecycle) | 1 | 1 | | uicleanup / omi-lifecycle | 1 | 1 | Validation (measured locally; CI is separate). The owner correction reruns the fixtures, six as-of CLI checks, and unchanged normal push hooks; historical broader audit results below are identified by scope. No owner backlog exception has been added. - `nice -n 15 timeout 1500 backend/.venv/bin/python -m unittest discover -s scripts -p 'test_*flag*.py'`: **102 passed**, 146.373 seconds (91 checker fixtures and 11 PostHog fixtures). The focused owner subset passed **14 tests**, including all requested spellings and shared-lane cap cases. - `nice -n 15 timeout 1500 backend/.venv/bin/python -m pytest -q backend/tests/unit/test_flag_budget.py`: **24 passed** in the normal push hook. - Earlier registry-coupled backend audit using canonical `backend/test.sh`, an explicit nine-file list and two isolated workers: **430 tests passed across all 9 files** (includes the 24 budget tests above). Default/off runtime assertions remain intact. - Full local manifest preflight and supplied PR-body validation, through the unchanged normal pre-push hook (same manifest as `make preflight`): **40 checks passed**, 285 seconds. No skip flags. The remaining normal pre-push gates also passed, and the branch was pushed successfully. - Full checker CLI `scripts/check_feature_flag_registry.py --as-of DATE` on head `99c25a16e58695b1e49729ea88070cb882e32c12`: | As of | Errors | Result | | --- | ---: | --- | | 2026-11-08 | 0 | Pass | | 2026-11-12 | 0 | Pass | | 2026-11-16 | 0 | Pass | | 2026-11-19 | 0 | Pass | | 2026-11-23 | 28 | Only pre-existing duplicate-declaration exceptions expired Nov20 (workstream B) | | 2026-11-30 | 18 | Expected default-off ops_kill migration exceptions expired Nov29 | All twelve daily schema/deadline boundary checks for Nov8 through Nov19 also pass. Nov30 returns at schema validation on the 18 migration expiries, so that output does not enumerate the subsequent row-deadline failures. Raw outputs and UTC measurement receipts are saved in the owning run directory as `out-checker-asof-<date>.txt` and `checker-asof-receipt.json`. Product invariants affected: none (`scripts/pr-preflight --suggest`). Failure-Class: none This hardens repository registry governance; no existing semantic runtime failure class matches these validation bypasses. Reusable guards and regression fixtures live in `scripts/check_feature_flag_registry.py`, `scripts/feature_flag_registry.py` and `scripts/test_check_feature_flag_registry.py`. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/24954?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/24954?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F24954&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. --> 🤖 Generated with [Claude Code](https://claude.com/claude-code).
Git-on-my-level
added a commit
that referenced
this pull request
Nov 10, 2026
## Problem and change GMP pusher had 25 targets and `sum(up)=0` at both 2026-11-08 13:45Z and 13:56Z (scope investigation, not a new measurement in this implementation). The pusher scrape gap remains all-down: cl2-fixnow reports a newer verification at **2026-11-09 00:10Z of 19 targets, 0 up**. The earlier count was 25 targets, 0 up; the target count changed, while scrape availability remained zero. This implementation did not independently remeasure production. The authenticated PodMonitoring was shipped without its app-namespace scrape Secret and collector RBAC prerequisites. The missing RBAC was measured; Secret absence and the exact scrape error were inferred because read-only access cannot inspect Secrets or per-target errors. ## ACCESS CHANGE — approval required **ACCESS CHANGE: new secret copy in the app namespace + RBAC for the Google-managed collector. David's approval is required before merge. Do not merge or deploy before that approval.** - Sync `metrics-scrape-token` key `token` through the existing backend-secrets SecretStore in both `prod-omi-backend` and `dev-omi-backend`. Derive its remote key from the existing app `METRICS_SECRET` mapping (currently remote key `METRICS_SECRET` in both stages), with the existing refresh interval and Owner policy. - Each pusher/listen release owns its own Role/RoleBinding for `gmp-system/collector`, limited to `get/list/watch` on the named `metrics-scrape-token` Secret. Render both only when `podMonitoring.enabled` is true. - Pin dev/prod renders, source-key linkage, RBAC scope and monitoring-disabled behavior in Helm render regression tests. App `/metrics` token enforcement remains unchanged. The record-seal-worker scrape was fixed separately in [#24931](#24931); that independent fix is not part of this PR. ## Required deployment sequence after approval 1. **backend-secrets first**, for each environment: apply the updated chart through `backend/scripts/deploy-backend-secrets.sh` in its approved deploy context. Wait separately for ExternalSecret `metrics-scrape-token-store` Ready and confirm the target Secret has key `token` without printing its value. The helper currently waits/force-syncs only the existing app ExternalSecret; its success does not establish readiness of the new token copy. 2. **Pusher chart next**: roll pusher, or Helm-upgrade its chart while retaining the running image/digest and existing release overrides, to apply its Role/RoleBinding. Standalone `.github/workflows/gcp_backend_pusher.yml` does not apply backend-secrets; only its optional LLM Gateway branch calls `deploy-llm-gateway.sh`, which applies secrets first. Development auto-pusher also upgrades only pusher. A pusher-only roll cannot supply the Secret. 3. **Listen with its operator-approved 22:00Z roll**: apply the updated backend-listen chart and its Role/RoleBinding. `.github/workflows/gcp_backend_listen_helm.yml` has `Upgrade backend-secrets Helm chart` immediately before `Upgrade backend-listen Helm chart`. The full backend workflow (`gcp_backend.yml` -> `.github/actions/deploy-backend-stack/action.yml`) also applies backend-secrets before listen when `deploy_targets=all`; Cloud Run-only does not reach this step. The listen-chart main-push trigger defaults to development; the 22:00Z prod roll remains an operator-planned action, not a schedule added by this PR. 4. Verify nonzero target counts plus `sum(up{job="prod-omi-pusher"}) == count(up{job="prod-omi-pusher"})`. After listen's roll require `sum(up{job="prod-omi-backend-listen"}) == count(up{job="prod-omi-backend-listen"})`. Also require `pusher_active_ws_connections` / `backend_listen_active_ws_connections` series under their respective GMP job names. Use the analogous dev jobs in dev; dev runtime health was not measured by this task. This PR applies no live resources and dispatches no workflows. ## Rollback Revert and reapply the three charts to remove the new token copy and access, or set `podMonitoring.enabled=false` on pusher/listen and upgrade them to remove the monitors and collector RBAC. Disabling monitoring leaves the separately managed token copy in place. ## Validation - `omi-heavy run -- backend/.venv/bin/python -m pytest -q backend/tests/unit/test_serving_podmonitoring_chart.py backend/tests/unit/test_backend_secrets_chart.py`: 8 passed, 3.11s after merging current main (2026-11-09T01:37:36Z; head `6f526c62fdb26966f01d0bff4f91c4fd6402da57`). - Dev/prod `helm lint` for backend-secrets, pusher and backend-listen: all six passed; strict lint with synthetic image settings also passed 6/6 (2026-11-08T14:31:30Z). - Fresh guarded-push preflight: **43 checks passed in 313.87s**, followed by the selected **38 backend test files** and the complete bounded pre-push gate. Push completed successfully (log timestamp 2026-11-09T01:44:53Z; verified at 01:45:54Z). Previous publication blockers are fixed on main: [#24948](#24948) scopes the Parakeet cleanup timeout to its receiver task, and [#24950](#24950) repairs the dated flag-registry gate. This branch merged current `origin/main` without rebasing and includes both fixes. Fresh render validation and the full guarded push passed with `TZ=UTC` and `BACKEND_UNIT_FILE_BUDGET_SECONDS=900`; no tests or hooks were skipped. The remote branch matches head `6f526c62fdb26966f01d0bff4f91c4fd6402da57`. GitHub CI is separate from these local checks. No production/data reads in this implementation; no GCP tier used. Local render checks do not establish live GMP recovery. ## Product invariants affected none Failure-Class: none Failure mechanism: deploy gap — PodMonitoring shipped without its auth prerequisites. No registered failure class directly covers this access-prerequisite omission; this PR adds behavioral render guards without editing the failure-class registry. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/24961?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/24961?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F24961&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. -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by David
Summary
Every push from m5 is blocked by the feature-flag-registry check:
ACTION_ITEM_REFRESH_PRESERVE_ENABLED(review_by 2026-11-01) passed its 7-day grace on the host's local date. 9 more rows hit the same wall on 2026-11-11 and 82 on 2026-11-12, which would turn every PR red.This is a stopgap while the ad1268 ramp-or-retire sweep (lead2 ruling, executor: auditfix) and the registry v2 checker land.
REVIEW_OVERDUEexceptions (expire 2026-11-15, reason "ad1268 ramp-or-retire sweep in progress (auditfix)") for the 97 rows that would pass their grace before 2026-11-14. Noreview_by,done_byor decision changes. No skip hatch.review_bybut still inside its grace, so the sweep can cover rows before they break. Entries for rows not yet pastreview_bystill fail as stale. An expired exception is an error again once the row is past grace.Verification
python3 -m unittest test_check_feature_flag_registry(scripts/): 59 tests OK, including two new ones (exception inside grace; UTC default date).python3 scripts/check_feature_flag_registry.py: OK.check(as_of=...)on this tree: 0 errors on 2026-11-09, 11-11, 11-13 and 11-14; 165 errors on 2026-11-16, the intended forcing date if the sweep has not landed.Product invariants affected
none
Failure class (fixes)
No
fix:commits; no declaration is required.Rollback
Revert this commit; the check returns to failing on the overdue rows.
No .github change. No prod reads. Scripts only.
🤖 Generated with Claude Code