-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaudit-log.json
More file actions
168 lines (168 loc) · 4.44 KB
/
Copy pathaudit-log.json
File metadata and controls
168 lines (168 loc) · 4.44 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://destin-protocol.org/schemas/audit-log.json",
"title": "DESTIN Audit Log",
"description": "Schema for append-only audit logs of score updates, events, and provenance",
"type": "array",
"version": "0.1.0",
"items": {
"type": "object",
"required": [
"timestamp",
"source",
"trait",
"delta",
"domain",
"cohort_id"
],
"properties": {
"timestamp": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 timestamp when the update occurred"
},
"source": {
"type": "string",
"description": "What triggered the update",
"enum": [
"peer_endorsement",
"task_outcome",
"human_override",
"decay",
"interaction",
"meta_agent_decision",
"dispute_resolution",
"system_correction"
]
},
"trait": {
"type": "string",
"description": "Which ARF trait was impacted",
"enum": [
"accuracy",
"helpfulness",
"integrity",
"civility",
"responsiveness",
"self_awareness",
"consistency",
"transparency",
"cooperativeness",
"humility",
"efficiency",
"neutrality",
"intent_alignment",
"graceful_degradation",
"adaptivity",
"explainability",
"trust_calibration"
]
},
"delta": {
"type": "number",
"description": "Numerical change applied to the score",
"minimum": -1.0,
"maximum": 1.0
},
"domain": {
"type": "string",
"description": "Domain tag this score applies to",
"enum": [
"general",
"law",
"finance",
"medicine",
"education",
"science",
"governance",
"negotiation",
"news",
"cooking",
"home-automation",
"commerce",
"psychology",
"arts",
"ethics"
]
},
"cohort_id": {
"type": "string",
"description": "The active cohort context",
"pattern": "^[a-z]+-[0-9]{4}-Q[1-4]$",
"examples": ["law-2025-Q3", "gov-2025-Q3"]
},
"validator_id": {
"type": "string",
"description": "Optional validator who validated the change",
"pattern": "^did:[a-z]+:[a-zA-Z0-9._-]+$"
},
"dispute_id": {
"type": "string",
"description": "Optional dispute ID if the change resulted from arbitration",
"pattern": "^dispute-[a-f0-9]{8}$"
},
"interaction_id": {
"type": "string",
"description": "Optional interaction ID that triggered this update",
"pattern": "^interaction-[a-f0-9]{8}$"
},
"old_score": {
"type": "number",
"minimum": 0.0,
"maximum": 1.0,
"description": "Previous trait score before the update"
},
"new_score": {
"type": "number",
"minimum": 0.0,
"maximum": 1.0,
"description": "New trait score after the update"
},
"confidence": {
"type": "number",
"minimum": 0.0,
"maximum": 1.0,
"description": "Confidence level in this score update"
},
"justification": {
"type": "string",
"maxLength": 1000,
"description": "Optional human-readable justification for the update"
},
"metadata": {
"type": "object",
"description": "Additional context-specific metadata",
"additionalProperties": true
}
},
"additionalProperties": false
},
"examples": [
[
{
"timestamp": "2025-07-01T12:30:00Z",
"source": "peer_endorsement",
"trait": "integrity",
"delta": 0.02,
"domain": "law",
"cohort_id": "law-2025-Q3",
"validator_id": "did:validator:0xABC",
"interaction_id": "interaction-12345678",
"old_score": 0.89,
"new_score": 0.91,
"confidence": 0.95
},
{
"timestamp": "2025-07-02T09:00:00Z",
"source": "task_outcome",
"trait": "intent_alignment",
"delta": -0.01,
"domain": "governance",
"cohort_id": "gov-2025-Q3",
"old_score": 0.86,
"new_score": 0.85,
"confidence": 0.88
}
]
]
}