Skip to content

test(stt): run the isolated fake listen soak locally - #20477

Closed
Git-on-my-level wants to merge 1 commit into
BasedHardware:mainfrom
Git-on-my-level:fix/live-stt-soak-local
Closed

Git-on-my-level wants to merge 1 commit into
BasedHardware:mainfrom
Git-on-my-level:fix/live-stt-soak-local

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

The isolated listen soak required a dev pod and kubectl, preventing fake qualification when dev NetworkPolicy enforcement and Secret permissions were unavailable. Add a fake-only local launcher using the same listen app, protocol peers, public fixture, session driver and recovery metrics from #20391.

The launcher allowlists child environments, requires a failing ADC lookup, owns local Firestore/Redis emulators, refuses occupied ports and reaps only its PIDs. It discards runtime logs and deletes transient emulator data, records count-only artifacts, supplies macOS process RSS/CPU metrics, and reduces concurrency to four above a one-minute load of 30.

Why isn't this a shared primitive instead? It composes the existing manifest environment, safety validator, app and session/report primitives. Credential scrubbing, loopback fencing and PID ownership belong to the local process entrypoint; the existing pod path uses NetworkPolicy for isolation. The merged #20391 soak admission failure is the triggering instance.

Validation: 27 focused tests; 29 preflight checks; all 48 publication check steps passed at cef17a9d4a, including typechecking and selected units. This is a draft harness PR with no cluster or production action.

Fake-local arm Sessions / requested minutes Terminal / after-text metric Positive replay Wall sum / p95 bucket bound (s) Skips (s) Recovered / exhausted
Window → Soniox 16 / 10 16 / 16 32 415.83 / ≤25 44.79 32 / 16
Window → Modulate 16 / 10 16 / 14 32 347.89 / ≤20 301.08 32 / 16
Window → Modulate diagnostic 4 / 10 0 / 0 4 27.08 / ≤10 0.00 4 / 0
Soniox 1011 4 / 1 0 / 0 0 0.00 / N/A 0.00 4 / 0
Modulate 1011 4 / 1 0 / 0 0 0.00 / N/A 0.00 4 / 0

The 16-session Soniox arm ended at 6.6 minutes; sampled load stayed below 30. The 16-session Modulate arm ended at 3.2 minutes during severe host overload. All sixteen Modulate clients received text before failing; the final after-text scrape captured fourteen. The four-session Modulate diagnostic completed ten minutes with zero failures/skips. This does not qualify the original 16-concurrent arms.

Flag-off control: sixteen sessions in four sequential five-minute batches, sixteen window 503s, zero terminal failures, zero recovery metric series and 80.84 legacy replay seconds. Both paid-adapter fault tests injected four 1011 closes and recovered all four sessions with zero failures/skips. Those starts retain no replay prefix; their automatic HOLD reflects missing positive replay exposure. Window arms supplied positive replay evidence.

Local recommendation: HOLD for the two-pod prod canary because of the 16-session terminal-after-text failures. Paid transport and real GPU/backfill capacity exposure can come from the canary, but do not waive these local failures. Fake-local also cannot establish image pull/container startup, pod limits/working set, pusher/GCS/finalization, normal startup jobs, real Firebase/persistence performance, fleet LB/NEG/HPA/scrape isolation or attended rollback. RSS/CPU and full count-only receipts remain at /Volumes/Ephemeral/scratch/stt-soak-8fb7dc1-20261003/local/. All 33 owned service PIDs were reaped; final checks found no owned PIDs or listeners.

Product invariants affected

none

Failure-Class: none
Reason: test-harness portability; no shipping product behavior changes.

Git-on-my-level added a commit that referenced this pull request Oct 4, 2026
## Summary
- Preserve recovery-ON accepted replay/live-tail audio on normal client
close instead of letting a completed lifetime task cancel its receiver
drain.
- Bound shutdown delivery, provider EOS/final callbacks, monitored
persistence drain, and cancellation acknowledgement with one overall
~30-second recovery-ON deadline; teardown and conversation finalization
always run afterwards.
- Preserve default-OFF behavior, session-owned recovery state,
unique-target episodes, refusal backoff, 1× pacing, and existing
overload/residence limits. Client departure must not authorize another
paid dial.

Failure-Class: FC-live-stt-audio-lost-on-provider-death

