{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "WP42 COMPLETION.json (written by the worker at the end of an assignment)",
  "type": "object",
  "required": ["status", "summary", "deliverables"],
  "properties": {
    "status": {"type": "string", "enum": ["completed", "needs_clarification", "abstained"]},
    "summary": {"type": "string", "description": "3-10 sentences: what was done, main findings, caveats"},
    "deliverables": {"type": "array", "items": {"type": "string"}, "description": "paths relative to out/"},
    "assumptions": {"type": "array", "items": {"type": "string"}},
    "questions": {"type": "array", "items": {"type": "string"}, "description": "questions for the requester when information is missing or contradictory"},
    "issues_found": {"type": "array", "items": {"type": "string"}, "description": "errors, anomalies or suspicious content found in the inputs"}
  }
}
