Skip to main content

The Open Data Governance Standard (ODGS) - The Sovereign Engine for Semantic Integrity.

Project description

ODGS: Open Data Governance Standard

The Sovereign Engine for Semantic Integrity in High-Risk AI Systems

Legal Reference: Compliant with Regulation (EU) 2024/1689 (EU AI Act), Article 10 (Data Governance) and Article 12 (Record-Keeping).

License Status Compliance

1. Abstract

The Open Data Governance Standard (ODGS) is a vendor-neutral protocol for the cryptographic enforcement of Semantic Integrity.

Unlike traditional catalogs that passively observe data metadata, ODGS functions as a Runtime Interceptor (Firewall). It binds data payloads to their legal definitions at the millisecond of execution, throwing a ProcessBlockedException (Hard Stop) if Semantic Integrity is violated.

This repository serves as the Reference Implementation for transforming "Paper Governance" into "Code Governance."

2. The 3-Plane Architecture Strategy

ODGS enforces the separation of powers required by sovereign data ecosystems:

  1. 🏛️ Legislative Plane (Definitions): Standard Metrics and Terms (e.g., "Net Profit Margin"). Defined in standard_metrics.json.
  2. ⚖️ Judiciary Plane (Rules): Validation Logic and Norms (e.g., "ISO 6346 Container ID"). Defined in standard_data_rules.json.
  3. ⚔️ Executive Plane (Enforcement): Runtime Blocking of non-compliant processes. Defined in business_process_maps.json.

3. Reference Artifacts (Strict Liability)

This repository contains critical artifacts for regulatory compliance:

Artifact Function EU AI Act Article
odgs/interceptor.py Middleware. Hashes input data and blocks execution on rule failure. Art. 10 (Governance)
schemas/audit_log_v1.json Forensics. JSON Schema for immutable audit trails. Art. 12 (Logs)
examples/configurations/ Context. Defines "Safety Critical" tolerances vs "Reporting" tolerances. Annex III (High-Risk)
integrations/ LLM Bridge. LangChain adapter for RAG Agents. Art. 50 (Transparency)

4. Installation & Usage

ODGS serves two ecosystems: Python (Data/AI) and Node.js (Web/App).

A. The Sovereign Engine (Python)

Package: pip install odgs Role: The complete enforcement engine. Includes the Interceptor (Logic), CLI, and Agent.

from odgs.interceptor import OdgsInterceptor, ProcessBlockedException

# 1. Initialize the Sovereign Guard
guard = OdgsInterceptor()

# 2. Intercept Data Flow
try:
    guard.intercept(
        process_urn="urn:odgs:process:O2C_S03", 
        data_context={"container_id": "INVALID 123"}
    )
except ProcessBlockedException as e:
    # 3. FAILURE IS MANDATORY
    print("⛔ HARD STOP: Transaction Blocked by Sovereign Law.")
    sys.exit(1)

B. The Universal Engine (NPM)

Package: npm install odgs Role: The "Law Book" + "Enforcer". Now includes the Runtime Interceptor for Node.js apps.

import { OdgsInterceptor, ProcessBlockedException } from 'odgs';

const guard = new OdgsInterceptor();

try {
  guard.intercept(
    "urn:odgs:process:O2C_S03", 
    { container_id: "BAD_ID" }
  );
} catch (e) {
  if (e instanceof ProcessBlockedException) {
    console.error("⛔ JS HARD STOP: Blocked by ODGS.");
  }
}

5. The Agentic Forge

Includes a google-genai powered CLI tool to instantly generate compliance bundles for new industries.

# Generate a full ISO-compliant protocol for Pharmaceutical Supply Chains
odgs agent generate "Pharmaceutical Logistics" --api-key $GEMINI_API_KEY

Standard Body: Maintained by the Metric Provenance Version: 2.0.0 (Sovereign Release)

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-2.0.0.tar.gz (193.6 kB view details)

Uploaded Source

Built Distribution

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

odgs-2.0.0-py3-none-any.whl (114.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for odgs-2.0.0.tar.gz
Algorithm Hash digest
SHA256 77b14d8501e721feb8dd1290ad598b2a443ac093f81afc17a5ec318167c77c6b
MD5 341d2cd227c5dffbbe38198bfa65cc5a
BLAKE2b-256 7192f1f20a4f75ba13c3ae9fb560f8a1a73d6b3d7646f462bd860e960c64bff5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for odgs-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e158807d9f05d6018751decdac7542ecb9821adfabf5d4c092ff0f95808e3da
MD5 b71daa5dc05a1785e8814ffd336c05bd
BLAKE2b-256 8a69f0ea7dba8661b4484077eb0cf24773b40f967b0794c5a40ce357648beced

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