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.1

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.1
File Size Uploaded Provenance Actions
prograph_act-0.1.1.tar.gz 325.9 kB Without provenance Details for prograph_act-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 713.0 kB

Release files / prograph_act-0.1.1.tar.gz

Download URL prograph_act-0.1.1.tar.gz
Size 325.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ba0c2cc54f4cf6fa808b3c0c8f2986fd2934d85fa6c7e06c1b23c7202919c1ec
BLAKE2b-256 checksum
How to use checksums
783e3fec1ee9c4292b2d192fd090c973faf0ddad97d11c8368f271951e5525e0
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.1-py3-none-any.whl

Download URL prograph_act-0.1.1-py3-none-any.whl
Size 387.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9573423008ccca017e508502ac3a58887b292a194a6bd0aad574bfd2adec0148
BLAKE2b-256 checksum
How to use checksums
d50abeb288322e5d961b5f21263fc3757797ef7136e4bfab4e2ce472c8c3847c
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.1

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.1 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