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.

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) and bounded persist-envelope delta projector (project_persist_envelope_delta) 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.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 agent-workflow-contracts 1.1.1
File Size Uploaded Provenance Actions
agent_workflow_contracts-1.1.1.tar.gz 94.7 kB Without provenance Details for agent_workflow_contracts-1.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 211.0 kB

Release files / agent_workflow_contracts-1.1.1.tar.gz

Download URL agent_workflow_contracts-1.1.1.tar.gz
Size 94.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7fdf16381db4486dd135c3ad2c70cca51f91d5c7b00a847bf37bb72f3b7a275b
BLAKE2b-256 checksum
How to use checksums
6fff6d9d7976bb3781dbec7be9c3be903a17cf079e1d88615648286f17a21477
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

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

Download URL agent_workflow_contracts-1.1.1-py3-none-any.whl
Size 116.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae4dbec565ef59f5279f8544fbb6948585620372a405176983adb3e37d19af61
BLAKE2b-256 checksum
How to use checksums
d829793852f18d82f68e30d30392a4f7aae4a999ec084dce24350fa292c35199
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

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

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