@reqvire-org/ads 0.4.0 → 0.4.2

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 (394) hide show
  1. package/README.md +105 -86
  2. package/dist/a11y.mjs +108 -29
  3. package/dist/analysis/compiler-options.mjs +13 -0
  4. package/dist/analysis/context.mjs +46 -0
  5. package/dist/analysis/file-tree.mjs +52 -0
  6. package/dist/analysis/helpers.mjs +140 -0
  7. package/dist/analysis/impact.mjs +20 -0
  8. package/dist/analysis/inputs.mjs +15 -0
  9. package/dist/analysis/native-adapter.mjs +180 -0
  10. package/dist/analysis/native-project.mjs +323 -0
  11. package/dist/analysis/queries.mjs +133 -0
  12. package/dist/analysis/service.mjs +146 -0
  13. package/dist/analysis/standalone.mjs +57 -0
  14. package/dist/analysis/syntax.mjs +164 -0
  15. package/dist/analysis/worker.mjs +182 -0
  16. package/dist/assets.mjs +5 -5
  17. package/dist/atomic-composition.mjs +191 -70
  18. package/dist/atomic-trace.mjs +120 -50
  19. package/dist/behavior-libraries.mjs +106 -37
  20. package/dist/behaviors.mjs +219 -77
  21. package/dist/boundaries.mjs +135 -38
  22. package/dist/brand-assets.mjs +219 -47
  23. package/dist/brands.mjs +86 -27
  24. package/dist/bun-compiler.mjs +28 -14
  25. package/dist/bun-worker.mjs +7 -5
  26. package/dist/capture/worker.mjs +15 -4
  27. package/dist/capture-store.mjs +4 -2
  28. package/dist/capture.mjs +17 -14
  29. package/dist/check-service.mjs +40 -57
  30. package/dist/check.mjs +749 -188
  31. package/dist/cli.mjs +200 -99
  32. package/dist/color-values.mjs +21 -21
  33. package/dist/component-contrast.mjs +2 -2
  34. package/dist/config.mjs +303 -135
  35. package/dist/construction-styles.cjs +10 -0
  36. package/dist/control-padding.mjs +45 -25
  37. package/dist/css-values.mjs +3 -2
  38. package/dist/declarative-flow.mjs +209 -109
  39. package/dist/design-values.mjs +136 -51
  40. package/dist/development-runtime.mjs +4 -6
  41. package/dist/draft-boundary.mjs +11 -6
  42. package/dist/evidence.mjs +1 -1
  43. package/dist/finding-rules.mjs +7 -5
  44. package/dist/font-rules.mjs +2 -2
  45. package/dist/fonts-generated.mjs +2 -2
  46. package/dist/foundation-views.mjs +238 -0
  47. package/dist/foundation.mjs +63 -39
  48. package/dist/generated-entries.mjs +101 -34
  49. package/dist/icons.mjs +79 -32
  50. package/dist/image-attributes.mjs +109 -36
  51. package/dist/image-size.mjs +1 -1
  52. package/dist/index.mjs +0 -2
  53. package/dist/init.mjs +122 -41
  54. package/dist/investigations.mjs +2 -2
  55. package/dist/layers.mjs +298 -129
  56. package/dist/layout-widths.mjs +180 -85
  57. package/dist/linaria/preserve-values.cjs +7 -0
  58. package/dist/linaria/spatial-inputs.cjs +56 -0
  59. package/dist/lockup-composition.mjs +44 -0
  60. package/dist/lockup-model.cjs +64 -0
  61. package/dist/mcp/THIRD_PARTY_NOTICES.md +51 -1
  62. package/dist/mcp/apps.mjs +4 -30
  63. package/dist/mcp/behavior-pages.mjs +72 -24
  64. package/dist/mcp/build-status.mjs +257 -64
  65. package/dist/mcp/catalog.mjs +90 -26
  66. package/dist/mcp/context.mjs +17 -18
  67. package/dist/mcp/draft-discovery.mjs +44 -21
  68. package/dist/mcp/drafts.mjs +901 -281
  69. package/dist/mcp/execution-coordinator.mjs +417 -167
  70. package/dist/mcp/execution-results.mjs +7 -7
  71. package/dist/mcp/mutations.mjs +670 -234
  72. package/dist/mcp/preview-watch.mjs +448 -170
  73. package/dist/mcp/preview-widget.bundle.js +44 -50
  74. package/dist/mcp/prompts.mjs +5 -5
  75. package/dist/mcp/result-pages.mjs +1 -1
  76. package/dist/mcp/sandbox-host.mjs +1 -1
  77. package/dist/mcp/server.mjs +2402 -577
  78. package/dist/mcp/showcase-host.mjs +165 -41
  79. package/dist/mcp/skills.mjs +1 -1
  80. package/dist/mcp/text-diff.mjs +29 -10
  81. package/dist/paint-contracts.mjs +174 -81
  82. package/dist/palette-generated.mjs +2 -2
  83. package/dist/preview-bun.mjs +493 -187
  84. package/dist/preview-failure.mjs +1 -1
  85. package/dist/preview-files.mjs +13 -13
  86. package/dist/preview-imports.mjs +104 -55
  87. package/dist/preview-inputs.mjs +2 -2
  88. package/dist/preview-requests.mjs +24 -0
  89. package/dist/preview-resources.mjs +288 -147
  90. package/dist/preview-scope.mjs +5 -4
  91. package/dist/program-cache.mjs +8 -34
  92. package/dist/project-documents.mjs +1 -1
  93. package/dist/public-api.mjs +69 -31
  94. package/dist/public-props.mjs +39 -22
  95. package/dist/{browser-audit → render-audit}/axe-run.mjs +3 -3
  96. package/dist/{browser-audit → render-audit}/image-shape.mjs +2 -2
  97. package/dist/{browser-audit → render-audit}/layout-overflow.mjs +86 -23
  98. package/dist/{browser-audit → render-audit}/non-text-contrast.mjs +86 -27
  99. package/dist/{browser-audit → render-audit}/render-states.mjs +208 -52
  100. package/dist/{browser-audit → render-audit}/worker.mjs +86 -30
  101. package/dist/render-audit.mjs +828 -0
  102. package/dist/render-color-probe.mjs +96 -42
  103. package/dist/resource-limits.mjs +229 -97
  104. package/dist/runtime-contracts.mjs +467 -185
  105. package/dist/scenario-groups.mjs +22 -10
  106. package/dist/scenario-inspector.mjs +6 -43
  107. package/dist/scenario-program.mjs +8 -25
  108. package/dist/scenario-registry.mjs +72 -30
  109. package/dist/scenario-selectors.mjs +161 -64
  110. package/dist/scenario-slots.mjs +149 -56
  111. package/dist/scenario-trace.mjs +215 -109
  112. package/dist/scenarios-compiler.mjs +719 -378
  113. package/dist/scenarios-vite.d.mts +1 -3
  114. package/dist/scenarios-vite.mjs +2 -81
  115. package/dist/scenarios.mjs +421 -157
  116. package/dist/selector-match.mjs +2 -2
  117. package/dist/showcase/client.bundle.js +57 -56
  118. package/dist/showcase/draft-navigation.js +18 -0
  119. package/dist/showcase/favicon.ico +0 -0
  120. package/dist/showcase/favicon.svg +1 -0
  121. package/dist/showcase/foundation-view.css +55 -0
  122. package/dist/showcase/foundation-view.mjs +252 -0
  123. package/dist/showcase/guide-controls.ads.review.mjs +32 -0
  124. package/dist/showcase/icons.js +1 -145
  125. package/dist/showcase/index.html +3 -31
  126. package/dist/showcase/preview-frame.ads.review.css +46 -0
  127. package/dist/showcase/preview-frame.ads.review.d.mts +11 -0
  128. package/dist/showcase/preview-frame.ads.review.mjs +22 -0
  129. package/dist/showcase/preview-state.js +0 -9
  130. package/dist/showcase/refresh-scheduler.js +23 -0
  131. package/dist/showcase/style.css +5 -47
  132. package/dist/showcase/ui/ui.css +1353 -0
  133. package/dist/showcase/ui/ui.js +1062 -0
  134. package/dist/showcase-coverage.mjs +58 -37
  135. package/dist/skills/README.md +24 -23
  136. package/dist/skills/ads-designer/README.md +8 -2
  137. package/dist/skills/ads-designer/SKILL.md +130 -119
  138. package/dist/skills/ads-designer/references/accessibility.md +12 -13
  139. package/dist/skills/ads-designer/references/atomic-styles.md +4 -4
  140. package/dist/skills/ads-designer/references/behaviors.md +30 -27
  141. package/dist/skills/ads-designer/references/branding.md +98 -10
  142. package/dist/skills/ads-designer/references/captures.md +25 -0
  143. package/dist/skills/ads-designer/references/cli.md +21 -24
  144. package/dist/skills/ads-designer/references/contracts.md +7 -6
  145. package/dist/skills/ads-designer/references/design-data.md +49 -52
  146. package/dist/skills/ads-designer/references/drafts.md +20 -17
  147. package/dist/skills/ads-designer/references/evidence.md +1 -5
  148. package/dist/skills/ads-designer/references/guarded-editing.md +14 -18
  149. package/dist/skills/ads-designer/references/layers.md +1 -1
  150. package/dist/skills/ads-designer/references/layout.md +347 -0
  151. package/dist/skills/ads-designer/references/mobile.md +2 -1
  152. package/dist/skills/{ads-motion/references/performance.md → ads-designer/references/motion-performance.md} +5 -1
  153. package/dist/skills/{ads-motion/references/build.md → ads-designer/references/motion.md} +73 -5
  154. package/dist/skills/ads-designer/references/review.md +37 -34
  155. package/dist/skills/ads-designer/references/runtimes.md +33 -30
  156. package/dist/skills/ads-designer/references/scenarios.md +16 -18
  157. package/dist/skills/{ads-break-ui/references/catalog.md → ads-designer/references/stress-catalog.md} +3 -1
  158. package/dist/skills/ads-designer/references/stress-test.md +68 -0
  159. package/dist/skills/ads-designer/references/validation.md +83 -75
  160. package/dist/skills/ads-designer/references/workflows.md +8 -33
  161. package/dist/skills/ads-import/SKILL.md +43 -325
  162. package/dist/skills/ads-import/references/atomic-styles.md +4 -4
  163. package/dist/skills/ads-import/references/behaviors.md +30 -27
  164. package/dist/skills/ads-import/references/branding.md +5 -5
  165. package/dist/skills/ads-import/references/captures.md +25 -0
  166. package/dist/skills/ads-import/references/cli.md +21 -24
  167. package/dist/skills/ads-import/references/compatibility.md +1 -1
  168. package/dist/skills/ads-import/references/contracts.md +7 -6
  169. package/dist/skills/ads-import/references/design-data.md +49 -52
  170. package/dist/skills/ads-import/references/drafts.md +20 -17
  171. package/dist/skills/ads-import/references/evidence.md +1 -5
  172. package/dist/skills/ads-import/references/guarded-editing.md +14 -18
  173. package/dist/skills/ads-import/references/implementation.md +2 -1
  174. package/dist/skills/ads-import/references/layers.md +1 -1
  175. package/dist/skills/ads-import/references/layout.md +347 -0
  176. package/dist/skills/ads-import/references/review.md +37 -34
  177. package/dist/skills/ads-import/references/runtimes.md +33 -30
  178. package/dist/skills/ads-import/references/scenarios.md +16 -18
  179. package/dist/skills/ads-import/references/tokens.md +3 -3
  180. package/dist/skills/ads-import/references/validation.md +83 -75
  181. package/dist/skills/ads-import/references/workflows.md +8 -33
  182. package/dist/skills/ads-migrate/SKILL.md +56 -0
  183. package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +602 -0
  184. package/dist/skills/ads-port/SKILL.md +54 -343
  185. package/dist/skills/ads-port/references/atomic-styles.md +4 -4
  186. package/dist/skills/ads-port/references/behaviors.md +30 -27
  187. package/dist/skills/ads-port/references/captures.md +25 -0
  188. package/dist/skills/ads-port/references/cli.md +21 -24
  189. package/dist/skills/ads-port/references/contracts.md +7 -6
  190. package/dist/skills/ads-port/references/design-data.md +49 -52
  191. package/dist/skills/ads-port/references/drafts.md +20 -17
  192. package/dist/skills/ads-port/references/evidence.md +1 -5
  193. package/dist/skills/ads-port/references/guarded-editing.md +14 -18
  194. package/dist/skills/ads-port/references/layers.md +1 -1
  195. package/dist/skills/ads-port/references/layout.md +347 -0
  196. package/dist/skills/ads-port/references/lint-and-docs.md +8 -11
  197. package/dist/skills/ads-port/references/native-implementation.md +2 -1
  198. package/dist/skills/ads-port/references/review.md +37 -34
  199. package/dist/skills/ads-port/references/runtimes.md +33 -30
  200. package/dist/skills/ads-port/references/scenarios.md +16 -18
  201. package/dist/skills/ads-port/references/validation.md +83 -75
  202. package/dist/skills/ads-port/references/workflows.md +8 -33
  203. package/dist/source-symbols.mjs +1 -8
  204. package/dist/source-values.mjs +266 -128
  205. package/dist/spatial-composition.mjs +322 -0
  206. package/dist/spatial-contexts.cjs +56 -0
  207. package/dist/spatial-css.cjs +351 -0
  208. package/dist/spatial-inputs.cjs +80 -0
  209. package/dist/spatial-metadata.mjs +18 -0
  210. package/dist/spatial-model.cjs +322 -0
  211. package/dist/spatial.mjs +21 -0
  212. package/dist/stage-timing.cjs +20 -0
  213. package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +105 -0
  214. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +275 -0
  215. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  216. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  217. package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +8 -0
  218. package/dist/starters/preact/ds.config.json +25 -6
  219. package/dist/starters/preact/package.json +4 -8
  220. package/dist/starters/preact/tsconfig.json +4 -5
  221. package/dist/starters/preact/vite.config.ts +3 -3
  222. package/dist/starters/react/ADS.md +42 -47
  223. package/dist/starters/react/README.md +47 -49
  224. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +18 -2
  225. package/dist/starters/react/design-system/components/Actions/IconButton/README.md +3 -0
  226. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +5 -0
  227. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +13 -0
  228. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +22 -0
  229. package/dist/starters/react/design-system/index.ts +2 -1
  230. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +1 -0
  231. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +7 -0
  232. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +15 -0
  233. package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +105 -0
  234. package/dist/starters/react/design-system/patterns/Conversation/README.md +9 -0
  235. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +5 -0
  236. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +21 -0
  237. package/dist/starters/react/design-system/patterns/Shell/README.md +43 -0
  238. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +1 -0
  239. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +5 -0
  240. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +21 -0
  241. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +274 -0
  242. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +1 -1
  243. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  244. package/dist/starters/react/design-system/review/index.ads.review.ts +4 -0
  245. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +1 -0
  246. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +6 -0
  247. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +1 -1
  248. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  249. package/dist/starters/react/design-system/showcase/mcp/{main.tsx → main.ads.mount.tsx} +4 -2
  250. package/dist/starters/react/design-system/tokens/catalog.ads.json +1221 -0
  251. package/dist/starters/react/design-system/tokens/colors.css +1 -1
  252. package/dist/starters/react/design-system/tokens/spacing.css +22 -32
  253. package/dist/starters/react/design-system/tokens/spatial.ads.json +70 -0
  254. package/dist/starters/react/design-system/tokens/themes.generated.ts +1 -1
  255. package/dist/starters/react/ds.config.json +25 -6
  256. package/dist/starters/react/package.json +2 -6
  257. package/dist/starters/react/tsconfig.json +2 -3
  258. package/dist/starters/react/vite.config.ts +3 -3
  259. package/dist/style-boundaries.mjs +70 -25
  260. package/dist/task-cache.mjs +173 -72
  261. package/dist/task-worker.mjs +22 -11
  262. package/dist/test-boundaries.mjs +132 -59
  263. package/dist/themes-generated.mjs +1 -1
  264. package/dist/themes-watch.mjs +57 -22
  265. package/dist/themes.mjs +176 -73
  266. package/dist/token-export.mjs +39 -14
  267. package/dist/token-policy.mjs +6 -3
  268. package/dist/token-quality.mjs +6 -6
  269. package/dist/token-samples.mjs +16 -5
  270. package/dist/tokens.mjs +71 -26
  271. package/dist/ui-framework.mjs +16 -14
  272. package/dist/unit-contracts.mjs +251 -104
  273. package/dist/units.mjs +208 -98
  274. package/dist/usage.mjs +138 -38
  275. package/dist/validation-checks.mjs +115 -38
  276. package/dist/validation-inputs.mjs +187 -78
  277. package/dist/validation.mjs +268 -102
  278. package/dist/verification/browser.mjs +27 -5
  279. package/dist/verification.mjs +711 -187
  280. package/docs/ADS.md +90 -79
  281. package/docs/ARCHITECTURE.md +294 -136
  282. package/docs/BEHAVIORS.md +29 -25
  283. package/docs/CACHING.md +52 -17
  284. package/docs/CHANGELOG.md +309 -17
  285. package/docs/CONTRACTS.md +12 -4
  286. package/docs/DESIGN-REFERENCES.md +40 -0
  287. package/docs/GUIDE.md +270 -258
  288. package/docs/MCP.md +181 -324
  289. package/docs/SPATIAL-CHECKS.md +69 -0
  290. package/docs/benchmarks/README.md +39 -0
  291. package/package.json +42 -34
  292. package/dist/browser-audit.mjs +0 -429
  293. package/dist/create.mjs +0 -48
  294. package/dist/lint-config.mjs +0 -50
  295. package/dist/mcp/project-widget.bundle.js +0 -114
  296. package/dist/mcp/reports.mjs +0 -101
  297. package/dist/mcp/widget.bundle.js +0 -147
  298. package/dist/oxlint.mjs +0 -89
  299. package/dist/preview-builder.mjs +0 -133
  300. package/dist/preview-workers.mjs +0 -184
  301. package/dist/showcase.mjs +0 -77
  302. package/dist/skills/ads-break-ui/LICENSE.upstream +0 -21
  303. package/dist/skills/ads-break-ui/README.md +0 -16
  304. package/dist/skills/ads-break-ui/SKILL.md +0 -412
  305. package/dist/skills/ads-break-ui/agents/openai.yaml +0 -4
  306. package/dist/skills/ads-break-ui/references/atomic-styles.md +0 -293
  307. package/dist/skills/ads-break-ui/references/behaviors.md +0 -412
  308. package/dist/skills/ads-break-ui/references/captures.md +0 -135
  309. package/dist/skills/ads-break-ui/references/contracts.md +0 -317
  310. package/dist/skills/ads-break-ui/references/design-data.md +0 -354
  311. package/dist/skills/ads-break-ui/references/drafts.md +0 -194
  312. package/dist/skills/ads-break-ui/references/evidence.md +0 -128
  313. package/dist/skills/ads-break-ui/references/guarded-editing.md +0 -165
  314. package/dist/skills/ads-break-ui/references/layers.md +0 -145
  315. package/dist/skills/ads-break-ui/references/reporting.md +0 -101
  316. package/dist/skills/ads-break-ui/references/review.md +0 -97
  317. package/dist/skills/ads-break-ui/references/runtimes.md +0 -203
  318. package/dist/skills/ads-break-ui/references/scenarios.md +0 -246
  319. package/dist/skills/ads-break-ui/references/validation.md +0 -166
  320. package/dist/skills/ads-break-ui/references/verification.md +0 -58
  321. package/dist/skills/ads-break-ui/references/workflows.md +0 -90
  322. package/dist/skills/ads-designer/references/reporting.md +0 -101
  323. package/dist/skills/ads-import/references/reporting.md +0 -101
  324. package/dist/skills/ads-motion/LICENSE.upstream +0 -21
  325. package/dist/skills/ads-motion/README.md +0 -22
  326. package/dist/skills/ads-motion/SKILL.md +0 -385
  327. package/dist/skills/ads-motion/agents/openai.yaml +0 -4
  328. package/dist/skills/ads-motion/references/atomic-styles.md +0 -293
  329. package/dist/skills/ads-motion/references/audit.md +0 -44
  330. package/dist/skills/ads-motion/references/behaviors.md +0 -412
  331. package/dist/skills/ads-motion/references/captures.md +0 -135
  332. package/dist/skills/ads-motion/references/contracts.md +0 -317
  333. package/dist/skills/ads-motion/references/design-data.md +0 -354
  334. package/dist/skills/ads-motion/references/drafts.md +0 -194
  335. package/dist/skills/ads-motion/references/evidence.md +0 -128
  336. package/dist/skills/ads-motion/references/guarded-editing.md +0 -165
  337. package/dist/skills/ads-motion/references/layers.md +0 -145
  338. package/dist/skills/ads-motion/references/motion-review.md +0 -35
  339. package/dist/skills/ads-motion/references/reporting.md +0 -101
  340. package/dist/skills/ads-motion/references/review.md +0 -97
  341. package/dist/skills/ads-motion/references/runtimes.md +0 -203
  342. package/dist/skills/ads-motion/references/scenarios.md +0 -246
  343. package/dist/skills/ads-motion/references/validation.md +0 -166
  344. package/dist/skills/ads-motion/references/verification.md +0 -39
  345. package/dist/skills/ads-motion/references/workflows.md +0 -90
  346. package/dist/skills/ads-port/references/reporting.md +0 -101
  347. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.ads.contract.ts +0 -6
  348. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.tsx +0 -76
  349. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  350. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  351. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.ads.contract.ts +0 -6
  352. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.tsx +0 -137
  353. package/dist/starters/preact/design-system/showcase/mcp/main.tsx +0 -6
  354. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +0 -7
  355. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx +0 -4
  356. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +0 -7
  357. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx +0 -4
  358. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.contract.ts +0 -6
  359. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.exports.ts +0 -1
  360. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.fixture.ts +0 -12
  361. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.scenario.tsx +0 -17
  362. package/dist/starters/react/design-system/components/Layout/Grid/Grid.tsx +0 -75
  363. package/dist/starters/react/design-system/components/Layout/Grid/README.md +0 -21
  364. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.ads.exports.ts +0 -1
  365. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.tsx +0 -112
  366. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  367. package/dist/starters/react/design-system/review/grid-cell/GridCell.ads.exports.ts +0 -1
  368. package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +0 -18
  369. package/dist/starters/react/design-system/review/index.ts +0 -6
  370. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  371. package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.contract.ts +0 -6
  372. package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.exports.ts +0 -1
  373. package/dist/starters/react/design-system/review/token-preview/TokenPreview.tsx +0 -137
  374. package/dist/starters/react/design-system/showcase/mcp/index.html +0 -1
  375. package/dist/starters/react/design-system/tokens/Color.ads.fixture.ts +0 -124
  376. package/dist/starters/react/design-system/tokens/Color.ads.scenario.tsx +0 -4
  377. package/dist/starters/react/design-system/tokens/Layout.ads.fixture.ts +0 -39
  378. package/dist/starters/react/design-system/tokens/Layout.ads.scenario.tsx +0 -4
  379. package/dist/starters/react/design-system/tokens/Motion.ads.fixture.ts +0 -18
  380. package/dist/starters/react/design-system/tokens/Motion.ads.scenario.tsx +0 -4
  381. package/dist/starters/react/design-system/tokens/Shape.ads.fixture.ts +0 -30
  382. package/dist/starters/react/design-system/tokens/Shape.ads.scenario.tsx +0 -4
  383. package/dist/starters/react/design-system/tokens/Space.ads.fixture.ts +0 -37
  384. package/dist/starters/react/design-system/tokens/Space.ads.scenario.tsx +0 -4
  385. package/dist/starters/react/design-system/tokens/Type.ads.fixture.ts +0 -29
  386. package/dist/starters/react/design-system/tokens/Type.ads.scenario.tsx +0 -4
  387. package/dist/starters/react/package-lock.json +0 -4707
  388. package/dist/token-fixtures.mjs +0 -30
  389. package/docs/benchmarks/bun-previews.md +0 -91
  390. package/docs/benchmarks/preview-memory.md +0 -147
  391. package/docs/benchmarks/turbo-poc.md +0 -284
  392. package/docs/plans/execution-coordination.md +0 -57
  393. /package/dist/{browser-audit → render-audit}/first-render.mjs +0 -0
  394. /package/dist/{browser-audit → render-audit}/layout-shift.mjs +0 -0
