@verndale/accessibility-standards 1.0.0 → 3.0.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 (171) hide show
  1. package/OPERATING.md +3 -1
  2. package/README.md +4 -0
  3. package/bin/accessibility-standards.mjs +1 -1
  4. package/dist/manifest.json +159 -101
  5. package/dist/profiles/ai-orchestration/coverage-manifest.json +724 -68
  6. package/dist/profiles/ai-orchestration/implementation/accessibility.md +825 -10
  7. package/dist/profiles/ai-orchestration/pattern-contracts.json +1015 -343
  8. package/dist/profiles/ai-orchestration/patterns/accordion.md +14 -0
  9. package/dist/profiles/ai-orchestration/patterns/alert.md +14 -0
  10. package/dist/profiles/ai-orchestration/patterns/carousel.md +14 -0
  11. package/dist/profiles/ai-orchestration/patterns/checkbox.md +27 -0
  12. package/dist/profiles/ai-orchestration/patterns/combobox.md +14 -0
  13. package/dist/profiles/ai-orchestration/patterns/consequential-submission.md +15 -1
  14. package/dist/profiles/ai-orchestration/patterns/dialog.md +14 -0
  15. package/dist/profiles/ai-orchestration/patterns/disclosure.md +14 -0
  16. package/dist/profiles/ai-orchestration/patterns/dynamic-status.md +14 -0
  17. package/dist/profiles/ai-orchestration/patterns/field.md +15 -0
  18. package/dist/profiles/ai-orchestration/patterns/image.md +14 -0
  19. package/dist/profiles/ai-orchestration/patterns/listbox.md +14 -0
  20. package/dist/profiles/ai-orchestration/patterns/media-player.md +17 -0
  21. package/dist/profiles/ai-orchestration/patterns/menu-button.md +14 -0
  22. package/dist/profiles/ai-orchestration/patterns/menu.md +30 -0
  23. package/dist/profiles/ai-orchestration/patterns/pagination.md +14 -0
  24. package/dist/profiles/ai-orchestration/patterns/popover.md +15 -0
  25. package/dist/profiles/ai-orchestration/patterns/progress.md +15 -0
  26. package/dist/profiles/ai-orchestration/patterns/radio-group.md +27 -0
  27. package/dist/profiles/ai-orchestration/patterns/slider.md +31 -0
  28. package/dist/profiles/ai-orchestration/patterns/spinbutton.md +28 -0
  29. package/dist/profiles/ai-orchestration/patterns/tabs.md +14 -0
  30. package/dist/profiles/ai-orchestration/patterns/tooltip.md +14 -0
  31. package/dist/profiles/ai-orchestration/patterns/tree-view.md +31 -0
  32. package/dist/profiles/ai-orchestration/patterns/validation.md +15 -0
  33. package/dist/profiles/ai-orchestration/review/accessibility.md +21 -6
  34. package/dist/profiles/ai-orchestration/semantics/accessible-authentication.md +13 -0
  35. package/dist/profiles/ai-orchestration/semantics/accessible-name.md +8 -1
  36. package/dist/profiles/ai-orchestration/semantics/alert.md +7 -0
  37. package/dist/profiles/ai-orchestration/semantics/consequential-action.md +6 -1
  38. package/dist/profiles/ai-orchestration/semantics/consistent-help.md +13 -0
  39. package/dist/profiles/ai-orchestration/semantics/data-table.md +7 -1
  40. package/dist/profiles/ai-orchestration/semantics/dragging-alternative.md +13 -0
  41. package/dist/profiles/ai-orchestration/semantics/expanded-state.md +6 -0
  42. package/dist/profiles/ai-orchestration/semantics/focus.initial.md +4 -0
  43. package/dist/profiles/ai-orchestration/semantics/focus.return.md +4 -0
  44. package/dist/profiles/ai-orchestration/semantics/focus.visible.md +8 -1
  45. package/dist/profiles/ai-orchestration/semantics/form-error.md +8 -1
  46. package/dist/profiles/ai-orchestration/semantics/form-label.md +7 -0
  47. package/dist/profiles/ai-orchestration/semantics/form-required.md +7 -0
  48. package/dist/profiles/ai-orchestration/semantics/headings.md +7 -0
  49. package/dist/profiles/ai-orchestration/semantics/keyboard.escape.md +4 -0
  50. package/dist/profiles/ai-orchestration/semantics/keyboard.md +7 -0
  51. package/dist/profiles/ai-orchestration/semantics/landmarks.md +6 -0
  52. package/dist/profiles/ai-orchestration/semantics/live-status.md +7 -1
  53. package/dist/profiles/ai-orchestration/semantics/media-alternatives.md +11 -0
  54. package/dist/profiles/ai-orchestration/semantics/motion-control.md +8 -1
  55. package/dist/profiles/ai-orchestration/semantics/name-role-value.md +6 -1
  56. package/dist/profiles/ai-orchestration/semantics/native-dialog.md +7 -0
  57. package/dist/profiles/ai-orchestration/semantics/native-elements.md +5 -0
  58. package/dist/profiles/ai-orchestration/semantics/non-text-alternative.md +5 -0
  59. package/dist/profiles/ai-orchestration/semantics/redundant-entry.md +13 -0
  60. package/dist/profiles/ai-orchestration/semantics/roles-states-properties.md +6 -0
  61. package/dist/profiles/ai-orchestration/semantics/selected-state.md +6 -0
  62. package/dist/profiles/ai-orchestration/semantics/target-size.md +6 -1
  63. package/dist/profiles/ai-orchestration/semantics.json +843 -100
  64. package/dist/profiles/ai-orchestration/testing/accessibility.md +33 -3
  65. package/dist/profiles/ai-orchestration/ui-design-brain-bindings.json +836 -0
  66. package/dist/profiles/conductor/a11y-semantics.md +270 -10
  67. package/dist/profiles/conductor/accessibility-quality.md +557 -1
  68. package/dist/profiles/conductor/applicability-matrix.json +270 -230
  69. package/dist/profiles/conductor/coverage-manifest.json +724 -68
  70. package/dist/profiles/conductor/pattern-contracts.json +1015 -343
  71. package/dist/profiles/conductor/patterns/accordion.json +42 -24
  72. package/dist/profiles/conductor/patterns/alert.json +36 -18
  73. package/dist/profiles/conductor/patterns/carousel.json +43 -25
  74. package/dist/profiles/conductor/patterns/checkbox.json +67 -0
  75. package/dist/profiles/conductor/patterns/combobox.json +44 -26
  76. package/dist/profiles/conductor/patterns/consequential-submission.json +41 -22
  77. package/dist/profiles/conductor/patterns/dialog.json +44 -26
  78. package/dist/profiles/conductor/patterns/disclosure.json +40 -22
  79. package/dist/profiles/conductor/patterns/dynamic-status.json +38 -19
  80. package/dist/profiles/conductor/patterns/field.json +58 -22
  81. package/dist/profiles/conductor/patterns/image.json +48 -19
  82. package/dist/profiles/conductor/patterns/listbox.json +42 -24
  83. package/dist/profiles/conductor/patterns/media-player.json +76 -26
  84. package/dist/profiles/conductor/patterns/menu-button.json +41 -23
  85. package/dist/profiles/conductor/patterns/menu.json +78 -0
  86. package/dist/profiles/conductor/patterns/pagination.json +41 -22
  87. package/dist/profiles/conductor/patterns/popover.json +49 -23
  88. package/dist/profiles/conductor/patterns/progress.json +45 -20
  89. package/dist/profiles/conductor/patterns/radio-group.json +69 -0
  90. package/dist/profiles/conductor/patterns/slider.json +84 -0
  91. package/dist/profiles/conductor/patterns/spinbutton.json +74 -0
  92. package/dist/profiles/conductor/patterns/tabs.json +41 -23
  93. package/dist/profiles/conductor/patterns/tooltip.json +38 -20
  94. package/dist/profiles/conductor/patterns/tree-view.json +77 -0
  95. package/dist/profiles/conductor/patterns/validation.json +59 -23
  96. package/dist/profiles/conductor/semantics.json +843 -100
  97. package/dist/profiles/conductor/ui-design-brain-bindings.json +836 -0
  98. package/dist/projection-manifest.json +123 -82
  99. package/dist/requirements-to-implementation.md +8 -0
  100. package/lib/build-manifest.mjs +12 -6
  101. package/lib/build.mjs +21 -7
  102. package/lib/compile-applicability.mjs +131 -10
  103. package/lib/coverage.mjs +20 -0
  104. package/lib/digest.mjs +8 -0
  105. package/lib/index.mjs +1 -1
  106. package/lib/load.mjs +44 -1
  107. package/lib/provenance.mjs +51 -0
  108. package/lib/render.mjs +115 -31
  109. package/lib/sync.mjs +242 -28
  110. package/lib/validate.mjs +557 -24
  111. package/package.json +27 -10
  112. package/profiles/ai-orchestration/profile.json +1 -1
  113. package/profiles/ai-orchestration/templates/patterns/README.md +1 -1
  114. package/profiles/ai-orchestration/templates/review/README.md +1 -1
  115. package/profiles/ai-orchestration/templates/semantics/README.md +1 -1
  116. package/profiles/ai-orchestration/templates/testing/README.md +1 -1
  117. package/profiles/conductor/profile.json +1 -1
  118. package/profiles/conductor/templates/evidence/README.md +1 -1
  119. package/profiles/conductor/templates/patterns/README.md +1 -1
  120. package/profiles/conductor/templates/semantics/README.md +1 -1
  121. package/schemas/consumer-config.schema.json +1 -1
  122. package/schemas/contract.schema.json +1 -0
  123. package/schemas/manifest.schema.json +1 -1
  124. package/schemas/pattern.schema.json +98 -1
  125. package/schemas/profile.schema.json +1 -1
  126. package/schemas/projection-manifest.schema.json +84 -1
  127. package/schemas/semantic.schema.json +26 -1
  128. package/schemas/standards-reference.schema.json +105 -0
  129. package/schemas/ui-design-brain-bindings.schema.json +86 -0
  130. package/schemas/wcag-coverage.schema.json +93 -0
  131. package/src/applicability/facts.yml +27 -1
  132. package/src/applicability/matrix.yml +8 -9
  133. package/src/applicability/ui-design-brain-bindings.yml +196 -0
  134. package/src/contract.yml +1 -0
  135. package/src/coverage/wcag-2.2.yml +68 -0
  136. package/src/patterns/disclosure/accordion.yml +1 -1
  137. package/src/patterns/disclosure/disclosure.yml +1 -1
  138. package/src/patterns/feedback/alert.yml +1 -1
  139. package/src/patterns/feedback/dynamic-status.yml +1 -1
  140. package/src/patterns/feedback/progress.yml +1 -1
  141. package/src/patterns/forms/consequential-submission.yml +1 -1
  142. package/src/patterns/forms/field.yml +1 -1
  143. package/src/patterns/forms/spinbutton.yml +1 -0
  144. package/src/patterns/forms/validation.yml +1 -1
  145. package/src/patterns/media/carousel.yml +1 -1
  146. package/src/patterns/media/image.yml +1 -1
  147. package/src/patterns/media/media-player.yml +1 -1
  148. package/src/patterns/navigation/menu-button.yml +1 -1
  149. package/src/patterns/navigation/menu.yml +1 -0
  150. package/src/patterns/navigation/pagination.yml +1 -1
  151. package/src/patterns/navigation/tabs.yml +1 -1
  152. package/src/patterns/navigation/tree-view.yml +1 -0
  153. package/src/patterns/overlays/dialog.yml +1 -1
  154. package/src/patterns/overlays/popover.yml +1 -1
  155. package/src/patterns/overlays/tooltip.yml +1 -1
  156. package/src/patterns/selection/checkbox.yml +1 -0
  157. package/src/patterns/selection/combobox.yml +1 -1
  158. package/src/patterns/selection/listbox.yml +1 -1
  159. package/src/patterns/selection/radio-group.yml +1 -0
  160. package/src/patterns/selection/slider.yml +1 -0
  161. package/src/semantics/accessible-names.yml +1 -1
  162. package/src/semantics/forms.yml +1 -1
  163. package/src/semantics/headings-landmarks.yml +1 -1
  164. package/src/semantics/keyboard-focus.yml +1 -1
  165. package/src/semantics/live-regions.yml +1 -1
  166. package/src/semantics/media.yml +1 -1
  167. package/src/semantics/native-elements.yml +1 -1
  168. package/src/semantics/roles-states-properties.yml +1 -1
  169. package/src/semantics/tables.yml +1 -1
  170. package/src/semantics/wcag-2.2.yml +1 -0
  171. package/src/sources.yml +1 -1
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@verndale/accessibility-standards",
3
- "version": "1.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Deterministic accessibility semantics, patterns, applicability, and consumer projections",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/verndale/accessibility-standards.git"
11
+ },
12
+ "packageManager": "pnpm@11.1.1",
8
13
  "engines": {
9
14
  "node": ">=24.14.0"
10
15
  },
