Repository navigation
Conversation
…igner The development Pusher qualification lane has failed on every run since the semantic probe landed on 2026-08-30 (7883c81), always at: Probe deployed development Pusher finalization semantics {"suite":"omi_firebase_release_probe_token","stage":"signer_credentials", "error_class":"project_mismatch","status":"FAIL"} The step fed FIREBASE_SIGNER_CREDENTIALS from secrets.GCP_CREDENTIALS -- the development environment's own deploy identity, project_id=based-hardware-dev -- into a probe run with --firebase-project based-hardware. The dev backend authenticates against production Firebase (FIREBASE_PROJECT_ID=based-hardware on the dev Cloud Run service), and firebase_release_probe_token.py:215 fails closed when the credential's project_id differs from --firebase-project, so this gate could never pass in any environment. The secret has not changed since 2024-10-09 and the last green run (2026-08-31T06:22Z, f1bc776) predates the step, so it has never passed once. Sign with secrets.GCP_SERVICE_ACCOUNT instead: the based-hardware signer that desktop_backend_auto_dev.yml already mints probe tokens with, in the same development environment and for the same --firebase-project. That lane's "Mint candidate probe identity" step succeeded as recently as run 34457560969 (2026-09-10T08:52Z), which is what proves this credential can sign for based-hardware. Cost of the outage: production Pusher promotion requires a successful dev qualification artifact and has no break-glass for it, so pusher has been frozen on its 2026-08-31 image for ten days. That stranded the #12663 custom-STT revert (merged 2026-09-03) on a tier that still runs the old #7690 gate: measured 2026-09-10, 3,571 conversations in 24h logged "custom STT: skipping Omi-paid post-processing" on prod pusher (~106/h, ~38 distinct users/h) while Cloud Run and backend-listen logged none. Verification: - bash scripts/run-release-process-guards.sh -> passed with this change; reverting the env line reproduces both new guard errors. - The probe itself cannot be exercised locally (it needs the deployed dev Pusher and the environment secret); the dev lane run is the real test. Failure-Class: new
…Firebase project Nothing caught the pusher probe shipping with a signer whose project could never match its --firebase-project, so the gate blocked every production Pusher release for ten days while looking like a normal red check. check_firebase_probe_signer_identity fails any workflow that feeds a *SIGNER* env var from a per-environment deploy identity, and any workflow that mints a probe token from a signer file without reading the based-hardware signer secret. Three tests pin it: the exact wiring 7883c81 shipped is rejected, the desktop lane's working wiring is accepted, and the live workflows satisfy the contract. The check ran in no lane for this class of change: its manifest triggers listed codemagic.yaml and one desktop workflow, so a change to any other workflow -- the pusher lane included -- never invoked it. Triggers widen to .github/workflows/**, which is what the new guard actually scans. Verification: bash scripts/run-release-process-guards.sh -> passed bash scripts/run-release-process-guard-tests.sh -> 100 passed
A fail-closed gate that compares a credential's own scope against an authority that credential can never hold cannot pass in any environment, and a permanently red gate looks exactly like an ordinary red check. The pusher dev probe blocked every production Pusher release for ten days that way. Prevention names the two things that would have caught it: the legacy-principal test AGENTS.md already requires of a new fail-closed gate, and the triage rule that a lane whose last green run predates a gate has a broken gate, not broken code.
There was a problem hiding this comment.
2 issues found across 5 files
Confidence score: 3/5
- In
.github/scripts/check-release-process-guards.py, the workflow scan only matches*.yml, so valid.yamlprobe workflows can bypass the signer check; enumerate both supported extensions. - The first pass of
check_firebase_probe_signer_identitytreats any environment variable containingSIGNERas subject to the secret restriction across all workflows, which can flag unrelated workflows; scope the check to workflows that mint the relevant probe credentials.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".github/scripts/check-release-process-guards.py">
<violation number="1" location=".github/scripts/check-release-process-guards.py:554">
P2: A valid `.yaml` workflow is skipped because this guard only globs `*.yml`, allowing a future probe workflow to bypass the signer check. Enumerate both supported workflow extensions.</violation>
<violation number="2" location=".github/scripts/check-release-process-guards.py:559">
P2: The first pass of check_firebase_probe_signer_identity flags any env var whose name contains "SIGNER" when it is fed from a secret other than GCP_SERVICE_ACCOUNT, in any workflow — even workflows that never mint a Firebase probe token. Because checks-manifest.yaml now triggers this guard on every `.github/workflows/**` change, a legitimate non-Firebase signer (OCI artifact signer, macOS code-signing key, etc.) fed from a per-environment credential would be falsely rejected, failing the release-process guard and blocking releases. Scope the first check to workflows that actually run firebase_release_probe_token.py with --signer-credentials-file, or match on the specific probe credential name rather than any name containing "SIGNER".</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| """ | ||
|
|
||
| errors: list[str] = [] | ||
| workflows = sorted((ROOT / ".github/workflows").glob("*.yml")) |
There was a problem hiding this comment.
P2: A valid .yaml workflow is skipped because this guard only globs *.yml, allowing a future probe workflow to bypass the signer check. Enumerate both supported workflow extensions.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/scripts/check-release-process-guards.py, line 554:
<comment>A valid `.yaml` workflow is skipped because this guard only globs `*.yml`, allowing a future probe workflow to bypass the signer check. Enumerate both supported workflow extensions.</comment>
<file context>
@@ -531,6 +532,51 @@ def main() -> int:
+ """
+
+ errors: list[str] = []
+ workflows = sorted((ROOT / ".github/workflows").glob("*.yml"))
+ for workflow in workflows:
+ text = workflow.read_text(encoding="utf-8")
</file context>
| workflows = sorted((ROOT / ".github/workflows").glob("*.yml")) | |
| workflows = sorted( | |
| [*(ROOT / ".github/workflows").glob("*.yml"), *(ROOT / ".github/workflows").glob("*.yaml")] | |
| ) |
| text = workflow.read_text(encoding="utf-8") | ||
| relative = workflow.relative_to(ROOT) | ||
| for name, secret in re.findall( | ||
| r"^\s*([A-Za-z0-9_]*SIGNER[A-Za-z0-9_]*)\s*:\s*\$\{\{\s*secrets\.([A-Za-z0-9_]+)\s*\}\}", |
There was a problem hiding this comment.
P2: The first pass of check_firebase_probe_signer_identity flags any env var whose name contains "SIGNER" when it is fed from a secret other than GCP_SERVICE_ACCOUNT, in any workflow — even workflows that never mint a Firebase probe token. Because checks-manifest.yaml now triggers this guard on every .github/workflows/** change, a legitimate non-Firebase signer (OCI artifact signer, macOS code-signing key, etc.) fed from a per-environment credential would be falsely rejected, failing the release-process guard and blocking releases. Scope the first check to workflows that actually run firebase_release_probe_token.py with --signer-credentials-file, or match on the specific probe credential name rather than any name containing "SIGNER".
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/scripts/check-release-process-guards.py, line 559:
<comment>The first pass of check_firebase_probe_signer_identity flags any env var whose name contains "SIGNER" when it is fed from a secret other than GCP_SERVICE_ACCOUNT, in any workflow — even workflows that never mint a Firebase probe token. Because checks-manifest.yaml now triggers this guard on every `.github/workflows/**` change, a legitimate non-Firebase signer (OCI artifact signer, macOS code-signing key, etc.) fed from a per-environment credential would be falsely rejected, failing the release-process guard and blocking releases. Scope the first check to workflows that actually run firebase_release_probe_token.py with --signer-credentials-file, or match on the specific probe credential name rather than any name containing "SIGNER".</comment>
<file context>
@@ -531,6 +532,51 @@ def main() -> int:
+ text = workflow.read_text(encoding="utf-8")
+ relative = workflow.relative_to(ROOT)
+ for name, secret in re.findall(
+ r"^\s*([A-Za-z0-9_]*SIGNER[A-Za-z0-9_]*)\s*:\s*\$\{\{\s*secrets\.([A-Za-z0-9_]+)\s*\}\}",
+ text,
+ re.MULTILINE,
</file context>
… key
CI caught that the first form of this fix broke a real contract:
test_backend_deploy_workflows_do_not_materialize_an_ignored_service_account_key
forbids secrets.GCP_SERVICE_ACCOUNT in the five workflows that build backend
images, and gcp_backend_pusher_auto_deploy.yml is one of them. gcp_backend.yml
may sign with that key because it is not on that list; this lane may not.
Use the other resolution firebase_release_probe_token.py already supports and
deploy-backend-stack already exposes: name the Firebase project's signer and
impersonate it via IAM signJwt (--signer-service-account), so no key material
enters a backend image build. The signer comes from the established
vars.FIREBASE_PROBE_SIGNER_SERVICE_ACCOUNT, the same variable gcp_backend.yml
passes as firebase_probe_signer_service_account.
This needs one-time infrastructure that does not exist yet, and the step fails
with an explicit message until it does:
- set FIREBASE_PROBE_SIGNER_SERVICE_ACCOUNT (repo or development environment)
to a based-hardware signer, e.g.
[email protected]
- grant this lane's deploy identity roles/iam.serviceAccountTokenCreator on
that service account
The guard narrows to match: it rejects a *SIGNER* env fed from
secrets.GCP_CREDENTIALS -- the lane's own deploy identity, which is the actual
defect -- and accepts both legitimate resolutions. The earlier second rule,
which flagged an unnamed signer, was dropped: gcp_backend.yml's production lane
legitimately signs as a deploy identity that does belong to based-hardware, and
the workflow text cannot say which project an environment resolves to.
Verification:
bash scripts/run-release-process-guards.sh -> passed
bash scripts/run-release-process-guard-tests.sh -> 100 passed
pytest tests/unit/test_preflight_cloud_run_deploy.py -> 18 passed
Restoring the pre-fix env line still reproduces the guard error.
aryanorastar
left a comment
There was a problem hiding this comment.
I reviewed the current head ec3eb6998acfaf7409489fa99e2812cece896882. The direction is good and the production-impact diagnosis is convincing, but I found blockers before approval:
-
Required backend CI is red.
Backend unit shard 1/4failstests/unit/test_pusher_deployment_control_workflow.py::test_dev_qualification_runs_real_deployed_semantic_probe_before_recording_passbecause it still assertssecrets.GCP_CREDENTIALS, while the workflow now correctly usesvars.FIREBASE_PROBE_SIGNER_SERVICE_ACCOUNTwith--signer-service-account. Update that contract test to assert the new impersonation wiring and make the required suite green. -
The new guard still scans only
*.yml. Since the manifest now runs it for every.github/workflows/**change, a valid.yamlworkflow can bypasscheck_firebase_probe_signer_identity. Enumerate both extensions (or scan all workflow files by suffix) and add a regression fixture for.yaml. -
The signer match is still broader than the Firebase probe contract. The guard scans every workflow for any environment variable whose name contains
SIGNERand is fed fromsecrets.GCP_CREDENTIALS, without checking that the variable is used byfirebase_release_probe_token.pyfor the relevant probe. Scope it to the Firebase probe invocation/credential name so an unrelated signer workflow cannot be rejected by this release guard. -
The real qualification is still unverified. Before treating this as merge-ready, configure
FIREBASE_PROBE_SIGNER_SERVICE_ACCOUNTand grant the development lane identityroles/iam.serviceAccountTokenCreatoron that signer, then run the development Pusher qualification and retain the successful semantic-probe artifact. Without that external setup the lane remains intentionally red.
Once the test and guard contracts are corrected and the dev qualification passes, I would be happy to re-review.
|
Closing at the maintainer's request. The diagnosis stands and is recorded here for whoever picks this up: the development Pusher qualification lane has failed on every run since the semantic probe landed in 7883c81, because it signs the probe's Firebase custom token as this lane's own deploy identity (based-hardware-dev) while minting for based-hardware, which firebase_release_probe_token.py fails closed on. Production Pusher promotion requires a successful dev qualification and has no break-glass, so prod pusher has been frozen on its 2026-08-31 image. |
|
Hey @mdmohsin7 👋 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:
Before your next PR, please skim:
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! |
Problem
Custom-STT users still have no summaries, a week after the fix for it merged.
#12663(merged 2026-09-03) removed the#7690Omi-paid LLM gate. It is live on Cloud Runbackendand onbackend-listen. It is not live onpusher, which is where listen finalization runs —prod-omi-pusheris still on its 2026-08-31 image, three days older than the revert. Measured 2026-09-10 on prod pusher:3,571 conversations in 24h (~106/h, ~38 distinct users/h). Cloud Run: 0. backend-listen: 0.
Pusher is frozen because production promotion requires a successful development qualification artifact — and there is no break-glass for that requirement — while the dev lane
gcp_backend_pusher_auto_deploy.ymlhas failed every run since 2026-08-31T06:42Z (0 successes in the last 200 runs).Root cause
7883c816db(2026-08-30) addedProbe deployed development Pusher finalization semanticswired to a credential that can never satisfy it:The dev backend authenticates against production Firebase (
FIREBASE_PROJECT_ID=based-hardwareon the dev Cloud Run service), and firebase_release_probe_token.py:215 fails closed when the credential'sproject_iddiffers from--firebase-project. So the step returnssigner_credentials/project_mismatchin every environment, always.It has never passed: the secret is unchanged since 2024-10-09, and the last green run (2026-08-31T06:22Z,
f1bc776b50) predates the step. An earlier Grafana-token failure masked it until294e377273(2026-09-07) moved the failure one step later.Fix
Sign as a based-hardware principal without materializing its key: name the Firebase project's own signer and impersonate it via IAM
signJwt(--signer-service-account), which is the second resolutionfirebase_release_probe_token.pyalready supports anddeploy-backend-stackalready exposes asfirebase_probe_signer_service_account.The obvious fix — supplying
secrets.GCP_SERVICE_ACCOUNT, which is whatgcp_backend.ymldoes for development — is not available here.test_backend_deploy_workflows_do_not_materialize_an_ignored_service_account_keyforbids that secret in the five workflows that build backend images, andgcp_backend_pusher_auto_deploy.ymlis on that list. CI caught the first version of this PR doing exactly that; the contract stands and the fix moved rather than the test.This needs one-time infrastructure before the lane can go green
The step fails with an explicit message until both exist:
FIREBASE_PROBE_SIGNER_SERVICE_ACCOUNT(repo ordevelopmentenvironment variable) set to a based-hardware signer — e.g.[email protected]. It is currently unset.roles/iam.serviceAccountTokenCreatorfor this lane's deploy identity on that service account. That SA currently has no IAM bindings.Neither is a code change, and I have not made them: granting impersonation on the production Firebase admin service account is a production IAM change.
Guard
Nothing caught a release gate shipping unsatisfiable.
check_firebase_probe_signer_identity(in the existing release-process guard) rejects a*SIGNER*env fed fromsecrets.GCP_CREDENTIALS— the lane's own deploy identity, which is the actual defect — and accepts both legitimate resolutions: the Firebase project's signer credential, or a named signer impersonated via--signer-service-account.It deliberately does not flag an unnamed signer.
gcp_backend_pusher.yml's production lane legitimately signs as a deploy identity that does belong to based-hardware, and the workflow text cannot say which project an environment resolves to. An earlier draft of the guard had that rule and false-positived on exactly that lane.It is not a shared primitive because the contract is specific to this script's fail-closed comparison of the signer's project against
--firebase-project. It would have caught7883c816dbon the day it landed.The guard also ran in no lane for this change class:
desktop-release-process-guardstriggered only oncodemagic.yamland one desktop workflow, so edits to any other workflow never invoked it. Triggers widen to.github/workflows/**, matching what the guard scans.Verification
Restoring the pre-fix env line reproduces the guard error, so the guard is pinned to the real defect.
The probe itself cannot be exercised locally — it needs the deployed development Pusher, the environment, and the IAM grant above. The dev lane run is the real test, and the promotion to prod pusher afterwards is what actually restores custom-STT summaries.
Product invariants affected
Unchanged by this PR.
--firebase-project based-hardwareis kept exactly as it was: thedevelopment backend already authenticates against production Firebase
(
FIREBASE_PROJECT_ID=based-hardwareon the dev Cloud Run service), and this PR does not moveit. The only change is which credential signs the probe's custom token — from the development
deploy identity, which cannot sign for that project, to the based-hardware signer the desktop
development lane already uses for the same purpose. No protected authority, Firebase project,
Firestore project, or serving endpoint is retargeted, so the invariant's "change a protected
authority or Firebase/Firestore project as incidental release-pipeline work" prohibition is
respected rather than exercised.
Failure-Class: new
A fail-closed release gate must be satisfiable by the principal it runs as. This gate compared a credential's project against a project that credential can never belong to, so it could not pass in any environment — it blocked releases instead of qualifying them, and did so silently, looking like an ordinary red check for ten days.