@@ -2,17 +2,17 @@
2
2
 
3
3
  Choose [direct source editing or MCP-only editing](workflows.md). CLI commands
4
4
  are available to direct editors; MCP-only clients use exposed tools instead of
5
- assuming shell access. The compiler can be managed by MCP or externally.
5
+ assuming shell access. ADS owns preview compilation: MCP manages its watcher;
6
+ `ads compile` provides the standalone/CI command.
6
7
 
7
8
  Install Bun 1.4.1+ for ADS tooling and previews. The application keeps its own
8
9
  Node/npm or Bun build pipeline. Use these commands alongside this skill's research,
9
10
  implementation, documentation, and verification workflow. ADS must be a project
10
11
  development dependency, and its checks must run before the project's build.
11
12
  Routine builds use the local CLI. ADS manages its internal Turbo dependency and
12
- local task cache automatically; no project Turbo configuration is required. The MCP
13
- server and its preview compiler instead run `ads check` in a warm in-process worker
14
- that reuses parsed sources across edits and remembers passing reports for identical
15
- inputs. `ads assets` also writes the generated entries: the styles entry and the
13
+ local task cache automatically; no project Turbo configuration is required.
14
+ Checks reuse successful source reports only when their captured inputs match.
15
+ `ads assets` also writes the generated entries: the styles entry and the
16
16
  public/review barrels from the owners' `.ads.exports.ts` files.
