Skip to content

config(dream): re-ramp paid owners to 5% with concurrency 8 after the contention fix - #23065

Merged
Git-on-my-level merged 2 commits into
mainfrom
lane/dream-reramp-5pct
Oct 21, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
lane/dream-reramp-5pct

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Summary

This restarts the paid-owner Dream ramp at 5%, with Dream workers capped at 8. It changes config only, on the four Cloud Run services (backend, backend-sync, backend-sync-backfill, backend-integration):

  • DREAM_AGENT_PAID_PERCENT goes '0' → '5'.
  • DREAM_AGENT_CONCURRENCY is new and set to '8'. Without it, the derived default is 334 workers.

The first 5% sweep, at 2026-10-21 13:01Z, failed about 18 passes before their first turn. The cause was Firestore Aborted contention when many new owners hit the shared ledger and admission transactions at once. That was fixed by bounded retries in #23051 (ffabf89), which this commit contains. The sweep's handling of stale reservation evidence was fixed in #23041 (live since 15:05Z).

The lower worker cap keeps concurrent first passes small while the retries prove out in prod.

Rollback: set DREAM_AGENT_PAID_PERCENT to '0' in prod.overlay.yaml, then re-compose runtime_env.yaml and re-render the registry. Listed owners stay in, and concurrency can stay at 8.

Review

GLM-5.3 (zcode) returned SHIP-WITH-NITS:

  • The overlay value lands identically on all four services, and nothing else re-declares these keys.
  • backend-integration correctly carries the keys.
  • Rollback is a one-key change.
  • Medium (intended): 8 caps throughput at about 16 passes/h, so the 25% step must raise concurrency. That's now in the ramp plan.

Ramp plan

  • Cohorts: listed owner + 5% of paid owners, held 1 h → 25%, held 3 h → unset (all paid owners), soaked 6 h.
  • Clean metric:
    • <2 failed Dream passes/h;
    • no FirestoreContentionExhausted storm;
    • no new Dream ERROR signatures on backend-sync;
    • zero 3.8 on-demand Dream spend.
  • Concurrency per step: 8 is a global bound, shared through Redis slots across all four services. That allows about 16 passes/h, because a pass can hold its slot for up to 1740 s. The 25% step raises DREAM_AGENT_CONCURRENCY in the same config change, sized from the 5% hold's sweep candidates= and deadline= counts.
  • Expander and deadline: dazheng (Dream lane), deploying through the rollout lead. Done by 2026-10-22 12:00Z.

Verification

  • scripts/check_feature_flag_registry.py: OK (only the pre-existing allowlisted warnings).
  • backend/test.sh with a targeted list (runtime env validator, render, manifest compat, paid ramp): 146 passed.

These cover config validation only. The live check comes after deploy, from the service env readback and Dream pass metrics.

Product invariants affected

  • INV-MEM-4

Failure class

Failure-Class: none

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

Git-on-my-level and others added 2 commits October 21, 2026 22:14
… contention fix

The first 5% sweep failed on Firestore Aborted contention (fixed in #23051).
Re-ramp at 5% and cap Dream workers at 8 on all four Cloud Run services.

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

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T15:40:25.844592Z cf6d61a 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.

@Git-on-my-level
Git-on-my-level merged commit 14f02af into main Oct 21, 2026
68 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/dream-reramp-5pct branch October 21, 2026 16:05
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