Skip to content

docs: correct the backend deploy command in AGENTS.md and name the desktop-backend workflow - #12660

Merged
Git-on-my-level merged 1 commit into
mainfrom
agent/docs-backend-deploy-command
Sep 3, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
agent/docs-backend-deploy-command

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

What changed and why

AGENTS.md documented gh workflow run gcp_backend.yml -f environment=prod -f branch=main. There is no branch input (the API returns 422). Following that text on 2026-08-18 caused an unintended production deploy of the wrong service.

The real gcp_backend.yml workflow_dispatch inputs are environment, release_sha, release_version, mode, deploy_targets, and related hatches. A prod deploy needs a release_sha whose Release Eligibility push run succeeded on the first attempt. That workflow deploys only the main backend stack. desktop-backend has its own desktop_backend_prod.yml, which requires release_sha, typed confirmation deploy-desktop-backend-prod, and a reason.

Product invariants affected

none

How it was verified

Read .github/workflows/gcp_backend.yml workflow_dispatch inputs and .github/workflows/desktop_backend_prod.yml (release_sha, confirm, reason, --require-first-attempt). Confirmed there is no branch input. 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

Review in cubic

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]>

@cubic-dev-ai cubic-dev-ai 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.

1 issue found across 1 file

Confidence score: 4/5

  • AGENTS.md documents a first-attempt Release Eligibility requirement for the production release_sha, but gcp_backend.yml does not enforce it when invoking verify_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

Comment thread AGENTS.md

- 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).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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>
Suggested change
- 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).

@Git-on-my-level
Git-on-my-level merged commit 5781f90 into main Sep 3, 2026
31 checks passed
@Git-on-my-level
Git-on-my-level deleted the agent/docs-backend-deploy-command branch September 3, 2026 07:38
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