Skip to main content

agent_workflow_contracts

Dependency-neutral frozen pydantic wire models shared by the gateway, the product agent runtimes, and any external consumer. No gateway imports — that is the point of the split.

Owner doc: docs/reference/agent-workflow-contract-normalization-design.md — parent package README's owner page.

AgentOperationSnapshot.execution_class records the operation's work-kind. Optional role and effort declarations participate in its semantic identity; they do not resolve a model here. Both fields are omitted when None, preserving historical snapshot dumps and sealed admitted-task digests.

awaiting_approval is an attempt settlement awaiting a human decision, not success or failure. It retains the exact admitted task identity, provenance, and observed usage, with a reason but no analytical outcome or result values. Executable approval binding and continuation belong to the gateway approval owner, not these wire contracts.

ids.DecisionId / ids.parse_decision_id accept exactly four declared families: dec_<32 lowercase hex>, lowercase UUID4 (version 4 and RFC variant), approval-batch-<32 lowercase hex>, and approval-late-existing-<one-or-more lowercase hex>. Parsing preserves the supplied identity without conversion; new_decision_id mints only dec_ ids.

models.PreviewDigest is the strict string union used by GateDecisionRef.preview_digest: native bare <64 lowercase hex> argument hashes, sha256:<64 lowercase hex> content digests, or hmac-sha256-v1:<key-id>:<64 lowercase hex> argument MACs. HMAC key ids contain 1–64 characters drawn from [A-Za-z0-9_.-]. The global Digest contract remains SHA-256-only. GateDecisionRef requires preview_digest, preview_ref, and resolving_acts. Its diff_base is present only when a review base exists and is omitted otherwise; native projection belongs to the edge owner, not these contracts.

File What it is
models.py Frozen WireModel contracts including CapabilityBind, AdmittedTask, TaskResult, DeliveryEnvelopeV1/V2, WorkflowView, PublishedOutput, and ContentHandle
ids.py Declared DecisionId grammars and dec_-only minting
ticker_contract.py, research_file_contract.py Typed ticker and research-file identifier contracts
skill_runs.py Skill-run identifier grammar, parser, and sole minter
plan_preview.py Plan identifier grammar and minter, and strict PlanPreviewRef identity
artifact_identity.py Typed artifact refs, kind-specific identity validation, and run-scoped artifact minting
next_call.py Canonical NextCall / next_call contracts for next and repair tool calls
tool_registration.py Dependency-neutral static tool-registration contracts
context_refs.py exact door-readback ref minter (read_back_refs), bounded persist-envelope delta projector (project_persist_envelope_delta), and report-door analyst receipt (project_report_envelope_receipt) shared by the gateway runner, pipeline stages, and named children
schema.py public_json_schemas() / public_schema_bundle() / export_public_json_schemas()
generated/ build output — JSON Schemas, agent-workflow-contracts.d.ts, the schema bundle, and delivery-envelope goldens. Regenerate from the checkout with .venv/bin/python3 scripts/generate_agent_workflow_contracts.py; do not hand-edit.

Consumers and lifecycle: ../../agent-gateway/docs/api-reference.md (section "Workflow Delivery Contracts") The embedding application owns the workflow executor that admits and persists these contracts.

Metadata

Release files for agent-workflow-contracts 1.3.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 agent-workflow-contracts 1.3.0
File Size Uploaded Provenance Actions
agent_workflow_contracts-1.3.0.tar.gz 99.0 kB Without provenance Details for agent_workflow_contracts-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agent-workflow-contracts 1.3.0
File Interpreter ABI Platform Actions
agent_workflow_contracts-1.3.0-py3-none-any.whl Python 3 none any Details for agent_workflow_contracts-1.3.0-py3-none-any.whl

Total release size: 218.4 kB

Release files / agent_workflow_contracts-1.3.0.tar.gz

Download URL agent_workflow_contracts-1.3.0.tar.gz
Size 99.0 kB
Tags Source
SHA-256 checksum
How to use checksums
08fbe8a15b54b266f39adaec44c552d46d10e18f77dda0d1df062be8fbf4a1bf
BLAKE2b-256 checksum
How to use checksums
881a7e40cb2c0b4a8eeb5125d73d57296be5f9b5d158792cccd6368457727e49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release files / agent_workflow_contracts-1.3.0-py3-none-any.whl

Download URL agent_workflow_contracts-1.3.0-py3-none-any.whl
Size 119.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d982a1b04ef66f7b12696087728d7111fc48750edf163d0fd2a634e305b2f51c
BLAKE2b-256 checksum
How to use checksums
7e3e362e9cc34bbd397ab815fe614307b03d2dc802e4fe4b7e604f26d86ec2fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Security for agent-workflow-contracts 1.3.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.

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