Line-Count-Exception: backend/routers/listen/receiver.py | 2237 -> 2386
| Keep bounded shutdown, connected-candidate ownership, and the existing
flag-off teardown order at their session owner; splitting that lifecycle
during this incident fix would add a separate refactor surface.

## Diagnosis
At normal disconnect, heartbeat can finish while `receive_data()` is
still draining its accepted replay tail. The listen supervisor then
reports `lifetime_done`; runtime marks transcription failed and cancels
the unfinished receiver. The replay drain's `finally` calls `finish()`,
discarding and metering remaining audio. The transcript consumer can
also exit before the final provider callback because heartbeat already
cleared `state.active`.

Round-2 evidence at f8ae0d5 had 56 sessions and zero terminals, but
354.56 skipped seconds, mostly at shutdown. This PR targets shutdown
ownership, not a wider recovery budget.

The historical extra Soniox→Modulate dial carried only `capacity_full`;
its subtype was not retained. The fake peer has no quota/capacity
refusal. Relevant local causes are bounded queue stall/overflow,
residence expiry, or tail capacity. Exact retrospective subtype
attribution is unavailable. Keep overload safeguards rather than widen
them to conceal cost.

## Test plan
- [x] Deterministic recovery-ON regression fails on main `6eb534630f` at
the exact PCM assertion, then passes after the fix: accepted tail
reaches the serving wire before EOS, `LAST` persists before conversation
finalization, and the supervisor is confirmed to exit via the heartbeat
lifetime task.
- [x] Ten shutdown tests: deadline/blocked writer, cancellation-tolerant
final response, close during connected prefix, terminal/deletion/caller
cancellation, no new paid dial after departure, no-connected-candidate
loss, and once-only skip accounting including a packet already written
while confirmation is held. Canonical `backend/test.sh`: 10 passed; CPU
guard maximum observed warning 0.14 s, below 0.30 s. Real stdout:
`backend/.local/green-shutdown-tail-final.log`; main failure:
`backend/.local/red-on-main-shutdown-tail-final.log`.
- [x] Focused receiver/provider-pair, pacing, recovery-matrix, runtime,
and pinned flag-OFF contracts exercised; changed drain/abort paths
received an additional 61-test provider-pair/runtime pass. Touched
production-file Pyright: zero errors. Backend preflight: 18 passed, zero
required failures.
- [x] One isolated #20477 fake-local Soniox batch: eight concurrent
sessions × ten minutes; final scrape 45 seconds after client close.
- [x] `PYTHON=backend/.venv/bin/python
OMI_PR_BODY_FILE=.local/pr-stt-shutdown-tail-body.md make preflight`:
all 31 selected checks passed on committed head `e0b394f624`; actual
stdout `.local/preflight-final-green.log`. PR metadata validation: four
checks passed. The supported explicit size declaration above records the
receiver growth; no thresholds, guard allowlists, or security policies
changed.
- [x] Normal pre-push hooks passed without bypass, including pinned
formatting, selected unit CPU guard, OpenAPI/released-client
compatibility, and shared PR contracts.
- [x] Exact-head GitHub CI (`e0b394f62474c2319f6a6bfedce50eb8183fcde7`):
31 passed, 23 scope-excluded/post-merge checks skipped, zero failed or
pending. Backend unit suite and all four shards, backend guardrails,
Hermetic Backend E2E/merge gate, Listen Pusher Stack Gauntlet, metadata,
formatting, hygiene, source closure, API contracts, and CodeQL passed.
Evidence `.local/ci-shutdown-tail.json` and
`.local/gh-watch-shutdown-tail.log`. Skipped checks are not claimed as
executed.

## Round 2 — Luna P2 close-bound review
The original head `e0b394f624` bounded receiver delivery and cleanup,
then started a fresh 30-second monitored drain followed by up to five
seconds of cancellation acknowledgement. Recovery-ON now retains the
receiver's absolute deadline and shares its remaining overall
28+2-second budget with runtime receive completion, monitored transcript
persistence, and cancellation acknowledgement. Flag-OFF keeps its
original waits. Teardown and conversation finalization remain outside
this pre-teardown budget and always run afterwards.

