core-runtime-engine 11.5.1__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.
- core_runtime/__init__.py +10 -0
- core_runtime/__version__.py +17 -0
- core_runtime/cli/__init__.py +7 -0
- core_runtime/cli/__main__.py +22 -0
- core_runtime/cli/bump_version.py +176 -0
- core_runtime/cli/contract_preflight.py +69 -0
- core_runtime/cli/create_domain.py +66 -0
- core_runtime/cli/doctor.py +44 -0
- core_runtime/cli/inventory.py +85 -0
- core_runtime/cli/lint.py +8 -0
- core_runtime/cli/main.py +579 -0
- core_runtime/cli/release_check.py +65 -0
- core_runtime/cli/repair_artifact_paths.py +48 -0
- core_runtime/cli/sync_template.py +67 -0
- core_runtime/cli/validate.py +73 -0
- core_runtime/core/__init__.py +34 -0
- core_runtime/core/audit_event.py +760 -0
- core_runtime/core/audit_trail_index.py +100 -0
- core_runtime/core/canonicalization.py +55 -0
- core_runtime/core/contract_evaluator.py +945 -0
- core_runtime/core/contract_executability.py +307 -0
- core_runtime/core/contract_loader.py +57 -0
- core_runtime/core/contract_probes.py +630 -0
- core_runtime/core/contract_program.py +131 -0
- core_runtime/core/contract_program_registry.py +104 -0
- core_runtime/core/contract_program_v2.py +126 -0
- core_runtime/core/dsk_v3.py +142 -0
- core_runtime/core/explainability.py +2115 -0
- core_runtime/core/numeric_normalization.py +120 -0
- core_runtime/core/rule_anchor.py +1388 -0
- core_runtime/core/schema_fingerprint.py +69 -0
- core_runtime/core/sensor_evidence.py +548 -0
- core_runtime/data/contracts/CoreAnchor.sol +109 -0
- core_runtime/data/contracts/CoreRuleAnchor.abi.json +111 -0
- core_runtime/data/contracts/CoreRuleAnchor.bin +1 -0
- core_runtime/data/contracts/CoreRuleAnchor.build.json +20 -0
- core_runtime/data/contracts/CoreRuleAnchor.runtime.bin +1 -0
- core_runtime/data/contracts/CoreRuleAnchor.sol +74 -0
- core_runtime/data/package_data_manifest.v1.json +173 -0
- core_runtime/data/schemas/core/causal_trace.v1.json +141 -0
- core_runtime/data/schemas/core/context_gate.v1.json +38 -0
- core_runtime/data/schemas/core/context_threshold.v1.json +46 -0
- core_runtime/data/schemas/core/contract_program.v1.json +186 -0
- core_runtime/data/schemas/core/contract_program.v2.json +187 -0
- core_runtime/data/schemas/core/control_decision.v1.json +114 -0
- core_runtime/data/schemas/core/dsk.v3.json +105 -0
- core_runtime/data/schemas/core/effect_result.v1.json +39 -0
- core_runtime/data/schemas/core/entropy_signal.v1.json +108 -0
- core_runtime/data/schemas/core/execution_receipt.v1.json +93 -0
- core_runtime/data/schemas/core/frozen_release_manifest.v1.json +87 -0
- core_runtime/data/schemas/core/frozen_release_manifest.v2.json +72 -0
- core_runtime/data/schemas/core/frozen_release_manifest.v3.json +38 -0
- core_runtime/data/schemas/core/frozen_release_manifest.v4.json +72 -0
- core_runtime/data/schemas/core/frozen_release_manifest.v5.json +38 -0
- core_runtime/data/schemas/core/frozen_release_manifest.v6.json +116 -0
- core_runtime/data/schemas/core/frozen_release_manifest.v7.json +37 -0
- core_runtime/data/schemas/core/frozen_release_manifest.v8.json +114 -0
- core_runtime/data/schemas/core/frozen_rule_set.v1.json +282 -0
- core_runtime/data/schemas/core/memory_artifact.v1.json +120 -0
- core_runtime/data/schemas/core/memory_generation_result.v1.json +37 -0
- core_runtime/data/schemas/core/operational_learning_event.v1.json +63 -0
- core_runtime/data/schemas/core/pattern_candidate.v1.json +114 -0
- core_runtime/data/schemas/core/physical_safety_assurance_case.v1.json +676 -0
- core_runtime/data/schemas/core/policy_lifecycle.v1.json +99 -0
- core_runtime/data/schemas/core/retention_manifest.v1.json +53 -0
- core_runtime/data/schemas/core/reversibility_policy.v1.json +107 -0
- core_runtime/data/schemas/core/rule_anchor_batch.v1.json +93 -0
- core_runtime/data/schemas/core/rule_anchor_chain_evidence.v1.json +56 -0
- core_runtime/data/schemas/core/rule_approval.v1.json +49 -0
- core_runtime/data/schemas/core/rule_approval_request.v1.json +42 -0
- core_runtime/data/schemas/core/state_transition.v1.json +115 -0
- core_runtime/data/schemas/core/task_closeout.v1.json +47 -0
- core_runtime/data/schemas/core/template_promotion_candidate.v1.json +83 -0
- core_runtime/data/schemas/core/unsigned_rule_anchor_deployment.v1.json +106 -0
- core_runtime/data/schemas/core/unsigned_rule_anchor_transaction.v1.json +116 -0
- core_runtime/tooling/__init__.py +48 -0
- core_runtime/tooling/bump_version.py +900 -0
- core_runtime/tooling/contract_preflight.py +293 -0
- core_runtime/tooling/create_domain.py +254 -0
- core_runtime/tooling/diagnostics.py +129 -0
- core_runtime/tooling/doctor.py +482 -0
- core_runtime/tooling/file_inventory.py +182 -0
- core_runtime/tooling/json_checks.py +100 -0
- core_runtime/tooling/release_check.py +1017 -0
- core_runtime/tooling/repair_artifact_paths.py +458 -0
- core_runtime/tooling/report_writer.py +176 -0
- core_runtime/tooling/repository_inventory.py +399 -0
- core_runtime/tooling/safety_checks.py +172 -0
- core_runtime/tooling/sync_template.py +303 -0
- core_runtime/tooling/validation.py +507 -0
- core_runtime/tooling/version_inventory.py +256 -0
- core_runtime_engine-11.5.1.dist-info/METADATA +35 -0
- core_runtime_engine-11.5.1.dist-info/RECORD +96 -0
- core_runtime_engine-11.5.1.dist-info/WHEEL +5 -0
- core_runtime_engine-11.5.1.dist-info/entry_points.txt +2 -0
- core_runtime_engine-11.5.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://core-runtime-engine.local/schemas/core/frozen_release_manifest.v8.json",
|
|
4
|
+
"title": "FrozenReleaseManifest.v8",
|
|
5
|
+
"description": "The exact public CORE v11.5.1 DSK v3 candidate inventory.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schema_version",
|
|
10
|
+
"type",
|
|
11
|
+
"release_version",
|
|
12
|
+
"status",
|
|
13
|
+
"scope",
|
|
14
|
+
"inventory_profile",
|
|
15
|
+
"critical_subsystems",
|
|
16
|
+
"self_reference_policy",
|
|
17
|
+
"canonicalization",
|
|
18
|
+
"hash_algorithm",
|
|
19
|
+
"created_at",
|
|
20
|
+
"artifact_count",
|
|
21
|
+
"artifacts",
|
|
22
|
+
"fingerprint"
|
|
23
|
+
],
|
|
24
|
+
"properties": {
|
|
25
|
+
"schema_version": {
|
|
26
|
+
"const": "core.frozen_release_manifest.v8"
|
|
27
|
+
},
|
|
28
|
+
"type": {
|
|
29
|
+
"const": "frozen_release_manifest"
|
|
30
|
+
},
|
|
31
|
+
"release_version": {
|
|
32
|
+
"const": "v11.5.1"
|
|
33
|
+
},
|
|
34
|
+
"status": {
|
|
35
|
+
"const": "candidate"
|
|
36
|
+
},
|
|
37
|
+
"scope": {
|
|
38
|
+
"const": "deterministic_scale_kernel_v3"
|
|
39
|
+
},
|
|
40
|
+
"inventory_profile": {
|
|
41
|
+
"const": "core.dsk_v3_release.v11_5_1_candidate"
|
|
42
|
+
},
|
|
43
|
+
"critical_subsystems": {
|
|
44
|
+
"const": [
|
|
45
|
+
"dsk_v3",
|
|
46
|
+
"contract_program_v2",
|
|
47
|
+
"executable_contracts",
|
|
48
|
+
"release_integrity"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"self_reference_policy": {
|
|
52
|
+
"const": "manifest_file_excluded_fingerprint_covers_inventory"
|
|
53
|
+
},
|
|
54
|
+
"canonicalization": {
|
|
55
|
+
"const": "core.canonical_json.v1"
|
|
56
|
+
},
|
|
57
|
+
"hash_algorithm": {
|
|
58
|
+
"const": "sha256"
|
|
59
|
+
},
|
|
60
|
+
"created_at": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"format": "date-time"
|
|
63
|
+
},
|
|
64
|
+
"artifact_count": {
|
|
65
|
+
"type": "integer",
|
|
66
|
+
"minimum": 1
|
|
67
|
+
},
|
|
68
|
+
"artifacts": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"minItems": 1,
|
|
71
|
+
"items": {
|
|
72
|
+
"$ref": "#/$defs/artifact"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"fingerprint": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"$defs": {
|
|
81
|
+
"artifact": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"required": [
|
|
85
|
+
"path",
|
|
86
|
+
"role",
|
|
87
|
+
"file_sha256"
|
|
88
|
+
],
|
|
89
|
+
"properties": {
|
|
90
|
+
"path": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"pattern": "^(?!/)(?![A-Za-z]:\\\\)(?!.*(?:^|/)\\.\\.(?:/|$)).+"
|
|
93
|
+
},
|
|
94
|
+
"role": {
|
|
95
|
+
"enum": [
|
|
96
|
+
"ci",
|
|
97
|
+
"contract",
|
|
98
|
+
"documentation",
|
|
99
|
+
"example",
|
|
100
|
+
"release_metadata",
|
|
101
|
+
"runtime",
|
|
102
|
+
"schema",
|
|
103
|
+
"script",
|
|
104
|
+
"test"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"file_sha256": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://core.antillanca.dev/schemas/core/frozen_rule_set.v1.json",
|
|
4
|
+
"title": "FrozenRuleSet.v1",
|
|
5
|
+
"description": "Immutable, replayable rules. General rules publish their content; personal rules publish only a blinded commitment.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schema_version",
|
|
10
|
+
"type",
|
|
11
|
+
"rule_set_id",
|
|
12
|
+
"domain",
|
|
13
|
+
"rule_version",
|
|
14
|
+
"status",
|
|
15
|
+
"rule_class",
|
|
16
|
+
"visibility",
|
|
17
|
+
"canonicalization",
|
|
18
|
+
"hash_algorithm",
|
|
19
|
+
"content",
|
|
20
|
+
"governance",
|
|
21
|
+
"frozen_at",
|
|
22
|
+
"fingerprint"
|
|
23
|
+
],
|
|
24
|
+
"properties": {
|
|
25
|
+
"schema_version": {
|
|
26
|
+
"const": "core.frozen_rule_set.v1"
|
|
27
|
+
},
|
|
28
|
+
"type": {
|
|
29
|
+
"const": "frozen_rule_set"
|
|
30
|
+
},
|
|
31
|
+
"rule_set_id": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"pattern": "^rule-set:[a-z0-9][a-z0-9._-]{2,127}$"
|
|
34
|
+
},
|
|
35
|
+
"domain": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^[a-z][a-z0-9._-]{1,63}$"
|
|
38
|
+
},
|
|
39
|
+
"rule_version": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"pattern": "^v[0-9]+\\.[0-9]+\\.[0-9]+$"
|
|
42
|
+
},
|
|
43
|
+
"status": {
|
|
44
|
+
"const": "frozen"
|
|
45
|
+
},
|
|
46
|
+
"rule_class": {
|
|
47
|
+
"enum": ["general", "personal"]
|
|
48
|
+
},
|
|
49
|
+
"visibility": {
|
|
50
|
+
"enum": ["public", "private_commitment"]
|
|
51
|
+
},
|
|
52
|
+
"canonicalization": {
|
|
53
|
+
"const": "core.canonical_json.v1"
|
|
54
|
+
},
|
|
55
|
+
"hash_algorithm": {
|
|
56
|
+
"const": "sha256"
|
|
57
|
+
},
|
|
58
|
+
"content": {
|
|
59
|
+
"oneOf": [
|
|
60
|
+
{"$ref": "#/definitions/public_content"},
|
|
61
|
+
{"$ref": "#/definitions/private_content"}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"governance": {
|
|
65
|
+
"$ref": "#/definitions/governance"
|
|
66
|
+
},
|
|
67
|
+
"frozen_at": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"format": "date-time"
|
|
70
|
+
},
|
|
71
|
+
"supersedes": {
|
|
72
|
+
"$ref": "#/definitions/fingerprint"
|
|
73
|
+
},
|
|
74
|
+
"fingerprint": {
|
|
75
|
+
"$ref": "#/definitions/fingerprint"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"definitions": {
|
|
79
|
+
"fingerprint": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
82
|
+
},
|
|
83
|
+
"evm_address": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"pattern": "^0x[a-fA-F0-9]{40}$"
|
|
86
|
+
},
|
|
87
|
+
"source_kind": {
|
|
88
|
+
"enum": [
|
|
89
|
+
"human",
|
|
90
|
+
"nonhuman_biological",
|
|
91
|
+
"software",
|
|
92
|
+
"human_directed_software",
|
|
93
|
+
"mixed_ensemble"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"step": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"required": [
|
|
100
|
+
"step_id",
|
|
101
|
+
"requirement",
|
|
102
|
+
"result_schema",
|
|
103
|
+
"accepted_evidence_sources",
|
|
104
|
+
"on_failure"
|
|
105
|
+
],
|
|
106
|
+
"properties": {
|
|
107
|
+
"step_id": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"pattern": "^[a-z][a-z0-9_]{1,63}$"
|
|
110
|
+
},
|
|
111
|
+
"requirement": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"minLength": 1,
|
|
114
|
+
"maxLength": 2048
|
|
115
|
+
},
|
|
116
|
+
"result_schema": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"pattern": "^(?!/)(?![A-Za-z]:\\\\).+",
|
|
119
|
+
"maxLength": 256
|
|
120
|
+
},
|
|
121
|
+
"accepted_evidence_sources": {
|
|
122
|
+
"type": "array",
|
|
123
|
+
"minItems": 1,
|
|
124
|
+
"uniqueItems": true,
|
|
125
|
+
"items": {
|
|
126
|
+
"$ref": "#/definitions/source_kind"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"on_failure": {
|
|
130
|
+
"enum": ["reject", "veto", "responsible_review"]
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"conformance": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"additionalProperties": false,
|
|
137
|
+
"required": [
|
|
138
|
+
"deterministic",
|
|
139
|
+
"fail_closed",
|
|
140
|
+
"replay_required",
|
|
141
|
+
"evidence_required",
|
|
142
|
+
"evidence_is_projection"
|
|
143
|
+
],
|
|
144
|
+
"properties": {
|
|
145
|
+
"deterministic": {"const": true},
|
|
146
|
+
"fail_closed": {"const": true},
|
|
147
|
+
"replay_required": {"const": true},
|
|
148
|
+
"evidence_required": {"const": true},
|
|
149
|
+
"evidence_is_projection": {"const": true}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"public_rule": {
|
|
153
|
+
"type": "object",
|
|
154
|
+
"additionalProperties": false,
|
|
155
|
+
"required": [
|
|
156
|
+
"rule_id",
|
|
157
|
+
"domain",
|
|
158
|
+
"purpose",
|
|
159
|
+
"applicability",
|
|
160
|
+
"steps",
|
|
161
|
+
"final_result_schema",
|
|
162
|
+
"conformance",
|
|
163
|
+
"source_refs"
|
|
164
|
+
],
|
|
165
|
+
"properties": {
|
|
166
|
+
"rule_id": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"pattern": "^rule:[a-z0-9][a-z0-9._-]{2,127}$"
|
|
169
|
+
},
|
|
170
|
+
"domain": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"pattern": "^[a-z][a-z0-9._-]{1,63}$"
|
|
173
|
+
},
|
|
174
|
+
"purpose": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"minLength": 1,
|
|
177
|
+
"maxLength": 2048
|
|
178
|
+
},
|
|
179
|
+
"applicability": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"minLength": 1,
|
|
182
|
+
"maxLength": 4096
|
|
183
|
+
},
|
|
184
|
+
"steps": {
|
|
185
|
+
"type": "array",
|
|
186
|
+
"minItems": 1,
|
|
187
|
+
"items": {
|
|
188
|
+
"$ref": "#/definitions/step"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"final_result_schema": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"pattern": "^(?!/)(?![A-Za-z]:\\\\).+",
|
|
194
|
+
"maxLength": 256
|
|
195
|
+
},
|
|
196
|
+
"conformance": {
|
|
197
|
+
"$ref": "#/definitions/conformance"
|
|
198
|
+
},
|
|
199
|
+
"source_refs": {
|
|
200
|
+
"type": "array",
|
|
201
|
+
"minItems": 1,
|
|
202
|
+
"uniqueItems": true,
|
|
203
|
+
"items": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"pattern": "^(?!/)(?![A-Za-z]:\\\\).+",
|
|
206
|
+
"maxLength": 512
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"public_content": {
|
|
212
|
+
"type": "object",
|
|
213
|
+
"additionalProperties": false,
|
|
214
|
+
"required": ["mode", "rules"],
|
|
215
|
+
"properties": {
|
|
216
|
+
"mode": {"const": "public"},
|
|
217
|
+
"rules": {
|
|
218
|
+
"type": "array",
|
|
219
|
+
"minItems": 1,
|
|
220
|
+
"items": {
|
|
221
|
+
"$ref": "#/definitions/public_rule"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"private_content": {
|
|
227
|
+
"type": "object",
|
|
228
|
+
"additionalProperties": false,
|
|
229
|
+
"required": [
|
|
230
|
+
"mode",
|
|
231
|
+
"commitment_scheme",
|
|
232
|
+
"commitment",
|
|
233
|
+
"rule_count",
|
|
234
|
+
"contains_plaintext_private_data",
|
|
235
|
+
"blinding_nonce_published"
|
|
236
|
+
],
|
|
237
|
+
"properties": {
|
|
238
|
+
"mode": {"const": "private_commitment"},
|
|
239
|
+
"commitment_scheme": {"const": "core.blinded_commitment.v1"},
|
|
240
|
+
"commitment": {"$ref": "#/definitions/fingerprint"},
|
|
241
|
+
"rule_count": {
|
|
242
|
+
"type": "integer",
|
|
243
|
+
"minimum": 1,
|
|
244
|
+
"maximum": 4294967295
|
|
245
|
+
},
|
|
246
|
+
"contains_plaintext_private_data": {"const": false},
|
|
247
|
+
"blinding_nonce_published": {"const": false}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"governance": {
|
|
251
|
+
"type": "object",
|
|
252
|
+
"additionalProperties": false,
|
|
253
|
+
"required": [
|
|
254
|
+
"signature_scheme",
|
|
255
|
+
"approval_threshold",
|
|
256
|
+
"authorized_signers",
|
|
257
|
+
"accountability",
|
|
258
|
+
"automated_delegation",
|
|
259
|
+
"amendment_mode"
|
|
260
|
+
],
|
|
261
|
+
"properties": {
|
|
262
|
+
"signature_scheme": {"const": "eip191_secp256k1"},
|
|
263
|
+
"approval_threshold": {
|
|
264
|
+
"type": "integer",
|
|
265
|
+
"minimum": 1,
|
|
266
|
+
"maximum": 255
|
|
267
|
+
},
|
|
268
|
+
"authorized_signers": {
|
|
269
|
+
"type": "array",
|
|
270
|
+
"minItems": 1,
|
|
271
|
+
"maxItems": 255,
|
|
272
|
+
"items": {"$ref": "#/definitions/evm_address"}
|
|
273
|
+
},
|
|
274
|
+
"accountability": {"const": "authorized_signer_set"},
|
|
275
|
+
"automated_delegation": {
|
|
276
|
+
"enum": ["none", "bounded_by_frozen_rule"]
|
|
277
|
+
},
|
|
278
|
+
"amendment_mode": {"const": "new_frozen_version_only"}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://core-runtime-engine.local/schemas/core/memory_artifact.v1.json",
|
|
4
|
+
"title": "MemoryArtifact.v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"memory_id",
|
|
10
|
+
"source_refs",
|
|
11
|
+
"authority",
|
|
12
|
+
"summary",
|
|
13
|
+
"stable_facts",
|
|
14
|
+
"decisions",
|
|
15
|
+
"invariants",
|
|
16
|
+
"open_risks",
|
|
17
|
+
"next_actions",
|
|
18
|
+
"retention",
|
|
19
|
+
"created_at"
|
|
20
|
+
],
|
|
21
|
+
"properties": {
|
|
22
|
+
"schema_version": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"const": "core.memory_artifact.v1"
|
|
25
|
+
},
|
|
26
|
+
"memory_id": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1
|
|
29
|
+
},
|
|
30
|
+
"source_refs": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"minItems": 1,
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"minLength": 1
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"authority": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"const": "reference_only"
|
|
41
|
+
},
|
|
42
|
+
"summary": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"minLength": 1
|
|
45
|
+
},
|
|
46
|
+
"stable_facts": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"decisions": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"invariants": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"open_risks": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"next_actions": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"items": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"retention": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"required": ["retention_class", "reason"],
|
|
79
|
+
"properties": {
|
|
80
|
+
"retention_class": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"enum": ["keep", "compress", "forget", "quarantine"]
|
|
83
|
+
},
|
|
84
|
+
"reason": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"minLength": 1
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"additionalProperties": true
|
|
90
|
+
},
|
|
91
|
+
"created_at": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"minLength": 1
|
|
94
|
+
},
|
|
95
|
+
"scope": {
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
"tags": {
|
|
99
|
+
"type": "array",
|
|
100
|
+
"items": {
|
|
101
|
+
"type": "string"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"evidence_refs": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"items": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"fingerprint": {
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"warnings": {
|
|
114
|
+
"type": "array",
|
|
115
|
+
"items": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://core-runtime-engine.local/schemas/core/memory_generation_result.v1.json",
|
|
4
|
+
"title": "MemoryGenerationResult.v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": ["schema_version", "status", "source_type", "source_id", "reused"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"const": "core.memory_generation_result.v1"
|
|
12
|
+
},
|
|
13
|
+
"status": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"source_type": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"minLength": 1
|
|
19
|
+
},
|
|
20
|
+
"source_id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1
|
|
23
|
+
},
|
|
24
|
+
"reused": {
|
|
25
|
+
"type": "boolean"
|
|
26
|
+
},
|
|
27
|
+
"memory_id": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"memory_ref": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"reason": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://core-runtime-engine.local/schemas/core/operational_learning_event.v1.json",
|
|
4
|
+
"title": "OperationalLearningEvent.v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"event_type",
|
|
10
|
+
"source_type",
|
|
11
|
+
"source_id",
|
|
12
|
+
"status",
|
|
13
|
+
"timestamp",
|
|
14
|
+
"payload"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"schema_version": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"const": "core.operational_learning_event.v1"
|
|
20
|
+
},
|
|
21
|
+
"event_id": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1
|
|
24
|
+
},
|
|
25
|
+
"event_type": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"minLength": 1
|
|
28
|
+
},
|
|
29
|
+
"source_type": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1
|
|
32
|
+
},
|
|
33
|
+
"source_id": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"minLength": 1
|
|
36
|
+
},
|
|
37
|
+
"status": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"minLength": 1
|
|
40
|
+
},
|
|
41
|
+
"timestamp": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"minLength": 1
|
|
44
|
+
},
|
|
45
|
+
"payload": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": true
|
|
48
|
+
},
|
|
49
|
+
"source_refs": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"minLength": 1
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"warnings": {
|
|
57
|
+
"type": "array",
|
|
58
|
+
"items": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|