File size: 1,981 Bytes
2c3dd0c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://hypercortex.org/schemas/diary_entry.json",
  "title": "CognitiveDiaryEntry",
  "description": "A chronological log of cognitive events in an agent’s reasoning process.",
  "version": "1.0",
  "type": "object",
  "properties": {
    "id": { "type": "string", "description": "Unique identifier of the diary entry." },
    "agent_id": { "type": "string", "description": "Identifier of the agent who created the entry." },
    "timestamp": { "type": "string", "format": "date-time", "description": "Timestamp of the entry (ISO 8601 format)." },
    "entry_type": {
      "type": "string",
      "enum": ["hypothesis", "observation", "reflection", "goal_proposal", "task_assignment", "conflict", "consensus_vote", "event"],
      "description": "Type of cognitive event."
    },
    "content": { "type": "string", "description": "Main textual content of the entry." },
    "linked_concepts": {
      "type": "array",
      "description": "Optional list of related concepts by their IDs.",
      "items": { "type": "string" }
    },
    "context": {
      "type": "array",
      "description": "Optional contextual tags or categories.",
      "items": { "type": "string" }
    },
    "metadata": {
      "type": "object",
      "description": "Optional metadata for additional context.",
      "properties": {
        "author": { "type": "string" },
        "source": { "type": "string" }
      },
      "additionalProperties": true
    },
    "archived": {
      "type": "boolean",
      "description": "Marks the entry as archived and excluded from active workflows.",
      "default": false
    },
    "archived_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the entry was archived."
    }
  },
  "required": ["id", "agent_id", "timestamp", "entry_type", "content"],
  "additionalProperties": false
}