17
17
  In Hermit-managed projects, pin supported Bun (>=1.4.1); Turbo arrives through
18
18
  ADS in devDependencies, so do not add a separate Hermit/global Turbo installation.
@@ -43,16 +43,16 @@ tooling and rejects conflicting saved/JSX settings instead of converting it.
43
43
 
44
44
  Use the confirmed package name/version if different. For a Bun project, use
45
45
  `bunx --bun @reqvire-org/ads init --framework react`, `bun install` and
46
- `bun --bun run build`. Bun 1.4.1+ suffices; Node is unnecessary. Init detects
47
- `packageManager` or `bun.lock`/`bun.lockb`, then defaults to Bun when launched
48
- with Bun. See [runtimes.md](runtimes.md)
46
+ `bun --bun run build`. Bun 1.4.1+ suffices; Node is unnecessary. Init reads
47
+ `packageManager` or `bun.lock`/`bun.lockb`. See [runtimes.md](runtimes.md)
49
48
  for MCP configuration and portable compiler/behavior commands.
50
- Use `--package-manager bun` only for an explicit override. Preserve the project's
51
- existing package-manager policy and lockfile.
49
+ Init reads the package manager from the project: `packageManager` in `package.json`,
50
+ else its lockfile. A project that declares neither must set one first. Preserve the
51
+ project's existing package-manager policy and lockfile.
52
52
 
53
- `create <folder> --framework react|preact` starts from zero: it copies the starter
54
- shipped in the same package version into a new or empty folder (`--name` sets the
55
- package name, `--package-manager bun` adapts scripts and lockfile), then runs init.
53
+ `init --include-starter` also adds the starter shipped in the same package version: its
54
+ example design system, Vite and TypeScript setup, scripts and development dependencies
55
+ that the project lacks. It never replaces an existing file or writes a lockfile.
56
56
  `init` accepts no directory argument and requires an existing `package.json`. For an existing app, init preserves app files,
57
57
  framework configuration, lockfiles, and build scripts. It adds only missing ADS
58
58
  foundation files, config, development dependencies, and build checks. Existing
@@ -69,11 +69,11 @@ commit the updated lockfile.
69
69
  ## Local checkout testing
70
70
 
71
71
  If no published distribution exists, build and pack the tooling checkout with
72
- `npm run build` and `npm run pack:tool`. Resolve its tarball to an absolute path.
72
+ `bun run build` and `bun run pack:tool`. Resolve its tarball to an absolute path.
73
73
  From inside an existing test project:
74
74
 
75
75
  ```sh
76
- ads_tool_package="/absolute/path/to/reqvire-org-ads-0.3.2.tgz"
76
+ ads_tool_package="/absolute/path/to/the-tarball-produced-by-pack-tool.tgz"
77
77
  npx --yes --package "$ads_tool_package" ads --help
78
78
  npx --yes --package "$ads_tool_package" ads init --framework react --tool-package "$ads_tool_package"
79
79
  npm install
@@ -81,7 +81,7 @@ npm run build
81
81
  ```
