Skip to content

SCA-256: gate Windows releases on live update-feed route - #10883

Merged
Git-on-my-level merged 6 commits into
mainfrom
agent/m4-mini-cursor-grok-4-5/sca-256-windows-update-feed-deploy-guard
Aug 4, 2026
Merged

Git-on-my-level merged 6 commits into
mainfrom
agent/m4-mini-cursor-grok-4-5/sca-256-windows-update-feed-deploy-guard

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 30, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Root cause of Windows auto-update breakage after v1.0.30: production is missing /v2/desktop/update-feed/windows (merged in fix(desktop-windows): scope updater feeds to Windows releases #10610) while Windows clients fail closed without it.
  • Gate desktop_windows_release.yml on a production probe of that route before tagging, so a missing backend deploy cannot mint another broken cohort.
  • Register failure class FC-ship-before-required-route and document the deploy-before-ship contract.
  • Restore --check-id support in run_checks.py and the Windows portability manifest checks that fix(ci): make Windows preflight path-safe #10825 dropped while windows-preflight-portability.yml still depends on them (fixes Native Windows process and launcher contracts).
  • Keep the Windows python-path detect bash-3.2-safe so macOS pre-push can source the harness resolver.

Closes SCA-256

Test plan

  • python3 .github/scripts/test_probe_windows_update_feed.py (8 passed)
  • python3 .github/scripts/test_run_checks.py (40 passed)
  • python3 .github/scripts/run_checks.py --lane ci --base HEAD --head HEAD --platform windows --check-id check-manifest-contract --list
  • CI green on PR SCA-256: gate Windows releases on live update-feed route #10883

Failure class

Failure-Class: new

Product invariants

None matched by path globs for this change.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: da19418fd1

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Git-on-my-level
Git-on-my-level force-pushed the agent/m4-mini-cursor-grok-4-5/sca-256-windows-update-feed-deploy-guard branch from da19418 to 1bf76fa Compare July 30, 2026 05:51
Git-on-my-level and others added 2 commits August 1, 2026 08:50
Windows builds since #10610 fail closed without /v2/desktop/update-feed/windows.
Probe production before tagging so a missing backend deploy cannot mint another
broken auto-update cohort.

Failure-Class: new
Co-authored-by: Cursor <[email protected]>
Co-authored-by: multica-agent <[email protected]>
macOS /bin/bash rejects ${var,,}, which aborted local pre-push after #10825
when sourcing the dev-harness python resolver.

Failure-Class: none
Co-authored-by: Cursor <[email protected]>
Co-authored-by: multica-agent <[email protected]>
@Git-on-my-level
Git-on-my-level force-pushed the agent/m4-mini-cursor-grok-4-5/sca-256-windows-update-feed-deploy-guard branch from 6b1ffe9 to cd997c0 Compare August 1, 2026 01:55

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cd997c08c3

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Address trusted Codex review feedback on #10883:

P1: Probe both beta AND stable channels before tagging. The backend's
default channel is 'stable' and it deliberately does not fall stable
through to beta. A beta-only probe could pass while stable 404s, shipping
a broken default cohort (fresh installs, un-toggled settings).

P2: Add workflow_dispatch input 'bypass_update_feed_probe_reason' so a
transient probe failure (broken probe, GitHub runner cannot reach
api.omi.me) does not indefinitely block Windows hotfixes. Requires a
non-empty reason tracked in the run log for audit.

Tests: python3 .github/scripts/test_probe_windows_update_feed.py (10 passed, +2)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3bd3815555

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Address trusted Codex review feedback on the break-glass bypass:

P2 (3696557682): Any nonempty value (including whitespace or an
arbitrary word) previously skipped the probe. Now require the literal
sentinel 'I ACKNOWLEDGE THE ROUTE IS REQUIRED' to be present in the
bypass_update_feed_probe_reason input. An empty or arbitrary value
runs the probe.

P2 (3696557685): The bypass reason was interpolated directly into the
bash script body, allowing command injection when the input contained
shell syntax ($(...), backticks, quotes) in a checkout with
contents:write. Bind it to the BYPASS_REASON env var and print the
quoted variable so operator-supplied audit text stays data.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9b299ec350

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Address trusted Codex review feedback (3696581197):

P2: When build-and-publish fails and is retried (re-run failed jobs),
GitHub Actions reuses the cached plan-and-tag outputs and does not
re-execute the probe that ran there. Add a re-probe step in the
build-and-publish job (after checkout, before build) so a backend
rollback between tagging and publishing cannot mint a broken cohort.

Respects the same break-glass sentinel as the plan-and-tag probe.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 393e5926e8

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Address trusted Codex review feedback (P1, 3696606779):

On windows-latest the interpreter is 'python', not 'python3', and no
Python setup existed before the re-probe step. The plan job would tag,
then build-and-publish would fail with 'python3: command not found'.
Add actions/setup-python@v6 and invoke 'python', matching the
windows-preflight-portability.yml pattern.
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Monitor review-fix pass — addressed all 6 trusted Codex threads on the Windows update-feed deploy gate.

# Pri Thread Fix
1 P2 Break-glass path for probe Added bypass_update_feed_probe_reason workflow_dispatch input
2 P1 Probe default stable channel Probe now runs --channel beta --channel stable (backend default is stable, never falls through to beta)
3 P2 Require confirmed, tracked bypass Bypass now requires the literal sentinel I ACKNOWLEDGE THE ROUTE IS REQUIRED; empty/whitespace/arbitrary text still runs the probe
4 P2 Env-bind bypass reason Reason passed via BYPASS_REASON env var + printf, not direct ${{ }} interpolation (injection-safe in a contents: write checkout)
5 P2 Re-probe on retried publish Added re-probe step in build-and-publish (after checkout, before build) — covers the case where GitHub Actions reuses cached plan-and-tag outputs on retry
6 P1 python3 not found on Windows Added actions/setup-python@v6 + invoke python (not python3), matching windows-preflight-portability.yml

Tests: python3 .github/scripts/test_probe_windows_update_feed.py — 10 passed (+2 new: multi-channel probe, stable-missing-no-fallthrough).

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Resolved all 6 Codex review threads — the code fixes from the prior pass were already live at the PR head (8cacbdd) and CI is green, but the threads had been left unresolved.

Quick re-verification against the current workflow before resolving:

  • Break-glass input + sentinel-confirmed bypass present
  • Probe runs both beta and stable (no stable→beta fallthrough)
  • Bypass reason bound via env var (printf, not direct interpolation)
  • Re-probe step in build-and-publish + actions/setup-python before it (uses python on Windows)

All checks: pass.

@Git-on-my-level
Git-on-my-level merged commit 823dd16 into main Aug 4, 2026
30 checks passed
@Git-on-my-level
Git-on-my-level deleted the agent/m4-mini-cursor-grok-4-5/sca-256-windows-update-feed-deploy-guard branch August 4, 2026 20:13
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