Skip to content

Atlas Active Vendor models (L1-L3), Snowcap schemas and vendor activity board - #316

Merged
noel merged 2 commits into
release/atlas-active-vendorsfrom
feature/atlas-vendor-seeds
Nov 25, 2026
Merged

noel merged 2 commits into
release/atlas-active-vendorsfrom
feature/atlas-vendor-seeds

Conversation

@noel

@noel noel commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Builds everything needed to answer "how many active vendors do we have?" using the Atlas definitions of record (Vendor, Dormant Vendor, Active Vendor). The answer is 25 active of 34 vendors, as of 2026-08-16.

  • L1 L1_ERP: stg_vendors__erp, stg_purchase_orders__erp and stg_invoices__erp over the ERP seeds.
  • L2 L2_VENDOR: dim_vendor holds the governed logic. A vendor is active if it has a PO or invoice in the 12 months ending on the latest PO, invoice or payment date. Payments alone don't count, there's no onboarding grace period, and the ERP status flag is ignored but mismatches are flagged.
  • L3 L3_FINANCE: mart_vendor_activity (one row per vendor) and mart_active_vendor_count (25 active, 9 dormant, 6 ERP status mismatches).
  • Snowcap: replaces the PROCUREMENT schemas with L1_ERP, L2_VENDOR and L3_FINANCE. Grants them to z_base__analyst, and L3_FINANCE also to finance_team.
  • Seeds: adds Zephyr Logistics (VEN26) POs and invoices and moves its onboarding date to 2024-09-01, so the demo matches the dashboard published in the dbt Summit 2026 post (open invoice balance $332,125).
  • dbt Charts: the vendor_activity board reads from the new models. The source now uses the profile's default target instead of prd.
  • AGENTS.md: layer responsibilities, schema, model and column naming, YAML file conventions, and keeping Snowcap in sync with dbt schemas.

Follow-ups (not in this PR)

  • Run secure/snowcap/plan.sh and review it before applying. The current plan also drops two unrelated grants (MCP server usage on ANALYST, and DBT_COVES_TEST_STAGING on BOT_INTEGRATION).
  • These BALBOA_QA schemas are orphaned and should be dropped by hand: L2_INVOICES, L2_PURCHASE_ORDERS, L2_VENDORS and L3_ACCOUNTS_PAYABLE. So should the old stg_* views in BALBOA_QA.L1_ERP.

Testing

  • dbt build on the procurement chain passes (seeds, 6 models, all tests).
  • dct validate --warehouse has no errors. The board matches the blog screenshot: 25 active, 6 mismatches, $332,125 open, the same trend and status-by-category values.

🤖 Generated with Claude Code

noel added 2 commits November 24, 2026 15:53
Purchase order and invoice data was generated in SQL from the vendor seeds.
Write it out as seed_purchase_orders and seed_invoices, add the generated
monthly vendors to seed_vendors, and remove the generator leftovers
(seed_vendor_archetypes, macros/spine.sql, as_of and
authored_history_through vars) and the vendor_activity chart that
depended on the removed models.

Two vendors now exercise Atlas edge cases: VEN25 has a payment inside the
trailing 12 months on an older invoice, and VEN26 was onboarded recently
with no activity. Headline counts are unchanged: 25 of 34 vendors active,
21 flagged active, 6 flag mismatches.
- L1_ERP: stg_vendors__erp, stg_purchase_orders__erp, stg_invoices__erp over the ERP seeds
- L2_VENDOR: dim_vendor implements the Atlas Vendor, Dormant Vendor and Active Vendor
  definitions of record (PO or invoice in the trailing 12 months from the latest
  activity date; ERP status flag ignored, mismatches flagged)
- L3_FINANCE: mart_vendor_activity and mart_active_vendor_count (25 of 34 active)
- Snowcap: replace PROCUREMENT schemas with L1_ERP, L2_VENDOR, L3_FINANCE and grant
  them to z_base__analyst (L3_FINANCE also to finance_team)
- Seeds: add Zephyr Logistics (VEN26) POs and invoices and set its onboarding date to
  2024-09-01 so the demo matches the published dashboard
- dbt Charts: vendor_activity board on the new models; use the profile's default target
- AGENTS.md: layer responsibilities, schema/model/column naming, YAML file conventions
  and keeping Snowcap in sync with dbt schemas
@github-actions

Copy link
Copy Markdown
Contributor

🧪 dbt Workflow Status

  • Branch Validation: success
  • dbt Validations: success

✅ All dbt validations passed

@noel
noel merged commit c0ce696 into release/atlas-active-vendors Nov 25, 2026
5 checks passed
noel added a commit that referenced this pull request Nov 25, 2026
…ty board (#316) (#317)

* Replace generated vendor data with static procurement seeds

Purchase order and invoice data was generated in SQL from the vendor seeds.
Write it out as seed_purchase_orders and seed_invoices, add the generated
monthly vendors to seed_vendors, and remove the generator leftovers
(seed_vendor_archetypes, macros/spine.sql, as_of and
authored_history_through vars) and the vendor_activity chart that
depended on the removed models.

Two vendors now exercise Atlas edge cases: VEN25 has a payment inside the
trailing 12 months on an older invoice, and VEN26 was onboarded recently
with no activity. Headline counts are unchanged: 25 of 34 vendors active,
21 flagged active, 6 flag mismatches.

* Build Atlas Active Vendor models across L1-L3 and vendor activity board

- L1_ERP: stg_vendors__erp, stg_purchase_orders__erp, stg_invoices__erp over the ERP seeds
- L2_VENDOR: dim_vendor implements the Atlas Vendor, Dormant Vendor and Active Vendor
  definitions of record (PO or invoice in the trailing 12 months from the latest
  activity date; ERP status flag ignored, mismatches flagged)
- L3_FINANCE: mart_vendor_activity and mart_active_vendor_count (25 of 34 active)
- Snowcap: replace PROCUREMENT schemas with L1_ERP, L2_VENDOR, L3_FINANCE and grant
  them to z_base__analyst (L3_FINANCE also to finance_team)
- Seeds: add Zephyr Logistics (VEN26) POs and invoices and set its onboarding date to
  2024-09-01 so the demo matches the published dashboard
- dbt Charts: vendor_activity board on the new models; use the profile's default target
- AGENTS.md: layer responsibilities, schema/model/column naming, YAML file conventions
  and keeping Snowcap in sync with dbt schemas
@noel
noel deleted the feature/atlas-vendor-seeds branch December 2, 2026 22:23
@noel
noel restored the feature/atlas-vendor-seeds branch December 3, 2026 17:08
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.

1 participant