Skip to main content

abe-flow

Send only the actions Abe escalates to Flow's judgment service, and get back a decision, a reason and a falsifiable record.

pip install abe-ai abe-flow
export FLOW_API_KEY=fjp_live_...        # https://fjp.flowinfo.co
import os
from abe import Abe
from abe_flow import FlowResolver

abe = Abe("abe-policy.yaml", resolver=FlowResolver(api_key=os.environ["FLOW_API_KEY"]))
r = abe.check(action={"type": "purchase", "amount": 12500}, context={"agent_id": "procurement-agent"},
               evidence={"vendor_approved": True})

r.gate_decision   # "ESCALATE"  (the Gate's own call, kept in records[0])
r.decision        # "ACT" / "BLOCK" / "ESCALATE" after Flow
r.records         # (gate record, linked Flow RESOLUTION record with Flow's own JGR inside)
Gate Flow called? Result
ACT no ACT
BLOCK no (a resolver can never loosen a BLOCK) BLOCK
ESCALATE (human approval / user confirmation / evaluation failure) no ESCALATE
ESCALATE (anything else) yes Flow REACH → ACT (high/medium confidence), SKIP → BLOCK, WAIT / RESEARCH_FIRST / ESCALATE → ESCALATE

Flow unreachable, out of credits (402), rate-limited (429), slow (timeout, default 10 s), or degraded output → the result stays ESCALATE and a linked RESOLUTION record says why. Card, account, routing, IBAN, SSN, password, token and key fields are redacted before anything leaves your process (redact_keys= to extend).

Report how a Flow judgment turned out (free; improves Flow's calibration):

FlowResolver().report_outcome(r.resolution["resolver"]["reference"], "CORRECT")   # or WRONG / PARTIAL

Options: base_url (default https://resolve.flowinfo.co, env FLOW_RESOLVER_URL), timeout, accept_act_confidence (default ("high", "medium")), redact_keys, include_context, include_evidence.

Apache-2.0. The judgment itself runs on Flow's service; this package is only the client.

Metadata

Release files for abe-flow 0.1.4

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

Source distribution (sdist)

Source distribution for abe-flow 0.1.4
File Size Uploaded Provenance Actions
abe_flow-0.1.4.tar.gz 15.2 kB With provenance Details for abe_flow-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for abe-flow 0.1.4
File Interpreter ABI Platform Actions
abe_flow-0.1.4-py3-none-any.whl Python 3 none any Details for abe_flow-0.1.4-py3-none-any.whl

Total release size: 27.5 kB

Release files / abe_flow-0.1.4.tar.gz

Download URL abe_flow-0.1.4.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
61bcb99e5931d310370fae1bc6d80286baadf6f258a52a23f0ff5874b8fde04f
BLAKE2b-256 checksum
How to use checksums
434e59f5c667a9849a57a8150c35a08eee64e3149a8b413128f1781a01162d0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Oct 13, 2026.

Transparency log

Release files / abe_flow-0.1.4-py3-none-any.whl

Download URL abe_flow-0.1.4-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a91b2abd404e2fee56685c14ab4621aff9d8b6486abf9e0cc53bf323183e458b
BLAKE2b-256 checksum
How to use checksums
908fc761a90db3f4ecb6dda7592c807a8633e600cfff792eadbf10d0e8d9856c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Oct 13, 2026.

Transparency log

Security for abe-flow 0.1.4

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 abe_flow-0.1.4.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 Oct 13, 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