Skip to content

chore(dream): retire decided no-progress flags - #24955

Merged
Git-on-my-level merged 3 commits into
mainfrom
lane/retire-misc
Nov 8, 2026
Merged

Git-on-my-level merged 3 commits into
mainfrom
lane/retire-misc

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Requested by David

Retires 2 dead flags under lead2 ruling ad1268 (a/b). Behaviour unchanged: each flag was on/100 (A) or off/0 (B) on every server runtime in the 2026-11-08 17:34-17:39Z serving snapshot.

Both retired rows are E (recorded kill, serving off). Before this change, the no-progress mode explicitly defaulted to off in code. Removes only the dead early-stop branch and its tests; material-budget shadow probing, history compaction, pre-scan, verifier and scheduling paths remain intact.

key action serving files
DREAM_NO_PROGRESS_STOP_MODE E: kill; remove on path off in snapshot; explicit pre-retirement code default off backend/config/dream_levers.py, backend/utils/dream_agent.py, tests, registry, docs and retirement ledger
DREAM_NO_PROGRESS_STOP_MODE_SERVE_PERCENT E: kill companion off/0 in snapshot; parent explicitly off backend/config/dream_levers.py, tests, registry, docs, retirement ledger and checker exceptions

Skipped

A targeted permitted ro-prod read at 2026-11-08T19:16:58Z found all eight initial candidate keys unset on backend-02379-5ns, the same immutable 100%-traffic backend revision as the supplied snapshot. The dark audit's history/material/prescan OFF defaults were inferred from registry text (registry-text2); the runtime parser defaults those modes to shadow. Their six B rows are therefore unresolved and are preserved. Only the no-progress pair has an explicit code-default-off and recorded kill ruling.

key reason
AUDIO_CANONICAL_PACKING_ENABLED Custody: canonical capture archive, destructive-operation gate and deletion-aware pack/index rewrites (backend/utils/other/audio_packs.py).
CAPTURE_COVERAGE_MODE_SERVE_PERCENT Custody: capture/WAL coverage ledger and cross-device coverage reads; cohort and shadow controls must follow the parent coverage decision (backend/utils/capture/coverage.py, coverage_crossdevice.py).
CAPTURE_COVERAGE_MODE_SERVE_UID_SHA256S Custody: capture/WAL coverage ledger and cross-device coverage reads; cohort and shadow controls must follow the parent coverage decision (backend/utils/capture/coverage.py, coverage_crossdevice.py).
CAPTURE_COVERAGE_MODE_SHADOW_PERCENT Custody: capture/WAL coverage ledger and cross-device coverage reads; cohort and shadow controls must follow the parent coverage decision (backend/utils/capture/coverage.py, coverage_crossdevice.py).
DAY3_REENGAGEMENT_EMAIL_ENABLED Privacy/auth: removing the email on-path reaches authenticated user lookup, consent/unsubscribe and account-deletion guards (backend/utils/email/day3_reengagement.py).
DREAM_HISTORY_COMPACT_MODE Serving unresolved: the audit inferred OFF from registry text, while the current mode parser defaults to shadow. A ro-prod refresh of the same snapshot revision backend-02379-5ns found the mode and percent envs unset. Preserve this whole family until serving is resolved.
DREAM_HISTORY_COMPACT_MODE_SERVE_PERCENT Serving unresolved: the audit inferred OFF from registry text, while the current mode parser defaults to shadow. A ro-prod refresh of the same snapshot revision backend-02379-5ns found the mode and percent envs unset. Preserve this whole family until serving is resolved.
DREAM_HUNT_BACKOFF_MODE Settle: removal reaches transactional Dream admission/parking/finish and the durable due queue (backend/database/dream_store.py, dream_scheduler.py).
DREAM_HUNT_BACKOFF_MODE_SERVE_PERCENT Settle: removal reaches transactional Dream admission/parking/finish and the durable due queue (backend/database/dream_store.py, dream_scheduler.py).
DREAM_IDLE_SKIP_MODE Settle: removal reaches transactional Dream admission/parking/finish and the durable due queue (backend/database/dream_store.py, dream_scheduler.py).
DREAM_IDLE_SKIP_MODE_SERVE_PERCENT Settle: removal reaches transactional Dream admission/parking/finish and the durable due queue (backend/database/dream_store.py, dream_scheduler.py).
DREAM_LIBERAL_VERIFIER_MODE_SERVE_PERCENT Isolated serving input unresolved: percent is read by the generic cohort parser; the parent mode and dynamically read UID-digest cohort remain outside this batch. Deleting the binding alone leaves the flag read; changing that shared path needs a combined family decision.
DREAM_MATERIAL_BUDGET_MODE Serving unresolved: the audit inferred OFF from registry text, while the current mode parser defaults to shadow. A ro-prod refresh of the same snapshot revision backend-02379-5ns found the mode and percent envs unset. Preserve this whole family until serving is resolved.
DREAM_MATERIAL_BUDGET_MODE_SERVE_PERCENT Serving unresolved: the audit inferred OFF from registry text, while the current mode parser defaults to shadow. A ro-prod refresh of the same snapshot revision backend-02379-5ns found the mode and percent envs unset. Preserve this whole family until serving is resolved.
DREAM_PRESCAN_MODE Serving unresolved: the audit inferred OFF from registry text, while the current mode parser defaults to shadow. A ro-prod refresh of the same snapshot revision backend-02379-5ns found the mode and percent envs unset. Preserve this whole family until serving is resolved.
DREAM_PRESCAN_MODE_SERVE_PERCENT Serving unresolved: the audit inferred OFF from registry text, while the current mode parser defaults to shadow. A ro-prod refresh of the same snapshot revision backend-02379-5ns found the mode and percent envs unset. Preserve this whole family until serving is resolved.
DREAM_REQUIRED_INTAKE_BACKLOG_COHORT Custody/privacy: controls historical captured-submission admission and required-intake/source-generation fences (backend/config/required_memory_intake.py, database/required_intake_fence.py).
DREAM_REQUIRED_INTAKE_BACKLOG_ENABLED Custody/privacy: controls historical captured-submission admission and required-intake/source-generation fences (backend/config/required_memory_intake.py, database/required_intake_fence.py).
LIFECYCLE_V2_MODE_SERVE_PERCENT Settle/expiry: controls lifecycle clocks, finalization discovery and recovery/executor admission (backend/utils/conversations/lifecycle_clocks.py, database/conversation_finalization_jobs.py).
LIFECYCLE_V2_MODE_SERVE_UID_SHA256S Settle/expiry: controls lifecycle clocks, finalization discovery and recovery/executor admission (backend/utils/conversations/lifecycle_clocks.py, database/conversation_finalization_jobs.py).
REPEAT_WORK_REVISION_ENABLED Expiry: revision reuse changes reuse fingerprints and the enrichment outbox ceiling to one hour (backend/config/repeat_work.py, utils/enrichment/outbox.py).

