Skip to main content

HydroSovereign AI Engine (HSAE) — v6.0.2

Python License

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:

  1. 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.
  2. Indices match their definitions. HIFD takes independent Q_nat and Q_obs, so it cannot algebraically collapse to a constant. ATDI is the empirical mean of per-period TDI from observed inflow/outflow.
  3. Empirical vs. normative are separated. ATDI (empirical, hydrological) is distinct from AWGI (an explicit, normalised, sensitivity-tested governance composite). They are never conflated.
  4. The model is genuinely trained. TreatyClassifier is 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

Metadata

Release files for hydrosovereign-hsae 6.7.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hydrosovereign-hsae 6.7.3
File Size Uploaded Provenance Actions
hydrosovereign_hsae-6.7.3.tar.gz 63.6 kB With provenance Details for hydrosovereign_hsae-6.7.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hydrosovereign-hsae 6.7.3
File Interpreter ABI Platform Actions
hydrosovereign_hsae-6.7.3-py3-none-any.whl Python 3 none any Details for hydrosovereign_hsae-6.7.3-py3-none-any.whl

Total release size: 122.9 kB

Release files / hydrosovereign_hsae-6.7.3.tar.gz

Download URL hydrosovereign_hsae-6.7.3.tar.gz
Size 63.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4cf539e31282e8db5cbd167e31603db1104a9274115217ecfa14c8a7cb9a173e
BLAKE2b-256 checksum
How to use checksums
9ee14492b95ed326d3d1f2c318b9e64af090d7f38f166e527a210766d20e2acd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 16, 2026.

Transparency log

Release files / hydrosovereign_hsae-6.7.3-py3-none-any.whl

Download URL hydrosovereign_hsae-6.7.3-py3-none-any.whl
Size 59.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2cf27c8536cb483869c96ba9d3f0c7092179b16a39027b10dc5d43e3e78dcc4
BLAKE2b-256 checksum
How to use checksums
2fcdf51e162463eb2aa6043b0ae5f97d186d269bf6af4f12fb0091c051ce949b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 16, 2026.

Transparency log

Security for hydrosovereign-hsae 6.7.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hydrosovereign_hsae-6.7.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

6.7.3 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page