engineering-behavior-observatory 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +151 -0
  3. package/contracts/codex-app-server-0.150.1/manifest.json +25 -0
  4. package/contracts/codex-app-server-0.150.1/schema/InitializeParams.json +84 -0
  5. package/contracts/codex-app-server-0.150.1/schema/JSONRPCMessage.json +137 -0
  6. package/contracts/codex-app-server-0.150.1/schema/v2/ThreadReadParams.json +17 -0
  7. package/contracts/codex-app-server-0.150.1/schema/v2/ThreadTokenUsageUpdatedNotification.json +82 -0
  8. package/contracts/codex-app-server-0.150.1/schema/v2/TurnInterruptParams.json +17 -0
  9. package/contracts/codex-app-server-0.150.1/types/AskForApproval.ts +5 -0
  10. package/contracts/codex-app-server-0.150.1/types/ClientNotification.ts +5 -0
  11. package/contracts/codex-app-server-0.150.1/types/SandboxMode.ts +5 -0
  12. package/contracts/codex-app-server-0.150.1/types/ThreadReadParams.ts +9 -0
  13. package/contracts/codex-app-server-0.150.1/types/TokenUsageBreakdown.ts +5 -0
  14. package/contracts/codex-app-server-0.150.1/types/TurnInterruptParams.ts +5 -0
  15. package/contracts/codex-app-server-0.153.4/manifest.json +27 -0
  16. package/contracts/codex-app-server-0.153.4/schema/JSONRPCMessage.json +137 -0
  17. package/contracts/codex-app-server-0.153.4/schema/v1/InitializeParams.json +84 -0
  18. package/contracts/codex-app-server-0.153.4/schema/v2/ThreadReadParams.json +17 -0
  19. package/contracts/codex-app-server-0.153.4/schema/v2/ThreadStartParams.json +515 -0
  20. package/contracts/codex-app-server-0.153.4/schema/v2/ThreadTokenUsageUpdatedNotification.json +82 -0
  21. package/contracts/codex-app-server-0.153.4/schema/v2/TurnInterruptParams.json +17 -0
  22. package/contracts/codex-app-server-0.153.4/schema/v2/TurnStartParams.json +921 -0
  23. package/contracts/codex-app-server-0.153.4/types/AskForApproval.ts +5 -0
  24. package/contracts/codex-app-server-0.153.4/types/ClientNotification.ts +5 -0
  25. package/contracts/codex-app-server-0.153.4/types/SandboxMode.ts +5 -0
  26. package/contracts/codex-app-server-0.153.4/types/ThreadReadParams.ts +12 -0
  27. package/contracts/codex-app-server-0.153.4/types/TokenUsageBreakdown.ts +5 -0
  28. package/contracts/codex-app-server-0.153.4/types/TurnInterruptParams.ts +5 -0
  29. package/contracts/openhands-agent-server-v1.44.1.json +65 -0
  30. package/contracts/openhands-agent-server-v1.46.0.json +46 -0
  31. package/dist/contracts/codex-app-server-0.153.4/types/AskForApproval.d.ts +9 -0
  32. package/dist/contracts/codex-app-server-0.153.4/types/AskForApproval.js +2 -0
  33. package/dist/contracts/codex-app-server-0.153.4/types/ClientNotification.d.ts +3 -0
  34. package/dist/contracts/codex-app-server-0.153.4/types/ClientNotification.js +2 -0
  35. package/dist/contracts/codex-app-server-0.153.4/types/SandboxMode.d.ts +1 -0
  36. package/dist/contracts/codex-app-server-0.153.4/types/SandboxMode.js +2 -0
  37. package/dist/contracts/codex-app-server-0.153.4/types/ThreadReadParams.d.ts +10 -0
  38. package/dist/contracts/codex-app-server-0.153.4/types/ThreadReadParams.js +2 -0
  39. package/dist/contracts/codex-app-server-0.153.4/types/TokenUsageBreakdown.d.ts +8 -0
  40. package/dist/contracts/codex-app-server-0.153.4/types/TokenUsageBreakdown.js +2 -0
  41. package/dist/contracts/codex-app-server-0.153.4/types/TurnInterruptParams.d.ts +4 -0
  42. package/dist/contracts/codex-app-server-0.153.4/types/TurnInterruptParams.js +2 -0
  43. package/dist/src/agent-sdk-normalizer.d.ts +22 -0
  44. package/dist/src/agent-sdk-normalizer.js +995 -0
  45. package/dist/src/agent-sdk-run.d.ts +31 -0
  46. package/dist/src/agent-sdk-run.js +242 -0
  47. package/dist/src/agent-sdk-runner.d.ts +96 -0
  48. package/dist/src/agent-sdk-runner.js +407 -0
  49. package/dist/src/agent-sdk.d.ts +294 -0
  50. package/dist/src/agent-sdk.js +644 -0
  51. package/dist/src/aggregation.d.ts +183 -0
  52. package/dist/src/aggregation.js +513 -0
  53. package/dist/src/artifacts.d.ts +36 -0
  54. package/dist/src/artifacts.js +1372 -0
  55. package/dist/src/atlas-grafana.d.ts +377 -0
  56. package/dist/src/atlas-grafana.js +47 -0
  57. package/dist/src/atlas-html.d.ts +2 -0
  58. package/dist/src/atlas-html.js +34 -0
  59. package/dist/src/atlas.d.ts +130 -0
  60. package/dist/src/atlas.js +235 -0
  61. package/dist/src/behavior-assertions.d.ts +95 -0
  62. package/dist/src/behavior-assertions.js +154 -0
  63. package/dist/src/cli.d.ts +5 -0
  64. package/dist/src/cli.js +957 -0
  65. package/dist/src/codex-judge.d.ts +44 -0
  66. package/dist/src/codex-judge.js +214 -0
  67. package/dist/src/codex-run.d.ts +114 -0
  68. package/dist/src/codex-run.js +519 -0
  69. package/dist/src/codex.d.ts +187 -0
  70. package/dist/src/codex.js +1028 -0
  71. package/dist/src/contracts.d.ts +155 -0
  72. package/dist/src/contracts.js +866 -0
  73. package/dist/src/corpus.d.ts +67 -0
  74. package/dist/src/corpus.js +540 -0
  75. package/dist/src/cursor-sdk-runner.d.ts +81 -0
  76. package/dist/src/cursor-sdk-runner.js +362 -0
  77. package/dist/src/cursor-sdk.d.ts +81 -0
  78. package/dist/src/cursor-sdk.js +1078 -0
  79. package/dist/src/deepseek-adapter.d.ts +152 -0
  80. package/dist/src/deepseek-adapter.js +777 -0
  81. package/dist/src/exports.d.ts +69 -0
  82. package/dist/src/exports.js +966 -0
  83. package/dist/src/human-calibration.d.ts +167 -0
  84. package/dist/src/human-calibration.js +618 -0
  85. package/dist/src/index.d.ts +71 -0
  86. package/dist/src/index.js +38 -0
  87. package/dist/src/lifecycle.d.ts +196 -0
  88. package/dist/src/lifecycle.js +1889 -0
  89. package/dist/src/normalization-integrity.d.ts +128 -0
  90. package/dist/src/normalization-integrity.js +429 -0
  91. package/dist/src/openhands-run.d.ts +36 -0
  92. package/dist/src/openhands-run.js +415 -0
  93. package/dist/src/openhands.d.ts +130 -0
  94. package/dist/src/openhands.js +859 -0
  95. package/dist/src/pi.d.ts +203 -0
  96. package/dist/src/pi.js +1345 -0
  97. package/dist/src/process-protocol.d.ts +245 -0
  98. package/dist/src/process-protocol.js +1261 -0
  99. package/dist/src/retained-evidence.d.ts +12 -0
  100. package/dist/src/retained-evidence.js +201 -0
  101. package/dist/src/run-bundles.d.ts +193 -0
  102. package/dist/src/run-bundles.js +993 -0
  103. package/dist/src/scheduler.d.ts +109 -0
  104. package/dist/src/scheduler.js +1080 -0
  105. package/dist/src/semantic-judge.d.ts +194 -0
  106. package/dist/src/semantic-judge.js +875 -0
  107. package/dist/src/structural-observations.d.ts +124 -0
  108. package/dist/src/structural-observations.js +671 -0
  109. package/dist/src/task-packets.d.ts +115 -0
  110. package/dist/src/task-packets.js +683 -0
  111. package/dist/src/uniform-events.d.ts +120 -0
  112. package/dist/src/uniform-events.js +158 -0
  113. package/dist/src/verifiers.d.ts +116 -0
  114. package/dist/src/verifiers.js +819 -0
  115. package/dist/src/workspaces.d.ts +56 -0
  116. package/dist/src/workspaces.js +1314 -0
  117. package/docs/README.md +60 -0
  118. package/docs/development/README.md +71 -0
  119. package/docs/development/documentation-sync.md +58 -0
  120. package/docs/development/extension-contracts.md +307 -0
  121. package/docs/evaluation/README.md +48 -0
  122. package/docs/evaluation/aggregation.md +112 -0
  123. package/docs/evaluation/behavior-assertions.md +45 -0
  124. package/docs/evaluation/human-calibration.md +170 -0
  125. package/docs/evaluation/normalization-integrity.md +80 -0
  126. package/docs/evaluation/semantic-judge.md +188 -0
  127. package/docs/evaluation/structural-observations.md +84 -0
  128. package/docs/evaluation/uniform-events.md +131 -0
  129. package/docs/guides/atlas.md +144 -0
  130. package/docs/guides/evidence-and-sharing.md +100 -0
  131. package/docs/guides/operator-guide.md +424 -0
  132. package/docs/guides/quickstart.md +152 -0
  133. package/docs/guides/telemetry.md +66 -0
  134. package/docs/harnesses/README.md +31 -0
  135. package/docs/harnesses/claude-agent-sdk.md +61 -0
  136. package/docs/harnesses/codex-harness.md +174 -0
  137. package/docs/harnesses/cursor-sdk.md +149 -0
  138. package/docs/harnesses/deepseek-harness.md +134 -0
  139. package/docs/harnesses/openhands-agent-server.md +153 -0
  140. package/docs/harnesses/pi-sdk.md +66 -0
  141. package/docs/reference/README.md +19 -0
  142. package/docs/reference/agent-sdk-operational-runner.md +118 -0
  143. package/docs/reference/cli.md +114 -0
  144. package/docs/reference/contracts.md +222 -0
  145. package/docs/reference/run-bundle-contract.md +354 -0
  146. package/docs/reference/run-lifecycle.md +54 -0
  147. package/examples/cursor-sdk/README.md +11 -0
  148. package/examples/cursor-sdk/capture-profile.json +1 -0
  149. package/examples/cursor-sdk/harness.json +1 -0
  150. package/examples/cursor-sdk/model.json +1 -0
  151. package/examples/cursor-sdk/native-limits.json +1 -0
  152. package/examples/cursor-sdk/native-tool-policy.json +1 -0
  153. package/ontology/behavior-categories.v1.json +46 -0
  154. package/package.json +66 -0
  155. package/release/0.1.0/KNOWN_LIMITATIONS.md +35 -0
  156. package/release/0.1.0/README.md +46 -0
  157. package/release/0.1.0/reproducibility.json +61 -0
  158. package/release/0.2.0/KNOWN_LIMITATIONS.md +40 -0
  159. package/release/0.2.0/README.md +42 -0
  160. package/release/0.2.0/reproducibility.json +73 -0
  161. package/release/0.2.1/KNOWN_LIMITATIONS.md +18 -0
  162. package/release/0.2.1/README.md +63 -0
  163. package/release/0.2.1/reproducibility.json +73 -0
  164. package/release/README.md +13 -0
  165. package/schemas/aggregation.v1.json +293 -0
  166. package/schemas/behavior-assertions.v1.json +220 -0
  167. package/schemas/deepseek-runtime-composition.v1.schema.json +122 -0
  168. package/schemas/experiment.v1.schema.json +188 -0
  169. package/schemas/human-calibration.v1.json +336 -0
  170. package/schemas/normalization-integrity.v1.json +302 -0
  171. package/schemas/run-bundles/v1.json +1040 -0
  172. package/schemas/run-queue.v1.schema.json +206 -0
  173. package/schemas/semantic-judge.v1.json +380 -0
  174. package/schemas/structural-observations.v1.json +131 -0
  175. package/schemas/task-packet-freeze.v1.schema.json +106 -0
  176. package/schemas/task-packet.v1.schema.json +234 -0
  177. package/schemas/uniform-events/v1.json +289 -0
  178. package/scripts/atlas-grafana.sh +18 -0
