Skip to main content

ISONGraph

isongraph-ext

Prove what a graph is, where it came from, and how to show it — without changing the graph.

CI MIT License Python 3.12+ Alpha

ISONGraph stores a graph as a compact, token-efficient file. That file deliberately says nothing about who made it, where its facts came from, or how a viewer should draw it. isongraph-ext answers those three questions with small companion files that sit next to the graph and are tied to its exact bytes by SHA-256. The graph itself is never modified, and everything works offline.

graph.ison          the ordinary ISONGraph; Core reads it exactly as before
  |-- graph.igx.ison    IGX/1   binding      "is this the graph I was promised?"
  |-- graph.igpv.ison  IGPV/1  provenance   "where did this come from?"
  `-- graph.igdm.ison  IGDM/1  datamatics   "how should a viewer present it?"

Each companion is optional and independent. A consumer that knows none of them still has the whole graph.

Install

pip install isongraph-ext

Python 3.12+. Pure Python. The only dependencies are ison-graph==1.4.1 and ison-py==1.2.0, pinned exactly, because the package verifies against the Core baseline it was measured with.

Try it

Bind a graph to its bytes, verify it, then change one byte:

from ison_graph import ISONGraph
from isongraph_ext import igx

g = ISONGraph()
g.add_node("person", "ada", name="Ada")
g.add_node("person", "grace", name="Grace")
g.add_edge("knows", ("person", "ada"), ("person", "grace"))
data = g.to_ison().encode("utf-8")

binding = igx.bind(data, serialization_profile="ison-v1", producer_port="python", identity_claim="artifact")
result, decision = igx.verify_and_admit(binding, data)
print("admitted:", decision.admitted, "| steps:", ", ".join(result.steps_passed))

try:
    igx.verify(binding, data + b"\n# edited")
except igx.IGXError as e:
    print("tampered:", e.code, "at", e.step)
admitted: True | steps: V0, V1, V2, V3, V4, V5
tampered: SOURCE_BINDING_MISMATCH at V4

Verification is a fixed sequence of numbered steps, and every failure names the step and a stable error code.

Command line

python -m isongraph_ext.igx   verify graph.ison graph.igx.ison                  # exit 0 ok, 1 invalid, 64 usage
python -m isongraph_ext.igx   admit  graph.ison graph.igx.ison                  # exit 0 admitted, 2 denied
python -m isongraph_ext.igpv  verify graph.ison graph.igx.ison graph.igpv.ison [--source SHA256=PATH]
python -m isongraph_ext.igpv  origins <graph-sha256> graph.igpv.ison --node person ada
python -m isongraph_ext.igdm  verify graph.ison graph.igx.ison graph.igdm.ison

Output is itself ISON, so receipts can quote it verbatim.

What you get

Capability What it does
IGX/1 binding Pins the exact bytes, the Core version they were written with and an identity claim (none, artifact, producer_bound). Unknown capabilities are reported or refused, never silently ignored.
IGPV/1 provenance Attributes nodes and edges to source documents, with byte or line spans checked against the real bytes, and records derivation lineage: this node stands for those nodes in an earlier graph.
IGP/1 projection Selects a bounded, deterministic subgraph from explicit anchors, allow-lists, direction, depth and budgets, and returns an ordinary graph plus IGPV/1 provenance for every node and edge; recomputable from the source and the policy.
IGDM/1 datamatics Renderer-neutral presentation intent: semantic roles, emphasis, badges, groups, layout hints and accessibility text. Never colours, fonts or coordinates.

Built to be checked

  • Byte-exact. Companion files are canonical by construction: one graph, one companion, one set of bytes, one SHA-256.
  • Specified before coded. Frozen specifications for IGX/1, IGPV/1 and IGDM/1 live in the repository; the code follows them, never the reverse.
  • Conformance vectors. 217 byte-exact vectors and about 540 tests are replayed in CI on every change.
  • Pinned to a measured Core. The package embeds the Core baseline it was verified against, plus Core's conformance receipts, so identity claims are checkable rather than asserted.
  • Hostile-input safe. Parsing is bounded by explicit size and row budgets; verification reports the first failing step instead of guessing.

Examples

Four runnable demonstrations (a non-software provenance graph, a supply-chain presentation graph, a minimal generic SVG adapter and a Core-only consumer) are in the examples folder of the repository.

Status and limits

This is an early-stage (alpha) release. Know what it does not do:

  • A verified binding proves reproducibility and consistency, not authorship; producer_port is a checked claim, not authentication.
  • Provenance proves origin and lineage, not that an extracted statement is true.
  • The cross-port identity claim and lossy producer-bound admission are reserved. Revision, delta and DAG capabilities are not implemented. Projection is structural only (no property filters) and supports directed simple graphs.
  • IGDM/1 carries presentation intent only and renders nothing.
  • Python reference implementation only. Verification is an offline cost: roughly 5 seconds for a 10,000-node graph with a capability.

Source and issues · Changelog · Security policy · ISONGraph Core

MIT — Copyright (c) 2026 Mahesh Vaikri.

Metadata

Release files for isongraph-ext 0.4.0

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

Source distribution (sdist)

Source distribution for isongraph-ext 0.4.0
File Size Uploaded Provenance Actions
isongraph_ext-0.4.0.tar.gz 108.1 kB With provenance Details for isongraph_ext-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for isongraph-ext 0.4.0
File Interpreter ABI Platform Actions
isongraph_ext-0.4.0-py3-none-any.whl Python 3 none any Details for isongraph_ext-0.4.0-py3-none-any.whl

Total release size: 186.3 kB

Release files / isongraph_ext-0.4.0.tar.gz

Download URL isongraph_ext-0.4.0.tar.gz
Size 108.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3f4c465a4ef006f8a2d76029f43f6bdc5ab85a18389dbac711c8de4007645bbb
BLAKE2b-256 checksum
How to use checksums
099e280a8024ac1d72b7d53eee581c38370dfb700d5076349be8913f5af0adec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / isongraph_ext-0.4.0-py3-none-any.whl

Download URL isongraph_ext-0.4.0-py3-none-any.whl
Size 78.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34f157fdf98be70520a234dddfb11d719e2e83769f9cdfc096cce510eadbccf3
BLAKE2b-256 checksum
How to use checksums
594e75143502fb1206528ae2e88cb6aa1c882dec768b9d406f14f74ee29f0871
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Security for isongraph-ext 0.4.0

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 isongraph_ext-0.4.0.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 Nov 9, 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.

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