@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
@@ -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.
@@ -0,0 +1,347 @@
1
+ # Spatial layouts
2
+
3
+ Layout geometry (tracks, placement, gutters, margins, regions and panels) is written with
4
+ `@ads-layout` inside owned Linaria styles. ADS validates it against the project's spatial
5
+ definition and compiles it to ordinary CSS during the build and `ads check`. Nothing ships at
6
+ runtime: no layout component, no placement effect, no ADS script. Placement is correct in the
7
+ first render, in React and Preact.
8
+
9
+ Use it for the structure of components, patterns and screens. Keep ordinary styling (colour,
10
+ type, borders, internal flex alignment of a control) in normal CSS beside it.
11
+
12
+ The starter's spatial defaults draw on [IBM Carbon's 2x Grid](https://www.carbondesignsystem.com/building-blocks/foundations/2x-grid/overview).
13
+ They are a starting point for the project, not a requirement to adopt Carbon's components,
14
+ typeface or every visual convention. Icon/logo alignment with text is a separate
15
+ design decision; box geometry does not prove optical balance.
16
+
17
+ ## The spatial definition
18
+
19
+ `<design-system>/tokens/spatial.ads.json` names tokens from the token sheets. It is project-owned;
20
+ change values in the token sheets and the definition follows.
21
+
22
+ ```json
23
+ {
24
+ "schemaVersion": 1,
25
+ "miniUnit": "--grid-mini-unit",
26
+ "fineUnit": "--grid-fine-unit",
27
+ "scale": ["--space-4", "--space-8", "--space-12", "--space-16", "--space-24", "--space-32", "--space-40", "--space-48"],
28
+ "ratios": ["1:1", "2:1", "2:3", "3:2", "4:3", "16:9"],
29
+ "maxWidth": "--grid-max-width",
30
+ "breakpoints": [
31
+ { "name": "sm", "from": "--grid-breakpoint-sm", "columns": "--grid-columns-sm", "margin": "--grid-margin-sm" },
32
+ { "name": "md", "from": "--grid-breakpoint-md", "columns": "--grid-columns-md", "margin": "--grid-margin-md" },
33
+ { "name": "lg", "from": "--grid-breakpoint-lg", "columns": "--grid-columns-lg", "margin": "--grid-margin-md" }
34
+ ],
35
+ "gutters": {
36
+ "wide": { "start": "--grid-gutter-wide-start", "end": "--grid-gutter-wide-end" },
37
+ "narrow": { "start": "--grid-gutter-narrow-start", "end": "--grid-gutter-narrow-end" },
38
+ "condensed": { "start": "--grid-gutter-condensed-start", "end": "--grid-gutter-condensed-end" }
39
+ }
40
+ }
41
+ ```
42
+
43
+ Breakpoints are ordered; each sets the column count and outer margin from its width on. Gutter
44
+ modes are cell insets: they change where content sits inside a track, not the track pitch, so
45
+ wide, narrow and condensed layouts keep the same columns. An invalid definition is a
46
+ `grid-definition` error.
47
+
48
+ ## Choose the behaviour first
49
+
50
+ | The user wants… | Choose |
51
+ | --- | --- |
52
+ | Extra space to make each item larger | `fluid` tracks |
53
+ | Extra space to show more items | `fixed` tiles |
54
+ | One axis fixed and the other fluid (a side panel, an indent) | `hybrid` |
55
+ | Natural reading flow with consistent gaps | `flow` |
56
+ | A child that lines up with its parent's columns | `inherited` inside a cell |
57
+ | A region that adapts to the space it gets, not the window | `context: container` inside a `container: region` cell |
58
+ | A panel that narrows the content | a hybrid fixed track |
59
+ | A panel that covers the content | `overlay: start` or `end` |
60
+
61
+ Typical defaults, not rules: headers and toolbars are fluid in width and fixed in height; side
62
+ panels and menus are fixed in width; data tables are fluid in width and content-driven in height.
63
+ Text keeps its natural height; do not snap every edge to the mini unit. Dense component interiors
64
+ use the smaller spacing steps without a page grid.
65
+
66
+ ## Examples
67
+
68
+ Each example is a complete Linaria style. Cells are the layout's **direct children**, named by a
69
+ class or `[data-*]` selector, and that class must be on the element.
70
+
71
+ ### Page content on the shared columns
72
+
73
+ ```tsx
74
+ const page = css`
75
+ @ads-layout fluid {
76
+ row-gap: --space-16;
77
+ @ads-cell .ux-page-title { span: full; }
78
+ @ads-cell .ux-page-body { span: full; @ads-at lg { start: 3; span: 10; } }
79
+ @ads-cell .ux-page-aside { span: full; @ads-at lg { start: 13; span: 4; } }
80
+ }
81
+ `;
82
+ ```
83
+
84
+ The layout uses each breakpoint's columns (4 / 8 / 16 in the starter) and margins, capped at the
85
+ system maximum width. `@ads-at lg` applies from `lg` upwards; smaller widths use the base
86
+ placement. ADS checks every placement against every breakpoint's column count.
87
+
88
+ ### Cards: fixed tiles that wrap
89
+
90
+ ```tsx
91
+ const cards = css`
92
+ @ads-layout fixed { tile: --space-48; row-gap: --space-12; }
93
+ `;
94
+ ```
95
+
96
+ More width shows more cards; each card keeps its size. Children are placed automatically.
97
+
98
+ ### Vertical rhythm
99
+
100
+ ```tsx
101
+ const article = css`
102
+ @ads-layout flow { row-gap: --space-flow-paragraph; }
103
+ `;
104
+ ```
105
+
106
+ ### Nested alignment with a different gutter mode
107
+
108
+ ```tsx
109
+ const section = css`
110
+ @ads-layout fluid {
111
+ gutter: wide;
112
+ @ads-cell .ux-section-intro { span: full; @ads-at lg { span: 4; } }
113
+ @ads-cell .ux-section-list {
114
+ span: full;
115
+ @ads-at lg { start: 5; span: 12; }
116
+ @ads-layout inherited {
117
+ gutter: narrow;
118
+ @ads-cell .ux-section-item { start: auto; span: 4; }
119
+ }
120
+ }
121
+ }
122
+ `;
123
+ ```
124
+
125
+ `inherited` continues the parent's columns (CSS subgrid): items in the list line up with the page
126
+ columns. A cell that declares inherited tracks cannot also take `padding`; pad a child instead,
127
+ or the keylines shift.
128
+
129
+ ### Fourteen local tracks with a fixed indent
130
+
131
+ ```tsx
132
+ const thread = css`
133
+ @ads-layout hybrid {
134
+ context: container;
135
+ columns: 14;
136
+ fixed-start: --space-24;
137
+ gutter: none;
138
+ margin: --space-0;
139
+ row-gap: --space-12;
140
+ @ads-cell .ux-thread-message {
141
+ span: full;
142
+ @ads-layout inherited {
143
+ gutter: none;
144
+ @ads-cell .ux-thread-avatar { span: 1; }
145
+ @ads-cell .ux-thread-content { start: 2; span: 11; }
146
+ }
147
+ }
148
+ @ads-cell .ux-thread-prompt { span: full; @ads-at lg { start: 6; span: 9; } }
149
+ }
150
+ `;
151
+ ```
152
+
153
+ `columns` sets a local count without changing the project's global grid. The first track is a
154
+ fixed 48 px indent; the other thirteen share the rest. The avatar glyph keeps its icon size
155
+ inside its track.
156
+
157
+ ### A region that responds to its own width
158
+
159
+ ```tsx
160
+ // In the parent (for example an application shell):
161
+ @ads-cell .ux-app-main { start: 2; span: 1; container: region; }
162
+
163
+ // In a pattern placed inside it:
164
+ const list = css`
165
+ @ads-layout fluid {
166
+ context: container;
167
+ @ads-cell .ux-list-detail { span: full; @ads-at lg { start: 9; span: 8; } }
168
+ }
169
+ `;
170
+ ```
171
+
172
+ With `context: container`, the breakpoints apply to the nearest region container, so opening a
173
+ side panel that narrows the main region changes the list's placement. Outside any region the
174
+ layout uses its narrowest placement. In previews, wrap such a pattern in the preview frame's
175
+ `region` layout.
176
+
177
+ ### An application shell with panels
178
+
179
+ ```tsx
180
+ const shell = css`
181
+ @ads-layout hybrid {
182
+ columns: 3;
183
+ fixed-start: --navigation-rail-width; /* rail */
184
+ fixed-end: 0; /* no aside */
185
+ gutter: none; margin: --space-0; bound: full;
186
+ rows: auto fill; /* header, then body */
187
+ @ads-at lg { fixed-start: --side-pane-width; fixed-end: --side-pane-width; }
188
+ @ads-cell .ux-app-header {
189
+ row: 1;
190
+ @ads-layout inherited {
191
+ gutter: none;
192
+ @ads-cell .ux-app-brand { span: 1; }
193
+ @ads-cell .ux-app-bar { start: 2; span: 2; }
194
+ }
195
+ }
196
+ @ads-cell .ux-app-nav { span: 1; row: 2; overlay: start; @ads-at lg { overlay: none; } }
197
+ @ads-cell .ux-app-main { start: 2; span: 1; row: 2; container: region; }
198
+ @ads-cell .ux-app-aside { start: 3; span: 1; row: 2; overlay: end; @ads-at lg { overlay: none; } }
199
+ @ads-cell .ux-app-backdrop { span: 1; row: 2; overlay: start; @ads-at lg { visible: false; } }
200
+ }
201
+ `;
202
+ ```
203
+
204
+ - From `lg` both panels take fixed tracks and **push** the main region.
205
+ - Below `lg` they **cover** it (`overlay`): they leave the tracks, keep their row, and the main
206
+ region's tracks do not change. The backdrop shows only there.
207
+ - The header continues the columns, so its bar starts on the main region's keyline.
208
+ - ADS checks at every breakpoint that the fixed tracks leave space for the main region.
209
+
210
+ Each panel state (collapsed rail, expanded panel, aside closed/docked/floating) is its own
211
+ static `@ads-layout`; the component picks the class for its state. The starter's `Shell` pattern
212
+ is a complete example, including toggles, Escape and focus return.
213
+
214
+ ### A capped region aligned to one side
215
+
216
+ ```tsx
217
+ const form = css`
218
+ @ads-layout fluid { bound: --container-lg; align: start; @ads-cell .ux-form-field { span: full; } }
219
+ `;
220
+ ```
221
+
222
+ ### Hidden at some widths
223
+
224
+ ```tsx
225
+ @ads-cell .ux-toolbar-labels { span: full; visible: false; @ads-at md { visible: true; } }
226
+ ```
227
+
228
+ A hidden range compiles to a bounded query, so where the element is visible its own `display`
229
+ (for example `flex`) is untouched. Use this for responsive layout, not for content a user can
230
+ toggle; that is component state.
231
+
232
+ ## Property reference
233
+
234
+ Layout: `fluid | hybrid | fixed | flow | inherited`.
235
+
236
+ | Layout property | Applies to | Values |
237
+ | --- | --- | --- |
238
+ | `columns` | fluid, hybrid | 1–64, a local count; default: the breakpoint's count |
239
+ | `fixed-start`, `fixed-end` | hybrid | a length token or `0`; vary with `@ads-at <bp> { … }` |
240
+ | `tile` | fixed | a length token |
241
+ | `gutter` | fluid, hybrid, inherited | a gutter mode or `none`; default `wide` |
242
+ | `row-gap` | all | a spacing token |
243
+ | `margin` | fluid, hybrid | a spacing token; default: the breakpoint's margin |
244
+ | `bound` | fluid, hybrid | `system` (default, the maximum width), `full`, or a length token |
245
+ | `align` | fluid, hybrid with a cap | `start`, `center` (default), `end` |
246
+ | `rows` | fluid, hybrid | 1–12 of `auto` or `fill` |
247
+ | `context` | fluid, hybrid | `viewport` (default) or `container` |
248
+ | `ratio` | all | a ratio from the definition |
249
+
250
+ | Cell property | Values |
251
+ | --- | --- |
252
+ | `start` | a line from 1, or `auto` (needs a numeric `span`) |
253
+ | `span` / `end` | a count or `full` / the line to end before; one of the two |
254
+ | `row`, `row-span` | a row line or `auto`; a count |
255
+ | `overlay` | `none`, `start`, `end` |
256
+ | `visible` | `true`, `false` |
257
+ | `container` | `region` |
258
+ | `padding` | a spacing token |
259
+ | `ratio` | a ratio from the definition |
260
+
261
+ `@ads-at <breakpoint>` inside a cell may set `start`, `span`, `end`, `row`, `row-span`, `overlay`
262
+ and `visible`.
263
+
264
+ ## Authoring constraints
265
+
266
+ - **Source-resolvable alternatives.** Constants, imports and local helpers may produce layout
267
+ text. Every return path and alternative must resolve; unknown outcomes or more than 256
268
+ distinct style combinations are blocking findings. Split large constructions into smaller styles.
269
+ - **Breakpoints come from the definition.** Do not write `@media (min-width: 1056px)` for layout
270
+ tracks; use `@ads-at lg`. A content-driven custom breakpoint belongs in the definition.
271
+ - **Ordinary grid CSS must be provable.** Explicit track lists and integer lines/spans are
272
+ checked against their direct parent, including styles bound through owned JSX. Unresolved
273
+ parent tracks, named-area/shorthand constructions outside the supported subset, and CSS
274
+ that overrides generated layout geometry are errors. Use `@ads-layout` for these constructions.
275
+ - **One layout per element per state.** Switch the class for a different state; do not stack two
276
+ layouts on one element.
277
+ - **Gutters are not padding.** Component padding stays in the component; cell insets come from the
278
+ gutter mode. Do not add the same inset twice.
279
+
280
+ Spatial tokens are validated in their declared conditional contexts, including aliases and
281
+ combinations of overrides. Breakpoint widths and track counts stay shared; conditional token
282
+ overrides must not change that topology. Use `@ads-at` for responsive placement. More than
283
+ 64 distinct spatial token combinations requires simplifying the overrides rather than sampling them.
284
+ Row gaps and cell padding use spacing steps or aliases of the spatial scale, not arbitrary length roles.
285
+
286
+ Container layouts need an owned `ads-region` ancestor. A container on the queried element itself
287
+ does not satisfy that requirement. Place a nested layout inside a `container: region` cell; ADS
288
+ follows owned component calls and checks that declared cell hooks identify direct children.
289
+ Every owned call must have that ancestry; a correctly wrapped occurrence cannot certify
290
+ an unwrapped one. Cell hooks must remain present in every class alternative. Conditional
291
+ containers or classes that disable the container do not provide unconditional ancestry.
292
+ Ordinary placement alternatives and longhand/shorthand combinations must all fit. State
293
+ selectors and composed classes cannot override generated cell padding, placement, ratio,
294
+ container identity or other emitted geometry.
295
+ Selector lists, ancestor states and `:is()`/`:where()` do not create an escape from these
296
+ constraints. Keep selector branches finite (at most 64 alternatives). Pseudo-elements and
297
+ unrelated descendants can retain their own styling. Animations on a constructed box must
298
+ use keyframes ADS can resolve from owned source; they cannot change its generated geometry.
299
+ Opacity and transform effects are allowed. Put layout changes in declared construction
300
+ variants rather than keyframes that replace tracks, placement or insets.
301
+ Use class/data hooks for spatial targets instead of namespaced selectors or column
302
+ combinators. Unknown attribute values may match an override selector; they cannot prove
303
+ that a required cell hook is always present.
304
+ Keep conditional track changes and their replacement placements in the same state. A
305
+ placement for one `data-*` value cannot borrow another state's tracks. Hiding a region
306
+ with `display: none` is allowed; replacing its visible layout with `block` or `contents` is not.
307
+
308
+ The standalone Linaria extraction checks construction algebra; `ads check` supplies the JSX
309
+ composition evidence used by validation and draft acceptance.
310
+
311
+ ## When ADS rejects a layout
312
+
313
+ `grid-construction` errors name the cell and the breakpoint. Common ones:
314
+
315
+ | Message contains | Fix |
316
+ | --- | --- |
317
+ | `exceeds N columns at sm` | The placement does not fit the smallest count; give a base placement and widen it with `@ads-at` |
318
+ | `Fixed tracks leave no fluid space at sm` | Make the fixed track `0` or a rail at small widths and widen it at a larger breakpoint |
319
+ | `Use a unique direct cell class` | Name each cell once with a plain class or `[data-*]` selector |
320
+ | `A cell can declare one inherited layout` | Put an independent layout on a child inside a `container: region` cell |
321
+ | `Apply content padding to a child of inherited tracks` | Move padding to a child element |
322
+ | `sets span and end` | Use one of them |
323
+ | `exceeds the N declared rows` | Add a row to `rows` or place the cell within it |
324
+ | `is outside a supported layout construction` | `@ads-cell` and `@ads-at` belong inside `@ads-layout` |
325
+
326
+ ## Inspect and verify
327
+
328
+ Open the scenario in the showcase and press the layout-guides button: guides show the actual
329
+ tracks, gutters, padding and margins of the rendered element. `ads check` proves the
330
+ construction; the render audit (`layout-overflow` at 390, 768 and 1280 px) covers what content
331
+ does inside it. No separate per-breakpoint browser test is needed for placement.
332
+
333
+ For a model-visible annotated image, use the discovered scenario ID with
334
+ `ads_capture({scenario:"<ID>",guides:["tracks","gaps","padding","mini"]})`.
335
+ Select only the layers relevant to the question; `bounds` and `margins` are also
336
+ available. Guides show on all visible elements, using actual rendered geometry.
337
+ Components, patterns, compositions and `tokens/Layout` support them. Read the
338
+ returned PNG resource, then use `guides:[]` for a clean appearance check. Each
339
+ capture replaces that scenario/target's current slot; read it before recapturing.
340
+ See [captures.md](captures.md) for named targets, draft comparisons and limits.
341
+
342
+ ## Porting and importing
343
+
344
+ Map a source library's grid to the destination's definition: its column counts, breakpoints and
345
+ gutter modes, not the source's constants. Express the source's intent (fixed panel, fluid list,
346
+ indent, overlay drawer) with the matching construction above, and keep the destination's
347
+ spacing scale.
@@ -25,7 +25,8 @@ Don't require hover for essential content or actions.
25
25
  ## Viewport and scrolling
26
26
 
27
27
  `ads audit` fails a scenario that overflows horizontally at 390, 768 or 1280 px
28
- (`layout-overflow`). Widths stay fluid on the grid; see `ads://guides/tokens`.
28
+ (`layout-overflow`). Lay out regions with `@ads-layout` and keep other widths fluid; see
29
+ `ads://guides/layout`.
29
30
 
30
31
  The application owns viewport metadata, document/root scrolling, browser theme
31
32
  metadata, and installable-app settings. Reusable components/patterns own local
@@ -1,4 +1,8 @@
1
- # Investigate animation performance
1
+ # Animation performance
2
+
3
+ Adapted from Emil Kowalski's animation-performance skill and performance cheatsheet (MIT); see
4
+ the skill README for credits. For images, fonts and layout shift, read
5
+ [performance.md](performance.md).
2
6
 
3
7
  Treat source inspection as a hypothesis. Reproduce the reported interaction
4
8
  with realistic content/load and profile it before claiming a performance cause.
@@ -1,4 +1,12 @@
1
- # Implement motion
1
+ # Motion
2
+
3
+ Adapted from Emil Kowalski's animate, review-animations, improve-animations and
4
+ find-animation-opportunities skills (MIT); see the skill README for credits.
5
+
6
+ Implement motion in the owning component or pattern with the motion tokens; consumers never
7
+ restyle another owner's transitions. ADS guards the reduced-motion basics and token use; it
8
+ cannot judge whether motion is purposeful, well-timed or interruptible. That is what this guide
9
+ is for. For jank or rendering cost, read [motion-performance.md](motion-performance.md).
2
10
 
3
11
  ## Decide what motion explains
4
12
 
@@ -108,7 +116,67 @@ all mechanics.
108
116
  Animate the indicator only if it helps locate the new selection; don't add
109
117
  presence transitions that duplicate active content for assistive technology.
110
118
 
111
- Honor the local reduced-motion policy. Depending on the interaction, use instant
112
- state changes or a restrained opacity change; remove travel, bounce, or looping
113
- motion where required. Preserve all information and lifecycle behavior when
114
- transitions have no duration. Don't require animation merely to provide feedback.
119
+ Reduced motion: `ads check` fails a non-zero `--dur-*` token without a `0ms` value under
120
+ `prefers-reduced-motion: reduce`, and an infinite component animation not stopped there
121
+ (`a11y-reduced-motion`). Durations then reach zero by construction, so make sure the component
122
+ stays correct without transition events: all information and lifecycle steps (focus, unmount,
123
+ callbacks) must still happen when nothing animates. Where a restrained opacity change carries
124
+ meaning better than an instant switch, keep it deliberately and say so in the owner README.
125
+
126
+ ## Review motion
127
+
128
+ Read the item's README before treating a choice as accidental. Compare the source state machine
129
+ with rendered behaviour when a browser is available, and mark source-only conclusions.
130
+
131
+ Assess the following where applicable:
132
+
133
+ | Area | Look for |
134
+ |------|----------|
135
+ | Purpose/frequency | A clear relationship to the action; repeated work is not slowed |
136
+ | Easing | Entry decelerates (`--ease-enter`), exits accelerate (`--ease-exit`), moves between visible places use `--ease-standard`; no linear movement except elapsed time and spinners; strong curves only for rare important moments |
137
+ | Timing | Feedback starts promptly; duration grows with distance and size (control feedback 70–150 ms, expansions and toasts 240 ms, large changes 400 ms, dimming 700 ms) |
138
+ | Origin/distance | Placement and scale point to the real trigger without excessive travel |
139
+ | Continuity | Reversal and repeated updates retarget without snapping or restarting |
140
+ | Lifecycle | Exit, cancellation, unmount, and zero-duration states clean up correctly |
141
+ | Accessibility | Motion preference, focus, hidden content, and keyboard behavior remain correct |
142
+ | Ownership | Motion uses tokens and owner styles; consumers do not override internals |
143
+ | Cost | Measured rendering work matches the problem; no per-frame work is assumed harmless |
144
+
145
+ The upstream guidance favors short transitions, restrained scale, and transform/
146
+ opacity. Apply those as defaults with context. A documented 400 ms stack,
147
+ measured height transition, or necessary loading loop is not inherently broken.
148
+ Likewise, a transition below 300 ms is not automatically good. Verify whether an
149
+ exception preserves the intended experience and has acceptable observed cost.
150
+
151
+ Present only actionable findings. Include file/line, trigger, observed behavior,
152
+ expected behavior, why the difference matters, and a concrete owner-level fix.
153
+ For timing/easing proposals, name the current and proposed token policy and its
154
+ scope. If a token is shared, identify affected neighbors before changing values.
155
+
156
+ Use a before/after/why comparison for implemented fixes. Separate behavior
157
+ defects, visual refinements, and profiling questions so a suspicion is not
158
+ reported as a proved performance failure. If no defect is found, say what was
159
+ checked and what remains unverified. Do not invent findings to fill a checklist.
160
+
161
+ ## Cover the interaction
162
+
163
+ Exercise the changed behaviour and its boundaries:
164
+
165
+ - Enter, update, exit, reopen, and reversal while a transition is in progress.
166
+ - Rapid repeated input and simultaneous additions or removals where supported.
167
+ - Variable content height, narrow containers, viewport changes and both themes.
168
+ - Keyboard activation, focus entry and restoration, hidden-content inertness, and pointer or
169
+ touch cancellation where the component owns them.
170
+ - Reduced motion, zero-duration cleanup, unmount, and background timers.
171
+
172
+ Observe the start, intermediate and settled states: a final screenshot misses jumps, delayed
173
+ exits and interruption defects. Use recordings, sampled frames or timing assertions when they
174
+ answer the question. Put motion rationale, token use and accepted differences in the owner's
175
+ README.
176
+
177
+ ## Find motion opportunities
178
+
179
+ When asked where motion would help, ground each suggestion in a real state change: new content,
180
+ removal, selection, disclosure or spatial movement. For each, give the user purpose, frequency,
181
+ owner and reduced-motion state. Reject ideas that delay frequent input, duplicate existing
182
+ feedback or need an unrelated library. Recommending no new animation is a valid answer.