@@ -21,26 +26,38 @@
21
26
  "README.md",
22
27
  "OPERATING.md"
23
28
  ],
29
+ "scripts": {
30
+ "build": "node bin/accessibility-standards.mjs build",
31
+ "check": "node bin/accessibility-standards.mjs validate",
32
+ "test": "node --test tests/unit/*.test.mjs && pnpm release:preflight:selftest",
33
+ "contract:version:check": "node scripts/check-package-contract.cjs",
34
+ "verify:ci": "pnpm contract:version:check && pnpm check && pnpm test && pnpm build && git diff --exit-code -- . ':!dist'",
35
+ "release:preflight": "node scripts/check-release-commit.cjs",
36
+ "release:preflight:selftest": "node scripts/check-release-commit.selftest.cjs",
37
+ "prepack": "node scripts/check-package-contract.cjs",
38
+ "graph:build": "node scripts/wiki/build-graph.cjs",
39
+ "graph:check": "node scripts/wiki/build-graph.cjs --check",
40
+ "wiki:check": "node scripts/wiki/check.cjs",
41
+ "prepare": "node scripts/install-hooks.mjs",
42
+ "pr:create": "ai-pr"
43
+ },
24
44
  "devDependencies": {
25
45
  "@semantic-release/changelog": "6.0.3",
46
+ "@semantic-release/commit-analyzer": "13.0.1",
26
47
  "@semantic-release/git": "10.0.1",
27
48
  "@semantic-release/github": "12.0.8",
28
49
  "@semantic-release/npm": "13.1.5",
29
50
  "@verndale/ai-commit": "2.7.0",
30
51
  "@verndale/ai-pr": "1.3.5",
52
+ "ajv": "8.20.0",
53
+ "conventional-changelog-conventionalcommits": "9.3.1",
31
54
  "semantic-release": "25.0.3"
32
55
  },
