Documentation

Current reference

Autonomous build profile

OpenAgentWorks 1.1.0 adds the negotiated feature autonomous_build_v1. The core wire profile remains OpenAgentWorks 1.0.0. This profile defines a definitive build contract for the product scope frozen in the package. It does not invent missing production credentials, physical observations, permissions or legal facts.

Required contract

A package declaring this feature MUST register data/build/contract.json against the trusted schemas/build_contract.schema.json. The contract contains closed requirement and capability inventories; exactly one module owner per requirement; explicit release assignments; resolved decisions or bounded implementation delegation; detailed use cases; typed operations; UI forms; data fields, keys, relationships and lifecycle transitions; integration simulation and fault behavior; reproducible bootstrap and verification commands; and evidence requirements.

Every original in-scope requirement MUST link to a use case and implementation operation. A use case declares actors, seeded preconditions, trigger, ordered actions, observable results, data/screen bindings and executable JSON-pointer observation predicates. Primary, validation/refusal and failure/recovery branches are mandatory. Authorization, isolation, concurrency, idempotency, boundary and alternative behavior MUST be implemented when applicable; a reasoned applicability decision is required for every category. A case count is not a semantic completeness score.

Typed interfaces and lifecycle closure

Operations declare request and response schemas, permission, roles, idempotency, concurrency, transaction, diagnostics and effects. UI contracts cover nested fields and loading, empty, valid, invalid, server-error, forbidden, offline and stale states. A schema-valid body does not grant authority: authentication, membership, MFA, trusted prices and policy versions are server-derived.

Each data contract names its persisted lifecycle field and permitted transitions with events, guards and effects. Unlisted transitions MUST be refused. Immutable observations are append-only; corrections create linked records. The builder MUST generate allowed/forbidden state-pair tests and failed-guard tests from these contracts.

Decision closure

A package_default is an explicit implementation choice. A factory_delegated choice MUST have constraints and a verification rule; it is not an unresolved product question. An external_prerequisite names a fact only its accountable external party can supply. Any unresolved build decision makes readiness fail. A missing live prerequisite can block its live capability while local implementation and simulation continue.

Three distinct states

build_ready means the declared scope is closed and the supplied contracts pass package, schema, reference and coverage checks. software_complete requires actual implementation, commands and scenario observations from the same source revision. production_enabled additionally requires the specific live prerequisites and runtime evidence. These claims MUST NOT substitute for one another.

Evidence and observation protocol

A test adapter captures JSON with scenario_id, run_id, and source objects named http, database, browser, metric, artifact or event. Predicate pointers address these actual observations. Each predicate carries its capture method. Scenario initial_state business facts are local fixture inputs, never trusted production request values.

A primary request must validate against the typed command schema. Invalid requests and server-state variants may exercise rejection, multi-step adapter actions or fault injection. Test adapters MUST execute those actions against the application or its domain services; constructing observations by copying expected values is not application verification. Identifier aliases in seeds map consistently to actual generated IDs.

Local simulators MUST exercise success, refusal, duplicate, out-of-order, rate-limited, revoked and uncertain outcomes. They cannot establish live provider access or a completed production observation period.

Completion receipts

The factory emits schemas/build_result.schema.json. tooling/build_result.py verifies contract digest, complete requirement/scenario sets, unskipped successful commands, required artifacts, capture hashes, source-revision consistency and exact observation predicates. Trusted CI must attest execution provenance; a JSON receipt and hashes alone do not authenticate their author.

A receipt cannot claim full software completion while any in-scope requirement is failed, skipped, not run or blocked. A partial release may complete its own declared partition without waiting on future-release work. Whole-product completion includes all release partitions.

Tools

Run the ordinary trusted package validator first, with an explicitly supported custom adapter when required. Run tooling/build_validate.py BAG for standalone envelope and build-contract consistency checks. Use tooling/build_result.py CONTRACT RECEIPT EVIDENCE_ROOT only after application commands have executed. tooling/test_build_profile.py tests synthetic specification and proof-verifier fixtures; it does not certify an application.

Compatibility

Older packages without autonomous_build_v1 remain valid in their declared narrower scope, but MUST NOT be labelled definitive autonomous-build handoffs. An importer lacking this feature or a required product adapter must refuse it. A producer cannot obtain readiness by omitting modules, weakening schemas or moving requirements into untyped prose.