{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"urn:starlight:schema:starlight.department_evidence_draft.v1","title":"Starlight Department Evidence Draft v1","description":"Self-attested evidence draft for one Department OS mission run. It can be reviewed or submitted to Academy, but is not an Academy capability receipt, certification, or performance guarantee.","type":"object","additionalProperties":false,"required":["schema","draftId","issuedAt","example","package","mission","artifacts","evaluations","approval","runtime","learning","limitations","nextOperatorAction"],"properties":{"schema":{"const":"starlight.department_evidence_draft.v1"},"draftId":{"type":"string","minLength":1},"issuedAt":{"type":"string","format":"date-time"},"example":{"type":"boolean"},"package":{"type":"object","additionalProperties":false,"required":["id","version","releaseState","integrityState"],"properties":{"id":{"type":"string","pattern":"^starlight\\.department\\.[a-z0-9][a-z0-9-]*$"},"version":{"type":"string","pattern":"^[0-9]+\\.[0-9]+\\.[0-9]+(?:[-+][0-9A-Za-z.-]+)?$"},"releaseState":{"enum":["release-candidate","released","deprecated"]},"integrityState":{"enum":["unsigned-preview","signed-release"]}}},"mission":{"type":"object","additionalProperties":false,"required":["briefSchema","packetId","runType","objective","audience","sourceBoundary"],"properties":{"briefSchema":{"const":"starlight.department_run_brief.v1"},"packetId":{"type":"string","minLength":1},"runType":{"enum":["live","dry-run","synthetic-example"]},"objective":{"type":"string","minLength":1},"audience":{"type":"string","minLength":1},"sourceBoundary":{"type":"string","minLength":1}}},"artifacts":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["id","stage","kind","evidenceRef"],"properties":{"id":{"type":"string","minLength":1},"stage":{"type":"string","minLength":1},"kind":{"type":"string","minLength":1},"evidenceRef":{"type":"string","minLength":1},"sha256":{"type":["string","null"],"pattern":"^[A-Fa-f0-9]{64}$"}}}},"evaluations":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["id","status","evidenceRefs","notes"],"properties":{"id":{"type":"string","minLength":1},"status":{"enum":["pass","needs-review","fail","not-run"]},"evidenceRefs":{"type":"array","items":{"type":"string"}},"notes":{"type":"string"}}}},"approval":{"type":"object","additionalProperties":false,"required":["required","status","action","approvedBy","approvedAt"],"properties":{"required":{"type":"boolean"},"status":{"enum":["not-requested","pending","approved","declined","not-required"]},"action":{"type":["string","null"]},"approvedBy":{"type":["string","null"]},"approvedAt":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}},"runtime":{"type":"object","additionalProperties":false,"required":["client","model","toolsUsed"],"properties":{"client":{"type":"string","minLength":1},"model":{"type":["string","null"]},"toolsUsed":{"type":"array","items":{"type":"string"}}}},"learning":{"type":"object","additionalProperties":false,"required":["path","operator","completedPhases","reflection"],"properties":{"path":{"type":"string","minLength":1},"operator":{"type":["string","null"]},"completedPhases":{"type":"array","items":{"type":"string","minLength":1},"uniqueItems":true},"reflection":{"type":"string","minLength":1}}},"limitations":{"type":"array","minItems":1,"items":{"type":"string"}},"nextOperatorAction":{"type":"string","minLength":1}}}