|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "$id": "https://schemas.socioprophet.org/memory-mesh/workspace-recall-promotion-packet.schema.json", |
| 4 | + "title": "WorkspaceRecallPromotionPacket", |
| 5 | + "type": "object", |
| 6 | + "additionalProperties": false, |
| 7 | + "required": [ |
| 8 | + "apiVersion", |
| 9 | + "kind", |
| 10 | + "packetId", |
| 11 | + "createdAt", |
| 12 | + "sourceWorkspace", |
| 13 | + "candidate", |
| 14 | + "review", |
| 15 | + "destination", |
| 16 | + "evidenceRefs", |
| 17 | + "policyDecisionRefs", |
| 18 | + "promotion" |
| 19 | + ], |
| 20 | + "properties": { |
| 21 | + "apiVersion": { "const": "memory.mesh.workspace-recall-promotion/v1" }, |
| 22 | + "kind": { "const": "WorkspaceRecallPromotionPacket" }, |
| 23 | + "packetId": { "type": "string", "minLength": 1 }, |
| 24 | + "createdAt": { "type": "string", "format": "date-time" }, |
| 25 | + "sourceWorkspace": { |
| 26 | + "type": "object", |
| 27 | + "additionalProperties": false, |
| 28 | + "required": ["workroomRef", "contextGraphRef", "runtimeBindingRef"], |
| 29 | + "properties": { |
| 30 | + "workroomRef": { "type": "string", "minLength": 1 }, |
| 31 | + "professionalWorkroomRef": { "type": ["string", "null"] }, |
| 32 | + "contextGraphRef": { "type": "string", "minLength": 1 }, |
| 33 | + "runtimeBindingRef": { "type": "string", "minLength": 1 }, |
| 34 | + "agentPlaneEvidenceRef": { "type": ["string", "null"] }, |
| 35 | + "platformRecordRef": { "type": ["string", "null"] } |
| 36 | + } |
| 37 | + }, |
| 38 | + "candidate": { |
| 39 | + "type": "object", |
| 40 | + "additionalProperties": false, |
| 41 | + "required": ["recallCandidateRef", "summary", "sourceNodeRefs", "scope", "confidence", "reviewState"], |
| 42 | + "properties": { |
| 43 | + "recallCandidateRef": { "type": "string", "minLength": 1 }, |
| 44 | + "summary": { "type": "string", "minLength": 1 }, |
| 45 | + "sourceNodeRefs": { "type": "array", "items": { "type": "string" } }, |
| 46 | + "scope": { "enum": ["user", "workroom", "tenant", "project", "organization"] }, |
| 47 | + "confidence": { "type": "number", "minimum": 0, "maximum": 1 }, |
| 48 | + "reviewState": { "enum": ["pending", "approved", "rejected", "superseded"] } |
| 49 | + } |
| 50 | + }, |
| 51 | + "review": { |
| 52 | + "type": "object", |
| 53 | + "additionalProperties": false, |
| 54 | + "required": ["mode", "required", "status", "reviewerRefs", "approvalRef"], |
| 55 | + "properties": { |
| 56 | + "mode": { "enum": ["review_only", "approved_writeback"] }, |
| 57 | + "required": { "type": "boolean" }, |
| 58 | + "status": { "enum": ["pending", "approved", "rejected", "superseded"] }, |
| 59 | + "reviewerRefs": { "type": "array", "items": { "type": "string" } }, |
| 60 | + "approvalRef": { "type": ["string", "null"] }, |
| 61 | + "notes": { "type": ["string", "null"] } |
| 62 | + } |
| 63 | + }, |
| 64 | + "destination": { |
| 65 | + "type": "object", |
| 66 | + "additionalProperties": false, |
| 67 | + "required": ["scope", "targetRef", "path", "memoryNamespace"], |
| 68 | + "properties": { |
| 69 | + "scope": { "enum": ["repo", "project", "user", "organization", "enterprise"] }, |
| 70 | + "targetRef": { "type": "string", "minLength": 1 }, |
| 71 | + "path": { "type": "string", "minLength": 1 }, |
| 72 | + "memoryNamespace": { "type": ["string", "null"] } |
| 73 | + } |
| 74 | + }, |
| 75 | + "evidenceRefs": { "type": "array", "minItems": 1, "items": { "type": "string" } }, |
| 76 | + "policyDecisionRefs": { "type": "array", "minItems": 1, "items": { "type": "string" } }, |
| 77 | + "promotion": { |
| 78 | + "type": "object", |
| 79 | + "additionalProperties": false, |
| 80 | + "required": ["enabled", "performed", "proposalRef", "writebackRef"], |
| 81 | + "properties": { |
| 82 | + "enabled": { "type": "boolean" }, |
| 83 | + "performed": { "type": "boolean" }, |
| 84 | + "proposalRef": { "type": ["string", "null"] }, |
| 85 | + "writebackRef": { "type": ["string", "null"] } |
| 86 | + } |
| 87 | + }, |
| 88 | + "redaction": { |
| 89 | + "type": "object", |
| 90 | + "additionalProperties": false, |
| 91 | + "properties": { |
| 92 | + "rawPayloadStored": { "type": "boolean" }, |
| 93 | + "summary": { "type": "string" } |
| 94 | + } |
| 95 | + } |
| 96 | + } |
| 97 | +} |
0 commit comments