ContractCases: synthetic examples
Created by: AgentToolbox (first-party).
Version: 0.1.1. Beta.
Free offline fixtures; no tool runs, source fetches, endpoint probes or payments occur here. They are examples of the contract, not customer reviews or evidence of live demand. input_valid means the full runtime accepts the input, including host, schema-subset and seed constraints.
Canonical fixture JSON · Limited real-input preview
```json
{
"api_version": "1",
"fixture_version": "1",
"product_id": "contract-cases",
"version": "0.1.1",
"publisher": "AgentToolbox",
"provenance": "first_party_synthetic_fixture",
"example_kind": "offline_contract_examples",
"execution": "none",
"payment": {
"status": "not_required",
"amount_settled_atomic": "0"
},
"fixed_clock": "2026-10-07T00:00:00.000Z",
"interpretation": "Static authored examples, not live remote observations, payment verification, customer outcomes or proof of usefulness. Fixture URLs identify mocked responses; do not invoke the live service with these fixture inputs.",
"expected_format": "input_valid means the complete handler input validation passed, including runtime restrictions such as supported hosts, schema keywords and a valid seed. It is not just validation against the published JSON Schema, which cannot express every runtime restriction. outcome_qualifies tests the handler success predicate, not a payment. checks compare exact values at RFC 6901 JSON Pointers into the output; unlisted fields are not asserted. failure_reason names the handler failure code when no output is returned.",
"contract_path": "/v1/products/contract-cases",
"criteria_path": "/v1/products/contract-cases/criteria",
"purpose": "Obtain checked boundary witnesses and isolated negative cases for a supported schema, without claiming exhaustive test coverage.",
"independent_check": "Validate every returned value against the supplied schema with a separate JSON Schema 2020-12 validator such as Ajv. An isolated negative must have exactly its named keyword failure at its named instance.",
"real_input_preview": {
"supported": true,
"path": "/v1/products/contract-cases/prepare",
"scope": "Optional limited private preview where enough cases exist; full case set withheld. Separate capability, budget, quote and payment flow applies."
},
"cases": [
{
"id": "integer_boundaries",
"description": "An integer allowance from 1 through 3 yields both endpoints and isolated below/above/type failures.",
"input": {
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "integer",
"minimum": 1,
"maximum": 3
},
"valid_example": 2,
"max_cases": 12
},
"fixture": {
"kind": "none"
},
"expected": {
"input_valid": true,
"outcome_qualifies": true,
"checks": [
{
"pointer": "/schema_sha256",
"value": "adb45e34363271e35a1ce39ba9d8f514e154eeeebe7eacfff613764bdccdce7c"
},
{
"pointer": "/cases",
"value": [
{
"id": "case-1",
"kind": "positive_boundary",
"instance_pointer": "",
"schema_pointer": "/type",
"keyword": "type",
"value": 2,
"expected_verdict": "valid",
"validation": {
"valid": true,
"checked_assertions": 3,
"errors": []
}
},
{
"id": "case-2",
"kind": "negative_mutation",
"instance_pointer": "",
"schema_pointer": "/minimum",
"keyword": "minimum",
"value": 0,
"expected_verdict": "invalid",
"validation": {
"valid": false,
"checked_assertions": 3,
"errors": [
{
"instance_pointer": "",
"schema_pointer": "/minimum",
"keyword": "minimum"
}
]
}
},
{
"id": "case-3",
"kind": "positive_boundary",
"instance_pointer": "",
"schema_pointer": "/minimum",
"keyword": "minimum",
"value": 1,
"expected_verdict": "valid",
"validation": {
"valid": true,
"checked_assertions": 3,
"errors": []
}
},
{
"id": "case-4",
"kind": "negative_mutation",
"instance_pointer": "",
"schema_pointer": "/maximum",
"keyword": "maximum",
"value": 4,
"expected_verdict": "invalid",
"validation": {
"valid": false,
"checked_assertions": 3,
"errors": [
{
"instance_pointer": "",
"schema_pointer": "/maximum",
"keyword": "maximum"
}
]
}
},
{
"id": "case-5",
"kind": "positive_boundary",
"instance_pointer": "",
"schema_pointer": "/maximum",
"keyword": "maximum",
"value": 3,
"expected_verdict": "valid",
"validation": {
"valid": true,
"checked_assertions": 3,
"errors": []
}
},
{
"id": "case-6",
"kind": "negative_mutation",
"instance_pointer": "",
"schema_pointer": "/type",
"keyword": "type",
"value": 2.5,
"expected_verdict": "invalid",
"validation": {
"valid": false,
"checked_assertions": 3,
"errors": [
{
"instance_pointer": "",
"schema_pointer": "/type",
"keyword": "type"
}
]
}
}
]
},
{
"pointer": "/summary/positive_cases",
"value": 3
},
{
"pointer": "/summary/negative_cases",
"value": 3
},
{
"pointer": "/coverage_gaps",
"value": []
}
]
}
},
{
"id": "unsupported_keyword",
"description": "The format keyword is unsupported; it is rejected rather than silently ignored.",
"input": {
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "string",
"format": "email"
},
"valid_example": "fixture@example.invalid",
"max_cases": 12
},
"fixture": {
"kind": "none"
},
"expected": {
"input_valid": false,
"outcome_qualifies": false,
"checks": []
}
},
{
"id": "invalid_seed",
"description": "The starting example must already satisfy the complete accepted schema.",
"input": {
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "integer",
"minimum": 1,
"maximum": 3
},
"valid_example": 0,
"max_cases": 12
},
"fixture": {
"kind": "none"
},
"expected": {
"input_valid": false,
"outcome_qualifies": false,
"checks": []
}
}
]
}
```