33
56
  "publishConfig": {
34
57
  "access": "public",
35
58
  "provenance": true
36
59
  },
37
- "scripts": {
38
- "build": "node bin/accessibility-standards.mjs build",
39
- "check": "node bin/accessibility-standards.mjs validate",
40
- "test": "node --test tests/unit/*.test.mjs",
41
- "verify:ci": "pnpm check && pnpm test && pnpm build && git diff --exit-code -- . ':!dist'",
42
- "graph:build": "node scripts/wiki/build-graph.cjs",
43
- "graph:check": "node scripts/wiki/build-graph.cjs --check",
44
- "wiki:check": "node scripts/wiki/check.cjs"
60
+ "dependencies": {
61
+ "dotenv": "^17.3.1"
45
62
  }
46
- }
63
+ }
@@ -1 +1 @@
1
- {"name":"ai-orchestration","version":"1.0.0","channels":["semantics","patterns","implementation","testing","review"]}
1
+ {"name":"ai-orchestration","version":"3.0.0","channels":["ui-pattern-bindings","semantics","patterns","implementation","testing","review"]}
@@ -1,3 +1,3 @@
1
1
  # Implementation patterns template
2
2
 
3
- Expand patterns to semantic dependencies and preserve source IDs.
3
+ Expand patterns to semantic dependencies and preserve source IDs, activation, and informative APG references.
@@ -1,3 +1,3 @@
1
1
  # Review template
