org.simocracy.history
Schema Diff
+20 -5
Compatibility Analysis
Backward Compatible
Backward compatible. 6 non-breaking changes.
Non-Breaking Changes (6)
- AddedVertex AddedVertex { vertex_id: "org.simocracy.history:body.subjectCollection" }
- AddedVertex AddedVertex { vertex_id: "org.simocracy.history:body.subjectName" }
- AddedVertex AddedVertex { vertex_id: "org.simocracy.history:body.subjectUri" }
- AddedEdge AddedEdge { src: "org.simocracy.history:body", tgt: "org.simocracy.history:body.subjectCollection", kind: "prop", name: Some("subjectCollection") }
- AddedEdge AddedEdge { src: "org.simocracy.history:body", tgt: "org.simocracy.history:body.subjectName", kind: "prop", name: Some("subjectName") }
- AddedEdge AddedEdge { src: "org.simocracy.history:body", tgt: "org.simocracy.history:body.subjectUri", kind: "prop", name: Some("subjectUri") }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "org.simocracy.history:body.subjectCollection" }AddedVertex { vertex_id: "org.simocracy.history:body.subjectName" }AddedVertex { vertex_id: "org.simocracy.history:body.subjectUri" }
Additional Notes
- Non-breaking: AddedEdge { src: "org.simocracy.history:body", tgt: "org.simocracy.history:body.subjectCollection", kind: "prop", name: Some("subjectCollection") }
- Non-breaking: AddedEdge { src: "org.simocracy.history:body", tgt: "org.simocracy.history:body.subjectName", kind: "prop", name: Some("subjectName") }
- Non-breaking: AddedEdge { src: "org.simocracy.history:body", tgt: "org.simocracy.history:body.subjectUri", kind: "prop", name: Some("subjectUri") }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"main": {
5
-
"description": "Tracks user interactions — chat messages, senate hearings launched, and individual sim comments during hearings.",
5
+
"description": "Tracks user interactions — chat messages with sims, S-Process deliberation events, record lifecycle events, and sim-attribution sidecars for comments authored on behalf of a sim.",
6
6
"key": "tid",
7
7
"record": {
8
8
"properties": {
9
9
"actorDid": {
10
10
"description": "DID of the user who triggered the event",
11
11
"type": "string"
12
12
},
13
13
"content": {
14
14
"description": "The actual content — sim response for chat, sim opinion for comment",
15
15
"maxGraphemes": 5000,
16
16
"type": "string"
17
17
},
18
18
"createdAt": {
19
19
"format": "datetime",
20
20
"type": "string"
21
21
},
22
22
"hearingId": {
23
-
"description": "Unique ID for grouping events from the same hearing session",
23
+
"description": "Opaque run ID grouping events from the same session (legacy name; also used by S-Process runs)",
24
24
"maxLength": 32,
25
25
"type": "string"
26
26
},
27
27
"proposalTitle": {
28
-
"description": "Title of the proposal (for hearing/comment events)",
28
+
"description": "Title of the proposal or floor the event relates to",
29
29
"maxGraphemes": 500,
30
30
"type": "string"
31
31
},
32
32
"round": {
33
-
"description": "Hearing round: 1=evaluation, 2=response, 3=summary (for comment events)",
33
+
"description": "Ordering index within a multi-step event (e.g. sim index within an S-Process run)",
34
34
"type": "integer"
35
35
},
36
36
"simNames": {
37
37
"description": "Names of sims involved",
38
38
"items": {
39
39
"type": "string"
40
40
},
41
41
"maxLength": 10,
42
42
"type": "array"
43
43
},
44
44
"simUris": {
45
45
"description": "AT-URIs of sims involved",
46
46
"items": {
47
47
"type": "string"
48
48
},
49
49
"maxLength": 10,
50
50
"type": "array"
51
51
},
52
+
"subjectCollection": {
53
+
"description": "Collection NSID of the record this history event is about",
54
+
"maxLength": 500,
55
+
"type": "string"
56
+
},
57
+
"subjectName": {
58
+
"description": "Human-readable name/title of the record this history event is about",
59
+
"maxGraphemes": 500,
60
+
"type": "string"
61
+
},
62
+
"subjectUri": {
63
+
"description": "AT-URI of the record this history event is about (used for record deletion events)",
64
+
"maxLength": 5000,
65
+
"type": "string"
66
+
},
52
67
"type": {
53
-
"description": "Event type: chat, hearing, or comment",
68
+
"description": "Event type: \"chat\", \"sprocess\", \"delete\", or \"comment\" (sim-attribution sidecar for an org.impactindexer.review.comment record — see docs/SIM_AUTHORED_COMMENTS.md in pi-simocracy)",
54
69
"type": "string"
55
70
},
56
71
"userMessage": {
57
72
"description": "User's message that prompted the response (for chat events)",
58
73
"maxGraphemes": 2000,
59
74
"type": "string"
60
75
}
61
76
},
62
77
"required": [
63
78
"type",
64
79
"actorDid",
65
80
"simNames",
66
81
"createdAt"
67
82
],
68
83
"type": "object"
69
84
},
70
85
"type": "record"
71
86
}
72
87
},
73
88
"id": "org.simocracy.history",
74
89
"lexicon": 1
75
90
}