Skip to content

revert(dream): DREAM_AGENT_PAID_PERCENT back to 25 (revert #23208) - #23295

Merged
Git-on-my-level merged 2 commits into
mainfrom
lane/dream-revert-100pct
Oct 22, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
lane/dream-revert-100pct

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

Reverts #23208: DREAM_AGENT_PAID_PERCENT goes from '100' back to '25' in the runtime env manifest, the prod overlay and the flag registry.

Prod was rolled back to 25 by an env-only apply at 13:02Z (2026-10-22). This PR keeps main's manifest in sync, so later Cloud Run trains don't re-apply 100. Train W is blocked on it.

Why: the 12:00Z Dream sweep at 100% crashed. POST /v2/dream-agent/sweep returned 500 after 10.4 s, with google.api_core.exceptions.DeadlineExceeded: 504 in dream_scheduler.discover → initialize (a transactional get_all with a 3 s timeout). At 100% eligibility, each discovery page's transaction also writes one dream_due row per newly eligible owner. One discovery failure fails the whole sweep, so zero Dream passes ran that hour. That is a Dream ERROR, which is the agreed rollback trigger.

A follow-up PR makes discovery failures non-fatal to the sweep and bounds each discovery transaction. The re-ramp to 100% waits for that fix to serve, plus two clean sweeps.

Also: main-red test fix (separate commit)

tests/unit/test_sync_silent_failure.py::test_app_keeps_wals_retryable_on_failed_reconcile fails on main as of 800f812. ca8422b moved the SyncJobFetchOutcome.notFound reconcile switch into the wal_job_reconciliation.dart part file, but the test reads only local_wal_sync.dart. The test now reads the library plus its declared part files. App behaviour is unchanged, and the file passes locally (46 passed). It's bundled here so the revert can go green in one CI cycle; train W is blocked on it.

Verification

This is a pure git revert of the squash commit 79b1dcd: 4 files, values only. Prod already serves 25 on all four Dream services (backend-02100-9zw, backend-sync-01453-797, backend-sync-backfill-00708-wjd, backend-integration-01278-xpr), as read back from the serving revisions' env.

Product invariants affected

Failure class

Failure-Class: none

🤖 Generated with Claude Code

The 12:00Z sweep at 100% crashed in dream_scheduler.discover with Firestore
DeadlineExceeded; prod was rolled back to 25 by env apply at 13:02Z. This keeps
the manifest in sync so trains do not re-apply 100.

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

chatgpt-codex-connector Bot commented Oct 22, 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-22T13:35:47.213996Z 4efc059 New commits
ℹ️ 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.

…e check

ca8422b moved the reconcile switch into the wal_job_reconciliation.dart part
file, so the single-file source assertion failed on main. Read the library plus
its declared parts; behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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