2
2
 
3
- Review source authority, semantics, patterns, implementation, tests, and evidence in that order.
3
+ Review source authority, WCAG coverage status, semantics, patterns, implementation, tests, and evidence in that order.
@@ -1,3 +1,3 @@
1
1
  # Implementation semantics template
2
2
 
3
- Always load applicable semantic requirements before patterns.
3
+ Always load applicable semantic requirements and their standards references before patterns.
@@ -1,3 +1,3 @@
1
1
  # Testing template
2
2
 
3
- Route each outcome to its exact unit, axe, E2E, and human lanes.
3
+ Route each outcome and WCAG coverage claim to its exact unit, axe, E2E, and human lanes.
@@ -1 +1 @@
1
- {"name":"conductor","version":"1.0.0","channels":["semantics","patterns","applicability","evidence"]}
1
+ {"name":"conductor","version":"3.0.0","channels":["ui-pattern-bindings","semantics","patterns","applicability","evidence"]}
@@ -1,3 +1,3 @@
1
1
  # Conductor evidence template
2
2
 
3
- Bind each applicable outcome to proof kinds and artifact evidence references.
3
+ Bind each applicable outcome and WCAG coverage claim to proof kinds and artifact evidence references.
@@ -1,3 +1,3 @@
1
1
  # Conductor patterns template
2
2
 
3
- Render activation, behavior, decisions, bindings, outcomes, and evidence without restating semantic rules.
3
+ Render standards references, activation, behavior, decisions, bindings, outcomes, and evidence without restating semantic rules.
@@ -1,3 +1,3 @@
1
1
  # Conductor semantics template
2
2
 