- [x] New runtime regression fails on unmodified `e0b394f624` in both
`lifetime_done` and `disconnect` modes: blocked final persistence plus a
cancellation-tolerant monitored task delays teardown. Failure evidence:
`backend/.local/r2-prefail-runtime.log`.
- [x] With the fix, both modes reach teardown within a shortened shared
bound and still invoke conversation finalization. Three drain-helper
tests cover future/expired deadlines and unchanged legacy
timeout/acknowledgement waits. Focused canonical `backend/test.sh`: 12
shutdown tests and 38 fast async-task tests passed
(`backend/.local/r2-test-sh-final.log`); the full async-task file
including slow cases passed all 57 tests
(`backend/.local/r2-slow-async-tasks.log`).
- [x] Adjacent runtime and pinned flag-OFF contracts: 67 tests passed
(`backend/.local/r2-flagoff-tests.log`). Backend test preflight: 18
passed, no required failures. Touched production files have no Pyright
errors; test files are outside the enforced lane and retain private-seam
diagnostics.
- [x] Final repository preflight: all 31 checks passed on the complete
round-2 worktree diff (`.local/r2-make-preflight.log`). Touched
production-file Pyright: zero errors
(`backend/.local/r2-pyright-final.log`).
- [x] Normal pre-push hooks passed without bypass on both round-2 heads,
including final head `423eef0b665c54dad76b326cd488b059bccea03a`:
selected unit CPU guard, formatting, shared PR contracts, OpenAPI and
released-client compatibility. The final push revalidated all 31
repository preflight checks on its complete nine-file PR diff.
- [x] First round-2 CI exposed fixture drift in five
`test_live_early_provider_deaths.py` cases: the fake request omitted
`owner_persistence_blocked` and its mocked task owner did not create
real tasks. Reproduced with canonical `backend/test.sh`
(`backend/.local/r2-repro-early-deaths.log`), completed the fixture
without changing production behavior or assertions, then all 57 cases
passed under the 0.30-second CPU guard
(`backend/.local/r2-green-early-deaths.log`).
- [x] Exact final round-2 head
`423eef0b665c54dad76b326cd488b059bccea03a` GitHub CI: 31 passed, 23
skipped, zero failures or pending checks. All four backend unit shards,
backend unit suite/guardrails, Hermetic Backend E2E/merge gate, Listen
Pusher Stack Gauntlet, formatting, hygiene, API/source-closure contracts
and CodeQL passed. Scope-excluded and post-merge skipped checks are not
claimed as executed. Unit run:
https://github.com/BasedHardware/omi/actions/runs/37162083121; hermetic
run: https://github.com/BasedHardware/omi/actions/runs/37162083087.

The prior Soniox soak below is frozen evidence at `e0b394f624`, not a
new-head soak claim. No local services were started for this round; no
other lane's processes were terminated.

## Local soak
Runtime source `e0b394f62474c2319f6a6bfedce50eb8183fcde7`; harness
#20477 at `cef17a9d4a218741853cb98311d05168e04f773d`. Temporary local
launcher modifications were limited to the requested eight-session
batch, a 45-second post-close observation window, and per-session wall
receipts. The temporary launcher was removed; no harness code is
committed.

| Measurement | Recovery ON |
|---|---:|
| Sessions / exposure | 8 concurrent × 10 minutes; shortest wall receipt
600.05 s |
| Terminals / terminal-after-text / client failures | 0 / 0 / 0 |
| Skipped audio | **0 seconds** |
| Paid dials | 8 Soniox, 0 Modulate — **1.0/session** |
| Recovered / exhausted / positive replays | 8 / 0 / 8 |
| Injected window 503s | 8 |
| Ready / received text / normal 1000 closes | 8 / 8 / 8 |
| Sampled load / peak RSS | 7.09–24.15 / 390.83 MiB |
| Missing families / resets / scrape errors | 0 / 0 / 0 |

All eight supervisor exits were disconnects. Raw evidence:
`.local/stt-shutdown-tail-soniox-20261004/{before.prom,after.prom,progress.json,report.json,isolation.json,cleanup.json}`;
launcher/source hashes `.local/source-shutdown-tail.json`. Frozen
measured summary: `.local/shutdown-tail-soak-summary.json`.

The fresh batch and deterministic pacing/queue tests reproduce no
residual extra-dial defect. Historical load~120 `capacity_full` is
consistent with the existing local overload safeguards, but exact
retrospective subtype attribution is unavailable because it was not
retained. No safety bound was widened.

