Skip to content
Vibedata

Build something that is not there yet

Build the procurement spend cube and flag off-contract spend

  • When procurement can't answer how much the company spends with a vendor across entities without a manual pull.
  • When the same vendor appears under several names in the PO and invoice data and consolidation candidates go unnoticed.

Build a spend cube by category, vendor, entity, and period from POs, invoices, and contracts conformed to a deduplicated vendor master, with an off-contract flag and consolidation candidates. Covers the cube and the flag, not merging vendor records, which stays a proposal.

Area
Transformation
Runs on
  • Microsoft Fabric Lakehouse
  • Microsoft Fabric Warehouse
  • MotherDuck
  • DuckDB
Built with
  • dbt
  • dlt
Domain
Supply chain and operations
Industry
Manufacturing, Retail, Public sector, Life sciences
Readiness
SupportedEverything this Recipe composes runs today, without a case that proves this exact shape.
Before you start
needs the category taxonomy and on-contract rule supplied up front

Sample This Recipe has not been materialized in the Cookbook repository yet. Its trigger, description, prompt, agent guidance and acceptance conditions, and the explanation below, are prototype drafts. Its name, job, area and readiness come from the reconciled Cookbook seed snapshot. Readiness is a separate question from this one: it says whether the capability exists, not whether the writing has been reviewed.

Use this Recipe

Use the VibeData Recipe `ops-procurement-spend` at https://getvibedata.ai/cookbook/ops-procurement-spend Read the Recipe and execute it in the context of the current Intent.

Recipe id ops-procurement-spend · Not yet materialized in the Cookbook repository, so the pointer addresses this page.

Verified by

What has to be observably true before this Recipe is finished.

  • total spend in the cube ties to AP invoice totals for the same period and entity
  • a line is flagged off-contract only when it fails the agreed on-contract rule
  • vendors appearing under multiple names are surfaced as consolidation candidates, never merged automatically
  • the category taxonomy applied to a line matches the supplied taxonomy table, not an inferred one
Recipe promptThe task specification the agent reads. Reference only — it is not what you copy.
Deliver: Build the procurement spend cube and flag off-contract spend.

Build a spend cube by category, vendor, entity, and period from POs, invoices, and contracts conformed to a deduplicated vendor master, with an off-contract flag and consolidation candidates. Covers the cube and the flag, not merging vendor records, which stays a proposal.

Execute inside the current Intent. Its Domain, repository, platform, environment and attached sources are the context for this work — read them rather than asking for them.

The work is done when:
- total spend in the cube ties to AP invoice totals for the same period and entity
- a line is flagged off-contract only when it fails the agreed on-contract rule
- vendors appearing under multiple names are surfaced as consolidation candidates, never merged automatically
- the category taxonomy applied to a line matches the supplied taxonomy table, not an inferred one

Report the evidence for each condition above with the result. A condition you cannot meet is something to say, not something to work around.
Agent guidanceHow the agent approaches the work, and what it will not do.

Profile the inputs the grain, joins and measures actually depend on before proposing a model. Put the design up for review — grain first — then build in an isolated copy with tests and documentation landing beside the model rather than after it.

Composes

  • dbt model authoring and layering
  • dbt in the project
  • dlt in the project
  • isolated-copy execution and gate verification

Asks first

Semantic decisions the Intent cannot supply. Never context Studio already holds.

  • which Fabric target this work lands on, when the Domain carries both a Lakehouse and a Warehouse
  • the grain the requester expects, where the request leaves it open to more than one reading

Guardrails

  • Build in an isolated copy. Production is read, never written.

What you need

  • Microsoft Fabric Lakehouse, Microsoft Fabric Warehouse, MotherDuck, or DuckDB.
  • A dbt project you can build, and read access to the models it starts from.
  • dbt and dlt in the project, or the intent to add it.
  • Needs the category taxonomy and on-contract rule supplied up front.

How it goes

  1. State the outcome in one sentence, in the language the request arrived in.
  2. Let it profile the inputs the grain, the joins and the measures actually depend on.
  3. Review the design. Disagreeing about grain here costs a sentence; after the model exists it costs a rewrite.
  4. Let it build in an isolated copy, with the tests and the documentation landing beside the model rather than after it.
  5. Read the acceptance conditions against the run.

What you end up with

The deliverable, in your own repository, as transformation work a reviewer who knows the project reads as native to it. Alongside it, the evidence for every one of the acceptance conditions above — which is the part that is still there in three weeks when somebody asks.