Aide-mémoire data engineer
Pipeline de build
Section intitulée « Pipeline de build »jinflow make # build default tenantjinflow make millesime.domaine_zufferey # specific tenantjinflow make millesime # all tenants in packjinflow make --all # all tenants, all packsjinflow make --clean # drop + rebuild from scratchjinflow make --sync # copy CSVs from DLZ firstjinflow make --extract # XLSX → CSV → sync → buildjinflow make --snapshot post-audit # freeze KLS after buildPhases de build
Section intitulée « Phases de build »| Phase | Ce qui se passe |
|---|---|
| 0a | Extraction XLSX → CSV (si --extract) |
| 0b | Sync DLZ → raw/ (si --sync) |
| 1 | Validation + enrichissement CSV |
| 2 | Compilation des instruments (Signals, Theses, Verdicts, SMEbits, Reports, Entities, Lineage) |
| 3a | dbt build : Bronze → Silver → Gold |
| 3b | dbt build : Signals → Perspectives → Theses → Verdicts → SMEbits |
| 3c | dbt build : Lineage |
| 3d | dbt build : Reports |
| 4 | Pipeline graph, rapports PDF, calibration |
| 5 | Estampillage métadonnées, archive AFS, création SIS |
Couches Medallion
Section intitulée « Couches Medallion »| Couche | Usage | Matérialisation | Principe clé |
|---|---|---|---|
| Bronze | Ingestion structurelle | TABLE | Dispatch système source, ajoute source_file + row_number |
| Silver | Validation métier | TABLE | is_valid + invalid_reason sur chaque ligne |
| Gold | Contract de consommation | VIEW | Uniquement is_valid = true, agnostique système source |
| Platform | Inter-tenant | VIEW | UNION ALL avec tenant_id |
Compilation des instruments
Section intitulée « Compilation des instruments »# Validate (check YAML against contracts)python3 scripts/probecheck.pypython3 scripts/hypothesischeck.pypython3 scripts/diagnosischeck.pypython3 scripts/smebitcheck.pypython3 scripts/reportcheck.py
# Compile (YAML → dbt SQL)python3 scripts/probecompile.py # --check for dry-runpython3 scripts/hypothesiscompile.pypython3 scripts/diagnosiscompile.pypython3 scripts/smebitcompile.pypython3 scripts/reportcompile.pyVariables d’environnement
Section intitulée « Variables d’environnement »| Variable | Usage |
|---|---|
JINFLOW_LIVE | Override du live root |
JINFLOW_TENANT | Override du tenant par défaut |
JINFLOW_DB_PATH | Chemin KLS explicite (Explorer) |
JINFLOW_AFS_ROOT | Racine AFS (Explorer) |
JINFLOW_SYSTEM_DB_PATH | Chemin DB système |
ANTHROPIC_API_KEY | Clé API Claude (evolve) |
v0.45.1 · built 2026-04-17 08:14 UTC