{
  "$schema":"https://json-schema.org/draft/2020-12/schema",
  "$id":"https://work.mathchast.com/schemas/d17-tool-call-audit.schema.json",
  "title":"D17 ToolCallAudit",
  "type":"object",
  "additionalProperties":false,
  "required":["host_call_id","tool","args_hash","result_hash","started_at","finished_at","status"],
  "properties":{
    "host_call_id":{"type":"string","minLength":1},
    "tool":{"type":"string","minLength":1},
    "args_hash":{"type":"string","minLength":1},
    "result_hash":{"type":["string","null"]},
    "started_at":{"type":"string","format":"date-time"},
    "finished_at":{"type":["string","null"],"format":"date-time"},
    "status":{"enum":["STARTED","SUCCEEDED","FAILED","BLOCKED"]}
  }
}
