Repository navigation
deploy(listen): re-pin the reviewed evidence scripts tree (SCA-4091) - #26732
Merged
Merged
Conversation
The image-only evidence guard compares HEAD:.github/scripts with a reviewed tree hash before any Python runs. main's .github/scripts moved from 686d4a4 to 3562810 (19 files, +625/-128), so the guard refuses every image-only evidence request. Pin the current tree. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Git-on-my-level
added a commit
that referenced
this pull request
Dec 1, 2026
…26839) ## What changed and why Update the Listen evidence workflow's `reviewed_scripts_tree` from `fc54ba6c0c1a407b709acf9cf964c4868210cc93` to `8f7869ce5f401d53040abdac398c2d810ca81f26`, the `.github/scripts` tree of remote `main` at `2b0a79b82c86f3feeb03923b08fc4d08c2da0c60`. The stale pin fails the Listen workflow contract test and blocks staged evidence before Python runs. This one-line re-pin follows [#26732](#26732) and tracks SCA-5315. The initial tree delta to `912027199fa9b50413b9b4a2977e97cfd40a4348` added `worker_shadow_percent_only.py` and `test_worker_shadow_percent_only.py`. Both Git blobs match the independently reviewed [#26825](#26825) commit `65dc10b126e7d808bb45b9b3afb5716a70e510e6`. These additions are outside the Listen evidence execution path. Since that tree, [#26835](#26835) changed only the `BASELINE` image digest in `pusher_image_only.py` and `pusher_image_only_detect.py` under `.github/scripts`, from `fd5fb969…` to `b2e9996b…`. Both Pusher script blobs on current `main` match #26835 commit `8b0142795b86c56ea34d5cb96b793540851a4340`. The Pusher scripts are outside the Listen evidence execution path. ## Product invariants affected - INV-DATA-1. The workflow continues to enforce the exact reviewed scripts tree before running staged evidence code. ## How it was verified - Queried remote `refs/heads/main`, resolved its `.github/scripts` tree, and compared the old-to-new trees and both added blobs against the reviewed head. - On Apple M1 Max, the named Listen regression test failed on the old pin. All 41 tests in `backend/tests/unit/test_listen_overlay_workflow.py` passed with the re-pin. - `actionlint .github/workflows/gcp_backend_listen_helm.yml` and `git diff --check` passed. - Repository preflight and PR metadata validation passed. ## Tests The existing `test_evidence_uses_control_sha_and_exact_candidate_not_deploy_for_evidence` covers the pin against the checkout's scripts tree. Verification used local tests without dispatching a workflow. ## UI evidence UI-Evidence: none -- workflow constant only ## Failure class (fixes) Failure-Class: none <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/26839?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/26839?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F26839&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. -->
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.
What changed and why
Re-pin
reviewed_scripts_treein.github/workflows/gcp_backend_listen_helm.ymlfrom686d4a44e3041439050d65e39c2aca271f562386to3562810cd1cfd3a0ca13f71ae0f2bdcb630f781e, the.github/scriptstree oforigin/mainat54b8f17e013c84aedddc805e6eac3761afdb7c65(SCA-4091, SCA-5350).The step
Verify staged evidence scripts before Pythonruns for image-only evidence requests and refuses unlessHEAD:.github/scriptsequals the pinned tree. The pin was last set in06bd2aaf3c4(2026-11-27). 24 commits have changed.github/scriptson 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 686d4a44e3041439050d65e39c2aca271f562386 3562810cd1cfd3a0ca13f71ae0f2bdcb630f781e(paths relative to.github/scripts):Executed by the Listen evidence and image-only route. The route runs
listen_runtime.py reconstructand thenlisten_overlay_evidence.py(job,apply-image-only,verify-image-only), which importslisten_runtimeandlisten_helm_env_overrides. Of those, only one file changed:listen_overlay_evidence.py(+17/-1, deploy(listen): take the Listen image by digest (image_reference) (SCA-4091) #26730).produce()leaves the newimage_referencedispatch input out of the bound-inputs equality and instead requires it to be blank or exactly theimagethe evidence request names (dispatch_bindingotherwise). A newimage_pin()accepts onlygcr.io/<deploy project>/backend:<7-40 hex>or@sha256:<64 hex>and returns the tag or digest. A new--image-referenceargument is accepted only inargvmode and only without--image-tag; it feeds the samehelm_args()the deploy already used.listen_runtime.py,listen_helm_env_overrides.pyandlisten_private_env.pyare unchanged.Not executed by the Listen route (in the tree, so covered by the hash):
check-deployment-concurrency.py(SCA-4763: serialize the isolated Pusher lane on its own per-target lock #26599): the Pusher lock contract sends the isolated canary and image-only preview/promote/rollback lanes todeploy-gke-pusher-prodinstead ofprod-train, with a validator and self-test cases for those lanes.pusher_image_only.py(SCA-4763: retry a read-only Pusher admission probe on a stale snapshot #26610, deploy: rebase the Pusher image-only baseline on the live image (SCA-5204) #26710, SCA-4763: derive the isolated Pusher canary from the live workload #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;BASELINEmoves to the live digestsha256:fd5fb969…;backend/scripts/pusher_canary_from_live.pyjoinsCONTROL_PATHS.pusher_image_only_detect.py(deploy: rebase the Pusher image-only baseline on the live image (SCA-5204) #26710): the sameBASELINEdigest.pusher_image_rehearsal.py(SCA-4763: image-only provenance accepts a fresh qualification after main moves #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(SCA-4763: derive the isolated Pusher canary from the live workload #26602): docstring only.check_ui_evidence.py(ci(ui-evidence): require screenshots for rendered UI, not all client code #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(ui-author-approval: keep an approval while the PR's own UI change is the same #26655, ci(ui-approval): stop counting tests and import-only Swift as UI #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(Keep oracle-only mobile test revisions exempt from release notes #26341):app/test/spine/needs no changelog entry.check_firestore_collection_budget.py(dev-harness: keyless live transcripts with a local Parakeet service #26638): skipsbackend/.venv-eval.dead_code/backend.allowlist.json,failure_class_guard_ratchet_allowlist.json,notification_dispatch_boundary_baseline.json(SCA-5535 Episodes removal, chore(backend): remove the unused Hume emotion pipeline and its open webhook #26630): five allowlist entries removed, one failure class grandfathered, one baseline count 4 to 3.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, [SCA-2225] Add publish-only mode for the batch pipeline worker #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/scriptsis3562810cd1cfd3a0ca13f71ae0f2bdcb630f781eat54b8f17e013c, andHEAD:.github/scriptson this branch equals the pinned value.backend/tests/unit/test_listen_overlay_evidence.py: 121 passed. It includestest_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