File size: 1,426 Bytes
ed6bec6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
75
76
77
78
79
80
81
82
83
# Glyphic Envelope Specification
The Glyphic Envelope defines the **structured message format** used by agents, LLMs, and the Glyphic Runtime. It wraps raw text, internal state, safety constraints, and response protocols into a single deterministic structure.

The envelope is divided into ordered sections. Each section begins with a header:


Each section contains:
- CTX.* glyphs (machine-readable)
- Optional raw text (user input, memory summaries, etc.)

---

## 1. Envelope Sections

### 1.1 USER_INPUT
Represents the raw user message.


---

### 1.2 IDENTITY
Represents the agent’s identity, role, and persona.


---

### 1.3 INTERNAL_STATE
Represents the agent’s current internal state.


---

### 1.4 INTENT
Represents the agent’s goal, urgency, and focus.


---

### 1.5 BEHAVIOR
Represents the agent’s tone, pacing, depth, style, and clarity.


---

### 1.6 MEMORY
Represents short-term memory summaries.


---

### 1.7 THOUGHT_CHAIN
Represents internal reasoning summaries.


---

### 1.8 SAFETY
Represents global safety constraints.


---

### 1.9 RESPONSE_PROTOCOL
Represents how the agent should respond.


---

## 2. Ordering Rules
The envelope must appear in the exact order listed above.  
Sections may not be omitted unless empty.

---

## 3. Purpose
The envelope ensures:
- deterministic parsing  
- stable training  
- safe responses  
- consistent behavior  
- agent-to-agent interoperability