Download and reproduce the inventories
Nothing of 4.0 to download here yet. As far as ADEME's terms allow, the rebuild kit, the patched foreground exchanges and ADEME's and the rebuilt results side by side will be offered here, as they are for 3.2.
ADEME's results by food are in the repository: source/AGRIBALYSE4.0_reference_synthese_raw.parquet, the sheet “Synthese 4.0” of ADEME's food workbook, every cell as published. Source: ADEME, AGRIBALYSE 4.0, last updated 2 December 2026, Licence Ouverte / Etalab Open Licence 2.0.
What you need
The source register identifies the public inputs.
| What | Where it comes from |
|---|
| ADEME's export of AGRIBALYSE 4.0 | In the repository, source/AGB40_ecoinvent_free.CSV.xz, without the ecoinvent datasets it carried. ADEME's public release of 2 December 2026 holds no inventory. |
| ADEME's results of AGRIBALYSE 4.0 | In the repository: source/agribalyse-4.0/manifest.json names every file of the release and of the five datasets ADEME published with it, with its checksum. python3 -I scripts/agribalyse_release.py fetch downloads them and checks each one. |
| The list of elementary flows | dds-fetch-harmonised-flows downloads it once (Brightway Flows, under the ODbL). |
| ecoinvent 3.11 | Your own licence. dds-bootstrap-ecoinvent downloads it with your login, once. The repository holds no ecoinvent data, and a guard refuses to commit any. |
| The EF 3.1 methods | Read by the import from their published sources. |
| The import | This repository: the code, the curated mappings and the tests. It reads both releases; 4.0 is the default. |
Import and build it yourself
git clone https://github.com/sentier-dev/sentier-agribalyse.git
cd sentier-agribalyse
uv sync --extra test --extra bootstrap
uv run dds-bootstrap-ecoinvent
uv run dds-fetch-harmonised-flows
dds-bootstrap-ecoinvent reads ECOINVENT_USERNAME and ECOINVENT_PASSWORD from .env. Then follow the steps below; every command runs AGRIBALYSE 4.0 unless told otherwise. python3 -I scripts/agribalyse_release.py fetch downloads the rest of ADEME's public release and checks each file. AGRIBALYSE-4.0.md is the guide to this release, BOOTSTRAP.md covers the files that come from your ecoinvent licence, and the import reference has every command with its options.
The steps, from ADEME's export to a build
| Stage | What happens | What it needs |
|---|
| 1. ADEME's export | The export of 4.0 is unpacked, compared with the checksum recorded beside it, and its processes are counted. The checksum and process count are checked against the manifest. | Nothing: it is in the repository |
| 2. Licensed files | The run reads the background and method snapshots of ecoinvent 3.11, prepared under the local licence by dds-bootstrap-ecoinvent, as BOOTSTRAP.md describes. | An ecoinvent 3.11 licence |
| 3. Registry | dds-build-registry and the four builders after it put every mapping, flow list and factor table under source/ into one registry. Every later stage reads the registry. | The files of stage 2 |
| 4. Link | dds-link-all reads ADEME's export, applies the curated mappings, rebuilds the datasets ADEME adapted from ecoinvent, and resolves supplier and elementary-flow links. It writes the linked system and a report of the run. | The registry |
| 5. Score | dds-backtest scores every mapped product with the 19 headline EF 3.1 methods and compares each score with ADEME's results of 4.0, which the repository holds. dds-compare-cfs and dds-build-flow-decomp write the data of the dashboard, which shows each score beside ADEME's. | The linked system |
| 6. Export | dds-build-bw-package writes a local Brightway package. dds-build-skeleton strips the licensed columns from a separate scoring package. The run refills it and compares its matrices and scores with the original. | The linked system |
Keep what the build was made from beside it: the release, the hashes of the source files, the background version, the method source, the mappings and any parameter overrides. How builds are checked says what the checks on a build cover and what they do not.
See Mapping for the rules the import applies and Inventory quality for the evidence about the resulting inventory.
What stays on your machine
- ADEME's full export, with the ecoinvent datasets it carries, and everything derived from the ecoinvent background: the snapshots, the factor tables keyed by ecoinvent flows, the scoring caches and the Brightway package.
- Anything from a release that ADEME has not published.
The repository's .gitignore and its pre-commit guard keep these files out of a commit. Data and terms says which terms apply to what.
Apply a contribution
A contribution is applied in your own build, beside the unchanged one. Work in a separate checkout with its own source, cache, registry and output folders. Keep the background, the units, the allocation, the boundary, the geography and the method the same in both builds, unless the contribution is about one of them. Application and testing describes the comparison.