Observatório SOMA

A landscape review, an asymmetry analysis, and a working prototype of an open public-sector platform

Prepared for Bernardo Munayer · 19 August 2026 · single-document edition

1 Summary

You asked three things: whether I have any contact with the mining software vendors listed on SourceForge; whether the public sector's need for mining surveillance can be met with public data and open source; and whether a piece of software could be developed that communicates those needs properly, rather than merely detecting things.

No. I have no relationship, integration, partnership or privileged access to any vendor named in this document — Deswik, Micromine, Datamine, Maptek, Hexagon, Seequent, RPMGlobal, Envirosuite, Borealis or any other. Everything about them here comes from their own public marketing and from trade press, which turns out to be useful rather than a limitation: a published capability list is a specification, and this report treats it as one (§2.2).

Yes, and further than most people assume — but not uniformly. Some of what an operator sees can be mirrored from public data almost exactly; some approximately and honestly, with stated error bars; some cannot be mirrored at all. Section 2.4 sets out which is which, layer by layer, and is the analytical core of the whole document.

Yes, and that is the harder half of the problem. A regulator does not lack satellite images — everything used here is already free and downloadable today. What the public sector lacks is an apparatus that turns what the images show into communications its own institutions can act on: an inspection order, a notice with a legal basis and a deadline, an evidence dossier a court will accept, a budget line a legislature will fund, a page a community can read. Section 2.8 argues that this translation is the product; section 2.9 describes how it was built; and roughly as much code went into the translation layer (dossier.py) as into the detectors themselves.

The clearest evidence for the gap is Brazilian and it is measured, not estimated: the Federal Court of Audit (TCU) found R$16.4 billion in mining royalties uncollected over eight years, a six-person team contesting twelve thousand collection files, inspections down 92% in five years, and an agency workforce down 41.9% since 1996 — against 443,000 hectares of mapped mining disturbance, 92% of it in the Amazon (§2.3). No plausible increase in headcount closes that gap. A satellite that revisits every point on Earth every few days, for free, might.

Observatório SOMA is the prototype built in response. One sentence governs its design: every number the system puts on a screen must be re-derivable, by a third party, from public inputs, using only the manifest that accompanies it. Everything else — the guarded detectors, the cadastral tolerance applied in the title holder's favour, the due-process state machine, the hash-chained evidence ledger, the five-register translation layer, the refusal to act on simulated evidence — follows from that one sentence.

Exercised blind against a deterministic simulator with known ground truth, the prototype recovered disturbed area to within a few per cent, correctly detected and quantified a routine-to-accelerated growth-rate change (0.70 → 4.65 ha/month against a simulated 0.71 → 4.5), correctly declined to raise a false alarm on a steady, compliant site, and correctly kept three of its four demonstration cases out of public view because due process had not yet run its course — publishing only the one that was examined and cleared (§2.10; §4 has the full transcript). It has never seen a real satellite image; that is the single most important limitation and §2.13 makes proving it on real imagery the first next step, not the last.

What is in this document. This is the single-file edition of everything delivered, with a strict decimal numbering — Indo-Arabic numerals throughout, no Roman numerals — and a language selector: the buttons marked EN / PT (ISO 639-1 codes) switch this entire document, section for section, between English and Brazilian Portuguese.

  • §2 — Report. The full argument: the operator's stack as a specification, the measured capability gap, the asymmetry table, the public data and open-source estates, the Luhmannian translation argument, the Observatório SOMA proposal, prototype results and honest limits, deployment tiers and cost, objections taken seriously, and next steps.
  • §3 — Technical Architecture. The specification a procurement process needs: layer by layer, with the design contract, dependencies, licensing and a repository map.
  • §4 — Demonstration Transcript. Verified, re-run command output: the test suite, the four-site portfolio, ground-truth recovery, the evidence ledger and what happens when it is tampered with, due-process enforcement, and the synthetic-evidence guard.
  • §5 — Evidence Base. The sourced research notes behind every factual claim in the document, organised by topic, each line carrying its source.
  • §6 — GIS Prototype. Where and how the geospatial data and multi-agency registries (ANM, IBAMA, ICMBio, FUNAI, INCRA, ANA) would fit into an interactive view, with export of coordinates and process identifiers.
  • §7 — References. The full bibliography in ISO 690 numeric format, linked from citation markers like [1] throughout the text above.

Alongside this document: map.html (the GIS prototype, with an OSM map and export), dashboard.html (the working operational dashboard — open either in any browser, no network needed), soma/ (6,100 lines of runnable Python plus 720 lines of tests, zipped), and 03-catalogues.xlsx (every public data source, open-source component and jurisdiction this architecture depends on, with licence, access method and maturity).

The prototype runs on simulated imagery, deliberately, for reasons §2.10.2 explains — but nothing in this package is a claim about any real company or site, and the software refuses by design to issue a legal act from simulated evidence.

2 Report

2.1 The question, restated

"Mining surveillance" is an unfortunate phrase in a document that will be read by lawyers, so let me replace it with a sharper one.

A mining operation is an information asymmetry with a hole in the ground attached. The operator knows, continuously and to a few centimetres, where its pit face is, how much material it moved last shift, how much water is behind its tailings dam, how far the crest has crept this month, and what it will declare to the state at the end of the quarter. The state knows what the operator tells it, when the operator tells it, in the form the operator chooses. The affected community knows what it can see from the road.

Every serious mining governance failure of the last decade sits inside that gap. Brumadinho was a dam whose stability declaration had been signed. Under-collection of royalties is a gap between declared and actual production. Illegal extraction inside Indigenous land is extraction the state did not observe. The gap is not a policy failure; it is an observational failure with policy consequences.

So the question is not "how do we watch mining companies". It is:

Can a public authority obtain, from data it is already entitled to, an independent picture of a mining operation good enough to act on — and can that picture be produced in a form that its own institutions, and the operator's right to defend itself, can both survive?

This report argues yes, sets out exactly how far "good enough" reaches, and delivers a working prototype of the answer.


2.2 What the operator's stack does

2.2.1 The list you sent is a specification

The SourceForge listing for mining software in Europe shows thirty products [27]. Sorted by what they actually do rather than by vendor, they cover twelve functional layers:

Layer Representative products on that page
Tenure, permits and land management trueMINER; (and, off-page, acQuire, Landfolio)
Geological modelling and subsurface visualisation RockWorks, LogPlot8, Surfer
Mine design, planning and scheduling MineCycle (Bentley), Promine, Reactore/MineOne
Short-interval control and execution ShiftManager (RPMGlobal), Lightship
Drill and blast Blast Management System (MineExcellence)
Geotechnical and slope stability Rocscience
Survey, volumetrics and progress Propeller (drone), Strayos (3-D AI)
Process chemistry and metallurgical accounting HSC Chemistry (Metso), INVENTEO (Caspeo, AMIRA P754)
Environmental data and monitoring Envirosuite, EnviroDataVault (RPMGlobal)
EHS, inspections and workforce Intelex, EHS Insight, SafetyIQ, PeopleTray, Pervidi, Inspectivity, Dashpivot
Stakeholder engagement and grievance Borealis
Enterprise asset management and control 4site, FrameworX, MineTwin, EarthCache

Two things are worth noticing. First, that is a complete apparatus of self-observation: an operator running the full stack knows more about its own site than any regulator could learn by visiting. Second, several of these layers exist precisely because the operator must report to the state — the environmental data management, the stakeholder grievance module, the metallurgical accounting to a recognised code. The instruments the state relies on to supervise the industry are largely owned, operated and maintained by the industry. That is not an accusation of bad faith; it is a structural description, and it is the thing this project is about.

2.2.2 The market around it

The Global Mining Tech 50 puts 2025 mining- and metals-technology revenue for the top fifty vendors at roughly US$6.8 billion, up 73.5% over five years [19]. The consolidation is vertical and recent:

  • Caterpillar acquired RPMGlobal for about US$728–735 million, completing in February 2026 [1].
  • Weir acquired Micromine for about US$840 million, completing in April 2025 [20].
  • Sandvik owns Deswik; Bentley owns Seequent (Leapfrog, Evo).
  • Constellation Software has bought more than thirty mining software firms since 2011; its flagship is Datamine.
  • Epiroc has acquired thirteen mining-technology firms since 2021.

Equipment makers are buying the software that plans the work their machines do. The practical consequence for a regulator is that the planning layer, the execution layer and the reporting layer increasingly sit inside one commercial relationship, and the interfaces between them are not public.

2.2.3 What this costs a public body to match by procurement

Nothing in this report requires an estimate of licence fees, because the argument does not depend on them. It is enough to observe that a national mining regulator in a middle-income country will not procure a Deswik-and-Envirosuite stack across every site it supervises, and that even if it did, it would be buying the operator's own tooling, applied to data the operator supplies. The mirror has to be built out of something else.


2.3 What the public sector actually has

The Brazilian numbers are the clearest published evidence anywhere of the capability gap, because the Federal Court of Audit measured it.

From the TCU's 2024 ruling on the Agência Nacional de Mineração [28]:

  • Approximately R$ 16.4 billion in mining revenue was not collected over eight years: R$ 12.4 bn unrecovered over 2014–2021, R$ 4 bn lost to time-barred credits over 2017–2021, and R$ 20 bn at risk of prescription.
  • The team responsible for contesting CFEM royalty collection is six staff and one chief, against roughly 12,000 collection files.
  • The agency's workforce fell 41.9% from its 1996 level, to 695 employees over 2010–2023.
  • Inspections fell 92%: from 2,184 audits in 2014 to 173 in 2019.
  • TCU ordered ANM to produce, within sixty days, a plan for a collection-and-enforcement system.

Set against that: ANM's tailings register (SIGBM) held 917 dams [30] as of November 2025, of which 470 fall under the national dam-safety regime, with 93 structures in declared alert or emergency (1 at level 3, 8 at level 2, 62 at level 1, 22 in alert). And MapBiomas put Brazil's mined surface at 443,000 hectares [16] in 2022 — 263,000 ha of it artisanal garimpo — of which 92% lies in the Amazon biome, with more than 25,000 ha inside Indigenous Lands and 78,000 ha inside conservation units. Mining inside protected territories grew 190% over 2018–2022; inside Indigenous Lands, 265%.

The arithmetic is the whole argument. One hundred and seventy inspections a year, against tens of thousands of titles, hundreds of dams and 443,000 hectares of disturbed ground, is not an enforcement regime. It is a sampling error. No plausible increase in headcount closes that gap; a satellite that revisits every point on Earth every few days, for free, might.

This is not a Brazilian peculiarity, though Brazil has measured it more honestly than most. Any jurisdiction where the number of supervised sites vastly exceeds the number of people supervising them has the same structure, and that is nearly all of them.


2.4 The asymmetry, layer by layer

This is the analytical core of the report: what an operator sees, what a public body can see from public data, and — stated plainly — what it cannot.

