Skip to content

deploy(jobstore): stage the #25630 roll with retirement off on backend-integration - #25744

Merged
Git-on-my-level merged 3 commits into
mainfrom
lane/jobstore-retirement-off
Nov 19, 2026
Merged

Git-on-my-level merged 3 commits into
mainfrom
lane/jobstore-retirement-off

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

Stage the #25630 roll with jobstore copy retirement off. This sets JOBSTORE_RETIREMENT_ENABLED=off on the backend-integration Cloud Run service only. That is the one prod service where retirement ticks run (BATCH_PIPELINE_SERVING_ENABLED=true).

Why: #25630 (merged f159cce) adds the jobstore PG target env to all four Cloud Run services. With the target set, retirement defaults on, so a roll before migration 0010 would tick schema_missing on backend-integration. lead2 holds the roll (b592a8) and ruled this staging delta (a392ec). It lets the roll carry no retirement work. Release applies and reads back 0010 inside the canary. A separate later config step removes this line.

Unchanged: the PG target, mode firestore, mirror off, and erasure. purge_jobstore_owner still reaches the target, because erasure does not read this switch.

Rendered role-env diff (prod, render_backend_runtime_env.py --env prod, origin/main 7c7b491 vs this head)

backend_integration_env_vars
+ JOBSTORE_RETIREMENT_ENABLED=off

No other service, secret, flag or identity output changes. The entry uses category: ops_kill, matching the flag's lifecycle.

Staging composes the prod overlay before its own, so the staging overlay pins JOBSTORE_RETIREMENT_ENABLED: 'on' in env_all. Staging keeps its current default behavior (panel review-20261119t021451-a721 F2).

Rollback

Revert this PR, or delete the one overlay line. Retirement then returns to default on.

Product invariants affected

  • INV-MEM-4: path match only (runtime_env.yaml). The change adds one jobstore retirement switch on backend-integration and touches no memory intake, promotion or projection behavior.

Checks

  • compose_runtime_env.py --check: up to date. check_runtime_env_compose.sh: OK.
  • check_feature_flag_registry.py: OK (registry re-rendered).
  • Deploy contract: test_prod_retirement_stays_off_on_the_serving_leader_until_0010_readback pins the staged value (delete it with the overlay line).
  • Unit tests: 961 passed, 3 skipped across 22 files, including staging and compose. Files include: render_backend_runtime_env, check_cloud_run_env_drift, runtime_env_sources, runtime_env_manifest_compat, backend_runtime_env_validator, jobstore_retirement{,_cursor,_deploy}, cross_service_deploy_contract, jobstore_production_copy, jobstore_shadow_seams.

Not a roll GO. Release on SCA-2283 admits the runtime.

🤖 Generated with Claude Code

…d-integration

Sets JOBSTORE_RETIREMENT_ENABLED=off on backend-integration only, so the
roll carries no copy-retirement ticks before migration 0010 is read back
(lead2 a392ec). Target, mode, mirror and erasure unchanged. Re-enable by
deleting the overlay line in a separate config step.

Failure-Class: none

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-19T02:14:38.249313Z
We couldn’t complete this review. Comment @codex review to try again.
2aee0a2 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Git-on-my-level and others added 2 commits November 19, 2026 09:31
…s_kill

Staging composes the prod overlay first, so pin JOBSTORE_RETIREMENT_ENABLED
'on' in staging env_all to keep its current default. Use category ops_kill
to match the flag lifecycle (panel review-20261119t021451-a721 F2, F4).

Failure-Class: none

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Panel review-20261119t021451-a721 F1 (resolver accept): fail if the staged
off is dropped or spread before the 0010 readback. Remove with the line.

Failure-Class: none

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit d5329c7 into main Nov 19, 2026
65 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/jobstore-retirement-off branch November 19, 2026 03:16
Git-on-my-level added a commit that referenced this pull request Nov 19, 2026
… so trains from main are clean (#25778)

## What

Reverts two merged, not-yet-serving changes:
- #25744 `deploy(jobstore): stage the #25630 roll with retirement off on
backend-integration`
- #25630 jobstore retained-copy retirement, migration
`0010_retirement_cursor.sql`, and the Postgres target env on all four
Cloud Run services and the listen and worker charts

Both are plain `git revert -m 1` of the merge commits (`d5329c70597d`,
`f159cceccac0`). They applied with no conflicts, and no reference to the
removed modules, env keys or migration remains on the branch.

One deliberate deviation from a pure revert (commit `214a8955`): the
`prod-jobs` private address `172.25.29.2/32` stays in the staging
isolation fence (`PROD_NETWORKS`) with its regression cases. The
instance still exists and staging still configures the job-store shadow
path, so staging must keep refusing that address. Found by the panel
review.

## Why

David paused the Postgres job-store port on 2026-11-19 (Multica
SCA-1959). With #25630 on main, every Cloud Run train from main adds the
`JOBSTORE_*` target env. That makes account and conversation erasure
connect to the idle `prod-jobs` instance before `finish_privacy_purge`,
so a Postgres outage would make purges raise and retry, for no benefit
while the port is paused. lead2 holds all trains for that reason
(b592a8), which also blocks the conversations v3 Cloud Run trains.

After this revert, the files these two PRs touched carry no jobstore
target env, and a train from main no longer changes erasure.

## Risk and rollback

- Nothing here is serving, so no running behaviour changes. Serving is
still the `a6824b8` revisions.
- Migration 0010 was never applied in prod (ledger is 1..8) and the copy
tables were empty at the last count (2026-11-19 01:15:53Z), so no data
depends on the removed code.
- Rollback: revert this PR.

## Product invariants affected

- INV-MEM-4: the change set touches a path under this invariant's globs
only because it restores that file to its pre-#25630 content. No
memory-promotion behaviour changes.

## Verification

- CI green on `214a8955` (64 checks, 0 failed).
- Panel reviews `review-20261119t104759-a779` (one major, fixed) and
`review-20261119t112157-f094` (minor and nit findings, triaged).

- Pre-push preflight on this branch.
- `git grep` for `retirement_cursor`, `jobstore.retirement`,
`JOBSTORE_RETIREMENT`, `0010_retirement`, `JOBSTORE_PG_HOST` in prod
overlays and charts: no matches.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Git-on-my-level added a commit to Git-on-my-level/omi that referenced this pull request Nov 19, 2026
…irement off on backend-integration (BasedHardware#25744)"

This reverts commit d5329c7, reversing
changes made to 1bdf17c.
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