Repository navigation
fix(backend): harden goal suggestions, filter locked Wrapped 2025 items, and strip BLE firmware padding (#21871) - #23434
Conversation
…ms, and strip BLE firmware padding (BasedHardware#21871)
💰 Payout Details
|
|
Solid, well-scoped set of fixes for #21871 — all four surfaces check out on this head; positive signal, with one verification gap noted below.
Privacy: strictly positive — locked content is excluded from prompts and outputs. Cost: slightly positive (no LLM call when all memories are locked). USER IMPACT: users who locked conversations/memories/action items no longer see that content surface in Wrapped 2025 or goal suggestions, and firmware checks accept BLE-padded version strings instead of erroring. Two things I'd still want: (1) CI on this head only ran the AI reviewer — please make sure the backend unit suite actually runs/passes on this branch (the 6/6 local claim isn't yet exercised by CI); (2) nit — in suggest_goal, one non-numeric LLM string field (e.g. suggested_target: "five") currently discards the entire suggestion to the fallback via the except; per-field safe coercion would preserve the rest. Leaving for human maintainer review before merge — first contribution touching privacy-filtering surfaces, plus the CI test gap above. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Official PR Author (
|
|
Thanks for the review! Addressed the nit in
Local test execution output: |
**2026-10-24 17:13:37 UTC — NOT SHIP / blocked handoff.** Published head `2f364978ca1b7a786e62bb8217cdb79d795e5813` has495focused test passes and passed every normal push gate. Current-head E2E and backend guardrails are green, but six unit shards fail on five main-side Pyright diagnostics. The R2 source finding is fixed with red/green proof; a lead ruling is required for further review. The T3 freeze was missed. No merge, deployment, credential or quota change occurred. Live-window HTTP failures currently open a listener's whole Parakeet family circuit, so a stale load-balancer backend can send unrelated English audio onto paid vendors. Route internal HTTP windows directly to fresh, DNS-ready GPU pods and quarantine only the contacted pod (120/240/300 seconds, one half-open POST per listener/pod pair). Retry once on a distinct pod within the original POST and first-text budgets; retry model-empty output once per empty episode without advancing audio/replay anchors or treating silence as an outage. `PARAKEET_WINDOW_REPLICA_RECOVERY_ENABLED` ships on. Set false/0/off to restore service-VIP routing, no replica retries and the previous family breaker behavior for new sockets. Account/auth/quota, rate limits, signalled queue pressure, local semaphore waits and invalid input never retry. Failed attempts remain in the new bounded replica-attempt metric; successful recovery uses shared fallback telemetry. An idle selection gauge now expires when its cooldown expires, without changing breaker admission. `omi_stt_provider_circuit_trip_total` retains `error_class` and adds normalized `reason=auth|quota|5xx|latency|no_text|connect`; capacity and unknown evidence have explicit buckets. Zero baselines include the mapped reason, and tests pin actual trip transitions and each cause group. Existing queries that aggregate by provider/kind/error_class work across mixed listener revisions; wait for full rollout before requiring the new label. adm2 integration: separate fresh DNS membership from pressure-sample routing eligibility, so temporary metrics failures cannot erase a DNS-ready pod's quarantine. Both accessors honor its unavailable-discovery flag. An active pod-scoped socket may make an initial VIP POST only before any direct-pod attempt, when fresh discovery is absent and the pressure owner's public admission check still permits bounded cached grace. Later windows retain the no-VIP fence. This path never retries the VIP or renews the grace timestamp; `service_*` outcomes expose it. Production investigation (ro-prod, aggregate infrastructure evidence only; 2026-10-23 23:45–2026-10-24 05:45Z): - Parakeet: 21 selection trips across 19 listener pods, all `provider_5xx`. `/v1/transcribe` ILB logs have 20 HTTP503s (15 backend_connection_closed, 5 failed_to_connect_to_backend) and one HTTP500. Failed connects line up with GPU shutdowns at02:57Z,03:12Z and05:11Z. HTTP500 matches a NeMo single-feature-frame normalization exception on one GPU; exact failed-request-to-pod mapping is unavailable in ILB logs. - Modulate: four `modulate_serve_error` frames say Unable to complete the request; two trips are connection losses. No account/auth/budget trips in this window. No credentials, quota, funding or production configuration changed. The existing account cooldown remains30minutes; existing selection starts180seconds and escalates, rather than a flat30minute bench. - Extended24-hour check at the same cutoff: the `backend-listen-metrics` job has53 serving-fault and19 connection-loss transitions, no Modulate account trips or failed connects. A targeted139-entry log read was untruncated:55 vendor error frames all say Unable to complete the request, with no auth/402/quota/rejected-connect signature. Actual credit balance and auto-reload are unverified because vendor billing access is unavailable; no account repair or change is proposed from these samples. Validation: - Published head `2f364978ca1b7a786e62bb8217cdb79d795e5813`, independently matched by remote Git advertisement and clean local HEAD.495focused tests passed across8 files. The real-pump regression fails at the expected quarantine assertion on4009, then passes after classifying its first-text deadline as owned timeout evidence; external cancellation stays non-outage evidence. Window source1496/1497frozen lines. - Every normal push gate passed:36shared preflight checks(1078.76seconds), enforced Pyright0errors(167seconds),19runtime-image closures(235seconds), and306selected unit tests(86seconds). No suppression, size exception, guard threshold, allowlist or skip flag changed. - Exact-head GitHub Hermetic Backend E2E and Backend unit guardrails succeeded. The six unit shards and aggregate failed before pytest at the same five Pyright diagnostics in main-side retrieval/Wrapped changes outside this PR. CI checked merge1d882247f6(2f intoe86cda5). Producer changes are#23433/#23434; CI run40113372612 contains the exact diagnostics. CI is NOT green; no blind rerun or skip exception was used. - Both authorized read-only review rounds completed. Round2 identified the first-text callback ordering above, corrected in2f with red/green proof. The review cap requires a scoped lead ruling for further review; no third round or independent SHIP verdict for2f is claimed. The automated review threads have implementation/test replies and are resolved; overall approval remains blocked. - Earlier pressure/metrics seam testing with adm2localfe563c1 passed532; it is not qualification of the latest combined train. The read-only merge-tree of4009 with fetchedmain70a78b3 was clean. The lead owns combined-train/live acceptance and next release disposition; the13:00Z T3 freeze was missed. The new integration regression executes the managed live leg through VAD, window POST, alternate pod and transcript emission, proving one transcript and no vendor dial. Other cases cover real outages, cancellation, stale generations, single probes, bounds, cooldown ladder, account conditions, pressure, original deadlines and kill-switch rollback. Local hermetic checks do not establish production transcript quality or reduced Soniox hours; the lead owns the T3 listen deployment and live first-text/no-text/vendor-hours readback with adm2. No workflow or production mutation is included. ## Product invariants affected none Failure-Class: FC-recoverable-provider-failure-terminal
Fixes #21871
/claim #21871
Summary
ot memory_texts).
easoning) and in extract_and_update_goal_progress (current_value, arget_value).
elease_firmware_version in _find_candidate_releases even when current_firmware_tuple is None.