# Operator capability Vendor examples Public mirror Public data behind it Fidelity
1 Tenure and permit management trueMINER, acQuire Cadastre engine — polygon register, overlap detection against protected areas, title-status timeline SIGMINE (daily, SHP+KML); EU member-state registries under the high-value-dataset regime Full. The registry is the public copy.
2 Survey of the working surface Total station, drone photogrammetry Footprint delineation — disturbed-surface mapping at 10 m, every 5 days Sentinel-2 L2A; Landsat 8/9 for the pre-2015 baseline High for extent; the operator wins on precision, the public wins on frequency and history
3 Volumetrics and progress Propeller, Strayos DEM differencing — cut/fill and implied tonnage with explicit uncertainty Copernicus DEM GLO-30 (free, <4 m absolute vertical); NASADEM/SRTM for a 2000 baseline; national photogrammetric DSMs Moderate. Order-of-magnitude, wide intervals. Useful as an upper bound, never as a production figure.
4 Geotechnical and dam monitoring Rocscience, instrumented crests InSAR displacement screening — mm-scale line-of-sight movement and acceleration EGMS (Europe, annual, free); self-processed Sentinel-1 via ISCE2/SNAP + MintPy/LiCSBAS elsewhere High for movement, none for cause. Detects that a crest is moving; cannot say why or predict failure.
5 Tailings and water management RPMGlobal, Envirosuite Pond extent, turbidity gradient, freeboard proxy Sentinel-2; JRC Global Surface Water; SIGBM and the Global Tailings Portal for the register Moderate. Surface behaviour only.
6 Environmental monitoring Envirosuite, EnviroDataVault Impact screening — vegetation loss, deforestation alerts, dust and plume proxies RADD (Sentinel-1, 10 m, near-real-time, CC BY); DETER/PRODES; Sentinel-5P for SO₂/NO₂ Moderate to high for land cover; low for ambient concentrations without ground stations.
7 Metallurgical accounting INVENTEO (AMIRA P754) Declaration screening — declared production per active hectare, benchmarked against peers; cross-filing consistency CFEM; Anuário Mineral Brasileiro; EITI reports; EU Accounting Directive Ch. 10; ESTMA Low as measurement, high as triage. You cannot compute their tonnage. You can rank who is worth auditing.
8 Stakeholder and grievance management Borealis Public grievance intake with a published response obligation Built, not borrowed (ODK/Kobo-style) Full, and arguably better: the record is not held by the party complained about.
9 EHS incident management Intelex, EHS Insight Public incident register, cross-referenced with regulator and press records Agency bulletins, labour inspectorate data, press Partial. Depends entirely on the disclosure regime.
10 Mine planning, scheduling, reserve modelling Deswik, Vulcan, Datamine, Leapfrog None — Not mirrorable. Needs the drillhole database.
11 Fleet management and dispatch Modular, Wenco, Cat MineStar None — Not mirrorable, and should not be.
12 Process control / SCADA FrameworX None — Not mirrorable.

Three observations about this table.

The public sector wins on time, not on precision. The operator's survey is centimetric and monthly; the public mirror is metric and every five days, with a continuous archive back to 2015 (Sentinel-2) or 1984 (Landsat). For the questions a regulator actually asks — did the footprint move outside the boundary; when did the rate change; is the crest accelerating — frequency and history beat precision.

Rows 10 to 12 are not a gap to be closed. A regulator does not need to model the orebody or dispatch the trucks, and building toward that would be both futile and a legitimate intrusion. Being explicit about this is what makes the rest credible. A proposal that claims to mirror everything gets dismissed; one that says "these four things exactly, and not these three" gets read.

Row 7 is the one people get wrong. The temptation is to convert observed footprint into tonnes and compare that with declared production. Do not. The conversion needs stripping ratio, ore grade, moisture, waste handling and stockpile movement, none of which are public, and a demand built on that chain will not survive contest. What survives is relative reasoning: intensity against peers, consistency between the operator's own filings, and the clean case of visible activity with nothing declared at all.


2.5 The public data estate

Everything in this section is free, licensed for reuse, and available today.

2.5.1 Earth observation

Sentinel-1 (C-band radar). Sentinel-1D completed commissioning and its data opened to users on 17 April 2026, bringing the constellation to 1A + 1C + 1D (1B failed in 2022) [5, 11]. Radar sees through cloud and at night — the single fact that makes tropical mining monitoring possible at all, since optical sensors lose the entire wet season.

Sentinel-2 (optical). Thirteen bands — four at 10 m, six at 20 m, three at 60 m — on a 290 km swath. Revisit is 10 days with one satellite, 5 with two, and 2–3 days at mid-latitudes; a three-satellite configuration has been running since March 2025 with the 2A extension campaign now prolonged to the end of 2026. L2A surface reflectance is the analysis-ready product; the archive runs from 2015.

Copernicus DEM. GLO-30 (30 m) and GLO-90 global, free worldwide, with absolute vertical accuracy better than 4 m at 90% linear error and relative accuracy under 2 m on slopes up to 20%. EEA-10 (10 m) covers 39 European countries under restricted access. This is what makes volumetric estimation a public capability at all.

European Ground Motion Service. Sentinel-1 interferometry across Europe at millimetre accuracy, updated annually, in Basic / Calibrated / Ortho levels, downloadable from the EGMS Explorer [10]. It exists explicitly for authorities monitoring dams and infrastructure and for mining-induced subsidence. For a European deployment, the hardest technical layer in this whole architecture arrives as a table.

Landsat 8/9. The pre-Sentinel baseline, back to 1984 across the archive — indispensable for establishing what a site looked like before anyone was watching.

2.5.2 The cost of all this

Copernicus Data Space Ecosystem free-tier quotas, as published, for an ordinary registered user [3]:

  • 12 TB per rolling 30 days over S3 / OData / STAC, at 2,000 requests per minute and up to 20 MB/s per connection across four concurrent connections. Exceeding the quota degrades throughput to 1 MB/s rather than cutting access off.
  • 50,000 direct COG requests per month; 10,000 Sentinel Hub API requests and 10,000 processing units per month; 10,000 openEO credits per month.

Twelve terabytes a month is not a constraint for a national mining monitoring programme — it is roughly the whole Sentinel-2 archive over a large mining province, repeatedly. The data cost of monitoring every mine in a country is zero. The cost is compute, storage and — overwhelmingly — the people who read the outputs and decide what to do.

2.5.3 Registries and cadastre

Brazil. ANM publishes, through dados.gov.br and its own open-data endpoints: SIGMINE (polygons of every active and inactive mining process, shapefile and KML, daily); the Cadastro Mineiro (requests, titles, holders, regimes, daily micro-datasets); CFEM collection data; SIGBM (tailings dams with technical characteristics and tailings type, real-time); TAH (annual per-hectare fee by process, year, holder and area); the Anuário Mineral Brasileiro (production and destination since 2010); SICOP; the active-debt register; DIPEM; and SOPLE. Bulk files sit at dadosabertos.anm.gov.br, with an ArcGIS REST service at geo.anm.gov.br.

That combination is unusually strong. Title polygons plus royalty payments plus dam register plus production yearbook, all public and all machine-readable, is exactly the input set this architecture needs.

European Union. Commission Implementing Regulation (EU) 2023/138 designates six categories of high-value dataset, two of which — Geospatial and Earth observation and environment — cover the relevant material. Member states must publish them free of charge, in machine-readable format, with an API and bulk download, under CC BY 4.0 or less restrictive, with metadata per Regulation (EC) 1205/2008, at scales to 1:5000, and must maintain both current and historical versions. Compliance was due around mid-2024.

This matters more than it first appears. The EU has already legislated the supply side of this architecture. A member state that has implemented the high-value-dataset regime has, without intending to, provisioned the cadastral and environmental inputs a public mining monitor needs.

2.5.4 Money

  • CFEM (Brazil) — royalty payments per process: the declared-production proxy.
  • EU Accounting Directive, Chapter 10 — payments to governments by extractive companies.
  • ESTMA (Canada) and equivalent regimes elsewhere.
  • EITI Standard 2023 — systematic disclosure, an explicit open-data policy, and strengthened beneficial-ownership and contract-transparency requirements [12].

The most productive check available needs no satellite at all: compare what one company reported for the same site and period to three different regimes. Divergences between an operator's own filings are the strongest and cheapest signal in this whole architecture.

2.5.5 Environment

  • RADD forest disturbance alerts — Wageningen University, Sentinel-1 based, 10 m, near-real-time, covering 13 South American, 6 Central American, 25 African, 5 insular South-East Asian and 1 Pacific country, under CC BY 4.0 [23].
  • DETER and PRODES (INPE) — near-real-time and annual deforestation for Brazil, with open download and an API through TerraBrasilis.
  • MapBiomas — annual land-cover and land-use series including a dedicated mining and garimpo module, with substance attribution.
  • Sentinel-5P — SO₂ and NO₂ columns, useful for smelting and processing, too coarse for a single pit.

2.5.6 Reference datasets

  • Global-scale mining polygons v2 (Maus et al. 2022): 44,929 polygons, 101,583 km², 145 countries, digitised from 2019 Sentinel-2 cloudless mosaics within 10 km buffers of 34,820 known mine locations. Overall accuracy 88.3%, user's accuracy 97.2%, producer's accuracy 78.9%, F1 0.87. CC BY-SA 4.0 on PANGAEA [18].
  • Open database on global coal and metal mine production (Jasansky et al. 2023): 1,171 mines, 80 materials, 2000–2021, 80 countries (Brazil: 89 facilities), hand-built from more than 1,900 public company reports with every datum linked to its source document. CC BY 4.0 on Zenodo; R code GPL-3. Known limits: China under-covered; copper coverage 60–70%, gold 30–40%; excludes artisanal mining and in-situ leaching [15].
  • Global Tailings Portal (GRID-Arendal with the Investor Mining and Tailings Safety Initiative): about 1,800 facilities from about 100 companies, twenty field categories including raising method, height, volume, hazard classification and downstream impact. Only 332 of 727 surveyed listed companies responded — which is itself a finding about the disclosure regime [14].
  • Global Coal Mine Tracker (Global Energy Monitor): database plus wiki, validated against government sources, company reports, media, local NGOs and field contacts; annual update cycle since 2023 [13].

2.6 The open-source estate

2.6.1 What exists, and is good

The geospatial open-source stack is mature, foundation-governed and in production use by national agencies. QGIS was recognised as a Digital Public Good by the Digital Public Goods Alliance in February 2025 [22] — a useful precedent for the classification of the platform proposed here.

Function Component Licence
Desktop GIS QGIS GPL-2.0-or-later
Raster/vector I/O and reprojection GDAL/OGR MIT/X-style
Spatial database PostgreSQL + PostGIS PostgreSQL Licence + GPL-2.0-or-later
Imagery catalogue STAC spec, pystac, pystac-client, stac-fastapi, pgstac Apache-2.0 / MIT
Data cubes and processing Open Data Cube; openEO Apache-2.0
Archive access eodag; CDSE OData/STAC/S3 clients Apache-2.0
Array processing numpy, xarray, dask, rasterio, rioxarray BSD-3 / Apache-2.0
Image analysis and ML scikit-image, scikit-learn, TorchGeo, segment-geospatial BSD-3 / MIT
SAR and InSAR ESA SNAP; ISCE2; MintPy; LiCSBAS; Orfeo ToolBox GPL-3.0 / Apache-2.0
Tiles and services TiTiler, GeoServer, pygeoapi MIT / GPL-2.0
Portal and catalogue GeoNode, CKAN GPL-3.0 / AGPL-3.0
Web mapping MapLibre GL JS, deck.gl, leafmap BSD-3 / MIT
Orchestration Apache Airflow, Prefect Apache-2.0
Analytics DuckDB, GeoParquet, Apache Superset MIT / Apache-2.0
Identity Keycloak Apache-2.0

2.6.2 What does not exist in open source

There is no credible open-source equivalent of Deswik, Vulcan, Surpac, Datamine or Leapfrog. GemPy is an excellent open-source implicit geological modeller and pygslib covers geostatistics, but neither is a mine-planning system, and the gap in scheduling, reserve reporting and metallurgical accounting is total.

This does not matter for the public mirror, because those are rows 10–12 of the asymmetry table: capabilities a regulator does not need. It matters enormously if anyone proposes an open-source alternative for operators, which is a different and much harder project. Keeping the two apart is important; conflating them is the fastest way to lose an audience of engineers.

2.6.3 A licensing caution

MinIO's community edition entered maintenance mode and was archived over 2025–2026, after features were stripped from the AGPL build. Any architecture that assumed MinIO as its S3 layer now has a problem. Use SeaweedFS (Apache-2.0), Garage (AGPL-3.0), Ceph RGW, or the sovereign cloud's own object store.

