{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"/protocols/uim-operations/v1/task.schema.json","title":"Universal Intelligence Mesh task request","type":"object","required":["objective","domain"],"properties":{"protocol_version":{"const":"uim-task/1.0"},"objective":{"type":"string","minLength":1,"maxLength":2000},"domain":{"type":"string","pattern":"^[A-Z][A-Z_]{1,60}$","description":"Extensible taxonomy. Currently executable: SCIENTIFIC_DISCOVERY, ROBOTICS, AERONAUTICS."},"task_type":{"type":"string","maxLength":100,"description":"ADAPTIVE_DISCOVERY_LOOP opts into bounded local cooling experiments with per-round verification, reproduction, and feedback. Only SCIENTIFIC_DISCOVERY with SIMULATION and zero external spend is supported; constraints.max_iterations sets 1–6 rounds and endpoint_error_tolerance_c sets 0.000001–100 Celsius tolerance."},"inputs":{"type":"object","description":"Adapter-normalized numerical inputs; arbitrary code is never executed."},"constraints":{"type":"object"},"network_scope":{"type":"string","description":"If supplied, must match the server-derived authenticated account scope."},"authorized_principal":{"type":"string","description":"If supplied, must match the authenticated principal; cannot grant authority."},"required_capabilities":{"type":"array","maxItems":12,"items":{"type":"string","pattern":"^[A-Z][A-Z_]{1,60}$"}},"evidence_requirements":{"type":"object","properties":{"minimum_level":{"type":"string","description":"Only NUMERICAL_SIMULATION and REPRODUCED_NUMERICAL_RESULT are currently satisfiable."}}},"resource_budget":{"type":"object","properties":{"max_external_usd":{"type":"number","minimum":0,"maximum":100000,"default":0,"description":"Any positive amount waits for separate authorization; no paid inference is enabled."},"max_runtime_ms":{"type":"integer","minimum":50,"maximum":30000,"default":10000},"max_attempts":{"type":"integer","minimum":1,"maximum":3,"default":2}},"additionalProperties":false},"execution_policy":{"type":"object","properties":{"mode":{"enum":["SIMULATION","PHYSICAL","EXTERNAL"],"default":"SIMULATION"}}},"approval_requirements":{"type":"array","maxItems":10,"items":{"type":"string","maxLength":100}}},"$defs":{"envelope":{"type":"object","required":["task_id","protocol_version","originator","authorized_principal","network_scope","objective","domain","task_type","inputs","constraints","required_capabilities","expected_outputs","evidence_requirements","resource_budget","execution_policy","approval_requirements","status","created_at","trace_id","result_references"],"properties":{"task_id":{"type":"string","format":"uuid"},"trace_id":{"type":"string","format":"uuid"},"protocol_version":{"const":"uim-task/1.0"},"status":{"enum":["RECEIVED","AUTHORIZED","DISCOVERING_RESOURCES","PLANNING","EXECUTING","VALIDATING","COMPLETED","WAITING_APPROVAL","BLOCKED","FAILED","CANCELLED"]},"created_at":{"type":"string","format":"date-time"},"result_references":{"type":"array","items":{"type":"string","format":"uuid"}}}}}}