@@ -0,0 +1,188 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://ebo.dev/schemas/experiment.v1.schema.json",
4
+ "title": "EBO experiment v1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion",
9
+ "id",
10
+ "taskSet",
11
+ "modelSet",
12
+ "harnessSet",
13
+ "trialCount",
14
+ "ordering",
15
+ "coordinatorBudget",
16
+ "captureProfile"
17
+ ],
18
+ "properties": {
19
+ "schemaVersion": { "const": "ebo.experiment/v1" },
20
+ "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
21
+ "taskSet": { "$ref": "#/$defs/taskConditionSet" },
22
+ "modelSet": { "$ref": "#/$defs/conditionSet" },
23
+ "harnessSet": {
24
+ "type": "object",
25
+ "minProperties": 1,
26
+ "propertyNames": { "pattern": "^[a-z0-9][a-z0-9-]*$" },
27
+ "additionalProperties": { "$ref": "#/$defs/harnessCondition" }
28
+ },
29
+ "trialCount": {
30
+ "type": "integer",
31
+ "minimum": 1,
32
+ "maximum": 9007199254740991
33
+ },
34
+ "ordering": { "$ref": "#/$defs/ordering" },
35
+ "coordinatorBudget": {
36
+ "type": "object",
37
+ "additionalProperties": false,
38
+ "required": ["maxWallClockMs"],
39
+ "properties": {
40
+ "maxWallClockMs": {
41
+ "type": "integer",
42
+ "minimum": 1,
43
+ "maximum": 2147483647
44
+ }
45
+ }
46
+ },
47
+ "captureProfile": { "$ref": "#/$defs/configurationReference" }
48
+ },
49
+ "$defs": {
50
+ "digest": {
51
+ "type": "object",
52
+ "additionalProperties": false,
53
+ "required": ["algorithm", "value"],
54
+ "properties": {
55
+ "algorithm": { "const": "sha256" },
56
+ "value": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
57
+ }
58
+ },
59
+ "configurationReference": {
60
+ "type": "object",
61
+ "additionalProperties": false,
62
+ "required": ["locator", "digest"],
63
+ "properties": {
64
+ "locator": {
65
+ "type": "string",
66
+ "maxLength": 960,
67
+ "pattern": "^(?!(?:[^/]+/){64})(?!.*//)(?!.*(?:^|/)\\.{1,2}(?:/|$))(?!.*(?:^|/)\\.[Gg][Ii][Tt](?:/|$))(?!.*(?:^|/)[^/]{256})(?!.*(?:^|/)[^/]*\\.(?:/|$))(?!.*(?:^|/)(?:[Cc][Oo][Nn]|[Pp][Rr][Nn]|[Aa][Uu][Xx]|[Nn][Uu][Ll]|[Cc][Oo][Mm][1-9]|[Ll][Pp][Tt][1-9])(?:\\.[^/]*)?(?:/|$))(?!.*/$)[A-Za-z0-9][A-Za-z0-9._/-]*$"
68
+ },
69
+ "digest": { "$ref": "#/$defs/digest" }
70
+ }
71
+ },
72
+ "taskCondition": {
73
+ "type": "object",
74
+ "additionalProperties": false,
75
+ "required": ["packetRef"],
76
+ "properties": {
77
+ "packetRef": { "$ref": "#/$defs/configurationReference" }
78
+ }
79
+ },
80
+ "condition": {
81
+ "type": "object",
82
+ "additionalProperties": false,
83
+ "required": ["configurationRef"],
84
+ "properties": {
85
+ "configurationRef": { "$ref": "#/$defs/configurationReference" }
86
+ }
87
+ },
88
+ "conditionSet": {
89
+ "type": "object",
90
+ "minProperties": 1,
91
+ "propertyNames": { "pattern": "^[a-z0-9][a-z0-9-]*$" },
92
+ "additionalProperties": { "$ref": "#/$defs/condition" }
93
+ },
94
+ "taskConditionSet": {
95
+ "type": "object",
96
+ "minProperties": 1,
97
+ "propertyNames": { "pattern": "^[a-z0-9][a-z0-9-]*$" },
98
+ "additionalProperties": { "$ref": "#/$defs/taskCondition" }
99
+ },
100
+ "conditionIdList": {
101
+ "type": "array",
102
+ "minItems": 1,
103
+ "uniqueItems": true,
104
+ "items": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" }
105
+ },
106
+ "ordering": {
107
+ "type": "object",
108
+ "additionalProperties": false,
109
+ "required": ["seed", "strategy"],
110
+ "properties": {
111
+ "seed": { "type": "string", "minLength": 1 },
112
+ "strategy": {
113
+ "enum": [
114
+ "declared",
115
+ "sequential",
116
+ "permuted",
117
+ "seeded-shuffle",
118
+ "balanced",
119
+ "balanced-interleaved",
120
+ "interleaved"
121
+ ]
122
+ },
123
+ "declaredOrder": { "$ref": "#/$defs/declaredOrder" },
124
+ "permutationAlgorithmRef": { "$ref": "#/$defs/configurationReference" },
125
+ "balanceBy": { "enum": ["task", "model", "harness"] }
126
+ },
127
+ "allOf": [
128
+ {
129
+ "if": {
130
+ "properties": { "strategy": { "const": "declared" } }
131
+ },
132
+ "then": { "required": ["declaredOrder"] }
133
+ },
134
+ {
135
+ "if": {
136
+ "properties": { "strategy": { "enum": ["permuted"] } }
137
+ },
138
+ "then": { "required": ["permutationAlgorithmRef"] }
139
+ },
140
+ {
141
+ "if": {
142
+ "properties": { "strategy": { "enum": ["declared", "sequential"] } }
143
+ },
144
+ "then": {
145
+ "not": {
146
+ "anyOf": [
147
+ { "required": ["permutationAlgorithmRef"] },
148
+ { "required": ["balanceBy"] }
149
+ ]
150
+ }
151
+ }
152
+ },
153
+ {
154
+ "if": {
155
+ "properties": { "strategy": { "enum": ["balanced", "balanced-interleaved", "interleaved"] } }
156
+ },
157
+ "then": { "not": { "required": ["permutationAlgorithmRef"] } }
158
+ },
159
+ {
160
+ "if": {
161
+ "properties": { "strategy": { "enum": ["permuted", "seeded-shuffle"] } }
162
+ },
163
+ "then": { "not": { "required": ["balanceBy"] } }
164
+ }
165
+ ]
166
+ },
167
+ "declaredOrder": {
168
+ "type": "object",
169
+ "additionalProperties": false,
170
+ "required": ["taskIds", "modelIds", "harnessIds"],
171
+ "properties": {
172
+ "taskIds": { "$ref": "#/$defs/conditionIdList" },
173
+ "modelIds": { "$ref": "#/$defs/conditionIdList" },
174
+ "harnessIds": { "$ref": "#/$defs/conditionIdList" }
175
+ }
176
+ },
177
+ "harnessCondition": {
178
+ "type": "object",
179
+ "additionalProperties": false,
180
+ "required": ["configurationRef", "nativeLimitsRef", "nativeToolPolicyRef"],
181
+ "properties": {
182
+ "configurationRef": { "$ref": "#/$defs/configurationReference" },
183
+ "nativeLimitsRef": { "$ref": "#/$defs/configurationReference" },
184
+ "nativeToolPolicyRef": { "$ref": "#/$defs/configurationReference" }
185
+ }
186
+ }
187
+ }
188
+ }
@@ -0,0 +1,336 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:ebo:schema:human-calibration:v1",
4
+ "$defs": {
5
+ "identifier": { "type": "string", "minLength": 1, "maxLength": 256, "pattern": ".*\\S.*" },
6
+ "path": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": ".*\\S.*" },
7
+ "text": { "type": "string", "minLength": 1, "maxLength": 8192, "pattern": ".*\\S.*" },
8
+ "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
9
+ "assertionBinding": {
10
+ "type": "object",
11
+ "additionalProperties": false,
12
+ "required": ["id", "schemaVersion", "digest"],
13
+ "properties": {
14
+ "id": { "$ref": "#/$defs/identifier" },
15
+ "schemaVersion": { "const": "ebo.behavior-assertion/v1" },
16
+ "digest": { "$ref": "#/$defs/digest" }
17
+ }
18
+ },
19
+ "source": {
20
+ "type": "object",
21
+ "additionalProperties": false,
22
+ "required": ["bundleRoot", "assertionPath", "taskContext"],
23
+ "properties": {
24
+ "bundleRoot": { "$ref": "#/$defs/path" },
25
+ "assertionPath": { "$ref": "#/$defs/path" },
26
+ "taskContext": { "$ref": "#/$defs/text" }
27
+ }
28
+ },
29
+ "sourceLocator": {
30
+ "type": "object",
31
+ "additionalProperties": false,
32
+ "required": ["bundleRoot", "assertionPath"],
33
+ "properties": {
34
+ "bundleRoot": { "$ref": "#/$defs/path" },
35
+ "assertionPath": { "$ref": "#/$defs/path" }
36
+ }
37
+ },
38
+ "sourceSet": {
39
+ "type": "object",
40
+ "additionalProperties": false,
41
+ "required": ["schemaVersion", "sources"],
42
+ "properties": {
43
+ "schemaVersion": { "const": "ebo.review-source-set/v1" },
44
+ "sources": { "type": "array", "minItems": 1, "maxItems": 100000, "items": { "$ref": "#/$defs/source" } }
45
+ }
46
+ },
47
+ "stringList": { "type": "array", "minItems": 1, "maxItems": 10000, "uniqueItems": true, "items": { "$ref": "#/$defs/identifier" } },
48
+ "filters": {
49
+ "type": "object",
50
+ "additionalProperties": false,
51
+ "properties": {
52
+ "taskIds": { "$ref": "#/$defs/stringList" },
53
+ "modelIds": { "$ref": "#/$defs/stringList" },
54
+ "harnessIds": { "$ref": "#/$defs/stringList" },
55
+ "outcomes": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "enum": ["passed", "failed", "not-run", "error", "unavailable"] } },
56
+ "terminalStates": { "$ref": "#/$defs/stringList" },
57
+ "categoryIds": { "$ref": "#/$defs/stringList" },
58
+ "abstentions": { "type": "array", "minItems": 1, "maxItems": 2, "uniqueItems": true, "items": { "type": "boolean" } },
59
+ "confidence": {
60
+ "type": "object",
61
+ "additionalProperties": false,
62
+ "minProperties": 1,
63
+ "properties": {
64
+ "min": { "type": "number", "minimum": 0, "maximum": 1 },
65
+ "max": { "type": "number", "minimum": 0, "maximum": 1 }
66
+ }
67
+ }
68
+ }
69
+ },
70
+ "criteria": {
71
+ "type": "object",
72
+ "additionalProperties": false,
73
+ "required": ["schemaVersion", "seed", "strata"],
74
+ "properties": {
75
+ "schemaVersion": { "const": "ebo.review-sample-criteria/v1" },
76
+ "seed": { "$ref": "#/$defs/identifier" },
77
+ "strata": {
78
+ "type": "array",
79
+ "minItems": 1,
80
+ "maxItems": 10000,
81
+ "items": {
82
+ "type": "object",
83
+ "additionalProperties": false,
84
+ "required": ["id", "sampleSize", "filters"],
85
+ "properties": {
86
+ "id": { "$ref": "#/$defs/identifier" },
87
+ "sampleSize": { "type": "integer", "minimum": 1, "maximum": 100000 },
88
+ "filters": { "$ref": "#/$defs/filters" }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ },
94
+ "context": {
95
+ "type": "object",
96
+ "additionalProperties": false,
97
+ "required": ["runId", "attemptId", "taskId", "taskContext", "modelId", "harnessId", "terminalState", "outcome", "categoryId", "abstained", "confidence"],
98
+ "properties": {
99
+ "runId": { "$ref": "#/$defs/identifier" },
100
+ "attemptId": { "$ref": "#/$defs/identifier" },
101
+ "taskId": { "$ref": "#/$defs/identifier" },
102
+ "taskContext": { "$ref": "#/$defs/text" },
103
+ "modelId": { "$ref": "#/$defs/identifier" },
104
+ "harnessId": { "$ref": "#/$defs/identifier" },
105
+ "terminalState": { "$ref": "#/$defs/identifier" },
106
+ "outcome": { "enum": ["passed", "failed", "not-run", "error", "unavailable"] },
107
+ "categoryId": { "$ref": "#/$defs/identifier" },
108
+ "abstained": { "type": "boolean" },
109
+ "confidence": { "type": ["number", "null"], "minimum": 0, "maximum": 1 }
110
+ }
111
+ },
112
+ "candidate": {
113
+ "type": "object",
114
+ "additionalProperties": false,
115
+ "required": ["assertion", "source", "context"],
116
+ "properties": {
117
+ "assertion": { "$ref": "#/$defs/assertionBinding" },
118
+ "source": { "$ref": "#/$defs/sourceLocator" },
119
+ "context": { "$ref": "#/$defs/context" }
120
+ }
121
+ },
122
+ "sample": {
123
+ "type": "object",
124
+ "additionalProperties": false,
125
+ "required": ["schemaVersion", "createdAt", "sources", "criteria", "population", "candidates"],
126
+ "properties": {
127
+ "schemaVersion": { "const": "ebo.review-sample/v1" },
128
+ "createdAt": { "type": "string", "format": "date-time" },
129
+ "sources": { "$ref": "#/$defs/sourceSet" },
130
+ "criteria": { "$ref": "#/$defs/criteria" },
131
+ "population": {
132
+ "type": "object",
133
+ "additionalProperties": false,
134
+ "required": ["sourceCount", "eligibleAssertionIds", "selectedAssertionIds", "unavailableStrata", "strata"],
135
+ "properties": {
136
+ "sourceCount": { "type": "integer", "minimum": 0 },
137
+ "eligibleAssertionIds": { "type": "array", "items": { "$ref": "#/$defs/identifier" } },
138
+ "selectedAssertionIds": { "type": "array", "items": { "$ref": "#/$defs/identifier" } },
139
+ "unavailableStrata": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/identifier" } },
140
+ "strata": {
141
+ "type": "array",
142
+ "items": {
143
+ "type": "object",
144
+ "additionalProperties": false,
145
+ "required": ["id", "eligible", "selected", "requested"],
146
+ "properties": {
147
+ "id": { "$ref": "#/$defs/identifier" },
148
+ "eligible": { "type": "integer", "minimum": 0 },
149
+ "selected": { "type": "integer", "minimum": 0 },
150
+ "requested": { "type": "integer", "minimum": 1 }
151
+ }
152
+ }
153
+ }
154
+ }
155
+ },
156
+ "candidates": { "type": "array", "maxItems": 100000, "items": { "$ref": "#/$defs/candidate" } }
157
+ }
158
+ },
159
+ "reviewer": {
160
+ "type": "object",
161
+ "additionalProperties": false,
162
+ "required": ["kind", "id"],
163
+ "properties": { "kind": { "const": "human" }, "id": { "$ref": "#/$defs/identifier" } }
164
+ },
165
+ "historyBinding": {
166
+ "oneOf": [
167
+ { "type": "null" },
168
+ {
169
+ "type": "object",
170
+ "additionalProperties": false,
171
+ "required": ["schemaVersion", "digest"],
172
+ "properties": { "schemaVersion": { "const": "ebo.review-history/v1" }, "digest": { "$ref": "#/$defs/digest" } }
173
+ }
174
+ ]
175
+ },
176
+ "decision": {
177
+ "type": "object",
178
+ "additionalProperties": false,
179
+ "required": ["schemaVersion", "id", "kind", "assertion", "reviewer", "decidedAt", "state", "rationale", "previousHistory"],
180
+ "properties": {
181
+ "schemaVersion": { "const": "ebo.human-review-decision/v1" },
182
+ "id": { "$ref": "#/$defs/identifier" },
183
+ "kind": { "enum": ["review", "adjudication"] },
184
+ "assertion": { "$ref": "#/$defs/assertionBinding" },
185
+ "reviewer": { "$ref": "#/$defs/reviewer" },
186
+ "decidedAt": { "type": "string", "format": "date-time" },
187
+ "state": { "enum": ["confirmed", "disputed", "rejected", "insufficient-evidence"] },
188
+ "rationale": { "$ref": "#/$defs/text" },
189
+ "previousHistory": { "$ref": "#/$defs/historyBinding" },
190
+ "adjudicates": { "type": "array", "minItems": 2, "uniqueItems": true, "items": { "$ref": "#/$defs/identifier" } }
191
+ }
192
+ },
193
+ "selectionBinding": {
194
+ "type": "object",
195
+ "additionalProperties": false,
196
+ "required": ["schemaVersion", "digest"],
197
+ "properties": { "schemaVersion": { "const": "ebo.review-sample/v1" }, "digest": { "$ref": "#/$defs/digest" } }
198
+ },
199
+ "history": {
200
+ "type": "object",
201
+ "additionalProperties": false,
202
+ "required": ["schemaVersion", "selection", "decisions"],
203
+ "properties": {
204
+ "schemaVersion": { "const": "ebo.review-history/v1" },
205
+ "selection": { "$ref": "#/$defs/selectionBinding" },
206
+ "decisions": { "type": "array", "maxItems": 100000, "items": { "$ref": "#/$defs/decision" } }
207
+ }
208
+ },
209
+ "agreement": {
210
+ "oneOf": [
211
+ {
212
+ "type": "object", "additionalProperties": false,
213
+ "required": ["status", "denominator", "population", "reason"],
214
+ "properties": { "status": { "const": "unavailable" }, "denominator": { "const": 0 }, "population": { "$ref": "#/$defs/text" }, "reason": { "$ref": "#/$defs/text" } }
215
+ },
216
+ {
217
+ "type": "object", "additionalProperties": false,
218
+ "required": ["status", "denominator", "population", "agreements", "disagreements", "rate"],
219
+ "properties": {
220
+ "status": { "const": "available" }, "denominator": { "type": "integer", "minimum": 1 }, "population": { "$ref": "#/$defs/text" },
221
+ "agreements": { "type": "integer", "minimum": 0 }, "disagreements": { "type": "integer", "minimum": 0 }, "rate": { "type": "number", "minimum": 0, "maximum": 1 }
222
+ }
223
+ }
224
+ ]
225
+ },
226
+ "counts": {
227
+ "type": "object",
228
+ "additionalProperties": false,
229
+ "required": ["selectedAssertions", "judgeAbstentions", "humanDecisionAbstentions", "disputedAssertions", "unresolvedAssertions", "confirmedEligibleAssertions", "rejectedAssertions", "judgeHumanAgreement", "humanHumanAgreement", "adjudication"],
230
+ "properties": {
231
+ "selectedAssertions": { "type": "integer", "minimum": 0 },
232
+ "judgeAbstentions": { "type": "integer", "minimum": 0 },
233
+ "humanDecisionAbstentions": { "type": "integer", "minimum": 0 },
234
+ "disputedAssertions": { "type": "integer", "minimum": 0 },
235
+ "unresolvedAssertions": { "type": "integer", "minimum": 0 },
236
+ "confirmedEligibleAssertions": { "type": "integer", "minimum": 0 },
237
+ "rejectedAssertions": { "type": "integer", "minimum": 0 },
238
+ "judgeHumanAgreement": { "$ref": "#/$defs/agreement" },
239
+ "humanHumanAgreement": { "$ref": "#/$defs/agreement" },
240
+ "adjudication": {
241
+ "type": "object", "additionalProperties": false,
242
+ "required": ["denominator", "population", "confirmed", "rejected", "unresolved"],
243
+ "properties": {
244
+ "denominator": { "type": "integer", "minimum": 0 }, "population": { "const": "human adjudication decisions" },
245
+ "confirmed": { "type": "integer", "minimum": 0 }, "rejected": { "type": "integer", "minimum": 0 }, "unresolved": { "type": "integer", "minimum": 0 }
246
+ }
247
+ }
248
+ }
249
+ },
250
+ "summary": {
251
+ "type": "object", "additionalProperties": false,
252
+ "required": ["schemaVersion", "selection", "history", "totals", "categories"],
253
+ "properties": {
254
+ "schemaVersion": { "const": "ebo.calibration-summary/v1" },
255
+ "selection": { "$ref": "#/$defs/selectionBinding" },
256
+ "history": {
257
+ "type": "object", "additionalProperties": false, "required": ["schemaVersion", "digest"],
258
+ "properties": { "schemaVersion": { "const": "ebo.review-history/v1" }, "digest": { "$ref": "#/$defs/digest" } }
259
+ },
260
+ "totals": { "$ref": "#/$defs/counts" },
261
+ "categories": {
262
+ "type": "array",
263
+ "items": {
264
+ "type": "object", "additionalProperties": false, "required": ["categoryId", "counts"],
265
+ "properties": { "categoryId": { "$ref": "#/$defs/identifier" }, "counts": { "$ref": "#/$defs/counts" } }
266
+ }
267
+ }
268
+ }
269
+ },
270
+ "packet": {
271
+ "type": "object",
272
+ "additionalProperties": false,
273
+ "required": ["schemaVersion", "createdAt", "selection", "evidenceBoundary", "items"],
274
+ "properties": {
275
+ "schemaVersion": { "const": "ebo.review-packet/v1" },
276
+ "createdAt": { "type": "string", "format": "date-time" },
277
+ "selection": { "$ref": "#/$defs/selectionBinding" },
278
+ "evidenceBoundary": {
279
+ "type": "object",
280
+ "additionalProperties": false,
281
+ "required": ["classification", "copiedNativeEvidence", "note"],
282
+ "properties": {
283
+ "classification": { "const": "restricted-local-only" },
284
+ "copiedNativeEvidence": { "const": true },
285
+ "note": { "$ref": "#/$defs/text" }
286
+ }
287
+ },
288
+ "items": {
289
+ "type": "array",
290
+ "maxItems": 100000,
291
+ "items": {
292
+ "type": "object",
293
+ "additionalProperties": false,
294
+ "required": ["assertion", "assertionBinding", "context", "source", "citations"],
295
+ "properties": {
296
+ "assertion": { "$ref": "urn:ebo:schema:behavior-assertions:v1#/$defs/assertion" },
297
+ "assertionBinding": { "$ref": "#/$defs/assertionBinding" },
298
+ "context": { "$ref": "#/$defs/context" },
299
+ "source": {
300
+ "type": "object",
301
+ "additionalProperties": false,
302
+ "required": ["evidenceRoot"],
303
+ "properties": { "evidenceRoot": { "$ref": "#/$defs/path" } }
304
+ },
305
+ "citations": {
306
+ "type": "array",
307
+ "maxItems": 256,
308
+ "items": {
309
+ "type": "object",
310
+ "additionalProperties": false,
311
+ "required": ["eventId", "nativeReference", "sharingClass", "href", "nativeHref"],
312
+ "properties": {
313
+ "eventId": { "$ref": "#/$defs/identifier" },
314
+ "nativeReference": { "$ref": "urn:ebo:schema:uniform-events:v1#/$defs/nativeReference" },
315
+ "sharingClass": { "enum": ["unknown", "restricted", "internal", "partner", "public"] },
316
+ "href": { "$ref": "#/$defs/path" },
317
+ "nativeHref": { "$ref": "#/$defs/path" }
318
+ }
319
+ }
320
+ }
321
+ }
322
+ }
323
+ }
324
+ }
325
+ }
326
+ },
327
+ "oneOf": [
328
+ { "$ref": "#/$defs/sourceSet" },
329
+ { "$ref": "#/$defs/criteria" },
330
+ { "$ref": "#/$defs/sample" },
331
+ { "$ref": "#/$defs/decision" },
332
+ { "$ref": "#/$defs/history" },
333
+ { "$ref": "#/$defs/summary" },
334
+ { "$ref": "#/$defs/packet" }
335
+ ]
336
+ }