Repository navigation
fix(pusher): bind dev semantic probe to cluster-local listen - #22497
Merged
Merged
Conversation
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. |
Member
Author
|
Grok review (subscription session's delegated reviewer): APPROVE at 54c4bcf. The probe fails closed before minting a token; the only URL is loopback port-forward to dev-omi-backend-listen; trap cleanup runs on every exit; no new grants (runtime |
Git-on-my-level
added a commit
that referenced
this pull request
Oct 19, 2026
…22450, #22497 sync) E1 (batch policy snapshot) conflicted with legacy-retire in 7 files; per-owner resolutions: - lane 8: database/batch_pipeline_intake.py, utils/batch_pipeline/intake.py, live_upload.py (E1 policy= + admit enqueue=/adopt= hooks), provider_stt.py (enqueue hook takes policy=). - lane 9: utils/sync/reprocess.py stays the alias shim; E1's first-summary policy snapshot is ported into utils/enrichment/outbox.py (mark_update/run), outbox_firestore claim_key/consumer and projection.mark_enrichment; config/policy/guard.py RESOLUTION_EDGES moved to the outbox (lead sign-off, Sol FYI). - lane 6: config/batch_live_preview.py takes E1; config/policy/batch.py reads the _ramp runtime percents in resolve_batch_policy when flags is None (lead sign-off; Sol no objection). test_runtime_percent.py covers ramp wins/recorded, env fallback, explicit flags never read _ramp, retire clamped after runtime batch, and source-blind policy_id. - lane 1: routers/batch_pipeline.py drops the env read (E1) and keeps the 409 kill switch. Verified (unit, m5): runtime_percent, batch_unit_policy (E1 guard), batch_stage_policy, batch_pipeline_serving, quarantine_recovery, batch_provider_stt, outbox_firestore, enrichment_route, task_target_retry_semantics, app_roles census: 359 passed, 3 xfailed.
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.
The dev Pusher semantic probe sent its synthetic listen session and readback through
api.omiapi.com, which intentionally forwards Beta/TestFlight traffic to production. It then required a header-104 record on the dev candidate pod, so successful production finalization ended asproducer_observation. The listen controller, 104 sender, pusher handler, and probe did not change in733a74a..e983fef; this is a probe routing defect, not a demonstrated cap-held shutdown regression.The existing dev deployment workflow now opens an owned, loopback-only port-forward to
dev-omi-backend/service/dev-omi-backend-listen:8080, uses it for both streaming and readback, waits for readiness before minting the five-minute token, and closes the tunnel on every exit. The probe rejects public URLs, mismatched dev project/namespace, or a non-dev Kubernetes context before reading the bearer token, withproducer_environment_mismatch. Candidate digest/pod attribution and the header-104 requirement remain mandatory.The environment signal is the authenticated dev GKE context plus the workflow-owned Service tunnel. The listener chart does not stamp a release SHA for a reliable
/healthSHA comparison, and listener/pusher deployments are independent. The deployer hasroles/container.developer, includingcontainer.pods.portForward, pod get/list, and service get; the step also checkspods/portforwardat runtime. Live dev Service metadata confirms port 8080. Dev listen explicitly setsOMI_CUSTOMER_DATA_PROJECT=based-hardware;firebase_admin_options()uses that auth project, matching the existing release-probe token audience, while compute staysbased-hardware-dev.Why a shared primitive: one environment check protects both semantic probe modes, and one verified base URL feeds the existing streaming/readback functions. No listener product-code workaround, LB change, environment change, or new workflow is introduced.
Validation:
backend/test.shandomi-heavy.make preflight: all 43 selected checks passed. Mandatory post-commit push hooks also passed, including PR metadata, source contracts, backend type checking (zero errors), and the selected backend unit suites. Push usedOMI_PR_BODY_FILEwith no skip hatch.backend/test.shrunner.The real deployed proof is the post-merge dev Pusher auto-deploy run: the direct dev listener must authenticate the release-probe token, complete readback, and attribute header 104 to the exact candidate. That live proof has not been run by this PR. No merge or deploy is requested.
Product invariants affected
based-hardware; only the synthetic development qualification probe bypasses the intentionally production-routed public Beta API through the existing dev Service tunnel.Failure-Class: FC-acceptance-probe-cannot-distinguish-revisions