{"openapi":"3.1.0","info":{"title":"A2A Artifact Handoff","description":"Prepare and package mixed outputs for transfer between agents.","version":"0.6.0"},"paths":{"/demo":{"get":{"summary":"Home","operationId":"home_demo_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/":{"get":{"summary":"Redesigned Home Page","description":"Render the live demo with the shared public visual system.","operationId":"redesigned_home_page__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/evidence":{"get":{"summary":"Evidence Page","description":"Render the public technical verification and release history.","operationId":"evidence_page_evidence_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/healthz":{"get":{"summary":"Health","operationId":"health_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Healthz Get"}}}}}}},"/v1/metrics/summary":{"get":{"summary":"Metrics Summary","operationId":"metrics_summary_v1_metrics_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Metrics Summary V1 Metrics Summary Get"}}}}}}},"/.well-known/agent-card.json":{"get":{"summary":"Agent Card","operationId":"agent_card__well_known_agent_card_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/handoffs/compile":{"post":{"summary":"Compile Handoff Http","description":"Compile source-agent outputs against a receiver contract.","operationId":"compile_handoff_http_v1_handoffs_compile_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompileHandoffRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/prepare":{"post":{"summary":"Prepare","operationId":"prepare_v1_prepare_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_prepare_v1_prepare_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs/{run_id}/manifest":{"get":{"summary":"Get Manifest","operationId":"get_manifest_v1_runs__run_id__manifest_get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs/{run_id}/package":{"get":{"summary":"Get Package","operationId":"get_package_v1_runs__run_id__package_get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs/{run_id}/download/{filename}":{"get":{"summary":"Download","operationId":"download_v1_runs__run_id__download__filename__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/message:send":{"post":{"summary":"A2A Send Message","description":"Minimal A2A HTTP+JSON SendMessage implementation for the pilot.","operationId":"a2a_send_message_message_send_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_prepare_v1_prepare_post":{"properties":{"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files","description":"One or more source files."},"target_formats":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Formats","description":"Comma-separated MIME types or a JSON array."},"ttl_hours":{"anyOf":[{"type":"integer","maximum":720.0,"minimum":1.0},{"type":"null"}],"title":"Ttl Hours"}},"type":"object","required":["files"],"title":"Body_prepare_v1_prepare_post"},"CompileHandoffRequest":{"properties":{"sourceOutputs":{"items":{"$ref":"#/components/schemas/SourceOutput"},"type":"array","minItems":1,"title":"Sourceoutputs"},"receiverContract":{"$ref":"#/components/schemas/ReceiverContract"},"handoffContext":{"$ref":"#/components/schemas/HandoffContext"},"ttlHours":{"type":"integer","maximum":720.0,"minimum":1.0,"title":"Ttlhours","default":24}},"type":"object","required":["sourceOutputs","receiverContract","handoffContext"],"title":"CompileHandoffRequest","description":"HTTP request for compiling a receiver-ready agent handoff."},"ContractConstraints":{"properties":{"requireSha256":{"type":"boolean","title":"Requiresha256","description":"Require SHA-256 integrity metadata for delivered artifacts.","default":true},"maxFileBytes":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Maxfilebytes","description":"Optional maximum size in bytes for each delivered artifact."}},"type":"object","title":"ContractConstraints","examples":[{"maxFileBytes":100000,"requireSha256":true}]},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HandoffContext":{"properties":{"objective":{"type":"string","maxLength":2000,"minLength":1,"title":"Objective"},"status":{"type":"string","maxLength":80,"title":"Status","default":"completed"},"sourceAgent":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Sourceagent"},"destinationAgent":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Destinationagent"},"decisions":{"items":{"type":"string"},"type":"array","title":"Decisions"},"assumptions":{"items":{"type":"string"},"type":"array","title":"Assumptions"},"unresolvedIssues":{"items":{"type":"string"},"type":"array","title":"Unresolvedissues"}},"type":"object","required":["objective"],"title":"HandoffContext"},"OutputRequirement":{"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"title":"Id","description":"Stable requirement identifier. Use the matching source output id when known; use filename only for the delivered filename."},"acceptedMediaTypes":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Acceptedmediatypes","description":"Media types accepted for this deliverable, for example text/markdown, text/csv, or application/json."},"filename":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Filename","description":"Filename required by the receiving agent."},"required":{"type":"boolean","title":"Required","description":"Whether this deliverable is mandatory.","default":true},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description"},"requiredJsonKeys":{"items":{"type":"string"},"type":"array","title":"Requiredjsonkeys","description":"Use only when acceptedMediaTypes contains application/json. Leave empty for Markdown, text, CSV, images, and other media types."},"requiredCsvColumns":{"items":{"type":"string"},"type":"array","title":"Requiredcsvcolumns","description":"Use only when acceptedMediaTypes contains text/csv. Leave empty for Markdown, text, JSON, images, and other media types."}},"type":"object","required":["id","acceptedMediaTypes"],"title":"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"]}]},"ReceiverContract":{"properties":{"contractVersion":{"type":"string","title":"Contractversion","default":"0.1"},"destinationCapability":{"type":"string","maxLength":200,"minLength":1,"title":"Destinationcapability"},"requiredOutputs":{"items":{"$ref":"#/components/schemas/OutputRequirement"},"type":"array","minItems":1,"title":"Requiredoutputs"},"constraints":{"$ref":"#/components/schemas/ContractConstraints","description":"Runtime constraint values. Provide requireSha256 and optionally maxFileBytes; do not copy JSON Schema definitions into this field."}},"type":"object","required":["destinationCapability","requiredOutputs"],"title":"ReceiverContract","description":"Machine-readable input contract declared by the receiving agent."},"SourceOutput":{"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"title":"Id"},"filename":{"type":"string","maxLength":200,"minLength":1,"title":"Filename"},"mediaType":{"type":"string","maxLength":120,"minLength":3,"title":"Mediatype"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"contentBase64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contentbase64"},"role":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Role"}},"type":"object","required":["id","filename","mediaType"],"title":"SourceOutput","description":"One output produced by the source agent."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}