Skip to content

deploy: rebase the Pusher image-only baseline on the live image (SCA-5204) - #26710

Merged
Git-on-my-level merged 1 commit into
mainfrom
agent/omi-control-opencode-deepseek/bf7593cb41d8
Nov 29, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
agent/omi-control-opencode-deepseek/bf7593cb41d8

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Prod Pusher moved to gcr.io/based-hardware/pusher@sha256:fd5fb969da159ef1fad24acf521b6271c99c7a3ec108c2a82368102a65726bf2 in ReplicaSet prod-omi-pusher-74cfcd689d at 2026-11-28T15:35Z, after the protected image-only operation was written. The operation still carries the pre-roll baseline f26e8757…, and execute() observes the live Deployment and requires its image to equal BASELINE before any digest, qualification or admission check. Every preview therefore refuses observed_image_changed, so the operation cannot carry any qualified digest at all.

Change

  • .github/scripts/pusher_image_only.py: BASELINE points at the live image.
  • .github/scripts/pusher_image_only_detect.py: the write detector's copy of the same constant.
  • backend/docs/runbooks/pusher-image-preservation-proposal.md: the evidence-packet example and the required serving readback.

The recorded inverse is now the image that is actually serving. Nothing else changes: the operation still requires an exact immutable candidate, a matching dev qualification, a forward server dry-run, a baseline self-dry-run and a reviewed preview before any patch.

Why it blocks SCA-5204

For source 36d9f63a32133008574c26ac340b68afe7edea83 (current main, carries #26511 by ancestry), the green automatic development qualification run 46245619270 names sha256:982b84c7baa8b33d4a0e4308424d176196b3b33305c03ed7ac220751ace0cd40. With this constant corrected, the protected preview for that pair can run; without it, it cannot.

No dev qualification or deployment was produced by this change, and no production write results from merging it.

View guided diff Turn on auto-fix

Prod Pusher moved from pusher@sha256:f26e8757… to
pusher@sha256:fd5fb969… in ReplicaSet prod-omi-pusher-74cfcd689d at
2026-11-28T15:35Z, after the protected image-only operation was written.
`execute()` observes the live Deployment and requires its image to equal
BASELINE before any digest or qualification check, so every preview now
refuses with observed_image_changed and the operation cannot carry a
qualified digest at all.

Point BASELINE at the current live image in the writer, the write
detector and the runbook evidence example, and update the unit test
constant that mirrors it. The inverse the operation records is therefore
the image that is actually serving now.

SCA-5204.
@Git-on-my-level
Git-on-my-level merged commit 7e7cba4 into main Nov 29, 2026
71 checks passed
@Git-on-my-level
Git-on-my-level deleted the agent/omi-control-opencode-deepseek/bf7593cb41d8 branch November 29, 2026 11:37
Git-on-my-level added a commit that referenced this pull request Nov 29, 2026
…26732)

## What changed and why

Re-pin `reviewed_scripts_tree` in
`.github/workflows/gcp_backend_listen_helm.yml` from
`686d4a44e3041439050d65e39c2aca271f562386` to
`3562810cd1cfd3a0ca13f71ae0f2bdcb630f781e`, the `.github/scripts` tree
of `origin/main` at `54b8f17e013c84aedddc805e6eac3761afdb7c65`
(SCA-4091, SCA-5350).

The step `Verify staged evidence scripts before Python` runs for
image-only evidence requests and refuses unless `HEAD:.github/scripts`
equals the pinned tree. The pin was last set in `06bd2aaf3c4`
(2026-11-27). 24 commits have changed `.github/scripts` on main since
then, so the guard now refuses every image-only evidence request,
including the one #26730 (`image_reference`) needs. This PR changes that
one line and nothing under `.github/scripts`.

### What the pin now vouches for

The pin covers exactly this diff, `git diff --stat
686d4a4
3562810` (paths relative to
`.github/scripts`):

```
 check-deployment-concurrency.py              |  88 +++++++++++++++-
 check-mobile-changelog.py                    |   4 +-
 check_firestore_collection_budget.py         |   9 +-
 check_ui_evidence.py                         |  82 ++++++++++++---
 dead_code/backend.allowlist.json             |  20 ----
 failure_class_guard_ratchet_allowlist.json   |   8 +-
 listen_overlay_evidence.py                   |  18 +++-
 notification_dispatch_boundary_baseline.json |   2 +-
 pusher_canary_inverse.py                     |   8 +-
 pusher_image_only.py                         |  68 +++++++-----
 pusher_image_only_detect.py                  |   2 +-
 pusher_image_rehearsal.py                    |  33 ++++--
 test_check_firestore_collection_budget.py    |   3 +-
 test_check_ui_evidence.py                    |  84 ++++++++++++++-
 test_mobile_changelog.py                     |  10 ++
 test_pusher_image_rehearsal.py               |  53 +++++++---
 test_worker_image_only.py                    |  34 +++---
 tests/ui-author-approval.test.cjs            | 149 ++++++++++++++++++++++++++-
 ui-author-approval.cjs                       |  78 +++++++++++---
 19 files changed, 625 insertions(+), 128 deletions(-)
```

