You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decommissions 38 unused hidden-leaf spells in daily_spellbook as a compute quick win. Each spell is hidden via hide_spells() (so dune.visible=false, not shown in the data explorer), is a leaf in combined dbt + sqlmesh lineage (no model/exposure/sqlmesh/curated-data consumer, checked against the 5 prod manifests, sqlmesh external_models.yaml, and a cross-repo grep), and cleared a usage safety bar over 6 months (Jan–Jun 2026) of QES customer-query data: zero enterprise/paid queries, zero paid customers, and fewer than 5 total queries. 34 of the 38 had zero customer queries in the window.
Deleting these materialized models stops their recurring dbt builds, recovering ~3.06 CPU-hrs/day and ~1.61 TB/day of build compute (query_history 14-day average). The largest single item, frax_finance_bnb.bribes, is ~2.48 CPU-hrs/day on its own.
For each spell the .sql and its _schema.yml entry are removed; sole-model schema files are deleted outright. Orphaned singular tests and their seed fixtures (spaceid, pooltogether, jarvis_network) are removed, and now-unused per-directory config paths in dbt_project.yml (spaceid, pooltogether, worldcoin) are cleaned up. Customer-facing surfaces are protected by the paid-usage guard and untouched.
Verified: only the target models were removed (no surviving-model schema content changed), no dangling refs remain repo-wide, and dbt parse is clean (no warnings).
Medium Risk
Large deletion surface across many domains; risk is mainly breaking unknown downstream queries or docs that still referenced these hidden tables, mitigated by the PR’s leaf-lineage and low-usage checks.
Overview
Removes 38 hidden-leaf dbt spells from daily_spellbook so they no longer run in production builds. For each target, the model .sql is deleted and its _schema.yml documentation/tests are dropped; whole schema files go away when nothing remains.
Coverage spans sector unions (EAS eas_schemas / eas_attestation_details, inscriptions, labels, rebase, referral, social), project-specific tables (Eigenlayer latest exchange rate, Ajna pools, Frax BNB bribes, GMX GLP components, Nexus Mutual swaps/staking rewards, Pooltogether prize structure, Rocketpool node master, SpaceID registrations, Timeswap lend/borrow, and others), plus dbt_project.yml cleanup for spaceid, pooltogether, and worldcoin schema paths that are no longer used.
Several _schema.yml files that keep other models are trimmed only for the removed spells (e.g. GoodDollar daily UBI agg, EAS schema rename/consolidation for eas_schema_details). The intent is compute savings on unused hide_spells() materializations without changing surviving models’ SQL.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Decommissions 38 unused hidden-leaf spells in
daily_spellbookas a compute quick win. Each spell is hidden viahide_spells()(sodune.visible=false, not shown in the data explorer), is a leaf in combined dbt + sqlmesh lineage (no model/exposure/sqlmesh/curated-data consumer, checked against the 5 prod manifests, sqlmeshexternal_models.yaml, and a cross-repo grep), and cleared a usage safety bar over 6 months (Jan–Jun 2026) of QES customer-query data: zero enterprise/paid queries, zero paid customers, and fewer than 5 total queries. 34 of the 38 had zero customer queries in the window.Deleting these materialized models stops their recurring dbt builds, recovering ~3.06 CPU-hrs/day and ~1.61 TB/day of build compute (query_history 14-day average). The largest single item,
frax_finance_bnb.bribes, is ~2.48 CPU-hrs/day on its own.For each spell the
.sqland its_schema.ymlentry are removed; sole-model schema files are deleted outright. Orphaned singular tests and their seed fixtures (spaceid, pooltogether, jarvis_network) are removed, and now-unused per-directory config paths indbt_project.yml(spaceid, pooltogether, worldcoin) are cleaned up. Customer-facing surfaces are protected by the paid-usage guard and untouched.Verified: only the target models were removed (no surviving-model schema content changed), no dangling refs remain repo-wide, and
dbt parseis clean (no warnings).Fixes CUR2-2853
Towards CUR2-2852