Skip to content

SCA-550: accept Pusher promotion from an unchanged qualified source closure - #18480

Merged
Git-on-my-level merged 2 commits into
mainfrom
sca-550-pusher-promotion
Sep 24, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
sca-550-pusher-promotion

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

What changed and why

SCA-550: Production Pusher promotion failed after unrelated merges because it compared this protected run's checked-out main SHA with the older, development-qualified Pusher source SHA. All four canary errors in run 35963192878 followed from that identity mix-up. Bind production canary, semantic, and final receipts to the exact protected run's checkout while continuing to bind development qualification to its own source and immutable digest. Fail closed if the qualified source is not an ancestor or if the Dockerfile-derived Pusher source closure or chart changed. Bind the isolated pod, listener, and receipt to this run's ID and image digest.

A separate one-line preflight contract correction accounts for the repository-wide mobile-changelog-data check introduced by #18466; the old docs-only selection expectation caused make preflight to fail on a clean base.

Product invariants affected

  • INV-DATA-1 — existing production-family Firebase/data-plane authority is preserved; this change affects only Pusher deploy evidence, not client routing or customer identity.

How it was verified

  • make setup — installed worktree hooks and the locked Python 3.11 backend environment.
  • backend/test-preflight.sh — 17 passed, 9 optional integration prerequisite warnings.
  • backend/test.sh with BACKEND_UNIT_TEST_FILE_LIST set to the three targeted Pusher test files — 76 passed.
  • backend/.venv/bin/python -m pytest -q backend/tests/unit/test_verify_pusher_promotion_evidence.py backend/tests/unit/test_pusher_deployment_control_workflow.py backend/tests/unit/test_verify_pusher_source_closure.py — 76 passed.
  • actionlint -shellcheck "" .github/workflows/gcp_backend_pusher.yml — passed.
  • OMI_PR_BODY_FILE=pr-body-550.md make preflight — 42 checks passed after both commits; scripts/pr-preflight --lane local --pr-body-file pr-body-550.md --metadata-only — four metadata checks passed.
  • Exercised the real verifier behavior with hermetic signed-identity-shaped receipts and an actual two-commit Git repository; accepted an unrelated main move, rejected a changed source closure and mismatched run, pod, or digest. The real production deploy was intentionally NOT run (coordinator-owned).

Tests

  • backend/tests/unit/test_verify_pusher_promotion_evidence.py: moved-main success; source closure/ancestry failure; exact run/pod/digest refusal; canary and final phase with distinct development and production SHAs.
  • backend/tests/unit/test_pusher_deployment_control_workflow.py: production and final verifier calls pass this run's checked-out SHA while qualification and pre-mutation closure gates remain intact.
  • .github/scripts/test_pr_preflight.py: docs-only manifest contract includes the already mandatory mobile changelog data check.

Failure class (fixes)

Failure-Class: none

New guards

Run 35963192878 would have been caught by the moved-main and canary-source tests; the validation is Pusher-specific because it derives its comparison set from this service's Dockerfile and verifies its isolated canary receipt format, rather than defining a new generic release primitive.

Review in cubic

Git-on-my-level and others added 2 commits September 24, 2026 13:51
…kout

Keep the qualified digest tied to its dev run while comparing canary and final
receipts with this run's checked-out main source. Recheck the Pusher closure
and exact run/pod identity before accepting production evidence.

Failure-Class: none

Verification: backend/test.sh (76 focused tests); actionlint; OMI_PR_BODY_FILE=pr-body-550.md make preflight (42 checks).

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
The mobile release-note pipeline added mobile-changelog-data to every diff;
the docs-only selection contract was still asserting the old global set.

Verification: python3 .github/scripts/test_pr_preflight.py (48 tests); OMI_PR_BODY_FILE=pr-body-550.md make preflight (42 checks).

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@Git-on-my-level
Git-on-my-level merged commit 29b3c32 into main Sep 24, 2026
64 checks passed
@Git-on-my-level
Git-on-my-level deleted the sca-550-pusher-promotion branch September 24, 2026 07:07
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