|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "$id": "https://schemas.srcos.ai/v2/ShellReceiptEvent.json", |
| 4 | + "title": "ShellReceiptEvent", |
| 5 | + "description": "Governed SourceOS shell/TurtleTerm/cloud-fog receipt event. Content capture is disabled by default; result material should be capped, summarized, or ref-only by policy.", |
| 6 | + "type": "object", |
| 7 | + "additionalProperties": false, |
| 8 | + "required": ["eventId", "specVersion", "eventClass", "occurredAt", "actorRef", "payloadMode", "policyDecisionRefs"], |
| 9 | + "properties": { |
| 10 | + "eventId": { "type": "string", "pattern": "^urn:srcos:shell-receipt-event:" }, |
| 11 | + "specVersion": { "type": "string" }, |
| 12 | + "eventClass": { |
| 13 | + "type": "string", |
| 14 | + "enum": ["session-start", "session-end", "command-request", "execution-start", "execution-complete", "execution-fail", "artifact-ref", "agent-delegation", "policy-decision", "cloudfog-attach", "cloudfog-detach", "redaction-tombstone"] |
| 15 | + }, |
| 16 | + "occurredAt": { "type": "string", "format": "date-time" }, |
| 17 | + "actorRef": { "type": "string" }, |
| 18 | + "agentRegistryRef": { "type": ["string", "null"] }, |
| 19 | + "sessionRef": { "type": ["string", "null"] }, |
| 20 | + "workroomRef": { "type": ["string", "null"] }, |
| 21 | + "payloadMode": { "type": "string", "enum": ["metadata-only", "summary", "ref-only", "inline-bounded", "redacted"] }, |
| 22 | + "contentCaptureEnabled": { "type": "boolean", "default": false }, |
| 23 | + "payload": { "type": ["object", "null"], "additionalProperties": true }, |
| 24 | + "artifactRefs": { "type": "array", "items": { "type": "string" }, "default": [] }, |
| 25 | + "policyDecisionRefs": { "type": "array", "items": { "type": "string" } }, |
| 26 | + "evidenceRefs": { "type": "array", "items": { "type": "string" }, "default": [] }, |
| 27 | + "redactionRefs": { "type": "array", "items": { "type": "string" }, "default": [] } |
| 28 | + } |
| 29 | +} |
0 commit comments