memoryking 0.1.0__py3-none-any.whl
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.
- memoryking/__init__.py +3 -0
- memoryking/__main__.py +1328 -0
- memoryking/adapters/__init__.py +1 -0
- memoryking/adapters/adapter_state.py +242 -0
- memoryking/adapters/anchor_schema.sql +7 -0
- memoryking/adapters/atlas.py +441 -0
- memoryking/adapters/browser_commands.py +125 -0
- memoryking/adapters/dashboard.py +510 -0
- memoryking/adapters/dense_search.py +86 -0
- memoryking/adapters/egress_policy.py +244 -0
- memoryking/adapters/egress_schema.sql +13 -0
- memoryking/adapters/embedding.schema.json +302 -0
- memoryking/adapters/embedding_store.py +469 -0
- memoryking/adapters/execution.py +369 -0
- memoryking/adapters/experience.py +423 -0
- memoryking/adapters/experience.schema.json +1508 -0
- memoryking/adapters/experience_records.py +239 -0
- memoryking/adapters/experience_schema.sql +23 -0
- memoryking/adapters/handoff.py +494 -0
- memoryking/adapters/handoff.schema.json +299 -0
- memoryking/adapters/handoff_schema.sql +17 -0
- memoryking/adapters/index_schema.sql +11 -0
- memoryking/adapters/inference.py +454 -0
- memoryking/adapters/inference.schema.json +541 -0
- memoryking/adapters/inspection.py +1128 -0
- memoryking/adapters/inspection.schema.json +568 -0
- memoryking/adapters/knowledge.schema.json +633 -0
- memoryking/adapters/knowledge_schema.sql +37 -0
- memoryking/adapters/knowledge_store.py +800 -0
- memoryking/adapters/legacy_snapshot.py +358 -0
- memoryking/adapters/legacy_tables.py +49 -0
- memoryking/adapters/local_contract.py +45 -0
- memoryking/adapters/local_embeddings.py +189 -0
- memoryking/adapters/local_files.py +242 -0
- memoryking/adapters/local_ipc.py +258 -0
- memoryking/adapters/local_schema.sql +44 -0
- memoryking/adapters/local_store.py +632 -0
- memoryking/adapters/local_wire.schema.json +7672 -0
- memoryking/adapters/models/minilm-l6-v2-onnx.json +57 -0
- memoryking/adapters/models/ms-marco-minilm-l6-v2-onnx.json +57 -0
- memoryking/adapters/optional_schema.sql +43 -0
- memoryking/adapters/plan_dashboard.py +51 -0
- memoryking/adapters/plans.py +253 -0
- memoryking/adapters/postgres_admin.py +300 -0
- memoryking/adapters/postgres_anchor_schema.sql +9 -0
- memoryking/adapters/postgres_counter.sql +14 -0
- memoryking/adapters/postgres_egress_schema.sql +15 -0
- memoryking/adapters/postgres_experience_schema.sql +39 -0
- memoryking/adapters/postgres_index_schema.sql +7 -0
- memoryking/adapters/postgres_optional_schema.sql +71 -0
- memoryking/adapters/postgres_pool.py +77 -0
- memoryking/adapters/postgres_recovery.py +525 -0
- memoryking/adapters/postgres_schema.sql +365 -0
- memoryking/adapters/postgres_sql.py +102 -0
- memoryking/adapters/postgres_store.py +428 -0
- memoryking/adapters/postgres_summary_schema.sql +12 -0
- memoryking/adapters/postgres_trust_schema.sql +20 -0
- memoryking/adapters/processing.schema.json +471 -0
- memoryking/adapters/processing_store.py +346 -0
- memoryking/adapters/projects.py +83 -0
- memoryking/adapters/proposals.py +238 -0
- memoryking/adapters/ranking.py +315 -0
- memoryking/adapters/repository.schema.json +664 -0
- memoryking/adapters/repository_git.py +264 -0
- memoryking/adapters/repository_schema.sql +25 -0
- memoryking/adapters/repository_store.py +960 -0
- memoryking/adapters/retrieval.py +1285 -0
- memoryking/adapters/retrieval.schema.json +553 -0
- memoryking/adapters/retrieval_schema.sql +10 -0
- memoryking/adapters/shared_control.py +40 -0
- memoryking/adapters/shared_dashboard.py +636 -0
- memoryking/adapters/shared_gateway.py +63 -0
- memoryking/adapters/shared_http.py +216 -0
- memoryking/adapters/shared_mcp.py +159 -0
- memoryking/adapters/shared_service.py +124 -0
- memoryking/adapters/stdio.py +193 -0
- memoryking/adapters/stdio.tools.json +6776 -0
- memoryking/adapters/summary_schema.sql +10 -0
- memoryking/adapters/team.py +253 -0
- memoryking/adapters/timeline.py +80 -0
- memoryking/adapters/token_count.py +55 -0
- memoryking/adapters/tokenizers/LICENSE +21 -0
- memoryking/adapters/tokenizers/cl100k_base.tiktoken +100256 -0
- memoryking/adapters/trust.py +123 -0
- memoryking/adapters/trust_schema.sql +13 -0
- memoryking/adapters/web/app.css +1251 -0
- memoryking/adapters/web/app.js +907 -0
- memoryking/adapters/web/brand.js +44 -0
- memoryking/adapters/web/crown-mono.svg +1 -0
- memoryking/adapters/web/crown.svg +8 -0
- memoryking/adapters/web/elephant.png +0 -0
- memoryking/adapters/web/favicon.svg +8 -0
- memoryking/adapters/web/graph-layout.js +52 -0
- memoryking/adapters/web/graph-worker.js +10 -0
- memoryking/adapters/web/graph.js +570 -0
- memoryking/adapters/web/index.html +208 -0
- memoryking/adapters/web/observatory.js +1208 -0
- memoryking/adapters/web/team.js +151 -0
- memoryking/adapters/web/wordmark.svg +1 -0
- memoryking/adapters/working.py +971 -0
- memoryking/adapters/working.schema.json +1717 -0
- memoryking/adapters/working_schema.sql +24 -0
- memoryking/application/__init__.py +1 -0
- memoryking/application/conformance.py +50 -0
- memoryking/application/legacy_import.py +337 -0
- memoryking/application/local_port.py +9 -0
- memoryking/application/storage.py +117 -0
- memoryking/application/store_core.py +1292 -0
- memoryking/backups.py +131 -0
- memoryking/contracts/__init__.py +6 -0
- memoryking/contracts/__main__.py +20 -0
- memoryking/contracts/canonical.py +88 -0
- memoryking/contracts/embedding.schema.json +302 -0
- memoryking/contracts/embedding_generated.py +65 -0
- memoryking/contracts/experience.schema.json +1508 -0
- memoryking/contracts/experience_generated.py +239 -0
- memoryking/contracts/generated.py +122 -0
- memoryking/contracts/handoff.schema.json +299 -0
- memoryking/contracts/handoff_generated.py +69 -0
- memoryking/contracts/inference.schema.json +541 -0
- memoryking/contracts/inference_generated.py +106 -0
- memoryking/contracts/processing.schema.json +471 -0
- memoryking/contracts/processing_generated.py +82 -0
- memoryking/contracts/py.typed +0 -0
- memoryking/contracts/repository.schema.json +664 -0
- memoryking/contracts/repository_generated.py +144 -0
- memoryking/contracts/retrieval.schema.json +553 -0
- memoryking/contracts/retrieval_generated.py +110 -0
- memoryking/contracts/schema.json +696 -0
- memoryking/contracts/validation.py +92 -0
- memoryking/contracts/working.schema.json +1717 -0
- memoryking/contracts/working_generated.py +291 -0
- memoryking/domain/__init__.py +1 -0
- memoryking/domain/anchors.py +97 -0
- memoryking/domain/briefing.py +108 -0
- memoryking/domain/briefing_text.py +222 -0
- memoryking/domain/checkpoint.py +118 -0
- memoryking/domain/compression.py +64 -0
- memoryking/domain/delta.py +129 -0
- memoryking/domain/embeddings.py +90 -0
- memoryking/domain/hints.py +465 -0
- memoryking/domain/http_status.py +45 -0
- memoryking/domain/learning.py +62 -0
- memoryking/domain/local.py +65 -0
- memoryking/domain/plans.py +140 -0
- memoryking/domain/repository.py +118 -0
- memoryking/domain/selectors.py +356 -0
- memoryking/domain/summary.py +88 -0
- memoryking/domain/usage.py +163 -0
- memoryking/embedding_loop.py +98 -0
- memoryking/embedding_worker.py +131 -0
- memoryking/harness.py +882 -0
- memoryking/harness_context.py +376 -0
- memoryking/hooks.py +171 -0
- memoryking/host_hooks.py +454 -0
- memoryking/lean.py +352 -0
- memoryking/memory_tool.py +776 -0
- memoryking/migration.py +194 -0
- memoryking/model_install.py +78 -0
- memoryking/observability.py +101 -0
- memoryking/observability_metrics.py +100 -0
- memoryking/profiles.py +150 -0
- memoryking/providers.py +330 -0
- memoryking/py.typed +0 -0
- memoryking/pytest_plugin.py +69 -0
- memoryking/reference_agent.py +152 -0
- memoryking/repository_worker.py +57 -0
- memoryking/resume_adapter.py +154 -0
- memoryking/sdk.py +302 -0
- memoryking/shared.py +301 -0
- memoryking/shared_sdk.py +101 -0
- memoryking/vault.py +176 -0
- memoryking-0.1.0.dist-info/METADATA +157 -0
- memoryking-0.1.0.dist-info/RECORD +179 -0
- memoryking-0.1.0.dist-info/WHEEL +5 -0
- memoryking-0.1.0.dist-info/entry_points.txt +7 -0
- memoryking-0.1.0.dist-info/licenses/LICENSE +202 -0
- memoryking-0.1.0.dist-info/licenses/NOTICE +12 -0
- memoryking-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,696 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://memoryking.invalid/contracts/foundation-v1",
|
|
4
|
+
"title": "MemoryKing foundation contracts v1",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"pattern": "^[a-z][a-z0-9]*_[A-Za-z0-9][A-Za-z0-9_-]{0,95}(?![\\s\\S])",
|
|
9
|
+
"maxLength": 128
|
|
10
|
+
},
|
|
11
|
+
"HistoryIncarnation": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"pattern": "^hist_[0-9a-f]{32}(?![\\s\\S])"
|
|
14
|
+
},
|
|
15
|
+
"Counter": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"pattern": "^(0|[1-9][0-9]{0,19})(?![\\s\\S])"
|
|
18
|
+
},
|
|
19
|
+
"Digest": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"pattern": "^sha256:[0-9a-f]{64}(?![\\s\\S])"
|
|
22
|
+
},
|
|
23
|
+
"PhaseId": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"pattern": "^P(0[1-9]|1[0-2])(?![\\s\\S])"
|
|
26
|
+
},
|
|
27
|
+
"TimestampMs": {
|
|
28
|
+
"type": "integer",
|
|
29
|
+
"minimum": 0,
|
|
30
|
+
"maximum": 9007199254740991
|
|
31
|
+
},
|
|
32
|
+
"Scope": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"store_id": {
|
|
36
|
+
"$ref": "#/$defs/Id"
|
|
37
|
+
},
|
|
38
|
+
"tenant_id": {
|
|
39
|
+
"$ref": "#/$defs/Id"
|
|
40
|
+
},
|
|
41
|
+
"project_id": {
|
|
42
|
+
"$ref": "#/$defs/Id"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"store_id",
|
|
47
|
+
"tenant_id",
|
|
48
|
+
"project_id"
|
|
49
|
+
],
|
|
50
|
+
"additionalProperties": false
|
|
51
|
+
},
|
|
52
|
+
"HistoryPosition": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"properties": {
|
|
55
|
+
"scope": {
|
|
56
|
+
"$ref": "#/$defs/Scope"
|
|
57
|
+
},
|
|
58
|
+
"history_incarnation": {
|
|
59
|
+
"$ref": "#/$defs/HistoryIncarnation"
|
|
60
|
+
},
|
|
61
|
+
"position": {
|
|
62
|
+
"$ref": "#/$defs/Counter"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": [
|
|
66
|
+
"scope",
|
|
67
|
+
"history_incarnation",
|
|
68
|
+
"position"
|
|
69
|
+
],
|
|
70
|
+
"additionalProperties": false
|
|
71
|
+
},
|
|
72
|
+
"AuthorizationContext": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"properties": {
|
|
75
|
+
"store_id": {
|
|
76
|
+
"$ref": "#/$defs/Id"
|
|
77
|
+
},
|
|
78
|
+
"tenant_id": {
|
|
79
|
+
"$ref": "#/$defs/Id"
|
|
80
|
+
},
|
|
81
|
+
"principal_id": {
|
|
82
|
+
"$ref": "#/$defs/Id"
|
|
83
|
+
},
|
|
84
|
+
"history_incarnation": {
|
|
85
|
+
"$ref": "#/$defs/HistoryIncarnation"
|
|
86
|
+
},
|
|
87
|
+
"authorization_generation": {
|
|
88
|
+
"$ref": "#/$defs/Counter"
|
|
89
|
+
},
|
|
90
|
+
"audience": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"minLength": 1,
|
|
93
|
+
"maxLength": 128
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": [
|
|
97
|
+
"store_id",
|
|
98
|
+
"tenant_id",
|
|
99
|
+
"principal_id",
|
|
100
|
+
"history_incarnation",
|
|
101
|
+
"authorization_generation",
|
|
102
|
+
"audience"
|
|
103
|
+
],
|
|
104
|
+
"additionalProperties": false
|
|
105
|
+
},
|
|
106
|
+
"EvidenceReference": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"properties": {
|
|
109
|
+
"evidence_id": {
|
|
110
|
+
"$ref": "#/$defs/Id"
|
|
111
|
+
},
|
|
112
|
+
"digest": {
|
|
113
|
+
"$ref": "#/$defs/Digest"
|
|
114
|
+
},
|
|
115
|
+
"source_revision": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"minLength": 1,
|
|
118
|
+
"maxLength": 128
|
|
119
|
+
},
|
|
120
|
+
"classification": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"enum": [
|
|
123
|
+
"synthetic",
|
|
124
|
+
"internal",
|
|
125
|
+
"restricted"
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"required": [
|
|
130
|
+
"evidence_id",
|
|
131
|
+
"digest",
|
|
132
|
+
"source_revision",
|
|
133
|
+
"classification"
|
|
134
|
+
],
|
|
135
|
+
"additionalProperties": false
|
|
136
|
+
},
|
|
137
|
+
"ErrorCode": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"enum": [
|
|
140
|
+
"invalid_request",
|
|
141
|
+
"forbidden",
|
|
142
|
+
"revision_conflict",
|
|
143
|
+
"budget_insufficient",
|
|
144
|
+
"constraint_resolution_incomplete",
|
|
145
|
+
"constraint_conflict",
|
|
146
|
+
"applicability_unknown",
|
|
147
|
+
"operation_ambiguous",
|
|
148
|
+
"index_not_ready",
|
|
149
|
+
"provider_unavailable",
|
|
150
|
+
"history_changed",
|
|
151
|
+
"reconciliation_required",
|
|
152
|
+
"authorization_release_expired",
|
|
153
|
+
"context_rebuild_required",
|
|
154
|
+
"selector_unsupported",
|
|
155
|
+
"selector_limit_exceeded",
|
|
156
|
+
"selector_relation_indeterminate",
|
|
157
|
+
"replacement_out_of_range",
|
|
158
|
+
"replay_expired",
|
|
159
|
+
"replay_purged",
|
|
160
|
+
"replay_artifact_missing",
|
|
161
|
+
"unsupported_schema",
|
|
162
|
+
"rate_limited",
|
|
163
|
+
"internal_error"
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
"ErrorEnvelope": {
|
|
167
|
+
"type": "object",
|
|
168
|
+
"properties": {
|
|
169
|
+
"schema_version": {
|
|
170
|
+
"const": "1"
|
|
171
|
+
},
|
|
172
|
+
"code": {
|
|
173
|
+
"$ref": "#/$defs/ErrorCode"
|
|
174
|
+
},
|
|
175
|
+
"request_id": {
|
|
176
|
+
"$ref": "#/$defs/Id"
|
|
177
|
+
},
|
|
178
|
+
"retryable": {
|
|
179
|
+
"type": "boolean"
|
|
180
|
+
},
|
|
181
|
+
"retry_after_ms": {
|
|
182
|
+
"anyOf": [
|
|
183
|
+
{
|
|
184
|
+
"type": "integer",
|
|
185
|
+
"minimum": 0,
|
|
186
|
+
"maximum": 300000
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"type": "null"
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"required": [
|
|
195
|
+
"schema_version",
|
|
196
|
+
"code",
|
|
197
|
+
"request_id",
|
|
198
|
+
"retryable",
|
|
199
|
+
"retry_after_ms"
|
|
200
|
+
],
|
|
201
|
+
"additionalProperties": false
|
|
202
|
+
},
|
|
203
|
+
"RequestIdentity": {
|
|
204
|
+
"type": "object",
|
|
205
|
+
"properties": {
|
|
206
|
+
"scope": {
|
|
207
|
+
"$ref": "#/$defs/Scope"
|
|
208
|
+
},
|
|
209
|
+
"history_incarnation": {
|
|
210
|
+
"$ref": "#/$defs/HistoryIncarnation"
|
|
211
|
+
},
|
|
212
|
+
"request_namespace": {
|
|
213
|
+
"$ref": "#/$defs/Id"
|
|
214
|
+
},
|
|
215
|
+
"principal_id": {
|
|
216
|
+
"$ref": "#/$defs/Id"
|
|
217
|
+
},
|
|
218
|
+
"operation": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"minLength": 1,
|
|
221
|
+
"maxLength": 64
|
|
222
|
+
},
|
|
223
|
+
"idempotency_key": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"minLength": 1,
|
|
226
|
+
"maxLength": 128
|
|
227
|
+
},
|
|
228
|
+
"canonicalization_version": {
|
|
229
|
+
"const": "MK-C14N-1"
|
|
230
|
+
},
|
|
231
|
+
"request_hash": {
|
|
232
|
+
"$ref": "#/$defs/Digest"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"required": [
|
|
236
|
+
"scope",
|
|
237
|
+
"history_incarnation",
|
|
238
|
+
"request_namespace",
|
|
239
|
+
"principal_id",
|
|
240
|
+
"operation",
|
|
241
|
+
"idempotency_key",
|
|
242
|
+
"canonicalization_version",
|
|
243
|
+
"request_hash"
|
|
244
|
+
],
|
|
245
|
+
"additionalProperties": false
|
|
246
|
+
},
|
|
247
|
+
"ExecutionStatus": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"enum": [
|
|
250
|
+
"planned",
|
|
251
|
+
"ready",
|
|
252
|
+
"running",
|
|
253
|
+
"waiting",
|
|
254
|
+
"blocked",
|
|
255
|
+
"failed",
|
|
256
|
+
"cancelled",
|
|
257
|
+
"finished"
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
"WorkItem": {
|
|
261
|
+
"type": "object",
|
|
262
|
+
"properties": {
|
|
263
|
+
"task_id": {
|
|
264
|
+
"$ref": "#/$defs/Id"
|
|
265
|
+
},
|
|
266
|
+
"parent_task_id": {
|
|
267
|
+
"anyOf": [
|
|
268
|
+
{
|
|
269
|
+
"$ref": "#/$defs/Id"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"type": "null"
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
"dependencies": {
|
|
277
|
+
"type": "array",
|
|
278
|
+
"items": {
|
|
279
|
+
"$ref": "#/$defs/Id"
|
|
280
|
+
},
|
|
281
|
+
"maxItems": 1000,
|
|
282
|
+
"uniqueItems": true
|
|
283
|
+
},
|
|
284
|
+
"execution_status": {
|
|
285
|
+
"$ref": "#/$defs/ExecutionStatus"
|
|
286
|
+
},
|
|
287
|
+
"criterion_ids": {
|
|
288
|
+
"type": "array",
|
|
289
|
+
"items": {
|
|
290
|
+
"$ref": "#/$defs/Id"
|
|
291
|
+
},
|
|
292
|
+
"maxItems": 1000,
|
|
293
|
+
"uniqueItems": true
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"required": [
|
|
297
|
+
"task_id",
|
|
298
|
+
"parent_task_id",
|
|
299
|
+
"dependencies",
|
|
300
|
+
"execution_status",
|
|
301
|
+
"criterion_ids"
|
|
302
|
+
],
|
|
303
|
+
"additionalProperties": false
|
|
304
|
+
},
|
|
305
|
+
"Plan": {
|
|
306
|
+
"type": "object",
|
|
307
|
+
"properties": {
|
|
308
|
+
"schema_version": {
|
|
309
|
+
"const": "1"
|
|
310
|
+
},
|
|
311
|
+
"plan_id": {
|
|
312
|
+
"$ref": "#/$defs/Id"
|
|
313
|
+
},
|
|
314
|
+
"plan_revision": {
|
|
315
|
+
"$ref": "#/$defs/Counter"
|
|
316
|
+
},
|
|
317
|
+
"scope": {
|
|
318
|
+
"$ref": "#/$defs/Scope"
|
|
319
|
+
},
|
|
320
|
+
"history_incarnation": {
|
|
321
|
+
"$ref": "#/$defs/HistoryIncarnation"
|
|
322
|
+
},
|
|
323
|
+
"tasks": {
|
|
324
|
+
"type": "array",
|
|
325
|
+
"items": {
|
|
326
|
+
"$ref": "#/$defs/WorkItem"
|
|
327
|
+
},
|
|
328
|
+
"maxItems": 10000,
|
|
329
|
+
"uniqueItems": true
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"required": [
|
|
333
|
+
"schema_version",
|
|
334
|
+
"plan_id",
|
|
335
|
+
"plan_revision",
|
|
336
|
+
"scope",
|
|
337
|
+
"history_incarnation",
|
|
338
|
+
"tasks"
|
|
339
|
+
],
|
|
340
|
+
"additionalProperties": false
|
|
341
|
+
},
|
|
342
|
+
"AcceptanceCriterion": {
|
|
343
|
+
"type": "object",
|
|
344
|
+
"properties": {
|
|
345
|
+
"criterion_id": {
|
|
346
|
+
"$ref": "#/$defs/Id"
|
|
347
|
+
},
|
|
348
|
+
"task_id": {
|
|
349
|
+
"$ref": "#/$defs/Id"
|
|
350
|
+
},
|
|
351
|
+
"plan_revision": {
|
|
352
|
+
"$ref": "#/$defs/Counter"
|
|
353
|
+
},
|
|
354
|
+
"status": {
|
|
355
|
+
"type": "string",
|
|
356
|
+
"enum": [
|
|
357
|
+
"passed",
|
|
358
|
+
"failed",
|
|
359
|
+
"pending",
|
|
360
|
+
"stale",
|
|
361
|
+
"waived",
|
|
362
|
+
"not_evaluated"
|
|
363
|
+
]
|
|
364
|
+
},
|
|
365
|
+
"evidence": {
|
|
366
|
+
"type": "array",
|
|
367
|
+
"items": {
|
|
368
|
+
"$ref": "#/$defs/EvidenceReference"
|
|
369
|
+
},
|
|
370
|
+
"maxItems": 100,
|
|
371
|
+
"uniqueItems": true
|
|
372
|
+
},
|
|
373
|
+
"waiver_decision_id": {
|
|
374
|
+
"anyOf": [
|
|
375
|
+
{
|
|
376
|
+
"$ref": "#/$defs/Id"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"type": "null"
|
|
380
|
+
}
|
|
381
|
+
]
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"required": [
|
|
385
|
+
"criterion_id",
|
|
386
|
+
"task_id",
|
|
387
|
+
"plan_revision",
|
|
388
|
+
"status",
|
|
389
|
+
"evidence",
|
|
390
|
+
"waiver_decision_id"
|
|
391
|
+
],
|
|
392
|
+
"additionalProperties": false,
|
|
393
|
+
"allOf": [
|
|
394
|
+
{
|
|
395
|
+
"if": {
|
|
396
|
+
"properties": {
|
|
397
|
+
"status": {
|
|
398
|
+
"const": "passed"
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"then": {
|
|
403
|
+
"properties": {
|
|
404
|
+
"evidence": {
|
|
405
|
+
"minItems": 1
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"if": {
|
|
412
|
+
"properties": {
|
|
413
|
+
"status": {
|
|
414
|
+
"const": "waived"
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"then": {
|
|
419
|
+
"properties": {
|
|
420
|
+
"waiver_decision_id": {
|
|
421
|
+
"$ref": "#/$defs/Id"
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
]
|
|
427
|
+
},
|
|
428
|
+
"PhaseStatus": {
|
|
429
|
+
"type": "object",
|
|
430
|
+
"properties": {
|
|
431
|
+
"schema_version": {
|
|
432
|
+
"const": "1"
|
|
433
|
+
},
|
|
434
|
+
"phase_id": {
|
|
435
|
+
"$ref": "#/$defs/PhaseId"
|
|
436
|
+
},
|
|
437
|
+
"plan_revision": {
|
|
438
|
+
"$ref": "#/$defs/Counter"
|
|
439
|
+
},
|
|
440
|
+
"technical_status": {
|
|
441
|
+
"type": "string",
|
|
442
|
+
"enum": [
|
|
443
|
+
"not_started",
|
|
444
|
+
"in_progress",
|
|
445
|
+
"closeout_pending",
|
|
446
|
+
"complete",
|
|
447
|
+
"partial",
|
|
448
|
+
"blocked"
|
|
449
|
+
]
|
|
450
|
+
},
|
|
451
|
+
"approval_status": {
|
|
452
|
+
"type": "string",
|
|
453
|
+
"enum": [
|
|
454
|
+
"pending",
|
|
455
|
+
"accepted",
|
|
456
|
+
"rejected"
|
|
457
|
+
]
|
|
458
|
+
},
|
|
459
|
+
"blocking_decisions": {
|
|
460
|
+
"type": "array",
|
|
461
|
+
"items": {
|
|
462
|
+
"$ref": "#/$defs/Id"
|
|
463
|
+
},
|
|
464
|
+
"maxItems": 100,
|
|
465
|
+
"uniqueItems": true
|
|
466
|
+
},
|
|
467
|
+
"report_status": {
|
|
468
|
+
"type": "string",
|
|
469
|
+
"enum": [
|
|
470
|
+
"not_generated",
|
|
471
|
+
"draft",
|
|
472
|
+
"qa_passed"
|
|
473
|
+
]
|
|
474
|
+
},
|
|
475
|
+
"email_status": {
|
|
476
|
+
"type": "string",
|
|
477
|
+
"enum": [
|
|
478
|
+
"not_submitted",
|
|
479
|
+
"unknown",
|
|
480
|
+
"smtp_accepted",
|
|
481
|
+
"failed"
|
|
482
|
+
]
|
|
483
|
+
},
|
|
484
|
+
"device_status": {
|
|
485
|
+
"type": "string",
|
|
486
|
+
"enum": [
|
|
487
|
+
"unverified",
|
|
488
|
+
"confirmed",
|
|
489
|
+
"rejected"
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
"report_digest": {
|
|
493
|
+
"anyOf": [
|
|
494
|
+
{
|
|
495
|
+
"$ref": "#/$defs/Digest"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"type": "null"
|
|
499
|
+
}
|
|
500
|
+
]
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"required": [
|
|
504
|
+
"schema_version",
|
|
505
|
+
"phase_id",
|
|
506
|
+
"plan_revision",
|
|
507
|
+
"technical_status",
|
|
508
|
+
"approval_status",
|
|
509
|
+
"blocking_decisions",
|
|
510
|
+
"report_status",
|
|
511
|
+
"email_status",
|
|
512
|
+
"device_status",
|
|
513
|
+
"report_digest"
|
|
514
|
+
],
|
|
515
|
+
"additionalProperties": false,
|
|
516
|
+
"allOf": [
|
|
517
|
+
{
|
|
518
|
+
"if": {
|
|
519
|
+
"properties": {
|
|
520
|
+
"technical_status": {
|
|
521
|
+
"const": "complete"
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
"then": {
|
|
526
|
+
"properties": {
|
|
527
|
+
"report_status": {
|
|
528
|
+
"const": "qa_passed"
|
|
529
|
+
},
|
|
530
|
+
"email_status": {
|
|
531
|
+
"const": "smtp_accepted"
|
|
532
|
+
},
|
|
533
|
+
"report_digest": {
|
|
534
|
+
"$ref": "#/$defs/Digest"
|
|
535
|
+
},
|
|
536
|
+
"blocking_decisions": {
|
|
537
|
+
"maxItems": 0
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
]
|
|
543
|
+
},
|
|
544
|
+
"ObservationDetail": {
|
|
545
|
+
"type": "object",
|
|
546
|
+
"properties": {
|
|
547
|
+
"execution_status": {
|
|
548
|
+
"$ref": "#/$defs/ExecutionStatus"
|
|
549
|
+
},
|
|
550
|
+
"verification_status": {
|
|
551
|
+
"type": "string",
|
|
552
|
+
"enum": [
|
|
553
|
+
"passed",
|
|
554
|
+
"failed",
|
|
555
|
+
"pending",
|
|
556
|
+
"stale",
|
|
557
|
+
"waived",
|
|
558
|
+
"not_evaluated"
|
|
559
|
+
]
|
|
560
|
+
},
|
|
561
|
+
"summary": {
|
|
562
|
+
"type": "string",
|
|
563
|
+
"minLength": 1,
|
|
564
|
+
"maxLength": 2048
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
"required": [],
|
|
568
|
+
"additionalProperties": false
|
|
569
|
+
},
|
|
570
|
+
"ObservationEvent": {
|
|
571
|
+
"type": "object",
|
|
572
|
+
"properties": {
|
|
573
|
+
"schema_version": {
|
|
574
|
+
"const": "1"
|
|
575
|
+
},
|
|
576
|
+
"event_id": {
|
|
577
|
+
"$ref": "#/$defs/Id"
|
|
578
|
+
},
|
|
579
|
+
"event_type": {
|
|
580
|
+
"type": "string",
|
|
581
|
+
"enum": [
|
|
582
|
+
"task.updated",
|
|
583
|
+
"verification.recorded",
|
|
584
|
+
"checkpoint.recorded",
|
|
585
|
+
"operation.observed",
|
|
586
|
+
"phase.updated",
|
|
587
|
+
"heartbeat.observed"
|
|
588
|
+
]
|
|
589
|
+
},
|
|
590
|
+
"scope": {
|
|
591
|
+
"$ref": "#/$defs/Scope"
|
|
592
|
+
},
|
|
593
|
+
"history_incarnation": {
|
|
594
|
+
"$ref": "#/$defs/HistoryIncarnation"
|
|
595
|
+
},
|
|
596
|
+
"plan_id": {
|
|
597
|
+
"$ref": "#/$defs/Id"
|
|
598
|
+
},
|
|
599
|
+
"plan_revision": {
|
|
600
|
+
"$ref": "#/$defs/Counter"
|
|
601
|
+
},
|
|
602
|
+
"phase_id": {
|
|
603
|
+
"anyOf": [
|
|
604
|
+
{
|
|
605
|
+
"$ref": "#/$defs/PhaseId"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"type": "null"
|
|
609
|
+
}
|
|
610
|
+
]
|
|
611
|
+
},
|
|
612
|
+
"task_id": {
|
|
613
|
+
"anyOf": [
|
|
614
|
+
{
|
|
615
|
+
"$ref": "#/$defs/Id"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"type": "null"
|
|
619
|
+
}
|
|
620
|
+
]
|
|
621
|
+
},
|
|
622
|
+
"run_id": {
|
|
623
|
+
"anyOf": [
|
|
624
|
+
{
|
|
625
|
+
"$ref": "#/$defs/Id"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"type": "null"
|
|
629
|
+
}
|
|
630
|
+
]
|
|
631
|
+
},
|
|
632
|
+
"producer_id": {
|
|
633
|
+
"$ref": "#/$defs/Id"
|
|
634
|
+
},
|
|
635
|
+
"correlation_id": {
|
|
636
|
+
"$ref": "#/$defs/Id"
|
|
637
|
+
},
|
|
638
|
+
"causation_id": {
|
|
639
|
+
"anyOf": [
|
|
640
|
+
{
|
|
641
|
+
"$ref": "#/$defs/Id"
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"type": "null"
|
|
645
|
+
}
|
|
646
|
+
]
|
|
647
|
+
},
|
|
648
|
+
"observed_at_ms": {
|
|
649
|
+
"$ref": "#/$defs/TimestampMs"
|
|
650
|
+
},
|
|
651
|
+
"recorded_at_ms": {
|
|
652
|
+
"$ref": "#/$defs/TimestampMs"
|
|
653
|
+
},
|
|
654
|
+
"source_position": {
|
|
655
|
+
"$ref": "#/$defs/HistoryPosition"
|
|
656
|
+
},
|
|
657
|
+
"entity_revision": {
|
|
658
|
+
"$ref": "#/$defs/Counter"
|
|
659
|
+
},
|
|
660
|
+
"evidence": {
|
|
661
|
+
"type": "array",
|
|
662
|
+
"items": {
|
|
663
|
+
"$ref": "#/$defs/EvidenceReference"
|
|
664
|
+
},
|
|
665
|
+
"maxItems": 100,
|
|
666
|
+
"uniqueItems": true
|
|
667
|
+
},
|
|
668
|
+
"detail": {
|
|
669
|
+
"$ref": "#/$defs/ObservationDetail"
|
|
670
|
+
}
|
|
671
|
+
},
|
|
672
|
+
"required": [
|
|
673
|
+
"schema_version",
|
|
674
|
+
"event_id",
|
|
675
|
+
"event_type",
|
|
676
|
+
"scope",
|
|
677
|
+
"history_incarnation",
|
|
678
|
+
"plan_id",
|
|
679
|
+
"plan_revision",
|
|
680
|
+
"phase_id",
|
|
681
|
+
"task_id",
|
|
682
|
+
"run_id",
|
|
683
|
+
"producer_id",
|
|
684
|
+
"correlation_id",
|
|
685
|
+
"causation_id",
|
|
686
|
+
"observed_at_ms",
|
|
687
|
+
"recorded_at_ms",
|
|
688
|
+
"source_position",
|
|
689
|
+
"entity_revision",
|
|
690
|
+
"evidence",
|
|
691
|
+
"detail"
|
|
692
|
+
],
|
|
693
|
+
"additionalProperties": false
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
}
|