Skip to main content

dataforge-agent-patterns

Reusable pure-Python primitives for agent projects:

from dataforge_agent_patterns import ProgressiveToolDisclosure

disclosure = ProgressiveToolDisclosure({"search": 1, "shell": 3})
assert disclosure.visible_tools(task_difficulty=2) == ("search",)

The package is intentionally independent from dataforge. Runtime imports are limited to the Python standard library, pydantic, and lazily imported z3 inside SMTVerifiedAction. It is not published to PyPI yet; use the local verification source install until Trusted Publishing ownership is configured.

Primitives

  • ProgressiveToolDisclosure - reveal tools only when task difficulty warrants them.
  • ConstitutionalFilter - wrap an agent with a safety-verdict layer.
  • ReversibleTransaction - decorate side-effect calls with rollback support.
  • SMTVerifiedAction - check structured actions with Z3 before execution.
  • CausalCascadeDetector - flag cascading effects in action graphs.

Local Verification

python -m pip install -e ".[dev]"
python -m ruff check src tests
python -m ruff format --check src tests
python -m mypy src
python -m pytest
python -m build

PyPI publishing should use GitHub Actions Trusted Publishing after a pending publisher is configured for dataforge_07_agent_patterns; do not add PyPI API tokens.

Metadata

Release files for dataforge-07-agent-patterns 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 dataforge-07-agent-patterns 0.1.0
File Size Uploaded
dataforge_07_agent_patterns-0.1.0.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dataforge-07-agent-patterns 0.1.0
File Interpreter ABI Platform
dataforge_07_agent_patterns-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.6 kB

Release files / dataforge_07_agent_patterns-0.1.0.tar.gz

Download URL dataforge_07_agent_patterns-0.1.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
eea665b2984612c12e00ef79a7f5edec758a74e1312a22acf78d1fd85abea41e
BLAKE2b-256 checksum
How to use checksums
be52615049be21f9ab6f7027fd827578da870882aaad96d4c67d450d5d076d5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 13, 2026.

Transparency log

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

Download URL dataforge_07_agent_patterns-0.1.0-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49c4950288f29e03e83278dbdbba672792440086990251467cb68e0e770ac810
BLAKE2b-256 checksum
How to use checksums
471240fd74c3a545f0a5b8dcf8ef670f877ada67fbdf0443b2b90b2e33bb0118
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

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