The general lesson is procurement policy rather than technology choice: pin to OSI-approved licences, keep an exit path documented for every dependency, and re-verify licences at each procurement cycle. Source-available relicensing has continued to catch infrastructure projects, and a public body that discovers this after deployment has a much worse problem than one that planned for it.


2.7 What already exists in the public interest — and why it is not enough

Real, working, credible systems already do parts of this.

Amazon Mining Watch (Earth Genome / Earthrise Media, with the Pulitzer Center) covers all nine Amazonian countries [7, 6]. Its detector is an ensemble of six convolutional networks over 48×48×13 Sentinel-2 patches — roughly 480 m on a side — mostly around 800k parameters, with one smaller model, averaged; it runs on multi-month median composites across the 8.2 million km² basin. On a Venezuela geographic holdout it reports 99.4% specificity and 89.5% sensitivity; combined evaluation gives 99.8% / 92.4%. Scar masks are derived with SAM2. Code is MIT, data products CC BY 4.0, bulk outputs on Source Cooperative.

MAAP publishes near-real-time gold-mining deforestation analyses for the Andean Amazon. SkyTruth builds free, open tools including a mountaintop-mining tracker. MapBiomas produces the annual Brazilian series. Global Energy Monitor and the Global Tailings Portal maintain the facility registers. Code for Africa has begun an Africa Mining Watch.

This is excellent work and the architecture proposed here should consume its outputs rather than duplicate them — Amazon Mining Watch's detector is better than the rule-based one in the prototype, and section 9 says so explicitly.

But none of them produces an administrable act. They produce maps, datasets and journalism. What they do not produce — because it is not their job — is a record that an official can put their name to, that names a legal basis, that opens a response window for the party affected, that records what that party said, and that a court can accept. The distance between "an AI model scored this pixel 0.87" and "the holder of title 830.123/2018 is notified that 36.6 hectares of disturbance were observed outside its polygon between these dates, on this evidence, and has thirty days to respond" is the entire distance between civic technology and public administration.

That distance is the gap this project addresses.


2.8 The real design problem: translation between systems

You work with Luhmann, so let me put the argument in those terms, because it is not decoration — it determined the architecture.

A satellite detection is a communication in the register of remote sensing. It is meaningless to the legal system, which processes communications through the binary lawful/unlawful; to the administrative system, which processes them as competence, procedure and act; to the political system, which processes them as budget and mandate; and to the public sphere, which processes them as harm and responsibility. A quantity that cannot cross those boundaries stays inside the technical system and changes nothing. That is the observed fate of a great deal of very good environmental monitoring: the science is sound, the pixels are correct, and nothing happens, because the finding never became a communication any other system could operate on.

The environment "irritates" the legal system; it does not speak to it. What speaks to it is a properly formed communication. So the product requirement is not detection. It is structural coupling: an apparatus that takes an environmental irritation and produces, from it, communications that each receiving system can process by its own code.

Concretely, the same sealed finding has to be rendered five ways — not five summaries of it, five translations, each carrying the whole finding into a form the receiving system can operate on, and each explicit about what it is not claiming:

Register Artefact What it must carry What it must refuse
Technical Technical annex Every input, algorithm version, parameter, hash; a reproduction recipe Conclusions of law
Administrative Notice of observed facts Fact, applicable norm, response deadline, how to contest, where to get the raw data Any finding of infraction — that is reserved to the official who signs
Legal Evidence dossier Chain of custody, the primary/derived distinction, stated limitations, procedural history Intent, authorship, or the existence of an offence
Political Oversight brief Sites observed per member of staff, cases raised, cases cleared, what the counterfactual coverage was Hectares as a headline
Public Site card What, where, how much, in plain language; whether the operator has answered Any implication that a detection is a conviction

This is why "a software that communicates these needs properly" is the right way to have framed the request, and why the prototype puts as much code into dossier.py as into the detectors.

One consequence deserves emphasis, because it is where most monitoring platforms fail politically. The operator is a receiving system too. The notice is addressed to it; it must be able to answer; its answer must enter the same record with the same protections; and if the answer resolves the matter, the case must close visibly. A platform that only accuses produces a stream of unfalsifiable allegations, and within one budget cycle nobody in government will defend it.


2.9 Observatório SOMA: the proposal

2.9.1 The epistemic contract

One sentence governs the whole design:

Every number the system puts on a screen must be re-derivable, by a third party, from public inputs, using only the manifest that accompanies it.

That is testable, and it is tested. It is also what separates a regulator's instrument from a black box: an operator who cannot reproduce a finding cannot meaningfully contest it, and a finding that cannot be meaningfully contested will not survive judicial review.

Consequences that fall straight out of it: no proprietary imagery in the evidentiary path; no unversioned algorithms; no undocumented parameters; no model whose training data cannot be disclosed sitting on the critical path to a coercive act.

2.9.2 The eight questions

The system exists to answer eight questions, and refuses to answer others:

  1. Is there extraction where no title exists at all?
  2. Is extraction outside the polygon of the title that authorises it?
  3. Is extraction inside an area where it is categorically prohibited?
  4. Is a title recorded as dormant, suspended or merely applied-for showing activity?
  5. Is the rate of expansion changing, and when did it change?
  6. Is a tailings structure moving, and is it accelerating?
  7. Is the impounded water surface approaching the extent of its impoundment?
  8. Is what has been declared consistent with what is visible, and with the operator's own other filings?

2.9.3 Detectors, and why a rule beats a network here

The footprint detector in the prototype is a published spectral rule — NDVI below 0.30 [25], MNDWI below 0.10 [31], BSI above 0.00 [24], SWIR-1 reflectance above 0.12, morphologically cleaned, with a 0.5 ha minimum mapping unit — and not a convolutional network. A network would be more accurate. Three reasons the rule is the default and the network is the upgrade:

  1. It can be written into a decision. That threshold sentence can go into an administrative act and be contested on its merits. "The ensemble scored 0.87" cannot.
  2. It has no training-set provenance problem. A learned model imports the biases of wherever its labels came from, and when it is used to justify coercive action against a named party, that provenance becomes discoverable.
  3. It degrades legibly. When it fails, you can see which term failed.

