addedInput schema / $defs
Added value: +{
+ "ContractConstraints": {
+ "examples": [
+ {
+ "maxFileBytes": 100000,
+ "requireSha256": true
+ }
+ ],
+ "properties": {
+ "maxFileBytes": {
+ "anyOf": [
+ {
+ "minimum": 1,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional maximum size in bytes for each delivered artifact.",
+ "title": "Maxfilebytes"
+ },
+ "requireSha256": {
+ "default": true,
+ "description": "Require SHA-256 integrity metadata for delivered artifacts.",
+ "title": "Requiresha256",
+ "type": "boolean"
+ }
+ },
+ "title": "ContractConstraints",
+ "type": "object"
+ },
+ "HandoffContext": {
+ "properties": {
+ "assumptions": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Assumptions",
+ "type": "array"
+ },
+ "decisions": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Decisions",
+ "type": "array"
+ },
+ "destinationAgent": {
+ "anyOf": [
+ {
+ "maxLength": 200,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Destinationagent"
+ },
+ "objective": {
+ "maxLength": 2000,
+ "minLength": 1,
+ "title": "Objective",
+ "type": "string"
+ },
+ "sourceAgent": {
+ "anyOf": [
+ {
+ "maxLength": 200,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Sourceagent"
+ },
+ "status": {
+ "default": "completed",
+ "maxLength": 80,
+ "title": "Status",
+ "type": "string"
+ },
+ "unresolvedIssues": {
+ "items": {
+ "type": "string"
+ },
+ "title": "Unresolvedissues",
+ "type": "array"
+ }
+ },
+ "required": [
+ "objective"
+ ],
+ "title": "HandoffContext",
+ "type": "object"
+ },
+ "OutputRequirement": {
+ "description": "One deliverable expected by the receiving agent.",
+ "examples": [
+ {
+ "acceptedMediaTypes": [
+ "text/markdown"
+ ],
+ "filename": "report.md",
+ "id": "report",
+ "required": true
+ },
+ {
+ "acceptedMediaTypes": [
+ "text/csv"
+ ],
+ "filename": "evidence.csv",
+ "id": "evidence",
+ "required": true,
+ "requiredCsvColumns": [
+ "channel",
+ "score",
+ "evidence"
+ ]
+ },
+ {
+ "acceptedMediaTypes": [
+ "application/json"
+ ],
+ "filename": "summary.json",
+ "id": "summary",
+ "required": true,
+ "requiredJsonKeys": [
+ "recommendation",
+ "confidence"
+ ]
+ }
+ ],
+ "properties": {
+ "acceptedMediaTypes": {
+ "description": "Media types accepted for this deliverable, for example text/markdown, text/csv, or application/json.",
+ "items": {
+ "type": "string"
+ },
+ "minItems": 1,
+ "title": "Acceptedmediatypes",
+ "type": "array"
+ },
+ "description": {
+ "anyOf": [
+ {
+ "maxLength": 500,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Description"
+ },
+ "filename": {
+ "anyOf": [
+ {
+ "maxLength": 200,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Filename required by the receiving agent.",
+ "title": "Filename"
+ },
+ "id": {
+ "description": "Stable requirement identifier. Use the matching source output id when known; use filename only for the delivered filename.",
+ "maxLength": 80,
+ "minLength": 1,
+ "title": "Id",
+ "type": "string"
+ },
+ "required": {
+ "default": true,
+ "description": "Whether this deliverable is mandatory.",
+ "title": "Required",
+ "type": "boolean"
+ },
+ "requiredCsvColumns": {
+ "description": "Use only when acceptedMediaTypes contains text/csv. Leave empty for Markdown, text, JSON, images, and other media types.",
+ "items": {
+ "type": "string"
+ },
+ "title": "Requiredcsvcolumns",
+ "type": "array"
+ },
+ "requiredJsonKeys": {
+ "description": "Use only when acceptedMediaTypes contains application/json. Leave empty for Markdown, text, CSV, images, and other media types.",
+ "items": {
+ "type": "string"
+ },
+ "title": "Requiredjsonkeys",
+ "type": "array"
+ }
+ },
+ "required": [
+ "id",
+ "acceptedMediaTypes"
+ ],
+ "title": "OutputRequirement",
+ "type": "object"
+ },
+ "ReceiverContract": {
+ "description": "Machine-readable input contract declared by the receiving agent.",
+ "properties": {
+ "constraints": {
+ "$ref": "#/$defs/ContractConstraints",
+ "description": "Runtime constraint values. Provide requireSha256 and optionally maxFileBytes; do not copy JSON Schema definitions into this field."
+ },
+ "contractVersion": {
+ "default": "0.1",
+ "title": "Contractversion",
+ "type": "string"
+ },
+ "destinationCapability": {
+ "maxLength": 200,
+ "minLength": 1,
+ "title": "Destinationcapability",
+ "type": "string"
+ },
+ "requiredOutputs": {
+ "items": {
+ "$ref": "#/$defs/OutputRequirement"
+ },
+ "minItems": 1,
+ "title": "Requiredoutputs",
+ "type": "array"
+ }
+ },
+ "required": [
+ "destinationCapability",
+ "requiredOutputs"
+ ],
+ "title": "ReceiverContract",
+ "type": "object"
+ },
+ "SourceOutput": {
+ "description": "One output produced by the source agent.",
+ "properties": {
+ "content": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Content"
+ },
+ "contentBase64": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Contentbase64"
+ },
+ "filename": {
+ "maxLength": 200,
+ "minLength": 1,
+ "title": "Filename",
+ "type": "string"
+ },
+ "id": {
+ "maxLength": 80,
+ "minLength": 1,
+ "title": "Id",
+ "type": "string"
+ },
+ "mediaType": {
+ "maxLength": 120,
+ "minLength": 3,
+ "title": "Mediatype",
+ "type": "string"
+ },
+ "role": {
+ "anyOf": [
+ {
+ "maxLength": 80,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "title": "Role"
+ }
+ },
+ "required": [
+ "id",
+ "filename",
+ "mediaType"
+ ],
+ "title": "SourceOutput",
+ "type": "object"
+ }
+}