/emem:emem-eudr-due-diligencefrom emem
Produces a signed EU Deforestation Regulation (EU 2023/1115) Annex II Due Diligence Statement for production plots. Checks plots against JRC GFC2020 forest baseline and Hansen Global Forest Change loss year at 2020-12-31 cutoff. Cross-checks JRC TMF and grades input evidence quality.
Ships in emem. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
| Use it when | A supplier, importer or auditor asks if a plot of an EUDR commodity is deforestation-free, or needs per-cell evidence for an Article 12 record. |
| You need | For each plot: a GeoJSON geometry, the country of production (ISO 3166-1 alpha-3), the HS code and the quantity in kg. No key. |
| You get | A verdict for each plot and for the statement, a TRACES NT shaped envelope, one signed fact for each plot (or for each cell on the sampled method), and an Ed25519 receipt. |
| Calls | POST /v1/eudr_dds (MCP emem_eudr_dds). To warm a cold plot first: POST /v1/locate, POST /v1/recall. |
Network use. The commands in this skill send JSON to
https://emem.devand receive JSON from it.https://emem.devis the service that the MCP server of the plugin connects to. The commands do not execute what they download. This skill ships no scripts. Its commands read no environment variable, key or credential. The only local files that they read are files that an earlier step saved fromhttps://emem.dev.
The endpoint tests each plot against the forest definition of the Regulation: 10 % canopy, 0.5 ha and 5 m. It returns a signed envelope that an operator can keep as evidence. It covers the geolocation and deforestation parts of Annex II.
It does not cover legality (Article 9(1)(b)) or forest degradation
(Article 2(7)). The response says so in legality_disclaimer and
degradation_disclaimer. Give both to the user.
A cold plot can take minutes. It can also fail with
source_fetch_failed, which names the slow tile. To prevent this, read
the forest bands on one cell of the plot first.
Get the cell64 of the plot point. Send this body to
POST https://emem.dev/v1/locate and read cell64 in the answer:
{"lat": 6.8276, "lng": -5.5471}
This returned defi.zb44d.zaedf.bujI on 7 November 2026. Read the
three forest bands at that cell. Send this body to
POST https://emem.dev/v1/recall:
{"cell": "defi.zb44d.zaedf.bujI", "bands": ["jrc_gfc2020.forest_2020", "forest_change.lossyear", "forest_change.treecover2000"]}
For each entry of facts[] in the answer, read band, value and
unit.
On 7 November 2026 it returned jrc_gfc2020.forest_2020 0,
forest_change.lossyear 0 and forest_change.treecover2000 20. The MCP
tools emem_locate and emem_recall take the same bodies.
For a Point, the statement samples one cell in a box that reaches
0.0001 degrees on each side of the point. That cell can be a neighbour
of the cell from locate. On 7 November 2026 the statement read
defi.zb44d.zae9f.bujI. The warm-up still helps, because it loads the
source tiles, and neighbour cells share them.
Send this body to POST https://emem.dev/v1/eudr_dds and save the
answer as dds.json:
{
"operator": {"name": "Example Cocoa Importer"},
"plots": [{
"plot_id": "CIV-001",
"geometry_geojson": {"type": "Point", "coordinates": [-5.5471, 6.8276]},
"country_of_production": "CIV",
"commodity_hs": "180100",
"quantity_kg": 1200
}]
}
Allow up to 300 s for a cold plot. After step 1, this call answered in less than 1 s on 7 November 2026.
Over MCP, call emem_eudr_dds with the same body. The plugin's MCP
server does not list this tool, but tools/call runs it by name. If
your host calls only listed tools, use the REST route. A long call over
MCP can use a task param and poll tasks/get. The MCP server refuses
a statement larger than its wire budget (about 24 KB). It does not cut
it, because a partial statement looks complete. In that case, use the
REST route.
| Field | Required | Value |
|---|---|---|
plot_id | yes | Your own id for the plot. |
geometry_geojson | yes | A Polygon for a plot of more than 4 ha, or for cattle. A Point for a plot of 4 ha or less (Article 2(28)). The endpoint also takes {"bbox":[w,s,e,n]}. |
country_of_production | yes | ISO 3166-1 alpha-3, for example CIV. |
commodity_hs | yes | HS-6 or longer. The endpoint checks it against Annex I. |
quantity_kg | yes | The quantity in kg. |
request_visual_evidence | no | true adds a Sentinel-2 NDVI and Sentinel-1 backscatter timeline for each year, with scene links. It adds upstream reads that can take minutes. |
plot_salt | no | 32 hex characters. Signed facts carry plot_commitment, a salted hash of plot_id, never the id. Without it, the responder derives a stable salt from the id with a key only it holds. The answer returns the salt to you only. |
| Field | Default | Value |
|---|---|---|
operator | none | {"name": ...} for the envelope. |
cut_off_date | 2020-12-31 | The deforestation cut-off. |
forest_baseline_override | JRC with Hansen | jrc_gfc2020_v4, hansen_only or both. The endpoint still takes jrc_gfc2020_v3. |
method | raster | raster reads every 10 m pixel of a polygon or bbox plot and signs one fact for the plot. sampled reads sampled cells and signs a fact for each cell and band. It stays for one release. |
forest_rule | jrc_only | jrc_only takes forest from the JRC GFC2020 map, with Hansen only where JRC has no reading. jrc_or_hansen is the old rule (JRC or Hansen tree cover). |
max_cells_per_plot | from the polygon area | The sample size for each plot on the sampled method. |
per_cell_detail | rows | rows puts the per-cell rows in the response. anchor leaves them out and keeps per_cell_rows_cid. |
per_cell_offset | none | Pages the per-cell rows. See step 4. |
The request schema is EudrDdsReq in the OpenAPI document at
GET https://emem.dev/openapi.json. The response schema is at
GET https://emem.dev/v1/schemas/eudr_dds.json.
jq '{verdict: .due_diligence_statement.verdict,
signable: .traces_nt_envelope.statementOfComplianceSignable,
review_required: .traces_nt_envelope.statementOfComplianceReviewRequired,
baseline: .forest_baseline, datasets: .forest_baseline_dataset,
plots: [.per_plot_results[] | {plot_id, verdict, failing_area_ha,
support: .verdict_support.level, limits: .verdict_support.limits,
tmf: .tmf_cross_check | {agreement, review_required, post_cutoff_loss}}]}' dds.json
| Verdict | Meaning |
|---|---|
pass | The maps show no forest loss after the cut-off on forest that stood at the cut-off. It is not a finding of compliance. |
fail | Forest loss after the cut-off, over at least 0.5 ha. |
review | Loss after the cut-off, over at least 0.5 ha, on land the JRC map calls non-forest. The map is not binding: confirm the land was in farm use before 2021. Do not file until then. |
not_in_scope | The forest loss on the land came at or before the cut-off, so the land was not forest at the cut-off. |
indeterminate | The inputs do not decide the verdict. |
below_mmu | The failing area is less than the 0.5 ha floor. It counts as compliant. |
With method: "raster", plot_fact_token names the one signed fact
that holds the plot's counts and areas. Put it in the Article 12 record.
tools/verifiers/emem-eudr-due-diligence/verify_plot.py in the emem
repository checks it against the plot's GeoJSON and recounts every pixel.
With method: "sampled", per_cell_verdicts gives the signed fact cids
behind each cell.
| Field | What it tells you |
|---|---|
forest_baseline_dataset | The name, version and source of each dataset that the endpoint read. Quote the versions from this field. |
forest_baseline | The JRC version that the facts came from, for example jrc_gfc2020_v4. The fact derivations carry it too (jrc_gfc2020_v4_pixel@1). |
tmf_cross_check | The JRC TMF deforestation year on each cell, compared with Hansen after the cut-off: both, hansen_only, tmf_only, neither and agreement. It does not change the verdict. A tmf_only loss sets review_required: true, because TMF often sees a clearance that started as degradation and that Hansen misses. |
verdict_support.level | strong, moderate or weak. It shows how complete the inputs are. It is not a calibrated probability. Each shortfall is in limits. |
sampling_caveat | Present for a Point plot. It says that one cell, about 9.5 m, stands for a plot of up to 4 ha. |
traces_nt_envelope | The TRACES NT shaped statement. ddsReferenceNumber is an emem placeholder. TRACES NT issues the real number. |
These inputs set verdict_support.level (verdict_support in
lib.rs):
| Input | strong | weak |
|---|---|---|
| Cells with both the JRC baseline and the Hansen loss year | 95 % or more | less than 80 % |
| TMF agreement with Hansen, where TMF reads | 90 % or more | less than 70 % |
| Cells within 2 points of the 10 % canopy threshold | 10 % or less | more than 30 % |
| Sample spacing, for a plot of 0.5 ha or more | 71 m or less | more than 141 m |
A value between the two columns gives moderate. Three more cases give
moderate:
The endpoint holds the statement for review when one of these is true:
tmf_cross_check.review_required: true.verdict_support.level weak.forest_baseline_computed is then
hansen_only_jrc_unavailable.statement_of_compliance_signable at the top level and
statementOfComplianceSignable in the envelope use one rule, so they
always agree. Each is true only when the overall verdict is pass and
the endpoint does not hold the statement for review.
statement_of_compliance_held_because (in the envelope:
statementOfComplianceHeldBecause) lists each cause that applies. It is
empty when the statement is signable.
| Cause | Reason |
|---|---|
verdict_<label> | The overall verdict is not pass. |
tmf_cross_check_review_required | TMF saw a loss that Hansen did not see. |
verdict_support_weak | One plot has weak support. |
jrc_baseline_unavailable_hansen_only | The verdict used Hansen only. |
The Point plot in step 2 (cocoa, Côte d'Ivoire) returned this at 01:06 UTC. A second call at 03:31 UTC returned the same values:
{"verdict": "pass", "signable": true, "review_required": false,
"baseline": "jrc_gfc2020_v4",
"datasets": [{"name": "JRC Global Forest Cover 2020", "version": "V4"},
{"name": "Hansen Global Forest Change", "version": "v1.13 (2025)"}],
"plots": [{"plot_id": "CIV-001", "verdict": "pass", "failing_area_ha": 0.0,
"support": "moderate",
"limits": [{"severity": "qualifies", "why": "one point sample: a clearance elsewhere on the plot is not seen"},
{"severity": "qualifies", "why": "the plot is 0.01 ha, under the 0.5 ha minimum mapping unit (Art. 2(4)), so no clearance of that size fits in it and none can fall between samples"}],
"tmf": {"agreement": 1.0, "review_required": false,
"post_cutoff_loss": {"both": 0, "hansen_only": 0, "neither": 1, "tmf_only": 0}}}]}
The one cell read jrc_forest_2020 0, hansen_treecover_2000 20,
hansen_lossyear 0 and jrc_tmf_deforestation_year 0, with four fact
cids. The receipt signs five fact cids and verified. The datasets
lines above leave out the source URLs.
On 28 September 2026 the same plot first failed with
source_fetch_failed on a cold Hansen tile. A later call then answered
with support strong, while TMF read no cell. The code now lowers the
level to moderate for one sample cell and for an unread TMF in the
tropics.
The response has a signed receipt over the per-cell fact cids. On a
large plot the receipt signs only the first cids, sorted by cid. The
response then shows receipt_fact_cids_capped and
receipt_fact_cids_total.
Verify the receipt on the server. Build the body from the saved answer:
jq -c '{receipt}' dds.json > verify_req.json
Send verify_req.json as the body of
POST https://emem.dev/v1/verify_receipt. Read valid,
signature_valid and merkle_proof_valid in the answer.
On 7 November 2026 all three were true. To verify offline, without
trust in the responder, use
emem-verify-receipt.
The responder stores the facts of every sampled cell, also the cells
that the response does not show. facts_computed and facts_persisted
give the counts, for each plot and in total. Each fact cid in the
response resolves at GET https://emem.dev/v1/facts/<cid>, and so does
each cid behind per_cell_rows_cid.
These rows exist on the sampled method only.
per_cell_detail: "anchor" leaves out per_cell_verdicts and keeps
per_cell_rows_cid. Ask again with rows to get the rows.per_cell_offset to page the rows in canonical order, one inline
cap at a time. Follow per_cell_next_offset until it is null.per_cell_rows_cid is a BLAKE3 hex over one line for each sampled
cell: <cell>|<verdict>|<fact_cids joined by ,> and a newline. Use
the number in verdict (for example 1), not the text in label.
The joined pages give the same hash. On 7 November 2026 the hash of
the one row in step 3 matched per_cell_rows_cid. The receipt does
not sign this hash, but it signs the fact cids in it.sampled_polygon_fraction is the coverage (sampled area over polygon
area). Do not use the number of rows as coverage.per_cell_offset, the rows over the cap are a sample: failing
cells first, then the first of the other cells.Keep the fact cids in the operator's record. To give them as one token,
POST /v1/memory_bundle {"fact_cids":[...]} returns an emem:bundle:
token. That call stores a record on the responder. For a lab
certificate or a land title in the same file, see
emem-document-evidence.
| Response | Cause | What to do |
|---|---|---|
source_fetch_failed | An upstream tile was slow or cold. The error names it. | Do step 1, then send the request again. |
review_required: true | TMF saw a loss that Hansen did not see. | Read tmf_cross_check.review_cells. A person must look at those cells. |
verdict_support.level weak | An input is incomplete. | Read limits. Send a Polygon or a larger max_cells_per_plot. |
annex_i_warnings not empty | The HS code is not in Annex I. The endpoint still computes the verdict, but EUDR does not cover that commodity. | Check commodity_hs. |
Plot verdict indeterminate with no cells | The geometry did not parse. | Check geometry_geojson. |
verdict_support.level of each plot, and its
limits.tmf_cross_check.review_cells.sampling_caveat field says so.regulation_status_note). The cut-off date does not change.What SKILL.md sets; muted values are Claude Code's defaults
19 skills in this plugin
/emem-device-tracesReads and checks the signed activity records (OS traces) emem holds for devices such as robots, drones, satellites and sensor hosts. Lists enrolled devices and their assurance tier, and resolves an emem:trace token to its signed OS trace. Re-verifies the trace (segment chain, clocks, required layers, output binding, device signature). Reads the platform registry to say which hardware roots of trust emem admits. Use when a fact or claim is said to come from a device. Use when an agent receives an emem:trace or emem:attestation token. Also use when someone asks if a robot or satellite can prove what it ran. Read-only: it sends and receives JSON, runs nothing it receives, and says plainly what is roadmap./emem-document-evidenceTurns a scanned document into signed, checkable evidence with emem. It runs OCR on an image. Then it parses a pesticide-residue lab report: analytes, results in mg/kg, LOQ, printed MRL, exceedances. Or it parses a land record: owners, parcel ids, areas in hectares, places, dates. Each value carries its line and byte offset, and emem signs each step. Use when an agent must extract fields from a lab certificate, a 7/12 extract, a khasra or a CAR record. Use it when the agent must hand them on with proof of the image and text they came from. It states which hashes and signatures to compute again, so that a third party can check the chain with its own tools and no trust in emem.npx claudepluginhub vortx-ai/emem --plugin ememOther plugins' skills for the same job