Repository navigation
docs: correct the backend deploy command in AGENTS.md and name the desktop-backend workflow - #12660
Conversation
gcp_backend.yml has no branch input, so the documented `environment=prod -f branch=main` command 422s and was followed into the wrong production service. Document release_sha, first-attempt eligibility, and that desktop-backend is desktop_backend_prod.yml. Co-Authored-By: cursor grok-4.6 <[email protected]> Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
1 issue found across 1 file
Confidence score: 4/5
AGENTS.mddocuments a first-attempt Release Eligibility requirement for the productionrelease_sha, butgcp_backend.ymldoes not enforce it when invokingverify_backend_release_admission.py; operators could rely on a safeguard that is not actually applied. Align the workflow enforcement with the documentation, or correct the documented requirement.
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="AGENTS.md">
<violation number="1" location="AGENTS.md:133">
P2: The doc claims `gcp_backend.yml` prod `release_sha` needs a first-attempt Release Eligibility run, but the workflow does not enforce that. `gcp_backend.yml` calls `verify_backend_release_admission.py` without `--require-first-attempt`, so any successful Release Eligibility push-run on the SHA is admitted. First-attempt is enforced only by `desktop_backend_prod.yml`, which passes `--require-first-attempt`. Since this PR's goal is accurate operator deploy guidance, state that `gcp_backend.yml` needs a successful Release Eligibility run and reserve the first-attempt requirement for desktop-backend.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
|
||
| - Desktop (hourly candidate → signed-smoke Beta → manual Stable): `desktop/macos/AGENTS.md` → Release Pipeline. | ||
| - Backend: `gh workflow run gcp_backend.yml -f environment=prod -f branch=main`. Runtime env contract: `backend/AGENTS.md` → Service Map. | ||
| - Backend: `gcp_backend.yml` is main stack (`environment`, `release_sha`, `release_version`, `mode`, `deploy_targets`; no `branch`). Prod `release_sha` needs first-attempt Release Eligibility. desktop-backend: `desktop_backend_prod.yml` (`release_sha`, confirm `deploy-desktop-backend-prod`, reason). |
There was a problem hiding this comment.
P2: The doc claims gcp_backend.yml prod release_sha needs a first-attempt Release Eligibility run, but the workflow does not enforce that. gcp_backend.yml calls verify_backend_release_admission.py without --require-first-attempt, so any successful Release Eligibility push-run on the SHA is admitted. First-attempt is enforced only by desktop_backend_prod.yml, which passes --require-first-attempt. Since this PR's goal is accurate operator deploy guidance, state that gcp_backend.yml needs a successful Release Eligibility run and reserve the first-attempt requirement for desktop-backend.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At AGENTS.md, line 133:
<comment>The doc claims `gcp_backend.yml` prod `release_sha` needs a first-attempt Release Eligibility run, but the workflow does not enforce that. `gcp_backend.yml` calls `verify_backend_release_admission.py` without `--require-first-attempt`, so any successful Release Eligibility push-run on the SHA is admitted. First-attempt is enforced only by `desktop_backend_prod.yml`, which passes `--require-first-attempt`. Since this PR's goal is accurate operator deploy guidance, state that `gcp_backend.yml` needs a successful Release Eligibility run and reserve the first-attempt requirement for desktop-backend.</comment>
<file context>
@@ -130,7 +130,7 @@ Click at coordinates: `cliclick c:X,Y`. Mac screenshots: `screencapture -x /tmp/
- Desktop (hourly candidate → signed-smoke Beta → manual Stable): `desktop/macos/AGENTS.md` → Release Pipeline.
-- Backend: `gh workflow run gcp_backend.yml -f environment=prod -f branch=main`. Runtime env contract: `backend/AGENTS.md` → Service Map.
+- Backend: `gcp_backend.yml` is main stack (`environment`, `release_sha`, `release_version`, `mode`, `deploy_targets`; no `branch`). Prod `release_sha` needs first-attempt Release Eligibility. desktop-backend: `desktop_backend_prod.yml` (`release_sha`, confirm `deploy-desktop-backend-prod`, reason).
- Firmware (Omi CV1): `omi/firmware/AGENTS.md`.
</file context>
| - Backend: `gcp_backend.yml` is main stack (`environment`, `release_sha`, `release_version`, `mode`, `deploy_targets`; no `branch`). Prod `release_sha` needs first-attempt Release Eligibility. desktop-backend: `desktop_backend_prod.yml` (`release_sha`, confirm `deploy-desktop-backend-prod`, reason). | |
| - Backend: `gcp_backend.yml` is main stack (`environment`, `release_sha`, `release_version`, `mode`, `deploy_targets`; no `branch`). Prod `release_sha` needs a successful Release Eligibility push-run. desktop-backend: `desktop_backend_prod.yml` (`release_sha`, confirm `deploy-desktop-backend-prod`, reason; first-attempt proof). |
What changed and why
AGENTS.mddocumentedgh workflow run gcp_backend.yml -f environment=prod -f branch=main. There is nobranchinput (the API returns 422). Following that text on 2026-08-18 caused an unintended production deploy of the wrong service.The real
gcp_backend.ymlworkflow_dispatchinputs areenvironment,release_sha,release_version,mode,deploy_targets, and related hatches. A prod deploy needs arelease_shawhose Release Eligibility push run succeeded on the first attempt. That workflow deploys only the main backend stack. desktop-backend has its owndesktop_backend_prod.yml, which requiresrelease_sha, typed confirmationdeploy-desktop-backend-prod, and a reason.Product invariants affected
none
How it was verified
Read
.github/workflows/gcp_backend.ymlworkflow_dispatchinputs and.github/workflows/desktop_backend_prod.yml(release_sha,confirm,reason,--require-first-attempt). Confirmed there is nobranchinput.python3 .github/scripts/check_agents_md_lean.py→ok: 10 AGENTS.md files within budget(root file 152 lines / 18000 bytes).Did not dispatch either workflow.
Tests
No test change: this is a docs correction of the operator command in
AGENTS.md. The workflows already enforce the contract.Failure class (fixes)
Failure-Class: none