82
82
 
83
83
  Use Bun's install/build commands for Bun projects. Keep npx options before
84
- `ds`. `--tool-package` is optional local-testing/version-override support;
84
+ `ads`. `--tool-package` is optional local-testing/version-override support;
85
85
  registry users do not need an archive. A `file:` dependency must remain
86
86
  available wherever dependencies are installed. A published pinned version is
87
87
  portable between machines.
@@ -114,23 +114,20 @@ Integrate that directory through the app's existing asset mount. Fixed token
114
114
  names and prefixes are required; project values and artwork remain project-owned.
115
115
  Builds use the installed local tool, not the initializing npx cache. Ignore `.ds/`.
116
116
  Register component-specific guards as explicit project scripts and include them
117
- in the project build and, when needed, `acceptance.checks`. `lint-config` is an
118
- optional adapter for projects that explicitly choose Oxlint; ADS gates do not
119
- require or invoke it.
117
+ in the project build and, when needed, `acceptance.scripts`.
120
118
 
121
119
  `mcp` starts stdio plus its local website; `showcase` starts the browser-only MCP
122
120
  runtime. Open the existing URL from `ads_status` when connected; otherwise use
123
- `npm run dev:showcase` or the installed `ads showcase`. With the saved framework
124
- and `mcp.previewManifest`, ADS supplies the Bun compiler and prewarms views
121
+ `npm run dev:showcase` or the installed `ads showcase`. With the saved framework,
122
+ ADS supplies the Bun compiler and prewarms views
125
123
  sequentially. Init supplies a framework mount adapter; existing projects can keep
126
- their own compatible adapter. Remove old project `mcp.previewWatch` build commands;
127
- then use the same foundation and Linaria extraction as the application. Source discovery,
124
+ their own compatible adapter, using the same foundation and Linaria extraction as the application. Source discovery,
128
125
  selected component/pattern/style/brand imports, explicit theme-value imports, and
129
126
  migration are agent workflows. There is no CLI `import` command. Core checks
130
127
  do not copy source, import values, or establish behavior/motion parity; continue
131
128
  project type checking, meaningful tests, and browser comparisons.
132
129
 
133
130
  If no CLI distribution is available, continue with the target's existing
134
- checks; creating a project needs the ADS package (`ads create`).
131
+ checks; setting ADS up needs the ADS package (`ads init`).
135
132
  Install skills separately with `npx skills`; the tool does not install skills
136
133
  or fetch an external UI catalogue.
@@ -21,14 +21,15 @@ components/Plot/
21
21
  Plot.ads.behavior.spec.ts registered browser checks
22
22
  Plot.ads.test.tsx optional unit tests
23
23
  Plot.ads.helpers.ts development-only adapters
24
+ Plot.ads.review.tsx project-specific demonstration presentation
24
25
  README.md API/provenance
25
26
  ```
26
27
 
27
28
  This is an example, not a required inventory. Use the same roles for patterns,
28
- controllers and relevant development owners. `review/` remains a separate
29
- shared development layer; its implementation filenames need no extra marker.
29
+ controllers and relevant development owners. `review/` optionally organizes shared scenario helpers; every implementation and
30
+ style file still carries its `.ads.review.*` marker.
30
31
  Runtime components, types and styles cannot import `.ads.` files, tests, fixtures
31
- or review code through aliases, barrels or helpers. Unknown `.ads.` roles are
32
+ or review code through aliases, barrels or helpers. Review presentation uses `.ads.review.*`; generic preview mounting uses `.ads.mount.*`. Unknown `.ads.` roles are
32
33
  still development-only and are diagnosed. Fixtures/helpers cannot define styles;
33
34
  put demo framing in review. Ordinary README/license files retain their names.
34
35
 
@@ -55,10 +56,10 @@ export type { ButtonProps } from "./Button";
55
56
 
56
57
  An exports file holds only named re-exports of its own owner's modules by relative
57
58
  path: no `export *`, no other code, no peers' files. Public names are unique across
58
- owners. ADS generates the public barrel (`publicEntry`, normally `index.ts`) by copying
59
+ owners. ADS generates the public barrel (`index.ts`) by copying
59
60
  every exports file's re-exports with paths rebased onto the barrel, so it names each
60
61
  public export directly from its source and a product build never includes an exports
61
- file. The review entry is generated the same way from the exports files under `review/`. It also generates the styles entry (`stylesEntry`) with one `@import`
62
+ file. The review entry is generated the same way from the exports files under `review/`. It also generates the styles entry (`styles.css`) with one `@import`
62
63
  per canonical token sheet in foundation order; the public barrel imports it first.
63
64
  Never edit a generated entry: `ads check` reports a stale or hand-edited one
64
65
  (`generated-entry`), and the showcase, the MCP server, draft previews, acceptance
@@ -208,7 +209,7 @@ one declared field, or a per-theme value built with the generated helpers from
208
209
  takes the value for its color scheme). Every value is a declared field and the argument is
209
210
  an object literal without spreads. The normal key/map/root proof still applies. Raw
210
211
  constants, undeclared fields, `light-dark()`, extra writes and unknown transforms are
211
- rejected. The browser audit checks an accessible color reference in every theme's branch;
212
+ rejected. The render audit checks an accessible color reference in every theme's branch;
212
213
  a local SVG URL or `none` is not a color there.
213
214
 
214
215
  Families cannot overlap shared tokens, private runtime
@@ -34,6 +34,19 @@ belong under the shared token directory. The public contract remains about share
34
34
  names, meanings, types and alias relationships; ADS supplies no hardcoded palette,
35
35
  spacing grid or component catalogue.
36
36
 
37
+ ## How the Tokens section is built
38
+
39
+ ADS renders the Tokens section itself from the token sheets and `tokens/catalog.ads.json`. Each
40
+ catalogue group is a sidebar group with one view per kind of token (fills, text colors, font
41
+ sizes, shadows…), derived from each token's sample property; a group with one kind is one view. The catalogue is project data: groups (`id`, `title`) and, for each
42
+ token, a sample binding `{ "token", "property", "probe" }`. `property` is the CSS property the
43
+ token is shown with; `probe` is a valid test value different from the token's own, which the view
44
+ swaps in to prove the property responds. Each token belongs to at most one group. A token with no
45
+ entry is listed under **Values** with a default binding for its type. When adding a token, add
46
+ its catalogue entry in the same change. Invalid JSON, unknown fields, duplicate groups or
47
+ bindings, and entries for undefined tokens are `foundation-catalog` errors. Do not write token
48
+ scenarios or review renderers; ADS owns the presentation.
49
+
37
50
  ## Component variables are mappings and runtime mechanics
38
51
 
39
52
  `--ds-*` belongs to component implementations, `--ux-*` to patterns and review
@@ -72,6 +85,15 @@ calculations using shared values can remain valid; static analysis cannot prove
72
85
  whether a dimensionless factor represents real geometry or an invented scale.
73
86
  Review that intent and do not disguise a new design decision as arithmetic.
74
87
 
88
+ ## Demonstration geometry stays out of production Data
89
+
90
+ The showcase owns generic preview framing. Project-specific `.ads.review.*`
91
+ helpers may declare finite dimensions for demonstration width/height, logical
92
+ sizes, flex-basis and grid tracks. Those values stay in development source;
93
+ they do not become production tokens. Color, typography, spacing and motion
94
+ still use production Data unchanged. Marked `.ads.*` CSS is excluded from the
95
+ production token inventory and cannot enter the production stylesheet graph.
96
+
75
97
  ## Review overlap without deleting legitimate roles
76
98
 
77
99
  `token-overlap-review` is a nonblocking review item for shared tokens with identical
@@ -113,6 +135,9 @@ keeps independent component token definitions valid.
113
135
  inside a track (segmented control, switch) uses `--control-inset` (add it to the spacing
114
136
  tokens if the project has none). Anything that is not a control does not use
115
137
  `--control-height-*`.
138
+ Local aliases preserve this requirement; a different size's padding token is not a
139
+ substitute. In the starter, control heights and side padding derive from shared spacing
140
+ primitives while retaining their established 32/40/48px heights and 10/14/18px padding.
116
141
 
117
142
  `token-overlap-review` (review) compares values only within a token family (`--radius-*`
118
143
  with `--radius-*`): a radius equal to a spacing step is two scales meeting, not a duplicate.
@@ -120,68 +145,40 @@ with `--radius-*`): a radius equal to a spacing step is two scales meeting, not
120
145
  ## Exchange format
121
146
 
122
147
  `ads tokens --format dtcg` prints the tokens as W3C Design Tokens (Community Group draft)
123
- JSON: groups by family, typed `$value`s, `{group.token}` references for `var()` aliases.
148
+ JSON (over MCP, read `ads://project/tokens/dtcg`, with `?theme=` and `?brand=`): groups by family, typed `$value`s, `{group.token}` references for `var()` aliases.
124
149
  Values the format cannot express (fluid `clamp()` sizes, layered shadows) keep their CSS in