The right architecture is both: the rule as the accountable baseline, a model (Amazon Mining Watch's is the obvious candidate — MIT-licensed, already validated) as a recall booster whose extra detections are triaged by a human before they enter a case. Never the model alone on the path to an act.

2.9.4 Due process as a state machine

Cases move through: observed → screened → corroborated → notified → contested → reviewed → substantiated | dismissed | referred → closed.

The transitions are enforced in code, not in policy:

  • No transition without a named human and their role. Automated advancement raises an exception. Software does not advance a case.
  • No notice from an uncorroborated case. A single-sensor detection is not a sufficient basis for a coercive act, so the state machine will not permit one.
  • No review while the response window is open. The case cannot proceed until the notified party has had the chance to answer or the window has expired.
  • Nothing is published before notification, and a case that is notified but unresolved is visible to the notified party and to nobody else. Publishing an unresolved allegation imposes the reputational penalty before the procedure that is supposed to decide it.
  • A dismissal publishes a summary. Being cleared is a public fact.

This is ordinary administrative due process — CF/88 art. 5, LIV and LV; Lei 9.784/1999; Article 41 of the EU Charter — expressed as a state machine so that the software cannot skip it. In the prototype's four-site portfolio, the only case that is publicly visible is the one that was cleared. That is the correct behaviour and it surprises people, which is precisely why it is worth demonstrating.

2.9.5 Evidence and the ledger

Every finding carries an EvidenceManifest: inputs (identified, sourced, timestamped, hashed), algorithms (named and versioned), every parameter, outputs (hashed), stated assumptions and stated limitations. The manifest is canonicalised and hashed itself, and appended to a hash-chained JSONL ledger in which each entry carries the hash of its predecessor. Deleting or editing any past finding invalidates every later one, detectably.

This is a hash chain, not a blockchain: no consensus, no tokens, no distributed anything. Public administration does not need distributed trust; it needs a record it can be held to. Where stronger guarantees are wanted, the ledger head can be RFC 3161 timestamped or published periodically in an official gazette — which is how notarial practice has solved this for a century.

The relevant scholarship is thin but pointed: Muhammad's analysis [21] of Earth-observation admissibility identifies exactly the vulnerability this addresses — that the path from primary data to analysed information "requires a degree of manipulation", and that authenticity is contested precisely there. His proposed remedies, data imaging and digital audit, are what the manifest and the ledger implement.

2.9.6 What the system refuses to do

Stated as design constraints, because a system's refusals are more informative than its features:

  • It does not predict tailings dam failure. It reports that a crest is moving faster than it was and recommends an engineering visit.
  • It does not compute a tonnage from a footprint and does not assess royalties owed. It ranks sites for audit and says why.
  • It does not report turbidity as contamination. It triggers a sampling campaign.
  • It does not count area inside the boundary tolerance against a holder.
  • It does not issue an administrative notice or a judicial dossier from simulated evidence — enforced by a guard with a test behind it.
  • It does not treat absence of observation as absence of activity. Observation gaps are reported as findings in their own right.

2.10 The prototype, and what it showed

2.10.1 What was built

About 6,100 lines of Python, with 720 more of tests: geometry on the ellipsoid without a geospatial stack; a scene model with per-pixel validity; a real STAC provider written against the Copernicus Data Space Ecosystem and Element 84 Earth Search; a deterministic simulator; five detectors (footprint, water, change, deformation, volume); cadastral and declaration cross-checks; the evidence manifest and ledger; the case state machine; the five-register dossier generator; chart and evidence-image rendering; a CLI; and 49 tests, all passing.

The core has no mandatory geospatial dependencies. numpy is required; scipy and scikit-image are used where present. GDAL, rasterio, shapely and pyproj are optional accelerators. A municipal environment agency with one laptop and no procurement budget can run the detection library. That was a design goal, not an accident.

2.10.2 Why the demonstration runs on simulated imagery

The sandbox this was built in has no outbound network access to STAC endpoints, so the pipeline could not be pointed at live Copernicus data. Rather than ship pseudocode, the provider interface was split: a real StacSentinel2Provider written against the live APIs, and a SyntheticProvider that generates physically plausible Sentinel-2 L2A reflectance for a simulated site — including a growing pit, a tailings impoundment, haul roads, a river, seasonal cloud with wet-season loss, and a paired DEM.

That turned out to be worth keeping regardless, for three reasons an adopting agency will recognise: detectors can be regression-tested against known ground truth, so a threshold change that costs 3 ha of recall shows up in CI; an agency can watch the system find something it already knows the answer to before trusting it on something it does not; and the whole pipeline is demonstrable with no network at all, in a prosecutor's office or a hearing room.

2.10.3 Results

The simulator was configured with a known truth: routine expansion at about 0.7 ha per month, stepping up to about 4.5 ha per month in July 2025, with the working face crossing the licence boundary in September 2025 into an adjacent conservation unit.

Running blind on the resulting imagery, the pipeline reported:

Quantity Detected Simulated truth
Disturbed surface, July 2026 129.7 ha 126.2 ha
Growth rate before the change 0.70 ha/month ~0.71 ha/month
Growth rate after the change 4.65 ha/month ~4.5 ha/month
Date of the rate change May 2025 July 2025
Outside the licensed polygon 36.6 ha (by construction, post-Sept 2025)
Inside the conservation unit 30.6 ha (by construction)
Impounded water, peak 22.3 ha 22.3 ha

Areas track truth to within a few per cent on fully observed dates. The rate change was found and quantified correctly; its date was recovered two months early, which is an honest characterisation of what a breakpoint fit on monthly composites can do and is reported as such rather than smoothed over.

Equally important is what the system did not report. Of four sites in the demo portfolio, one was entirely compliant. It was raised by the routine screen, examined, and cleared — and it is the only one of the four whose case is publicly visible, because the other three are either pre-notification or notified-and-unresolved. A steady site did not get a spurious "rate change" alert; that required adding a guard requiring the two segment slopes to be statistically separated, without which quiet sites reported regime changes every time a short cloud-thinned series wobbled. That guard has a regression test, because a system that cries wolf about rate changes stops being read within a month.

2.10.4 Honest limits of the prototype

  • Simulated imagery is not real imagery. Real scenes have terrain shadow, haze, sensor artefacts, agricultural bare soil that looks spectrally like a mine, and burn scars. The false-positive rate on real data is unknown and must be measured before deployment.
  • Thresholds are humid-tropical defaults. They must be calibrated against local ground truth for any other setting.
  • The InSAR module consumes displacement time series; it does not process interferograms. For Europe, EGMS supplies them. Elsewhere, the ISCE2/SNAP + MintPy chain must be stood up, and that is real work.
  • The volumetric module was exercised on a synthetic DEM pair with a known excavation. On real DEMs the systematic co-registration error dominates, which the error model reflects but which no error model can remove — that requires co-registration on stable ground.

2.11 Deploying it

2.11.1 Three tiers

Tier 1 — a municipality or a prosecutor's office. One analyst, a laptop, QGIS, the detection library, imagery pulled from the Copernicus free tier for a handful of sites. Runs offline. Produces annexes and notices for cases someone is already working. Standing up takes weeks, not years, and costs the analyst's time.

Tier 2 — a state environmental agency. A modest server, PostGIS, Airflow, a STAC catalogue, twenty to a few hundred sites on a monthly cadence, a public portal under the access-to-information regime. One or two technical staff plus the inspectors who already exist.

Tier 3 — a national regulator. Full cadastral coverage, systematic screening of every active title, the tailings register wired to a deformation service, integration with the royalty system, published open data, an API. This is where the TCU's finding gets answered: not by hiring back the 41.9% of ANM's workforce that was lost, but by making sure that the 173 inspections a year that do happen are aimed at the right 173 sites.

2.11.2 Cost

Data: zero, within quotas that are not binding at this scale. Software: zero in licence terms, with all components OSI-licensed. Compute and storage: modest — this is embarrassingly parallel work on 10 m imagery over small areas, and a mid-sized server handles a national programme.

The real cost is people, and it is not small: analysts to triage, technical officers to corroborate, officials to sign, lawyers to draft, and the institutional will to act on what comes out. Any proposal that presents this as a technology purchase rather than a capacity programme is misrepresenting it.

2.11.3 Sovereignty and the digital public good route

The platform should be developed as a digital public good: OSI-approved licence, open standards (STAC, OGC API, GeoParquet, COG), no vendor lock-in, deployable on national infrastructure or air-gapped. QGIS's recognition by the Digital Public Goods Alliance in February 2025 is the precedent and the DPG Standard is the checklist.

The reason is not ideological. A mining regulator's monitoring system that runs on a foreign commercial platform is a monitoring system whose continuity depends on a commercial relationship the regulator does not control, in a sector where the regulated parties are large enough to have views about that. Sovereignty here is a risk control.


2.12 Objections, taken seriously

"This is surveillance." It is observation of industrial activity on public land under public licence, from data anyone may download, of sites whose coordinates are already published in the cadastre. It is not observation of persons. The design deliberately excludes anything at the resolution where individuals become identifiable and works with 10 m public imagery rather than sub-metre commercial imagery. The word in your original message is the right word for the function and the wrong word for the politics; "oversight" or "verification" will get further.

"Satellite evidence will not hold up." Sometimes it will not, and the honest response is to build for that rather than deny it. The manifest, the version pinning, the parameter record, the hash chain and the reproduction recipe exist because the vulnerability is real and identified in the literature. Note also that the system's outputs are mostly not offered as proof of an offence: they are offered as the basis for a notice that opens a procedure. That is a much lower and much more defensible bar.

"The agency cannot act on more alerts than it already ignores." This is the strongest objection and the reason severity ranking and the dismissal path are in the design. The system's value at Tier 3 is not more alerts; it is the same number of inspections aimed better. An oversight brief that reports sites-per-inspector and cases-cleared, rather than hectares detected, is written for exactly this argument.

"Operators will game it." Some will. Working under cloud, revegetating quickly, staging material to look like a stockpile. Radar defeats the first; the archive defeats the second; DEM differencing constrains the third. More to the point, gaming a public detector is expensive and detectable, and the operators most likely to try are the ones whose behaviour you most want to make expensive.

"It will be used politically." Yes — any oversight instrument can be. The mitigations are structural, not rhetorical: publication rules that prevent an unresolved allegation being aired; a dismissal path that is public; an evidence chain that makes selective deletion detectable; and outputs anyone can reproduce, so a politically motivated finding can be checked by the other side.

"False positives will destroy its credibility." Correct, and this is the operational risk that matters most. Hence the minimum mapping unit, the boundary tolerance applied in the holder's favour, the corroboration requirement before any notice, the separated-slopes guard on rate changes, and the treatment of dismissal as a quality metric rather than a failure. A screening system with a zero dismissal rate is not screening; it is confirming what was already believed.

"This duplicates MapBiomas / Amazon Mining Watch / the agency's own system." It consumes them rather than duplicating them. What none of them provides is the administrative and evidentiary layer, and that is the deliverable.


2.13 What I would do next

Months 0–3 — prove it on real imagery. Point the STAC provider at the Copernicus Data Space Ecosystem. Take twenty Brazilian sites with known outcomes — ideally ones with existing ANM or MPF proceedings, so ground truth exists — and measure precision and recall on real data. Publish the confusion matrix. This is the step that either validates or kills the project and it should come first.

Months 3–6 — calibrate and harden. Local thresholds. Add the Amazon Mining Watch model as a second opinion. Wire SIGMINE, CFEM and SIGBM ingestion to the live endpoints. Build the ISCE2/MintPy chain for one tailings structure and compare it against whatever instrumented record exists.

Months 6–9 — put it in front of an institution. Not a pilot deployment: a single real case, worked end to end with a real official, through notification and response, to a real outcome. Everything you learn that matters, you learn there.

Months 9–12 — publish. Code under an OSI licence, submitted to the DPG registry. Methodology paper. An open-data endpoint for the findings that are lawfully publishable. Then approach a second jurisdiction, because the second deployment is what proves it is a platform rather than a project.

A note on where to start institutionally. Do not start with the mining regulator. Start with the audit court or the public prosecutor — a body whose mandate is oversight rather than sector development, which has an existing information-request power, and which has already publicly identified the capability gap. The TCU has done exactly that in writing. An instrument that answers a finding the institution has already made about itself has a much easier path than one that arrives as an outside critique.


3 Technical Architecture

Observatório SOMA. An open mirror of the mining operator's software stack, for the public sector. Version 0.1.0 · companion specification to §2.

3.1 Design contract

Everything below follows from one commitment:

Every number the system puts on a screen must be re-derivable, by a third party, from public inputs, using only the manifest that accompanies it.

Six consequences, each of which is a hard constraint rather than a preference:

Constraint Because
No proprietary imagery on the evidentiary path A finding the affected party cannot reproduce cannot be meaningfully contested
Every algorithm versioned; behaviour change requires a version bump Otherwise past findings are silently invalidated — the geospatial equivalent of losing the chain of custody
Every parameter recorded in the manifest, not in a config file somewhere A threshold that is not in the record is a threshold nobody can challenge
No model whose training data cannot be disclosed on the path to a coercive act Training-set provenance becomes discoverable the moment the output justifies action against a named party
No transition without a named human Software does not decide; officials do
Observation gaps are findings, not nulls "We could not see" and "nothing happened" are different claims and must never be collapsed

3.2 Layers

┌──────────────────────────────────────────────────────────────────────────┐
│  8  AUDIT           append-only hash-chained ledger · replay recipes     │
├──────────────────────────────────────────────────────────────────────────┤
│  7  PUBLICATION     OGC API Features/Tiles/Records · open-data export    │
│                     public portal · notification channels                │
├──────────────────────────────────────────────────────────────────────────┤
│  6  TRANSLATION     technical annex · administrative notice ·            │
│                     judicial dossier · oversight brief · public card     │
├──────────────────────────────────────────────────────────────────────────┤
│  5  CASE            state machine with due process enforced in code      │
├──────────────────────────────────────────────────────────────────────────┤
│  4  RECONCILIATION  cadastre · restricted areas · declarations · filings │
├──────────────────────────────────────────────────────────────────────────┤
│  3  OBSERVATION     footprint · water · change · deformation · volume    │
├──────────────────────────────────────────────────────────────────────────┤
│  2  STORE           PostGIS · object store (COG) · STAC · GeoParquet     │
├──────────────────────────────────────────────────────────────────────────┤
│  1  ACQUISITION     STAC providers · registry connectors · InSAR feeds   │
├──────────────────────────────────────────────────────────────────────────┤
│  0  PLATFORM        sovereign infrastructure · OSI-licensed throughout   │
└──────────────────────────────────────────────────────────────────────────┘

Layers 1, 3, 4, 5, 6 and 8 are implemented in the prototype. Layers 2 and 7 are specified here and are conventional; nothing about them is novel and nothing about them is hard.


3.3 Layer 1 — acquisition

3.3.1 Imagery providers

A provider turns (site geometry, date range) into a list of Scene objects. The interface is deliberately narrow so that a national deployment can add its own archive — CBERS-4A in Brazil, a regional receiving station in Africa — without touching a detector.

class SceneProvider(ABC):
    def search(self, site_id, aoi, start, end, grid=None, max_cloud=0.6) -> List[Scene]: ...

Two implementations ship:

StacSentinel2Provider — production. Written against:

Catalogue Root Collection Auth
Copernicus Data Space Ecosystem https://catalogue.dataspace.copernicus.eu/stac SENTINEL-2 yes
Element 84 Earth Search https://earth-search.aws.element84.com/v1 sentinel-2-l2a no

Handles both asset-key conventions (blue/B02, swir16/B11, scl/SCL), applies the L2A offset of −1000 for processing baseline ≥ 04.00 — getting this wrong shifts every index and is the most common Sentinel-2 pipeline error — and screens with the Scene Classification Layer, rejecting classes 0, 1, 3, 8, 9 and 10.

Composites are per-pixel medians over valid pixels within a calendar month. Median rather than mean: a single undetected cloud edge biases a mean and does not move a median, and the point of a monthly composite is to survive the tropics.

SyntheticProvider — deterministic simulation for testing, acceptance and air-gapped demonstration. Generates plausible L2A reflectance for a landscape with a growing pit, a tailings impoundment, waste dumps, haul roads, a river, seasonal cloud with occasional total wet-season loss, and a paired DEM. Every artefact it produces is stamped provider="synthetic" and the dossier layer refuses to issue a legal act from it.

3.3.2 Registry connectors

Source Endpoint Cadence
ANM SIGMINE (title polygons) dadosabertos.anm.gov.br/SIGMINE/PROCESSOS_MINERARIOS/; ArcGIS REST at geo.anm.gov.br daily
ANM Cadastro Mineiro, CFEM, SIGBM, TAH, AMB, SICOP, Dívida Ativa, DIPEM, SOPLE dados.gov.br daily to real-time
Protected areas CNUC, FUNAI, WDPA as published
EU member-state cadastres national HVD endpoints under Reg. (EU) 2023/138 — API and bulk, CC BY 4.0 per member state
EGMS ground motion egms.land.copernicus.eu annual
RADD alerts Global Forest Watch / Wageningen near-real-time
DETER / PRODES TerraBrasilis near-real-time / annual

Every connector records what it fetched, when, from where, under what licence, and with what checksum. That record is an input to the manifest and is not optional.

3.3.3 InSAR

Two paths, chosen by geography:

  • Europe — consume EGMS Level 2b/3 point products directly. Velocity and displacement time series arrive as a table; no processing.
  • Elsewhere — ISCE2 or ESA SNAP for interferograms, MintPy or LiCSBAS for time-series inversion. Heavier, wholly open, wholly reproducible.

The observation module consumes DeformationSeries objects in either case, so the downstream code does not know or care which path produced them.


3.4 Layer 2 — store

Conventional and deliberately boring:

Concern Choice Note
Vector, cases, ledger PostgreSQL 16 + PostGIS 3 The ledger is also mirrored to plain JSONL, so it survives the database
Imagery Cloud-Optimised GeoTIFF in an S3-compatible store Not MinIO — community edition archived 2025–26. Use SeaweedFS, Garage, Ceph RGW, or the sovereign cloud's own
Imagery catalogue STAC via stac-fastapi + pgstac The same standard the upstream archives use
Analytics GeoParquet + DuckDB Findings tables are small; this needs no cluster
Orchestration Apache Airflow (or Prefect) One DAG per site per cadence
Identity Keycloak Roles below

Roles. analyst (may screen), technical_officer (may corroborate), inspecting_official (may notify, may record a response), legal (may refer), coordinator (may close), public (sees only what publication rules permit). The case state machine checks the role on every transition; there is no path that bypasses it.

Retention. Manifests and ledger entries are permanent. Imagery need not be: the manifest names the granule identifiers, and the granules are re-obtainable from the public archive for as long as the archive exists — which for Copernicus is a policy commitment, not a vendor's goodwill.


3.5 Layer 3 — observation

Every detector returns an Observation, never a bare number:

@dataclass
class Observation:
    site_id: str; acquired: date
    detector: str; algorithm_version: str
    quantity: str; value: float; units: str
    valid_fraction: float          # share of the assessment area actually observable
    reliability: str               # ok | degraded | unusable
    params: dict; detail: dict; mask: Optional[np.ndarray]

reliability has three states, not two. A regulator must distinguish "we measured it" from "we half-measured it" from "we could not see". Collapsing the last two into a null is how monitoring programmes end up under-reporting activity in exactly the wet season when illegal operators prefer to work.

Visibility is judged over an assessment area, not over the scene. Cloud over an empty corner says nothing about how well the workings were seen; cloud over the workings says everything. The default assessment area is the licence polygon buffered by 1 km — wide enough to contain a plausible excursion, narrow enough that weather in the far corner does not discard a good measurement.

3.5.1 Footprint (footprint.spectral_rule v1.0.0)

disturbed = NDVI < 0.30
          & MNDWI < 0.10
          & BSI   > 0.00
          & B11   > 0.12
          & NBR   < 0.62
          & valid
→ morphological opening (r=1) then closing (r=2)
→ drop components below the 0.5 ha minimum mapping unit

Indices are the published ones (Rouse 1974; Xu 2006; Rikimaru et al. 2002; Key & Benson 2006) and the citations travel in the manifest. Thresholds are humid-tropical defaults, are parameters, and must be calibrated locally before anything is issued.

Upgrade path. Add a learned detector as a second opinion, not a replacement — the Earth Genome / Amazon Mining Watch ensemble is MIT-licensed and already validated (99.4% specificity / 89.5% sensitivity on a geographic holdout). Its extra detections are triaged by a human before they may enter a case. The rule remains the accountable baseline for anything that reaches an act.

3.5.2 Water (water.pond_extent v1.0.0)

MNDWI > 0.10 and NDVI < 0.20, opened, with a 0.5 ha minimum. Process water is separated from natural water by turbidity (NDTI) and green brightness. Restricted to the licence polygon: the question is how much water the operator is impounding, and a river crossing the scene is not that. A freeboard_proxy expresses pond area as a fraction of the impoundment's mapped extent; above 0.90 the water surface is approaching the structure's footprint.

turbidity_gradient compares NDTI between an upstream and a downstream reach of the same river, using the river as its own control to cancel most atmospheric and illumination error. Output is a screening proxy for suspended sediment and a trigger for sampling — never a water-quality determination, and the dossier says so in those words.

3.5.3 Change (change.robust_trend v1.0.0)

Fits only fully observed dates. Cloud-limited dates are lower bounds and are reported separately, never joined to the line — joining them draws a fall in the footprint that never happened.

  • Theil–Sen median-of-pairwise-slopes, with a 68% interval from the 16th/84th percentiles. Breakdown point 29%; ordinary least squares has a breakdown point of zero, which is the wrong property for cloud-screened composites.
  • Single-breakpoint search with four guards, each of which exists because without it the fit reports a regime change that is not there: 1. ≥ 5 observations each side; 2. ≥ 5 months span each side; 3. ≥ 25% improvement in residual sum of squares over the single-line fit; 4. the two segment slopes' 68% intervals must not overlap. Guard 4 does most of the work. Without it, a quiet compliant site reports a rate change every time its first few months wobble — and a regulator told about a rate change that is not there stops believing the ones that are.
  • current_rate_per_month is the post-breakpoint slope where one exists, otherwise the whole-period slope. When a series has a regime change, the whole-period slope is a blend of two rates and describes neither.
  • observation_gaps lists every interval longer than 75 days with no usable observation. Reported alongside every trend.

3.5.4 Deformation (deformation.velocity_screen v1.0.0)

Consumes persistent-scatterer series. Screens on the recent velocity (default: last 365 days) rather than the whole-history velocity, and reports both. A crest that crept at 2 mm/yr for four years and 30 mm/yr for six months has a whole-history velocity of about 6 mm/yr, which is reassuring and wrong.

Flags: velocity_exceeds_threshold (10th percentile of recent velocities beyond −10 mm/yr), accelerating (median quadratic term beyond −6 mm/yr²), and recent_velocity_at_least_double_historic.

Fewer than five coherent points over the structure returns unusable with a stated reason and a recommendation — vegetated or freshly reworked crests decorrelate, and the honest output is "this technique cannot see this structure; use corner reflectors or another method", not a number.

The module does not predict failure. It reports that a crest is moving faster than it was and that an engineering inspection is warranted.

3.5.5 Volume (volume.dem_difference v1.0.0)

Cut and fill between two elevation surfaces, with a two-term error model:

sigma_random     = sigma_z · cell_area · L · sqrt(n)      # L = correlation length, default 10 cells
sigma_systematic = bias_sigma · changed_area             # default bias_sigma = 0.5 m
sigma_total      = hypot(sigma_random, sigma_systematic)

The systematic term normally dominates and is reduced only by co-registering the two surfaces on stable ground outside the workings; a deployment must record that this was done. The naive independent-error assumption understates the interval by roughly an order of magnitude.

Output is an interval, never a point value, and is labelled material moved, not material sold — waste rock, overburden and stockpile rehandling are all included. Use as an upper bound on extraction; never as a production figure.


3.6 Layer 4 — reconciliation

3.6.1 Cadastre (crosscheck.cadastre v1.0.0)

Splits the disturbed footprint into three classes against each title:

  • confidently inside — within the polygon eroded by the boundary tolerance;
  • confidently outside — outside the polygon dilated by the tolerance;
  • indeterminate — in the annulus between them.

BOUNDARY_TOLERANCE_M = 25.0 by default: Sentinel-2 geolocation is specified better than 11 m at 95%, and cadastral vector error in most registries is of the same order or worse. The tolerance is applied in the holder's favour and indeterminate area is never counted as a violation. This single decision is the difference between a system a mining lawyer dismantles in an afternoon and one that holds.

Also emits registry notes: activity inside a dormant, suspended, expired or merely applied-for title; activity where no title of any status covers the footprint; activity inside an exploration-phase title, which does not authorise extraction.

3.6.2 Declarations (crosscheck.declaration v1.0.0)

Do not convert footprint to tonnes and compare with declared production. The conversion needs stripping ratio, ore grade, moisture, waste handling and stockpile movement, none of which are public. A demand built on that chain will not survive contest.

What the module does instead:

Check Signal
Activity without declaration ≥ 5 ha of active disturbed surface in a period with nothing declared. Needs no conversion factor at all.
Intensity against peers Declared tonnes per active hectare per month, placed in the decile distribution of comparable operations (same commodity, method, region). Bottom decile is a flag.
Growth against declaration Top-decile footprint growth combined with bottom-decile declared intensity.
Cross-filing consistency The same quantity as reported to CFEM, to shareholders, and under EU Accounting Directive Ch. 10 / ESTMA. Needs no remote sensing whatsoever and is frequently the most productive check available.

Output is an audit priority score with reasons, stamped:

SCREENING RESULT — audit prioritisation only. Not an assessment of tax or royalty owed, and not evidence of under-declaration.

Every flag ships with its innocent explanations named — waste stripping ahead of ore, stockpile build, pre-production development — because the audit exists to test them.

3.6.3 Severity

Ranked by what is at stake, not by hectares:

Level Trigger
critical deformation flags on a tailings structure; > 5 ha inside a restricted area; > 5 ha on a title that authorises nothing (requested/expired)
high > 5 ha outside the titled polygon; > 5 ha on a suspended title; audit priority ≥ 0.5; any restricted-area overlap
medium > 1 ha outside the polygon, or any declaration flag
low everything else

Ten hectares inside a conservation unit outranks fifty hectares of lawful expansion, and an accelerating crest outranks both — nothing else on the list can kill anyone.


3.7 Layer 5 — case, and due process in code

observed → screened → corroborated → notified → contested → reviewed
                          ↓              ↓          ↓          ↓
                      dismissed ←────────┴──────────┴──── substantiated → referred → closed

Enforced invariants, each with a test:

Invariant Enforcement
Every transition names a human and a role DueProcessError on empty actor
A notice requires a corroborated case administrative_notice() refuses otherwise
A case cannot be reviewed while the response window is open DueProcessError unless a response was recorded or the window expired
Nothing is public before notification public_view() returns None
A notified-but-unresolved case is visible to the notified party only PublicationState.PARTY_ONLY
A dismissal is published as a summary PublicationState.PUBLIC_SUMMARY
A response is evidence of the same rank as the state's stored, hashed, ledgered

Publication states: internal → notified_party_only → public_summary | public_full.

The reason a notified-but-unresolved case stays out of public view is not squeamishness. Publishing an unresolved allegation imposes the reputational penalty before the procedure that is supposed to decide it — and a platform that does that will, correctly, be enjoined.


3.8 Layer 6 — translation

The same sealed finding, rendered five ways. Not five summaries: five translations, each explicit about what it does not claim.

Method Register Carries Refuses
technical_annex() technical every input, algorithm, parameter, hash; reproduction recipe conclusions of law
administrative_notice() administrative fact, norm, deadline, how to contest, where to get the raw data any finding of infraction
judicial_dossier() legal custody, primary vs derived distinction, limitations, procedural history intent, authorship, existence of an offence
oversight_brief() political sites per member of staff, cases raised, cases cleared hectares as a headline
public_card() public sphere what, where, how much, in plain words; whether the operator answered any implication that a detection is a conviction

Jurisdictions are configured as LegalFrame objects carrying the applicable norms; BRAZIL and EUROPEAN_UNION ship, and the notice renders in Portuguese or English accordingly.

The synthetic-evidence guard. administrative_notice() and judicial_dossier() raise SyntheticEvidenceError if the evidence chain contains simulated inputs. The technical annex is permitted, with a SIMULATION banner.


3.9 Layer 8 — audit

EvidenceManifest — manifest_id, site_id, the regulatory question, creation timestamp, software versions, inputs (kind, identifier, source, retrieval time, licence, checksum), algorithms (name, version, parameters, reference), outputs (name, value, units, digest), assumptions, limitations, jurisdiction, evidential status, prev_hash, manifest_hash. Canonical JSON — sorted keys, no incidental whitespace — so one serialisation gives one hash.

Ledger — append-only JSONL, each entry carrying the hash of its predecessor. verify_chain() re-computes every hash and every link and returns a report rather than raising: a broken chain is a fact to be reported to whoever is responsible for the register, not an exception to be swallowed.

replay_recipe() emits the commands and inputs that reproduce a finding.

For stronger guarantees than an internal chain provides, timestamp the ledger head with RFC 3161, or publish it periodically in an official gazette. This is a hash chain, not a blockchain: public administration does not need distributed trust, it needs a record it can be held to.


3.10 Dependencies and licensing

Core (mandatory): Python ≥ 3.10, numpy. That is all. Recommended: scipy, scikit-image, matplotlib, Pillow. Production: pystac-client, rasterio, GDAL, PostgreSQL + PostGIS, Airflow, Keycloak. Optional accelerators: shapely, pyproj, dask, TorchGeo.

The core has no mandatory geospatial dependencies. A municipal agency with one laptop and no procurement budget can run the detection library — a design goal, not an accident.

Licence policy: OSI-approved only; a documented exit path for every dependency; licences re-verified at each procurement cycle. MinIO is excluded (community edition archived 2025–26). AGPL components (Grafana, Metabase OSS, CKAN, Garage) are fine to run but have procurement implications if the institution modifies them and exposes them as a service.

Target classification: Digital Public Good, against the DPG Standard, following QGIS's recognition in February 2025.


3.11 Deployment tiers

Tier 1 — municipality / prosecutor Tier 2 — state agency Tier 3 — national regulator
Sites 1–20 20–500 full cadastre
Cadence on demand monthly monthly, with radar alerting between
Infrastructure one laptop, offline one server small cluster
Storage GB low TB tens of TB
Imagery cost 0 0 0 (inside CDSE free-tier quotas)
Staff 1 analyst 1–2 technical + existing inspectors small unit + existing inspectorate
Outputs annexes for cases already open portal + notices open data, API, royalty integration

3.12 What is not built, and what it would take

Gap Effort Note
Live STAC ingestion exercised against real imagery 2–4 weeks The provider is written; the sandbox had no egress. Do this first.
Precision/recall on real scenes with known outcomes 4–8 weeks The step that validates or kills the project
InSAR processing chain outside Europe 6–10 weeks ISCE2/SNAP + MintPy; Europe gets EGMS free
Learned detector as second opinion 3–5 weeks Amazon Mining Watch weights are MIT
Portal, OGC API, open-data export 6–8 weeks Conventional; GeoNode or pygeoapi
Grievance intake 4 weeks ODK/Kobo pattern
Multi-tenant identity and audit 4 weeks Keycloak
Localisation beyond pt/en ongoing The LegalFrame abstraction is the seam

3.13 Repository map

src/soma/
  geom.py                  ellipsoidal geometry, no geospatial stack
  scene.py                 the unit of observation; content hashing
  indices.py               spectral indices with citations
  providers/
    base.py                SceneProvider interface
    stac_sentinel2.py      CDSE / Earth Search — production
    synthetic.py           deterministic simulator
  detectors/
    base.py                Observation; three-state reliability
    footprint.py           disturbed-surface delineation
    water.py               pond extent, turbidity gradient, freeboard proxy
    change.py              Theil–Sen trend, guarded breakpoint, gaps
    deformation.py         InSAR velocity screen
    volume.py              DEM differencing with a two-term error model
  crosscheck/
    cadastre.py            inside / outside / indeterminate; registry notes
    declaration.py         intensity, cross-filing, audit priority
  evidence.py              manifest, canonical JSON, hash-chained ledger
  cases.py                 state machine with due process enforced
  dossier.py               the five translations; legal frames; guards
  render.py                evidence images and charts
  pipeline.py              end-to-end run for one site
  portfolio.py             the four-site demonstration
  dashboard.py             self-contained HTML build
  cli.py                   soma demo | ledger | case
tests/                     49 tests; run with pytest or tests/run_tests.py

4 Demonstration Transcript

Everything below was produced by running the delivered code on 19 August 2026 from a clean working directory. Nothing here is transcribed by hand: this section is generated by re-running each command and capturing its output.

4.1 The test suite

Runs with pytest, or with the bundled runner when pytest is not installed — which is the situation in a locked-down government environment.

$ python3 tests/run_tests.py
  ok    test_geom.test_hemisphere_area
  ok    test_geom.test_point_in_concave_ring
  ok    test_geom.test_point_in_ring
  ok    test_geom.test_square_area_at_equator

49 passed, 0 failed

4.2 The four-site portfolio

$ PYTHONPATH=src python3 -c "from soma.portfolio import run_portfolio; run_portfolio()"

SITE         SEVERITY  STATE        DISTURBED   OUTSIDE    INDET   RATE NOW
BR-PA-0001   critical  contested       129.7h     36.6h     3.6h     4.65/mo
BR-MT-0002   critical  notified         76.9h     22.5h     5.7h     1.33/mo
BR-MG-0003   high      screened         67.8h      3.3h     2.3h     0.36/mo
BR-GO-0004   low       closed           58.5h      0.2h     0.2h     0.25/mo

What each site is

  • BR-PA-0001 — expansion accelerates from 0.70 to 4.65 ha/month, then crosses the licence boundary into a conservation unit. Declaration does not keep pace. The holder has answered on part of it, so the case sits at contested.
  • BR-MT-0002 — sustained extraction on nothing more than a pending application. A requerimento de pesquisa authorises no works at all.
  • BR-MG-0003 — title recorded as suspended, working surface still growing, nothing declared. Its tailings structure is creeping steadily but not accelerating, so the screen deliberately does not escalate it to critical.
  • BR-GO-0004 — entirely compliant. Raised by the routine screen, examined, cleared, and closed. It is the only one of the four whose case is publicly visible.

4.3 Recovery of the simulated ground truth

The simulator was configured with routine growth at about 0.7 ha/month stepping up to about 4.5 ha/month in July 2025, with the working face crossing the licence boundary in September 2025. Running blind on the resulting imagery:

quantity                                detected   simulated truth
------------------------------------------------------------------
disturbed surface, Jul 2026 (ha)           129.7             126.2
growth before the change (ha/mo)            0.70              0.71
growth after the change (ha/mo)             4.65              4.50
date of the rate change               2025-05-01        2025-07-01
impounded water, peak (ha)                  22.3              22.3
observations used / cloud-limited          25/18         43 months

Areas track truth to within a few per cent on fully observed dates. The rate change was found and quantified correctly; its date was recovered two months early, which is an honest characterisation of what a breakpoint fit on monthly composites can do, and is reported as such rather than smoothed over.

4.4 The evidence ledger, and what happens when it is altered

$ PYTHONPATH=src python3 -m soma.cli ledger verify --root data/out/cases
{
  "entries": 4,
  "intact": true,
  "head": "9b709edf5694b13eed0b07222ace0ad7952b80c46fd2bee99f1671ce4ba5aed1",
  "problems": []
}

Now change one number in a past entry — 22.5 hectares outside the title becomes zero — and re-verify:

{
  "entries": 4,
  "intact": false,
  "head": "9b709edf5694b13eed0b07222ace0ad7952b80c46fd2bee99f1671ce4ba5aed1",
  "problems": [
    "entry 1 (MNV-b4f8c05596c1d20b) hash mismatch: stored c76b54398c93f1c180487963867792c1a023e8e4a4ec2e73a606242ce564423e, recomputed 96538b9d9422e5f735b1d798e67ca7617f99665dd918dc1aecf2bc7b1520d740"
  ]
}

The finding cannot be quietly rewritten. That property is what lets an operator prove the state's record has not been altered, and the state prove the same to a court.

4.5 Due process, enforced rather than promised

unnamed actor         -> every transition must name a responsible person and their role; automated adva
skipping notification -> cannot move a case from corroborated to substantiated. Permitted: ['notified',
review during window  -> the response window is open until 2026-09-18T05:10:40+00:00. A case cannot be 
publicly visible now  -> None

And the guard against issuing a legal act from simulated evidence:

administrative_notice -> refused: refusing to produce an administrative notice: the evidence chain c
judicial_dossier      -> refused: refusing to produce a judicial dossier: the evidence chain contain
technical_annex       -> permitted, with a SIMULATION banner

4.6 What is publishable, and when

CASE-2026-2A4FF177     publishable=True   58.5 hectares of mining disturbance mapped, all of it inside t
CASE-2026-5E1E5198     publishable=False  The holder has been notified and the response window is runnin
CASE-2026-9A84C406     publishable=False  The affected party has not yet been notified. Publishing befor
CASE-2026-B4F8C055     publishable=False  The holder has been notified and the response window is runnin

Only the cleared case is public. The other three are either pre-notification or notified and unresolved, and publishing an unresolved allegation would impose the reputational penalty before the procedure that is supposed to decide it.

5 Evidence Base

Working research notes. Every line carries a source. Verified during the research pass of 2026-08-19; re-verify before procurement, since licences and endpoints change.

5.1 The commercial stack (what operators already have)

  • Global Mining Tech 50 (IMARC / Mines and Money, 2026): the top 50 mining-tech vendors sold ~US$6.8 bn of mining/metals technology in 2025; +73.5% over five years. https://minesandmoney.com/news/industry/global-mining-tech-50-the-top-50-global-mining-metals-tech-players
  • Consolidation is accelerating and is vertical (equipment makers buying the software that plans the work their machines do):
  • Caterpillar acquired RPMGlobal (~US$728–735 m), completed February 2026. https://www.caterpillar.com/en/news/corporate-press-releases/h/rpm-global-acquisition.html https://im-mining.com/2026/02/18/caterpillar-competes-rpmglobal-acquisition-expanding-data-driven-mining-technology-and-software-solutions-2/
  • Weir acquired Micromine (~US$840 m; completed April 2025 — verified independently at https://www.mining-technology.com/news/weir-micromine-acquisition/; the IMARC write-up's ~US$800 m was the announced figure, not the completed one).
  • Sandvik owns Deswik. Bentley owns Seequent (Leapfrog, Evo).
  • Constellation Software has acquired 30+ mining software firms since 2011; flagship Datamine.
  • Epiroc has acquired 13 mining-tech firms since 2021. (all per the Global Mining Tech 50 write-up above)
  • SourceForge "Mining software / Europe" listing (the user's link) — 30 products visible, which map onto these functional layers: EHSQ (Intelex, EHS Insight, SafetyIQ, PeopleTray, Pervidi), SCADA/IIoT (FrameworX), stakeholder & grievance management (Borealis), process chemistry (HSC Chemistry / Metso), surfaces & geostatistics (Surfer, RockWorks, LogPlot8), environmental data management (EnviroDataVault/RPMGlobal, Envirosuite), inspection (Inspectivity, Dashpivot), EO access (EarthCache/SkyWatch), mine design (MineCycle/Bentley, Promine), AI on 3-D data (Strayos), metallurgical accounting (INVENTEO/Caspeo, AMIRA P754), tenure & permits (trueMINER), digital twins (MineTwin), drill & blast (MineExcellence BIMS), geotechnics (Rocscience), drone volumetrics (Propeller), short-interval control (ShiftManager/RPMGlobal), EAM (4site), automation glue (Lightship). https://sourceforge.net/software/mining/europe/ → NOTE: this is a self-declared capability list. Treated in this project as the specification the public sector has to match, not as an endorsement.

5.2 The public-sector capability gap (Brazil, measured)

Brazilian Court of Audit (TCU), 2024 ruling on ANM (Agência Nacional de Mineração): - ~R$ 16.4 bn of mining revenue not collected over eight years; R$ 12.4 bn unrecovered 2014–2021; R$ 4 bn lost to time-barred credits 2017–2021; R$ 20 bn at risk of prescription. - The CFEM enforcement team is six staff plus one chief for ~12,000 CFEM collection files. - ANM workforce fell 41.9% from 1996; 695 employees over 2010–2023. - Inspections collapsed 92%: from 2,184 audits in 2014 to 173 in 2019. - TCU ordered ANM to present, within 60 days, a plan for a collection-and-enforcement system. https://agenciabrasil.ebc.com.br/geral/noticia/2024-10/tcu-cobra-anm-por-sonegacao-de-rs-16-bi-de-mineradoras-em-impostos

ANM tailings-dam bulletin, October 2025 (published Nov 2025): - 917 tailings dams registered in SIGBM; 470 fall under the PNSB (dam-safety policy) regime. - Emergency level 3: 1; level 2: 8; level 1: 62; alert status: 22 → 93 structures in declared alert or emergency. - 1,241 dam inspections carried out in 2025 to that point. https://www.gov.br/anm/pt-br/assuntos/barragens/boletim-de-barragens-de-mineracao/boletim-mensal-outubro-2025

MapBiomas (Coleção 8 mining module, published 2023, reference year 2022): - Total mined area in Brazil 443,000 ha; garimpo 263,000 ha (59%), industrial 180,000 ha (41%). - +35,000 ha added in 2022 alone. - 92% of mined area is in the Amazon biome. - >25,000 ha inside Indigenous Lands; >78,000 ha inside Conservation Units — together 39%. - Mining inside protected territories +190% over 2018–2022; on Indigenous Lands +265%. - Five river basins hold 66% of national mining; Tapajós 20% (54,800 ha), Teles Pires 18% (48,100 ha). https://brasil.mapbiomas.org/en/2023/09/22/amazonia-concentra-mais-de-90-do-garimpo-no-brasil/ - Related MapBiomas finding: 77% of garimpo in the Amazon lies within 500 m of water [17]. https://brasil.mapbiomas.org/en/2024/04/19/77-do-garimpo-na-amazonia-esta-a-menos-de-500-metros-da-agua/

5.3 Public data that already exists (the raw material)

Brazil — ANM open data (dados.gov.br, daily/real-time)

Dataset What it gives you
SIGMINE polygons of every active/inactive mining process, SHP + KML, updated daily
Cadastro Mineiro requests, titles, holders, regimes; daily micro-datasets
CFEM (Sistema de Arrecadação) royalty payments — the declared-production proxy
SIGBM tailings dams: technical characteristics, tailings type, real-time updates
TAH annual per-hectare fee: process, year, holder, hectares, amount
AMB (Anuário Mineral Brasileiro) production and destination (sales, transfers, consumption) since 2010
SICOP administrative process control
Dívida Ativa unpaid credits registered for enforcement
DIPEM declared exploration investment by municipality and substance
SOPLE public offering / auction of available areas
https://www.gov.br/anm/pt-br/acesso-a-informacao/dados-abertos/bases-de-dados
Bulk endpoints: https://dadosabertos.anm.gov.br/SIGMINE/PROCESSOS_MINERARIOS/
ArcGIS REST service: https://geo.anm.gov.br/arcgis/rest/services/SIGMINE/dados_anm/MapServer
Public tailings viewer: https://sigbm.anm.gov.br/Publico

Brazil — INPE

Europe — Copernicus Data Space Ecosystem (CDSE)

Free-tier quotas for a "Copernicus General User" (this is the whole cost argument): - Sentinel Hub APIs: 10,000 requests/month, 10,000 processing units/month, 300 PU/min cap, 300 req/min. - openEO: 10,000 credits/month, 12 requests/min, 2 concurrent jobs. - S3 / OData / STAC: 12 TB per rolling 30 days, 2,000 req/min, 4 concurrent connections, 20 MB/s per connection; over-quota degrades to 1 MB/s rather than cutting off. - Direct HTTP COG access: 50,000 requests/month. - Access tokens valid 10 minutes, refreshable within 60. https://documentation.dataspace.copernicus.eu/Quotas.html APIs offered: OData, STAC, OpenSearch, Catalog Subscriptions, Sentinel Hub, openEO, S3, Traceability API, On-Demand Production (CARD-BS, CARD-COH6/12). https://documentation.dataspace.copernicus.eu/APIs.html

Europe — European Ground Motion Service (EGMS)

Global datasets

  • Global-scale mining polygons v2 (Maus et al. 2022, Scientific Data), PANGAEA, CC BY. https://doi.pangaea.de/10.1594/PANGAEA.942325 · https://www.nature.com/articles/s41597-022-01547-4
  • Open database on global coal and metal mine production (Jasansky et al. 2023, Scientific Data): 1,171 mines, 80 materials (6 coal types, 21 ores, 12 concentrates, 19 metals), 2000–2021, 80 countries (USA 233, Australia 213, Russia 100, South Africa 100, China 95, Brazil 89). Built by hand from >1,900 public company reports, every datum linked to its source document. GeoPackage + CSV on Zenodo under CC BY 4.0; R code on GitHub under GPL-3. Known gaps: China under-covered; copper coverage ~60–70%, gold ~30–40%; excludes artisanal mining and in-situ leaching. https://www.nature.com/articles/s41597-023-01965-y https://doi.org/10.5281/zenodo.7369478
  • Global Tailings Portal (GRID-Arendal with the Investor Mining and Tailings Safety Initiative, co-chaired by the Church of England Pensions Board and the Swedish AP funds' Council on Ethics, UNEP-supported). ~1,800 tailings facilities from ~100 companies; 20 field categories including raising method, height, volume, hazard classification, stability history, downstream impact. Only 332 of 727 surveyed listed companies responded. Searchable online; bulk download by request. https://tailing.grida.no/about
  • Global Coal Mine Tracker (Global Energy Monitor): database + wiki, validated against government sources, company reports, media, local NGOs and field contacts; methane estimated from production, gas content and emission coefficients; workforce estimated by ML where undisclosed; annual update cycle since 2023. https://globalenergymonitor.org/projects/global-coal-mine-tracker/methodology/

5.4 Public-interest monitoring that already works

5.6 Tooling caution

5.7 Environment constraints observed in this build

  • Outbound HTTP from the sandbox is proxy-restricted: package registries (PyPI, npm) and git to github.com work; arbitrary hosts (STAC endpoints, dadosabertos.anm.gov.br) do not.
  • Consequence for the prototype: real provider code is written against the live APIs, and a deterministic synthetic provider lets the whole pipeline execute here end-to-end.

5.8 Sensor facts (verified 2026-08-19, needed for honest capability claims)

Sentinel-1 (C-band SAR) - Sentinel-1D completed in-orbit commissioning and went live in 2026; user data opening 17 April 2026. Constellation now Sentinel-1A + 1C + 1D (Sentinel-1B failed and its mission ended August 2022). ESA is preparing Sentinel-1 Next Generation for continuity into the mid-2030s. https://www.esa.int/Applications/Observing_the_Earth/Copernicus/Sentinel-1/Sentinel-1D_goes_live_a_milestone_for_Europe_s_radar_mission https://dataspace.copernicus.eu/news/2026-4-16-sentinel-1d-user-data-opening-17042026 - Radar: sees through cloud and at night. This is what makes tropical mining monitoring possible at all — optical alone loses the wet season.

Sentinel-2 (optical MSI) - 13 spectral bands: four at 10 m, six at 20 m, three at 60 m. Swath 290 km. - Revisit: 10 days with one satellite, 5 days with two, 2–3 days at mid-latitudes. Sentinel-2C launched 5 Sept 2024 and replaced 2A on 21 Jan 2025; 2A resumed on 13 Mar 2025 in an orbit 36° from 2B, giving a three-satellite constellation; the 2A extension campaign has been prolonged to the end of 2026. - L1C (top-of-atmosphere) global from 2015; L2A (surface reflectance) is the analysis-ready product. https://documentation.dataspace.copernicus.eu/Data/SentinelMissions/Sentinel2.html https://dataspace.copernicus.eu/news/2026-5-15-sentinel-2a-extension-campaign-prolonged-until-end-2026

Copernicus DEM - GLO-30 (30 m) and GLO-90 (90 m) global, ~149 M km²; EEA-10 (10 m) for 39 European countries. - Absolute vertical accuracy <4 m (90% linear error); relative <2 m on slopes ≤20%, <4 m above. - GLO-30/GLO-90 free worldwide; EEA-10 restricted to defined user categories. Cite https://doi.org/10.5270/ESA-c5d3d65. Access via Copernicus Browser, APIs, S3, OData. https://dataspace.copernicus.eu/explore-data/data-collections/copernicus-contributing-missions/collections-description/COP-DEM - Consequence: free global elevation makes volumetric change estimation a public capability, which is the closest open analogue to the drone-volumetrics products operators buy.

RADD forest disturbance alerts - Wageningen University (Laboratory of Geo-Information Science and Remote Sensing), Sentinel-1 based, 10 m, near-real-time, covering South America (13 countries), Central America (6), Africa (25), insular SE Asia (5), Pacific (1). CC BY 4.0. Cite Reiche et al. 2021, Environ. Res. Lett., https://doi.org/10.1088/1748-9326/abd0a8. Distributed through Global Forest Watch. https://gee-community-catalog.org/projects/radd/

5.9 Evidence and admissibility

  • Muhammad, Alif Nurfakhri. "The Admissibility of Earth Observation Data in Legal Proceedings: A Closer Look Towards Data Imaging." Indonesia Law Review, vol. 11, no. 1, 2021. Argument: the path from primary EO data to analysed information "requires a degree of manipulation", which is exactly where authenticity is contested. Proposes data imaging and digital audit as the mechanisms that preserve admissibility, and notes there is no settled international framework. https://scholarhub.ui.ac.id/ilrev/vol11/iss1/2/
  • Design consequence for this platform: every derived product must carry its full derivation — source granule IDs, processing baseline, algorithm version, parameters, and a hash — or it is an opinion, not evidence. This is the single most important architectural requirement and the one most often missing from civic-tech monitoring tools.

5.10 Tooling-licence watch list (state as of 2026-08-19; re-verify before procurement)

Safe, well-governed, foundation-backed: - QGIS — GPL-2.0-or-later; recognised as a Digital Public Good (Feb 2025). - GDAL/OGR — MIT/X-style; OSGeo project. - PostgreSQL (PostgreSQL Licence) + PostGIS (GPL-2.0-or-later). - GeoServer (GPL-2.0), GeoNode (GPL-3.0), pygeoapi (MIT), CKAN (AGPL-3.0). - STAC ecosystem: stac-spec, pystac, pystac-client, stac-fastapi, pgstac — Apache-2.0/MIT. - Open Data Cube (Apache-2.0); openEO (Apache-2.0); eodag (Apache-2.0). - rasterio (BSD-3), rioxarray (Apache-2.0), xarray (Apache-2.0), dask (BSD-3), scikit-image / scikit-learn (BSD-3), numpy (BSD-3). - ESA SNAP (GPL-3.0); MintPy (GPL-3.0); LiCSBAS (GPL-3.0); ISCE2 (Apache-2.0); Orfeo ToolBox (Apache-2.0). - TorchGeo (MIT), leafmap / segment-geospatial (MIT), TiTiler (MIT). - MapLibre GL JS (BSD-3), deck.gl (MIT), Apache Airflow / Superset (Apache-2.0), DuckDB (MIT), Keycloak (Apache-2.0).

Do not build on without a second look: - MinIO — community edition archived / maintenance mode after AGPL build was stripped of features (2025–2026). Use SeaweedFS (Apache-2.0), Garage (AGPL-3.0), Ceph RGW, or the sovereign cloud's own S3 service instead. - Grafana (AGPL-3.0 since 2021) and Metabase OSS (AGPL-3.0) are fine to run, but AGPL has procurement implications if the institution modifies and exposes them as a service. - Sen2Cor is free-to-use ESA software but is not an OSI-approved open-source licence — prefer consuming L2A products directly rather than depending on local Sen2Cor processing.

General trend context: source-available relicensing (BSL, SSPL, FSL) has continued to bite infrastructure projects; a public-sector platform should pin to OSI-approved licences and keep an exit path for every dependency.

6 GIS Prototype

6.1 What the map prototype adds

Everything above is a mirror, a translation layer, and a due-process machine. What it has lacked, on paper, is a single surface where a case's geography and its cross-agency paper trail sit side by side — where an inspector, a prosecutor or a journalist can click a site and see not only where it is, but which registries already know about it, under which number, and whether they agree with each other.

map.html is a working prototype of that surface, built over the same four demonstration sites used throughout this document. It is delivered as a separate file rather than folded into this report, for a specific technical reason: a live map needs to fetch map tiles from a tile server over the network, and the sandboxed page this report itself is published as cannot make that kind of request. Served as its own page, the map has no such restriction.

A note on the basemap itself: the prototype fetches its tiles directly from OpenStreetMap's own servers (tile.openstreetmap.org), which need no API key. CARTO's Positron/Dark Matter tiles, which earlier versions used, now require one, and a key committed to the project's public repository could be used by anyone. OpenStreetMap's tile servers are volunteer-run infrastructure with a usage policy that blocks requests lacking a valid Referer header. A browser sends that header for a page served over http(s):// — the published site, or any local web server such as python -m http.server — and sends none for a page opened straight from disk (file://), whose tile requests are then blocked. OpenStreetMap's servers offer no dark style; in a dark browser theme the page inverts and dims the same tiles with a CSS filter.

6.2 What is on the map

An OpenStreetMap base layer (light in a light browser theme, inverted in a dark one), the four sites plotted at their (synthetic) coordinates, each with its licensed polygon, its detected disturbed-surface footprint, and — where relevant — the protected-area polygon it overlaps. Clicking a site opens a panel with:

  • The core geographic coordinates (WGS84 latitude/longitude, plus the UTM zone the pipeline actually computes in).
  • The cross-agency reference chain — for a Brazilian site, this means, side by side: the ANM mining-process number (SIGMINE/Cadastro Mineiro), the IBAMA environmental-licensing process number where the activity requires federal licensing, the ICMBio conservation-unit reference where the site overlaps one, any open FUNAI matter where the footprint touches an Indigenous Land, the INCRA settlement (assentamento) reference where the site sits on or near an agrarian-reform settlement, and the ANA (water-resources) reference where a tailings structure is involved. Not every site has an entry in every registry — that absence is itself shown, not hidden, exactly as the rest of this architecture treats an observation gap as a finding rather than a null.
  • The evidence thread — the same chain-of-custody the dossier layer already produces, shown as a short path from detection to registry: satellite scene → detector output → sealed EvidenceManifest (hash shown) → cadastral cross-check → the specific registry entries above → the case's current due-process state. This is the cybernetic point made concrete: each communication in the chain is shown, not asserted, so a reader can follow the thread to its source instead of taking the conclusion on faith.
  • An export control that produces a CSV or GeoJSON containing, per site: the geographic coordinates, the case ID, and every cross-agency identifier above — so an interested party (a prosecutor's office, a journalist, an affected community's legal representative) can take the reference numbers and go query ANM, IBAMA, ICMBio, FUNAI, INCRA or ANA directly, rather than trusting a number this system asserts.

6.3 What is synthetic, and said so

Every registry number on the map is fabricated for the prototype — clearly marked as such, in the same spirit as the rest of this project's refusal to let simulated evidence pass as real. A production deployment replaces these with live lookups against each agency's own registry (most of which — SIGMINE, the Cadastro Mineiro, SIGBM — are already catalogued in 03-catalogues.xlsx); IBAMA, ICMBio, FUNAI and INCRA do not yet have the same quality of open, bulk-downloadable registries as ANM, which is itself a finding worth stating plainly: the cross-agency reference chain is only as strong as the weakest registry in it, and today that is not ANM.

7 References

Numbered in the order first cited, in ISO 690 numeric-reference format. Bracketed markers like [1] in §§2 and 5 above point here.

[1] CATERPILLAR INC. "Caterpillar Bolsters Mining Technology Solutions with RPMGlobal Acquisition." Caterpillar Newsroom, 2026. Available from: www.caterpillar.com/en/news/corporate-press-releases/h/rpm-global-acquisition.html. [Accessed: 19 Aug. 2026].

[2] COPERNICUS DATA SPACE ECOSYSTEM. "APIs." Copernicus Data Space Ecosystem Documentation. Available from: documentation.dataspace.copernicus.eu/APIs.html. [Accessed: 19 Aug. 2026].

[3] COPERNICUS DATA SPACE ECOSYSTEM. "Quotas and Limitations." Copernicus Data Space Ecosystem Documentation. Available from: documentation.dataspace.copernicus.eu/Quotas.html. [Accessed: 19 Aug. 2026].

[4] COPERNICUS DATA SPACE ECOSYSTEM. "Sentinel-2." Copernicus Data Space Ecosystem Documentation. Available from: documentation.dataspace.copernicus.eu/Data/SentinelMissions/Sentinel2.html. [Accessed: 19 Aug. 2026].

[5] COPERNICUS DATA SPACE ECOSYSTEM. "Sentinel-1D User Data Opening from 17/04/2026." Copernicus Data Space Ecosystem, 16 Apr. 2026. Available from: dataspace.copernicus.eu/news/2026-4-16-sentinel-1d-user-data-opening-17042026. [Accessed: 19 Aug. 2026].

[6] EARTHRISE MEDIA. mining-detector. GitHub. Available from: github.com/earthrise-media/mining-detector. [Accessed: 19 Aug. 2026].

[7] EARTH GENOME. Amazon Mining Watch. Available from: amazonminingwatch.org/en. [Accessed: 19 Aug. 2026].

[8] EUROPEAN COMMISSION. Commission Implementing Regulation (EU) 2023/138 of 21 December 2022 Laying Down a List of Specific High-Value Datasets and the Arrangements for Their Publication and Re-use. EUR-Lex. Available from: eur-lex.europa.eu/eli/reg_impl/2023/138/oj/eng. [Accessed: 19 Aug. 2026].

[9] EUROPEAN COMMISSION. "Aarhus Convention." Environment. Available from: environment.ec.europa.eu/law-and-governance/aarhus_en. [Accessed: 19 Aug. 2026].

[10] EUROPEAN ENVIRONMENT AGENCY. "European Ground Motion Service." Copernicus Land Monitoring Service. Available from: land.copernicus.eu/en/products/european-ground-motion-service. [Accessed: 19 Aug. 2026].

[11] EUROPEAN SPACE AGENCY. "Sentinel-1D Goes Live: A Milestone for Europe's Radar Mission." ESA, 2026. Available from: www.esa.int/Applications/Observing_the_Earth/Copernicus/Sentinel-1/Sentinel-1D_goes_live_a_milestone_for_Europe_s_radar_mission. [Accessed: 19 Aug. 2026].

[12] EXTRACTIVE INDUSTRIES TRANSPARENCY INITIATIVE. EITI Standard 2023. EITI International Secretariat, 2023. Available from: eiti.org/sites/default/files/2023-06/2023%20EITI%20Standard.pdf. [Accessed: 19 Aug. 2026].

[13] GLOBAL ENERGY MONITOR. "Global Coal Mine Tracker: Methodology." Available from: globalenergymonitor.org/projects/global-coal-mine-tracker/methodology/. [Accessed: 19 Aug. 2026].

[14] GRID-ARENDAL. "About the Global Tailings Portal." Global Tailings Portal. Available from: tailing.grida.no/about. [Accessed: 19 Aug. 2026].

[15] JASANSKY, Simon, et al. "An Open Database on Global Coal and Metal Mine Production." Scientific Data, vol. 10, 2023. DOI: 10.1038/s41597-023-01965-y.

[16] MAPBIOMAS BRASIL. "Amazônia Concentra Mais de 90% do Garimpo no Brasil." 22 Sept. 2023. Available from: brasil.mapbiomas.org/en/2023/09/22/916-da-area-garimpada-no-brasil-ficam-no-bioma-amazonia/. [Accessed: 19 Aug. 2026].

[17] MAPBIOMAS BRASIL. "77% do Garimpo na Amazônia Está a Menos de 500 Metros da Água." 19 Apr. 2024. Available from: brasil.mapbiomas.org/en/2024/04/19/77-do-garimpo-na-amazonia-esta-a-menos-de-500-metros-da-agua/. [Accessed: 19 Aug. 2026].

[18] MAUS, Victor, et al. "An Update on Global Mining Land Use." Scientific Data, vol. 9, 2022. DOI: 10.1038/s41597-022-01547-4. Dataset: PANGAEA, DOI: 10.1594/PANGAEA.942325.

[19] MINES AND MONEY. "Global Mining Tech 50: The Top 50 Global Mining/Metals Tech Players." IMARC. Available from: minesandmoney.com/news/industry/global-mining-tech-50-the-top-50-global-mining-metals-tech-players. [Accessed: 19 Aug. 2026].

[20] MINING TECHNOLOGY. "Weir Completes Acquisition of Micromine." Mining Technology, 2025. Available from: www.mining-technology.com/news/weir-micromine-acquisition/. [Accessed: 19 Aug. 2026].

[21] MUHAMMAD, Alif Nurfakhri. "The Admissibility of Earth Observation Data in Legal Proceedings: A Closer Look Towards Data Imaging." Indonesia Law Review, vol. 11, no. 1, 2021. Available from: scholarhub.ui.ac.id/ilrev/vol11/iss1/2/. [Accessed: 19 Aug. 2026].

[22] QGIS PROJECT. "QGIS Recognized as Digital Public Good." QGIS Blog, 8 Feb. 2025. Available from: blog.qgis.org/2025/02/08/qgis-recognized-as-digital-public-good/. [Accessed: 19 Aug. 2026].

[23] REICHE, Johannes, et al. "Forest Disturbance Alerts for the Congo Basin Using Sentinel-1." Environmental Research Letters, vol. 16, no. 2, 2021. DOI: 10.1088/1748-9326/abd0a8.

[24] RIKIMARU, A., ROY, P. S., MIYATAKE, S. "Tropical Forest Cover Density Mapping." Tropical Ecology, vol. 43, no. 1, 2002, pp. 39-47.

[25] ROUSE, J. W., et al. "Monitoring Vegetation Systems in the Great Plains with ERTS." Third ERTS Symposium, NASA SP-351, 1974, pp. 309-317.

[26] SKYTRUTH. "Technology." Available from: skytruth.org/about/technology/. [Accessed: 19 Aug. 2026].

[27] SOURCEFORGE. "Mining Software in Europe." Available from: sourceforge.net/software/mining/europe/. [Accessed: 19 Aug. 2026].

[28] TRIBUNAL DE CONTAS DA UNIÃO. "TCU Cobra Agência de Mineração por Sonegação de R$ 16 bi em Impostos." Reported in Agência Brasil, 15 Oct. 2024. Available from: agenciabrasil.ebc.com.br/geral/noticia/2024-10/tcu-cobra-anm-por-sonegacao-de-rs-16-bi-de-mineradoras-em-impostos. [Accessed: 19 Aug. 2026].

[29] AGÊNCIA NACIONAL DE MINERAÇÃO. "Bases de Dados." Dados Abertos. Available from: www.gov.br/anm/pt-br/acesso-a-informacao/dados-abertos/bases-de-dados. [Accessed: 19 Aug. 2026].

[30] AGÊNCIA NACIONAL DE MINERAÇÃO. "Boletim Mensal de Barragens de Mineração — Outubro 2025." Available from: www.gov.br/anm/pt-br/assuntos/barragens/boletim-de-barragens-de-mineracao/boletim-mensal-outubro-2025. [Accessed: 19 Aug. 2026].

[31] XU, Hanqiu. "Modification of Normalised Difference Water Index (NDWI) to Enhance Open Water Features in Remotely Sensed Imagery." International Journal of Remote Sensing, vol. 27, no. 14, 2006, pp. 3025-3033.