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,92 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://frontend-verify.dev/schemas/stability.schema.json",
4
+ "title": "stability.json",
5
+ "description": "lib/qa/commands/stability.mjs + lib/qa/stability.mjs classify() — N serial sweeps reduced to stable/intermittent/ghost per finding.",
6
+ "type": "object",
7
+ "required": ["id", "at", "repo", "base", "n", "status", "exit", "valid", "denominators", "findings", "stable", "intermittent", "ghost", "gating"],
8
+ "additionalProperties": true,
9
+ "properties": {
10
+ "id": { "type": "string", "minLength": 1 },
11
+ "at": { "type": "string" },
12
+ "repo": { "type": "string" },
13
+ "base": { "type": "string" },
14
+ "n": { "type": "integer", "minimum": 1 },
15
+ "threshold": { "type": "integer", "minimum": 1 },
16
+ "status": { "type": "string", "enum": ["ok", "invalid"] },
17
+ "exit": { "type": "integer", "enum": [0, 1, 2] },
18
+ "valid": { "type": "boolean" },
19
+ "invalidReasons": { "type": "array", "items": { "type": "string" } },
20
+ "denominators": {
21
+ "type": "object",
22
+ "required": ["runs", "routes", "cells"],
23
+ "additionalProperties": true,
24
+ "properties": {
25
+ "runs": { "type": "integer", "minimum": 0 },
26
+ "routes": { "type": "integer", "minimum": 0 },
27
+ "cells": { "type": "integer", "minimum": 0 }
28
+ }
29
+ },
30
+ "findings": { "type": "array", "items": { "$ref": "#/$defs/stabilityFinding" } },
31
+ "gatingFindings": { "type": "array", "items": { "$ref": "#/$defs/stabilityFinding" } },
32
+ "needsReproduction": { "type": "array", "items": { "$ref": "#/$defs/stabilityFinding" } },
33
+ "stable": { "type": "integer", "minimum": 0 },
34
+ "intermittent": { "type": "integer", "minimum": 0 },
35
+ "ghost": { "type": "integer", "minimum": 0 },
36
+ "gating": { "type": "boolean" },
37
+ "surfaceDrift": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "object",
41
+ "required": ["route", "samples", "distinct"],
42
+ "additionalProperties": true,
43
+ "properties": {
44
+ "route": { "type": "string" },
45
+ "role": { "type": ["string", "null"] },
46
+ "width": { "type": ["integer", "null"] },
47
+ "samples": { "type": "integer", "minimum": 0 },
48
+ "distinct": { "type": "integer", "minimum": 0 }
49
+ }
50
+ }
51
+ },
52
+ "metrics": {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "object",
56
+ "required": ["route", "metric", "min", "median", "max", "samples", "envSensitive"],
57
+ "additionalProperties": true,
58
+ "properties": {
59
+ "route": { "type": "string" },
60
+ "role": { "type": ["string", "null"] },
61
+ "width": { "type": ["integer", "null"] },
62
+ "metric": { "type": "string" },
63
+ "min": { "type": "number" },
64
+ "median": { "type": "number" },
65
+ "max": { "type": "number" },
66
+ "samples": { "type": "integer", "minimum": 0 },
67
+ "envSensitive": { "type": "boolean" }
68
+ }
69
+ }
70
+ }
71
+ },
72
+ "$defs": {
73
+ "stabilityFinding": {
74
+ "type": "object",
75
+ "required": ["fid", "k", "n", "class", "gating", "kind", "severity", "detail"],
76
+ "additionalProperties": true,
77
+ "properties": {
78
+ "fid": { "type": "string", "minLength": 1 },
79
+ "k": { "type": "integer", "minimum": 0 },
80
+ "n": { "type": "integer", "minimum": 1 },
81
+ "class": { "type": "string", "enum": ["stable", "intermittent", "ghost"] },
82
+ "gating": { "type": "boolean" },
83
+ "phase": { "type": ["string", "null"] },
84
+ "kind": { "type": "string", "minLength": 1 },
85
+ "severity": { "type": "string", "enum": ["P0", "P1", "P2", "P3"] },
86
+ "route": { "type": ["string", "null"] },
87
+ "at": { "type": ["string", "null"] },
88
+ "detail": { "type": "string" }
89
+ }
90
+ }
91
+ }
92
+ }
@@ -0,0 +1,239 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://frontend-verify.dev/schemas/sweep.schema.json",
4
+ "title": "sweep.json",
5
+ "description": "bin/sweep.mjs — the runtime sweep report: cells, findings, and the self-grading integrity gate.",
6
+ "type": "object",
7
+ "required": ["base", "width", "started", "finished", "routes", "unreached", "roles", "summary", "integrity", "resume"],
8
+ "additionalProperties": true,
9
+ "properties": {
10
+ "base": { "type": "string" },
11
+ "atlasVersion": { "type": "integer", "enum": [1, 2] },
12
+ "width": { "type": "integer" },
13
+ "started": { "type": "string" },
14
+ "finished": { "type": "string" },
15
+ "lane": { "type": "string", "enum": ["source", "public-runtime", "mock-contract", "real-integration", "mfa-integration"] },
16
+ "identities": { "type": "array", "items": { "$ref": "#/$defs/identityRecord" } },
17
+ "aborted": { "type": ["string", "boolean", "null"] },
18
+ "routes": { "type": "array", "items": { "$ref": "#/$defs/routeRecord" } },
19
+ "unreached": { "type": "array", "items": { "$ref": "#/$defs/unreachedEntry" } },
20
+ "unowned": { "type": "array", "items": { "type": "string" } },
21
+ "roles": { "type": "array", "items": { "$ref": "#/$defs/role" } },
22
+ "summary": {
23
+ "type": "object",
24
+ "required": ["routes", "routesRequested", "routesReached", "routesUnreached", "routesUnowned", "roles", "findings"],
25
+ "additionalProperties": true,
26
+ "properties": {
27
+ "routes": { "type": "integer", "minimum": 0 },
28
+ "routesRequested": { "type": "integer", "minimum": 0 },
29
+ "routesReached": { "type": "integer", "minimum": 0 },
30
+ "cellsRequested": { "type": "integer", "minimum": 0 },
31
+ "cellsReached": { "type": "integer", "minimum": 0 },
32
+ "routesDynamicSkipped": { "type": "integer", "minimum": 0 },
33
+ "routesInInventory": { "type": "integer", "minimum": 0 },
34
+ "routesUnreached": { "type": "integer", "minimum": 0 },
35
+ "routesUnowned": { "type": "integer", "minimum": 0 },
36
+ "roles": { "type": "array", "items": { "type": "string" } },
37
+ "findings": { "type": "integer", "minimum": 0 },
38
+ "P0": { "type": "integer", "minimum": 0 },
39
+ "P1": { "type": "integer", "minimum": 0 },
40
+ "P2": { "type": "integer", "minimum": 0 },
41
+ "P3": { "type": "integer", "minimum": 0 }
42
+ }
43
+ },
44
+ "integrity": {
45
+ "type": "object",
46
+ "required": ["cellsPlanned", "cellsMeasured", "bouncedToLogin", "cellsBelowTextFloor", "distinctSurfaces", "distinctRatio", "ok", "failed"],
47
+ "additionalProperties": true,
48
+ "properties": {
49
+ "cellsPlanned": { "type": "integer", "minimum": 0 },
50
+ "cellsMeasured": { "type": "integer", "minimum": 0 },
51
+ "bouncedToLogin": { "type": "integer", "minimum": 0 },
52
+ "cellsBelowTextFloor": { "type": "integer", "minimum": 0 },
53
+ "distinctSurfaces": { "type": "integer", "minimum": 0 },
54
+ "distinctRatio": { "type": ["number", "null"], "minimum": 0 },
55
+ "maxRoutesPerFingerprint": { "type": "integer", "minimum": 0 },
56
+ "lanes": {
57
+ "type": "array",
58
+ "items": {
59
+ "type": "object",
60
+ "required": ["role", "width", "cells", "distinct", "ratio", "largestCluster", "collapsed"],
61
+ "properties": {
62
+ "role": { "type": "string" },
63
+ "width": { "type": ["integer", "null"] },
64
+ "cells": { "type": "integer", "minimum": 0 },
65
+ "distinct": { "type": "integer", "minimum": 0 },
66
+ "ratio": { "type": "number", "minimum": 0 },
67
+ "largestCluster": { "type": "integer", "minimum": 0 },
68
+ "collapsed": { "type": "boolean" }
69
+ }
70
+ }
71
+ },
72
+ "aborted": { "type": "boolean" },
73
+ "share": { "type": "number" },
74
+ "ok": { "type": "boolean" },
75
+ "failed": { "type": "array", "items": { "type": "string" } }
76
+ }
77
+ },
78
+ "resume": {
79
+ "type": "object",
80
+ "required": ["requested", "compatible", "reused", "rejected", "reason"],
81
+ "additionalProperties": true,
82
+ "properties": {
83
+ "requested": { "type": "boolean" },
84
+ "compatible": { "type": ["boolean", "null"] },
85
+ "reused": { "type": "integer", "minimum": 0 },
86
+ "rejected": { "type": "integer", "minimum": 0 },
87
+ "reason": { "type": "string" },
88
+ "rejectedReasons": { "type": "object", "additionalProperties": { "type": "integer", "minimum": 0 } },
89
+ "sourceIdentity": {
90
+ "type": "object",
91
+ "additionalProperties": true,
92
+ "properties": { "complete": { "type": "boolean" }, "reason": { "type": "string" } }
93
+ },
94
+ "signature": { "type": ["string", "null"] }
95
+ }
96
+ },
97
+ "warm": {
98
+ "type": "object",
99
+ "additionalProperties": true,
100
+ "properties": {
101
+ "requested": { "type": "integer", "minimum": 0 },
102
+ "compiled": { "type": "integer", "minimum": 0 },
103
+ "seconds": { "type": "number", "minimum": 0 }
104
+ }
105
+ },
106
+ "serviceWorker": { "type": "object", "additionalProperties": { "type": "string" } },
107
+ "states": {
108
+ "type": "object",
109
+ "additionalProperties": true,
110
+ "properties": {
111
+ "routes": { "type": "integer", "minimum": 0 },
112
+ "kinds": { "type": "array", "items": { "type": "string" } },
113
+ "cells": { "type": "integer", "minimum": 0 },
114
+ "declaredReadOnlyPosts": { "description": "How many POST paths verify.read-only.json declared read-only, present only when that declaration exists. A declared path is admitted as a forced-state target, so it can make a route eligible that had no interceptable GET/HEAD traffic.", "type": "integer", "minimum": 1 },
115
+ "ineligible": {
116
+ "description": "Route/persona pairs deliberately EXCLUDED from the matrix, so they never enter the `cells` denominator: no interceptable target was observed (no GET/HEAD, and no POST declared read-only in verify.read-only.json). Absent when every candidate route was planned. See lib/qa/forced-states.mjs planForcedStateCells().",
117
+ "type": "array",
118
+ "items": {
119
+ "type": "object",
120
+ "required": ["route", "reason"],
121
+ "additionalProperties": true,
122
+ "properties": {
123
+ "route": { "type": "string" },
124
+ "role": { "type": ["string", "null"] },
125
+ "reason": { "type": "string" }
126
+ }
127
+ }
128
+ }
129
+ }
130
+ },
131
+ "leak": {
132
+ "type": "object",
133
+ "additionalProperties": true,
134
+ "properties": {
135
+ "beforeMB": { "type": "number" },
136
+ "afterMB": { "type": "number" },
137
+ "growthMB": { "type": "number" }
138
+ }
139
+ }
140
+ },
141
+ "$defs": {
142
+ "finding": {
143
+ "type": "object",
144
+ "required": ["kind", "severity", "detail"],
145
+ "additionalProperties": true,
146
+ "properties": {
147
+ "kind": { "type": "string", "minLength": 1 },
148
+ "severity": { "type": "string", "enum": ["P0", "P1", "P2", "P3"] },
149
+ "at": { "type": ["string", "null"] },
150
+ "detail": { "type": "string" }
151
+ }
152
+ },
153
+ "routeRecord": {
154
+ "type": "object",
155
+ "required": ["route", "findings", "metrics"],
156
+ "additionalProperties": true,
157
+ "properties": {
158
+ "route": { "type": "string" },
159
+ "width": { "type": "integer" },
160
+ "role": { "type": ["string", "null"] },
161
+ "redirectedTo": { "type": ["string", "null"] },
162
+ "findings": { "type": "array", "items": { "$ref": "#/$defs/finding" } },
163
+ "metrics": { "type": "object", "additionalProperties": true },
164
+ "navigationHistory": { "type": "array", "items": { "type": "string" } },
165
+ "apiRequests": { "type": "integer", "minimum": 0 },
166
+ "apiPaths": { "type": "array", "items": { "type": "string" } },
167
+ "requests": { "type": "array", "items": { "$ref": "#/$defs/requestRow" } },
168
+ "requestsTruncated": { "type": "integer", "minimum": 0 },
169
+ "textLen": { "type": ["integer", "null"] },
170
+ "fingerprint": { "type": ["string", "null"] },
171
+ "anchors": { "type": "array", "items": { "type": "object", "properties": { "tag": { "type": "string" }, "text": { "type": "string" }, "classes": { "type": "array", "items": { "type": "string" } }, "box": { "type": "object" } }, "additionalProperties": true } },
172
+ "skipped": { "type": "string" },
173
+ "flaky": { "type": "boolean" },
174
+ "columns": { "type": "array" }
175
+ }
176
+ },
177
+ "requestRow": {
178
+ "type": "object",
179
+ "description": "One row of the bounded, privacy-safe per-cell request log: method + a path template with id-shaped segments collapsed to :id + a status class (never the exact status, never a query string, body, header, or user data). Capped at 40 distinct rows per cell; routeRecord.requestsTruncated says how many were cut.",
180
+ "required": ["method", "pathTemplate", "statusClass", "count", "ms"],
181
+ "additionalProperties": false,
182
+ "properties": {
183
+ "method": { "type": "string", "minLength": 1 },
184
+ "pathTemplate": { "type": "string" },
185
+ "statusClass": { "type": "string", "enum": ["2xx", "3xx", "4xx", "5xx", "failed"] },
186
+ "count": { "type": "integer", "minimum": 1 },
187
+ "ms": { "type": ["number", "null"], "minimum": 0 }
188
+ }
189
+ },
190
+ "unreachedEntry": {
191
+ "type": "object",
192
+ "required": ["route", "landedOn"],
193
+ "additionalProperties": true,
194
+ "properties": {
195
+ "route": { "type": "string" },
196
+ "width": { "type": "integer" },
197
+ "landedOn": { "type": "string" },
198
+ "role": { "type": ["string", "null"] },
199
+ "reason": { "type": "string" }
200
+ }
201
+ },
202
+ "role": {
203
+ "description": "Ownership only -- design doc section 6: reports exclude auth paths and header metadata (header NAMES are still header metadata). additionalProperties: false so a regression that reintroduces `auth` or `headers` fails qa dev validate, not just review.",
204
+ "type": "object",
205
+ "required": ["name"],
206
+ "additionalProperties": false,
207
+ "properties": {
208
+ "name": { "type": "string" },
209
+ "owns": { "type": "array", "items": { "type": "string" } },
210
+ "excludes": { "type": "array", "items": { "type": "string" } }
211
+ }
212
+ },
213
+ "identityRecord": {
214
+ "description": "lib/qa/auth/oracle.mjs archivableIdentity() -- booleans plus expected/actual categorical roles ONLY. additionalProperties: false so authenticationSubject/fixtureNamespace can never leak in through a producer change without qa dev validate catching it.",
215
+ "type": "object",
216
+ "required": ["persona", "authenticated", "sessionActive", "expected", "actual", "match"],
217
+ "additionalProperties": false,
218
+ "properties": {
219
+ "persona": { "type": "string" },
220
+ "authenticated": { "type": "boolean" },
221
+ "sessionActive": { "type": "boolean" },
222
+ "expected": { "$ref": "#/$defs/categoricalRoles" },
223
+ "actual": { "$ref": "#/$defs/categoricalRoles" },
224
+ "match": { "type": "boolean" }
225
+ }
226
+ },
227
+ "categoricalRoles": {
228
+ "type": "object",
229
+ "required": ["globalRole", "projectRoles", "effectivePrincipal", "delegationContext"],
230
+ "additionalProperties": false,
231
+ "properties": {
232
+ "globalRole": { "type": ["string", "null"] },
233
+ "projectRoles": { "type": "array", "items": { "type": "string" } },
234
+ "effectivePrincipal": { "type": ["string", "null"] },
235
+ "delegationContext": { "type": ["string", "null"] }
236
+ }
237
+ }
238
+ }
239
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://frontend-verify.dev/schemas/agent-result.schema.json",
4
+ "title": "agent-result.json",
5
+ "description": "lib/qa/agent-result.mjs — the schema-validated AgentResult a compatible qa-agent binary returns, embedded verbatim under run.json's `agent` key and archived as its own canonical file so the manifest can bind its digest without hashing run.json.",
6
+ "type": "object",
7
+ "required": ["schemaVersion", "protocolVersion", "status", "runId", "mode", "lane", "binary", "inputs", "dimensions", "limitations"],
8
+ "additionalProperties": true,
9
+ "properties": {
10
+ "schemaVersion": { "const": 1 },
11
+ "protocolVersion": { "const": 1 },
12
+ "status": { "type": "string", "enum": ["measured", "unmeasured", "invalid"] },
13
+ "runId": { "type": "string", "minLength": 1 },
14
+ "mode": { "type": "string", "enum": ["static", "runtime"] },
15
+ "lane": { "type": "string", "enum": ["source", "public-runtime", "mock-contract", "real-integration", "mfa-integration"] },
16
+ "binary": {
17
+ "type": "object",
18
+ "required": ["sha256", "protocolVersion"],
19
+ "additionalProperties": true,
20
+ "properties": {
21
+ "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
22
+ "protocolVersion": { "type": "integer", "minimum": 1 }
23
+ }
24
+ },
25
+ "inputs": { "type": "array", "items": { "$ref": "#/$defs/input" } },
26
+ "dimensions": {
27
+ "type": "object",
28
+ "additionalProperties": { "$ref": "#/$defs/dimension" },
29
+ "properties": {
30
+ "routePriority": { "$ref": "#/$defs/routePriorityDimension" }
31
+ }
32
+ },
33
+ "limitations": { "type": "array", "items": { "type": "string" } }
34
+ },
35
+ "$defs": {
36
+ "input": {
37
+ "type": "object",
38
+ "required": ["name", "sha256", "bytes"],
39
+ "additionalProperties": true,
40
+ "properties": {
41
+ "name": { "type": "string", "minLength": 1 },
42
+ "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
43
+ "bytes": { "type": "integer", "minimum": 0 }
44
+ }
45
+ },
46
+ "typedReason": {
47
+ "type": "string",
48
+ "enum": [
49
+ "no-sweep-input", "no-binary", "incompatible-protocol", "unsupported-platform",
50
+ "not-requested", "malformed-output", "schema-invalid", "digest-mismatch",
51
+ "load-failed", "graph-integrity-failed"
52
+ ]
53
+ },
54
+ "dimension": {
55
+ "oneOf": [
56
+ { "type": "object", "required": ["status", "value"], "additionalProperties": true, "properties": { "status": { "const": "measured" } } },
57
+ { "type": "object", "required": ["status", "reason"], "additionalProperties": true, "properties": { "status": { "const": "unmeasured" }, "reason": { "$ref": "#/$defs/typedReason" } } },
58
+ { "type": "object", "required": ["status", "reason"], "additionalProperties": true, "properties": { "status": { "const": "invalid" }, "reason": { "$ref": "#/$defs/typedReason" } } }
59
+ ]
60
+ },
61
+ "collection": {
62
+ "type": "object",
63
+ "required": ["items", "returned", "total", "truncated"],
64
+ "additionalProperties": true,
65
+ "properties": {
66
+ "items": { "type": "array" },
67
+ "returned": { "type": "integer", "minimum": 0 },
68
+ "total": { "type": "integer", "minimum": 0 },
69
+ "truncated": { "type": "boolean" }
70
+ }
71
+ },
72
+ "routePriorityItem": {
73
+ "type": "object",
74
+ "required": ["route", "confidence", "expectedInformation"],
75
+ "additionalProperties": true,
76
+ "properties": {
77
+ "route": { "type": "string" },
78
+ "confidence": { "type": "number", "minimum": 0, "maximum": 1 },
79
+ "expectedInformation": { "type": "number", "minimum": 0, "maximum": 1 }
80
+ }
81
+ },
82
+ "routePriorityDimension": {
83
+ "oneOf": [
84
+ {
85
+ "type": "object", "required": ["status", "value"], "additionalProperties": true,
86
+ "properties": {
87
+ "status": { "const": "measured" },
88
+ "value": {
89
+ "type": "object",
90
+ "required": ["items", "returned", "total", "truncated"],
91
+ "additionalProperties": true,
92
+ "properties": {
93
+ "items": { "type": "array", "items": { "$ref": "#/$defs/routePriorityItem" } },
94
+ "returned": { "type": "integer", "minimum": 0 },
95
+ "total": { "type": "integer", "minimum": 0 },
96
+ "truncated": { "type": "boolean" }
97
+ }
98
+ }
99
+ }
100
+ },
101
+ { "type": "object", "required": ["status", "reason"], "additionalProperties": true, "properties": { "status": { "const": "unmeasured" }, "reason": { "$ref": "#/$defs/typedReason" } } },
102
+ { "type": "object", "required": ["status", "reason"], "additionalProperties": true, "properties": { "status": { "const": "invalid" }, "reason": { "$ref": "#/$defs/typedReason" } } }
103
+ ]
104
+ }
105
+ }
106
+ }
@@ -0,0 +1,96 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://frontend-verify.dev/schemas/run.schema.json",
4
+ "title": "run.json",
5
+ "description": "lib/qa/runs.mjs archiveRun() — the per-invocation archive index under .verify/runs/<id>/run.json.",
6
+ "type": "object",
7
+ "required": ["id", "at", "mode", "args", "exit", "produced", "counts", "findings"],
8
+ "additionalProperties": true,
9
+ "properties": {
10
+ "id": { "type": "string", "minLength": 1 },
11
+ "at": { "type": "string" },
12
+ "mode": { "type": ["string", "null"] },
13
+ "lane": { "type": ["string", "null"], "enum": ["source", "public-runtime", "mock-contract", "real-integration", "mfa-integration", null] },
14
+ "runId": { "type": "string", "minLength": 1 },
15
+ "args": { "type": "array", "items": { "type": "string" } },
16
+ "exit": { "type": "integer", "enum": [0, 1, 2] },
17
+ "agent": {
18
+ "description": "lib/qa/agent-result.mjs -- either the schema-valid AgentResult (schemas/agent-result.schema.json) when the Rust kernel ran, or a minimal {status, reason} discriminated object when it was never invoked or its output could not be trusted.",
19
+ "type": ["object", "null"],
20
+ "additionalProperties": true,
21
+ "required": ["status"],
22
+ "properties": {
23
+ "status": { "type": "string", "enum": ["measured", "unmeasured", "invalid"] },
24
+ "reason": { "type": "string" }
25
+ }
26
+ },
27
+ "produced": {
28
+ "type": "object",
29
+ "additionalProperties": { "type": "boolean" },
30
+ "properties": {
31
+ "inventory": { "type": "boolean" },
32
+ "classify": { "type": "boolean" },
33
+ "sweep": { "type": "boolean" }
34
+ }
35
+ },
36
+ "counts": {
37
+ "type": "object",
38
+ "required": ["total", "P0", "P1", "P2", "P3"],
39
+ "additionalProperties": true,
40
+ "properties": {
41
+ "total": { "type": "integer", "minimum": 0 },
42
+ "P0": { "type": "integer", "minimum": 0 },
43
+ "P1": { "type": "integer", "minimum": 0 },
44
+ "P2": { "type": "integer", "minimum": 0 },
45
+ "P3": { "type": "integer", "minimum": 0 }
46
+ }
47
+ },
48
+ "summary": { "type": ["object", "null"] },
49
+ "integrity": { "type": ["object", "null"] },
50
+ "aborted": { "type": ["string", "boolean", "null"] },
51
+ "resume": {
52
+ "type": ["object", "null"],
53
+ "additionalProperties": true,
54
+ "properties": {
55
+ "requested": { "type": "boolean" },
56
+ "compatible": { "type": ["boolean", "null"] },
57
+ "reused": { "type": "integer", "minimum": 0 }
58
+ }
59
+ },
60
+ "warm": { "type": ["object", "null"] },
61
+ "routesInventory": { "type": ["integer", "null"], "minimum": 0 },
62
+ "cells": { "type": "integer", "minimum": 0 },
63
+ "findings": { "type": "array", "items": { "$ref": "#/$defs/findingRecord" } },
64
+ "archiveError": { "type": "string" },
65
+ "checkpoint": { "type": "string" }
66
+ },
67
+ "$defs": {
68
+ "findingRecord": {
69
+ "type": "object",
70
+ "required": ["fid", "phase", "kind", "severity", "detail"],
71
+ "additionalProperties": true,
72
+ "properties": {
73
+ "fid": { "type": "string", "minLength": 1 },
74
+ "phase": { "type": "string", "enum": ["static", "sync", "runtime", "journey", "state", "mutate", "dark", "leak", "pack", "coherence"] },
75
+ "kind": { "type": "string", "minLength": 1 },
76
+ "severity": { "type": "string", "enum": ["P0", "P1", "P2", "P3"] },
77
+ "route": { "type": ["string", "null"] },
78
+ "subject": { "type": ["string", "null"] },
79
+ "role": { "type": ["string", "null"] },
80
+ "width": { "type": ["integer", "null"] },
81
+ "at": { "type": ["string", "null"] },
82
+ "file": { "type": ["string", "null"] },
83
+ "line": { "type": ["integer", "null"] },
84
+ "anchor": { "type": ["string", "null"] },
85
+ "detail": { "type": "string" },
86
+ "atlas": { "type": ["string", "null"] },
87
+ "atlasVersion": { "type": "integer", "enum": [1, 2] },
88
+ "flaky": { "type": "boolean" },
89
+ "unresolved": { "type": "boolean" },
90
+ "waived": { "type": "boolean" },
91
+ "staleRoutes": { "type": ["array", "null"], "items": { "type": "string" } },
92
+ "pack": { "type": ["string", "null"] }
93
+ }
94
+ }
95
+ }
96
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://frontend-verify.dev/schemas/verify-crud.schema.json",
4
+ "title": "verify.crud.json",
5
+ "oneOf": [
6
+ { "type": "object", "required": ["schema_version", "flows"], "additionalProperties": false, "properties": { "schema_version": { "const": 1 }, "personas": { "type": "array", "items": { "type": "string" } }, "beacon_paths": { "$ref": "#/$defs/beaconPaths" }, "idp_bootstrap": { "$ref": "#/$defs/idpBootstrap" }, "flows": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/legacyFlow" } } } },
7
+ { "type": "object", "required": ["schema_version", "flows"], "additionalProperties": false, "properties": { "schema_version": { "const": 2 }, "personas": { "type": "array", "items": { "type": "string" } }, "entities": { "type": "array", "maxItems": 128, "items": { "$ref": "#/$defs/entity" } }, "beacon_paths": { "$ref": "#/$defs/beaconPaths" }, "idp_bootstrap": { "$ref": "#/$defs/idpBootstrap" }, "flows": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/legacyFlow" } } } },
8
+ { "type": "object", "required": ["schema_version", "flows"], "additionalProperties": false, "properties": { "schema_version": { "const": 3 }, "personas": { "type": "array", "items": { "type": "string" } }, "beacon_paths": { "$ref": "#/$defs/beaconPaths" }, "idp_bootstrap": { "$ref": "#/$defs/idpBootstrap" }, "flows": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/typedFlow" } } } }
9
+ ],
10
+ "$defs": {
11
+ "beaconPaths": { "type": "array", "items": { "type": "string", "minLength": 1 } },
12
+ "idpBootstrap": { "type": "array", "items": { "type": "object", "required": ["origin", "path"], "additionalProperties": false, "properties": { "origin": { "type": "string", "pattern": "^https?://[^/?#]+$" }, "path": { "type": "string", "pattern": "^/[^?*#{}]*$" } } } },
13
+ "entity": { "type": "object", "required": ["name", "endpoints"], "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "pattern": "^[a-z][a-z0-9_-]{0,63}$" }, "endpoints": { "type": "array", "minItems": 2, "maxItems": 32, "items": { "type": "string", "minLength": 2, "pattern": "^/[^*?#]{1,511}$" } } } },
14
+ "id": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
15
+ "sourceRef": { "type": "object", "required": ["file", "line"], "additionalProperties": false, "properties": { "file": { "type": ["string", "null"] }, "line": { "type": "integer", "minimum": 0 } } },
16
+ "identity": { "type": "object", "required": ["id", "material"], "additionalProperties": false, "properties": { "id": { "$ref": "#/$defs/id" }, "material": { "oneOf": [{ "$ref": "#/$defs/mutationMaterial" }, { "$ref": "#/$defs/surfaceMaterial" }, { "$ref": "#/$defs/targetMaterial" }, { "$ref": "#/$defs/principalMaterial" }, { "$ref": "#/$defs/entityMaterial" }, { "$ref": "#/$defs/flowMaterial" }] } } },
17
+ "mutationMaterial": { "type": "object", "required": ["namespace", "version", "sourceRef", "endpoint"], "additionalProperties": false, "properties": { "namespace": { "const": "coherence/mutation" }, "version": { "const": 1 }, "sourceRef": { "$ref": "#/$defs/sourceRef" }, "endpoint": { "type": ["string", "null"] } } },
18
+ "surfaceMaterial": { "type": "object", "required": ["namespace", "version", "route", "component", "sourceRef"], "additionalProperties": false, "properties": { "namespace": { "const": "coherence/surface" }, "version": { "const": 1 }, "route": { "type": "string" }, "component": { "type": ["string", "null"] }, "sourceRef": { "$ref": "#/$defs/sourceRef" } } },
19
+ "targetMaterial": { "type": "object", "required": ["namespace", "version", "flow", "route", "transition", "role", "representation"], "additionalProperties": false, "properties": { "namespace": { "const": "coherence/target" }, "version": { "const": 1 }, "flow": { "$ref": "#/$defs/flowIdentity" }, "route": { "type": "string" }, "transition": { "$ref": "#/$defs/transition" }, "role": { "type": ["string", "null"] }, "representation": { "$ref": "#/$defs/targetRepresentation" } } },
20
+ "targetRepresentation": { "type": "object", "required": ["field", "type"], "additionalProperties": false, "properties": { "field": { "type": "string" }, "type": { "type": "string" }, "source": { "type": "string" }, "attribute": { "type": "string" }, "locale": { "type": "string" }, "timezone": { "type": "string" }, "currency": { "type": "string" }, "scale": { "type": "integer" }, "inputUnit": { "type": "string" }, "canonicalUnit": { "type": "string" }, "factor": { "type": "number" }, "optional_on_summary": { "type": "boolean" } } },
21
+ "principalMaterial": { "type": "object", "required": ["namespace", "version", "name"], "additionalProperties": false, "properties": { "namespace": { "const": "coherence/principal" }, "version": { "const": 1 }, "name": { "type": "string" } } },
22
+ "entityMaterial": { "type": "object", "required": ["namespace", "version", "name"], "additionalProperties": false, "properties": { "namespace": { "const": "coherence/entity" }, "version": { "const": 1 }, "name": { "type": "string" } } },
23
+ "flowMaterial": { "type": "object", "required": ["namespace", "version", "route", "declaredEndpoint"], "additionalProperties": false, "properties": { "namespace": { "const": "coherence/flow" }, "version": { "const": 1 }, "route": { "type": "string" }, "declaredEndpoint": { "type": "string" } } },
24
+ "flowIdentity": { "type": "object", "required": ["id", "material"], "additionalProperties": false, "properties": { "id": { "$ref": "#/$defs/id" }, "material": { "$ref": "#/$defs/flowMaterial" } } },
25
+ "legacyFlow": { "type": "object", "required": ["name", "production"], "additionalProperties": true, "properties": { "name": { "type": "string", "minLength": 1 }, "route": { "type": "string" }, "declared_endpoint": { "type": "string" }, "cleanup_required": { "type": "boolean" }, "production": { "const": false }, "crosscheck": { "$ref": "#/$defs/legacyCrosscheck" } } },
26
+ "typedFlow": { "type": "object", "required": ["name", "route", "declared_endpoint", "production", "identity", "crosscheck"], "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1 }, "route": { "type": "string" }, "declared_endpoint": { "type": "string" }, "cleanup_endpoint": { "type": "string" }, "cleanup_required": { "type": "boolean" }, "production": { "const": false }, "identity": { "$ref": "#/$defs/identity" }, "crosscheck": { "$ref": "#/$defs/typedCrosscheck" }, "journey": { "type": "string" }, "personas": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } }, "form_selector": { "type": "string" }, "submit_selector": { "type": "string" }, "update_selector": { "oneOf": [{ "type": "string" }, { "const": false }] }, "delete_selector": { "oneOf": [{ "type": "string" }, { "const": false }] }, "fields": { "type": "object" }, "denied": { "type": "array", "items": { "type": "string", "minLength": 1 } } } },
27
+ "causalContract": { "type": "object", "required": ["entity", "effect", "convergence"], "additionalProperties": false, "properties": { "entity": { "type": "string", "minLength": 1 }, "effect": { "type": "object", "required": ["kind", "field"], "additionalProperties": false, "properties": { "kind": { "enum": ["field-change", "version-advance"] }, "field": { "type": "string", "minLength": 1 } } }, "convergence": { "type": "object", "required": ["deadlineMs"], "additionalProperties": false, "properties": { "deadlineMs": { "type": "integer", "minimum": 1, "maximum": 120000 } } } } },
28
+ "legacyCrosscheck": { "type": "object", "required": ["entity", "writer", "observers", "authoritative_readback", "targets"], "additionalProperties": false, "properties": { "entity": { "type": "string", "minLength": 1 }, "writer": { "type": "string", "minLength": 1 }, "authoritative_readback": { "type": "string", "minLength": 1 }, "plan_journey": { "type": "string", "minLength": 1 }, "isolation": { "type": "string", "enum": ["per-flow"] }, "causal": { "$ref": "#/$defs/causalContract" }, "observers": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/legacyObserver" } }, "targets": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/legacyTarget" } } } },
29
+ "typedCrosscheck": { "type": "object", "required": ["entity", "entityIdentity", "mutationIdentity", "writer", "writerIdentity", "observers", "authoritative_readback", "targets"], "additionalProperties": false, "properties": { "entity": { "type": "string", "minLength": 1 }, "entityIdentity": { "$ref": "#/$defs/identity" }, "mutationIdentity": { "$ref": "#/$defs/identity" }, "writer": { "type": "string", "minLength": 1 }, "writerIdentity": { "$ref": "#/$defs/identity" }, "authoritative_readback": { "type": "string", "minLength": 1 }, "isolation": { "type": "string", "enum": ["per-flow"] }, "causal": { "$ref": "#/$defs/causalContract" }, "observers": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/typedObserver" } }, "targets": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/typedTarget" } } } },
30
+ "legacyObserver": { "type": "object", "required": ["persona", "expect"], "additionalProperties": false, "properties": { "persona": { "type": "string" }, "expect": { "type": "string", "enum": ["visible", "absent", "redacted", "withheld", "forbidden"] } } },
31
+ "typedObserver": { "type": "object", "required": ["persona", "expect", "identity"], "additionalProperties": false, "properties": { "persona": { "type": "string" }, "expect": { "type": "string", "enum": ["visible", "absent", "redacted", "withheld", "forbidden"] }, "identity": { "$ref": "#/$defs/identity" } } },
32
+ "legacyTarget": { "type": "object", "required": ["id", "route", "transition", "representation"], "additionalProperties": false, "properties": { "id": { "type": "string" }, "route": { "type": "string" }, "role": { "type": "string" }, "transition": { "$ref": "#/$defs/transition" }, "representation": { "$ref": "#/$defs/representation" } } },
33
+ "typedTarget": { "type": "object", "required": ["id", "identity", "route", "transition", "representation", "surfaceMatch"], "additionalProperties": false, "properties": { "id": { "type": "string" }, "identity": { "$ref": "#/$defs/identity" }, "route": { "type": "string" }, "role": { "type": "string" }, "transition": { "$ref": "#/$defs/transition" }, "representation": { "$ref": "#/$defs/representation" }, "surfaceMatch": { "type": "object", "required": ["surface", "evidence"], "additionalProperties": false, "properties": { "surface": { "$ref": "#/$defs/identity" }, "evidence": { "type": "object", "required": ["source", "kind"], "additionalProperties": false, "properties": { "source": { "type": "string", "minLength": 1 }, "kind": { "const": "declared" } } } } } } },
34
+ "transition": { "type": "string", "enum": ["same-surface", "client-navigation", "reload", "fresh-context", "history-back", "history-forward", "direct-url", "offline-replay"] },
35
+ "representation": { "type": "object", "required": ["selector", "field", "type"], "additionalProperties": false, "properties": { "selector": { "type": "string", "minLength": 1 }, "field": { "type": "string", "minLength": 1 }, "type": { "type": "string", "enum": ["string", "number", "boolean", "count", "enum", "money", "date", "datetime", "duration", "unit"] }, "source": { "type": "string", "enum": ["text", "value", "attribute", "aria"] }, "attribute": { "type": "string" }, "locale": { "type": "string" }, "timezone": { "type": "string" }, "currency": { "type": "string", "pattern": "^[A-Z]{3}$" }, "scale": { "type": "integer", "minimum": 0, "maximum": 6 }, "inputUnit": { "type": "string" }, "canonicalUnit": { "type": "string" }, "factor": { "type": "number" }, "optional_on_summary": { "type": "boolean" } }, "oneOf": [ { "required": ["type"], "properties": { "type": { "enum": ["string", "number", "boolean", "count", "enum", "datetime"] } } }, { "required": ["type", "currency", "scale"], "properties": { "type": { "const": "money" } } }, { "required": ["type", "locale"], "properties": { "type": { "const": "date" } } }, { "required": ["type", "inputUnit", "canonicalUnit"], "properties": { "type": { "const": "duration" } } }, { "required": ["type", "inputUnit", "canonicalUnit", "factor"], "properties": { "type": { "const": "unit" } } } ] }
36
+ }
37
+ }