HydroSovereign AI Engine (HSAE) — provenance-bound transboundary water analysis with honest, data-driven indices
Project description
HydroSovereign AI Engine (HSAE) — v6.0.2
A provenance-bound, data-driven rebuild of the HydroSovereign AI Engine for transboundary water analysis under the UN Watercourses Convention (1997).
This is a clean parallel edition (hydrosovereign-hsae) that runs alongside the
legacy hydrosovereign package without replacing it.
What is different in this edition
This rebuild was undertaken to put every result on a defensible scientific footing:
- No fabricated numbers. Every index computes only from provenance-verified
observations. When required observed data are absent, the engine returns
INSUFFICIENT_DATA— it never substitutes a hard-coded constant. - Indices match their definitions.
HIFDtakes independentQ_natandQ_obs, so it cannot algebraically collapse to a constant.ATDIis the empirical mean of per-period TDI from observed inflow/outflow. - Empirical vs. normative are separated.
ATDI(empirical, hydrological) is distinct fromAWGI(an explicit, normalised, sensitivity-tested governance composite). They are never conflated. - The model is genuinely trained.
TreatyClassifieris a real gradient-boosting model trained on the TFDD treaties database, with an honest model card (F1, ROC-AUC, cross-validation, baseline). It classifies a documented treaty property — not negotiation success/failure.
Install
pip install hydrosovereign-hsae
Quick start — data with provenance
from hydrosovereign_hsae import (
DataPoint, DataQuality, DataRegistry, hifd_for_basin,
)
reg = DataRegistry()
# Anyone holding real, documented observations can contribute them.
reg.submit("GERD", DataPoint(
value=1248.0, variable="Q_obs", unit="m3/s",
source="GRDC station 1577100 (El Diem)",
source_ref="https://grdc.bafg.de/ (request 78949)",
date_start="2010-01-01", date_end="2020-12-31",
quality=DataQuality.OBSERVED), contributor="Researcher A, ORCID ...")
# Without an independent, observed Q_nat this returns INSUFFICIENT_DATA —
# never a fabricated value.
result = hifd_for_basin(reg, "GERD")
print(result.status, result.value)
Data sources
- TFDD International Freshwater Treaties Database (Oregon State University) — used to train the treaty-feature classifier.
- GRDC observed discharge — for legally-relevant index computation (contributed through the open registry).
Honesty statement
Modest model skill and INSUFFICIENT_DATA results are reported as-is. The
engine is designed so that an absence of data produces an explicit non-result
rather than a misleading number.
hydrosovereign-hsae v6.7.3 · GPL-3.0 · Seifeldin M.G. Alkhedir · ORCID 0000-0003-0821-2991
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hydrosovereign_hsae-6.7.3.tar.gz.
File metadata
- Download URL: hydrosovereign_hsae-6.7.3.tar.gz
- Upload date:
- Size: 63.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cf539e31282e8db5cbd167e31603db1104a9274115217ecfa14c8a7cb9a173e
|
|
| MD5 |
cb1645d2fbdbb54a996c131b7d0eb3fc
|
|
| BLAKE2b-256 |
9ee14492b95ed326d3d1f2c318b9e64af090d7f38f166e527a210766d20e2acd
|
Provenance
The following attestation bundles were made for hydrosovereign_hsae-6.7.3.tar.gz:
Publisher:
release.yml on saifeldinkhedir-coder/HydroSovereign-AI-Engine-HSAE-v602
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hydrosovereign_hsae-6.7.3.tar.gz -
Subject digest:
4cf539e31282e8db5cbd167e31603db1104a9274115217ecfa14c8a7cb9a173e - Sigstore transparency entry: 1830335829
- Sigstore integration time:
-
Permalink:
saifeldinkhedir-coder/HydroSovereign-AI-Engine-HSAE-v602@389c0cf5f26696d11a68e52e84cb1bb0c1c52bc3 -
Branch / Tag:
refs/tags/v6.7.3 - Owner: https://github.com/saifeldinkhedir-coder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@389c0cf5f26696d11a68e52e84cb1bb0c1c52bc3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hydrosovereign_hsae-6.7.3-py3-none-any.whl.
File metadata
- Download URL: hydrosovereign_hsae-6.7.3-py3-none-any.whl
- Upload date:
- Size: 59.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2cf27c8536cb483869c96ba9d3f0c7092179b16a39027b10dc5d43e3e78dcc4
|
|
| MD5 |
aa6e50cbe64e39cdef6e7c412f92c945
|
|
| BLAKE2b-256 |
2fcdf51e162463eb2aa6043b0ae5f97d186d269bf6af4f12fb0091c051ce949b
|
Provenance
The following attestation bundles were made for hydrosovereign_hsae-6.7.3-py3-none-any.whl:
Publisher:
release.yml on saifeldinkhedir-coder/HydroSovereign-AI-Engine-HSAE-v602
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hydrosovereign_hsae-6.7.3-py3-none-any.whl -
Subject digest:
b2cf27c8536cb483869c96ba9d3f0c7092179b16a39027b10dc5d43e3e78dcc4 - Sigstore transparency entry: 1830336057
- Sigstore integration time:
-
Permalink:
saifeldinkhedir-coder/HydroSovereign-AI-Engine-HSAE-v602@389c0cf5f26696d11a68e52e84cb1bb0c1c52bc3 -
Branch / Tag:
refs/tags/v6.7.3 - Owner: https://github.com/saifeldinkhedir-coder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@389c0cf5f26696d11a68e52e84cb1bb0c1c52bc3 -
Trigger Event:
push
-
Statement type: