Reusable agentic primitives extracted from DataForge.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dataforge_07_agent_patterns-0.1.0.tar.gz.
File metadata
- Download URL: dataforge_07_agent_patterns-0.1.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eea665b2984612c12e00ef79a7f5edec758a74e1312a22acf78d1fd85abea41e
|
|
| MD5 |
fdf02d682d7d906739d3e52ef388a804
|
|
| BLAKE2b-256 |
be52615049be21f9ab6f7027fd827578da870882aaad96d4c67d450d5d076d5b
|
Provenance
The following attestation bundles were made for dataforge_07_agent_patterns-0.1.0.tar.gz:
Publisher:
publish-dataforge-agent-patterns.yml on Aegis15/dataforge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dataforge_07_agent_patterns-0.1.0.tar.gz -
Subject digest:
eea665b2984612c12e00ef79a7f5edec758a74e1312a22acf78d1fd85abea41e - Sigstore transparency entry: 1807565195
- Sigstore integration time:
-
Permalink:
Aegis15/dataforge@d498b656734241e343673fafe1b11676b475bf60 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Aegis15
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-dataforge-agent-patterns.yml@d498b656734241e343673fafe1b11676b475bf60 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file dataforge_07_agent_patterns-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dataforge_07_agent_patterns-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49c4950288f29e03e83278dbdbba672792440086990251467cb68e0e770ac810
|
|
| MD5 |
f5a96b91929288c926369254dd7376d4
|
|
| BLAKE2b-256 |
471240fd74c3a545f0a5b8dcf8ef670f877ada67fbdf0443b2b90b2e33bb0118
|
Provenance
The following attestation bundles were made for dataforge_07_agent_patterns-0.1.0-py3-none-any.whl:
Publisher:
publish-dataforge-agent-patterns.yml on Aegis15/dataforge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dataforge_07_agent_patterns-0.1.0-py3-none-any.whl -
Subject digest:
49c4950288f29e03e83278dbdbba672792440086990251467cb68e0e770ac810 - Sigstore transparency entry: 1807565283
- Sigstore integration time:
-
Permalink:
Aegis15/dataforge@d498b656734241e343673fafe1b11676b475bf60 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Aegis15
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-dataforge-agent-patterns.yml@d498b656734241e343673fafe1b11676b475bf60 -
Trigger Event:
workflow_dispatch
-
Statement type: