Skip to content

ops(backend): turn on #26771 settle-older for Nik's owner tag only - #26896

Merged
kodjima33 merged 1 commit into
mainfrom
ops/v3-settle-older-nik-only
Dec 1, 2026
Merged

kodjima33 merged 1 commit into
mainfrom
ops/v3-settle-older-nik-only

Conversation

@kodjima33

@kodjima33 kodjima33 commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

What turns on

#26771 (merged as 9a944f8): an older stretch of one device's synced files settles on landing behind that device's newer speech. That covers the hold, the off-page sibling lookup, settlement wakes and their task route, and has_pending's held sources. It turns on for one owner tag: Nik's account. Everyone else stays off, and there is no *.

How

  • CONVERSATIONS_V3_SETTLE_OLDER_OWNERS is bound from Secret Manager (CONVERSATIONS_V3_SETTLE_OLDER_OWNERS, version 1, pinned) on backend, backend-sync, backend-sync-backfill and backend-integration. backend-projection-pump inherits it via derive_from: backend-integration. The pump never runs a builder pass, so the binding does nothing there.
  • The owner tag is not in Git. The flag registry requires this for the key ("Owner tags never go in Git (public repo)"), and the runtime-env README requires it for uid hashes. The secret holds the single tag (sha256(uid)[:12]). The secret is created and backend-runtime@ has secretAccessor, so the revision can mount it at deploy.
  • config/deployment-setting-classification.json classifies the name as a secret. The approved-bindings test pins version 1 on those five services.

Widening is Nik's call. That means a new secret version plus a bump of the pinned version here.

Rollback (owner-scoped)

On a regression, shift traffic on backend, backend-sync, backend-sync-backfill and backend-integration back to their pre-enable revisions. Then revert this PR on main so the next deploy keeps it off. Keep secret version 1 and its backend-runtime@ grant intact while any revision references it. After an owner-only rollback, check the queue for settlement_deadline retries still pending.

Secret startup risk

Cloud Run resolves an env secretKeyRef before the container starts. A disabled or destroyed version, or a revoked grant, would block startup of every revision that references it. The binding is pinned to version 1 and has an existing secretAccessor grant. It uses the same env secretKeyRef pattern as every other secret in this manifest, for example CONVERSATIONS_V3_LIVE_RECAP_COHORT: runtime_env.yaml carries 114 other secret bindings. Operational rule: never disable or destroy v1 while a revision references it. After deploy, verify that all four services became Ready on the new revision.

During the 10% canary split, an enabled revision can enqueue a settlement_deadline task to the service URL. A flag-off incumbent returns 422 for it, and the queue retries up to 10 times with 30-300 s backoff. The 5-minute sweep still wakes pending work at least 10 minutes old. This affects only Nik's tasks, because only his owner tag enqueues settlement wakes.

cost-delta-usd-day: 0

That's one owner, and only on a full pending page: at most 32 metadata reads per pass.

Product invariants affected

  • INV-MEM-4

Failure class (fixes)

No fix: commits were detected; no declaration is required.

Verification

  • compose_runtime_env.py recomposed runtime_env.yaml.
  • backend/scripts/pre-deploy-check.sh: 710 passed.
  • make preflight (see the PR checks).

Bind CONVERSATIONS_V3_SETTLE_OLDER_OWNERS from Secret Manager (version 1,
one owner tag) on backend, backend-sync, backend-sync-backfill and
backend-integration; the projection pump inherits it from integration.
The tag stays out of the public repo, as the flag registry requires.

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

No issues found across 4 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

View guided diff | Turn on auto-fix | Re-trigger cubic

@kodjima33
kodjima33 merged commit e9beb9b into main Dec 1, 2026
81 checks passed
@kodjima33
kodjima33 deleted the ops/v3-settle-older-nik-only branch December 1, 2026 09:28
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