Skip to content

Fix Semantic Layer for Fusion metric discovery#102

Merged
C00ldudeNoonan merged 2 commits into
mainfrom
fix/issue-101-fusion-semantic-layer
Jun 12, 2026
Merged

Fix Semantic Layer for Fusion metric discovery#102
C00ldudeNoonan merged 2 commits into
mainfrom
fix/issue-101-fusion-semantic-layer

Conversation

@C00ldudeNoonan

Copy link
Copy Markdown
Owner

Summary

  • migrate legacy top-level Semantic Layer YAML into Fusion-native model-owned semantic metadata
  • move simple metrics inline with their source models and keep metric names discoverable via dbt Fusion
  • remove legacy semantic model, metric, and saved query files that block Dagster/dbt Core CI parsing

Fixes #101

Validation

  • dbt parse
  • dbt sl list metrics --project-dir /Users/alexnoonan/code/econ-data-platform/economic-data-project-full-wt-issue-101/dbt_project
  • cd macro_agents && uv sync --extra dev && uv run ruff check . --exclude .claude && uv run ruff format --check . --exclude .claude && uv run ty check --extra-search-path src src/macro_agents && BIGQUERY_PROJECT=econ-data-project-478800 DBT_ORCHESTRATION_MODE=local uv run dg check defs && uv run pytest tests/ -v -m 'not skip_ci'

Notes

  • dbt Core in Dagster CI does not register Fusion-inline metrics for legacy saved query dependencies, so saved queries are removed in this PR. Metrics remain discoverable through Fusion.

@C00ldudeNoonan
C00ldudeNoonan merged commit a3f5223 into main Jun 12, 2026
2 checks passed
@C00ldudeNoonan
C00ldudeNoonan deleted the fix/issue-101-fusion-semantic-layer branch June 12, 2026 20:49
C00ldudeNoonan added a commit that referenced this pull request Jun 16, 2026
…ion migration (#103)

* feat: add MetricFlow semantic layer for financial and economic metrics (#85)

Implements phase 1 of the dbt semantic layer across four domains:

- markets/semantic_models.yml: S&P 500, sector, currency, fixed income daily prices
- commodities/semantic_models.yml: input, energy, and agriculture commodity prices
- government/semantic_models.yml: FRED monthly economic indicators
- signals/semantic_models.yml: inflation (CPI/PCE/breakeven) and labor market signals

metrics.yml defines 35 metrics covering equity returns, volatility, inflation
gauges (CPI YoY, core PCE, breakeven spreads), and labor market indicators
(Sahm Rule, JO/unemployed ratio, quits rate).

saved_queries.yml provides 6 pre-built agent queries for equity performance,
sector rotation, inflation dashboard, labor market dashboard, macro series scan,
and commodity prices.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: remove stale semantic_models.yml and MetricFlow files superseded by Fusion migration

The merge from main (#102) deleted these files in favor of the Fusion
schema.yml approach, but the merge kept our branch versions due to
diverging history. Manually aligning with main's state.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

Migrate semantic layer YAML to Fusion-native format

1 participant