Skip to main content

ProAct

ProAct is the action layer over ProGraph's semantic layer. It decides and acts on your data, where it lives, and records every decision and action with its proof.

You write a decision contract: the evidence to read, the rules that decide, and the actions each outcome asks for. ProAct runs it, applies the governance you configured, writes effects such as holds and tasks into ProGraph's own store, and keeps an append-only record. Source tables are never written. ProAct provides mechanisms and does not judge what is risky or right.

Install

ProAct needs Python 3.11 or later. It installs ProGraph 1.4 or later with DuckDB and SHACL validation:

pip install prograph-act

The package installs as prograph-act and imports as proact.

The prograph-act[databricks] extra keeps the event log and the package store on Delta tables through a Databricks SQL warehouse.

Run the supply-chain demo

The demo generates 300 suppliers, runs the supplier-risk contract over them, and prints the holds it placed:

python -m proact.demo supply-chain
297 decisions; 29 actions dispatched
S00175 Arddella Castings LLC SITE-SANCTIONED
S00231 Corlundon Wiring Co CONTROL-DENIED
S00100 Feylunda Assembly LLC SITE-SANCTIONED
S00257 Quillvane Trading Ltd HIGH-RISK
S00138 Solika Components Ltd SITE-SANCTIONED
S00149 Tevika Forge BV CONTROL-DENIED
S00056 Wenfordar Castings BV SITE-SANCTIONED

python -m proact.demo supply-chain --walkthrough goes further: a second run over unchanged data, an analyst's override, a legal hold that blocks an erasure, a candidate contract version read in shadow, and the calls out to a webhook and a file drop.

The same run from Python:

import tempfile, warnings
from pathlib import Path
warnings.filterwarnings("ignore")
from proact.demo import supply_chain as demo
from proact.run import AllEligible

world = demo.build_world(Path(tempfile.mkdtemp()))            # tables, ProGraph engine, ProAct's log
cycle = world.runner.run(AllEligible(), demo.AS_OF)           # decide, record, request, act
print(len(cycle.run.packages), "decisions;", len(cycle.dispatched), "actions dispatched")
for row in world.ask(demo.HOLDS_Q):                           # SPARQL through ProGraph
    print(row["supplier"].rsplit("/", 1)[-1], row["name"], row["reason"])

The demo's contract, mapping, installation file and data generator are in proact/demo/supply_chain.

Status

0.1.0 is the first release. ProAct is pre-1.0, and its API may change between minor versions. Known limits:

  • Two runners that share one event log on a Delta warehouse can starve one another: one runner's commands keep losing the race to append.
  • Dispatch on a SQL warehouse is slow, because each action is its own transaction.

Where to go next

  • The guide: the contract, evidence, deciding, acting, the record, and what is not built yet.
  • Supply chain: the lead demo's data and mapping.
  • Anti-money laundering: the same core on a second domain, with a composite subject.
  • Turbofan: a third, with a PSL program, SHACL shapes, OWL 2 RL entailment and an approval.
  • Changelog

To work on ProAct from a clone: pip install -e ".[dev]", then python -m pytest tests examples.

Metadata

Release files for prograph-act 0.1.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 prograph-act 0.1.0
File Size Uploaded Provenance Actions
prograph_act-0.1.0.tar.gz 324.6 kB Without provenance Details for prograph_act-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for prograph-act 0.1.0
File Interpreter ABI Platform Actions
prograph_act-0.1.0-py3-none-any.whl Python 3 none any Details for prograph_act-0.1.0-py3-none-any.whl

Total release size: 710.1 kB

Release files / prograph_act-0.1.0.tar.gz

Download URL prograph_act-0.1.0.tar.gz
Size 324.6 kB
Tags Source
SHA-256 checksum
How to use checksums
89a94eb41f36068adfcc1ce187a1be1f885fc8e1d56b951a9f9dfbe1984a41b1
BLAKE2b-256 checksum
How to use checksums
478aef5f859c00a61275751831ce446985cf6f3f57ae01575304c69cd8b9d209
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / prograph_act-0.1.0-py3-none-any.whl

Download URL prograph_act-0.1.0-py3-none-any.whl
Size 385.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b15bc5bd40bdf9ce610d85e863b719669341516d3d0ba86f2a01145430b55ec0
BLAKE2b-256 checksum
How to use checksums
cc5184e89973fa4344b85c8de0a6a7399a216b53863031cfba4c5d77ac8bda20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.12.16

Security for prograph-act 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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