Repository navigation
Atlas Active Vendor models (L1-L3), Snowcap schemas and vendor activity board - #316
Merged
Merged
Conversation
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
Contributor
🧪 dbt Workflow Status
✅ All dbt validations 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
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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_ERP:stg_vendors__erp,stg_purchase_orders__erpandstg_invoices__erpover the ERP seeds.L2_VENDOR:dim_vendorholds 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_FINANCE:mart_vendor_activity(one row per vendor) andmart_active_vendor_count(25 active, 9 dormant, 6 ERP status mismatches).PROCUREMENTschemas withL1_ERP,L2_VENDORandL3_FINANCE. Grants them toz_base__analyst, andL3_FINANCEalso tofinance_team.vendor_activityboard reads from the new models. The source now uses the profile's default target instead ofprd.Follow-ups (not in this PR)
secure/snowcap/plan.shand review it before applying. The current plan also drops two unrelated grants (MCP server usage onANALYST, andDBT_COVES_TEST_STAGINGonBOT_INTEGRATION).BALBOA_QAschemas are orphaned and should be dropped by hand:L2_INVOICES,L2_PURCHASE_ORDERS,L2_VENDORSandL3_ACCOUNTS_PAYABLE. So should the oldstg_*views inBALBOA_QA.L1_ERP.Testing
dbt buildon the procurement chain passes (seeds, 6 models, all tests).dct validate --warehousehas 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