home
docs / modelling

Modelling

catalogue + source profiling → dimensional design + source-to-target mapping
DISCOVERYMODELLINGBUILD

Modelling & mapping suite

Stage 2 of the pipeline — the missing middle. Modelling turns an approved requirements-catalog.yaml (the discovery output) into the source-to-target mapping files the build suite consumes. On a traditional engagement this bridge between requirements and build is done by hand; here three agents chain together — SourceProfiler → Modeller → SourceToTargetMapper — passing the profile report, then the logical model, then the mapping files down the line. The newest of the three suites: its first scored runs landed on 12 July (see Runs).

Target architecture and client fit

The reference target is a Microsoft Fabric Medallion architecture: Bronze preserves source fidelity, Silver validates and conforms reusable entities, and Gold serves business-ready data products. Within Gold, the suite applies Kimball dimensional modelling—clear grain, facts, dimensions, conformed dimensions, surrogate keys and slowly changing dimension intent—so outputs are ready for semantic models and Power BI.

Microsoft Fabric Medallion architecture showing data sources flowing through Bronze, Silver and Gold OneLake layers into SQL analytics and Power BI
Reference data architecture from the Delta-Gen template: source ingestion, Bronze/Silver/Gold preparation in OneLake, then semantic and analytical consumption.
STRONGEST FIT

Greenfield, migration and redesign

Best where the target architecture and modelling standards can be established deliberately rather than inherited piecemeal.

BROWNFIELD USE

Targeted modernisation

Existing estates can adopt the profiling, modelling or mapping stages selectively when target patterns and interfaces can be agreed.

CLIENT OUTCOME

A model teams can extend

The client receives explicit modelling standards and machine-readable handover assets—not a diagram whose rationale disappears with the project team.

The three agents

AgentRole
SourceProfilerreads and profiles the real source schemas (strictly read-only) to ground the catalogue's source and data-quality sections
Modellerturns approved requirements into entities, relationships, conformed dimensions and facts, keys, and SCD intent — the conceptual and logical model
SourceToTargetMappercombines the logical model with the profiled source schemas to emit the gold mapping files build consumes

Design principles

Deep dive: what a run produces

A modelling run leaves three artefacts in the engagement repo, each consumed by the next step. The profile report is deterministic facts about the real sources — row counts, null rates, candidate keys, referential gaps — that ground everything downstream. The conceptual and logical model maps approved requirements to entities, relationships, conformed dimensions and facts, keys and SCD intent; it uses the same logical_model schema the requirements catalogue carries, so it cross-references catalogue items by ID. The source-to-target mapping files are the handover contract: one per gold table, precise enough that the build suite can turn each into a tested Fabric table without human translation.

Because the catalogue and the logical model are platform-agnostic, this whole stage would survive a change of target platform — only the mappings' consumer (build) is Fabric-specific. The scored runs under Runs show both modes: modelling from the golden catalogue, and modelling from a live discovery output.

Current limitations

The mapper currently emits gold-layer dimension and fact mappings — generating bronze-ingest and silver-conform mappings is the natural next step — and profiling-derived data-quality findings are not yet first-class typed citations. Both are tracked and honest: the run scorecards under Runs show exactly where the suite stands today.