No retired-key runtime_env, Helm or GitHub Action declarations exist at this head. Removes only these two keys from the newly merged checker overdue-exception map. No .github/ edits.

Budget scope: none of the 23 assigned keys belongs to backend/config/flag_budget.json.names. The budget test requires budget to equal its seeded/replacement slot count; decreasing 165 by two would fail it and retire unrelated pipeline capacity. This change records the two removals in the existing retired ledger and preserves the numeric pipeline budget. No budget test was weakened.

B rows were in the claim list posted 2026-11-08 18:10Z (bus 9a26a4); merge after 2026-11-09 18:10Z, minus any claimed key.

Validation

At head f511515f167bbed6810fc59126d246178c69e039, registry validation passed and 457 tests passed across 23 file-isolated unit-test modules, including test_flag_budget.py. Commands ran through /Users/dazheng/workspace/omi/bin/omi-heavy run --:

  • python3 scripts/check_feature_flag_registry.py — exit 0.
  • BACKEND_UNIT_TEST_FILE_LIST=<23-file manifest> bash backend/test.sh — exit 0; 457 passed, zero failed.
  • (cd scripts && python3 -m unittest test_check_feature_flag_registry) — 59 tests passed, exit 0.
  • OMI_PR_BODY_FILE=<this body> scripts/pr-preflight --lane local --pr-body-file "$OMI_PR_BODY_FILE" — exit 0; all 40 checks passed (1106.79s).
Unit-test manifest
tests/unit/test_dream_agent_admission.py
tests/unit/test_dream_budget_notice.py
tests/unit/test_dream_budget_stop_completion.py
tests/unit/test_dream_canary.py
tests/unit/test_dream_capacity.py
tests/unit/test_dream_capacity_retry.py
tests/unit/test_dream_failure_diagnostics.py
tests/unit/test_dream_harness_runtime.py
tests/unit/test_dream_judge.py
tests/unit/test_dream_memory_hygiene.py
tests/unit/test_dream_minute_headroom.py
tests/unit/test_dream_optimize_levers.py
tests/unit/test_dream_outcomes.py
tests/unit/test_dream_prescan.py
tests/unit/test_dream_queue.py
tests/unit/test_dream_replay.py
tests/unit/test_dream_report.py
tests/unit/test_dream_state_pass.py
tests/unit/test_dream_sweep.py
tests/unit/test_dream_verify_hold.py
tests/unit/test_flag_budget.py
tests/unit/test_required_memory_intake.py
tests/unit/test_vertex_reservation_dream_probe.py

Normal git push hooks passed, including a repeated 40-check preflight, backend type check (0 errors), changed-module unit tests and pinned formatting.

Independent blocking-only review of the net two-key diff found no blocking code issue. The numeric budget requirement conflict is disclosed above.

backend/scripts/pr-preflight does not exist in this source; use the documented root scripts/pr-preflight --lane local with OMI_PR_BODY_FILE (the same checker as make preflight).

GCP tier: ro-prod, read only the eight candidate registry flag env values from the serving backend revision. No production account data or secret payloads read; no prod writes, flag flips, deploys or merges.

Product invariants affected

none

Failure-Class: none

🤖 Generated with Claude Code.

View guided diff Turn on auto-fix

Retire only the decided no-progress pair; restore six inferred-dark flags whose runtime mode defaults to shadow.

Failure-Class: none
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T20:56:32.874429Z f511515 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Git-on-my-level Git-on-my-level self-assigned this Nov 8, 2026
@Git-on-my-level
Git-on-my-level merged commit a4ad4f3 into main Nov 8, 2026
64 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/retire-misc branch November 8, 2026 21:13
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant