OpenAgentWorks / Developer toolkit

Inspect the handoff.
Verify the claim.

Local tools for package integrity, authoring quality, import receipts and evidence-bound delivery. Start with a sample bag, then apply the same checks to your product.

Local Python tools · Input validation · Delivery verification

Run your first check

One download.
A verifiable starting point.

Extract the specification ZIP. Open a terminal in the directory containing tooling/, schemas/ and examples/. Use a trusted Python environment and install the pinned dependencies.

The website explains the tools and supplies their source. Validation runs on your machine; this page does not upload or execute your package.

Choose a tool
Validate an included generic example
python3 -m venv .venv

# macOS / Linux
source .venv/bin/activate
# Windows PowerShell: .venv\Scripts\Activate.ps1

python3 -m pip install -r tooling/requirements.txt
python3 -B tooling/validate.py examples/minimal/bag --report input-validation.json
python3 -B tooling/lint.py examples/minimal/bag
python3 -B tooling/receipt.py examples/minimal/bag import-receipt.json

What to expectA validation result, any lint findings and an import receipt. These describe the input handoff; they do not claim that an application has been built.

Use the right check at the right moment

Before importValidate integrity and supported contracts.While authoringFind gaps and unfinished content.After executionCheck the completion claim against evidence.Across the pilotPin inputs, record issues and assess the result.

Every scenario must be executable

Schema rejection or domain refusal?

Malformed input: omit a required SKU, declare request_expectation: schema_rejection, and expect INVALID_INPUT with zero committed effects.

Out of stock: submit a complete reorder command, declare request_expectation: admissible, and seed zero available stock on the server. The prescribed result is OUT_OF_STOCK.

operation_id names the actual registered command or isolated verification procedure. Trusted stock, ownership and provider facts stay outside command values. New seed labels cannot hide conflicting outcomes.

Read the request-binding contract
Run the producer safeguards locally
python3 -B tooling/validate.py examples/autonomous-build/bag
python3 -B tooling/build_validate.py examples/autonomous-build/bag
python3 -B tooling/test_scenario_requests.py
python3 -B tooling/test_scenario_coherence.py

OpenAgentWorks 1.4.0 checks every prescribed request, including alternate, negative, security and recovery cases. These input checks are separate from application test execution.

One coherent delivery contract

Requests, outcomes and proof must agree.

Response: If a scenario asserts order_count: 1 in an operation response, that operation’s selected response schema must admit the field and integer value. A separate database observation needs its own declared verification target.

Setup: an approval-required purchase must seed an actual recorded approval. Typed setup assertions tie that fact to its requirement.

Command: a cancellation result needs an explicit cancellation command, or an already cancelled order when the operation only applies inventory effects.

Read the coherence bindings
Run the producer coherence checks
python3 -B tooling/build_validate.py examples/autonomous-build/bag
python3 -B tooling/test_scenario_coherence.py

Checks response variants, typed setup predicates and declared state transitions. Application behavior still requires execution evidence.

Included with the specification

The OpenAgentWorks toolchain.

Each tool has a defined input, output and scope. Commands with build-result, evidence or authored-bag paths require your actual artifacts.

tooling/validate.py

Package validator

Check a handoff before a factory accepts it.

Input
A complete BagIt delivery-bag directory.
Output
Structured validation results and an optional JSON report.
Example

Catch a missing acceptance reference, a changed payload hash or an unsupported required feature before building the pet store.

Run locally from the specification root
python3 -B tooling/validate.py examples/minimal/bag --report input-validation.json

Checks supported input obligations. A valid package does not establish that an application has been built or tested.

View included source
tooling/lint.py

Authoring linter

Find authoring gaps while the package is still being written.

Input
A delivery-bag directory; add --strict to fail on lint warnings.
Output
Advisory findings, including placeholder text and missing acceptance links.
Example

Flag an unfinished product description before it becomes an ambiguous instruction for a builder.

Run locally from the specification root
python3 -B tooling/lint.py examples/minimal/bag

# Use in a pipeline when warnings should fail the check
python3 -B tooling/lint.py examples/minimal/bag --strict

Lint checks writing quality. Use the validator separately to check supported conformance obligations.

View included source
tooling/build_validate.py

Build-contract checker

Check build scope, implementation bindings and every scenario request before delivery.

Input
A bag using the autonomous_build_v1 profile.
Output
Build-readiness result including scenario requests checked, declared schema rejections and invalid domain requests.
Example

A pet-store OUT_OF_STOCK scenario must provide a schema-valid reorder request. Missing SKU fields fail package validation before the factory starts.

Run locally from the specification root
python3 -B tooling/build_validate.py examples/autonomous-build/bag

Checks declared scope and contracts. It does not run application tests or supply missing credentials.

View included source
tooling/receipt.py

Import receipt generator

Record a scoped acceptance or refusal of an exact handoff.

Input
A delivery-bag directory and a receipt path outside the bag.
Output
A factory import receipt bound to the input manifest.
Example

Record that a factory accepted supported product contracts while retaining explicit blockers and compatibility boundaries.

Run locally from the specification root
python3 -B tooling/receipt.py examples/minimal/bag import-receipt.json

An import receipt records input acceptance. It is not a build-completion certificate.

View included source
tooling/validate_receipt.py

Import receipt checker

