Skip to main content

Evidence/dependency graph toolkit for Monogate-style artifact workflows.

Project description

monogate-graph

monogate-graph is an evidence/dependency graph toolkit for Monogate-style artifact workflows.

monogate-graph reads small JSON graph files and emits dependency order, cycle warnings, blocked-node summaries, critical-path estimates, action queues, and DOT exports.

The Python import module is eml_graph.

It does not certify evidence, prove release readiness, or make public claims.

CLI

monogate-graph validate examples/simple_release_gate.json
monogate-graph summary examples/simple_release_gate.json
monogate-graph topo examples/simple_release_gate.json
monogate-graph blocked examples/simple_release_gate.json
monogate-graph action-queue examples/simple_release_gate.json
monogate-graph export-dot examples/simple_release_gate.json
monogate-graph export-dot examples/kernel_observatory_export.json --out /tmp/observatory.dot

# Compatibility alias:
eml-graph validate examples/simple_release_gate.json

Kernel Observatory Integration

Kernel Observatory can export its cards into the eml-graph JSON shape:

python tools/kernel_observatory/observatory.py --build
python tools/kernel_observatory/observatory.py \
  --export-eml-graph /tmp/monogate_kernel_observatory_v0/observatory_graph.json

PYTHONPATH=src python -m eml_graph.cli validate \
  /tmp/monogate_kernel_observatory_v0/observatory_graph.json
PYTHONPATH=src python -m eml_graph.cli action-queue \
  /tmp/monogate_kernel_observatory_v0/observatory_graph.json

The example examples/kernel_observatory_export.json is a small fixture for the same export shape. It is intentionally much smaller than the live Observatory graph.

Graph Shape

{
  "graph_id": "example",
  "nodes": [
    {
      "id": "tests",
      "label": "Tests",
      "status": "pass",
      "weight": 1,
      "evidence_paths": ["tests/result.json"],
      "risk_flags": []
    }
  ],
  "edges": [
    {"source": "tests", "target": "release", "type": "depends_on"}
  ]
}

Edge direction means target depends on source, so topological order lists prerequisites first.

Boundaries

  • graph output is planning/evidence structure, not certification.

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

monogate_graph-0.1.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

monogate_graph-0.1.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file monogate_graph-0.1.1.tar.gz.

File metadata

  • Download URL: monogate_graph-0.1.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for monogate_graph-0.1.1.tar.gz
Algorithm Hash digest
SHA256 70b7d4984ce04e1a2db43baf0bdd58e95d5a8e05847d090274bdbbaf01886899
MD5 6d01eb666a9c98fb9a48056bb74d9a4f
BLAKE2b-256 ad4a91488d0d3580278655ae50e4e195337c1a9b09c054f2d85a9d5dabd35619

See more details on using hashes here.

File details

Details for the file monogate_graph-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: monogate_graph-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for monogate_graph-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 289b29c6bad805e5057b94f9606fe4c6e5e82ce1bc788e53a9b54f6f8b51c9ea
MD5 b5a81a2c1895dec96a5ff0e62c91487d
BLAKE2b-256 c054d03f0d173b252b526736887f6a8580f66f37843ad4480e1b6b9920f444aa

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