Schemas
A Schema is a reusable, scoped contract resource. Its identity, ownership scope, namespace, format and dialect remain stable while its draft content can be edited with optimistic concurrency. Publishing creates an immutable version containing an independent content snapshot and deterministic digest.
Consumer bindings
A Flow draft can keep its historical inline JSON Schema fields or use a SchemaBinding. A binding contains exactly one inline definition or one exact published Schema-version reference. References default to the Flow's Workspace and namespace when their scope or namespace is omitted; an explicit parent-scope reference is usable only when the Schema grants descendant use.
Flow publication resolves bindings using the format registry and requires json-schema, the format understood by Flow execution. The published Flow stores the effective JSON contract in its legacy runtime fields plus provenance containing the source address, version, UID, generation and digest. Execution never resolves a Schema again, so changing a Schema draft or losing an AEP format provider cannot change an already-published Flow version.
Missing versions, denied scopes, incompatible formats, unavailable providers and invalid definitions fail publication with stable diagnostics. Bindings do not compose or transform schemas.
Agent and Tool invocation contracts
Agent and Agentstration-owned Tool definitions can bind their input and output contracts to either an inline JSON Schema or an exact published Schema version. The Console exposes the same selector used by Flow contracts, so a reusable contract can be pinned without copying its document.
Bindings are resolved when the editable resource is saved and, for Agents, snapshotted again when an immutable revision is created. The effective JSON Schema remains materialized beside its provenance so existing execution paths do not resolve mutable resources at runtime. Agent execution continues to exchange its current text input and output; these contracts govern authoring and invocation compatibility without changing the runtime protocol.
Externally discovered MCP or AEP Tool schemas remain provider-owned and read-only. Reusable Schema bindings apply only to Tool definitions owned by Agentstration.
The Console Schema library is available under Design > Schemas. The Definition tab owns identity and description, while the Designer tab edits the native document in three modes:
- Visual uses a compact recursive property tree and a single inspector for the selected node. Properties can be renamed, reordered among siblings, nested under objects, marked as required, and configured with primitive or collection types, descriptions, defaults, string enums, and basic numeric or string bounds.
- Source uses the local Monaco editor and preserves the complete native document.
- Preview renders a sample instance form and validates the sample against the current definition.
Definitions containing composition or reference constructs such as $ref, $defs, oneOf, anyOf, allOf, conditional schemas or tuple arrays stay in source mode. The Console never converts those documents through the visual model, so opening and saving source does not silently discard content.
Built-in JSON Schema support
The standalone product registers a native json-schema provider and does not require AEP. The supported dialect is https://json-schema.org/draft/2020-12/schema.
The bounded handler validates object definitions and instances for type, properties, required, boolean additionalProperties, homogeneous items, enum, default, examples, descriptions and titles, numeric bounds, string and array length bounds, pattern, and the asserted uri and date-time formats. Date-time validation reuses JsonSchema.Net, as does the ASC document profile. Unsupported keywords and dialects return path-specific diagnostics. This bounded behavior is deliberate: it is safer to report an unsupported construct than to claim validation while ignoring it.
Format resolution is capability-based. A provider has a stable identity and version, lists its dialects and capabilities, and reports availability. Multiple capable providers require one explicit default or an exact caller pin; registration order is never used as an implicit selection policy.
Reusing response schemas and sub-schemas
OpenAPI Connected Service discovery retains declared response-schema evidence without invoking the business operation. Inspect the operation's response choice, then explicitly create a Schema draft or reuse a published Schema. Creation does not publish, adopt or grant access. The draft retains the original response definition, contract URI/digest, operation identity, status/media and source location; its executable standalone content remains reviewable before publication.
A binding can select the whole published Schema or one sub-schema using reference.schemaPath:
{
"reference": {
"name": "observations",
"version": "1.0.0",
"namespace": "default",
"scopeRef": "/instance",
"schemaPath": "/properties/results/items"
}
}
This selects each result's schema, not the envelope or the result array. It creates no additional Schema resource. Local references resolve in the parent document, with bounded size/depth and no remote fetches. Parent Use policy applies. Publishing another parent version does not change this selection.
Data Source dataset configuration offers separate adopted contracts for the raw operation response and the final projection output. A Flow projection can use the same binding controls. Declare the contract matching the actual output shape; selection alone neither splits arrays nor renames fields. Accepted acquisitions and durable Artifacts retain parent/version/path/hash evidence. Generic JSON acceptance is not structural validation.
Structured Storage collections support inline or shared bindings. Create or explicitly reconcile the Storage to adopt a version. Both document validation and the chosen query profile must support the effective schema; unsupported constraints are rejected rather than removed. Existing documents are not migrated by a binding change, and historical publications retain their original contract evidence. See ADR-0226.
AEP format contributions
An enabled AEP Extension Registration may contribute one or more additional Schema format handlers through the aep.schema-formats capability. Each contribution maps definition and instance validation to private MCP operations. These operations reuse the registration's scope, expected extension identity and credential, but they are not Agent Tools and never appear in the Tool catalog.
The adapter validates bounded structured results and enforces an operation timeout. If an extension that was discovered previously becomes unreachable, its providers remain inspectable as unavailable rather than disappearing silently. The built-in JSON Schema provider remains independent and the default; an AEP implementation for the same format must be selected by the registry's explicit default or exact provider-pin rules.
XML contracts and transformation declarations
The local format registry also provides standalone XSD 1.0 (xml-xsd) and
independent XML-to-JSON mapping declarations (xml-json-transformation). Native
XSD content is XML text, carried as a JSON string. Published mappings are exposed
explicitly as named TransformationFunctions; publication alone creates no named
function. Input XML validation and output JSON validation retain separate exact
contract evidence. See Transformation Schemas
and ADR-0260.