AGRIBALYSECommunity workspaceGitHub

AGRIBALYSE 4.0: import and build

ADEME released AGRIBALYSE 4.0 on 2 December 2026. It is built on ecoinvent 3.11. The import reads it since 3 December: ADEME's export of the inventory ships in the repository without the ecoinvent datasets it carried, so a clone and an ecoinvent 3.11 licence are enough. We ran the import of 4.0 on ecoinvent 3.11 using two source files, as for 3.2. The climate check asks what it asks of 3.2: whether at least 99% of comparable foods fall within 5% of ADEME’s published result.

AGRIBALYSE 4.0 inputFoods within 5% of ADEMEOutside tolerance99% target
Distributable source2,423 of 2,452 (98.8%)29Missed
Full licensed source2,427 of 2,452 (99.0%)25Missed

The 99% target needs 2,428 of the 2,452 foods. Both builds ran on 3 December 2026, on revision 90d5b39 and the ecoinvent 3.11 cut-off release. One step differed from the steps below: the characterisation factors of EF 3.1 came from ecoinvent's published mapping of EF 3.1 to ecoinvent 3.11, EF v3.1_mapped_3.11.csv (CC BY-NC 4.0), not from the methods workbook that dds-bootstrap-ecoinvent downloads with a licence. The two were not compared for 3.11.

ADEME's public release holds the results by food and by farm product, the metadata, the data quality matrix and the reports, among them the report of what changed since 3.2; it holds no inventory. Its results by food are in the repository: 2,452 foods with the 16 indicators of the EF method and three parts of climate change, and no single score. They are the values the climate check compares with. See the release · Search its foods.

The import and build of the previous release are on AGRIBALYSE 3.2.

The repository holds source/AGB40_ecoinvent_free.CSV.xz: ADEME's SimaPro export of 20 October 2026, prepared by EVEA, with EVEA's corrections of November applied, and without the 3,054 of its 22,172 processes that copy or adapt an ecoinvent dataset. The import rebuilds the adapted ones from your own ecoinvent 3.11 and from recipes that hold only ADEME's changes, never an ecoinvent amount; nine have no recipe yet.

The replay below follows that export through the one stage that needs no licence. The five others run on a licensed machine; the table above gives the totals of the two builds that ran them.

The last import run

It worked

Import run 3 of , 05:29 UTC, on commit a8bae55 of eaternity/integration, started by its schedule. The run on GitHub

  1. 1ADEME's exportunder 1 s
  2. 2Licensed filesnot run here
  3. 3Registrynot run here
  4. 4Linknot run here
  5. 5Scorenot run here
  6. 6Exportnot run here

Step 1 of 6 · completed · under 1 s

ADEME's export, as it is shipped

The repository holds ADEME's export of the release without the ecoinvent datasets it carried. The run unpacks it, compares it with the checksum recorded beside it and counts its processes. Nothing in it is changed.

processes
19,118
ecoinvent datasets taken out
3,054
bytes shipped
4,015,080
  • Checked against source/agribalyse-4.0-stripped-ecoinvent-processes.json: checksum 3755ac2c56de. Nothing in the export is changed.

Step 2 of 6 · not run here

Read the licensed inputs

The run reads the ecoinvent and method snapshots already prepared on the licensed machine, plus the harmonised flow list. It computes a checksum for each.

Needs an ecoinvent 3.11 licence. It runs on a licensed machine, not here.

Step 3 of 6 · not run here

One registry of every mapping

Every mapping, flow list and factor table is put into one registry. Every later stage reads the registry.

Needs an ecoinvent 3.11 licence. It runs on a licensed machine, not here.

Step 4 of 6 · not run here

Assemble the linked inventory

The import applies the curated changes, resolves supplier and elementary-flow links and records how many exchanges reach the scoring package.

Needs an ecoinvent 3.11 licence. It runs on a licensed machine, not here.

Step 5 of 6 · not run here

Scored and compared with ADEME's results

Every mapped product is scored with the 19 headline EF 3.1 methods, and each score is compared with ADEME's reference value.

Needs an ecoinvent 3.11 licence. It runs on a licensed machine, not here.

Step 6 of 6 · not run here

Export, strip and refill

The run creates a local Brightway package, strips licensed columns from the scoring package, and checks the refilled matrices and impact scores against the original.

Needs an ecoinvent 3.11 licence. It runs on a licensed machine, not here.

What the run printed · run 3 · a8bae55
[ADEME's export] source/AGB40_ecoinvent_free.CSV.xz: 4,015,080 bytes as shipped
[ADEME's export] unpacked: 123,058,990 bytes, sha256 3755ac2c56deadbf28bf6ceec5fabd1ec6c756c499a88fffbe383d80a14c40cb
[ADEME's export] 19,118 processes in the export; 3,054 ecoinvent datasets were taken out before it was shipped
[ADEME's export] the export is the file its manifest records
Import run: 1 stage completed, 5 need a licence and were not run here
Did it work
Yes. 1 of 6 steps completed, and none failed, in 10 s. 5 steps were not run here.
What is blocking
  • Nothing in this run.
  • A full import runs on a licensed machine. Its results are not published: they hold ecoinvent data.
What was in it
AGRIBALYSE 4.0: ADEME's export, without the ecoinvent datasets it carried.

5 lines, exactly as the run printed them, each with its time since the start. It ended with status 0. The replay shortens the waits and changes nothing else. SHA-256 of the lines: 71231e383325. The same record as a file: api/v1/last-run-4.0.json.

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.

WhatWhere it comes from
ADEME's export of AGRIBALYSE 4.0In 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.0In 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 flowsdds-fetch-harmonised-flows downloads it once (Brightway Flows, under the ODbL).
ecoinvent 3.11Your 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 methodsRead by the import from their published sources.
The importThis 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

StageWhat happensWhat it needs
1. ADEME's exportThe 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 filesThe 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. Registrydds-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. Linkdds-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. Scoredds-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. Exportdds-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.