Skip to content

fix(pusher): bind dev semantic probe to cluster-local listen - #22497

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/pusher-probe
Oct 19, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/pusher-probe

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

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 as producer_observation. The listen controller, 104 sender, pusher handler, and probe did not change in 733a74a..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, with producer_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 /health SHA comparison, and listener/pusher deployments are independent. The deployer has roles/container.developer, including container.pods.portForward, pod get/list, and service get; the step also checks pods/portforward at runtime. Live dev Service metadata confirms port 8080. Dev listen explicitly sets OMI_CUSTOMER_DATA_PROJECT=based-hardware; firebase_admin_options() uses that auth project, matching the existing release-probe token audience, while compute stays based-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 tests executed serially under nice, only through backend/test.sh and omi-heavy.
  • New fail-fast regression: 3 failures against the old probe, then passing with the guard.
  • Probe and workflow unit suites: environment rejection/acceptance, shared stream/readback URL, Service/port wiring, RBAC gate, readiness/token ordering, tunnel cleanup, and Bash syntax.
  • Listen runtime suite: 36 passed, including real teardown → controller → binary 104 hand-off before Pusher close, with enforcement off and an empty uncapped sink on.
  • 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 used OMI_PR_BODY_FILE with no skip hatch.
  • Hermetic deployment validators and all 10 deployment-safety unit suites passed through the requested serial backend/test.sh runner.
  • CI budget inventory refreshed; no inventory change was needed.

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

  • INV-DATA-1: customer Firebase/Auth/Firestore authorities remain on 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

View guided diff Turn on auto-fix

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T13:22:44.395254Z 54c4bcf PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Git-on-my-level

Copy link
Copy Markdown
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 can-i only). Targeted tests: 42 + 20 + 36 pass. A formal approval can't be posted because the gh identity is the PR author.

@Git-on-my-level
Git-on-my-level merged commit d56d46a into main Oct 19, 2026
62 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/pusher-probe branch October 19, 2026 14:07
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.
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