Skip to main content

Polydiagram — Business Flows as Governed Architecture Artifacts

Open specification, v0.1 draft.

validate code: Apache-2.0 DOI

Polydiagram makes declared business flows first-class artifacts in an architecture-as-code system and binds them to runtime telemetry by construction. A flow is a named, versioned, owner-attributed path through a typed component graph, carrying SLOs and criticality. Its identity (flow.id, flow.step) propagates as trace context, so:

  • Coverage is checkable — a declared step with no attributable telemetry is a named observability gap, found in CI/continuous evaluation, not mid-incident.
  • Drift is checkable both ways — observed-but-undeclared paths and declared-but-silent flows are conformance findings (reflexion-model triad).
  • Layers are governed files, not display state — a base Topology owns node/edge identity and layout; network, authn, and authz overlays annotate those same identities from separately owned files (include semantics with shallow-merge fragments). Click a layer to isolate: identical layout, facet-specific annotations — mTLS/X.509 and ports on the network view, IAP vs service-account identity on the authn view. Views are versioned render presets. The paper names this artifact the polymorphic diagram: many presentations, one invariant base.
  • The diagram becomes the SRE surface — live SLO burn, latency, cost, and nondeterminism level render onto the reviewed architecture canvas, because the diagram, the flows, and the telemetry share identity.

The full argument is in the paper: paper/polymorphic-diagram-preprint.md.

Builds on and extends: Flow-Based Telemetry Coverage: A Method for Measuring and Governing Observability by Business-Flow Consequence — Gray, 2026, DOI 10.5281/zenodo.21415948.

Repository layout

paper/     preprint (CC BY 4.0)
spec/      flow descriptor + layered diagram language (JSON Schema 2020-12)
examples/  worked flow, layered topology (network/authn/authz), fragments, view
tools/     reference validators (the CI gates)

Quickstart

pip install jsonschema pyyaml
python3 tools/validate_flows.py examples/retail-quote.flow.yaml \
        --registry examples/registry-stub.yaml
python3 tools/validate_diagram.py --root . \
        examples/views/security-review.view.yaml --flows-dir examples

Status

v0.1: flow descriptor schema, layered diagram language (Topology/Layer/View + domain profiles), two validators, binding conventions, worked layered example. Deliberately out of scope (contracts defined, tooling invited): canvas implementation, trace-topology discovery miner, backend-specific coverage evaluators. See paper §8–§9 for scope and limitations.

License

Code and schemas: Apache-2.0 (see LICENSE). Paper (paper/) and specification prose (spec/*.md): CC BY 4.0.

Citing

See CITATION.cff. A Zenodo DOI is minted per tagged release.

Metadata

Release files for polydiagram 0.2.2

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

Source distribution (sdist)

Source distribution for polydiagram 0.2.2
File Size Uploaded
polydiagram-0.2.2.tar.gz 23.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for polydiagram 0.2.2
File Interpreter ABI Platform
polydiagram-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 42.0 kB

Release files / polydiagram-0.2.2.tar.gz

Download URL polydiagram-0.2.2.tar.gz
Size 23.0 kB
Tags Source
SHA-256 checksum
How to use checksums
77762b154af94dee96028b8a8501425526193338c01194c90807636c91ea6c88
BLAKE2b-256 checksum
How to use checksums
787081f7d8ae5132fb1475af07628853447ea00626e95f0b36b0319d20d70ae5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Jul 24, 2026.

Transparency log

Release files / polydiagram-0.2.2-py3-none-any.whl

Download URL polydiagram-0.2.2-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18d43770b3ca77f21297eae4d7978907ec44ea6684fba0c6d6f8947490c844b8
BLAKE2b-256 checksum
How to use checksums
8b8013ea8444267aa6dd02c277508c0922fa69f4a135690a7accb5c7320521c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Jul 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

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