File size: 2,099 Bytes
1d3f990
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Instruction Schema",
  "description": "Canonical instruction format for LOC triad dispatch",
  "type": "object",
  "required": [
    "protocol_version",
    "instruction_id",
    "symbol",
    "target_runtime",
    "verb",
    "arguments",
    "timestamp",
    "instruction_hash"
  ],
  "properties": {
    "protocol_version": {
      "type": "string",
      "description": "Protocol version (e.g., '1.0.0')",
      "pattern": "^\\d+\\.\\d+\\.\\d+$"
    },
    "instruction_id": {
      "type": "string",
      "description": "Unique instruction identifier (UUID or hash)",
      "minLength": 32,
      "maxLength": 64
    },
    "symbol": {
      "type": "string",
      "description": "Emoji or symbolic identifier (e.g., '⚡', '🦀', '✅')",
      "minLength": 1,
      "maxLength": 10
    },
    "target_runtime": {
      "type": "string",
      "enum": ["rust", "ada", "holyc", "haskell", "emoji", "python3"],
      "description": "Target execution runtime"
    },
    "verb": {
      "type": "string",
      "description": "Operation verb (e.g., 'Execute', 'Verify', 'Dispatch')",
      "minLength": 1,
      "maxLength": 50
    },
    "arguments": {
      "type": "object",
      "description": "Key-value arguments for the instruction",
      "additionalProperties": {
        "type": ["string", "number", "boolean", "null"]
      }
    },
    "timestamp": {
      "type": "integer",
      "description": "Unix timestamp (seconds since epoch)",
      "minimum": 0
    },
    "instruction_hash": {
      "type": "string",
      "description": "SHA-256 hash of canonical instruction representation",
      "pattern": "^[a-f0-9]{64}$"
    },
    "capability_id": {
      "type": "string",
      "description": "Capability required for this instruction",
      "minLength": 10
    },
    "source_cell_id": {
      "type": "string",
      "description": "Notebook cell ID that generated this instruction"
    }
  },
  "additionalProperties": false
}