**Executed by the Listen evidence and image-only route.** The route runs
`listen_runtime.py reconstruct` and then `listen_overlay_evidence.py`
(`job`, `apply-image-only`, `verify-image-only`), which imports
`listen_runtime` and `listen_helm_env_overrides`. Of those, only one
file changed:

- `listen_overlay_evidence.py` (+17/-1, #26730). `produce()` leaves the
new `image_reference` dispatch input out of the bound-inputs equality
and instead requires it to be blank or exactly the `image` the evidence
request names (`dispatch_binding` otherwise). A new `image_pin()`
accepts only `gcr.io/<deploy project>/backend:<7-40 hex>` or
`@sha256:<64 hex>` and returns the tag or digest. A new
`--image-reference` argument is accepted only in `argv` mode and only
without `--image-tag`; it feeds the same `helm_args()` the deploy
already used. `listen_runtime.py`, `listen_helm_env_overrides.py` and
`listen_private_env.py` are unchanged.

**Not executed by the Listen route** (in the tree, so covered by the
hash):

- `check-deployment-concurrency.py` (#26599): the Pusher lock contract
sends the isolated canary and image-only preview/promote/rollback lanes
to `deploy-gke-pusher-prod` instead of `prod-train`, with a validator
and self-test cases for those lanes.
- `pusher_image_only.py` (#26610, #26710, #26602): a read-only server
dry-run probe re-reads the Deployment and retries up to 3 times on a
stale snapshot, a live write is never retried; `BASELINE` moves to the
live digest `sha256:fd5fb969…`;
`backend/scripts/pusher_canary_from_live.py` joins `CONTROL_PATHS`.
- `pusher_image_only_detect.py` (#26710): the same `BASELINE` digest.
- `pusher_image_rehearsal.py` (#26560): provenance no longer requires an
unchanged Pusher source closure between the candidate and main; it
requires the development qualification receipt to be at most 24 hours
old (`qualification_stale`).
- `pusher_canary_inverse.py` (#26602): docstring only.
- `check_ui_evidence.py` (#26692): screenshots are required for rendered
UI paths and for Swift or Dart files whose content declares UI, not for
all client code; tests and the generated API file are exempt.
- `ui-author-approval.cjs` (#26655, #26691): test sources and
import-only Swift no longer count as UI; an approval carries to a later
head when the PR's own UI hunks are the same at both heads.
- `check-mobile-changelog.py` (#26341): `app/test/spine/` needs no
changelog entry.
- `check_firestore_collection_budget.py` (#26638): skips
`backend/.venv-eval`.
- `dead_code/backend.allowlist.json`,
`failure_class_guard_ratchet_allowlist.json`,
`notification_dispatch_boundary_baseline.json` (SCA-5535 Episodes
removal, #26630): five allowlist entries removed, one failure class
grandfathered, one baseline count 4 to 3.
- Tests only: `test_check_firestore_collection_budget.py`,
`test_check_ui_evidence.py`, `test_mobile_changelog.py`,
`test_pusher_image_rehearsal.py`, `test_worker_image_only.py`
(publish-only mode conditions and step digests, #26648),
`tests/ui-author-approval.test.cjs`.

The pin goes stale again whenever a later merge changes any file under
`.github/scripts`. If main's tree moves before this merges, the PR is
rebased and re-pinned, and only the new hunks are reviewed.

## Product invariants affected

INV-DATA-1: preserves the existing authority. The change edits one
constant in a guard step of `gcp_backend_listen_helm.yml`; it changes no
routing, service ownership, deploy target or admission rule.

## How it was verified

- `git rev-parse origin/main:.github/scripts` is
`3562810cd1cfd3a0ca13f71ae0f2bdcb630f781e` at `54b8f17e013c`, and
`HEAD:.github/scripts` on this branch equals the pinned value.
- `backend/tests/unit/test_listen_overlay_evidence.py`: 121 passed. It
includes `test_evidence_bootstrap_refuses_added_script_before_python`,
which runs this guard step's own script against a fixture tree.
- `backend/tests/unit/test_listen_overlay_workflow.py`: 40 passed.
- `backend/tests/unit/test_listen_runtime_workflow.py`: 2 passed.
- `backend/tests/unit/test_workflow_contracts.py`: 141 passed.
- `.github/scripts/test_listen_control_pin.py`: 1 passed.

Not verified here: a real image-only evidence run. No workflow was
dispatched; the guard can only pass on main after this merges.

## Tests

No test change. No test asserts the pinned hash; the guard's behaviour
is covered by
`test_evidence_bootstrap_refuses_added_script_before_python`, which
substitutes its own fixture tree hash.

## UI evidence

UI-Evidence: none -- workflow constant only

## Failure class (fixes)

Failure-Class: none

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/26732?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/26732?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F26732&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
Git-on-my-level added a commit that referenced this pull request Dec 1, 2026
…96b (SCA-5954) (#26835)

Prod Pusher moved from pusher@sha256:fd5fb969… to pusher@sha256:b2e9996b…
in the 11-29 #26511 serving roll (SCA-5204). execute() requires the live
Deployment image to equal BASELINE before any digest or qualification check,
so every preview of a qualified candidate now refuses.

Point BASELINE at the image serving now (read 2026-12-01T00:52Z, ro-prod)
in the writer, the write detector and the runbook evidence example. Same
shape as #26710.

Co-authored-by: Claude Opus 5.5 <[email protected]>
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