125
150
  `$extensions["org.reqvire.ads"].css`; other themes' values are in
126
151
  `$extensions["org.reqvire.ads"].scopes`.
127
152
 
128
- ## Grid
129
-
130
- The `--grid-*` tokens describe a column grid: `--grid-columns-sm/md/lg` (the starter's 4, 8
131
- and 16), `--grid-gutter`, `--grid-gutter-narrow`, `--grid-gutter-condensed` and
132
- `--grid-margin-sm/md/lg`, aliasing spacing steps. The starter's `Grid` switches columns by
133
- container width (768 and 1024 px) with container queries, since CSS variables cannot be
134
- breakpoints. The showcase's grid overlay draws these tokens over every preview at the same
135
- widths; a project without them shows no overlay. Align text to a cell's edge, not its gutter.
153
+ ## Layout widths
136
154
 
137
- ### Widths are fluid on the grid
138
-
139
- `--grid-span-1` to `--grid-span-16` are widths of N of 16 columns, fluid in their container.
140
- Set one inside a container query, under a `Grid` or another `container-type: inline-size`
141
- ancestor, and leave narrow containers at full width:
142
-
143
- ```css
144
- inline-size: 100%;
145
- @container (min-width: 1024px) { max-inline-size: var(--grid-span-10); }
146
- ```
147
-
148
- Atomic CSS does not keep rule order, so two queries on one property need exclusive ranges:
149
-
150
- ```css
151
- @container (min-width: 768px) and (max-width: 1023.98px) { max-inline-size: var(--grid-span-12); }
152
- @container (min-width: 1024px) { max-inline-size: var(--grid-span-10); }
153
- ```
155
+ Grid geometry is not a set of width tokens. The `--grid-*` tokens are roles in the project's
156
+ spatial definition (`tokens/spatial.ads.json`): breakpoints, column counts, margins and gutter
157
+ insets. Layouts use them through `@ads-layout`, which ADS validates and compiles; see
158
+ `ads://guides/layout`. The showcase's layout guides draw the actual rendered tracks, gutters,
159
+ padding and margins of the inspected element.
154
160
 
155
161
  Use `%` or `fr` for a share of the parent and a `ch` measure for running text
156
162
  (`max-inline-size: 65ch`).
157
163
 
158
- `layout-fixed-width` is an error for `width`, `min-width`, the logical inline sizes, `flex-basis`,
159
- `flex`'s basis and `grid-template-columns` tracks that cannot shrink below 96 px, in any unit, raw,
160
- through a token or by arithmetic. `max-width` and `max-inline-size` are not read: a maximum cannot
161
- force overflow, so cap with them freely.
162
-
163
- When it fires, pick the fix by what the element is:
164
+ `layout-fixed-width` checks the role and bounds of a fixed minimum, rather than imposing a
165
+ universal pixel limit. Fixed sizes come from `spatial.ads.json`'s scale, its mini/fine units,
166
+ standard control/icon sizes, or explicit `layout.widthTokens` roles. Aliases and calculated
167
+ values retain their source roles; a fixed minimum must also fit the spatial maximum.
168
+ Projects without a spatial definition may use their shared `--space-N` sizing primitives.
164
169
 
165
170
  | The element | Do |
166
171
  |---|---|
167
- | A small part: an icon, control, handle or thumbnail | Size it at 96 px or less, plainly: `width: 64px`, `width: var(--control-height-lg)` |
168
- | A panel, column or anything that can give way | `width: min(100%, 280px)`, `flex: 1 1 280px` or a `minmax(0, 280px)` track |
169
- | A part that truly stays that wide | A token listed in `layout.widthTokens` in `ds.config.json`, used plainly: `width: var(--side-pane-width)` |
170
- | A resizable part | A `clamp()` of three such tokens; a runtime variable needs a declared fallback: `clamp(var(--pane-min), var(--ux-pane, var(--pane)), var(--pane-max))` |
171
- | An overlay: dialog, menu, popover, tooltip | Its owner in `layout.fixedWidthUnits`, by unit id or file glob |
172
-
173
- These do not fix it:
174
-
175
- - Another unit. `32.5ch`, `20em` and `20rem` are as fixed as `280px`, and depend on the font too.
176
- `ch` and `em` are measured at the rule's `font-size`, or 16 px.
177
- - `max(100%, 280px)`, `clamp(200px, 50%, 400px)`, `calc(100% + 200px)`: they cannot shrink below
178
- their fixed part.
179
- - `min(100%, 64px)` around a small part. `layout-width-noop` asks for the plain size; in a flex or
180
- grid parent the percentage can affect wrapping, so compare the scenario after changing it.
181
- - A token name. `--control-*`, `--side-pane-*` and every other name are read for their value.
172
+ | A control, icon or fixed part | Use its shared control/icon size or a size in the spatial scale |
173
+ | A panel or column that can give way | Use `width: min(100%, var(--side-pane-width))`, a shrinking flex basis, or a fluid track |
174
+ | A fixed panel beside fluid content | Use `@ads-layout hybrid`; ADS checks remaining space at each tier |
175
+ | Repeated fixed tiles | Use `@ads-layout fixed` with a tile token |
176
+ | A fixed role outside the shared scale | Declare the token in `layout.widthTokens` and use it plainly |
177
+ | An overlay | Declare its owner in `layout.fixedWidthUnits`; keep its sizing in shared tokens |
182
178
 
