automated-qa 0.11.0

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 (187) hide show
  1. package/LICENSE +22 -0
  2. package/NOTICE +9 -0
  3. package/README.md +100 -0
  4. package/SKILL.md +65 -0
  5. package/agent/prebuilt/darwin-universal/qa-agent +0 -0
  6. package/agent/prebuilt/linux-arm64/qa-agent +0 -0
  7. package/agent/prebuilt/linux-x64/qa-agent +0 -0
  8. package/agent/release-manifest.json +31 -0
  9. package/bin/autonomous-cache.mjs +2 -0
  10. package/bin/bench-generate.mjs +232 -0
  11. package/bin/bench-graph-query.mjs +2 -0
  12. package/bin/bench-score.mjs +10 -0
  13. package/bin/classify.mjs +15 -0
  14. package/bin/coherence-playwright.mjs +1 -0
  15. package/bin/coherence-runner.mjs +6 -0
  16. package/bin/crud-runner.mjs +12 -0
  17. package/bin/experiment-executor.mjs +10 -0
  18. package/bin/experiment-runner.mjs +3 -0
  19. package/bin/inventory.mjs +17 -0
  20. package/bin/probe.js +879 -0
  21. package/bin/qa.mjs +16 -0
  22. package/bin/rules.mjs +5 -0
  23. package/bin/run-benchmarks.mjs +2 -0
  24. package/bin/runtime-packs.mjs +3 -0
  25. package/bin/semantic-explorer.mjs +3 -0
  26. package/bin/shadow-collector.mjs +3 -0
  27. package/bin/shadow-replay.mjs +6 -0
  28. package/bin/soak-marathon.mjs +15 -0
  29. package/bin/sweep.mjs +43 -0
  30. package/bin/validate-priors.mjs +3 -0
  31. package/bin/verify-artifacts.mjs +3 -0
  32. package/bin/verify-manifest.mjs +2 -0
  33. package/install-skill.sh +45 -0
  34. package/lib/qa/agent-availability.mjs +1 -0
  35. package/lib/qa/agent-result.mjs +1 -0
  36. package/lib/qa/analysis.mjs +5 -0
  37. package/lib/qa/atlas-coverage.mjs +11 -0
  38. package/lib/qa/atlas-v1.mjs +1 -0
  39. package/lib/qa/atlas.mjs +2 -0
  40. package/lib/qa/auth/coordinator.mjs +1 -0
  41. package/lib/qa/auth/launcher.mjs +3 -0
  42. package/lib/qa/auth/lease.mjs +1 -0
  43. package/lib/qa/auth/oracle.mjs +1 -0
  44. package/lib/qa/auth/personas.mjs +3 -0
  45. package/lib/qa/autonomous-cache.mjs +3 -0
  46. package/lib/qa/block-ledger.mjs +1 -0
  47. package/lib/qa/capture-report.mjs +63 -0
  48. package/lib/qa/ci.mjs +11 -0
  49. package/lib/qa/cli.mjs +538 -0
  50. package/lib/qa/coherence/analyze.mjs +1 -0
  51. package/lib/qa/coherence/cache-key.mjs +6 -0
  52. package/lib/qa/coherence/causes.mjs +1 -0
  53. package/lib/qa/coherence/concurrency.mjs +1 -0
  54. package/lib/qa/coherence/contracts.mjs +1 -0
  55. package/lib/qa/coherence/entity-aliases.mjs +1 -0
  56. package/lib/qa/coherence/enums.mjs +1 -0
  57. package/lib/qa/coherence/family-report.mjs +1 -0
  58. package/lib/qa/coherence/flow-pool.mjs +1 -0
  59. package/lib/qa/coherence/graph.mjs +1 -0
  60. package/lib/qa/coherence/identity.mjs +1 -0
  61. package/lib/qa/coherence/ir.mjs +4 -0
  62. package/lib/qa/coherence/navigation.mjs +1 -0
  63. package/lib/qa/coherence/observe.mjs +2 -0
  64. package/lib/qa/coherence/offline.mjs +1 -0
  65. package/lib/qa/coherence/plan-join.mjs +1 -0
  66. package/lib/qa/coherence/provenance.mjs +2 -0
  67. package/lib/qa/coherence/report.mjs +1 -0
  68. package/lib/qa/coherence/representations.mjs +1 -0
  69. package/lib/qa/coherence/risk.mjs +2 -0
  70. package/lib/qa/coherence/structural-js.mjs +11 -0
  71. package/lib/qa/coherence/symbols.mjs +6 -0
  72. package/lib/qa/coherence/tanstack.mjs +4 -0
  73. package/lib/qa/coherence/views.mjs +1 -0
  74. package/lib/qa/coherence-planner.mjs +1 -0
  75. package/lib/qa/command-catalog.mjs +2 -0
  76. package/lib/qa/commands/dev.mjs +1 -0
  77. package/lib/qa/commands/fix.mjs +1 -0
  78. package/lib/qa/commands/impl/analysis.mjs +1 -0
  79. package/lib/qa/commands/impl/atlas.mjs +1 -0
  80. package/lib/qa/commands/impl/coherence.mjs +1 -0
  81. package/lib/qa/commands/impl/crud.mjs +2 -0
  82. package/lib/qa/commands/impl/doctor.mjs +1 -0
  83. package/lib/qa/commands/impl/experiments.mjs +1 -0
  84. package/lib/qa/commands/impl/fp.mjs +1 -0
  85. package/lib/qa/commands/impl/graph.mjs +1 -0
  86. package/lib/qa/commands/impl/invariants.mjs +1 -0
  87. package/lib/qa/commands/impl/lanes.mjs +7 -0
  88. package/lib/qa/commands/impl/ledger.mjs +11 -0
  89. package/lib/qa/commands/impl/loop.mjs +1 -0
  90. package/lib/qa/commands/impl/marathon.mjs +1 -0
  91. package/lib/qa/commands/impl/next.mjs +38 -0
  92. package/lib/qa/commands/impl/report.mjs +4 -0
  93. package/lib/qa/commands/impl/research.mjs +4 -0
  94. package/lib/qa/commands/impl/selftest.mjs +1 -0
  95. package/lib/qa/commands/impl/serve.mjs +1 -0
  96. package/lib/qa/commands/impl/shadow.mjs +1 -0
  97. package/lib/qa/commands/impl/stability.mjs +1 -0
  98. package/lib/qa/commands/impl/triage.mjs +1 -0
  99. package/lib/qa/commands/impl/validate.mjs +4 -0
  100. package/lib/qa/commands/impl/version.mjs +1 -0
  101. package/lib/qa/commands/impl/watch.mjs +1 -0
  102. package/lib/qa/commands/init.mjs +6 -0
  103. package/lib/qa/commands/measure.mjs +1 -0
  104. package/lib/qa/commands/run.mjs +1 -0
  105. package/lib/qa/commands/show.mjs +1 -0
  106. package/lib/qa/commands/verify.mjs +6 -0
  107. package/lib/qa/deepening.mjs +1 -0
  108. package/lib/qa/denominators.mjs +1 -0
  109. package/lib/qa/depth.mjs +4 -0
  110. package/lib/qa/doctor.mjs +2 -0
  111. package/lib/qa/experiments-default.mjs +1 -0
  112. package/lib/qa/fix-lanes.mjs +3 -0
  113. package/lib/qa/forced-states.mjs +1 -0
  114. package/lib/qa/fp.mjs +2 -0
  115. package/lib/qa/fs.mjs +6 -0
  116. package/lib/qa/graph-schema.mjs +2 -0
  117. package/lib/qa/graph.mjs +3 -0
  118. package/lib/qa/harness-plan.mjs +3 -0
  119. package/lib/qa/init.mjs +5 -0
  120. package/lib/qa/integrity.mjs +1 -0
  121. package/lib/qa/invariants.mjs +84 -0
  122. package/lib/qa/jcs.mjs +1 -0
  123. package/lib/qa/lanes.mjs +1 -0
  124. package/lib/qa/loop.mjs +7 -0
  125. package/lib/qa/marathon-coherence.mjs +1 -0
  126. package/lib/qa/marathon-phases.mjs +1 -0
  127. package/lib/qa/marathon-wait.mjs +3 -0
  128. package/lib/qa/marathon.mjs +5 -0
  129. package/lib/qa/mode-coverage.mjs +1 -0
  130. package/lib/qa/mutation-policy.mjs +1 -0
  131. package/lib/qa/pattern-ledger.mjs +3 -0
  132. package/lib/qa/pending.mjs +1 -0
  133. package/lib/qa/proc.mjs +4 -0
  134. package/lib/qa/recommend.mjs +1 -0
  135. package/lib/qa/release-manifest.mjs +1 -0
  136. package/lib/qa/report-html.mjs +178 -0
  137. package/lib/qa/reports.mjs +2 -0
  138. package/lib/qa/request-evidence.mjs +1 -0
  139. package/lib/qa/research.mjs +20 -0
  140. package/lib/qa/routing.mjs +1 -0
  141. package/lib/qa/runs.mjs +1 -0
  142. package/lib/qa/schema.mjs +1 -0
  143. package/lib/qa/serve.mjs +4 -0
  144. package/lib/qa/server.mjs +1 -0
  145. package/lib/qa/source-snapshot.mjs +3 -0
  146. package/lib/qa/stability.mjs +3 -0
  147. package/lib/qa/state-evidence.mjs +1 -0
  148. package/lib/qa/sweep-incremental.mjs +1 -0
  149. package/lib/qa/triage.mjs +2 -0
  150. package/lib/qa/verdict.mjs +1 -0
  151. package/lib/qa/watch.mjs +2 -0
  152. package/package.json +62 -0
  153. package/references/ATLAS-COVERAGE.md +231 -0
  154. package/references/atlas-v1.md +318 -0
  155. package/references/atlas.md +338 -0
  156. package/references/verify.crud.example.json +1 -0
  157. package/references/verify.impact.example.json +1 -0
  158. package/references/verify.shadow.example.json +1 -0
  159. package/schemas/agent-result.schema.json +135 -0
  160. package/schemas/analysis.schema.json +15 -0
  161. package/schemas/classify.schema.json +61 -0
  162. package/schemas/coherence-ir.schema.json +1585 -0
  163. package/schemas/coherence-observed.schema.json +1171 -0
  164. package/schemas/coherence-plan.schema.json +77 -0
  165. package/schemas/coherence-risk.schema.json +46 -0
  166. package/schemas/crud-observed.schema.json +118 -0
  167. package/schemas/experiment-execution.schema.json +82 -0
  168. package/schemas/graph-edge.schema.json +22 -0
  169. package/schemas/graph-node.schema.json +81 -0
  170. package/schemas/graph.schema.json +2493 -0
  171. package/schemas/identity-oracle.schema.json +19 -0
  172. package/schemas/inventory.schema.json +2167 -0
  173. package/schemas/lanes-plan.schema.json +52 -0
  174. package/schemas/next.schema.json +54 -0
  175. package/schemas/personas.schema.json +52 -0
  176. package/schemas/research.schema.json +192 -0
  177. package/schemas/run.schema.json +160 -0
  178. package/schemas/shadow-replay.schema.json +68 -0
  179. package/schemas/stability.schema.json +92 -0
  180. package/schemas/sweep.schema.json +239 -0
  181. package/schemas/v1/agent-result.schema.json +106 -0
  182. package/schemas/v1/run.schema.json +96 -0
  183. package/schemas/verify-crud.schema.json +37 -0
  184. package/schemas/verify-read-only.schema.json +37 -0
  185. package/templates/github-workflow.yml +80 -0
  186. package/templates/pre-commit.sample +22 -0
  187. package/verify.sh +385 -0
