#107087·posthog

chore(signals): turn on inbox ranking auto-promote on the prod-us dagster deployment

Author: andrewm4894Created Sep 25, 2026Updated Sep 25, 2026
Labelsself-driving

Context

The inbox ranking scoring path is now on master:

  • #106460 publishes the serving manifest from the training job (inbox_ranking_serving_manifest in products/signals/dags/inbox_ranking/training/dag.py).
  • #106765 added score_reports, and #106907 added the sweep that calls it, off by default behind INBOX_RANKING_SCORING_ENABLED.

The sweep does nothing until a serving manifest exists. The manifest asset publishes nothing without a champion (it logs no serving manifest for dt=...). No family has a champion yet, because INBOX_RANKING_AUTO_PROMOTE is unset on the prod-us Dagster deployment and defaults to False (posthog/settings/object_storage.py). Each daily training run logs INBOX_RANKING_AUTO_PROMOTE is off; the <family> candidate would have been promoted and writes no champion.json.

The setting is read only from the environment (training/dag.py, the champion step), so no run config can override it. The fix is a deployment config change in PostHog/charts, not a code change in this repo.

Change

In PostHog/charts, argocd/dagster/values/prod-us.yaml, add one entry to the Dagster env list, next to the existing INBOX_RANKING_DATASET_S3_BUCKET entry:

yaml
    # Lets the training job move a family's champion pointer when a candidate passes the
    # promotion rule. The inbox ranking serving manifest needs a champion.
    - "INBOX_RANKING_AUTO_PROMOTE=true"
  • prod-us only. dev and prod-eu do not set INBOX_RANKING_DATASET_S3_BUCKET, so the inbox ranking assets skip there and the setting has no effect.
  • Leave it on after the first promotion. decide_promotion still gates every later promotion, including INBOX_RANKING_PROMOTION_MIN_DAYS between promotions.
  • No change in this repo. Do not turn on INBOX_RANKING_SCORING_ENABLED in the same PR. That is a separate step after a manifest is confirmed.

The Dagster pods can already write to the deployment's object-storage bucket, where the manifest asset copies the served models. This was checked against the deployment and infra config, not by a live write.

Verify after deploy

On the next 06:00 UTC inbox_ranking_training_job tick (or one manual run of the latest partition):

  1. The champion step logs promote=True and <family>_promoted: true for at least the report_embeddings family, and emits the promotion event with promoted=true.
  2. inbox_ranking_serving_manifest logs published serving manifest <version> serving <key>, and the inbox_ranking_serving_manifest_published event fires.
  3. inbox_ranking/serving/manifest.json and the served model under inbox_ranking/serving/models/<key>/ exist in the object-storage bucket.

If step 2 fails with an access error, the write path needs a credential change, and the rest of this issue is still correct.

Out of scope

  • Turning on the scoring sweep (INBOX_RANKING_SCORING_ENABLED).
  • Any change to the promotion rule.