183
- `ads check` lists every declared fixed width for review (`layout-declared-width`). There is no
184
- per-declaration exception.
179
+ Percentages, fractional tracks, intrinsic sizing, legitimate bounded calculations and maximum
180
+ sizes remain available. `min(100%, var(--space-8))` is valid: wrapping behavior is not a source
181
+ error. Declared fixed roles are listed for review (`layout-declared-width`).
185
182
 
186
183
  `ads audit` opens each control with `aria-haspopup` and measures what opens, hovers and focuses
187
184
  controls for contrast, and checks a control with `aria-busy="true"`. So give overlay triggers
@@ -190,8 +187,8 @@ controls for contrast, and checks a control with `aria-busy="true"`. So give ove
190
187
  `layout-overflow` (`ads audit`) renders every UI scenario at 390, 768 and 1280 px and fails on
191
188
  horizontal page overflow, elements past the viewport and clipped content. `overflow-x: auto`
192
189
  scrollers and `text-overflow: ellipsis` are exempt. It also renders components and patterns in a
193
- 240 px container, and fails when a set width above 96 px overflows it. Make that width fluid, or
194
- scroll it. Only an overlay's owner, listed in `layout.fixedWidthUnits`, stays out of this render.
190
+ 240 px container and lists a set width above 96 px that overflows it for review
191
+ (`layout-overflow-narrow`). Make that width fluid, or scroll it. Only an overlay's owner, listed in `layout.fixedWidthUnits`, stays out of this render.
195
192
 
196
193
  ## Color roles and states
197
194
 
@@ -350,5 +347,5 @@ padding inside components and for gaps between them; a value off the scale needs
350
347
  Six durations (`--dur-instant` 70 ms, `--dur-fast` 110, `--dur-moderate` 150, `--dur-normal`
351
348
  240, `--dur-slow` 400, `--dur-slower` 700) and three curve pairs (standard, enter and exit, each everyday and
352
349
  `-strong`). Every duration is 0 under `prefers-reduced-motion`. Pick by purpose, not by
353
- number: the ads-motion skill's build guide maps each token to its use and gives the easing
350
+ number: the ads-designer motion guide (`references/motion.md`) maps each token to its use and gives the easing
354
351
  rules.
@@ -82,10 +82,12 @@ remain warm within the four-session bound. MCP edits
82
82
  and direct draft-file edits notify warm previews through file events; periodic
83
83
  reconciliation recovers missed events. Watched builds compile requested scenarios
84
84
  and their dependencies, retaining roots used by other open previews. Full builds
85
- and validation still cover the complete configured scope. Incremental semantic
86
- analysis reuses unchanged TypeScript source trees without caching passing checks.
87
- Reopening a known scenario renders through the existing compiler while a worker
88
- refreshes catalogue metadata. Read `discovery.state` (`current`, `pending`,
85
+ and validation still cover the complete configured scope. Native analysis keeps
86
+ isolated draft snapshots and reuses unchanged ASTs and semantic queries.
87
+ Successful architecture reports are reusable only for an exact current input
88
+ key; parsed or compiled output alone is not acceptance evidence.
89
+ Reopening a known scenario renders through the existing compiler while the shared
90
+ asynchronous analysis service refreshes catalogue metadata. Read `discovery.state` (`current`, `pending`,
89
91
  `error`) and its metadata revision separately from the exact proposal revision.
90
92
  New/missing scenario identities wait for fresh discovery. A previous preview may
91
93
  stay visible until compilation finishes; pending/stale output is not evidence.
@@ -129,11 +131,13 @@ If a dependency is dropped, correct the remaining draft's dependency list.
129
131
 
130
132
  DS Explorer keeps drafts in the ordinary Tokens, Components, Patterns and
131
133
  Composition navigation. A Draft badge marks an owner with a pending proposal,
132
- whether or not it has an accepted version. Select that entry and use the header
133
- Split view toggle to compare Accepted and Draft in the right pane. Both use the
134
+ whether or not it has an accepted version. Select an entry with both versions and
135
+ use Split view in the preview toolbar to compare Accepted and Draft in the right pane. Both use the
134
136
  same scenario/theme and available or phone viewport width. New owners appear
135
137
  in their normal section; without an accepted counterpart they show only the
136
- draft and disable comparison. There is no separate Drafts tab or scenario picker.
138
+ draft without a comparison toggle. Entries without a draft also hide the toggle;
139
+ the toolbar disappears when empty. The Drafts tab lists active proposals by
140
+ catalogue category, and selecting one opens its draft.
137
141
  An isolated overlay can also render an unchanged scenario as an explicit review
138
142
  context; that alone does not give its owner a Draft badge. Use `ads_drafts` for
139
143
  draft-only MCP listing.
@@ -149,7 +153,7 @@ include `preview` and preview calls include `build`; inspect `building`,
149
153
  Subscribe to `ads://project/build` and `ads://project/drafts` for standard
150
154
  resource-update notifications on completion, failure and metadata refresh, or
151
155
  subscribe only to an active draft's `preview.resourceUri` for its isolated report.
152
- Modern clients use `subscriptions/listen` resource filters; older clients use
156
+ `2026-07-28` clients use `subscriptions/listen` resource filters; 2025-era clients use
153
157
  `resources/subscribe`. Re-read notified resources to update the existing view;
154
158
  unsubscribe on teardown and resubscribe/read after reconnect. Removal invalidates
155
159
  the scoped resource. Poll when the host does not forward notifications.
@@ -161,16 +165,15 @@ current rendered revision and complete acceptance before finishing the change.
161
165
 
162
166
  After rendered review, call `ads_accept({id,revision})`, or first
163
167
  `ads_accept({id,revision,dryRun:true})` to run every check without writing. It checks
164
- that exact revision, runs mandatory ADS guards plus `acceptance.checks` and, when
165
- `acceptance.behaviorChecks` is enabled, affected registered behavior checks, and
166
- applies passing changes at their normal paths. `acceptance.browserAudit` chooses the
167
- axe-core audit: `"owners"` (default) the draft owners' own UI scenarios, `"affected"`
168
- every scenario the change reaches, `false` none; an `a11y-axe` error rejects the
169
- draft. Checks and renders run in the draft's reviewed workspace through the project's
168
+ that exact revision, runs `ads check`, `acceptance.scripts`, the draft owners' own
169
+ registered behavior tests when `acceptance.behavior` is true and the render audit
170
+ of the draft owners' own scenarios when `acceptance.audit` is true (both default
171
+ true), and applies passing changes at their normal paths; an `a11y-axe` error
172
+ rejects the draft. Checks and renders run in the draft's reviewed workspace through the project's
170
173
  compiler and showcase, and accepting a revision a dry run just passed reuses its
171
174
  results. Fix a failure in the component and accept the new revision. After a series
