:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(signals): snapshot title-only report embeddings in the ranking dataset (#102150)
posthog[bot]4c8ba505b6ce
diff --git a/posthog/dags/locations/signals.py b/posthog/dags/locations/signals.pyindex 11f78abdd8c7..d64d1b660043 100644--- a/posthog/dags/locations/signals.py+++ b/posthog/dags/locations/signals.py@@ -17,6 +17,7 @@ if is_inbox_ranking_registered():inbox_ranking_dataset.inbox_signal_embeddings,inbox_ranking_dataset.inbox_report_labels,inbox_ranking_dataset.inbox_report_model_data,+ inbox_ranking_dataset.inbox_report_title_embeddings,inbox_ranking_training.inbox_ranking_training_examples,inbox_ranking_training.inbox_ranking_model_candidate,inbox_ranking_training.inbox_ranking_model_champion,diff --git a/products/signals/dags/inbox_ranking/AGENTS.md b/products/signals/dags/inbox_ranking/AGENTS.mdindex d50b00ab6095..3456c72c414b 100644--- a/products/signals/dags/inbox_ranking/AGENTS.md+++ b/products/signals/dags/inbox_ranking/AGENTS.md@@ -5,6 +5,7 @@ Read `README.md` first for what the dataset is and how partitions behave. This f## Extending- A new ranking dag (training, eval, ...) is a **sibling subpackage** (`inbox_ranking/<name>/dag.py`) importing shared plumbing from `common.py` — don't grow `dataset/` sideways and don't duplicate the S3/partition helpers.+- `inbox_report_title_embeddings` is a **leaf**: never add it to `inbox_report_model_data`'s `deps` or give that join a title column, or a failure in the title snapshot fails the training table. Its own `deps=[MODEL_DATA_TABLE]` exists for memory, not data — two full sets of 1536-float vectors must not be held at once in the run pod. Raising the pod memory limit is not the first resort.- Register new jobs/schedules in `posthog/dags/locations/signals.py`, keep the EU gate (`is_inbox_ranking_registered()`), and remember the ci-dagster paths filter must cover every module a dag file imports (`uv run .github/scripts/check-dagster-paths.py`).## Training dag specificsdiff --git a/products/signals/dags/inbox_ranking/README.md b/products/signals/dags/inbox_ranking/README.mdindex f5836d11f109..5ec25b00194f 100644--- a/products/signals/dags/inbox_ranking/README.md+++ b/products/signals/dags/inbox_ranking/README.md@@ -26,7 +26,7 @@ Registered via `posthog/dags/locations/signals.py` (US only) and loaded locally## The dataset dag-`inbox_ranking_dataset_job` runs daily at 02:30 UTC (schedule default: running on prod US, stopped everywhere else — including hosted DEV and E2E, which have no dogfood project to read labels from) and builds five assets on one daily partition, each a Parquet object in S3:+`inbox_ranking_dataset_job` runs daily at 02:30 UTC (schedule default: running on prod US, stopped everywhere else — including hosted DEV and E2E, which have no dogfood project to read labels from) and builds six assets on one daily partition, each a Parquet object in S3:```texts3://<bucket>/<prefix>/@@ -36,18 +36,22 @@ s3://<bucket>/<prefix>/├── inbox_report_model_data/v1/│ ├── dt=YYYY-MM-DD/ # materialized join of the three (the training table)│ └── latest/ # rewritten by the newest partition; warehouse tables point here-└── inbox_signal_embeddings/v1/dt=YYYY-MM-DD/ # one row per signal emitted during the day (signal grain)+├── inbox_signal_embeddings/v1/dt=YYYY-MM-DD/ # one row per signal emitted during the day (signal grain)+└── inbox_report_title_embeddings/v1/dt=YYYY-MM-DD/ # the same shape, for the title-only rendering```The first four are report grain and land in one table. `inbox_signal_embeddings` is signal grain, feeds the group-level model, and is read on its own — training joins it to `inbox_report_model_data` by `report_id`.+`inbox_report_title_embeddings` is a report-grain leaf. It snapshots the `title_v1` rendering the same way `inbox_report_embeddings` snapshots `title_summary_v1`, and nothing joins it: the training side pairs the two by `report_id` when it measures one rendering against the other, and each carries its own `embedding_inserted_at`, because a summary-only edit re-emits only `title_summary_v1`. Its dependency on `inbox_report_model_data` is for ordering, not data — it holds a vector per live report, so it runs last and alone in the run pod. That edge has a cost: a failed join, or a run that hits the job's runtime cap, skips the title snapshot for the day, and the schedule never revisits a day. Repair such a gap with a single-asset backfill while the source rows are inside their 3-month TTL.+### Partition semantics- Partition `dt=D` snapshots the eligible report inventory (promoted before `D+1 00:00 UTC`, or referenced by any label event before it). Every label aggregate is bounded `event_time < D+1 00:00 UTC`.- Label columns are **cumulative**: later partitions strictly dominate earlier ones, so training reads features from `dt=D` and labels from any later partition, choosing the label-maturity window at read time. Late labels are never backfilled into old partitions.- `latest/` advances **monotonically**: each write stamps a `snapshot-date` in S3 object metadata, and a partition rewrites `latest/` only when it is at or ahead of what `latest/` holds. Delayed retries of the newest day repair it; backfills of older days never clobber it.- Rows for reports **outside this dag's region** are label-only: no Postgres state, no embedding, and `report_team_id` null (a US team id and an EU team id of the same number are different teams, so the label stream's id can't be merged in). `status_event_team_id` carries the team the transition itself reported, which is the tenant attribution those rows do have.-- **Backfills are not fully point-in-time**: labels are exact for any past day, embeddings are exact within the source table's 3-month TTL, but report state is read from Postgres as of the run (`features_observed_at` flags this per row).+- **Backfills are not fully point-in-time**: labels are exact for any past day, embeddings are exact within the source table's 3-month TTL, but report state is read from Postgres as of the run (`features_observed_at` flags this per row). The title snapshot has the same guarantee and the same limit as the report snapshot, through the same `inserted_at < snapshot_end` bound.+- **The `inserted_at` bound does not cover a re-embedded rendering.** The source replaces on a key that includes the rendering and the document id, so a partition rebuilt _later_ for an earlier day finds only the newer row, whose `inserted_at` is past the cutoff, and the report reads as having no vector that day. That loses coverage and never leaks a future vector. A forward run carries the same loss over a shorter window: the schedule fires at 02:30 UTC for the previous day, so the query starts at least 2.5 hours after the cutoff, and the title snapshot runs after the join, which makes its window the wider of the two. A partition before `title_v1` emission shipped holds zero rows, which is written as an empty Parquet with the full schema rather than skipped.- Report-state mutability reaches **inclusion**, not just feature values: `promoted_at` is cleared on suppression and snooze, so a report promoted before the cutoff and suppressed after it leaves the spine unless a label event referenced it before the cutoff. Forward runs see this only for the 2.5 hours between the cutoff and the schedule; backfills see the full accumulated effect. Deriving the spine from immutable promotion history (`signal_report_status_changed` carries `promoted_at`) is the v2 fix.### Signal-grain partitions@@ -129,7 +133,7 @@ The training job is S3-only, so it can run on a laptop against copies of the proINBOX_RANKING_READER_SECRET_ID=<secret id> products/signals/dags/inbox_ranking/bin/sync_snapshots_local.sh```- This copies `inbox_report_state/v1/dt=*` and `inbox_report_labels/v1/dt=*` to `~/.cache/posthog/inbox_ranking/` and from there into `s3://posthog/inbox_ranking/` on SeaweedFS (`localhost:19000`). `INBOX_RANKING_SYNC_EMBEDDINGS=1` adds `inbox_report_embeddings`, which the `report_embeddings` family needs; it is off by default because that table carries a vector per live report per partition. Without it the job still runs, and that family builds no examples. It prints the partition days present in both tables; pick the **newest** of those as the partition to run. The examples asset reads the `INBOX_RANKING_TRAINING_LOOKBACK_DAYS` snapshots behind the partition it runs for, so an early day has little history behind it and trains on almost nothing. Re-runs only move new days.+ This copies `inbox_report_state/v1/dt=*` and `inbox_report_labels/v1/dt=*` to `~/.cache/posthog/inbox_ranking/` and from there into `s3://posthog/inbox_ranking/` on SeaweedFS (`localhost:19000`). `INBOX_RANKING_SYNC_EMBEDDINGS=1` adds `inbox_report_embeddings`, which the `report_embeddings` family needs; it is off by default because that table carries a vector per live report per partition. Without it the job still runs, and that family builds no examples. `INBOX_RANKING_SYNC_TITLE_EMBEDDINGS=1` adds `inbox_report_title_embeddings` on its own switch, for the same reason. It prints the partition days present in both tables; pick the **newest** of those as the partition to run. The examples asset reads the `INBOX_RANKING_TRAINING_LOOKBACK_DAYS` snapshots behind the partition it runs for, so an early day has little history behind it and trains on almost nothing. Re-runs only move new days.Note that the dev stack's object storage accepts unsigned requests and publishes port 19000 on every host interface, so anything synced here (and the disk cache) is readable by whoever can reach your machine. The snapshots are internal dogfood telemetry, not customer data, but run the sync on a network you trust.diff --git a/products/signals/dags/inbox_ranking/bin/sync_snapshots_local.sh b/products/signals/dags/inbox_ranking/bin/sync_snapshots_local.shindex 5fb8812e29c8..0cb204ebfe34 100755--- a/products/signals/dags/inbox_ranking/bin/sync_snapshots_local.sh+++ b/products/signals/dags/inbox_ranking/bin/sync_snapshots_local.sh@@ -10,6 +10,10 @@# two together. Without it the training job still runs: the family finds no vector for any report# and builds no examples, and every other family is unaffected.#+# INBOX_RANKING_SYNC_TITLE_EMBEDDINGS=1 copies inbox_report_title_embeddings, the title-only+# vectors of the same reports. It is a separate switch for the same reason: each table is a vector+# per live report per partition, and a local loop usually wants one of them.+## Two hops: prod S3 -> a disk cache -> the local object-storage bucket. The disk copy is what# makes a re-sync cheap (aws s3 sync only moves new partitions) and doubles as input for# notebooks. Only the dt= partitions the training job reads are copied; latest/ is skipped.@@ -36,6 +40,9 @@ TABLES=(inbox_report_state inbox_report_labels)if [ -n "${INBOX_RANKING_SYNC_EMBEDDINGS:-}" ]; thenTABLES+=(inbox_report_embeddings)fi+if [ -n "${INBOX_RANKING_SYNC_TITLE_EMBEDDINGS:-}" ]; then+ TABLES+=(inbox_report_title_embeddings)+fiif [ -z "${INBOX_RANKING_READER_SECRET_ID:-}" ]; thenecho "Set INBOX_RANKING_READER_SECRET_ID to the Secrets Manager id of the dataset reader credential." >&2diff --git a/products/signals/dags/inbox_ranking/dataset/dag.py b/products/signals/dags/inbox_ranking/dataset/dag.pyindex 86ea6fe88005..7376f2f5c46f 100644--- a/products/signals/dags/inbox_ranking/dataset/dag.py+++ b/products/signals/dags/inbox_ranking/dataset/dag.py@@ -1,15 +1,18 @@"""Daily modeling dataset for the Self-driving Inbox report-ranking model.-Five assets on one daily partition, each writing Parquet under the configured S3 prefix:+Six assets on one daily partition, each writing Parquet under the configured S3 prefix:- inbox_report_state/v1/dt=D/ Postgres spine + report state + tabular features- inbox_report_embeddings/v1/dt=D/ report_id -> small-1536 vector as of snapshot end- inbox_report_labels/v1/dt=D/ cumulative label columns from the dogfood project's events- inbox_report_model_data/v1/dt=D/ materialized join of the three, plus a rewritten latest/- inbox_signal_embeddings/v1/dt=D/ one row per signal emission during D, for the group-level model+ inbox_report_state/v1/dt=D/ Postgres spine + report state + tabular features+ inbox_report_embeddings/v1/dt=D/ report_id -> small-1536 vector as of snapshot end+ inbox_report_labels/v1/dt=D/ cumulative label columns from the dogfood project's events+ inbox_report_model_data/v1/dt=D/ materialized join of the three, plus a rewritten latest/+ inbox_signal_embeddings/v1/dt=D/ one row per signal emission during D, for the group-level model+ inbox_report_title_embeddings/v1/dt=D/ the same shape, for the title-only rendering-The first four are report grain and feed one table; the fifth is signal grain and is read on its-own, joined to the others by report_id at training time.+The first four are report grain and feed one table. inbox_signal_embeddings is signal grain and is+read on its own, joined to the others by report_id at training time. inbox_report_title_embeddings+is a report-grain leaf: nothing joins it, and the training side pairs it to inbox_report_embeddings+by report_id when it measures one rendering against the other.Partition dt=D is a full snapshot of the eligible report inventory (promoted or ever-labeled),with every label aggregate bounded `event_time < D+1 00:00 UTC`. Label columns are cumulative,@@ -19,7 +22,14 @@ are never backfilled into old partitions.Point-in-time caveats, per source:- labels are fully point-in-time for any past day (explicit event-time bound);-- embeddings are point-in-time within the underlying table's 3-month TTL (inserted_at bound);+- embeddings are point-in-time within the underlying table's 3-month TTL (inserted_at bound), and+ the title snapshot carries the same guarantee and the same limit. The bound does not cover a+ re-embedded rendering: the source replaces on a key that includes the rendering and the document+ id, so a partition rebuilt later for an earlier day sees only the newer row, whose inserted_at is+ past the cutoff, and the report reads as having no vector that day. That loses coverage and never+ leaks a future vector. A forward run carries the same loss over a shorter window: the schedule+ fires at 02:30 UTC for the previous day, so the query starts at least 2.5 hours after the cutoff,+ and the title snapshot runs after the join, which makes its window the wider of the two;- signal embeddings are exact for any past day within that same TTL, which is measured from signalevent time — a day whose signals have since aged out cannot be rebuilt, and the asset refuses tooverwrite a partition with fewer rows rather than quietly shrink it;@@ -51,6 +61,7 @@ from products.signals.backend.models import SignalReport, SignalReportArtefactfrom products.signals.backend.report_embeddings import (EMBEDDING_DOCUMENT_TYPE,EMBEDDING_PRODUCT,+ EMBEDDING_RENDERING_TITLE,EMBEDDING_RENDERING_TITLE_SUMMARY,)from products.signals.backend.signal_metadata import (@@ -110,6 +121,7 @@ BORN_VISIBLE_STATUSES = (STATE_TABLE = "inbox_report_state"EMBEDDINGS_TABLE = "inbox_report_embeddings"+TITLE_EMBEDDINGS_TABLE = "inbox_report_title_embeddings"LABELS_TABLE = "inbox_report_labels"MODEL_DATA_TABLE = "inbox_report_model_data"SIGNAL_EMBEDDINGS_TABLE = "inbox_signal_embeddings"@@ -497,11 +509,13 @@ def inbox_report_state(context: dagster.AssetExecutionContext) -> None:)[email protected](name=EMBEDDINGS_TABLE, **COMMON_ASSET_KWARGS)-def inbox_report_embeddings(context: dagster.AssetExecutionContext) -> None:+def _snapshot_report_embeddings(+ context: dagster.AssetExecutionContext, table: str, rendering: str, query_type: str+) -> None:+ """Point-in-time snapshot of one embedding rendering, shared by the report and title assets."""if skip_unconfigured(context):return- _tag_dagster_queries(context, query_type="inbox_ranking_report_embeddings")+ _tag_dagster_queries(context, query_type=query_type)partition_key = context.partition_key_, snapshot_end = snapshot_bounds(partition_key)snapshot_date = datetime.date.fromisoformat(partition_key)@@ -513,9 +527,7 @@ def inbox_report_embeddings(context: dagster.AssetExecutionContext) -> None:{"product": EMBEDDING_PRODUCT,"document_type": EMBEDDING_DOCUMENT_TYPE,- # One rendering per snapshot. The title-only rendering is emitted too, and gets its- # own snapshot when the model is ready to compare the two.- "rendering": EMBEDDING_RENDERING_TITLE_SUMMARY,+ "rendering": rendering,"snapshot_end": snapshot_end.replace(tzinfo=None),},settings=REPORT_EMBEDDINGS_QUERY_SETTINGS,@@ -548,22 +560,24 @@ def inbox_report_embeddings(context: dagster.AssetExecutionContext) -> None:tombstone_flags.append(bool(is_tombstone))del results- table = pa.Table.from_pydict(+ # An empty result still writes an object: a backfilled day from before the rendering was+ # emitted must read as "present, zero rows" rather than as a missing partition.+ arrow_table = pa.Table.from_pydict({"snapshot_date": [snapshot_date] * row_count,"report_id": report_ids,"report_team_id": team_ids,"embedding_small": embeddings,"embedding_inserted_at": inserted_ats,- "embedding_rendering": [EMBEDDING_RENDERING_TITLE_SUMMARY] * row_count,+ "embedding_rendering": [rendering] * row_count,"is_tombstone": tombstone_flags,},schema=EMBEDDINGS_SCHEMA,)bucket = dataset_bucket()- key = partition_object_key(settings.INBOX_RANKING_DATASET_S3_PREFIX, EMBEDDINGS_TABLE, partition_key)- write_parquet(s3_client(), bucket, key, table)+ key = partition_object_key(settings.INBOX_RANKING_DATASET_S3_PREFIX, table, partition_key)+ write_parquet(s3_client(), bucket, key, arrow_table)context.add_output_metadata({"rows": dagster.MetadataValue.int(row_count),@@ -573,6 +587,38 @@ def inbox_report_embeddings(context: dagster.AssetExecutionContext) -> None:)[email protected](name=EMBEDDINGS_TABLE, **COMMON_ASSET_KWARGS)+def inbox_report_embeddings(context: dagster.AssetExecutionContext) -> None:+ _snapshot_report_embeddings(+ context,+ EMBEDDINGS_TABLE,+ EMBEDDING_RENDERING_TITLE_SUMMARY,+ query_type="inbox_ranking_report_embeddings",+ )+++ name=TITLE_EMBEDDINGS_TABLE,+ # Ordering only, not data: the title snapshot is a leaf that nothing joins. It holds a vector+ # per live report, the same width as inbox_report_embeddings, and inbox_report_model_data holds+ # a full set of vectors while it joins. Running last keeps those peaks apart in the one run pod.+ # The cost of the edge: a failed join, or a run that hits the job's runtime cap, skips this+ # asset for the day, and the schedule never revisits a day. A single-asset backfill inside the+ # source TTL repairs the gap.+ deps=[MODEL_DATA_TABLE],+ **COMMON_ASSET_KWARGS,+)+def inbox_report_title_embeddings(context: dagster.AssetExecutionContext) -> None:+ """The title-only rendering of the same reports, so a later family can measure the title+ against the title-plus-summary vectors on identical rows."""+ _snapshot_report_embeddings(+ context,+ TITLE_EMBEDDINGS_TABLE,+ EMBEDDING_RENDERING_TITLE,+ query_type="inbox_ranking_report_title_embeddings",+ )++@dagster.asset(name=SIGNAL_EMBEDDINGS_TABLE, **COMMON_ASSET_KWARGS)def inbox_signal_embeddings(context: dagster.AssetExecutionContext) -> None:"""One row per signal emission in the partition day, for the group-level model.@@ -897,7 +943,14 @@ def inbox_report_model_data(context: dagster.AssetExecutionContext) -> None:inbox_ranking_dataset_job = dagster.define_asset_job(name="inbox_ranking_dataset_job",- selection=[STATE_TABLE, EMBEDDINGS_TABLE, SIGNAL_EMBEDDINGS_TABLE, LABELS_TABLE, MODEL_DATA_TABLE],+ selection=[+ STATE_TABLE,+ EMBEDDINGS_TABLE,+ SIGNAL_EMBEDDINGS_TABLE,+ LABELS_TABLE,+ MODEL_DATA_TABLE,+ TITLE_EMBEDDINGS_TABLE,+ ],partitions_def=partition_def,# The seven label streams run sequentially and each may take its full 600s query timeout, so an# hour left a slow-but-valid pass no room for the join, the S3 writes, or an asset retry — anddiff --git a/products/signals/dags/inbox_ranking/tests/test_dataset.py b/products/signals/dags/inbox_ranking/tests/test_dataset.pyindex a5789e5bfb45..c5a564c130a8 100644--- a/products/signals/dags/inbox_ranking/tests/test_dataset.py+++ b/products/signals/dags/inbox_ranking/tests/test_dataset.py@@ -4,13 +4,17 @@ from typing import Anyimport pytestfrom posthog.test.base import BaseTest, ClickhouseTestMixin, _create_event+import dagsterimport pyarrow as pafrom parameterized import parameterizedfrom products.event_definitions.backend.models.property_definition import PropertyDefinitionfrom products.signals.backend.models import SignalReport+from products.signals.backend.report_embeddings import EMBEDDING_RENDERING_TITLE, EMBEDDING_RENDERING_TITLE_SUMMARYfrom products.signals.dags.inbox_ranking import common+from products.signals.dags.inbox_ranking.dataset import dagfrom products.signals.dags.inbox_ranking.dataset.dag import (+ EMBEDDINGS_SCHEMA,LABELS_SCHEMA,MODEL_DATA_SCHEMA,assemble_model_rows,@@ -531,3 +535,74 @@ class TestStatusStream(ClickhouseTestMixin, BaseTest):row = self._status_row()assert row["wrong_dismissal_count"] == (0 if row["status_event_team_id"] == self.team.id else 1)+++def _run_embeddings_asset(monkeypatch, asset, rows):+ """Run one embeddings asset against a stubbed ClickHouse and S3, and return what it wrote."""+ captured: dict[str, Any] = {}++ def fake_sync_execute(sql, params, **kwargs):+ captured["params"] = params+ return rows++ def fake_write_parquet(client, bucket, key, table, **kwargs):+ captured["key"] = key+ captured["table"] = table++ monkeypatch.setattr(dag, "sync_execute", fake_sync_execute)+ monkeypatch.setattr(dag, "write_parquet", fake_write_parquet)+ monkeypatch.setattr(dag, "skip_unconfigured", lambda context: False)+ monkeypatch.setattr(dag, "_tag_dagster_queries", lambda context, query_type: None)+ monkeypatch.setattr(dag, "dataset_bucket", lambda: "test-bucket")+ monkeypatch.setattr(dag, "s3_client", lambda: None)+ monkeypatch.setattr(dag.settings, "INBOX_RANKING_DATASET_S3_PREFIX", "inbox_ranking")++ context = dagster.build_asset_context(partition_key=SNAPSHOT_DATE.isoformat())+ asset(context)+ return captured+++ "asset,table,rendering",+ [+ (dag.inbox_report_embeddings, "inbox_report_embeddings", EMBEDDING_RENDERING_TITLE_SUMMARY),+ (dag.inbox_report_title_embeddings, "inbox_report_title_embeddings", EMBEDDING_RENDERING_TITLE),+ ],+)+def test_each_embeddings_asset_snapshots_its_own_rendering(monkeypatch, asset, table, rendering):+ written = _run_embeddings_asset(monkeypatch, asset, [(2, UUID_A, [0.5, 0.25], False, T1)])++ assert written["params"]["rendering"] == rendering+ assert written["key"] == common.partition_object_key("inbox_ranking", table, SNAPSHOT_DATE.isoformat())+ assert written["table"].schema == EMBEDDINGS_SCHEMA+ assert written["table"].column("embedding_rendering").to_pylist() == [rendering]+ assert written["table"].column("report_id").to_pylist() == [UUID_A]++[email protected]("asset", [dag.inbox_report_embeddings, dag.inbox_report_title_embeddings])+def test_an_empty_result_still_writes_the_full_schema(monkeypatch, asset):+ # A day before a rendering was emitted must read as "present, zero rows", not as missing.+ written = _run_embeddings_asset(monkeypatch, asset, [])++ assert written["table"].num_rows == 0+ assert written["table"].schema == EMBEDDINGS_SCHEMA+++def test_the_title_snapshot_is_a_leaf_ordered_after_the_join():+ selection = dag.inbox_ranking_dataset_job.selection.resolve(+ [+ dag.inbox_report_state,+ dag.inbox_report_embeddings,+ dag.inbox_signal_embeddings,+ dag.inbox_report_labels,+ dag.inbox_report_model_data,+ dag.inbox_report_title_embeddings,+ ]+ )+ assert dagster.AssetKey(dag.TITLE_EMBEDDINGS_TABLE) in selection++ model_data_deps = {key.path[-1] for key in dag.inbox_report_model_data.keys_by_input_name.values()}+ assert dag.TITLE_EMBEDDINGS_TABLE not in model_data_deps++ title_deps = {key.path[-1] for key in dag.inbox_report_title_embeddings.keys_by_input_name.values()}+ assert title_deps == {dag.MODEL_DATA_TABLE}