Skip to main content

Internal build of the ODGS Protocol

Project description

ODGS: Open Data Governance Standard

DOI License Version

Current Status: Candidate Reference Implementation for NEN Standards Committee 381 525 (Data, Cloud & Edge). Architecture: 5-Plane Sovereign Sidecar.

1. Abstract

The Open Data Governance Standard (ODGS) is a vendor-neutral protocol for Administrative Safety in High-Risk AI Systems.

It resolves the "Definition-Execution Gap" by strictly enforcing Configuration as Law:

  • The Legislative Plane (JSON) defines the policy.
  • The Judiciary Plane (Code) enforces it via a "Hard Stop" mechanism.

2. Repository Structure (Separation of Concerns)

This repository serves as both the Standard Definition and a Reference Implementation.

odgs-protocol-main/
├── specifications/             <-- THE STANDARD (The Law)
│   ├── 00-architecture-5-plane.md
│   ├── 01-metrics-schema.json  (Legislative Plane)
│   ├── 02-rules-schema.json    (Judiciary Plane)
│   └── 03-ontology-schema.json (Semantic Plane)
│
├── docs/                       <-- THE EVIDENCE (Technical Annex)
│   ├── ODGS_Technical_Annex.md
│   └── compliance_report_iso_42001.md
│
├── src/odgs/                   <-- THE REFERENCE IMPLEMENTATION (Python Engine)
│   ├── executive/interceptor.py (The Enforcer)
│   └── system/cli.py           (The Interface)
│
└── lib/                        <-- THE CLIENT ADAPTER (Node.js SDK)

Note on Polyglot Architecture: ODGS provides a Python Engine for heavy data engineering (dbt/Snowflake) and a Node.js Client for lightweight application sidecars. Both implementations adhere strictly to the schemas in /specifications.


3. The 5-Plane Architecture

ODGS v3.0.0 enforces the Separation of Powers required by sovereign data ecosystems.

Plane Role Function Artifact
🏛️ Legislative The Definition Defines WHAT must be governed. specifications/01-metrics-schema.json
⚖️ Judiciary The Enforcer Defines HOW to validate it. specifications/02-rules-schema.json
⚔️ Executive The Context Defines WHERE it applies. src/odgs/executive/interceptor.py
🔌 System The Interface Manages API I/O. src/odgs/system/api.py
📝 Audit The Record Proves compliance (Art. 12). git-log-adapter

Read the Architecture Overview


4. Key Capabilities

🔮 Dynamic Rule Engine

No more hardcoded logic. Rules are defined in specifications/02-rules-schema.json using secure expressions (e.g., value > 0). The Interceptor executes these rules dynamically.

🛡️ Tri-Partite Binding

Every audit log entry cryptographically binds three elements to ensure non-repudiation (Article 12):

  1. Input Data Hash: SHA-256(Payload)
  2. Definition Hash: SHA-256(Project State)
  3. Configuration Hash: SHA-256(System Configuration)

🔒 Git-as-Backend (Data Sovereignty)

We do not send your data to the cloud. ODGS uses your own filesystem as the database.

  • Zero-Trust Logging: Audit logs are written locally.
  • Immutable History: Logs are immediately committed to your local Git Repository, creating a forensic chain of custody that YOU own.

5. Quick Start (Reference Implementation)

Installation

pip install odgs
# Requires: simpleeval, GitPython

Usage (The Interceptor)

from odgs import OdgsInterceptor, ProcessBlockedException

# Initialize Sovereign Sidecar
guard = OdgsInterceptor()

try:
    # The Sovereign Handshake
    guard.intercept(
        process_urn="urn:odgs:process:O2C_S03", 
        required_integrity_hash="sha256:7f9a2b90cc...", 
        data_context={"container_id": "INVALID 123"}
    )
except ProcessBlockedException as e:
    print(f"⛔ HARD STOP: {e}")
    # Log has been committed to local git repo automatically
    sys.exit(1)

⚠️ Legal Disclaimer

ODGS provides the technical capability for Article 10 & 12 compliance; it does not guarantee legal immunity. The Organization (User) remains the sole Liability Holder. ODGS is the mechanism (The Lock); the Organization is responsible for the policy (The Key).


License

Apache License 2.0 - see LICENSE for details.

Copyright © 2026 Metric Provenance

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

odgs-3.0.0.tar.gz (189.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odgs-3.0.0-py3-none-any.whl (151.3 kB view details)

Uploaded Python 3

File details

Details for the file odgs-3.0.0.tar.gz.

File metadata

  • Download URL: odgs-3.0.0.tar.gz
  • Upload date:
  • Size: 189.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for odgs-3.0.0.tar.gz
Algorithm Hash digest
SHA256 96301de2c3361b01dc15e8023c9962c82bbbd9ce5abfce805521d5b6a91d2b36
MD5 b48fa4e6b2d5a03031bd4e16c2172379
BLAKE2b-256 e453862db8182f378269d53ab9f25aecf3b1c601cced5c96a2a46433582ab8a1

See more details on using hashes here.

File details

Details for the file odgs-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: odgs-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 151.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for odgs-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f612f8ca37485171772c8a711d7d4d3b9315eb555de321feef353d1f01d984a
MD5 d749a221708fee855bde0d2820c77b62
BLAKE2b-256 1cbd4e99c67eaf7f91132706845f53ac4f933efd21bf706ee1c95e4bae5aed07

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page