Skip to content

chore: retire dormant flags and register experiment decisions - #18968

Merged
Git-on-my-level merged 5 commits into
mainfrom
chore/flag-cleanup-wave2
Sep 25, 2026
Merged

Git-on-my-level merged 5 commits into
mainfrom
chore/flag-cleanup-wave2

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Remove the dormant persistent-capture stream gate and path, Google Calendar auto-link during conversation processing, mobile auto-create-speakers toggle, onboarding rerun trigger, and the summary-feedback layout experiment. Retire shipped client/PostHog keys in the feature-flag registry; keep G2's create_speakers=true and preserve mid-onboarding progress.
  • Disarm context workstream/candidate dogfood and the public-shared-chat gateway output-budget experiment without exceeding the per-item cleanup cap or modifying conflicting open-PR code hunks. Freeze the already-off desktop trial paywall against runtime env enablement; leave oversized dead-path/test removals for follow-up.
  • Record David's graduate/pending/EXP-001 decisions in config/feature-flags.yaml. Enforce preregistration and review dates for live experiments and render the running-experiments table; no automated flag flips or PostHog mutations.

Per-item status

Item Status Scope / reason
K1 workstream pooling / candidates Partial Off for every bundle and reconciler no longer starts. Full reconciler/pooling/schema/tests cleanup exceeds ~600 changed lines, and ContextProactivityEngine hunks overlap open #11804; bucket pipeline remains.
K2 persistent capture stream Partial Flag, capture branch and suspension calls removed; per-frame path retained. The >600-line now-unreachable WindowCaptureStreamEngine is left for separate deletion. Production bundles already used per-frame capture.
K3 Google Calendar auto-link Done Removed dev-only derived-effect write-back and env/chart/manifest/classification/test; unrelated discard/meeting-context calendar lookups remain.
K4 public shared chat Partial Dev/prod gateway chart output-budget experiment disarmed; public route remains off. Full router/test/gateway lane cleanup exceeds ~600 lines. No web/app runtime caller found (only generated client API declaration).
K5 mobile experiments Partial Removed summary-feedback-layout experiment/spec/callers and orphaned builder/widget test; standard feedback layout only. Generic service/provider, provisioner and master flag retained because full removal exceeds ~600 lines.
K6 trial paywall Partial Env cannot turn it on; constant is false in subscription.py. Full deletion of legacy on-state branches and tests exceeds ~600 lines; grandfather and trial metadata tests kept green. #15513's subscription.py diff is at ~1745, disjoint from paywall lines ~199/393/429/1272.
G1 lossless screen sync Skipped Coordinator ruled skip: active #11018 deletes/reworks ScreenActivitySyncService.swift; cursor migration and FC-high-water-cursor-skips-unready-row coverage must land separately. No sync cursor or flag changed here.
G2 auto-create speakers Done Developer preference removed; websocket always sends create_speakers=true, including installs that had persisted false.
G3 onboarding rerun Done No PostHog-evaluated rerun on new launches; persisted in-progress onboarding can still finish. Key retired.
F1 notes v2 Skipped (accepted run-1 finding) The active gateway conversation structure/action-items shadow gates still run in the legacy-summary branch. Do not retire CONVERSATION_NOTES_V2_ENABLED until the shadow path is moved safely.
F2 chat-first + canonical memory atlas fallbacks Skipped (accepted run-1 finding) Released clients still need the capability wire fields; no server-side wire change or FloatingControlBar transcript change in this PR.
F3 memory-ingestion rollout Skipped (accepted run-1 finding) rollout_cli.py still imports its benchmark/parity helpers; deletion is unsafe without confirming migration CLI consumers are one-shot and finished.
F4 Deepgram Done Classified as ops_kill, decision: keep for the prod pusher's true setting.
R1–R3 hygiene Done Owner, decision, dates and blockers for decided/pending items; EXP-001 prereg and confirmatory 2026-10-28 readout. Client/account preferences remain in ignore: with tracked decisions, not misclassified as remote switches.
R4 experiment contract Done Live experiments require a valid repository prereg path and review_by; three missing/invalid cases tested. Kill-decision entries are temporarily exempt while K4/K5 code removal remains capped. No lifecycle automation.