172
- of accepted drafts, run the full audit of everything affected as a stage:
173
- `ads_validate` with the validation policy and `scope:"changed"`. Changes during checking or baseline conflicts prevent
175
+ of accepted drafts, run `ads_validate` with `scope:"changed"`: it runs the behavior
176
+ tests and render audit of everything those drafts reach. Changes during checking or baseline conflicts prevent
174
177
  application. Successful acceptance removes the proposal and records an event.
175
178
  There is no separate Apply or Iterate action. A failed attempt retains the draft;
176
179
  inspect its returned resultId with `ads_results` and fix the reported boundary.
@@ -187,7 +190,7 @@ Draft presence alone must not fail an application build. Drafts are excluded fro
187
190
  normal ADS discovery and validation inputs. ADS import guards reject direct,
188
191
  aliased, re-exported, dynamic and symlink imports of marked files or ads-drafts/,
189
192
  including attempts from scenarios/tests outside the isolated preview overlay.
190
- Install `draftImportGuard()` from `@reqvire-org/ads/scenarios/vite` in application
193
+ Install `developmentImportGuard()` from `@reqvire-org/ads/scenarios/vite` in application
191
194
  Vite/Rollup builds as well as keeping the mandatory ADS check/build pipeline.
192
195
  It rejects resolved draft modules and glob-expanded module loads. Merely adding a
193
196
  TypeScript exclude pattern is not an import boundary. Do not export drafts, add
@@ -22,7 +22,7 @@ a pass. Keep the reported case outcome separate from whole-run acceptance.
22
22
 
23
23
  ## Retrieve only the evidence needed
24
24
 
25
- `ads_verify` and `ads_accept` reply with counts,
25
+ `ads_validate` and `ads_accept` reply with counts,
26
26
  bounded acceptance, at most three failure previews and `resultId`, within 4096
27
27
  UTF-8 JSON bytes. Full validation still decides acceptance. Do not repeat a suite
28
28
  merely to recover its output, or restate the complete report in conversation.
@@ -122,7 +122,3 @@ the smallest source/browser reproduction when ownership remains unprovable.
122
122
  guard acceptance; registered tests establish only their actual cases/profiles.
123
123
  Neither establishes untested states, visual parity, an accessibility audit or
124
124
  another MCP host's compatibility. Captures show an appearance, not a transition.
125
-
126
- When targeted investigation suggests a tooling defect or missing capability, read
127
- [reporting.md](reporting.md), then use the matching intake tool. Reports preserve
128
- compact evidence without certifying an ADS cause or changing validation policy.
@@ -22,14 +22,12 @@ Coupled owners share one draft (1–64 owners); a pattern that needs an unaccept
22
22
  component change depends on that component's draft instead of including its owner.
23
23
 
24
24
  `dryRun:true` runs every acceptance check on the candidate and writes nothing; the
25
- draft stays. The candidate is checked with mandatory ADS guards, `acceptance.checks`
26
- and, when `acceptance.behaviorChecks` is enabled, affected registered behavior
27
- checks. Registration alone does not require a test at acceptance.
28
- `acceptance.browserAudit` chooses the accessibility audit: `"owners"` (default) audits
29
- the draft owners' own UI scenarios, `"affected"` every scenario the change reaches,
30
- `false` none; `a11y-axe` errors reject the draft. Run the full audit of everything
31
- affected as a stage after a series of accepted drafts: `ads_validate` with the
32
- validation policy and `scope:"changed"` (see [validation policies](validation.md)).
25
+ draft stays. The candidate is checked with `ads check`, `acceptance.scripts`, the
26
+ draft owners' own registered behavior tests (`acceptance.behavior`, default true)
27
+ and the render audit of the draft owners' own scenarios (`acceptance.audit`,
28
+ default true); `a11y-axe` errors reject the draft. What reaches other owners, such
29
+ as a pattern that uses the changed component, is checked by `ads_validate` with
30
+ `scope:"changed"` after a series of accepted drafts (see [the two gates](validation.md)).
33
31
 
34
32
  Checks and browser renders run in the draft's reviewed preview workspace, compiled by
35
33
  the project's one compiler and served by its one showcase. Accepting the revision a
@@ -42,8 +40,8 @@ specs with their owner and use registered checks; a scratchpad run against live
42
40
  source cannot verify unapplied changes. Acceptance revalidates before writing.
43
41
  Dry-run evidence is not saved as passing evidence for the live project.
44
42
 
45
- `ads_verify({unit,checks?})` selects checks for current project source; it has no
46
- draft argument.
43
+ `ads verify --unit <unit>` on the CLI runs one unit's checks against current project
44
+ source; it has no draft argument and is not a gate.
47
45
 
48
46
  Build notifications are deferred until the showcase finishes initial discovery;
49
47
  a preview cannot be opened with an incomplete tool list. A missing App tool is a
@@ -65,8 +63,8 @@ per-test timeouts and its profile's whole-run `timeoutMs`. The latter covers the
65
63
  entire runner process, not each test. Do not rewrite APIs, drop guarantees or
66
64
  disable checks to fit the budget. Inspect measured durations before tuning it.
67
65
 
68
- During verification, inspect `ads_status.behaviors.progress`; during candidate
69
- validation, inspect `ads_status.mutations.progress`. These show completed/active/
66
+ During `ads_validate`, inspect `ads_status.validation.progress`; during draft
67
+ acceptance, inspect `ads_status.mutations.progress`. These show completed/active/
70
68
  pending checks and timings. MCP clients requesting progress also receive updates.
71
69
  A timeout retains reported case outcomes and identifies active/unstarted checks;
72
70
  it still blocks the mutation. `reportedStatus:"passed"` within an incomplete run
@@ -128,12 +126,10 @@ token namespaces/value sheets or token sections in owner contracts. Keep measure
128
126
  runtime geometry separate. Read [design-data.md](design-data.md) before adding a
129
127
  design value or repairing an ownership/value-source diagnostic.
130
128
 
131
- `ads_prepare_token_samples({id, bindings?, draft?})` preserves existing project
132
- samples, removes undeclared names and writes the result into a draft (the given one,
133
- or a new one for the scenario's owner). Supply explicit `{token,property,probe}`
134
- bindings for new samples; unresolved tokens stay reported. ADS does not infer visual
135
- meaning or fabricate renderers. Show the draft, inspect the actual App sample
136
- effects, then accept it.
129
+ Token views take their groups and sample bindings from `tokens/catalog.ads.json`.
130
+ Change them in a `tokens` draft like any other token file, with explicit
131
+ `{token, property, probe}` entries; ADS does not infer visual meaning. Show the draft,
132
+ open the affected `tokens/<Group>` view in both themes, then accept it.
137
133
 
138
134
  Every authored file has one owner, and drafts carry only their owners' files. Shared
139
135
  entries are generated: the public barrel and review entry from each owner's
@@ -78,7 +78,7 @@ build contract.
78
78
  helpers. It cannot depend on patterns or composition, including indirectly
79
79
  through aliases, forwarding exports, helpers or literal dynamic imports.
80
80
  Type-only pattern references do not introduce runtime dependencies.
81
- - Patterns consume component symbols published by the configured public entry,
81
+ - Patterns consume component symbols published by the generated `@ds` public entry,
82
82
  including intentional public types. A relative import of a public symbol is
83
83
  allowed inside the ADS; requiring a self-import through the barrel can create
84
84
  cycles. Private state, class blocks and implementation helpers stay internal.