Isolation: fresh listen/local Redis/demo Firestore/fake peers,
allowlisted environment, empty HOME/CLOUDSDK_CONFIG, failed ADC lookup,
loopback-only sockets, no dotenv/cloud identity/real credentials, no
retained audio or transcripts. All three new service PIDs were reaped
and all five ports verified free. Cleanup also reaped prior-run orphan
Java PID 80988 in this worktree, which was not started in this run; that
exceeded the requested current-run PID-only scope and was disclosed. No
prod/dev-cluster/monitoring actions.

Fake-local evidence does not establish vendor quota, billing, quality,
real GPU capacity, production persistence/finalization, or fleet
readiness. Recovery stays default off. Draft only: do not merge or
deploy.

Generated with [Devin](https://devin.ai)
Git-on-my-level added a commit that referenced this pull request Oct 4, 2026
## Summary
- Carry client-close drain eligibility into an already-connected
successor before starting its adopted tail pump. Previously, close
marked only the old socket, so the new pump saw an inactive host and
discarded accepted audio despite unused shutdown budget.
- Keep the original shared 28-second delivery + 2-second cleanup
deadline, no-new-paid-dial-after-departure guards, and default-OFF
legacy path unchanged. Adoption reuses a provider dial begun before
departure; it does not authorize a new dial.
- Add deterministic runtime/receiver/provider-wire regression coverage
and document the handoff in the existing listen pipeline guide.

Failure-Class: FC-live-stt-audio-lost-on-provider-death

## Product invariants affected
none

## Test plan
- [x] Regression fails on unchanged `origin/main` (`d04010dffcce`)
because the post-close adopted successor delivers the prefix but
discards its nonempty accepted tail.
- [x] After the fix, exact prefix + tail PCM reaches the real provider
send loop before EOS, final `LAST` callback persists before conversation
finalization, and skipped audio is zero.
- [x] Focused canonical `backend/test.sh`: 243 tests passed across
shutdown, provider pairs, flag-OFF/session pinning, recovery matrix,
pacing, and transcript replay. No fast test exceeded the 0.30-second CPU
guard.
- [x] Strengthened post-close blocked-wire test proves an attempted tail
write expires at the unchanged shared deadline, meters only unwritten
bytes once, closes transports, and leaves no STT tasks. Final canonical
shutdown-file rerun: 14 passed, no CPU guard trips.
- [x] Eight-session shutdown-heavy fake-local arm, with each client
closing about five seconds after injected window 503 during active
prefix replay; 45-second post-close observation.
- [x] `PYTHON=backend/.venv/bin/python
OMI_PR_BODY_FILE=.local/pr-stt-adopted-tail-body.md make preflight`: all
31 selected checks passed. `scripts/pr-preflight --lane local
--pr-body-file .local/pr-stt-adopted-tail-body.md`: all 31 passed.
Touched production-file Pyright: zero errors. Evidence
`.local/adopted-tail-{preflight,pr-body-check,pyright}.log`.
- [x] Normal pre-push hooks passed without bypass on head
`f00d466b3aec086a168a24a490656647f4a44a05`: shared preflight/metadata,
CPU-guarded units, formatting, API/released-client compatibility and
source closure.
- [x] Exact-head GitHub CI green on
`f00d466b3aec086a168a24a490656647f4a44a05`: all four backend unit
shards, backend unit suite/guardrails, Hermetic Backend E2E/merge gate,
Listen Pusher Stack Gauntlet, metadata, formatting, hygiene,
API/source-closure contracts, and CodeQL passed. No failed or pending
checks; scope-excluded/post-merge skipped checks are not claimed as
executed. Evidence `.local/ci-adopted-tail.json` and
`.local/adopted-tail-ci-watch.log`.

## Local shutdown-heavy soak
Runtime: main `d04010dffcce` plus this reviewed four-file diff;
production diff SHA256
`483f116d503b92c5eaffc5c99caf2f9c11e4e863901c64f35293e3faa637519d`.
Harness: #20477 plus the preserved round-3 shutdown observer snapshot;
only the owned-PID file destination changed.

| Measurement | Result |
|---|---:|
| Concurrent sessions / active-replay closes | 8 / 8 |
| Fault-to-close request | 5.073–5.077 s |
| Skipped accepted audio | **0.00 s total; zero in each session** |
| Server close p95 / max | **5.351 s / 5.351 s** |
| Paid dials | 8 Soniox, 0 Modulate; **1.0/session, exactly one in
each** |
| Terminals / terminal-after-text | 0 / 0 |
| Positive replays / sessions receiving text | 8 / 8 |
| Peak sampled listen RSS / CPU seconds per session | 400.19 MiB /
0.2595 |

Close duration is server disconnect receipt through ASGI-handler
completion; p95 uses nearest rank (with eight sessions, p95 equals max),
not client handshake duration. Every adopted tail started with
`host_active=false`, `draining=true`, 4.16 s queued, and ended with zero
queued and no death. This replaces the prior arm's 4.04 s loss per
session without spending a new deadline or dial.

Frozen count-only evidence: `.local/adopted-tail-soak-summary.json`; raw
`.local/stt-adopted-tail-shutdown-20261004/{before.prom,after.prom,report.json,batch-1.json,progress.json,isolation.json,cleanup.json}`;
harness/source snapshot hashes
`.local/adopted-tail-harness-source.json`. RED/GREEN tests:
`.local/adopted-tail-{red,green,selected-green}.log`. All three spawned
services were reaped; all five service ports were verified free; no
other lane's process was signalled. Temporary harness changes were
restored; only the intended four files remain changed.

Isolation: #20477 local harness plus the reviewed round-3 count-only
shutdown observers; fresh demo Firestore/Redis/listen and fake loopback
provider peers, credential-scrubbed allowlisted environment, empty
HOME/CLOUDSDK_CONFIG, failed ADC lookup, loopback-only socket guard, no
dotenv/cloud identity/real provider keys. Every spawned PID is recorded
at spawn in this worktree's `.local/owned-pids.txt`; only newly owned
registered process objects may be signalled. Temporary harness files are
restored/removed after execution and are not committed.

Fake-local evidence is not vendor billing/quota/quality, GPU, production
persistence/finalization, or fleet qualification. Recovery remains
default off. Draft only; no merge, deployment, cluster, or monitoring
actions.

Generated with [Devin](https://devin.ai)
Git-on-my-level added a commit that referenced this pull request Oct 4, 2026
…0650)

Active VAD currently withholds silence but keeps Soniox's paid
connection open. Add default-off `SONIOX_IDLE_CLOSE_SECONDS`; suggest
`45` for a first canary. Unset/zero returns the original adapter and
does not register idle metric series. Positive thresholds below 20s
clamp to 20s and warn once per process. `SONIOX_IDLE_REARM_SECONDS`
defaults to 60s (hard minimum 60s); `SONIOX_IDLE_MAX_CLOSES_PER_HOUR`
defaults to 12 closes per rolling hour. A listen-session-owned budget
survives provider leg replacement in both connector paths. Rate-limited
closes leave the active transport serving audio and keepalive normally.

After continuous VAD silence, finalize and drain the old socket for at
most two seconds, then close/abort its transport while retaining the
logical provider leg. The next VAD onset retains original PCM pre-roll,
waits for the old callback drain, opens the same captured
endpoint/config through the shared Soniox connector, and sends pre-roll
before onset. A real failed reopen enters ordinary connect/failover
handling; retained onset queues behind recovery replay with already
accepted capture prefixes excluded. Planned closes publish no death,
breaker/quarantine strike, fallback or cost-router failure evidence.
Genuine account/config errors still propagate.

Rebase each socket's restarted provider clock onto the existing
accepted-audio ledger, including Soniox elapsed-axis mode, then use the
existing wall/capture projection. Socket epochs reset provider-local
speaker IDs. Shutdown while suspended finishes normally without
reopening. Five unlabeled metrics measure closes, reopens, reopen
latency, failures and estimated connected seconds avoided.

**Billing scope:** Soniox explicitly bills the full stream, including
keepalive-only idle time
([docs](https://soniox.com/docs/stt/rt/connection-keepalive)). Deepgram
streaming STT is billed by processed audio duration ([official
answer](https://github.com/orgs/deepgram/discussions/1216)); keepalive
control frames contain no audio
([docs](https://deepgram.com/learn/holding-streams-open-with-stream-keepalive)),
so audio-free socket idle should not be billed as processed audio
(inference from those sources). Modulate lists processed-audio-hour
pricing ([pricing](https://www.modulate.ai/api-pricing)); a
keepalive-only billing guarantee is not documented there. Sent silence
is still processed audio. Leave both adapters unchanged.

**Validation:** 918 focused fast tests pass through `backend/test.sh` on
the synchronized branch, including 54 idle lifecycle cases, 149
runtime-env cases and 129 connector/rejection/rate-limit/recovery cases.
The canonical runtime-env fixture also passes separately with the
unchanged CPU guard. New regressions exercise 120 alternating
threshold/onset cycles with recovery on/off and default/custom hourly
caps, exact cooldown/rolling-hour expiry, session budget continuity
across socket replacement, safe config parsing and one-time floor
warning. Unset/zero parity snapshots the real default Prometheus
registry with cold and already-registered idle metrics, asserting
identical global series and unchanged idle samples. Legacy connector
fixtures assert the receiver budget is passed through both normal and
same-provider dials. Typecheck: 0 errors. Local preflight and all normal
exact-head push gates passed. Exact-head CI results are available in the
PR checks. A repeated CI timing failure in the unchanged containment
detector required a one-line dictionary field-read fast path, retaining
the generic Mapping/object fallback. All 162 containment tests pass,
including new non-dict Mapping parity, with the original 0.30s limit
unchanged. Seven local trials of six maximum-layout decisions reduced
median CPU from 102ms to 41ms. Recent main changes are incorporated;
both concurrent pipeline documentation sections are preserved. Luna's P2
findings are addressed; no new review verdict is claimed.

Local fake-mode soak uses draft #20477's preserved harness on throwaway
branch `soak/soniox-idle-close-round2`, with all 16 changed production
Python files byte-identical to execution head
`049ede6e3f5f9b12385bf6a63896485ae77d454e`; the final STT implementation
is unchanged by the later containment lookup optimization (the fake
harness is isolated from the production tree). Two sessions per arm,
129s each, 6s public speech / 60s silence, 45s threshold, 60s rearm and
default 12/hour cap. Scrubbed environment; local Firestore/Redis
emulators; ADC unavailable. Every manually launched process, service and
metrics probe records its PID in `.local/owned-pids.txt`; all owned
service PIDs were reaped. No provider fault is injected.

| Recovery | Closes | Reopens | Reopen p95 | Connected seconds | Avoided
vs flag-off | Lost-onset seconds | Terminals |
|---|---:|---:|---:|---:|---:|---:|---:|
| on | 2 | 2 | 10.19 ms | 213.34 | 44.35 | 0 | 0 |
| off | 2 | 2 | 4.45 ms | 215.48 | 42.21 | 0 | 0 |
| flag-off control | 0 | 0 | n/a | 257.69 | 0.00 | 0 | 0 |

Reopen failures: 0. Onset byte hashes matched 2/2 per enabled arm.
Flag-off emitted no idle series. The avoided counters read 43.35s /
42.24s; independent arm scheduling accounts for small differences versus
measured socket lifetime. Cooldown reduces closes from four in the
historical round-one run to two in each current enabled arm. The generic
recovery gate remains `REVIEW_REQUIRED` because there is no fault
injection; the requested idle assertions pass. Count-only receipts:
`.local/round2-synced-soak-summary.json`, with raw metrics, isolation
and cleanup receipts in the three arm directories. No live Soniox or
acoustic acceptance is claimed.

**CI:** head `475ac229d16bd73ca91facca35e60fe17f79305f`: [exact-head
checks](https://github.com/BasedHardware/omi/pull/20650/checks);
flag-off keeps its original wire path. Draft only; no merge or
deployment. Fake dial latency is not real Soniox handshake latency or
acoustic acceptance.

Product invariants affected: none

Failure-Class: none

Additive, default-off cost optimization; existing failure contracts
remain authoritative.

Line-Count-Exception: backend/routers/listen/receiver.py | 2398 -> 2402
| Add session-owned Soniox churn budget and pass it through the two
legacy connection paths so provider leg replacement cannot reset the
rolling hourly cap.
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Closing as part of a stale-PR cleanup David asked for on 2026-11-26 (Shipping lead agent): it is a draft with no activity for days. Nothing is lost: the branch stays, and anyone can reopen this PR if the work is still wanted. If it still matters, reopen it and refresh it against main.

@github-actions

Copy link
Copy Markdown
Contributor

Hey @Git-on-my-level 👋

Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request.

After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing.

Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out.

Thank you for being part of the Omi community!

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