crumb-spec
Crumb Protocol specification and filesystem standard for sovereign AI agents
Brought by drakestapleton
crumb-spec / schema / crumb-local.schema.json
| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "$id": "https://raw.githubusercontent.com/aien-dev/crumb-spec/main/schema/crumb-local.schema.json", |
| 4 | "title": "LocalCrumbData", |
| 5 | "description": "Ephemeral real-time operational scent and agent coordination manifest.", |
| 6 | "type": "object", |
| 7 | "required": ["schema_version", "directory"], |
| 8 | "properties": { |
| 9 | "schema_version": { |
| 10 | "type": "string", |
| 11 | "enum": ["1.0.0"] |
| 12 | }, |
| 13 | "directory": { |
| 14 | "type": "string", |
| 15 | "description": "Relative or canonical path of the current directory." |
| 16 | }, |
| 17 | "active_scents": { |
| 18 | "type": "object", |
| 19 | "description": "Map of agent identifiers to their current focus and TTL.", |
| 20 | "additionalProperties": { |
| 21 | "type": "object", |
| 22 | "required": ["focus", "updated_at", "ttl_seconds"], |
| 23 | "properties": { |
| 24 | "focus": { "type": "string" }, |
| 25 | "updated_at": { "type": "string", "format": "date-time" }, |
| 26 | "ttl_seconds": { "type": "integer", "minimum": 0 }, |
| 27 | "metadata": { "type": "object" } |
| 28 | } |
| 29 | } |
| 30 | }, |
| 31 | "locks": { |
| 32 | "type": "object", |
| 33 | "description": "Advisory claims indicating active mutation.", |
| 34 | "additionalProperties": { |
| 35 | "type": "object", |
| 36 | "required": ["holder", "intent", "acquired_at"], |
| 37 | "properties": { |
| 38 | "holder": { "type": "string" }, |
| 39 | "intent": { "type": "string" }, |
| 40 | "acquired_at": { "type": "string", "format": "date-time" }, |
| 41 | "ttl_seconds": { "type": "integer", "minimum": 0 } |
| 42 | } |
| 43 | } |
| 44 | }, |
| 45 | "whispers": { |
| 46 | "type": "array", |
| 47 | "description": "Asynchronous inter-agent messages and handoff notes.", |
| 48 | "items": { |
| 49 | "type": "object", |
| 50 | "required": ["from", "message", "timestamp"], |
| 51 | "properties": { |
| 52 | "from": { "type": "string" }, |
| 53 | "to": { "type": "string" }, |
| 54 | "message": { "type": "string" }, |
| 55 | "target_file": { "type": "string" }, |
| 56 | "timestamp": { "type": "string", "format": "date-time" }, |
| 57 | "priority": { "type": "string", "enum": ["low", "normal", "high", "critical"] } |
| 58 | } |
| 59 | } |
| 60 | }, |
| 61 | "history": { |
| 62 | "type": "array", |
| 63 | "description": "Rolling log of recent actions and intent vectors.", |
| 64 | "items": { |
| 65 | "type": "object", |
| 66 | "required": ["agent", "action", "target", "intent", "vector", "timestamp"], |
| 67 | "properties": { |
| 68 | "agent": { "type": "string" }, |
| 69 | "action": { "type": "string" }, |
| 70 | "target": { "type": "string" }, |
| 71 | "intent": { "type": "string" }, |
| 72 | "vector": { "type": "string" }, |
| 73 | "timestamp": { "type": "string", "format": "date-time" } |
| 74 | } |
| 75 | } |
| 76 | }, |
| 77 | "extensions": { |
| 78 | "type": "object", |
| 79 | "description": "Arbitrary vendor or domain-specific metadata.", |
| 80 | "additionalProperties": true |
| 81 | } |
| 82 | }, |
| 83 | "additionalProperties": false |
| 84 | } |