Production behavior

  • G2: users who previously turned auto-create speakers off now send create_speakers=true.
  • G3: no new onboarding rerun trigger; existing in-progress onboarding still resumes.
  • G1: no change. K2/K3/K5/K6 retain the production-off/default behavior. The dormant shared-chat gateway output-budget setting is removed from both chart environments; the public shared-chat route itself remains off.
  • PostHog rows are not mutated here; retired names are recorded for the coordinator's sync.

Product invariants

  • INV-AUTH-1: No auth/session ownership or invalidation path changes; removal of the onboarding rerun observer leaves authentication and persisted onboarding completion to their existing owners.
  • INV-MEM-4: The removed calendar auto-link derived effect does not change canonical Short-term intake, consolidation or Long-term promotion authority; other memory processing paths are untouched.
  • INV-TASK-2: Conversation capture and Candidate policy still control task writes/proposals; deleting calendar auto-link does not introduce an automatic task writer.

Verification

  • Registry: python3 scripts/test_check_feature_flag_registry.py (21 passed), python3 scripts/render_feature_flag_registry.py --as-of 2026-09-26, python3 scripts/check_feature_flag_registry.py (OK).
  • Backend: BACKEND_UNIT_TEST_FILE_LIST=/tmp/k3-test-list.txt bash backend/test.sh (215 passed); /tmp/k4-test-list.txt (62 passed); /tmp/k6-test-list.txt (156 passed). No production backend request or remote service touched.
  • Backend Hermetic Merge Gate: in scope for backend changes; selected local hermetic units ran through backend/test.sh. Post-merge BACKEND_UNIT_TEST_FILE_LIST=/tmp/postmerge-backend-tests.txt bash backend/test.sh passed 67 tests, including the upstream speaker-resolution integration. CI's backend E2E and emulator gauntlets are pending, not claimed as locally run.
  • Mobile: python3 scripts/l10n.py check (49 locales; 3388 keys after upstream merge); focused flutter test K5/G2 (22 passed including actual websocket URL with persisted false); earlier K5 feedback/analytics suite (55 passed); python3 -m unittest test_provision.py (10 passed). Focused Flutter analyze found only two pre-existing info diagnostics on untouched transcription_service.dart lines.
  • macOS: post-merge xcrun swift build --build-tests --package-path desktop/macos/Desktop built all targets; xcrun swift test --package-path desktop/macos/Desktop --filter SBPostOnboardingGuidanceWiringTests passed 19 tests, including resume/complete. Tests/ signature search found no dangling calls to removed Swift types.
  • Integrated current origin/main with a non-rewriting merge. OMI_PR_BODY_FILE=/tmp/flag-cleanup-wave2-pr-body.md make preflight passed 62/62 checks; the registry and deployment-env validators passed.

Failure-Class: none

Generated with Devin

Review in cubic

Git-on-my-level and others added 5 commits September 26, 2026 02:20
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
The K3 removal deleted the only model_dump in _emit_derived_effects;
the trust-boundary pin must shrink with it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit 3c7f8b3 into main Sep 25, 2026
62 checks passed
@Git-on-my-level
Git-on-my-level deleted the chore/flag-cleanup-wave2 branch September 25, 2026 21:36
summersmile1984 added a commit to summersmile1984/omi that referenced this pull request Sep 26, 2026
…axonomy

Upstream's new feature-flag registry check (synced 2026-09-26, PR BasedHardware#18968
era) flags every literal backend getenv matching FLAG_SUFFIX
(_ENABLED|_MODE|_KILL_SWITCH|_COHORT|_PERCENT|_PAUSED|_STOP|_SHADOW) as an
unregistered feature flag. SENSEVOICE_SPEAKER_MODE is a deployment
capability knob the fork's self-host bootstrap binds (always
single_speaker), not a product behavior flag, and it cannot be registered:
the key does not exist in upstream's tree, so an upstream registry entry
would reference a name their scanner never sees.

Refactor instead of editing the upstream registry: rename the fork-owned
wire name to SENSEVOICE_SPEAKER_STRATEGY (the values select a speaker
resolution strategy: auto/single_speaker/window_clustering). All six
references are fork-owned (sensevoice/speaker.py, bootstrap bind, three
fork tests); no compose, template, or doc mentions the old name.

Evidence: scripts/check_feature_flag_registry.py -> "feature-flag
registry: OK" exit 0; fork tests test_speech_contract (8),
test_hosted_speech, test_startup_contract pass through test.sh; repo-wide
grep shows zero SENSEVOICE_SPEAKER_MODE references.

Failure-Class: none
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