@@ -0,0 +1,1585 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://frontend-verify.dev/schemas/coherence-ir.schema.json",
4
+ "title": "coherence IR",
5
+ "oneOf": [
6
+ {
7
+ "$ref": "#/$defs/current"
8
+ },
9
+ {
10
+ "$ref": "#/$defs/legacyV3"
11
+ }
12
+ ],
13
+ "$defs": {
14
+ "current": {
15
+ "type": "object",
16
+ "required": [
17
+ "schemaVersion",
18
+ "coverage",
19
+ "resourceFamilies",
20
+ "cacheKeys",
21
+ "cacheOperations",
22
+ "reads",
23
+ "mutations",
24
+ "invalidations",
25
+ "operationReadPairs",
26
+ "surfaces",
27
+ "ownershipEdges",
28
+ "candidates",
29
+ "graph"
30
+ ],
31
+ "additionalProperties": false,
32
+ "properties": {
33
+ "schemaVersion": {
34
+ "const": 4
35
+ },
36
+ "coverage": {
37
+ "$ref": "#/$defs/coverage"
38
+ },
39
+ "resourceFamilies": {
40
+ "type": "array",
41
+ "items": {
42
+ "$ref": "#/$defs/family"
43
+ }
44
+ },
45
+ "cacheKeys": {
46
+ "type": "array",
47
+ "items": {
48
+ "$ref": "#/$defs/cacheKey"
49
+ }
50
+ },
51
+ "cacheOperations": {
52
+ "type": "array",
53
+ "items": {
54
+ "$ref": "#/$defs/cacheOperation"
55
+ }
56
+ },
57
+ "reads": {
58
+ "type": "array",
59
+ "items": {
60
+ "$ref": "#/$defs/read"
61
+ }
62
+ },
63
+ "mutations": {
64
+ "type": "array",
65
+ "items": {
66
+ "$ref": "#/$defs/mutation"
67
+ }
68
+ },
69
+ "invalidations": {
70
+ "type": "array",
71
+ "maxItems": 0
72
+ },
73
+ "operationReadPairs": {
74
+ "type": "array",
75
+ "items": {
76
+ "$ref": "#/$defs/operationReadPair"
77
+ }
78
+ },
79
+ "surfaces": {
80
+ "type": "array",
81
+ "items": {
82
+ "$ref": "#/$defs/surface"
83
+ }
84
+ },
85
+ "ownershipEdges": {
86
+ "type": "array",
87
+ "items": {
88
+ "$ref": "#/$defs/ownershipEdge"
89
+ }
90
+ },
91
+ "candidates": {
92
+ "type": "array",
93
+ "items": {
94
+ "$ref": "#/$defs/candidate"
95
+ }
96
+ },
97
+ "units": {
98
+ "type": "array",
99
+ "items": {
100
+ "$ref": "#/$defs/unit"
101
+ }
102
+ },
103
+ "graph": {
104
+ "type": "object",
105
+ "description": "The semantic-graph v2 root. Fully specified by graph.schema.json; this branch only binds its identity, because the local validator resolves same-document refs only.",
106
+ "required": [
107
+ "artifact",
108
+ "schemaVersion",
109
+ "coverage",
110
+ "nodes",
111
+ "edges"
112
+ ],
113
+ "properties": {
114
+ "artifact": {
115
+ "const": "frontend-verify.semantic-graph"
116
+ },
117
+ "schemaVersion": {
118
+ "const": 2
119
+ }
120
+ }
121
+ }
122
+ },
123
+ "title": "coherence IR v4 (current)",
124
+ "description": "CURRENT. One semantic graph v2 is REQUIRED and every compatibility array is a checked projection of it. Schema validity is necessary and not sufficient: the graph root must also validate against graph.schema.json and pass validateSemanticGraph, and the views must recompute from it."
125
+ },
126
+ "legacyV3": {
127
+ "type": "object",
128
+ "required": [
129
+ "schemaVersion",
130
+ "coverage",
131
+ "resourceFamilies",
132
+ "cacheKeys",
133
+ "cacheOperations",
134
+ "reads",
135
+ "mutations",
136
+ "invalidations",
137
+ "operationReadPairs",
138
+ "surfaces",
139
+ "ownershipEdges",
140
+ "candidates"
141
+ ],
142
+ "additionalProperties": false,
143
+ "properties": {
144
+ "schemaVersion": {
145
+ "const": 3
146
+ },
147
+ "coverage": {
148
+ "$ref": "#/$defs/coverage"
149
+ },
150
+ "resourceFamilies": {
151
+ "type": "array",
152
+ "items": {
153
+ "$ref": "#/$defs/family"
154
+ }
155
+ },
156
+ "cacheKeys": {
157
+ "type": "array",
158
+ "items": {
159
+ "$ref": "#/$defs/cacheKey"
160
+ }
161
+ },
162
+ "cacheOperations": {
163
+ "type": "array",
164
+ "items": {
165
+ "$ref": "#/$defs/cacheOperation"
166
+ }
167
+ },
168
+ "reads": {
169
+ "type": "array",
170
+ "items": {
171
+ "$ref": "#/$defs/read"
172
+ }
173
+ },
174
+ "mutations": {
175
+ "type": "array",
176
+ "items": {
177
+ "$ref": "#/$defs/mutation"
178
+ }
179
+ },
180
+ "invalidations": {
181
+ "type": "array",
182
+ "maxItems": 0
183
+ },
184
+ "operationReadPairs": {
185
+ "type": "array",
186
+ "items": {
187
+ "$ref": "#/$defs/operationReadPair"
188
+ }
189
+ },
190
+ "surfaces": {
191
+ "type": "array",
192
+ "items": {
193
+ "$ref": "#/$defs/surface"
194
+ }
195
+ },
196
+ "ownershipEdges": {
197
+ "type": "array",
198
+ "items": {
199
+ "$ref": "#/$defs/ownershipEdge"
200
+ }
201
+ },
202
+ "candidates": {
203
+ "type": "array",
204
+ "items": {
205
+ "$ref": "#/$defs/candidate"
206
+ }
207
+ },
208
+ "units": {
209
+ "type": "array",
210
+ "items": {
211
+ "$ref": "#/$defs/unit"
212
+ }
213
+ }
214
+ },
215
+ "title": "coherence IR v3 (legacy, non-proof)",
216
+ "description": "LEGACY. Readable only as non-proof input: a v3 document carries no semantic graph, so nothing in it can satisfy a current join, obligation or measured denominator. validateCoherenceIrIdentities returns {current:false} for it."
217
+ },
218
+ "id": {
219
+ "type": "string",
220
+ "pattern": "^[a-f0-9]{64}$"
221
+ },
222
+ "evidenceId": {
223
+ "type": "string",
224
+ "pattern": "^sha256:[a-f0-9]{64}$"
225
+ },
226
+ "sourceRef": {
227
+ "type": "object",
228
+ "required": [
229
+ "file",
230
+ "line"
231
+ ],
232
+ "additionalProperties": false,
233
+ "properties": {
234
+ "file": {
235
+ "type": [
236
+ "string",
237
+ "null"
238
+ ]
239
+ },
240
+ "line": {
241
+ "type": "integer",
242
+ "minimum": 0
243
+ }
244
+ }
245
+ },
246
+ "sourceSpan": {
247
+ "type": "object",
248
+ "required": [
249
+ "file",
250
+ "start",
251
+ "end",
252
+ "line",
253
+ "column"
254
+ ],
255
+ "additionalProperties": false,
256
+ "properties": {
257
+ "file": {
258
+ "type": "string"
259
+ },
260
+ "start": {
261
+ "type": "integer",
262
+ "minimum": 0
263
+ },
264
+ "end": {
265
+ "type": "integer",
266
+ "minimum": 1
267
+ },
268
+ "line": {
269
+ "type": "integer",
270
+ "minimum": 1
271
+ },
272
+ "column": {
273
+ "type": "integer",
274
+ "minimum": 1
275
+ }
276
+ }
277
+ },
278
+ "jcsValue": {
279
+ "anyOf": [
280
+ {
281
+ "type": [
282
+ "string",
283
+ "boolean",
284
+ "null"
285
+ ]
286
+ },
287
+ {
288
+ "type": "number",
289
+ "minimum": -9007199254740991,
290
+ "maximum": 9007199254740991
291
+ },
292
+ {
293
+ "type": "array",
294
+ "items": {
295
+ "$ref": "#/$defs/jcsValue"
296
+ }
297
+ },
298
+ {
299
+ "type": "object",
300
+ "additionalProperties": {
301
+ "$ref": "#/$defs/jcsValue"
302
+ }
303
+ }
304
+ ]
305
+ },
306
+ "keyOrigin": {
307
+ "type": "object",
308
+ "required": [
309
+ "file",
310
+ "start",
311
+ "end",
312
+ "line",
313
+ "column"
314
+ ],
315
+ "additionalProperties": false,
316
+ "properties": {
317
+ "file": {
318
+ "type": "string"
319
+ },
320
+ "start": {
321
+ "type": "integer",
322
+ "minimum": 0
323
+ },
324
+ "end": {
325
+ "type": "integer",
326
+ "minimum": 1
327
+ },
328
+ "line": {
329
+ "type": "integer",
330
+ "minimum": 1
331
+ },
332
+ "column": {
333
+ "type": "integer",
334
+ "minimum": 1
335
+ }
336
+ }
337
+ },
338
+ "literalTerm": {
339
+ "type": "object",
340
+ "required": [
341
+ "kind",
342
+ "value"
343
+ ],
344
+ "additionalProperties": false,
345
+ "properties": {
346
+ "kind": {
347
+ "const": "literal"
348
+ },
349
+ "value": {
350
+ "$ref": "#/$defs/jcsValue"
351
+ },
352
+ "origin": {
353
+ "$ref": "#/$defs/keyOrigin"
354
+ }
355
+ }
356
+ },
357
+ "symbolicTerm": {
358
+ "type": "object",
359
+ "required": [
360
+ "kind",
361
+ "expression",
362
+ "ownerSymbol",
363
+ "targetSymbol",
364
+ "origin",
365
+ "resolutionPath",
366
+ "resolution",
367
+ "reason"
368
+ ],
369
+ "additionalProperties": false,
370
+ "properties": {
371
+ "kind": {
372
+ "enum": [
373
+ "parameter",
374
+ "wildcard",
375
+ "call",
376
+ "unknown"
377
+ ]
378
+ },
379
+ "expression": {
380
+ "type": "string"
381
+ },
382
+ "ownerSymbol": {
383
+ "type": [
384
+ "string",
385
+ "null"
386
+ ]
387
+ },
388
+ "targetSymbol": {
389
+ "type": [
390
+ "string",
391
+ "null"
392
+ ]
393
+ },
394
+ "origin": {
395
+ "$ref": "#/$defs/keyOrigin"
396
+ },
397
+ "resolutionPath": {
398
+ "type": "array",
399
+ "maxItems": 26,
400
+ "items": {
401
+ "type": "string"
402
+ }
403
+ },
404
+ "resolution": {
405
+ "const": "unresolved"
406
+ },
407
+ "reason": {
408
+ "enum": [
409
+ "dynamic-key",
410
+ "unknown-helper",
411
+ "unsupported-client",
412
+ "unsupported-expression",
413
+ "unsafe-number",
414
+ "non-json-value",
415
+ "contract-conflict",
416
+ "dynamic-import",
417
+ "namespace-spread",
418
+ "export-star",
419
+ "computed-member",
420
+ "ambiguous-alias",
421
+ "unresolved-module",
422
+ "unsupported-syntax"
423
+ ]
424
+ }
425
+ }
426
+ },
427
+ "term": {
428
+ "oneOf": [
429
+ {
430
+ "$ref": "#/$defs/literalTerm"
431
+ },
432
+ {
433
+ "$ref": "#/$defs/symbolicTerm"
434
+ }
435
+ ]
436
+ },
437
+ "pattern": {
438
+ "type": "object",
439
+ "required": [
440
+ "segments"
441
+ ],
442
+ "additionalProperties": false,
443
+ "properties": {
444
+ "segments": {
445
+ "type": "array",
446
+ "items": {
447
+ "$ref": "#/$defs/term"
448
+ }
449
+ }
450
+ }
451
+ },
452
+ "cacheKeyMaterial": {
453
+ "type": "object",
454
+ "required": [
455
+ "namespace",
456
+ "version",
457
+ "segments"
458
+ ],
459
+ "additionalProperties": false,
460
+ "properties": {
461
+ "namespace": {
462
+ "const": "coherence/cache-key"
463
+ },
464
+ "version": {
465
+ "const": 1
466
+ },
467
+ "segments": {
468
+ "type": "array",
469
+ "items": {
470
+ "$ref": "#/$defs/term"
471
+ }
472
+ }
473
+ }
474
+ },
475
+ "cacheKey": {
476
+ "type": "object",
477
+ "required": [
478
+ "id",
479
+ "material",
480
+ "provenance"
481
+ ],
482
+ "additionalProperties": false,
483
+ "properties": {
484
+ "id": {
485
+ "$ref": "#/$defs/id"
486
+ },
487
+ "material": {
488
+ "$ref": "#/$defs/cacheKeyMaterial"
489
+ },
490
+ "provenance": {
491
+ "type": "array",
492
+ "minItems": 1,
493
+ "items": {
494
+ "type": "object"
495
+ }
496
+ }
497
+ }
498
+ },
499
+ "operationSpan": {
500
+ "type": "object",
501
+ "required": [
502
+ "file",
503
+ "start",
504
+ "end"
505
+ ],
506
+ "additionalProperties": false,
507
+ "properties": {
508
+ "file": {
509
+ "type": "string"
510
+ },
511
+ "start": {
512
+ "type": "integer",
513
+ "minimum": 0
514
+ },
515
+ "end": {
516
+ "type": "integer",
517
+ "minimum": 1
518
+ }
519
+ }
520
+ },
521
+ "receiver": {
522
+ "type": "object",
523
+ "required": [
524
+ "expression",
525
+ "ownerSymbol",
526
+ "targetSymbol",
527
+ "kind",
528
+ "resolution",
529
+ "reason"
530
+ ],
531
+ "additionalProperties": false,
532
+ "properties": {
533
+ "expression": {
534
+ "type": "string"
535
+ },
536
+ "ownerSymbol": {
537
+ "type": [
538
+ "string",
539
+ "null"
540
+ ]
541
+ },
542
+ "targetSymbol": {
543
+ "type": [
544
+ "string",
545
+ "null"
546
+ ]
547
+ },
548
+ "kind": {
549
+ "enum": [
550
+ "query-client",
551
+ "query-cache",
552
+ "unknown"
553
+ ]
554
+ },
555
+ "resolution": {
556
+ "enum": [
557
+ "resolved",
558
+ "unresolved"
559
+ ]
560
+ },
561
+ "reason": {
562
+ "enum": [
563
+ null,
564
+ "unsupported-client"
565
+ ]
566
+ }
567
+ }
568
+ },
569
+ "effect": {
570
+ "type": "object",
571
+ "required": [
572
+ "kind",
573
+ "scope"
574
+ ],
575
+ "additionalProperties": false,
576
+ "properties": {
577
+ "kind": {
578
+ "enum": [
579
+ "invalidate",
580
+ "refetch",
581
+ "reset",
582
+ "remove",
583
+ "update",
584
+ "clear-query-cache",
585
+ "clear-mutation-cache"
586
+ ]
587
+ },
588
+ "scope": {
589
+ "type": "string"
590
+ }
591
+ }
592
+ },
593
+ "cacheOperationMaterial": {
594
+ "type": "object",
595
+ "required": [
596
+ "namespace",
597
+ "version",
598
+ "sourceRef",
599
+ "receiver",
600
+ "operation",
601
+ "keyId",
602
+ "keyMatch",
603
+ "exact",
604
+ "predicate",
605
+ "filters",
606
+ "effects"
607
+ ],
608
+ "additionalProperties": false,
609
+ "properties": {
610
+ "namespace": {
611
+ "const": "coherence/cache-operation"
612
+ },
613
+ "version": {
614
+ "const": 1
615
+ },
616
+ "sourceRef": {
617
+ "$ref": "#/$defs/operationSpan"
618
+ },
619
+ "receiver": {
620
+ "$ref": "#/$defs/receiver"
621
+ },
622
+ "operation": {
623
+ "enum": [
624
+ "invalidateQueries",
625
+ "refetchQueries",
626
+ "resetQueries",
627
+ "removeQueries",
628
+ "setQueryData",
629
+ "setQueriesData",
630
+ "clear"
631
+ ]
632
+ },
633
+ "keyId": {
634
+ "type": [
635
+ "string",
636
+ "null"
637
+ ],
638
+ "pattern": "^[a-f0-9]{64}$"
639
+ },
640
+ "keyMatch": {
641
+ "enum": [
642
+ "all",
643
+ "prefix",
644
+ "exact",
645
+ "unknown"
646
+ ]
647
+ },
648
+ "exact": {
649
+ "type": [
650
+ "boolean",
651
+ "null"
652
+ ]
653
+ },
654
+ "predicate": {
655
+ "anyOf": [
656
+ {
657
+ "type": "null"
658
+ },
659
+ {
660
+ "$ref": "#/$defs/term"
661
+ }
662
+ ]
663
+ },
664
+ "filters": {
665
+ "type": "object",
666
+ "additionalProperties": false,
667
+ "properties": {
668
+ "type": {},
669
+ "stale": {},
670
+ "fetchStatus": {},
671
+ "refetchType": {}
672
+ }
673
+ },
674
+ "effects": {
675
+ "type": "array",
676
+ "items": {
677
+ "$ref": "#/$defs/effect"
678
+ }
679
+ }
680
+ },
681
+ "allOf": [
682
+ {
683
+ "if": {
684
+ "properties": {
685
+ "operation": {
686
+ "const": "clear"
687
+ }
688
+ }
689
+ },
690
+ "then": {
691
+ "properties": {
692
+ "effects": {
693
+ "items": {
694
+ "properties": {
695
+ "kind": {
696
+ "enum": [
697
+ "clear-query-cache",
698
+ "clear-mutation-cache"
699
+ ]
700
+ }
701
+ }
702
+ }
703
+ }
704
+ }
705
+ },
706
+ "else": {
707
+ "properties": {
708
+ "effects": {
709
+ "items": {
710
+ "properties": {
711
+ "kind": {
712
+ "enum": [
713
+ "invalidate",
714
+ "refetch",
715
+ "reset",
716
+ "remove",
717
+ "update"
718
+ ]
719
+ }
720
+ }
721
+ }
722
+ }
723
+ }
724
+ }
725
+ }
726
+ ]
727
+ },
728
+ "cacheOperation": {
729
+ "type": "object",
730
+ "required": [
731
+ "id",
732
+ "material",
733
+ "provenance"
734
+ ],
735
+ "additionalProperties": false,
736
+ "properties": {
737
+ "id": {
738
+ "$ref": "#/$defs/id"
739
+ },
740
+ "material": {
741
+ "$ref": "#/$defs/cacheOperationMaterial"
742
+ },
743
+ "provenance": {
744
+ "type": "array",
745
+ "minItems": 1,
746
+ "items": {
747
+ "type": "object"
748
+ }
749
+ }
750
+ }
751
+ },
752
+ "operationReadPair": {
753
+ "type": "object",
754
+ "required": [
755
+ "id",
756
+ "operationId",
757
+ "readId",
758
+ "keyCoverage",
759
+ "effectCoverage",
760
+ "mandatory"
761
+ ],
762
+ "additionalProperties": false,
763
+ "properties": {
764
+ "id": {
765
+ "type": "string",
766
+ "pattern": "^[a-f0-9]{64}:sha256:[a-f0-9]{64}$"
767
+ },
768
+ "operationId": {
769
+ "$ref": "#/$defs/id"
770
+ },
771
+ "readId": {
772
+ "$ref": "#/$defs/evidenceId"
773
+ },
774
+ "keyCoverage": {
775
+ "enum": [
776
+ "covered",
777
+ "not-covered",
778
+ "unresolved"
779
+ ]
780
+ },
781
+ "effectCoverage": {
782
+ "enum": [
783
+ "covered",
784
+ "not-covered",
785
+ "unresolved"
786
+ ]
787
+ },
788
+ "mandatory": {
789
+ "type": "boolean"
790
+ }
791
+ }
792
+ },
793
+ "coverage": {
794
+ "type": "object",
795
+ "required": [
796
+ "status",
797
+ "reason",
798
+ "counts",
799
+ "unresolved"
800
+ ],
801
+ "additionalProperties": false,
802
+ "properties": {
803
+ "status": {
804
+ "enum": [
805
+ "measured",
806
+ "partial",
807
+ "unmeasured"
808
+ ]
809
+ },
810
+ "reason": {
811
+ "type": [
812
+ "string",
813
+ "null"
814
+ ]
815
+ },
816
+ "counts": {
817
+ "type": "object",
818
+ "required": [
819
+ "ownershipEdgesDiscovered",
820
+ "ownershipEdgesResolved",
821
+ "ownershipEdgesUnresolved",
822
+ "ambiguousMutationOccurrences",
823
+ "keysDiscovered",
824
+ "keysResolved",
825
+ "keysUnresolved",
826
+ "operationsDiscovered",
827
+ "operationsResolved",
828
+ "operationsUnresolved",
829
+ "operationReadPairsDiscovered",
830
+ "operationReadPairsCovered",
831
+ "operationReadPairsNotCovered",
832
+ "operationReadPairsUnresolved"
833
+ ],
834
+ "additionalProperties": {
835
+ "type": "integer",
836
+ "minimum": 0
837
+ },
838
+ "properties": {
839
+ "ownershipEdgesDiscovered": {
840
+ "type": "integer",
841
+ "minimum": 0
842
+ },
843
+ "ownershipEdgesResolved": {
844
+ "type": "integer",
845
+ "minimum": 0
846
+ },
847
+ "ownershipEdgesUnresolved": {
848
+ "type": "integer",
849
+ "minimum": 0
850
+ },
851
+ "ambiguousMutationOccurrences": {
852
+ "type": "integer",
853
+ "minimum": 0
854
+ },
855
+ "keysDiscovered": {
856
+ "type": "integer",
857
+ "minimum": 0
858
+ },
859
+ "keysResolved": {
860
+ "type": "integer",
861
+ "minimum": 0
862
+ },
863
+ "keysUnresolved": {
864
+ "type": "integer",
865
+ "minimum": 0
866
+ },
867
+ "operationsDiscovered": {
868
+ "type": "integer",
869
+ "minimum": 0
870
+ },
871
+ "operationsResolved": {
872
+ "type": "integer",
873
+ "minimum": 0
874
+ },
875
+ "operationsUnresolved": {
876
+ "type": "integer",
877
+ "minimum": 0
878
+ },
879
+ "operationReadPairsDiscovered": {
880
+ "type": "integer",
881
+ "minimum": 0
882
+ },
883
+ "operationReadPairsCovered": {
884
+ "type": "integer",
885
+ "minimum": 0
886
+ },
887
+ "operationReadPairsNotCovered": {
888
+ "type": "integer",
889
+ "minimum": 0
890
+ },
891
+ "operationReadPairsUnresolved": {
892
+ "type": "integer",
893
+ "minimum": 0
894
+ }
895
+ }
896
+ },
897
+ "unjoinedWriterFamilies": {
898
+ "description": "The endpoint families of every `family-join` row, deduplicated and sorted. Present on every current (v4) document; absent from legacy v3, which predates the join. A non-empty list is why `status` is `partial` rather than `measured`.",
899
+ "type": "array",
900
+ "items": {
901
+ "type": "string",
902
+ "minLength": 1
903
+ }
904
+ },
905
+ "unresolved": {
906
+ "type": "array",
907
+ "items": {
908
+ "type": "object",
909
+ "required": [
910
+ "id",
911
+ "file",
912
+ "line",
913
+ "kind",
914
+ "reason"
915
+ ],
916
+ "additionalProperties": false,
917
+ "properties": {
918
+ "id": {
919
+ "type": "string"
920
+ },
921
+ "file": {
922
+ "type": "string"
923
+ },
924
+ "line": {
925
+ "type": "integer",
926
+ "minimum": 0
927
+ },
928
+ "kind": {
929
+ "description": "`family-join` is a RESOLVED write whose family no surface reads. It is deliberately not `write`: identity.mjs ledgers `write` as exactly the writes that could not be resolved, so a resolved write listed there would both trip that ledger and overstate the unknown write surface. What is unresolved is the join to a reader surface, so the row names that relation.",
930
+ "enum": [
931
+ "read",
932
+ "write",
933
+ "family-join",
934
+ "ownership",
935
+ "cache-key",
936
+ "cache-operation"
937
+ ]
938
+ },
939
+ "family": {
940
+ "description": "The endpoint family of a `family-join` row. Only that kind carries one.",
941
+ "type": "string",
942
+ "minLength": 1
943
+ },
944
+ "reason": {
945
+ "type": "string"
946
+ },
947
+ "span": {
948
+ "$ref": "#/$defs/sourceSpan"
949
+ }
950
+ }
951
+ }
952
+ }
953
+ }
954
+ },
955
+ "familyMaterial": {
956
+ "type": "object",
957
+ "required": [
958
+ "namespace",
959
+ "version",
960
+ "endpointFamily"
961
+ ],
962
+ "additionalProperties": false,
963
+ "properties": {
964
+ "namespace": {
965
+ "const": "coherence/family"
966
+ },
967
+ "version": {
968
+ "const": 1
969
+ },
970
+ "endpointFamily": {
971
+ "type": "string"
972
+ }
973
+ }
974
+ },
975
+ "family": {
976
+ "type": "object",
977
+ "required": [
978
+ "id",
979
+ "material",
980
+ "family",
981
+ "mutationIds",
982
+ "readIds",
983
+ "surfaceIds",
984
+ "keyTerms",
985
+ "invalidations",
986
+ "invalidationsUnresolved",
987
+ "readsUnresolvedKey"
988
+ ],
989
+ "additionalProperties": false,
990
+ "properties": {
991
+ "id": {
992
+ "$ref": "#/$defs/id"
993
+ },
994
+ "material": {
995
+ "$ref": "#/$defs/familyMaterial"
996
+ },
997
+ "family": {
998
+ "type": "string"
999
+ },
1000
+ "mutationIds": {
1001
+ "type": "array",
1002
+ "items": {
1003
+ "$ref": "#/$defs/id"
1004
+ }
1005
+ },
1006
+ "readIds": {
1007
+ "type": "array",
1008
+ "items": {
1009
+ "$ref": "#/$defs/evidenceId"
1010
+ }
1011
+ },
1012
+ "surfaceIds": {
1013
+ "type": "array",
1014
+ "items": {
1015
+ "$ref": "#/$defs/id"
1016
+ }
1017
+ },
1018
+ "keyTerms": {
1019
+ "type": "array",
1020
+ "items": {
1021
+ "type": "string"
1022
+ }
1023
+ },
1024
+ "invalidations": {
1025
+ "type": "integer",
1026
+ "minimum": 0
1027
+ },
1028
+ "invalidationsUnresolved": {
1029
+ "type": "integer",
1030
+ "minimum": 0
1031
+ },
1032
+ "readsUnresolvedKey": {
1033
+ "type": "integer",
1034
+ "minimum": 0
1035
+ }
1036
+ }
1037
+ },
1038
+ "read": {
1039
+ "type": "object",
1040
+ "required": [
1041
+ "id",
1042
+ "keyId",
1043
+ "file",
1044
+ "line",
1045
+ "pattern",
1046
+ "endpoint",
1047
+ "family",
1048
+ "confidence"
1049
+ ],
1050
+ "additionalProperties": false,
1051
+ "properties": {
1052
+ "id": {
1053
+ "$ref": "#/$defs/evidenceId"
1054
+ },
1055
+ "keyId": {
1056
+ "$ref": "#/$defs/id"
1057
+ },
1058
+ "file": {
1059
+ "type": "string"
1060
+ },
1061
+ "line": {
1062
+ "type": "integer",
1063
+ "minimum": 0
1064
+ },
1065
+ "span": {
1066
+ "description": "null when no source call site could be anchored (e.g. an inventory-derived query with no matching literal call) -- identity then falls back to {file,line}, see identity.mjs stableEvidenceId callers.",
1067
+ "anyOf": [
1068
+ { "$ref": "#/$defs/sourceSpan" },
1069
+ { "type": "null" }
1070
+ ]
1071
+ },
1072
+ "pattern": {
1073
+ "$ref": "#/$defs/pattern"
1074
+ },
1075
+ "endpoint": {
1076
+ "type": [
1077
+ "string",
1078
+ "null"
1079
+ ]
1080
+ },
1081
+ "family": {
1082
+ "type": [
1083
+ "string",
1084
+ "null"
1085
+ ]
1086
+ },
1087
+ "familySource": {
1088
+ "description": "WHICH join produced `family`: `declaration` is a repo-declared entity alias (a claim, not measured evidence -- analyze.mjs downgrades any candidate resting on one to `uncertain`), `endpoint` is derived from the endpoint itself, `unresolved` means no family could be attributed. Present on every current row; absent from legacy v3, which predates entity aliases.",
1089
+ "enum": [
1090
+ "declaration",
1091
+ "endpoint",
1092
+ "unresolved"
1093
+ ]
1094
+ },
1095
+ "confidence": {
1096
+ "enum": [
1097
+ "exact",
1098
+ "resolved",
1099
+ "coarse",
1100
+ "unresolved"
1101
+ ]
1102
+ }
1103
+ }
1104
+ },
1105
+ "mutationMaterial": {
1106
+ "type": "object",
1107
+ "required": [
1108
+ "namespace",
1109
+ "version",
1110
+ "sourceRef",
1111
+ "endpoint"
1112
+ ],
1113
+ "additionalProperties": false,
1114
+ "properties": {
1115
+ "namespace": {
1116
+ "const": "coherence/mutation"
1117
+ },
1118
+ "version": {
1119
+ "const": 1
1120
+ },
1121
+ "sourceRef": {
1122
+ "$ref": "#/$defs/sourceRef"
1123
+ },
1124
+ "endpoint": {
1125
+ "type": [
1126
+ "string",
1127
+ "null"
1128
+ ]
1129
+ }
1130
+ }
1131
+ },
1132
+ "mutation": {
1133
+ "type": "object",
1134
+ "required": [
1135
+ "id",
1136
+ "material",
1137
+ "file",
1138
+ "line",
1139
+ "endpoint",
1140
+ "family",
1141
+ "writes",
1142
+ "operationIds",
1143
+ "confidence"
1144
+ ],
1145
+ "additionalProperties": false,
1146
+ "properties": {
1147
+ "id": {
1148
+ "$ref": "#/$defs/id"
1149
+ },
1150
+ "material": {
1151
+ "$ref": "#/$defs/mutationMaterial"
1152
+ },
1153
+ "file": {
1154
+ "type": "string"
1155
+ },
1156
+ "line": {
1157
+ "type": "integer",
1158
+ "minimum": 0
1159
+ },
1160
+ "hook": {
1161
+ "type": [
1162
+ "string",
1163
+ "null"
1164
+ ]
1165
+ },
1166
+ "endpoint": {
1167
+ "type": [
1168
+ "string",
1169
+ "null"
1170
+ ]
1171
+ },
1172
+ "family": {
1173
+ "type": [
1174
+ "string",
1175
+ "null"
1176
+ ]
1177
+ },
1178
+ "familySource": {
1179
+ "description": "WHICH join produced `family`: `declaration` is a repo-declared entity alias (a claim, not measured evidence -- analyze.mjs downgrades any candidate resting on one to `uncertain`), `endpoint` is derived from the endpoint itself, `unresolved` means no family could be attributed. Present on every current row; absent from legacy v3, which predates entity aliases.",
1180
+ "enum": [
1181
+ "declaration",
1182
+ "endpoint",
1183
+ "unresolved"
1184
+ ]
1185
+ },
1186
+ "writes": {
1187
+ "type": "array",
1188
+ "items": {
1189
+ "type": "object",
1190
+ "required": [
1191
+ "pattern"
1192
+ ],
1193
+ "additionalProperties": false,
1194
+ "properties": {
1195
+ "pattern": {
1196
+ "$ref": "#/$defs/pattern"
1197
+ }
1198
+ }
1199
+ }
1200
+ },
1201
+ "operationIds": {
1202
+ "type": "array",
1203
+ "items": {
1204
+ "$ref": "#/$defs/id"
1205
+ }
1206
+ },
1207
+ "confidence": {
1208
+ "enum": [
1209
+ "exact",
1210
+ "resolved",
1211
+ "coarse",
1212
+ "unresolved"
1213
+ ]
1214
+ }
1215
+ }
1216
+ },
1217
+ "surfaceMaterial": {
1218
+ "type": "object",
1219
+ "required": [
1220
+ "namespace",
1221
+ "version",
1222
+ "route",
1223
+ "component",
1224
+ "sourceRef"
1225
+ ],
1226
+ "additionalProperties": false,
1227
+ "properties": {
1228
+ "namespace": {
1229
+ "const": "coherence/surface"
1230
+ },
1231
+ "version": {
1232
+ "const": 1
1233
+ },
1234
+ "route": {
1235
+ "type": "string"
1236
+ },
1237
+ "component": {
1238
+ "type": [
1239
+ "string",
1240
+ "null"
1241
+ ]
1242
+ },
1243
+ "sourceRef": {
1244
+ "$ref": "#/$defs/sourceRef"
1245
+ }
1246
+ }
1247
+ },
1248
+ "surface": {
1249
+ "type": "object",
1250
+ "required": [
1251
+ "id",
1252
+ "material",
1253
+ "route",
1254
+ "file",
1255
+ "component",
1256
+ "readIds",
1257
+ "families",
1258
+ "confidence",
1259
+ "kind"
1260
+ ],
1261
+ "additionalProperties": false,
1262
+ "properties": {
1263
+ "id": {
1264
+ "$ref": "#/$defs/id"
1265
+ },
1266
+ "material": {
1267
+ "$ref": "#/$defs/surfaceMaterial"
1268
+ },
1269
+ "route": {
1270
+ "type": "string"
1271
+ },
1272
+ "file": {
1273
+ "type": [
1274
+ "string",
1275
+ "null"
1276
+ ]
1277
+ },
1278
+ "component": {
1279
+ "type": [
1280
+ "string",
1281
+ "null"
1282
+ ]
1283
+ },
1284
+ "readIds": {
1285
+ "type": "array",
1286
+ "items": {
1287
+ "$ref": "#/$defs/evidenceId"
1288
+ }
1289
+ },
1290
+ "families": {
1291
+ "type": "array",
1292
+ "items": {
1293
+ "type": "string"
1294
+ }
1295
+ },
1296
+ "confidence": {
1297
+ "enum": [
1298
+ "exact",
1299
+ "resolved",
1300
+ "coarse",
1301
+ "unresolved"
1302
+ ]
1303
+ },
1304
+ "kind": {
1305
+ "enum": [
1306
+ "route",
1307
+ "component",
1308
+ "modal",
1309
+ "drawer",
1310
+ "tab",
1311
+ "wizard-step",
1312
+ "embedded-widget"
1313
+ ]
1314
+ }
1315
+ }
1316
+ },
1317
+ "ownershipEdge": {
1318
+ "type": "object",
1319
+ "required": [
1320
+ "surfaceId",
1321
+ "readId",
1322
+ "confidence",
1323
+ "resolution",
1324
+ "reason",
1325
+ "source",
1326
+ "provenance",
1327
+ "path"
1328
+ ],
1329
+ "additionalProperties": false,
1330
+ "properties": {
1331
+ "surfaceId": {
1332
+ "$ref": "#/$defs/id"
1333
+ },
1334
+ "readId": {
1335
+ "type": [
1336
+ "string",
1337
+ "null"
1338
+ ]
1339
+ },
1340
+ "confidence": {
1341
+ "enum": [
1342
+ "resolved",
1343
+ "unresolved"
1344
+ ]
1345
+ },
1346
+ "resolution": {
1347
+ "enum": [
1348
+ "resolved",
1349
+ "unresolved"
1350
+ ]
1351
+ },
1352
+ "reason": {
1353
+ "enum": [
1354
+ null,
1355
+ "dynamic-import",
1356
+ "namespace-spread",
1357
+ "export-star",
1358
+ "computed-member",
1359
+ "ambiguous-alias",
1360
+ "unresolved-module",
1361
+ "unsupported-syntax"
1362
+ ]
1363
+ },
1364
+ "source": {
1365
+ "$ref": "#/$defs/sourceSpan"
1366
+ },
1367
+ "provenance": {
1368
+ "type": "object",
1369
+ "required": [
1370
+ "adapter",
1371
+ "method"
1372
+ ],
1373
+ "additionalProperties": false,
1374
+ "properties": {
1375
+ "adapter": {
1376
+ "const": "structural-js"
1377
+ },
1378
+ "method": {
1379
+ "const": "symbol-traversal"
1380
+ }
1381
+ }
1382
+ },
1383
+ "path": {
1384
+ "type": "array",
1385
+ "minItems": 2,
1386
+ "maxItems": 26,
1387
+ "items": {
1388
+ "type": "string",
1389
+ "minLength": 1
1390
+ }
1391
+ }
1392
+ },
1393
+ "oneOf": [
1394
+ {
1395
+ "properties": {
1396
+ "resolution": {
1397
+ "const": "resolved"
1398
+ },
1399
+ "confidence": {
1400
+ "const": "resolved"
1401
+ },
1402
+ "readId": {
1403
+ "$ref": "#/$defs/evidenceId"
1404
+ },
1405
+ "reason": {
1406
+ "const": null
1407
+ }
1408
+ }
1409
+ },
1410
+ {
1411
+ "properties": {
1412
+ "resolution": {
1413
+ "const": "unresolved"
1414
+ },
1415
+ "confidence": {
1416
+ "const": "unresolved"
1417
+ },
1418
+ "readId": {
1419
+ "const": null
1420
+ },
1421
+ "reason": {
1422
+ "enum": [
1423
+ "dynamic-import",
1424
+ "namespace-spread",
1425
+ "export-star",
1426
+ "computed-member",
1427
+ "ambiguous-alias",
1428
+ "unresolved-module",
1429
+ "unsupported-syntax"
1430
+ ]
1431
+ }
1432
+ }
1433
+ }
1434
+ ]
1435
+ },
1436
+ "candidate": {
1437
+ "type": "object",
1438
+ "required": [
1439
+ "kind",
1440
+ "severity",
1441
+ "confirmed",
1442
+ "mutationId",
1443
+ "source",
1444
+ "family",
1445
+ "readIds",
1446
+ "unresolvedReadIds",
1447
+ "surfaceIds",
1448
+ "routes",
1449
+ "components",
1450
+ "coverage",
1451
+ "rootCauseId"
1452
+ ],
1453
+ "additionalProperties": false,
1454
+ "properties": {
1455
+ "kind": {
1456
+ "enum": [
1457
+ "coherence.no-invalidation-candidate",
1458
+ "coherence.partial-invalidation-candidate"
1459
+ ]
1460
+ },
1461
+ "severity": {
1462
+ "const": "P3"
1463
+ },
1464
+ "confirmed": {
1465
+ "const": false
1466
+ },
1467
+ "mutationId": {
1468
+ "$ref": "#/$defs/id"
1469
+ },
1470
+ "source": {
1471
+ "$ref": "#/$defs/sourceRef"
1472
+ },
1473
+ "family": {
1474
+ "type": [
1475
+ "string",
1476
+ "null"
1477
+ ]
1478
+ },
1479
+ "readIds": {
1480
+ "type": "array",
1481
+ "items": {
1482
+ "$ref": "#/$defs/evidenceId"
1483
+ }
1484
+ },
1485
+ "unresolvedReadIds": {
1486
+ "type": "array",
1487
+ "items": {
1488
+ "$ref": "#/$defs/evidenceId"
1489
+ }
1490
+ },
1491
+ "surfaceIds": {
1492
+ "type": "array",
1493
+ "items": {
1494
+ "$ref": "#/$defs/id"
1495
+ }
1496
+ },
1497
+ "routes": {
1498
+ "type": "array",
1499
+ "items": {
1500
+ "type": "string"
1501
+ }
1502
+ },
1503
+ "components": {
1504
+ "type": "array",
1505
+ "items": {
1506
+ "type": "string"
1507
+ }
1508
+ },
1509
+ "coverage": {
1510
+ "enum": [
1511
+ "measured",
1512
+ "partial",
1513
+ "unmeasured"
1514
+ ]
1515
+ },
1516
+ "rootCauseId": {
1517
+ "type": "string",
1518
+ "pattern": "^crc:[a-f0-9]{64}$"
1519
+ },
1520
+ "waived": {
1521
+ "type": "boolean"
1522
+ }
1523
+ }
1524
+ },
1525
+ "moduleRef": {
1526
+ "type": "object",
1527
+ "required": [
1528
+ "specifier",
1529
+ "kind",
1530
+ "resolvedFile",
1531
+ "span"
1532
+ ],
1533
+ "additionalProperties": false,
1534
+ "properties": {
1535
+ "specifier": {
1536
+ "type": "string",
1537
+ "minLength": 1
1538
+ },
1539
+ "kind": {
1540
+ "enum": [
1541
+ "static-import",
1542
+ "dynamic-import",
1543
+ "named-reexport",
1544
+ "export-star"
1545
+ ]
1546
+ },
1547
+ "resolvedFile": {
1548
+ "type": [
1549
+ "string",
1550
+ "null"
1551
+ ]
1552
+ },
1553
+ "span": {
1554
+ "$ref": "#/$defs/sourceSpan"
1555
+ }
1556
+ }
1557
+ },
1558
+ "unit": {
1559
+ "type": "object",
1560
+ "required": [
1561
+ "file",
1562
+ "imports",
1563
+ "moduleRefs"
1564
+ ],
1565
+ "additionalProperties": false,
1566
+ "properties": {
1567
+ "file": {
1568
+ "type": "string"
1569
+ },
1570
+ "imports": {
1571
+ "type": "array",
1572
+ "items": {
1573
+ "type": "string"
1574
+ }
1575
+ },
1576
+ "moduleRefs": {
1577
+ "type": "array",
1578
+ "items": {
1579
+ "$ref": "#/$defs/moduleRef"
1580
+ }
1581
+ }
1582
+ }
1583
+ }
1584
+ }
1585
+ }