Check that an import receipt matches its bag and makes consistent claims.

Input
An import receipt JSON file, followed by its original bag.
Output
Receipt structure and semantic checks, including manifest and record references.
Example

Reject a receipt referring to a different package manifest or claiming completion without the required coverage and evidence references.

Run locally from the specification root
python3 -B tooling/validate_receipt.py import-receipt.json examples/minimal/bag

Checks the receipt's structure and claims. It does not independently reproduce the application behavior referenced by that receipt.

View included source
tooling/build_result.py

Build-evidence checker

Assess a completion claim against actual captured execution evidence.

Input
Build contract JSON, factory build-result JSON and the evidence directory.
Output
A verified scoped result, or rejection for missing, mismatched or failing evidence.
Example

Check actual API and database captures showing that a retried reorder created one order and reserved stock once.

Run locally from the specification root
# Supply these artifacts from a real application build
python3 -B tooling/build_result.py examples/autonomous-build/bag/data/build/contract.json build-result.json evidence

Requires real captures and a correctly formed result. This command is a template until those artifacts exist; it does not build the application.

View included source
tooling/pilot_validate.py

Pilot-contract checker

Check the linked agent-runtime and build-pilot obligations.

Input
A bag declaring the runtime and pilot profiles.
Output
Pilot input consistency results, including coverage and agent-boundary checks.
Example

Reject a skill that expands its agent's tool authority, or a coverage exemption with no linked justification.

Run locally from the specification root
python3 -B tooling/pilot_validate.py examples/autonomous-build/bag

Establishes pilot-input readiness. An actual build and independent review still supply the pilot evidence.

View included source
tooling/pilot.py

Delivery run manager

Initialize, document and assess a pinned build experiment.

Input
A frozen product bag and a stable name for the software factory or build agent, followed by run records, issues and execution evidence.
Output
A pinned pilot report, recorded issues, a review digest and scoped assessment.
Example

The demo label pawpilot-demo-factory identifies who ran the example. Reports are stored in a separate run folder, preserving the input package’s checksums.

Run locally from the specification root
# Example: record a named demo factory
python3 -B tooling/pilot.py init examples/autonomous-build/bag pilot-run --builder-id pawpilot-demo-factory --pilot-id first-pilot

# After recording actual review and execution evidence
python3 -B tooling/pilot.py review-digest pilot-run
python3 -B tooling/pilot.py assess examples/autonomous-build/bag pilot-run --receipt build-result.json --evidence evidence

Initialization does not launch a build. A review digest computes a binding; it does not approve the review.

View included source
tooling/pack.py

Bag sealer

Seal an authored bag after intentional content changes.

Input
A complete authored bag directory.
Output
Updated resource manifest and BagIt checksum manifests.
Example

After revising an acceptance scenario, reseal the authored package so every subsequent receipt refers to the new exact input.

Run locally from the specification root
# Modifies the authored bag; use a working copy
python3 -B tooling/pack.py authored-bag

Sealing records bytes and integrity. Validate the result separately; a checksum does not establish correct product semantics.

View included source
tooling/safe_unpack.py

Safe ZIP extractor

Unpack a product delivery ZIP through the transport checks.

Input
A product delivery ZIP with one bag root and a new empty output directory.
Output
An extracted bag, or refusal for unsafe archive members or invalid layout.
Example

Refuse path traversal or unsafe members before opening a product handoff.

Run locally from the specification root
# Use a product delivery ZIP, not the specification-distribution ZIP
python3 -B tooling/safe_unpack.py product-delivery.zip extracted-bag

Extraction is a transport step. Validate the extracted bag before using its contracts.

View included source
tooling/test_scenario_requests.py

Scenario request regression suite

Prove the producer tooling rejects malformed or unbound scenarios.

Input
The included generic autonomous-build example and deliberately mutated copies.
Output
A machine-readable pass/fail result; nonzero exit for a failed regression.
Example

Omit a required pet-store reorder field, invent an adapter selector, or label a domain refusal as schema rejection: the validator must refuse the defective contract.

Run locally from the specification root
python3 -B tooling/test_scenario_requests.py

Tests the producer guard with synthetic fixtures. It does not execute your store or certify every business rule.

View included source
tooling/test_scenario_coherence.py

Scenario coherence regression suite

Check that response oracles, seeded setup and requested transitions agree with declared contracts.

Input
The generic contract plus deliberately defective synthetic variants.
Output
A machine-readable regression result; nonzero exit if a defective contract is accepted.
Example

A scenario asserts a field forbidden by its selected response schema. The guard rejects that inconsistent contract. A separately captured database count needs its own declared verification target.

Run locally from the specification root
python3 -B tooling/test_scenario_coherence.py

Checks explicit predicates and bindings; does not infer arbitrary prose or execute the store.

View included source

Check the implementation of the standard

Run the conformance suites.

The distribution includes positive and adversarial cases for the reference tooling. These test standard behavior, separately from your application’s acceptance tests.

From the specification root
python3 -B tooling/test_conformance.py
python3 -B tooling/test_lint.py
python3 -B tooling/test_native.py
python3 -B tooling/test_scenario_requests.py
python3 -B tooling/test_scenario_coherence.py
python3 -B tooling/test_build_profile.py
python3 -B tooling/test_pilot.py