chore(signals): turn on inbox ranking auto-promote on the prod-us dagster deployment
Context
The inbox ranking scoring path is now on master:
- #106460 publishes the serving manifest from the training job (
inbox_ranking_serving_manifestinproducts/signals/dags/inbox_ranking/training/dag.py). - #106765 added
score_reports, and #106907 added the sweep that calls it, off by default behindINBOX_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:
# 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_promotionstill gates every later promotion, includingINBOX_RANKING_PROMOTION_MIN_DAYSbetween promotions. - No change in this repo. Do not turn on
INBOX_RANKING_SCORING_ENABLEDin 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):
- The champion step logs
promote=Trueand<family>_promoted: truefor at least thereport_embeddingsfamily, and emits the promotion event withpromoted=true. inbox_ranking_serving_manifestlogspublished serving manifest <version> serving <key>, and theinbox_ranking_serving_manifest_publishedevent fires.inbox_ranking/serving/manifest.jsonand the served model underinbox_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.
Source: PostHog/posthog