Repository navigation
feat: Implement double tap start recording - #9
Merged
Merged
Conversation
Bentlybro
approved these changes
Mar 29, 2024
Bentlybro
left a comment
Contributor
There was a problem hiding this comment.
LGTM, works on my device 🚀
Contributor
|
Merging this |
Merged
Bentlybro
added a commit
that referenced
this pull request
Mar 29, 2024
Changes: 1)Update readme about double-tap implemented in #9 2)Restructure README 3)Added Mermaid flow diagram
mdmohsin7
added a commit
that referenced
this pull request
Oct 18, 2025
closes #3241 before: https://github.com/user-attachments/assets/d00d815c-8419-4c1b-96fb-ec20365fba44 logs: ``` flutter: ----------------FIREBASE CRASHLYTICS---------------- flutter: Bad state: No element flutter: #0 ListBase.firstWhere (dart:collection/list.dart:132:5) #1 SharedPreferencesUtil.disableApp (package:omi/backend/preferences.dart:255:22) #2 _AppDetailPageState._toggleApp (package:omi/pages/apps/app_detail/app_detail.dart:1129:13) #3 _AppDetailPageState.build.<anonymous closure> (package:omi/pages/apps/app_detail/app_detail.dart:576:48) #4 _AnimatedLoadingButtonState._handleOnPressed (package:omi/widgets/animated_loading_button.dart:38:27) #5 _InkResponseState.handleTap (package:flutter/src/material/ink_well.dart:1204:21) #6 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:345:24) #7 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:758:11) #8 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:383:5) #9 BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:353:7) #10 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:173:27) #11 ``` after: https://github.com/user-attachments/assets/26ea5c91-e73a-44f4-ba76-4b804876c5df <img width="1032" height="257" alt="Screenshot 2025-10-18 at 11 15 52 PM" src="https://github.com/user-attachments/assets/44e4e46b-b654-4599-84ee-8ee0920b1cd3" />
This was referenced Mar 18, 2026
beastoin
added a commit
that referenced
this pull request
Mar 19, 2026
Cmd+1 Dashboard, Cmd+2 Chat, Cmd+3 Memories, Cmd+4 Tasks, Cmd+5 Rewind, Cmd+6 Apps, Cmd+, Settings. Uses standard macOS menu bar command group so shortcuts appear in the View menu. Fixes #5784 (friction #9) Co-Authored-By: Claude Opus 4.6 <[email protected]>
Glucksberg
pushed a commit
to Glucksberg/omi-local
that referenced
this pull request
Apr 28, 2026
Implemented the double tap to start/stop recording. Re-format some code. requires the lib `Seeed arduino LSM6DS3` 
Glucksberg
pushed a commit
to Glucksberg/omi-local
that referenced
this pull request
Apr 28, 2026
Changes: 1)Update readme about double-tap implemented in BasedHardware#9 2)Restructure README 3)Added Mermaid flow diagram
Glucksberg
pushed a commit
to Glucksberg/omi-local
that referenced
this pull request
Apr 28, 2026
closes BasedHardware#3241 before: https://github.com/user-attachments/assets/d00d815c-8419-4c1b-96fb-ec20365fba44 logs: ``` flutter: ----------------FIREBASE CRASHLYTICS---------------- flutter: Bad state: No element flutter: #0 ListBase.firstWhere (dart:collection/list.dart:132:5) #1 SharedPreferencesUtil.disableApp (package:omi/backend/preferences.dart:255:22) BasedHardware#2 _AppDetailPageState._toggleApp (package:omi/pages/apps/app_detail/app_detail.dart:1129:13) BasedHardware#3 _AppDetailPageState.build.<anonymous closure> (package:omi/pages/apps/app_detail/app_detail.dart:576:48) BasedHardware#4 _AnimatedLoadingButtonState._handleOnPressed (package:omi/widgets/animated_loading_button.dart:38:27) BasedHardware#5 _InkResponseState.handleTap (package:flutter/src/material/ink_well.dart:1204:21) BasedHardware#6 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:345:24) BasedHardware#7 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:758:11) BasedHardware#8 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:383:5) BasedHardware#9 BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:353:7) BasedHardware#10 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:173:27) BasedHardware#11 ``` after: https://github.com/user-attachments/assets/26ea5c91-e73a-44f4-ba76-4b804876c5df <img width="1032" height="257" alt="Screenshot 2025-10-18 at 11 15 52 PM" src="https://github.com/user-attachments/assets/44e4e46b-b654-4599-84ee-8ee0920b1cd3" />
Glucksberg
pushed a commit
to Glucksberg/omi-local
that referenced
this pull request
Apr 28, 2026
Cmd+1 Dashboard, Cmd+2 Chat, Cmd+3 Memories, Cmd+4 Tasks, Cmd+5 Rewind, Cmd+6 Apps, Cmd+, Settings. Uses standard macOS menu bar command group so shortcuts appear in the View menu. Fixes BasedHardware#5784 (friction BasedHardware#9) Co-Authored-By: Claude Opus 4.6 <[email protected]>
choguun
added a commit
to choguun/omi
that referenced
this pull request
Jun 25, 2026
CI lint fix (the only thing blocking merge): - Ran black --line-length 120 --skip-string-normalization on 7 files that the Lint & Format Check job flagged. All 13 .py files now pass --check. P1 #1: AutoRouter.swift:105 guard treated "model: null" as failure and left stale cached pick active. If the endpoint reports 'no candidate for this task today', the client would keep routing to yesterday's model. Fix: explicitly handle null by clearing the cached pick (removeObject for both keys). Also fixed invalidate(task:) to clear BOTH the pick and the date (was: only the date). 2 new Swift tests cover both. P1 BasedHardware#2: benchmark.py bench_endpoint_cached ignored get_or_refresh's return value and relied on side effects. On a cache hit, the loader doesn't run, so tasks/models stay None and the next call crashes. Fix: use the return value of get_or_refresh in an async helper. P2 BasedHardware#3: invalidate(task:) now also clears the cached pick (was: only date). Done as part of P1 #1. P2 BasedHardware#4: Demo's 'Original weights' were hardcoded in main(); now read from the task registry (weights_for(task_name)) so demo output tracks benchmarks.example.json changes instead of going stale. P2 BasedHardware#6: from_json didn't validate top-level shape (not a dict), or that 'tasks' is a list / 'models' is a dict. Would crash with AttributeError on bad input. Now raises clean TaskValidationError/ModelValidationError. Added 6 new tests (3 in task_registry, 3 in model_registry). P2 BasedHardware#7: updated_at in the endpoint was datetime.now() — reported RESPONSE time, not cache refresh time. Misleading for 'is this data fresh?' Added last_loaded_at + last_loaded_wall_time() properties to DailyRefreshCache (used by the endpoint). P2 BasedHardware#8: _load_registries() does blocking JSON file I/O inside an async def, which the project conventions forbid (per CLAUDE.md: 'no in-function imports, never call sync file I/O inside async def'). Fix: wrap with run_blocking(sync_executor, _load_registries) via a lazy _get_loader() helper. The cache loader is now an async function that schedules the sync I/O on the threadpool. P2 BasedHardware#9: New test modules were not in backend/test.sh, so CI was skipping them. Added explicit pytest invocations for all 6 auto-router test files, right before the fair-use integration tests section. P2 BasedHardware#10: README + docs/auto-router-demo.md used PYENV_VERSION=3.12.8 but backend's .python-version declares 3.11. Updated to 3.11.11 (verified all 142 tests pass under 3.11.11 with pytest-asyncio installed). Tests added: +8 (137 → 142 backend; 13 → 15 desktop) Total: 142 backend + 15 desktop = 157 tests, all passing. Cubic findings NOT addressed (subjective or already correct): - P2 'Plan redefines the diff budget': per-task commits are correct. - P2 'Acceptance criteria tie-breaking wrong': tie-breaking is in the endpoint, not scoring — cubic is wrong. - P2 'UAT-FN-07 inaccurate': that finding is now resolved by test_auto_router_demo.py (added in this cycle). - P2 'UAT-FN-01 outdated': the fix is real; the current code does NOT leak task names (verified via TestClient in test_auto_router_endpoint). - P2 'Benchmark uses template data': intentional for v1; documented. - P3 nits: docstring, diff-hygiene wording, test-count arithmetic.
choguun
added a commit
to choguun/omi
that referenced
this pull request
Jun 25, 2026
…lback) Addresses 1 cubic P2 finding on PR BasedHardware#8343. ## P2 BasedHardware#9 (cubic): Failure fallback does not advance refresh timestamp When DailyRefreshCache.get_or_refresh falls back to the stale value on loader failure, the timestamp was NOT advanced. Combined with the now-cleared cache value, this meant refreshIfStale would re-fire on every subsequent call — tight retry loop against a failing backend. Fix: advance _last_loaded_at in the fallback path so the next call respects the TTL. The cached value is still served (correctly), but the next refresh attempt won't happen until TTL expires. ## Test update Updated test_invalidate_forces_refresh_but_keeps_value_for_fallback to: 1. Advance clock past TTL (so refresh is forced) 2. Verify age_seconds is NOT None after fallback (was None before the fix) 3. Verify age_seconds is < 60 (the TTL) — timestamp was just advanced This documents the new (correct) behavior: timestamp advances even on failure, so refreshIfStale respects the TTL. ## Test results - Backend: 142 tests pass (no change in count — the existing test was updated, not added) - All existing v1 tests still pass
uulasb
pushed a commit
to uulasb/omi
that referenced
this pull request
Jul 1, 2026
…ised is_currently_true cap Key changes: - is_currently_true cap: <10% → ~30% (was suppressing 40% of gold claims) - LOW strength guidance: 'BE CONSERVATIVE' → 'extract liberally, filter in post-processing' - Voice confidence_cap: 0.6 → 0.85 (17pp H headroom available) - OCR confidence_cap: 0.6 → 0.8 + credential detection guidance - New predicates: credential_detected, sensitive_info_visible - OCR guidance: ALWAYS extract passwords/PII visible on screen Rule BasedHardware#8 (Omission Rule): no source type may be NONE. Rule BasedHardware#9 (Regret Minimization): Layer 1 extracts liberally.
choguun
added a commit
to choguun/omi
that referenced
this pull request
Jul 1, 2026
Seven findings from cubic-dev-ai on the R3.1 PR. Two findings are out of scope for R3.1 (they were introduced in the R0 commits already on this branch; those fixes are in PR BasedHardware#8739's history): - P1 #1 (route_artifacts.yaml:758): anthropic provider not registered. R0 scope; addressed in PR BasedHardware#8739. - P3 BasedHardware#9 (test_llm_gateway_config.py:42): '15 lanes total' comment should be '16 lanes total'. R0 scope; already fixed in commit 0d3442d (use placeholder flag instead of dev_only). Five findings addressed in this commit: P1 BasedHardware#2 (shadow_metrics.py:139): Metrics sink failures are now contained — try/except around increment/gauge calls logs a WARNING and does not propagate. Observability is best-effort. P1 BasedHardware#3 (shadow_cutover.py:178): Metrics recording is wrapped in try/except at the chat() call site; a sink failure cannot break the control response. Tested by test_metrics_failure_does_not_break_response. P2 BasedHardware#4 (shadow_metrics.py:132): Unbounded memory growth capped by max_records_per_lane (default 10,000) as a memory safety net alongside the time-based window eviction. Tested by test_max_records_per_lane_caps_deque. P2 BasedHardware#5 (shadow_metrics.py:163): Alert delivery failure now clears the alerted state. The inner async fire coroutine catches its own exception and discards the lane from _alerted_lanes so the next divergence re-fires. Tested by test_alert_sink_failure_clears_alerted_state. P2 BasedHardware#6 (shadow_cutover.py:163): Control path failure now cancels the gateway task (no orphaned work). Tested by test_control_failure_cancels_gateway_task. P2 BasedHardware#7 (shadow_cutover.py:135): divergence_threshold is now read — ShadowCutover.__init__ applies the per-cutover threshold to the metrics instance (overriding the metrics' default). Tested by test_divergence_threshold_overrides_default and test_no_threshold_override_keeps_default. P2 BasedHardware#8 (shadow_cutover.py:164): Both paths now have INDEPENDENT timeouts (asyncio.wait_for on each), so a slow gateway doesn't delay the already-ready control response. Tested by test_slow_gateway_does_not_delay_control. Tests: 38 pass (was 30 pre-fix; +8 new).
Git-on-my-level
added a commit
that referenced
this pull request
Jul 9, 2026
P1 fixes: - ChatProvider: resume suspended waiter continuation inside the task group body on timeout, preventing withTaskGroup hang (#1). - AgentRuntimeProcess: route stale-alive latch through handleTermination so in-flight continuations are resumed and the old terminationHandler is properly superseded (#2). - WALService: startRecording no longer discards retained frames when the best-effort retry fails — preserves audio for next flush (#14). P2 fixes: - WALService: remove duplicate wal_write_failed health event recording in createWalFromCurrentFrames; writeFramesToDiskAndWait already records it (#3). - BleAudioService: reset isDecodeDegraded on successful decode so the flag reflects current processor state instead of staying sticky (#5). - TranscriptionRetryService: record db-backoff pause via DesktopDiagnosticsManager.recordFallback for observability (#7). - APIClient: derive auth retry outcome from response status code instead of assuming success before callers validate 2xx (#9). - APIClientAuthRetryTests: clean up UserDefaults authUserId in tearDown to prevent state leak (#8). - ChatBridgeModeSwitchTimeoutTests: remove meaningless defer { assertion that passes regardless of mode-switch cleanup (#10). - TranscriptionRetryResilienceTests: check busy-error guard by semantic elements instead of exact formatting (#11); remove fragile negative assertion (#12). - capture-lifecycle.yaml: remove 5 files from covers: that the hermetic seam does not exercise at runtime (#13). Verification: - xcrun swiftc -parse on all 8 changed Swift files: clean - git diff --check: no whitespace errors - check-desktop-changelog.py: fragment found - check-e2e-flow-coverage.py --strict: passes (exit 0) Co-authored-by: Cursor <[email protected]>
10 tasks done
aryanorastar
pushed a commit
to aryanorastar/omi
that referenced
this pull request
Jul 22, 2026
…ng-detect feat(windows): Phase 5 — meeting detection (capture that starts itself)
abunet
added a commit
to abunet/omi
that referenced
this pull request
Aug 14, 2026
…ch update, neutral tx precondition (cubic 10887 BasedHardware#9/#11b/#11c) Three Firestore-vs-Mongo error-mapping gaps at the batch/transaction boundary: - BasedHardware#9 Mongo: a batch update of a deleted/never-existing doc was a silent no-op — bulk_write ignores an unmatched UpdateOne — while the Firestore batch raises. _MongoBatch.update now checks matched_count and raises the neutral NotFound (or PreconditionFailed when it carried a precondition); any update forces the sequential commit path so the result is inspected (the `checked` flag, was `precond`). - #11b Firestore: _FirestoreBatch.commit leaked the SDK NotFound for a missing-doc batch update — now mapped to the neutral NotFound. - #11c Firestore: run_transaction mapped AlreadyExists/Conflict and NotFound but not FailedPrecondition, so a stale if_updated_at inside a transaction leaked the SDK exception — now mapped to the neutral PreconditionFailed (matching _MongoTransaction.update). Verify (rule 12, live dual-backend fresh): contract 108 passed (+4: a batch update of a missing doc raises NotFound, and a transactional stale precondition raises PreconditionFailed — each x2 backends). Guard 0; store/facade sweep 0 regressions.
This was referenced Oct 19, 2026
Git-on-my-level
added a commit
that referenced
this pull request
Oct 21, 2026
## Summary M3: land the legacy-sync retirement integration branch (`integration/legacy-retire`, swarm plan `omi-knowledge-base/projects/backend-target-architecture/swarm-plan.md`, contracts in `contracts.md`) on main. **Merge with `--merge` (never squash)**; the lead runs the train from the main merge SHA. **Prod behaviour after this merge:** prod `legacy_sync` stays `on`. Every new legacy-retirement path is gated: the ramp document, default-off flags or kill switches, and the `DRAINING_PRECONDITIONS` that `ramp_set` enforces before leaving `on`. With the mode `on`, intake, sync and enrichment keep today's routes. ## M3 gates (lead ruling 6702cc; David authorized the merge, 10-21) 1. **Prep landed:** - #23068: main b859b78, the ci-budget bump and the dead-code stub removal; - review fixes #23082 and #23086; - final main merges #23096 (main 34ce402) and #23133 (main 5406315). 2. **Staging tree equality:** `OMI_RELEASE_TREE` on all four `*-staging` services equals `integration/legacy-retire^{tree}` at this head (see the evidence section below). 3. **M2 review (GLM, which replaced Grok; ruling 43bd53):** - CHANGES: 1 P1, fixed in #23082 (provider-STT outbox sweep plus draining gates). - The 2 P2s are recorded below. - The M1 blocker closure table is in `data/run-2026-10-19-legacy-retire/review/M3/m1-blocker-closure.md` (omi-workspace). 4. **Workflows:** all green on this head. 5. **Luna:** - Round 1: CHANGES, 2 majors, fixed in #23082. - Round 2: 4 majors. Two lock fixes are in #23086 (Luna SHIP); two were routed to dark-step gates. - Final-merge resolution: SHIP. ## Dark-step gates and follow-ups (none block M3; prod stays `on`) - **`provider_stt_live`** (`DRAINING_PRECONDITIONS`): before leaving `on`, prod needs: - the provider-stt queue; - the `PROVIDER_STT_TASKS_*` env; - the maintenance job; - pagination or a due-cursor for the provider-STT outbox sweep (Luna round 2 #4). - **`legacy_final_pass_rehomed`** (`DRAINING_PRECONDITIONS`, lead ruling b209a5): conversations still owned by `legacy_final_pass_v1` with no live legacy job must be re-homed to batch first, and new final-pass ownership must stop outside `on` (Luna round 2 #3). The final-pass-rehome lane owns this. - **GLM P2s:** - the router's stranded-row 409 loop without `batch_adopts_stranded` is lane 10 debt; - BYOK uploads route to batch even with legacy sync `on` (David, 10-19). This is a release-note item. ## `.github` changes in this PR and David's naming Source of the naming: swarm-plan.md, lane 7: "B4 and B5 are named .github changes (fourth round, #9)" (2026-10-19); the checkout-stall bound (2026-10-20, main 1b07e5e); #22758 build-only mode; lead ruling 209335 (David named B7 and B8 items, 2026-10-21 ~06:05Z). | File | Change | Named item | | --- | --- | --- | | `.github/workflows/config_train.yml` (new) | Config-train: plan/apply of `backend/deploy/ops`, manual dispatch, prod-train lock; workflow-level `GIT_HTTP_LOW_SPEED_*` | B4 (+ checkout-stall bound for the two env lines) | | `.github/actions/sync-backfill-lifecycle/action.yml` | Prod backfill queue names come from the ops file; the train no longer reconciles the prod queue (#22455, #22480) | B4 | | `.github/workflows/gcp_backend.yml` | `break_glass_lock` input; prod concurrency group `prod-train` | B5 | | `.github/workflows/gcp_backend_listen_helm.yml` | same | B5 | | `.github/workflows/gcp_backend_pusher.yml` | same | B5 | | `.github/workflows/gcp_parakeet.yml` | same | B5 | | `.github/workflows/gcp_llm_gateway.yml` | same (every prod deploy writer shares the lock) | B5 | | `.github/workflows/gcp_diarizer.yml` | B5 lock lines **plus** B7: OCI revision/`omi.release.tree` image labels and a batch-worker `image_digest` promotion path (verified by `check_release_tree.py`) | B5; B7 (David, ruling 209335) | | `.github/scripts/check-deployment-concurrency.py` | Guard that evaluates the new prod-train group expressions | B5 | | `.github/ci-budget.yaml` | config-train entry (B4); 1 run/day on the six deploy workflows with `break_glass_lock` (B5); 1.1/day on three build-only jobs (sync 11, #22758 base) | B4, B5, #22758 | | `.github/checks-manifest.yaml` | Registers `backend/scripts/check_release_tree.py` (the B7 promotion gate) | B7 (David, ruling 209335) | | `.github/scripts/check_duplicate_routes.py` | Counts routers mounted through `app_roles.mount_routers` (B8 OMI_ROLE map) as mounted | B8 (David, ruling 209335) | | `.github/scripts/test_pre_push_ci_verified.py` | Test hygiene: `clean_env` also pops `PRE_PUSH_BASE_BRANCH` and `OMI_PR_BODY_FILE`, so lane pushes with a non-main base do not leak into the hermetic hook runs | lead authority, ruling 66dba9 (edits an existing test script; no workflow added) | | `.github/scripts/dead_code/backend.allowlist.json` | The 7 swarm contract-stub entries are removed (L01-4); every file now has importers | allowlist hygiene (CI script data) | | `.github/workflows/sync_ledger_fence_cutover.yml` | Prod takes the `prod-train` lock, with a `break_glass_lock` input that falls back to the backend stack lock (M3 Luna review) | B5, completing it on a file that must share the backend mutation domain (lead ruling 5f60b3) | | `.github/workflows/config_train.yml` (break-glass fallback) | Break-glass shares `deploy-backend-stack-<env>` with `gcp_backend.yml` (M3 Luna review) | B4/B5 (lead ruling 5f60b3) | ## Staging tree evidence Verified 23:33-23:4xZ 10-21, on tier ro-dev: - **Services:** all four `*-staging` services (`backend-staging`, `backend-sync-staging`, `backend-sync-backfill-staging`, `backend-integration-staging`) serve `8d062ad3cfacf8b7eb26dea737a2969423548e64` at 100%. - **Tree:** `OMI_RELEASE_TREE=5c398832bc4487066abbf2d49bcf8c6f9a700818` == `8d062ad3^{tree}`. - **Image:** `us-central1-docker.pkg.dev/based-hardware-dev/staging/backend@sha256:18b8cf414566743aaee20bd2559695ec7b4536a75ec609fbc139f008bbf7ecf9`. - **Batch worker:** `sha256:0954c71c87f5`, 0 replicas. Staging is plain (no warm instances or overrides). - **Deploy log:** `data/run-2026-10-19-legacy-retire/lane01/m3/deploy-final2.log` (omi-workspace). ## Product invariants affected INV-DATA-1: integration carries lane 7's (#22430) edits to `.github/workflows/gcp_*.yml`. They add the `prod-train` concurrency/lock lines (B5) and, in `gcp_diarizer.yml`, the worker-digest promotion. No Firebase or Firestore project, auth authority or serving endpoint changes. Production-family artifacts stay on `based-hardware`. ## Line-count exceptions Line-Count-Exception: backend/routers/sync.py | 3881 -> 3966 | lane 10 legacy-dark fence wiring at the legacy call sites (#22495) plus the M3 review fixes (off-loop mode read, final-pass ACK); the file shrinks with the C6/C11 deletions Line-Count-Exception: backend/database/firestore_index_registry.py | 2196 -> 2200 | the legacy-dark zero-lost census index (sync_content_ledger created_at, lost_recordings.py soak check 5) ## Failure class Integration carries fix commits, and each declares its own class. For this merge: Failure-Class: none UI-Evidence: none -- backend/CI retirement work plus sync merges; the UI changes are main PRs that carried their own evidence 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Git-on-my-level
added a commit
that referenced
this pull request
Nov 1, 2026
…T) and split owner_wait re-leases (relet) (#24273) ## Summary Two batchdesign §9 worker-roll items (PR-3 + PR-4a), one themed PR. Rides the batch worker roll, no Cloud Runtime env changes, no `.github/` changes. **PR-3 — sample the strict-VAD shadow.** `BATCH_PIPELINE_STRICT_VAD_SHADOW_PERCENT` (default 10; 0 off, 100 full; invalid keeps 10) samples the CPU strict-VAD shadow deterministically by segment hash (`cohort_bucket(segment_id, '')`, the repo's unsalted sha256 primitive, so a re-leased unit samples identically on every worker). Unsampled units skip `inspect_worker_vad` in `_decode_context` and the comparison site emits no `strict_vad` counters; the `strict_vad_shadow` stage timing and CPU histogram fire only for sampled units. Worker outcome and payload are unchanged — the existing parity test (`test_shadow_cannot_change_words_speakers_clocks_or_model_calls`) plus a new sampling-parity test prove it. **Cost and proof.** The shadow costs up to 0.6 s of the measured 2.55 s GPU-lock flight (batchdesign #7, 15:36–16:56Z window). Stage sums overstate; the saving is proven only by post-roll `rate(stage_seconds_sum{stage="worker_flight"})/rate(completed)`. **PR-4a — honest owner wait.** `record('leased', wait_seconds=…)` gains `relet: bool`; `omi_batch_pipeline_owner_wait_seconds` gains the bounded `relet` label ('true'/'false'). `relet = admission_refusals > 0 or attempt > 1` (post-increment): `defer()` refunds the attempt (`scheduler.py` `attempt=max(0, attempt-1)`), so an admission-deferred re-lease has attempt 1 and is a relet only through its refusal streak; every compute-failure re-lease carries a charged attempt. This unblocks the batchdesign §7.2 gate: gate on `owner_wait{relet="false"}`, never the mixed series (at 25%, 62% of leases were re-leases of held units). ## The 48 h silence qualification at 10% sampling The qualification needs `strict_silent` evidence to prove strict-silent-but-pyannote-nonempty units produce no words (12.7% disagreement observed; 1,602 strict-silent/day at the 25% cohort with full shadow, batchdesign #9). At a **fixed cohort**, 10% sampling collects ~160 strict-silent/day, so the same evidence the planned 48 h window would collect now needs **~480 h (20 days)**. Batch ramps to 100% tonight (5–10× unit intake): at 100%, a **48 h window at 10% collects ~1.6k–3.2k strict-silent ≈ today's full-shadow 48 h volume**, so the original window holds once the ramp lands. Re-derive the window from `omi_batch_pipeline_strict_vad_shadow_total{outcome="strict_silent"}` rate at the current cohort; if the ramp stalls, raise the percent (it is live config on the worker chart) rather than waiting. ## Tests (local shard, `backend/test.sh` via BACKEND_UNIT_TEST_FILE_LIST, omi-heavy) - 233 passed / 0 failed across `test_batch_pipeline_worker_bundle.py` (51), `test_batch_pipeline_worker.py` (105), `test_batch_pipeline_scheduler.py` (43), `test_batch_pipeline_metrics.py` (15), `test_reason_label_enums.py` (19). - New: percent parse/clamp; deterministic-by-hash + ~10% distribution band; 0%/100% edges; unsampled skips inspect AND counters with identical payload; first lease `relet=false`; admission-deferred re-lease (attempt refunded) `relet=true`; attempt-charged re-lease after lease expiry `relet=true`. - Updated: `test_worker_strict_silence_commits_or_preserves_quarantine` pins sampling to 100 to keep counting its record-only inspection; `owner_wait` series assertions now carry the `relet` label. ## Config surfaces - Worker chart: `worker.strictVadShadowPercent` default 10, prod pinned 10 with rollback comment (100 restores full, 0 disables). Registry row added (`config_switch`, terminal keep), `backend/docs/feature-flag-registry.md` regenerated as-of 2026-11-01, deployment-setting classified `config`. `feature-flag-registry` and `deployment secret-boundary` checkers pass locally. No runtime_env change (no INV-MEM-4). ## Rollout Worker image roll only (lead-owned). Both changes are observable immediately after the roll: shadow counter rate ÷10 at fixed cohort, `relet` label on new series. Kill switch: `worker.strictVadShadowPercent=100` (or 0) on the worker chart. Failure-Class: none
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.
Implemented the double tap to start/stop recording. Re-format some code.
requires the lib

Seeed arduino LSM6DS3