3
- Render requirements in stable semantic ID order for Functional Specification authors.
3
+ Render requirements and normalized standards references in stable semantic ID order for Functional Specification authors.
@@ -1 +1 @@
1
- {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"consumer-config.schema.json","type":"object","required":["package","profile","routes"],"properties":{"package":{"const":"@verndale/accessibility-standards@1.0.0"},"profile":{"enum":["conductor","ai-orchestration"]},"routes":{"type":"string"},"outputRoot":{"type":"string"}},"additionalProperties":false}
1
+ {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"consumer-config.schema.json","type":"object","required":["package","profile","routes"],"properties":{"package":{"const":"@verndale/accessibility-standards@3.0.0"},"profile":{"enum":["conductor","ai-orchestration"]},"routes":{"type":"string"},"outputRoot":{"type":"string"}},"additionalProperties":false}
@@ -0,0 +1 @@
1
+ {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"contract.schema.json","type":"object","required":["schema_version","package_version"],"additionalProperties":false,"properties":{"schema_version":{"type":"integer","const":3},"package_version":{"type":"string","const":"3.0.0"}}}
@@ -1 +1 @@
1
- {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"manifest.schema.json","type":"object","required":["package","schema_version","records"],"properties":{"package":{"type":"string"},"schema_version":{"type":"integer"},"records":{"type":"array","items":{"type":"object","required":["id","digest"]}}}}
1
+ {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"manifest.schema.json","type":"object","required":["_generated","package","schema_version","source_digest","profile_digests","ui_design_brain","records"],"properties":{"_generated":{"type":"string"},"package":{"const":"@verndale/accessibility-standards@3.0.0"},"schema_version":{"const":3},"source_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"profile_digests":{"type":"object"},"ui_design_brain":{"type":"object","required":["package","package_version","catalog_authority_version","source_digest","manifest_digest","binding_digest"]},"records":{"type":"array","items":{"type":"object","required":["id","digest"]}}}}
@@ -1 +1,98 @@
1
- {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"pattern.schema.json","allOf":[{"$ref":"record.schema.json"},{"type":"object","required":["kind","requires","activation","scope","behavior","product_decisions","functional_spec_bindings","implementation_outcomes","evidence_routes"],"properties":{"kind":{"const":"pattern"},"requires":{"type":"array","items":{"type":"string","pattern":"^semantics\\."},"minItems":1,"uniqueItems":true}}}]}
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "pattern.schema.json",
4
+ "$defs": {
5
+ "fact": { "type": "string", "pattern": "^[a-z][a-z0-9_-]*(?:\\.[a-z][a-z0-9_-]*)+$" },
6
+ "operand": {
7
+ "type": "object",
8
+ "required": ["fact", "value"],
9
+ "additionalProperties": false,
10
+ "properties": { "fact": { "$ref": "#/$defs/fact" }, "value": {} }
11
+ },
12
+ "existsOperand": {
13
+ "type": "object",
14
+ "required": ["fact"],
15
+ "additionalProperties": false,
16
+ "properties": { "fact": { "$ref": "#/$defs/fact" } }
17
+ },
18
+ "expression": {
19
+ "oneOf": [
20
+ {
21
+ "type": "object",
22
+ "required": ["all"],
23
+ "additionalProperties": false,
24
+ "properties": { "all": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/expression" } } }
25
+ },
26
+ {
27
+ "type": "object",
28
+ "required": ["any"],
29
+ "additionalProperties": false,
30
+ "properties": { "any": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/expression" } } }
31
+ },
32
+ {
33
+ "type": "object",
34
+ "required": ["not"],
35
+ "additionalProperties": false,
36
+ "properties": { "not": { "$ref": "#/$defs/expression" } }
37
+ },
38
+ {
39
+ "type": "object",
40
+ "required": ["equals"],
41
+ "additionalProperties": false,
42
+ "properties": { "equals": { "$ref": "#/$defs/operand" } }
43
+ },
44
+ {
45
+ "type": "object",
46
+ "required": ["contains"],
47
+ "additionalProperties": false,
48
+ "properties": { "contains": { "$ref": "#/$defs/operand" } }
49
+ },
50
+ {
51
+ "type": "object",
52
+ "required": ["exists"],
53
+ "additionalProperties": false,
54
+ "properties": { "exists": { "$ref": "#/$defs/existsOperand" } }
55
+ }
56
+ ]
57
+ },
58
+ "nonBlankStrings": {
59
+ "type": "array",
60
+ "items": { "type": "string", "pattern": "\\S" },
61
+ "minItems": 1,
62
+ "uniqueItems": true
63
+ }
64
+ },
65
+ "type": "object",
66
+ "required": ["id", "version", "title", "kind", "standards_refs", "requires", "activation", "scope", "behavior", "product_decisions", "functional_spec_bindings", "implementation_outcomes", "evidence_routes"],
67
+ "additionalProperties": false,
68
+ "properties": {
69
+ "id": { "type": "string", "pattern": "^pattern\\.[a-z0-9]+(?:[.-][a-z0-9]+)*$" },
70
+ "version": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+$" },
71
+ "title": { "type": "string", "pattern": "\\S" },
72
+ "kind": { "const": "pattern" },
73
+ "standards_refs": {
74
+ "type": "array",
75
+ "items": { "$ref": "standards-reference.schema.json" },
76
+ "minItems": 1,
77
+ "uniqueItems": true
78
+ },
79
+ "requires": {
80
+ "type": "array",
81
+ "items": { "type": "string", "pattern": "^semantics\\.[a-z0-9]+(?:[.-][a-z0-9]+)*$" },
82
+ "minItems": 1,
83
+ "uniqueItems": true
84
+ },
85
+ "activation": { "$ref": "#/$defs/expression" },
86
+ "scope": { "type": "string", "pattern": "\\S" },
87
+ "behavior": { "$ref": "#/$defs/nonBlankStrings" },
88
+ "product_decisions": { "$ref": "#/$defs/nonBlankStrings" },
89
+ "functional_spec_bindings": { "$ref": "#/$defs/nonBlankStrings" },
90
+ "implementation_outcomes": { "$ref": "#/$defs/nonBlankStrings" },
91
+ "evidence_routes": {
92
+ "type": "array",
93
+ "items": { "enum": ["unit", "axe", "e2e", "human"] },
94
+ "minItems": 1,
95
+ "uniqueItems": true
96
+ }
97
+ }
98
+ }
@@ -1 +1 @@
1
- {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"profile.schema.json","type":"object","required":["name","version","channels"],"properties":{"name":{"enum":["conductor","ai-orchestration"]},"version":{"type":"string"},"channels":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"additionalProperties":false}
1
+ {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"profile.schema.json","type":"object","required":["name","version","channels"],"properties":{"name":{"enum":["conductor","ai-orchestration"]},"version":{"const":"3.0.0"},"channels":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"additionalProperties":false}
@@ -1 +1,84 @@
1
- {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"projection-manifest.schema.json","type":"object","required":["package","profile","digests","projected_ids","lane_coverage"],"properties":{"package":{"type":"string"},"profile":{"type":"string"},"digests":{"type":"object"},"projected_ids":{"type":"array","items":{"type":"string"}},"lane_coverage":{"type":"object"}}}
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "projection-manifest.schema.json",
4
+ "$defs": {
5
+ "digest": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
6
+ "uiDesignBrain": {
7
+ "type": "object",
8
+ "required": ["package", "package_version", "catalog_authority_version", "source_digest", "manifest_digest", "binding_digest"]
9
+ },
10
+ "consumer": {
11
+ "type": "object",
12
+ "required": [
13
+ "_generated",
14
+ "package",
15
+ "profile",
16
+ "profile_version",
17
+ "schema_version",
18
+ "digests",
19
+ "ui_design_brain",
20
+ "ui_pattern_ids",
21
+ "projected_ids",
22
+ "lane_coverage",
23
+ "output_paths",
24
+ "output_digests",
25
+ "manifest_digest"
26
+ ],
27
+ "properties": {
28
+ "_generated": { "type": "string" },
29
+ "package": { "const": "@verndale/accessibility-standards@3.0.0" },
30
+ "profile": { "enum": ["conductor", "ai-orchestration"] },
31
+ "profile_version": { "const": "3.0.0" },
32
+ "schema_version": { "const": 3 },
33
+ "digests": {
34
+ "type": "object",
35
+ "required": ["source", "profile", "ui_design_brain_bindings", "config", "routes"],
36
+ "additionalProperties": { "$ref": "#/$defs/digest" }
37
+ },
38
+ "ui_design_brain": { "$ref": "#/$defs/uiDesignBrain" },
39
+ "ui_pattern_ids": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
40
+ "projected_ids": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
41
+ "lane_coverage": { "type": "object" },
42
+ "output_paths": { "type": "object", "additionalProperties": { "type": "string" } },
43
+ "output_digests": { "type": "object", "additionalProperties": { "$ref": "#/$defs/digest" } },
44
+ "manifest_digest": { "$ref": "#/$defs/digest" }
45
+ },
46
+ "additionalProperties": true
47
+ },
48
+ "distribution": {
49
+ "type": "object",
50
+ "required": ["_generated", "package", "schema_version", "source_digest", "profile_digests", "ui_design_brain", "profiles"],
51
+ "properties": {
52
+ "_generated": { "type": "string" },
53
+ "package": { "const": "@verndale/accessibility-standards@3.0.0" },
54
+ "schema_version": { "const": 3 },
55
+ "source_digest": { "$ref": "#/$defs/digest" },
56
+ "profile_digests": {
57
+ "type": "object",
58
+ "required": ["conductor", "ai-orchestration"],
59
+ "additionalProperties": { "$ref": "#/$defs/digest" }
60
+ },
61
+ "ui_design_brain": { "$ref": "#/$defs/uiDesignBrain" },
62
+ "profiles": {
63
+ "type": "object",
64
+ "required": ["conductor", "ai-orchestration"],
65
+ "additionalProperties": {
66
+ "type": "object",
67
+ "required": ["version", "profile_digest", "source_digest", "outputs"],
68
+ "properties": {
69
+ "version": { "const": "3.0.0" },
70
+ "profile_digest": { "$ref": "#/$defs/digest" },
71
+ "source_digest": { "$ref": "#/$defs/digest" },
72
+ "outputs": { "type": "object", "additionalProperties": { "$ref": "#/$defs/digest" } }
73
+ }
74
+ }
75
+ }
76
+ },
77
+ "additionalProperties": true
78
+ }
79
+ },
80
+ "oneOf": [
81
+ { "$ref": "#/$defs/consumer" },
82
+ { "$ref": "#/$defs/distribution" }
83
+ ]
84
+ }
@@ -1 +1,26 @@
1
- {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"semantic.schema.json","allOf":[{"$ref":"record.schema.json"},{"type":"object","required":["kind","requirement","proof"],"properties":{"kind":{"const":"semantic"},"requirement":{"type":"string"},"proof":{"type":"array","items":{"enum":["unit","axe","e2e","human"]},"minItems":1,"uniqueItems":true}}}]}
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "semantic.schema.json",
4
+ "type": "object",
5
+ "required": ["id", "version", "title", "kind", "requirement", "proof", "standards_refs"],
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "id": { "type": "string", "pattern": "^semantics\\.[a-z0-9]+(?:[.-][a-z0-9]+)*$" },
9
+ "version": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+$" },
10
+ "title": { "type": "string", "pattern": "\\S" },
11
+ "kind": { "const": "semantic" },
12
+ "requirement": { "type": "string", "pattern": "\\S" },
13
+ "proof": {
14
+ "type": "array",
15
+ "items": { "enum": ["unit", "axe", "e2e", "human"] },
16
+ "minItems": 1,
17
+ "uniqueItems": true
18
+ },
19
+ "standards_refs": {
20
+ "type": "array",
21
+ "items": { "$ref": "standards-reference.schema.json" },
22
+ "minItems": 1,
23
+ "uniqueItems": true
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,105 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "standards-reference.schema.json",
4
+ "$defs": {
5
+ "criterionId": {
6
+ "enum": [
7
+ "1.1.1", "1.2.1", "1.2.2", "1.2.3", "1.2.4", "1.2.5", "1.2.6", "1.2.7", "1.2.8", "1.2.9",
8
+ "1.3.1", "1.3.2", "1.3.3", "1.3.4", "1.3.5", "1.3.6",
9
+ "1.4.1", "1.4.2", "1.4.3", "1.4.4", "1.4.5", "1.4.6", "1.4.7", "1.4.8", "1.4.9", "1.4.10", "1.4.11", "1.4.12", "1.4.13",
10
+ "2.1.1", "2.1.2", "2.1.3", "2.1.4",
11
+ "2.2.1", "2.2.2", "2.2.3", "2.2.4", "2.2.5", "2.2.6",
12
+ "2.3.1", "2.3.2", "2.3.3",
13
+ "2.4.1", "2.4.2", "2.4.3", "2.4.4", "2.4.5", "2.4.6", "2.4.7", "2.4.8", "2.4.9", "2.4.10", "2.4.11", "2.4.12", "2.4.13",
14
+ "2.5.1", "2.5.2", "2.5.3", "2.5.4", "2.5.5", "2.5.6", "2.5.7", "2.5.8",
15
+ "3.1.1", "3.1.2", "3.1.3", "3.1.4", "3.1.5", "3.1.6",
16
+ "3.2.1", "3.2.2", "3.2.3", "3.2.4", "3.2.5", "3.2.6",
17
+ "3.3.1", "3.3.2", "3.3.3", "3.3.4", "3.3.5", "3.3.6", "3.3.7", "3.3.8", "3.3.9",
18
+ "4.1.2", "4.1.3"
19
+ ]
20
+ },
21
+ "levelAIds": {
22
+ "enum": [
23
+ "1.1.1", "1.2.1", "1.2.2", "1.2.3", "1.3.1", "1.3.2", "1.3.3", "1.4.1", "1.4.2",
24
+ "2.1.1", "2.1.2", "2.1.4", "2.2.1", "2.2.2", "2.3.1", "2.4.1", "2.4.2", "2.4.3", "2.4.4",
25
+ "2.5.1", "2.5.2", "2.5.3", "2.5.4", "3.1.1", "3.2.1", "3.2.2", "3.2.6", "3.3.1", "3.3.2", "3.3.7", "4.1.2"
26
+ ]
27
+ },
28
+ "levelAAIds": {
29
+ "enum": [
30
+ "1.2.4", "1.2.5", "1.3.4", "1.3.5", "1.4.3", "1.4.4", "1.4.5", "1.4.10", "1.4.11", "1.4.12", "1.4.13",
31
+ "2.4.5", "2.4.6", "2.4.7", "2.4.11", "2.5.7", "2.5.8", "3.1.2", "3.2.3", "3.2.4", "3.3.3", "3.3.4", "3.3.8", "4.1.3"
32
+ ]
33
+ },
34
+ "levelAAAIds": {
35
+ "enum": [
36
+ "1.2.6", "1.2.7", "1.2.8", "1.2.9", "1.3.6", "1.4.6", "1.4.7", "1.4.8", "1.4.9",
37
+ "2.1.3", "2.2.3", "2.2.4", "2.2.5", "2.2.6", "2.3.2", "2.3.3", "2.4.8", "2.4.9", "2.4.10", "2.4.12", "2.4.13", "2.5.5", "2.5.6",
38
+ "3.1.3", "3.1.4", "3.1.5", "3.1.6", "3.2.5", "3.3.5", "3.3.6", "3.3.9"
39
+ ]
40
+ },
41
+ "levelMatch": {
42
+ "oneOf": [
43
+ { "properties": { "identifier": { "$ref": "#/$defs/levelAIds" }, "level": { "const": "A" } }, "required": ["identifier", "level"] },
44
+ { "properties": { "identifier": { "$ref": "#/$defs/levelAAIds" }, "level": { "const": "AA" } }, "required": ["identifier", "level"] },
45
+ { "properties": { "identifier": { "$ref": "#/$defs/levelAAAIds" }, "level": { "const": "AAA" } }, "required": ["identifier", "level"] }
46
+ ]
47
+ },
48
+ "wcagUrl": {
49
+ "type": "string",
50
+ "pattern": "^https://www\\.w3\\.org/TR/WCAG22/#(?:non-text-content|audio-only-and-video-only-prerecorded|captions-prerecorded|audio-description-or-media-alternative-prerecorded|captions-live|audio-description-prerecorded|sign-language-prerecorded|extended-audio-description-prerecorded|media-alternative-prerecorded|audio-only-live|info-and-relationships|meaningful-sequence|sensory-characteristics|orientation|identify-input-purpose|identify-purpose|use-of-color|audio-control|contrast-minimum|resize-text|images-of-text|contrast-enhanced|low-or-no-background-audio|visual-presentation|images-of-text-no-exception|reflow|non-text-contrast|text-spacing|content-on-hover-or-focus|keyboard|no-keyboard-trap|keyboard-no-exception|character-key-shortcuts|timing-adjustable|pause-stop-hide|no-timing|interruptions|re-authenticating|timeouts|three-flashes-or-below-threshold|three-flashes|animation-from-interactions|bypass-blocks|page-titled|focus-order|link-purpose-in-context|multiple-ways|headings-and-labels|focus-visible|location|link-purpose-link-only|section-headings|focus-not-obscured-minimum|focus-not-obscured-enhanced|focus-appearance|pointer-gestures|pointer-cancellation|label-in-name|motion-actuation|target-size-enhanced|concurrent-input-mechanisms|dragging-movements|target-size-minimum|language-of-page|language-of-parts|unusual-words|abbreviations|reading-level|pronunciation|on-focus|on-input|consistent-navigation|consistent-identification|change-on-request|consistent-help|error-identification|labels-or-instructions|error-suggestion|error-prevention-legal-financial-data|help|error-prevention-all|redundant-entry|accessible-authentication-minimum|accessible-authentication-enhanced|name-role-value|status-messages)$"
51
+ },
52
+ "understandingUrl": {
53
+ "type": "string",
54
+ "pattern": "^https://www\\.w3\\.org/WAI/WCAG22/Understanding/(?:non-text-content|audio-only-and-video-only-prerecorded|captions-prerecorded|audio-description-or-media-alternative-prerecorded|captions-live|audio-description-prerecorded|sign-language-prerecorded|extended-audio-description-prerecorded|media-alternative-prerecorded|audio-only-live|info-and-relationships|meaningful-sequence|sensory-characteristics|orientation|identify-input-purpose|identify-purpose|use-of-color|audio-control|contrast-minimum|resize-text|images-of-text|contrast-enhanced|low-or-no-background-audio|visual-presentation|images-of-text-no-exception|reflow|non-text-contrast|text-spacing|content-on-hover-or-focus|keyboard|no-keyboard-trap|keyboard-no-exception|character-key-shortcuts|timing-adjustable|pause-stop-hide|no-timing|interruptions|re-authenticating|timeouts|three-flashes-or-below-threshold|three-flashes|animation-from-interactions|bypass-blocks|page-titled|focus-order|link-purpose-in-context|multiple-ways|headings-and-labels|focus-visible|location|link-purpose-link-only|section-headings|focus-not-obscured-minimum|focus-not-obscured-enhanced|focus-appearance|pointer-gestures|pointer-cancellation|label-in-name|motion-actuation|target-size-enhanced|concurrent-input-mechanisms|dragging-movements|target-size-minimum|language-of-page|language-of-parts|unusual-words|abbreviations|reading-level|pronunciation|on-focus|on-input|consistent-navigation|consistent-identification|change-on-request|consistent-help|error-identification|labels-or-instructions|error-suggestion|error-prevention-legal-financial-data|help|error-prevention-all|redundant-entry|accessible-authentication-minimum|accessible-authentication-enhanced|name-role-value|status-messages)\\.html$"
55
+ }
56
+ },
57
+ "type": "object",
58
+ "required": ["authority", "identifier", "url", "normative"],
59
+ "additionalProperties": false,
60
+ "properties": {
61
+ "authority": { "enum": ["wcag-2.2", "wcag-2.2-understanding", "wai-aria-1.2", "aria-apg"] },
62
+ "identifier": { "type": "string", "pattern": "\\S" },
63
+ "url": { "type": "string", "pattern": "^https://" },
64
+ "normative": { "type": "boolean" },
65
+ "level": { "enum": ["A", "AA", "AAA"] }
66
+ },
67
+ "oneOf": [
68
+ {
69
+ "properties": {
70
+ "authority": { "const": "wcag-2.2" },
71
+ "identifier": { "$ref": "#/$defs/criterionId" },
72
+ "url": { "$ref": "#/$defs/wcagUrl" },
73
+ "normative": { "const": true }
74
+ },
75
+ "required": ["level"],
76
+ "allOf": [{ "$ref": "#/$defs/levelMatch" }]
77
+ },
78
+ {
79
+ "properties": {
80
+ "authority": { "const": "wcag-2.2-understanding" },
81
+ "identifier": { "$ref": "#/$defs/criterionId" },
82
+ "url": { "$ref": "#/$defs/understandingUrl" },
83
+ "normative": { "const": false }
84
+ },
85
+ "required": ["level"],
86
+ "allOf": [{ "$ref": "#/$defs/levelMatch" }]
87
+ },
88
+ {
89
+ "properties": {
90
+ "authority": { "const": "wai-aria-1.2" },
91
+ "url": { "type": "string", "pattern": "^https://www\\.w3\\.org/TR/wai-aria-1\\.2/" },
92
+ "normative": { "const": true }
93
+ },
94
+ "not": { "required": ["level"] }
95
+ },
96
+ {
97
+ "properties": {
98
+ "authority": { "const": "aria-apg" },
99
+ "url": { "type": "string", "pattern": "^https://www\\.w3\\.org/WAI/ARIA/apg/" },
100
+ "normative": { "const": false }
101
+ },
102
+ "not": { "required": ["level"] }
103
+ }
104
+ ]
105
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "ui-design-brain-bindings.schema.json",
4
+ "type": "object",
5
+ "required": ["version", "source", "bindings"],
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "version": { "type": "integer", "const": 1 },
9
+ "source": {
10
+ "type": "object",
11
+ "required": ["package", "package_version", "catalog_authority_version", "repository", "manifest_path", "source_digest", "manifest_digest", "pattern_count", "tracking_issue"],
12
+ "additionalProperties": false,
13
+ "properties": {
14
+ "package": { "const": "@verndale/ui-design-brain" },
15
+ "package_version": { "const": "1.16.0" },
16
+ "catalog_authority_version": { "const": "1.15.1" },
17
+ "repository": { "const": "https://github.com/verndale/ui-design-brain" },
18
+ "manifest_path": { "const": "skills/ui-design-brain/catalog-manifest.json" },
19
+ "source_digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
20
+ "manifest_digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
21
+ "pattern_count": { "type": "integer", "minimum": 1 },
22
+ "tracking_issue": { "const": "https://github.com/verndale/ui-design-brain/issues/47" }
23
+ }
24
+ },
25
+ "bindings": {
26
+ "type": "array",
27
+ "minItems": 1,
28
+ "items": {
29
+ "type": "object",
30
+ "required": ["ui_pattern_id", "classification"],
31
+ "additionalProperties": false,
32
+ "properties": {
33
+ "ui_pattern_id": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" },
34
+ "classification": { "enum": ["direct", "candidate", "baseline-only"] },
35
+ "pattern_ids": {
36
+ "type": "array",
37
+ "items": { "type": "string", "pattern": "^pattern\\." },
38
+ "uniqueItems": true
39
+ },
40
+ "baseline_semantic_ids": {
41
+ "type": "array",
42
+ "items": { "type": "string", "pattern": "^semantics\\." },
43
+ "minItems": 1,
44
+ "uniqueItems": true
45
+ },
46
+ "discriminator_facts": {
47
+ "type": "array",
48
+ "items": { "type": "string" },
49
+ "minItems": 1,
50
+ "uniqueItems": true
51
+ },
52
+ "candidates": {
53
+ "type": "array",
54
+ "minItems": 1,
55
+ "items": {
56
+ "type": "object",
57
+ "required": ["pattern_id", "when"],
58
+ "additionalProperties": false,
59
+ "properties": {
60
+ "pattern_id": { "type": "string", "pattern": "^pattern\\." },
61
+ "when": { "type": "object", "minProperties": 1, "maxProperties": 1 }
62
+ }
63
+ }
64
+ }
65
+ },
66
+ "allOf": [
67
+ {
68
+ "if": { "properties": { "classification": { "const": "direct" } } },
69
+ "then": { "required": ["pattern_ids"], "not": { "anyOf": [{ "required": ["candidates"] }, { "required": ["discriminator_facts"] }] } }
70
+ },
71
+ {
72
+ "if": { "properties": { "classification": { "const": "candidate" } } },
73
+ "then": { "required": ["discriminator_facts", "candidates"] }
74
+ },
75
+ {
76
+ "if": { "properties": { "classification": { "const": "baseline-only" } } },
77
+ "then": {
78
+ "required": ["baseline_semantic_ids"],
79
+ "not": { "anyOf": [{ "required": ["pattern_ids"] }, { "required": ["candidates"] }, { "required": ["discriminator_facts"] }] }
80
+ }
81
+ }
82
+ ]
83
+ }
84
+ }
85
+ }
86
+ }