Repository navigation
feat(staging): lane 4 David-only mirror, synthetic population and replay driver - #22428
Merged
Merged
Conversation
…ver (lane 4) Swarm lane 4 (legacy-retire), contracts (i) and (j) inputs. - testing/loadgen/profile.json + refresh_profile.py: prod upload arrival shape from ro-prod Prometheus aggregates only (k>=20 floor, no uids): ~219 accepted uploads/min, hour-of-day curve, platform and lane mix, recording-age CDFs, VAD speech share. Unmeasured fields stay under `assumed` with their basis. - testing/loadgen/population.py: deterministic pseudo-owner population (steady/burst/reverse/shuffled), relative time shifts so names are minted at send time, silence pads and near-silent files, backlog share from the profile, N-owner burst mode. - testing/loadgen/mirror_codec.py: staging-mirror envelope (AES-GCM, key from the staging-only secret, object name as AAD), byte-compatible prod per-uid decrypt with an explicit secret, chunk/raw upload -> WAL upload bodies without decoding, pendant `opus_fs320` filename support. - scripts/staging/mirror_owner_recordings.py: owner pinned by three David-only prod allowlists, read-only prod facade (list/get), plaintext only in memory, sealed copies to based-hardware-dev-staging-mirror, aggregate-only run record. - scripts/staging/replay.py: plan/run CLI through the real /v2/sync-local-files (+ capture manifest for fresh device-bound uploads, seeded only behind the staging fence); refuses non-staging targets and any host other than in-cluster or m1-mac-studio. - testing/loadgen/staging_replay_job.yaml: in-cluster Job template. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…budget Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Summary
Swarm lane 4 (legacy-sync retirement), first slice: the tooling that feeds staging realistic input. New files only; no runtime code path changes; deploy class none.
testing/loadgen/profile.json+refresh_profile.py(plan F F7): prod upload arrival shape from ro-prod Prometheus aggregates only (k≥20 floor, no uids). Measured: ~219 accepted uploads/min (24h level) with the UTC hour-of-day curve, 76% iOS / 24% Android, lane decisions (60% legacy-fresh, 33% unbound backfill, 0.6% device-bound fresh), recording-age CDFs per lane, VAD speech share 40.6%. Unmeasured fields (reverse-upload share, burst-owner shape, files per upload) stay underassumedwith their basis.testing/loadgen/population.py: deterministic pseudo-owner population (lg-<run>-oNNNN): steady fresh owners at the hour-of-day rate, burst owners (8-10-day-old backlog back to back), reverse (newest-first) and shuffled backlog owners; backlog share derived from the profile; silence pads and near-silent files; capture times stored relative to send so names are minted at send time; N-owner burst mode for M2.testing/loadgen/mirror_codec.py: staging-mirror envelope (AES-GCM, key from the staging-only secret, object name as AAD); prod per-uid decrypt re-implemented with an explicit secret (byte-compatible withutils.encryption, tested) so one process holds both keys; chunk / raw-upload payloads to WAL upload bodies without decoding; pendantopus_fs320filenames.scripts/staging/mirror_owner_recordings.py: owner pinned by three David-only prod allowlists (fails closed if any is missing, a secret ref, or not exactly that uid); prod via a list/get-only facade; plaintext only in memory; sealed copies tobased-hardware-dev-staging-mirror; aggregate-only run record.scripts/staging/replay.py:plan(pure) andrunthrough the real/v2/sync-local-files(+/v2/sync-capture-manifestfor device-bound fresh uploads, seeded only behind lane 2's staging fence). Refuses non-staging targets and any load host other than in-cluster or m1-mac-studio (swarm §8). Writesresults.jsonl,summary.json,population.json(lane 5's input).testing/loadgen/staging_replay_job.yaml: in-cluster Job template.Product invariants affected
none
Test plan
bin/omi-heavy run -- nice -n 19 .venv/bin/python -m pytest tests/unit/test_loadgen_mirror_codec.py tests/unit/test_loadgen_population.py tests/unit/test_staging_mirror.py tests/unit/test_staging_replay.py→ 55 passed (unit layer).utils.encryption, envelope AAD binding, population determinism / exact shape allocation / no future captures / fresh vs backfill classification through the realutils.sync.lanes.classify_sync_lane/ reverse ordering / burst ages, replay guards (prod hosts, non-staging hosts, m5), per-owner serial sends with impersonation headers, manifest binding for seeded fresh uploads, mirror→manifest→population→replay byte round trip.scripts/scan_import_time_side_effects.pyclean on the new modules;.github/scripts/check_dead_code.py --area backendok.Prod data read (this slice)
prod-operator, David's own prefixes only, list + object metadata only (no audio read):omi-private-cloud-syncchunks/73,723 objects (16,300 conversations, 2026-04-16..10-19) andsyncing-localsyncing/20,318 objects (20,155 raw pendant uploads, 6,558 upload jobs). Aggregates recorded in the workspace lane04 record; no uid or names.🤖 Generated with Claude Code