prizmkit 1.1.139 → 1.1.141
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.
- package/bundled/VERSION.json +3 -3
- package/bundled/dev-pipeline/prizmkit_runtime/checkpoint_state.py +41 -121
- package/bundled/dev-pipeline/prizmkit_runtime/runner_models.py +0 -6
- package/bundled/dev-pipeline/prizmkit_runtime/runners.py +1 -2
- package/bundled/dev-pipeline/prizmkit_runtime/test_result.py +150 -0
- package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +21 -804
- package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +4 -6
- package/bundled/dev-pipeline/scripts/generate-recovery-prompt.py +1 -1
- package/bundled/dev-pipeline/scripts/generate-refactor-prompt.py +4 -6
- package/bundled/dev-pipeline/scripts/prompt_framework.py +56 -55
- package/bundled/dev-pipeline/scripts/update-bug-status.py +1 -2
- package/bundled/dev-pipeline/scripts/update-checkpoint.py +14 -96
- package/bundled/dev-pipeline/scripts/update-feature-status.py +1 -2
- package/bundled/dev-pipeline/scripts/update-refactor-status.py +1 -2
- package/bundled/dev-pipeline/templates/bootstrap-prompt.md +3 -3
- package/bundled/dev-pipeline/templates/bootstrap-tier3.md +7 -18
- package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +6 -6
- package/bundled/dev-pipeline/templates/refactor-bootstrap-prompt.md +5 -5
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-commit-report.md +1 -1
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-diagnose-plan.md +1 -1
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-manual-verification.md +1 -1
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-test.md +13 -10
- package/bundled/dev-pipeline/templates/sections/bugfix-reminders.md +1 -1
- package/bundled/dev-pipeline/templates/sections/checkpoint-system.md +14 -9
- package/bundled/dev-pipeline/templates/sections/headless-commit-authorization.md +1 -1
- package/bundled/dev-pipeline/templates/sections/phase-commit-full.md +1 -1
- package/bundled/dev-pipeline/templates/sections/phase-commit.md +1 -1
- package/bundled/dev-pipeline/templates/sections/phase-context-snapshot-agent-suffix.md +2 -2
- package/bundled/dev-pipeline/templates/sections/phase-context-snapshot-base.md +1 -1
- package/bundled/dev-pipeline/templates/sections/phase-context-snapshot-lite-suffix.md +1 -1
- package/bundled/dev-pipeline/templates/sections/phase-implement-lite.md +1 -1
- package/bundled/dev-pipeline/templates/sections/phase-prizmkit-test.md +14 -26
- package/bundled/dev-pipeline/templates/sections/phase-specify-plan-full.md +3 -3
- package/bundled/dev-pipeline/templates/sections/refactor-phase-test.md +13 -10
- package/bundled/dev-pipeline/templates/sections/refactor-reminders.md +1 -1
- package/bundled/dev-pipeline/tests/test_checkpoint_state.py +287 -384
- package/bundled/dev-pipeline/tests/test_generate_bootstrap_prompt.py +119 -684
- package/bundled/dev-pipeline/tests/test_generate_bugfix_prompt.py +17 -40
- package/bundled/dev-pipeline/tests/test_generate_refactor_prompt.py +20 -23
- package/bundled/dev-pipeline/tests/test_python_runner_parity.py +29 -32
- package/bundled/skills/_metadata.json +6 -6
- package/bundled/skills/prizmkit/SKILL.md +8 -13
- package/bundled/skills/prizmkit/references/workflow-state-protocol.md +61 -80
- package/bundled/skills/prizmkit-code-review/SKILL.md +3 -3
- package/bundled/skills/prizmkit-code-review/references/workflow-state-protocol.md +61 -80
- package/bundled/skills/prizmkit-committer/SKILL.md +3 -3
- package/bundled/skills/prizmkit-committer/references/workflow-state-protocol.md +61 -80
- package/bundled/skills/prizmkit-implement/references/workflow-state-protocol.md +61 -80
- package/bundled/skills/prizmkit-plan/references/workflow-state-protocol.md +61 -80
- package/bundled/skills/prizmkit-retrospective/SKILL.md +2 -2
- package/bundled/skills/prizmkit-retrospective/references/workflow-state-protocol.md +61 -80
- package/bundled/skills/prizmkit-test/SKILL.md +217 -187
- package/bundled/skills/prizmkit-test/references/external-contract-mock-guidance.md +119 -0
- package/bundled/skills/prizmkit-test/references/independent-test-review.md +269 -0
- package/bundled/skills/prizmkit-test/references/test-coverage-model.md +193 -0
- package/bundled/skills/prizmkit-test/references/test-report-template.md +164 -79
- package/bundled/skills/prizmkit-workflow/SKILL.md +15 -23
- package/bundled/skills/prizmkit-workflow/references/workflow-state-protocol.md +61 -80
- package/package.json +1 -1
- package/bundled/skills/prizmkit-test/assets/authoritative-records.schema.json +0 -476
- package/bundled/skills/prizmkit-test/assets/behavior-risk-matrix.schema.json +0 -116
- package/bundled/skills/prizmkit-test/assets/evidence-manifest.schema.json +0 -111
- package/bundled/skills/prizmkit-test/assets/evidence-package-template.json +0 -66
- package/bundled/skills/prizmkit-test/references/boundary-coverage-protocol.md +0 -104
- package/bundled/skills/prizmkit-test/references/contract-mock-protocol.md +0 -65
- package/bundled/skills/prizmkit-test/references/evidence-protocol.md +0 -208
- package/bundled/skills/prizmkit-test/references/evidence-request-protocol.md +0 -80
- package/bundled/skills/prizmkit-test/references/examples.md +0 -100
- package/bundled/skills/prizmkit-test/references/service-boundary-test-catalog.md +0 -228
- package/bundled/skills/prizmkit-test/references/test-generation-steps.md +0 -118
- package/bundled/skills/prizmkit-test/references/trusted-evidence-execution.md +0 -110
- package/bundled/skills/prizmkit-test/references/workflow-state-protocol.md +0 -181
- package/bundled/skills/prizmkit-test/scripts/build_test_evidence.py +0 -1851
- package/bundled/skills/prizmkit-test/scripts/validate_test_evidence.py +0 -1793
|
@@ -1,476 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://prizmkit.dev/schemas/test-evidence-authoritative-records.schema.json",
|
|
4
|
-
"title": "PrizmKit Test Evidence Authoritative Records",
|
|
5
|
-
"$defs": {
|
|
6
|
-
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
7
|
-
"path": { "type": "string", "minLength": 1 },
|
|
8
|
-
"stringArray": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
9
|
-
"fileRef": {
|
|
10
|
-
"type": "object",
|
|
11
|
-
"additionalProperties": false,
|
|
12
|
-
"required": ["path", "sha256"],
|
|
13
|
-
"properties": {
|
|
14
|
-
"path": { "$ref": "#/$defs/path" },
|
|
15
|
-
"sha256": { "$ref": "#/$defs/sha256" }
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"discoveryEvidence": {
|
|
19
|
-
"type": "object",
|
|
20
|
-
"additionalProperties": false,
|
|
21
|
-
"required": ["kind", "source", "observations"],
|
|
22
|
-
"properties": {
|
|
23
|
-
"kind": { "enum": ["manifest", "runner-config", "filesystem", "contract", "lockfile", "import-graph", "caller-analysis", "project-doc", "model-analysis", "shared-contract", "source-inspection", "field-analysis", "runner-inspection", "dependency-scan", "audit-log", "api-spec", "tool-probe"] },
|
|
24
|
-
"source": { "type": "string", "minLength": 1 },
|
|
25
|
-
"observations": { "$ref": "#/$defs/stringArray" }
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"naDecision": {
|
|
29
|
-
"type": "object",
|
|
30
|
-
"additionalProperties": false,
|
|
31
|
-
"required": ["rationale", "evidence", "considered_signals", "conflicts"],
|
|
32
|
-
"properties": {
|
|
33
|
-
"rationale": { "type": "string", "minLength": 8 },
|
|
34
|
-
"evidence": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/discoveryEvidence" } },
|
|
35
|
-
"considered_signals": { "$ref": "#/$defs/stringArray" },
|
|
36
|
-
"conflicts": {
|
|
37
|
-
"type": "array",
|
|
38
|
-
"items": {
|
|
39
|
-
"type": "object",
|
|
40
|
-
"additionalProperties": false,
|
|
41
|
-
"required": ["signal", "explanation"],
|
|
42
|
-
"properties": {
|
|
43
|
-
"signal": { "type": "string", "minLength": 1 },
|
|
44
|
-
"explanation": { "type": "string", "minLength": 8 }
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"externalTarget": {
|
|
51
|
-
"type": "object",
|
|
52
|
-
"additionalProperties": false,
|
|
53
|
-
"required": ["name", "external", "classification", "endpoint_evidence", "allow_evidence", "deny_evidence"],
|
|
54
|
-
"properties": {
|
|
55
|
-
"name": { "type": "string", "minLength": 1 },
|
|
56
|
-
"external": { "type": "boolean" },
|
|
57
|
-
"classification": { "enum": ["local", "isolated", "test", "staging", "production", "unknown"] },
|
|
58
|
-
"endpoint_evidence": { "$ref": "#/$defs/stringArray" },
|
|
59
|
-
"allow_evidence": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
60
|
-
"deny_evidence": { "type": "array", "items": { "type": "string", "minLength": 1 } }
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"changeClassification": {
|
|
64
|
-
"type": "object",
|
|
65
|
-
"additionalProperties": false,
|
|
66
|
-
"required": ["classification", "full_protocol_required", "reasons", "signals", "evidence"],
|
|
67
|
-
"properties": {
|
|
68
|
-
"classification": { "enum": ["behavior", "lightweight"] },
|
|
69
|
-
"full_protocol_required": { "type": "boolean" },
|
|
70
|
-
"reasons": { "$ref": "#/$defs/stringArray" },
|
|
71
|
-
"signals": { "$ref": "#/$defs/stringArray" },
|
|
72
|
-
"evidence": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/discoveryEvidence" } }
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"scope": {
|
|
76
|
-
"type": "object",
|
|
77
|
-
"additionalProperties": false,
|
|
78
|
-
"required": ["target_hashes", "affected_module", "boundary_source", "changed_files", "module_roots", "primary_scope", "regression_ring", "exclusions", "discovery_evidence", "unresolved_edges"],
|
|
79
|
-
"properties": {
|
|
80
|
-
"target_hashes": { "$ref": "#/$defs/targetHashes" },
|
|
81
|
-
"affected_module": { "type": "string", "minLength": 1 },
|
|
82
|
-
"boundary_source": { "enum": ["explicit", "cohesion-derived"] },
|
|
83
|
-
"changed_files": { "$ref": "#/$defs/stringArray" },
|
|
84
|
-
"module_roots": {
|
|
85
|
-
"type": "array",
|
|
86
|
-
"minItems": 1,
|
|
87
|
-
"items": {
|
|
88
|
-
"type": "object",
|
|
89
|
-
"additionalProperties": false,
|
|
90
|
-
"required": ["path", "files", "discovery_evidence"],
|
|
91
|
-
"properties": {
|
|
92
|
-
"path": { "$ref": "#/$defs/path" },
|
|
93
|
-
"files": { "$ref": "#/$defs/stringArray" },
|
|
94
|
-
"discovery_evidence": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/discoveryEvidence" } }
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"primary_scope": { "$ref": "#/$defs/stringArray" },
|
|
99
|
-
"regression_ring": {
|
|
100
|
-
"type": "array",
|
|
101
|
-
"items": {
|
|
102
|
-
"type": "object",
|
|
103
|
-
"additionalProperties": false,
|
|
104
|
-
"required": ["name", "kind", "files", "planned_test_ids", "discovery_evidence"],
|
|
105
|
-
"properties": {
|
|
106
|
-
"name": { "type": "string", "minLength": 1 },
|
|
107
|
-
"kind": { "enum": ["caller", "consumer", "shared-contract", "state-dependency", "api-spec", "documentation"] },
|
|
108
|
-
"files": { "$ref": "#/$defs/stringArray" },
|
|
109
|
-
"planned_test_ids": { "$ref": "#/$defs/stringArray" },
|
|
110
|
-
"discovery_evidence": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/discoveryEvidence" } }
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"exclusions": {
|
|
115
|
-
"type": "array",
|
|
116
|
-
"items": {
|
|
117
|
-
"type": "object",
|
|
118
|
-
"additionalProperties": false,
|
|
119
|
-
"required": ["path", "reason", "evidence"],
|
|
120
|
-
"properties": {
|
|
121
|
-
"path": { "$ref": "#/$defs/path" },
|
|
122
|
-
"reason": { "type": "string", "minLength": 8 },
|
|
123
|
-
"evidence": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/discoveryEvidence" } }
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
"discovery_evidence": {
|
|
128
|
-
"type": "object",
|
|
129
|
-
"additionalProperties": false,
|
|
130
|
-
"required": ["tests", "contracts", "lockfiles", "module_boundaries"],
|
|
131
|
-
"properties": {
|
|
132
|
-
"tests": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/discoveryEvidence" } },
|
|
133
|
-
"contracts": { "type": "array", "items": { "$ref": "#/$defs/discoveryEvidence" } },
|
|
134
|
-
"lockfiles": { "type": "array", "items": { "$ref": "#/$defs/discoveryEvidence" } },
|
|
135
|
-
"module_boundaries": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/discoveryEvidence" } }
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
"unresolved_edges": {
|
|
139
|
-
"type": "array",
|
|
140
|
-
"items": {
|
|
141
|
-
"type": "object",
|
|
142
|
-
"additionalProperties": false,
|
|
143
|
-
"required": ["description", "verdict_capable", "resolved", "resolution_evidence"],
|
|
144
|
-
"properties": {
|
|
145
|
-
"description": { "type": "string", "minLength": 1 },
|
|
146
|
-
"verdict_capable": { "type": "boolean" },
|
|
147
|
-
"resolved": { "type": "boolean" },
|
|
148
|
-
"resolution_evidence": { "type": "array", "items": { "$ref": "#/$defs/discoveryEvidence" } }
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
"targetHashes": {
|
|
155
|
-
"type": "object",
|
|
156
|
-
"additionalProperties": false,
|
|
157
|
-
"required": ["source", "tests", "contracts", "lockfiles", "environment", "plan"],
|
|
158
|
-
"properties": {
|
|
159
|
-
"source": { "$ref": "#/$defs/sha256" },
|
|
160
|
-
"tests": { "$ref": "#/$defs/sha256" },
|
|
161
|
-
"contracts": { "$ref": "#/$defs/sha256" },
|
|
162
|
-
"lockfiles": { "$ref": "#/$defs/sha256" },
|
|
163
|
-
"environment": { "$ref": "#/$defs/sha256" },
|
|
164
|
-
"plan": { "$ref": "#/$defs/sha256" }
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
"targetInventory": {
|
|
168
|
-
"type": "object",
|
|
169
|
-
"additionalProperties": false,
|
|
170
|
-
"required": ["inventory_request_path", "inventory_request_sha256", "categories", "changed_files", "module_roots", "module_root_files", "exclusions", "discovery_evidence", "plan_inputs"],
|
|
171
|
-
"properties": {
|
|
172
|
-
"inventory_request_path": { "$ref": "#/$defs/path" },
|
|
173
|
-
"inventory_request_sha256": { "$ref": "#/$defs/sha256" },
|
|
174
|
-
"categories": {
|
|
175
|
-
"type": "object",
|
|
176
|
-
"additionalProperties": false,
|
|
177
|
-
"required": ["source", "tests", "contracts", "lockfiles"],
|
|
178
|
-
"properties": {
|
|
179
|
-
"source": { "type": "array", "items": { "$ref": "#/$defs/fileRef" } },
|
|
180
|
-
"tests": { "type": "array", "items": { "$ref": "#/$defs/fileRef" } },
|
|
181
|
-
"contracts": { "type": "array", "items": { "$ref": "#/$defs/fileRef" } },
|
|
182
|
-
"lockfiles": { "type": "array", "items": { "$ref": "#/$defs/fileRef" } }
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
"changed_files": { "$ref": "#/$defs/stringArray" },
|
|
186
|
-
"module_roots": {
|
|
187
|
-
"type": "array",
|
|
188
|
-
"minItems": 1,
|
|
189
|
-
"items": {
|
|
190
|
-
"oneOf": [
|
|
191
|
-
{ "$ref": "#/$defs/path" },
|
|
192
|
-
{
|
|
193
|
-
"type": "object",
|
|
194
|
-
"additionalProperties": false,
|
|
195
|
-
"required": ["path", "changed_files"],
|
|
196
|
-
"properties": {
|
|
197
|
-
"path": { "$ref": "#/$defs/path" },
|
|
198
|
-
"changed_files": { "$ref": "#/$defs/stringArray" }
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
]
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
"module_root_files": {
|
|
205
|
-
"type": "object",
|
|
206
|
-
"minProperties": 1,
|
|
207
|
-
"additionalProperties": { "$ref": "#/$defs/stringArray" }
|
|
208
|
-
},
|
|
209
|
-
"module_root_changed_files": {
|
|
210
|
-
"type": "object",
|
|
211
|
-
"additionalProperties": { "$ref": "#/$defs/stringArray" }
|
|
212
|
-
},
|
|
213
|
-
"exclusions": { "type": "array", "items": { "$ref": "#/$defs/path" } },
|
|
214
|
-
"discovery_evidence": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/discoveryEvidence" } },
|
|
215
|
-
"plan_inputs": { "type": "object", "minProperties": 1 }
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
"changeCapture": {
|
|
219
|
-
"type": "object",
|
|
220
|
-
"additionalProperties": false,
|
|
221
|
-
"required": ["capture_format", "baseline_commit", "patch_path", "patch_sha256", "changed_files"],
|
|
222
|
-
"properties": {
|
|
223
|
-
"capture_format": { "const": "prizmkit-canonical-change-v1" },
|
|
224
|
-
"baseline_commit": { "type": "string", "minLength": 1 },
|
|
225
|
-
"patch_path": { "$ref": "#/$defs/path" },
|
|
226
|
-
"patch_sha256": { "$ref": "#/$defs/sha256" },
|
|
227
|
-
"changed_files": {
|
|
228
|
-
"type": "array",
|
|
229
|
-
"items": {
|
|
230
|
-
"type": "object",
|
|
231
|
-
"additionalProperties": false,
|
|
232
|
-
"required": ["path", "status", "old_path"],
|
|
233
|
-
"properties": {
|
|
234
|
-
"path": { "$ref": "#/$defs/path" },
|
|
235
|
-
"status": { "type": "string", "minLength": 1 },
|
|
236
|
-
"old_path": { "type": ["string", "null"] },
|
|
237
|
-
"role": { "const": "source" }
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
"testPlan": {
|
|
244
|
-
"type": "object",
|
|
245
|
-
"additionalProperties": false,
|
|
246
|
-
"required": ["target_hashes", "plan_inputs", "layers", "tests"],
|
|
247
|
-
"properties": {
|
|
248
|
-
"target_hashes": { "$ref": "#/$defs/targetHashes" },
|
|
249
|
-
"plan_inputs": { "type": "object", "minProperties": 1 },
|
|
250
|
-
"layers": {
|
|
251
|
-
"type": "array",
|
|
252
|
-
"minItems": 5,
|
|
253
|
-
"items": {
|
|
254
|
-
"type": "object",
|
|
255
|
-
"additionalProperties": false,
|
|
256
|
-
"required": ["name", "required", "not_applicable"],
|
|
257
|
-
"properties": {
|
|
258
|
-
"name": { "enum": ["focused", "module-component", "contract-integration", "affected-module-regression", "regression-ring"] },
|
|
259
|
-
"required": { "type": "boolean" },
|
|
260
|
-
"not_applicable": { "type": ["object", "null"] }
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
"tests": {
|
|
265
|
-
"type": "array",
|
|
266
|
-
"minItems": 1,
|
|
267
|
-
"items": {
|
|
268
|
-
"type": "object",
|
|
269
|
-
"additionalProperties": false,
|
|
270
|
-
"required": ["id", "behavior_ids", "project_path", "snapshot_path", "inventory_path", "layers"],
|
|
271
|
-
"properties": {
|
|
272
|
-
"id": { "type": "string", "minLength": 1 },
|
|
273
|
-
"behavior_ids": { "$ref": "#/$defs/stringArray" },
|
|
274
|
-
"change_status": { "enum": ["existing", "added", "modified"] },
|
|
275
|
-
"project_path": { "$ref": "#/$defs/path" },
|
|
276
|
-
"snapshot_path": { "type": ["string", "null"] },
|
|
277
|
-
"inventory_path": { "$ref": "#/$defs/path" },
|
|
278
|
-
"layers": { "$ref": "#/$defs/stringArray" },
|
|
279
|
-
"selector": { "type": "string", "minLength": 1 },
|
|
280
|
-
"runner": { "type": "string", "minLength": 1 }
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
"testPreparationRequest": {
|
|
287
|
-
"type": "object",
|
|
288
|
-
"additionalProperties": false,
|
|
289
|
-
"required": ["request_version", "layers", "tests"],
|
|
290
|
-
"properties": {
|
|
291
|
-
"request_version": { "const": "1.0" },
|
|
292
|
-
"layers": {
|
|
293
|
-
"type": "array",
|
|
294
|
-
"minItems": 5,
|
|
295
|
-
"items": {
|
|
296
|
-
"type": "object",
|
|
297
|
-
"additionalProperties": false,
|
|
298
|
-
"required": ["name", "required", "not_applicable"],
|
|
299
|
-
"properties": {
|
|
300
|
-
"name": { "enum": ["focused", "module-component", "contract-integration", "affected-module-regression", "regression-ring"] },
|
|
301
|
-
"required": { "type": "boolean" },
|
|
302
|
-
"not_applicable": { "type": ["object", "null"] }
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
|
-
"tests": {
|
|
307
|
-
"type": "array",
|
|
308
|
-
"minItems": 1,
|
|
309
|
-
"items": {
|
|
310
|
-
"type": "object",
|
|
311
|
-
"additionalProperties": false,
|
|
312
|
-
"required": ["project_path", "behavior_ids", "layers"],
|
|
313
|
-
"properties": {
|
|
314
|
-
"project_path": { "$ref": "#/$defs/path" },
|
|
315
|
-
"behavior_ids": { "$ref": "#/$defs/stringArray" },
|
|
316
|
-
"layers": { "$ref": "#/$defs/stringArray" },
|
|
317
|
-
"selector": { "type": "string", "minLength": 1 },
|
|
318
|
-
"runner": { "type": "string", "minLength": 1 }
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
},
|
|
324
|
-
"testPreparation": {
|
|
325
|
-
"type": "object",
|
|
326
|
-
"additionalProperties": false,
|
|
327
|
-
"required": ["format", "request_path", "request_sha256", "tests", "changed_test_statuses"],
|
|
328
|
-
"properties": {
|
|
329
|
-
"format": { "const": "prizmkit-native-test-preparation-v1" },
|
|
330
|
-
"request_path": { "$ref": "#/$defs/path" },
|
|
331
|
-
"request_sha256": { "$ref": "#/$defs/sha256" },
|
|
332
|
-
"tests": { "type": "array", "minItems": 1, "items": { "type": "object" } },
|
|
333
|
-
"changed_test_statuses": { "type": "object", "additionalProperties": { "enum": ["added", "modified"] } }
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
"executionRequest": {
|
|
337
|
-
"type": "object",
|
|
338
|
-
"additionalProperties": false,
|
|
339
|
-
"required": ["request_version", "purpose", "command", "cwd", "environment", "tool_version_commands", "layer", "external_targets"],
|
|
340
|
-
"oneOf": [
|
|
341
|
-
{ "required": ["test_ids"] },
|
|
342
|
-
{ "required": ["test_paths"] },
|
|
343
|
-
{ "required": ["auto_bind"], "properties": { "auto_bind": { "const": true } } }
|
|
344
|
-
],
|
|
345
|
-
"properties": {
|
|
346
|
-
"request_version": { "const": "1.0" },
|
|
347
|
-
"purpose": { "type": "string", "minLength": 1 },
|
|
348
|
-
"command": { "type": "array", "minItems": 1, "items": { "type": "string" } },
|
|
349
|
-
"cwd": { "type": "string" },
|
|
350
|
-
"environment": { "type": "object" },
|
|
351
|
-
"tool_version_commands": { "type": "object" },
|
|
352
|
-
"layer": { "enum": ["focused", "module-component", "contract-integration", "affected-module-regression", "regression-ring", "lightweight"] },
|
|
353
|
-
"test_ids": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
354
|
-
"test_paths": { "type": "array", "items": { "$ref": "#/$defs/path" } },
|
|
355
|
-
"auto_bind": { "type": "boolean" },
|
|
356
|
-
"external_targets": { "type": "array", "items": { "$ref": "#/$defs/externalTarget" } },
|
|
357
|
-
"timeout_seconds": { "type": "number", "exclusiveMinimum": 0 },
|
|
358
|
-
"attempt_policy": { "type": "object" },
|
|
359
|
-
"concurrency": { "type": "object" }
|
|
360
|
-
}
|
|
361
|
-
},
|
|
362
|
-
"executionReceipt": {
|
|
363
|
-
"type": "object",
|
|
364
|
-
"additionalProperties": false,
|
|
365
|
-
"required": ["receipt_format", "runner_path", "runner_sha256", "execution_id", "attempt_index", "request_path", "request_sha256", "purpose", "command", "cwd", "environment", "tool_versions", "layer", "test_ids", "external_targets", "exit_code", "stdout_path", "stderr_path", "stdout_sha256", "stderr_sha256", "selected_execution", "reliable", "started_at", "finished_at"],
|
|
366
|
-
"properties": {
|
|
367
|
-
"receipt_format": { "const": "prizmkit-runner-generated-v1" },
|
|
368
|
-
"runner_path": { "$ref": "#/$defs/path" },
|
|
369
|
-
"runner_sha256": { "$ref": "#/$defs/sha256" },
|
|
370
|
-
"execution_id": { "type": "string", "pattern": "^[a-f0-9-]{36}$" },
|
|
371
|
-
"attempt_index": { "type": "integer", "minimum": 1 },
|
|
372
|
-
"request_path": { "$ref": "#/$defs/path" },
|
|
373
|
-
"request_sha256": { "$ref": "#/$defs/sha256" },
|
|
374
|
-
"purpose": { "type": "string", "minLength": 1 },
|
|
375
|
-
"command": { "type": "array", "minItems": 1, "items": { "type": "string" } },
|
|
376
|
-
"cwd": { "type": "string" },
|
|
377
|
-
"environment": { "type": "object" },
|
|
378
|
-
"tool_versions": { "type": "object" },
|
|
379
|
-
"layer": { "enum": ["focused", "module-component", "contract-integration", "affected-module-regression", "regression-ring", "lightweight"] },
|
|
380
|
-
"test_ids": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
381
|
-
"test_paths": { "type": "array", "items": { "$ref": "#/$defs/path" } },
|
|
382
|
-
"auto_bind": { "type": "boolean" },
|
|
383
|
-
"external_targets": { "type": "array", "items": { "$ref": "#/$defs/externalTarget" } },
|
|
384
|
-
"exit_code": { "type": "integer" },
|
|
385
|
-
"stdout_path": { "$ref": "#/$defs/path" },
|
|
386
|
-
"stderr_path": { "$ref": "#/$defs/path" },
|
|
387
|
-
"stdout_sha256": { "$ref": "#/$defs/sha256" },
|
|
388
|
-
"stderr_sha256": { "$ref": "#/$defs/sha256" },
|
|
389
|
-
"selected_execution": { "type": "boolean" },
|
|
390
|
-
"reliable": { "type": "boolean" },
|
|
391
|
-
"started_at": { "type": "string", "minLength": 1 },
|
|
392
|
-
"finished_at": { "type": "string", "minLength": 1 },
|
|
393
|
-
"replay_of": { "type": ["string", "null"] },
|
|
394
|
-
"isolation": { "type": ["object", "null"] }
|
|
395
|
-
}
|
|
396
|
-
},
|
|
397
|
-
"executionLog": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/executionReceipt" } },
|
|
398
|
-
"infrastructureChanges": {
|
|
399
|
-
"type": "object",
|
|
400
|
-
"additionalProperties": false,
|
|
401
|
-
"required": ["native_runner", "changes", "cleanup_succeeded", "external_targets", "contract_snapshots"],
|
|
402
|
-
"properties": {
|
|
403
|
-
"native_runner": { "type": "string", "minLength": 1 },
|
|
404
|
-
"changes": { "type": "array", "items": { "type": "object" } },
|
|
405
|
-
"cleanup_succeeded": { "type": "boolean" },
|
|
406
|
-
"external_targets": { "type": "array", "items": { "$ref": "#/$defs/externalTarget" } },
|
|
407
|
-
"contract_snapshots": {
|
|
408
|
-
"type": "array",
|
|
409
|
-
"items": {
|
|
410
|
-
"type": "object",
|
|
411
|
-
"additionalProperties": false,
|
|
412
|
-
"required": ["path", "derivation_source", "sha256"],
|
|
413
|
-
"properties": {
|
|
414
|
-
"path": { "$ref": "#/$defs/path" },
|
|
415
|
-
"derivation_source": { "type": "string", "minLength": 1 },
|
|
416
|
-
"sha256": { "$ref": "#/$defs/sha256" }
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
|
-
"verdict": {
|
|
423
|
-
"type": "object",
|
|
424
|
-
"additionalProperties": false,
|
|
425
|
-
"required": ["verdict", "testing_domain_only", "authorizes_commit_or_release", "real_environment_validated", "repairs_business_defects", "code_evidence_replayable", "blockers", "reproduced_failures"],
|
|
426
|
-
"properties": {
|
|
427
|
-
"verdict": { "enum": ["TEST_PASS", "TEST_FAIL", "TEST_BLOCKED"] },
|
|
428
|
-
"testing_domain_only": { "const": true },
|
|
429
|
-
"authorizes_commit_or_release": { "const": false },
|
|
430
|
-
"real_environment_validated": { "const": false },
|
|
431
|
-
"repairs_business_defects": { "const": false },
|
|
432
|
-
"code_evidence_replayable": { "type": "boolean" },
|
|
433
|
-
"repair_scope": { "enum": ["test-infrastructure", "production", "runtime", "schema", "dependency", "public-interface"] },
|
|
434
|
-
"blockers": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
435
|
-
"reproduced_failures": { "type": "array", "items": { "type": "string", "minLength": 1 } }
|
|
436
|
-
}
|
|
437
|
-
},
|
|
438
|
-
"validation": {
|
|
439
|
-
"type": "object",
|
|
440
|
-
"additionalProperties": false,
|
|
441
|
-
"required": ["validator", "validator_sha256", "payload_sha256", "result", "verdict", "semantics", "replay_receipt_ids"],
|
|
442
|
-
"properties": {
|
|
443
|
-
"validator": { "const": "validate_test_evidence.py" },
|
|
444
|
-
"validator_sha256": { "$ref": "#/$defs/sha256" },
|
|
445
|
-
"payload_sha256": { "$ref": "#/$defs/sha256" },
|
|
446
|
-
"result": { "const": "passed" },
|
|
447
|
-
"verdict": { "enum": ["TEST_PASS", "TEST_FAIL", "TEST_BLOCKED"] },
|
|
448
|
-
"semantics": { "const": "integrity-and-protocol-validation-not-hostile-producer-proof" },
|
|
449
|
-
"replay_receipt_ids": { "type": "array", "items": { "type": "string", "minLength": 1 } }
|
|
450
|
-
}
|
|
451
|
-
},
|
|
452
|
-
"lightweightVerification": {
|
|
453
|
-
"type": "object",
|
|
454
|
-
"additionalProperties": false,
|
|
455
|
-
"required": ["claim", "runtime_behavior_claimed", "checks"],
|
|
456
|
-
"properties": {
|
|
457
|
-
"claim": { "const": "non_behavior_change" },
|
|
458
|
-
"runtime_behavior_claimed": { "const": false },
|
|
459
|
-
"checks": {
|
|
460
|
-
"type": "array",
|
|
461
|
-
"minItems": 1,
|
|
462
|
-
"items": {
|
|
463
|
-
"type": "object",
|
|
464
|
-
"additionalProperties": false,
|
|
465
|
-
"required": ["name", "execution_id", "evidence"],
|
|
466
|
-
"properties": {
|
|
467
|
-
"name": { "type": "string", "minLength": 1 },
|
|
468
|
-
"execution_id": { "type": "string", "minLength": 1 },
|
|
469
|
-
"evidence": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/discoveryEvidence" } }
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://prizmkit.dev/schemas/behavior-risk-matrix.schema.json",
|
|
4
|
-
"title": "PrizmKit Behavior Risk Matrix",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"required": ["affected_module", "primary_scope", "regression_ring", "unresolved_edges", "behaviors"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"affected_module": {
|
|
10
|
-
"type": "object",
|
|
11
|
-
"additionalProperties": false,
|
|
12
|
-
"required": ["name", "boundary_source", "files"],
|
|
13
|
-
"properties": {
|
|
14
|
-
"name": { "type": "string", "minLength": 1 },
|
|
15
|
-
"boundary_source": { "enum": ["explicit", "cohesion-derived"] },
|
|
16
|
-
"files": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } }
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"primary_scope": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
|
|
20
|
-
"regression_ring": {
|
|
21
|
-
"type": "array",
|
|
22
|
-
"items": {
|
|
23
|
-
"type": "object",
|
|
24
|
-
"additionalProperties": false,
|
|
25
|
-
"required": ["name", "kind", "verification"],
|
|
26
|
-
"properties": {
|
|
27
|
-
"name": { "type": "string", "minLength": 1 },
|
|
28
|
-
"kind": { "enum": ["caller", "consumer", "shared-contract", "state-dependency"] },
|
|
29
|
-
"verification": { "type": "string", "minLength": 1 }
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"unresolved_edges": {
|
|
34
|
-
"type": "array",
|
|
35
|
-
"items": {
|
|
36
|
-
"type": "object",
|
|
37
|
-
"additionalProperties": false,
|
|
38
|
-
"required": ["description", "verdict_capable", "resolution"],
|
|
39
|
-
"properties": {
|
|
40
|
-
"description": { "type": "string", "minLength": 1 },
|
|
41
|
-
"verdict_capable": { "type": "boolean" },
|
|
42
|
-
"resolution": { "type": "string" }
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"behaviors": {
|
|
47
|
-
"type": "array",
|
|
48
|
-
"minItems": 1,
|
|
49
|
-
"items": { "$ref": "#/$defs/behavior" }
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"$defs": {
|
|
53
|
-
"riskCell": {
|
|
54
|
-
"type": "object",
|
|
55
|
-
"additionalProperties": false,
|
|
56
|
-
"required": ["status", "test_ids", "execution_ids", "not_applicable"],
|
|
57
|
-
"properties": {
|
|
58
|
-
"status": { "enum": ["applicable", "not_applicable", "unresolved"] },
|
|
59
|
-
"test_ids": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
60
|
-
"execution_ids": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
61
|
-
"not_applicable": {
|
|
62
|
-
"type": ["object", "null"],
|
|
63
|
-
"properties": {
|
|
64
|
-
"rationale": { "type": "string", "minLength": 8 },
|
|
65
|
-
"evidence": { "type": "array", "minItems": 1, "items": { "type": "object" } },
|
|
66
|
-
"considered_signals": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
|
|
67
|
-
"conflicts": { "type": "array", "items": { "type": "object" } }
|
|
68
|
-
},
|
|
69
|
-
"required": ["rationale", "evidence", "considered_signals", "conflicts"],
|
|
70
|
-
"additionalProperties": false
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"behavior": {
|
|
75
|
-
"type": "object",
|
|
76
|
-
"additionalProperties": false,
|
|
77
|
-
"required": [
|
|
78
|
-
"id", "public_behavior", "contract_source", "truth_precedence", "preconditions",
|
|
79
|
-
"input_classes", "boundary_values", "outputs", "side_effects", "state_transitions",
|
|
80
|
-
"error_behavior", "risks"
|
|
81
|
-
],
|
|
82
|
-
"properties": {
|
|
83
|
-
"id": { "type": "string", "minLength": 1 },
|
|
84
|
-
"public_behavior": { "type": "string", "minLength": 1 },
|
|
85
|
-
"contract_source": { "type": "string", "minLength": 1 },
|
|
86
|
-
"truth_precedence": {
|
|
87
|
-
"type": "array",
|
|
88
|
-
"minItems": 1,
|
|
89
|
-
"items": { "enum": ["specification", "machine-readable-contract", "acceptance-condition", "trusted-test", "caller", "current-implementation"] }
|
|
90
|
-
},
|
|
91
|
-
"preconditions": { "type": "array", "items": { "type": "string" } },
|
|
92
|
-
"input_classes": { "type": "array", "items": { "type": "string" } },
|
|
93
|
-
"boundary_values": { "type": "array", "items": { "type": "string" } },
|
|
94
|
-
"outputs": { "type": "array", "items": { "type": "string" } },
|
|
95
|
-
"side_effects": { "type": "array", "items": { "type": "string" } },
|
|
96
|
-
"state_transitions": { "type": "array", "items": { "type": "string" } },
|
|
97
|
-
"error_behavior": { "type": "array", "items": { "type": "string" } },
|
|
98
|
-
"risks": {
|
|
99
|
-
"type": "object",
|
|
100
|
-
"additionalProperties": false,
|
|
101
|
-
"required": ["functional", "boundary", "permission", "concurrency", "idempotency", "time", "dependency", "consumer"],
|
|
102
|
-
"properties": {
|
|
103
|
-
"functional": { "$ref": "#/$defs/riskCell" },
|
|
104
|
-
"boundary": { "$ref": "#/$defs/riskCell" },
|
|
105
|
-
"permission": { "$ref": "#/$defs/riskCell" },
|
|
106
|
-
"concurrency": { "$ref": "#/$defs/riskCell" },
|
|
107
|
-
"idempotency": { "$ref": "#/$defs/riskCell" },
|
|
108
|
-
"time": { "$ref": "#/$defs/riskCell" },
|
|
109
|
-
"dependency": { "$ref": "#/$defs/riskCell" },
|
|
110
|
-
"consumer": { "$ref": "#/$defs/riskCell" }
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|