@reqvire-org/ads 0.3.53 → 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 (401) hide show
  1. package/README.md +114 -94
  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 +6 -6
  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 +222 -79
  21. package/dist/boundaries.mjs +137 -40
  22. package/dist/brand-assets.mjs +219 -47
  23. package/dist/brands.mjs +86 -27
  24. package/dist/bun-compiler.mjs +34 -13
  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 +66 -0
  30. package/dist/check.mjs +756 -196
  31. package/dist/cli.mjs +203 -100
  32. package/dist/color-values.mjs +21 -21
  33. package/dist/component-contrast.mjs +2 -2
  34. package/dist/config.mjs +308 -163
  35. package/dist/construction-styles.cjs +10 -0
  36. package/dist/contracts.d.mts +9 -0
  37. package/dist/control-padding.mjs +45 -25
  38. package/dist/css-values.mjs +3 -2
  39. package/dist/declarative-flow.mjs +209 -109
  40. package/dist/design-values.mjs +136 -51
  41. package/dist/development-runtime.mjs +4 -6
  42. package/dist/draft-boundary.mjs +11 -6
  43. package/dist/evidence.mjs +1 -1
  44. package/dist/finding-rules.mjs +7 -5
  45. package/dist/font-rules.mjs +2 -2
  46. package/dist/fonts-generated.mjs +4 -2
  47. package/dist/foundation-views.mjs +238 -0
  48. package/dist/foundation.mjs +63 -39
  49. package/dist/generated-entries.mjs +198 -0
  50. package/dist/icons.mjs +80 -33
  51. package/dist/image-attributes.mjs +109 -36
  52. package/dist/image-size.mjs +1 -1
  53. package/dist/index.mjs +0 -2
  54. package/dist/init.mjs +128 -68
  55. package/dist/investigations.mjs +2 -2
  56. package/dist/layers.mjs +300 -127
  57. package/dist/layout-widths.mjs +180 -85
  58. package/dist/linaria/preserve-values.cjs +7 -0
  59. package/dist/linaria/spatial-inputs.cjs +56 -0
  60. package/dist/lockup-composition.mjs +44 -0
  61. package/dist/lockup-model.cjs +64 -0
  62. package/dist/mcp/THIRD_PARTY_NOTICES.md +51 -1
  63. package/dist/mcp/apps.mjs +4 -30
  64. package/dist/mcp/behavior-pages.mjs +72 -24
  65. package/dist/mcp/build-status.mjs +257 -64
  66. package/dist/mcp/catalog.mjs +91 -26
  67. package/dist/mcp/context.mjs +17 -18
  68. package/dist/mcp/draft-discovery.mjs +44 -21
  69. package/dist/mcp/drafts.mjs +978 -343
  70. package/dist/mcp/execution-coordinator.mjs +417 -167
  71. package/dist/mcp/execution-results.mjs +7 -7
  72. package/dist/mcp/mutations.mjs +701 -219
  73. package/dist/mcp/preview-watch.mjs +465 -161
  74. package/dist/mcp/preview-widget.bundle.js +44 -50
  75. package/dist/mcp/prompts.mjs +6 -6
  76. package/dist/mcp/result-pages.mjs +1 -1
  77. package/dist/mcp/sandbox-host.mjs +1 -1
  78. package/dist/mcp/server.mjs +2436 -570
  79. package/dist/mcp/showcase-host.mjs +176 -39
  80. package/dist/mcp/skills.mjs +1 -1
  81. package/dist/mcp/text-diff.mjs +29 -10
  82. package/dist/paint-contracts.mjs +174 -81
  83. package/dist/palette-generated.mjs +2 -2
  84. package/dist/preview-bun.mjs +493 -187
  85. package/dist/preview-failure.mjs +1 -1
  86. package/dist/preview-files.mjs +13 -13
  87. package/dist/preview-imports.mjs +104 -55
  88. package/dist/preview-inputs.mjs +2 -2
  89. package/dist/preview-requests.mjs +24 -0
  90. package/dist/preview-resources.mjs +288 -147
  91. package/dist/preview-scope.mjs +5 -4
  92. package/dist/program-cache.mjs +10 -0
  93. package/dist/project-documents.mjs +1 -1
  94. package/dist/public-api.mjs +70 -31
  95. package/dist/public-props.mjs +39 -22
  96. package/dist/{browser-audit → render-audit}/axe-run.mjs +3 -3
  97. package/dist/{browser-audit → render-audit}/image-shape.mjs +2 -2
  98. package/dist/{browser-audit → render-audit}/layout-overflow.mjs +86 -23
  99. package/dist/{browser-audit → render-audit}/non-text-contrast.mjs +86 -27
  100. package/dist/{browser-audit → render-audit}/render-states.mjs +208 -52
  101. package/dist/{browser-audit → render-audit}/worker.mjs +86 -30
  102. package/dist/render-audit.mjs +828 -0
  103. package/dist/render-color-probe.mjs +96 -42
  104. package/dist/resource-limits.mjs +229 -97
  105. package/dist/runtime-contracts.mjs +467 -185
  106. package/dist/scenario-groups.mjs +22 -10
  107. package/dist/scenario-inspector.mjs +6 -43
  108. package/dist/scenario-program.mjs +8 -25
  109. package/dist/scenario-registry.mjs +72 -30
  110. package/dist/scenario-selectors.mjs +161 -64
  111. package/dist/scenario-slots.mjs +149 -56
  112. package/dist/scenario-trace.mjs +215 -109
  113. package/dist/scenarios-compiler.mjs +768 -359
  114. package/dist/scenarios-vite.d.mts +1 -3
  115. package/dist/scenarios-vite.mjs +2 -81
  116. package/dist/scenarios.mjs +424 -159
  117. package/dist/selector-match.mjs +2 -2
  118. package/dist/showcase/client.bundle.js +57 -56
  119. package/dist/showcase/draft-navigation.js +18 -0
  120. package/dist/showcase/favicon.ico +0 -0
  121. package/dist/showcase/favicon.svg +1 -0
  122. package/dist/showcase/foundation-view.css +55 -0
  123. package/dist/showcase/foundation-view.mjs +252 -0
  124. package/dist/showcase/guide-controls.ads.review.mjs +32 -0
  125. package/dist/showcase/icons.js +1 -145
  126. package/dist/showcase/index.html +3 -31
  127. package/dist/showcase/preview-frame.ads.review.css +46 -0
  128. package/dist/showcase/preview-frame.ads.review.d.mts +11 -0
  129. package/dist/showcase/preview-frame.ads.review.mjs +22 -0
  130. package/dist/showcase/preview-state.js +0 -9
  131. package/dist/showcase/refresh-scheduler.js +23 -0
  132. package/dist/showcase/style.css +5 -47
  133. package/dist/showcase/ui/ui.css +1353 -0
  134. package/dist/showcase/ui/ui.js +1062 -0
  135. package/dist/showcase-coverage.mjs +58 -37
  136. package/dist/skills/README.md +24 -23
  137. package/dist/skills/ads-designer/README.md +8 -2
  138. package/dist/skills/ads-designer/SKILL.md +152 -144
  139. package/dist/skills/ads-designer/references/accessibility.md +14 -11
  140. package/dist/skills/ads-designer/references/atomic-styles.md +4 -4
  141. package/dist/skills/ads-designer/references/behaviors.md +34 -30
  142. package/dist/skills/ads-designer/references/branding.md +98 -10
  143. package/dist/skills/ads-designer/references/captures.md +31 -31
  144. package/dist/skills/ads-designer/references/cli.md +21 -20
  145. package/dist/skills/ads-designer/references/contracts.md +63 -29
  146. package/dist/skills/ads-designer/references/design-data.md +49 -52
  147. package/dist/skills/ads-designer/references/drafts.md +71 -52
  148. package/dist/skills/ads-designer/references/evidence.md +1 -5
  149. package/dist/skills/ads-designer/references/guarded-editing.md +58 -51
  150. package/dist/skills/ads-designer/references/layers.md +1 -1
  151. package/dist/skills/ads-designer/references/layout.md +347 -0
  152. package/dist/skills/ads-designer/references/mobile.md +2 -1
  153. package/dist/skills/{ads-motion/references/performance.md → ads-designer/references/motion-performance.md} +5 -1
  154. package/dist/skills/{ads-motion/references/build.md → ads-designer/references/motion.md} +73 -5
  155. package/dist/skills/ads-designer/references/performance.md +3 -2
  156. package/dist/skills/ads-designer/references/review.md +42 -38
  157. package/dist/skills/ads-designer/references/runtimes.md +33 -30
  158. package/dist/skills/ads-designer/references/scenarios.md +17 -19
  159. package/dist/skills/{ads-break-ui/references/catalog.md → ads-designer/references/stress-catalog.md} +3 -1
  160. package/dist/skills/ads-designer/references/stress-test.md +68 -0
  161. package/dist/skills/ads-designer/references/validation.md +83 -71
  162. package/dist/skills/ads-designer/references/workflows.md +19 -37
  163. package/dist/skills/ads-import/SKILL.md +43 -328
  164. package/dist/skills/ads-import/references/atomic-styles.md +4 -4
  165. package/dist/skills/ads-import/references/behaviors.md +34 -30
  166. package/dist/skills/ads-import/references/branding.md +5 -5
  167. package/dist/skills/ads-import/references/captures.md +31 -31
  168. package/dist/skills/ads-import/references/cli.md +21 -20
  169. package/dist/skills/ads-import/references/compatibility.md +1 -1
  170. package/dist/skills/ads-import/references/contracts.md +63 -29
  171. package/dist/skills/ads-import/references/design-data.md +49 -52
  172. package/dist/skills/ads-import/references/drafts.md +71 -52
  173. package/dist/skills/ads-import/references/evidence.md +1 -5
  174. package/dist/skills/ads-import/references/guarded-editing.md +58 -51
  175. package/dist/skills/ads-import/references/implementation.md +2 -1
  176. package/dist/skills/ads-import/references/layers.md +1 -1
  177. package/dist/skills/ads-import/references/layout.md +347 -0
  178. package/dist/skills/ads-import/references/review.md +42 -38
  179. package/dist/skills/ads-import/references/runtimes.md +33 -30
  180. package/dist/skills/ads-import/references/scenarios.md +17 -19
  181. package/dist/skills/ads-import/references/tokens.md +3 -3
  182. package/dist/skills/ads-import/references/validation.md +83 -71
  183. package/dist/skills/ads-import/references/workflows.md +19 -37
  184. package/dist/skills/ads-migrate/SKILL.md +56 -0
  185. package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +602 -0
  186. package/dist/skills/ads-port/SKILL.md +54 -346
  187. package/dist/skills/ads-port/references/atomic-styles.md +4 -4
  188. package/dist/skills/ads-port/references/behaviors.md +34 -30
  189. package/dist/skills/ads-port/references/captures.md +31 -31
  190. package/dist/skills/ads-port/references/cli.md +21 -20
  191. package/dist/skills/ads-port/references/contracts.md +63 -29
  192. package/dist/skills/ads-port/references/design-data.md +49 -52
  193. package/dist/skills/ads-port/references/drafts.md +71 -52
  194. package/dist/skills/ads-port/references/evidence.md +1 -5
  195. package/dist/skills/ads-port/references/guarded-editing.md +58 -51
  196. package/dist/skills/ads-port/references/layers.md +1 -1
  197. package/dist/skills/ads-port/references/layout.md +347 -0
  198. package/dist/skills/ads-port/references/lint-and-docs.md +8 -11
  199. package/dist/skills/ads-port/references/native-implementation.md +8 -7
  200. package/dist/skills/ads-port/references/review.md +42 -38
  201. package/dist/skills/ads-port/references/runtimes.md +33 -30
  202. package/dist/skills/ads-port/references/scenarios.md +17 -19
  203. package/dist/skills/ads-port/references/validation.md +83 -71
  204. package/dist/skills/ads-port/references/workflows.md +19 -37
  205. package/dist/source-symbols.mjs +1 -8
  206. package/dist/source-values.mjs +266 -128
  207. package/dist/spatial-composition.mjs +322 -0
  208. package/dist/spatial-contexts.cjs +56 -0
  209. package/dist/spatial-css.cjs +351 -0
  210. package/dist/spatial-inputs.cjs +80 -0
  211. package/dist/spatial-metadata.mjs +18 -0
  212. package/dist/spatial-model.cjs +322 -0
  213. package/dist/spatial.mjs +21 -0
  214. package/dist/stage-timing.cjs +20 -0
  215. package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +105 -0
  216. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +275 -0
  217. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  218. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  219. package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +8 -0
  220. package/dist/starters/preact/ds.config.json +24 -19
  221. package/dist/starters/preact/package.json +4 -8
  222. package/dist/starters/preact/tsconfig.json +4 -5
  223. package/dist/starters/preact/vite.config.ts +3 -3
  224. package/dist/starters/react/ADS.md +42 -47
  225. package/dist/starters/react/README.md +54 -52
  226. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.exports.ts +1 -0
  227. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.exports.ts +1 -0
  228. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +18 -2
  229. package/dist/starters/react/design-system/components/Actions/IconButton/README.md +3 -0
  230. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.exports.ts +1 -0
  231. package/dist/starters/react/design-system/components/Content/Image/Image.ads.exports.ts +1 -0
  232. package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.exports.ts +1 -0
  233. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.exports.ts +1 -0
  234. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +5 -0
  235. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +13 -0
  236. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +22 -0
  237. package/dist/starters/react/design-system/controllers/Palette/Palette.ads.exports.ts +1 -0
  238. package/dist/starters/react/design-system/index.ts +5 -8
  239. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +1 -0
  240. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +7 -0
  241. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +15 -0
  242. package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +105 -0
  243. package/dist/starters/react/design-system/patterns/Conversation/README.md +9 -0
  244. package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.exports.ts +1 -0
  245. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +5 -0
  246. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +21 -0
  247. package/dist/starters/react/design-system/patterns/Shell/README.md +43 -0
  248. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +1 -0
  249. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +5 -0
  250. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +21 -0
  251. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +274 -0
  252. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +1 -0
  253. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  254. package/dist/starters/react/design-system/review/index.ads.review.ts +4 -0
  255. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +1 -0
  256. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +6 -0
  257. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +1 -0
  258. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  259. package/dist/starters/react/design-system/showcase/mcp/{main.tsx → main.ads.mount.tsx} +4 -2
  260. package/dist/starters/react/design-system/styles.css +1 -0
  261. package/dist/starters/react/design-system/tokens/catalog.ads.json +1221 -0
  262. package/dist/starters/react/design-system/tokens/colors.css +1 -1
  263. package/dist/starters/react/design-system/tokens/spacing.css +22 -32
  264. package/dist/starters/react/design-system/tokens/spatial.ads.json +70 -0
  265. package/dist/starters/react/design-system/tokens/themes.generated.ts +1 -1
  266. package/dist/starters/react/ds.config.json +24 -19
  267. package/dist/starters/react/package.json +2 -6
  268. package/dist/starters/react/tsconfig.json +2 -3
  269. package/dist/starters/react/vite.config.ts +3 -3
  270. package/dist/style-boundaries.mjs +73 -27
  271. package/dist/task-cache.mjs +173 -72
  272. package/dist/task-worker.mjs +22 -11
  273. package/dist/test-boundaries.mjs +133 -60
  274. package/dist/themes-generated.mjs +1 -1
  275. package/dist/themes-watch.mjs +60 -19
  276. package/dist/themes.mjs +176 -73
  277. package/dist/token-export.mjs +39 -14
  278. package/dist/token-policy.mjs +6 -3
  279. package/dist/token-quality.mjs +6 -6
  280. package/dist/token-samples.mjs +16 -5
  281. package/dist/tokens.mjs +71 -26
  282. package/dist/ui-framework.mjs +16 -14
  283. package/dist/unit-contracts.mjs +270 -89
  284. package/dist/units.mjs +215 -180
  285. package/dist/usage.mjs +138 -38
  286. package/dist/validation-checks.mjs +121 -38
  287. package/dist/validation-inputs.mjs +187 -78
  288. package/dist/validation.mjs +268 -102
  289. package/dist/verification/browser.mjs +27 -5
  290. package/dist/verification.mjs +711 -187
  291. package/docs/ADS.md +100 -89
  292. package/docs/ARCHITECTURE.md +353 -159
  293. package/docs/BEHAVIORS.md +33 -28
  294. package/docs/CACHING.md +55 -11
  295. package/docs/CHANGELOG.md +358 -17
  296. package/docs/COMPARISON.md +1 -1
  297. package/docs/CONTRACTS.md +22 -29
  298. package/docs/DESIGN-REFERENCES.md +40 -0
  299. package/docs/GUIDE.md +313 -292
  300. package/docs/MCP.md +261 -439
  301. package/docs/SPATIAL-CHECKS.md +69 -0
  302. package/docs/benchmarks/README.md +39 -0
  303. package/package.json +42 -34
  304. package/dist/browser-audit.mjs +0 -424
  305. package/dist/contract-migration.mjs +0 -110
  306. package/dist/create.mjs +0 -48
  307. package/dist/lint-config.mjs +0 -48
  308. package/dist/mcp/draft-exports.mjs +0 -40
  309. package/dist/mcp/edit-preparation.mjs +0 -115
  310. package/dist/mcp/project-widget.bundle.js +0 -114
  311. package/dist/mcp/reports.mjs +0 -101
  312. package/dist/mcp/widget.bundle.js +0 -147
  313. package/dist/oxlint.mjs +0 -88
  314. package/dist/preview-builder.mjs +0 -133
  315. package/dist/preview-workers.mjs +0 -184
  316. package/dist/showcase.mjs +0 -77
  317. package/dist/skills/ads-break-ui/LICENSE.upstream +0 -21
  318. package/dist/skills/ads-break-ui/README.md +0 -16
  319. package/dist/skills/ads-break-ui/SKILL.md +0 -415
  320. package/dist/skills/ads-break-ui/agents/openai.yaml +0 -4
  321. package/dist/skills/ads-break-ui/references/atomic-styles.md +0 -293
  322. package/dist/skills/ads-break-ui/references/behaviors.md +0 -411
  323. package/dist/skills/ads-break-ui/references/captures.md +0 -160
  324. package/dist/skills/ads-break-ui/references/contracts.md +0 -284
  325. package/dist/skills/ads-break-ui/references/design-data.md +0 -354
  326. package/dist/skills/ads-break-ui/references/drafts.md +0 -178
  327. package/dist/skills/ads-break-ui/references/evidence.md +0 -128
  328. package/dist/skills/ads-break-ui/references/guarded-editing.md +0 -154
  329. package/dist/skills/ads-break-ui/references/layers.md +0 -145
  330. package/dist/skills/ads-break-ui/references/reporting.md +0 -101
  331. package/dist/skills/ads-break-ui/references/review.md +0 -96
  332. package/dist/skills/ads-break-ui/references/runtimes.md +0 -203
  333. package/dist/skills/ads-break-ui/references/scenarios.md +0 -246
  334. package/dist/skills/ads-break-ui/references/validation.md +0 -162
  335. package/dist/skills/ads-break-ui/references/verification.md +0 -58
  336. package/dist/skills/ads-break-ui/references/workflows.md +0 -83
  337. package/dist/skills/ads-designer/references/reporting.md +0 -101
  338. package/dist/skills/ads-import/references/reporting.md +0 -101
  339. package/dist/skills/ads-motion/LICENSE.upstream +0 -21
  340. package/dist/skills/ads-motion/README.md +0 -22
  341. package/dist/skills/ads-motion/SKILL.md +0 -388
  342. package/dist/skills/ads-motion/agents/openai.yaml +0 -4
  343. package/dist/skills/ads-motion/references/atomic-styles.md +0 -293
  344. package/dist/skills/ads-motion/references/audit.md +0 -44
  345. package/dist/skills/ads-motion/references/behaviors.md +0 -411
  346. package/dist/skills/ads-motion/references/captures.md +0 -160
  347. package/dist/skills/ads-motion/references/contracts.md +0 -284
  348. package/dist/skills/ads-motion/references/design-data.md +0 -354
  349. package/dist/skills/ads-motion/references/drafts.md +0 -178
  350. package/dist/skills/ads-motion/references/evidence.md +0 -128
  351. package/dist/skills/ads-motion/references/guarded-editing.md +0 -154
  352. package/dist/skills/ads-motion/references/layers.md +0 -145
  353. package/dist/skills/ads-motion/references/motion-review.md +0 -35
  354. package/dist/skills/ads-motion/references/reporting.md +0 -101
  355. package/dist/skills/ads-motion/references/review.md +0 -96
  356. package/dist/skills/ads-motion/references/runtimes.md +0 -203
  357. package/dist/skills/ads-motion/references/scenarios.md +0 -246
  358. package/dist/skills/ads-motion/references/validation.md +0 -162
  359. package/dist/skills/ads-motion/references/verification.md +0 -39
  360. package/dist/skills/ads-motion/references/workflows.md +0 -83
  361. package/dist/skills/ads-port/references/reporting.md +0 -101
  362. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.tsx +0 -76
  363. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  364. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  365. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.tsx +0 -137
  366. package/dist/starters/preact/design-system/showcase/mcp/main.tsx +0 -6
  367. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +0 -7
  368. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx +0 -4
  369. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +0 -7
  370. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx +0 -4
  371. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.fixture.ts +0 -12
  372. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.scenario.tsx +0 -17
  373. package/dist/starters/react/design-system/components/Layout/Grid/Grid.tsx +0 -75
  374. package/dist/starters/react/design-system/components/Layout/Grid/README.md +0 -21
  375. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.tsx +0 -112
  376. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  377. package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +0 -18
  378. package/dist/starters/react/design-system/review/index.ts +0 -5
  379. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  380. package/dist/starters/react/design-system/review/token-preview/TokenPreview.tsx +0 -137
  381. package/dist/starters/react/design-system/showcase/mcp/index.html +0 -1
  382. package/dist/starters/react/design-system/tokens/Color.ads.fixture.ts +0 -124
  383. package/dist/starters/react/design-system/tokens/Color.ads.scenario.tsx +0 -4
  384. package/dist/starters/react/design-system/tokens/Layout.ads.fixture.ts +0 -39
  385. package/dist/starters/react/design-system/tokens/Layout.ads.scenario.tsx +0 -4
  386. package/dist/starters/react/design-system/tokens/Motion.ads.fixture.ts +0 -18
  387. package/dist/starters/react/design-system/tokens/Motion.ads.scenario.tsx +0 -4
  388. package/dist/starters/react/design-system/tokens/Shape.ads.fixture.ts +0 -30
  389. package/dist/starters/react/design-system/tokens/Shape.ads.scenario.tsx +0 -4
  390. package/dist/starters/react/design-system/tokens/Space.ads.fixture.ts +0 -37
  391. package/dist/starters/react/design-system/tokens/Space.ads.scenario.tsx +0 -4
  392. package/dist/starters/react/design-system/tokens/Type.ads.fixture.ts +0 -29
  393. package/dist/starters/react/design-system/tokens/Type.ads.scenario.tsx +0 -4
  394. package/dist/starters/react/package-lock.json +0 -4707
  395. package/dist/token-fixtures.mjs +0 -30
  396. package/docs/benchmarks/bun-previews.md +0 -91
  397. package/docs/benchmarks/preview-memory.md +0 -147
  398. package/docs/benchmarks/turbo-poc.md +0 -284
  399. package/docs/plans/execution-coordination.md +0 -57
  400. /package/dist/{browser-audit → render-audit}/first-render.mjs +0 -0
  401. /package/dist/{browser-audit → render-audit}/layout-shift.mjs +0 -0
@@ -14,7 +14,7 @@ Normal application checks verify website integration.
14
14
 
15
15
  This document explains the what, why, and high-level how. [ADS.md](ADS.md) defines
16
16
  the enforceable contract, [GUIDE.md](GUIDE.md) covers tool integration, and the
17
- [working example guide](../design-system/README.md) covers implementation details.
17
+ [starter/playground guide](../starters/README.md) covers implementation details.
18
18
 
19
19
  ## Shared tooling, project-owned design
20
20
 
@@ -36,20 +36,126 @@ their own reviewed lifecycle.
36
36
 
37
37
  ADS is opinionated about tooling and ownership. Linaria is required for the
38
38
  component and pattern styling pipeline. Visual choices belong to the project.
39
- ADS bundles its tooling and compiles MCP previews with Bun 1.3.13+, independently
40
- of the application's build tools. Checking APIs also run on Node. Project scripts
39
+ ADS's tools run on Bun 1.4.1+ and compile MCP previews independently of the
40
+ application's build tools. The project may use Node or Bun: what it imports from
41
+ ADS in its own build, lint or Playwright specs works under Node. Project scripts
41
42
  and behavior profiles retain their explicit interpreter commands; `command:
42
- "runtime"` inherits the launcher's interpreter. This tooling choice is separate
43
+ "runtime"` runs on ADS's Bun. This tooling choice is separate
43
44
  from the UI framework and adds no Node/Bun dependency to deployed components.
45
+
46
+ ### Semantic analysis
47
+
48
+ ADS semantic analysis uses its own pinned TypeScript 7.1 beta asynchronous
49
+ native API from Bun. Analysis, orchestration and preview compilation all run on
50
+ Bun; registered application commands retain their explicit runtimes. Generated
51
+ applications retain their TypeScript 5.9.3 dependency and their own `tsc`; ADS's
52
+ compiler is a separate nested package when necessary.
53
+
54
+ `src/analysis/service.mjs` is the shared asynchronous entry point for acceptance,
55
+ architecture checks, scenario/catalog discovery, tokens, behavior planning and
56
+ audit selection. Each calling ADS process shares a Bun child host with plain-data IPC. That host
57
+ serializes analysis requests and owns bounded native project sessions. One job
58
+ is an inspection/check/selection request that may inspect many files. Independent
59
+ native queries inside it can share pending promises and be batched.
60
+ Rendering and registered test commands execute outside this service.
61
+
62
+ Each project keeps an immutable live snapshot. Drafts branch from it using file
63
+ deltas; acceptance promotes the checked revision, while rejection releases it.
64
+ Sibling drafts cannot alter each other, and a changed live generation prevents
65
+ stale promotion. Project input bytes are captured during the existing validation
66
+ inventory read. Imported dependencies, missing resolution targets, configuration
67
+ and package changes invalidate the compiler state. Content fences remain required
68
+ around operations that can overlap filesystem edits; timestamps alone never
69
+ establish freshness. The beta compiler's unsafe program-removal operation is
70
+ avoided by bounded snapshot compaction within the same compiler process.
71
+ Relocated AST wrappers belong to a live project or one draft, rather than a
72
+ global map of draft paths. Unchanged live trees keep their identity across
73
+ revisions; releasing a draft releases its wrapper cache. Promotion creates live
74
+ paths without mutating trees already returned to draft callers.
75
+
76
+ Production acceptance registers the candidate's file delta against its live
77
+ project before checking. The architecture guard, contract discovery and affected
78
+ selection use that branch through the shared analysis service. Successful source
79
+ publication promotes the checked snapshot; rejected, abandoned and temporary
80
+ branches are released. Configured scripts and browser evidence remain separate
81
+ acceptance stages and retain their own source-freshness requirements.
82
+
83
+ Rules must use `analysis/helpers.mjs` for `sourceAst`, `sourceText`, `symbolAt`,
84
+ `valueSymbolAt`, `localValueDeclarations`, `walk`, `findNode`, `nodesOfKind`, `memoFact` and `memoProgram`. Program acquisition
85
+ goes through `cachedProgram`; import resolution goes through `importResolver`.
86
+ Optional inputs and immediate directory membership use `optionalSourceText` and
87
+ `sourceDirectoryFiles`; both observe the captured revision, including absence.
88
+ `sourceCss` shares read-only PostCSS trees within a request; transforms clone
89
+ before modifying them. Spatial guards and foundation discovery use
90
+ `spatial.mjs` over these helpers. The pure `spatial-model.cjs` compiler does no
91
+ filesystem I/O. `spatial-inputs.cjs` retains a bounded cache of immutable models
92
+ by contents, without branch paths or ASTs. Linaria's build adapter captures at
93
+ the build/extraction boundary, and Bun previews track spatial contents and token
94
+ sheet membership, including layouts introduced by evaluated interpolations.
95
+ `spatial-contexts.cjs` validates bounded conditional token graphs and shares immutable
96
+ context models. `spatial-css.cjs` normalizes supported ordinary CSS placement and protects
97
+ generated geometry. Its bounded 256-entry cache contains only immutable selector-text
98
+ facts, including finite functional branches and attribute targets; it retains no source
99
+ trees or project paths. Keyframe effects join the same target/property checks.
100
+ `spatial-composition.mjs` binds those facts to existing native JSX
101
+ nodes and owned component calls; it creates no compiler or independent syntax tree.
102
+ Standalone extraction checks algebra; acceptance adds the owned composition evidence.
103
+
104
+ The spatial design and starter defaults draw on IBM Carbon's 2x Grid. The
105
+ [design references](DESIGN-REFERENCES.md) record adopted concepts, the consulted
106
+ source revision, and attribution boundaries. ADS's compiler and analysis services
107
+ are separate from Carbon's Sass/React grid packages; consumers own their definitions.
108
+
109
+ Do not create compiler programs, native clients, path-keyed semantic caches or
110
+ independent AST parsers in new rules. `memoFact` lives for one fenced request;
111
+ `memoProgram` is only for facts determined by an immutable program/tree or captured
112
+ revision, with weak ownership. Return
113
+ copies when exposing cached mutable results. A boundary test prevents rule modules
114
+ from constructing programs or importing native transports. Library inspection
115
+ APIs are asynchronous and use the same native session implementation. Await
116
+ `checkProject`, `inspectTokens`, contract/scenario inspection and import
117
+ resolution. Direct library callers acquire a context through `standalone.mjs`;
118
+ they do not select a different engine. Syntax-only work uses the native API's
119
+ bounded source-file leases. There is one compiler implementation.
120
+
121
+ Semantic calls go through `analysis/queries.mjs`, which shares pending promises
122
+ and batches independent symbol/type queries. Await source and semantic lookups;
123
+ ordinary syntax predicates remain synchronous. Use the ordered async traversal
124
+ and collection helpers when callbacks perform semantic work, so short-circuit
125
+ checks and diagnostic order remain deterministic.
126
+ Use `walkValuesAsync` for CSS values: returning false prunes that function's
127
+ children. `walkAsync` follows PostCSS's different contract, stopping the walk.
128
+ Resolve named subjects through `localValueDeclarations` instead of enumerating
129
+ all symbols in scope. Resolving declarations for a global symbol inventory can
130
+ load the compiler libraries unnecessarily and exhaust memory.
131
+
132
+ `bun run test:analysis` verifies native analysis, cache invalidation, production
133
+ draft acceptance and computed-CSS compilation without browser rendering or
134
+ registered behavior execution. The [analysis benchmark](../scripts/benchmarks/analysis/README.md)
135
+ runs the current engine serially with correctness assertions and time/memory
136
+ regression gates when a compatible baseline is supplied. Its acceptance fixtures
137
+ disable scripts, registered behavior execution and rendering so measurements
138
+ include input capture, branching, guards and publication without browser work.
139
+ [AGENTS.md](../AGENTS.md#mandatory-analysis-benchmarks) requires both inventory
140
+ sizes for relevant changes. Browser and component behavior suites remain
141
+ separate from these engine measurements.
142
+
143
+ Changed-scope validation follows shared source trees and native import resolution.
144
+ Its successful full baseline also retains plain dependency closures, so later
145
+ selection includes consumers from both the previous and current revisions.
146
+ Deleted inputs without previous evidence, unknown ownership, computed imports
147
+ and shared configuration widen selection conservatively. This selects what to
148
+ audit; it does not replace browser evidence or grant a passing result.
44
149
  The project declares React or native Preact in `ds.config.json` and uses the
45
150
  matching compiler and mount adapter. Both integrate with the required styling
46
151
  and validation pipeline; additional frameworks need explicit tooling support.
47
152
 
48
- New projects start from the starter that ships inside the same ADS package:
49
- `ads create <folder> --framework react|preact` copies `starters/react` (and, for
50
- Preact, the `starters/preact` files that replace React's), names the package and
51
- runs init, so a project always matches the tool version that checks it. Skills carry
52
- no starter copy; they point agents to `ads create`. The starter is a working base: a
153
+ A design system can start from the starter that ships inside the same ADS package:
154
+ `ads init --framework react|preact --include-starter`, run inside an existing project, adds
155
+ `dist/starters/react` and its generated Preact overlay
156
+ where the project has nothing, so it always matches the tool version that checks it. It
157
+ never replaces a project file or writes a lockfile. Skills carry no starter copy; they
158
+ point agents to `ads init --include-starter`. The starter is a working base: a
53
159
  token foundation in six groups (color ramps with AA-checked roles, type,
54
160
  space and sizing, shape and elevation, motion, layout with a column grid), brand artwork
55
161
  with Brand previews, an icon set, and one example of each layer.
@@ -91,6 +197,11 @@ The shared foundation is the only design-value catalogue. Components and pattern
91
197
  map its roles into owned `--ds-*` and `--ux-*` variables; these namespaces cannot
92
198
  introduce independent design values. Raw literals hidden by aliases, fallbacks,
93
199
  themes or static helper/import interpolation follow the same source checks.
200
+ Every interpolated alternative must resolve. The checker deduplicates known
201
+ values and checks all resulting styles; unknown alternatives and work-limit
202
+ exhaustion produce a blocking `design-value-source` finding. A template may
203
+ produce at most 256 distinct styles, including combinations of interpolations;
204
+ larger constructions must be split into smaller styles, never silently sampled.
94
205
  Runtime measurements and typed instance paints retain narrow, explicit contracts.
95
206
  When adapting external UI, use the project's existing font, text, spacing and
96
207
  other semantic roles even when their values differ from the reference. Add a
@@ -115,15 +226,32 @@ patterns. Import count, element count and implementation size do not decide the
115
226
  layer. Scenarios may compose public UI and development review helpers to demonstrate their
116
227
  subject without becoming production patterns.
117
228
 
118
- Patterns are production application UI. Development-only framing, demo controls
119
- and token renderers belong in project-owned `review/`, with a separate
120
- `reviewEntry` (default `review/index.ts`) and `${publicAlias}/review` import alias.
121
- They are absent from the product barrel and catalogue. Guards reject production
122
- dependencies on review code, types and styles; review source keeps normal styling,
123
- token and public product-contract checks. Scenarios exercise the real production
124
- implementation through fixtures. The [portable review guide](../skills/ads-designer/references/review.md)
125
- defines guarded owners, build isolation and migration steps. Review rendering
126
- stays inside the App iframe; it adds no project execution to the host shell.
229
+ Patterns are production application UI. The showcase owns generic preview UX:
230
+ navigation, theme/viewport controls, framing and hosting inside the App iframe.
231
+ Projects supply `.ads.scenario.*` demonstrations and `.ads.fixture.*` inputs for
232
+ the actual production implementation. Small project-specific arrangements
233
+ and demonstration controls use `.ads.review.*` files. `review/`
234
+ is an optional organizational home for shared helpers, not another production
235
+ UI layer or an exemption from the filename marker. Its generated helper entry is
236
+ `review/index.ads.review.ts`, imported through `@ds/review`.
237
+
238
+ The tool-owned `@reqvire-org/ads/preview` API supplies generic frame classes and
239
+ mount containers; project framework adapters use `.ads.mount.*`. Its development-only
240
+ `setPreviewGuides(options)` and `observePreviewGuides(listener)` helpers let a
241
+ composed inspection toolbar control the managed preview’s existing guide overlay.
242
+ Choices are a `mode` (`off`, `hover` or `always`: where guides show) and boolean
243
+ layers (`bounds`, `tracks`, `gaps`, `padding`, `margins`, `mini`: what they draw);
244
+ the observer receives the current choices immediately and returns an unsubscribe
245
+ function. The App forwards edits to its host, which retains them across views and
246
+ synchronizes other controls. This does not create a second overlay or a production
247
+ layout dependency. Neither this
248
+ preview API nor marked project code/styles may enter production dependencies.
249
+ Review helpers retain public product-contract and style checks. They reuse
250
+ production tokens unchanged; literal width/height and grid-track dimensions are
251
+ permitted only for isolated demonstration geometry. Colors, typography, spacing
252
+ and component states remain governed by production Data and owners. Showcase-only
253
+ values do not belong in the production token foundation. See the
254
+ [scenario support guide](../skills/ads-designer/references/review.md).
127
255
 
128
256
  Core guards reject component runtime dependencies on patterns/composition through
129
257
  resolved imports, re-exports and helpers. Patterns consume public component
@@ -166,9 +294,8 @@ visual expression.
166
294
  ## Linaria is the implementation mechanism
167
295
 
168
296
  Linaria connects these responsibilities in the component and pattern styling
169
- pipeline. The native Preact working example in `design-system/` and the starter
170
- (React in `starters/react/`, Preact with `starters/preact/` applied over it by `ads create`)
171
- implement that pipeline. Both are supported: the project
297
+ pipeline. The starter has one authored `starters/shared/` design with generated
298
+ native React/Preact imports and configuration. Both runtimes are supported: the project
172
299
  chooses its rendering runtime, while ADS checks the same architecture and serves
173
300
  its actual compiled scenarios. A React application remains React; MCP does not
174
301
  substitute a different runtime or a visual reproduction.
@@ -223,7 +350,7 @@ of every unused variant. Atomic composition still requires care with the cascade
223
350
 
224
351
  Apply extraction to application and project preview builds, preserve intentional
225
352
  foundation CSS, and inspect compiled output when performance matters. The
226
- [implementation guide](../design-system/README.md#bundling-notes) covers these details.
353
+ [starter guide](../starters/shared/README.md) covers these details.
227
354
  Both extraction pipelines use the build-only `@reqvire-org/ads/linaria` tag
228
355
  resolver. It delegates atomization and nesting to the project's installed Linaria
229
356
  processor while preserving custom-property token streams around that pass.
@@ -275,7 +402,7 @@ components, patterns or controllers; extract a shared controller only when the
275
402
  behavior is shared. Other external runtime imports fail
276
403
  `behavior-library-undeclared`. Type-only imports and development roles retain
277
404
  their existing rules, as do the configured framework and Linaria exceptions.
278
- `ads lint-config` reports import locations and the exact list to declare.
405
+ `ads check` reports import locations and the exact list to declare.
279
406
 
280
407
  This is project approval, not a recursive dependency audit or a guarantee about
281
408
  third-party internals. ADS reads installed versions without executing packages
@@ -285,9 +412,9 @@ checks retain their scope; it introduces no new package-CSS certification gate.
285
412
  For example, Floating UI's `computePosition` can supply `x` and `y` to an
286
413
  allowlisted producer's `style.setProperty("--ds-popover-x", ...)` and
287
414
  `style.setProperty("--ds-popover-y", ...)`; project Linaria owns positioning
288
- rules and visual treatment. Register those exact properties using the existing
289
- `boundaries.styleWrites` mechanism. Clean up positioning observers on unmount.
290
- The project preview compiler bundles used library code into the normal MCP App
415
+ rules and visual treatment. Declare those exact properties in the owner contract's
416
+ `styles.writes`. Clean up positioning observers on unmount.
417
+ ADS's managed preview compiler bundles used library code into the normal MCP App
291
418
  resource graph; declarations alone do not load packages or change its sandbox.
292
419
 
293
420
  Optional `<Owner>.ads.contract.ts` modules identify public APIs or private
@@ -309,15 +436,41 @@ side effects, rather than the controller directory name.
309
436
 
310
437
  ## The showcase is the shared design workspace
311
438
 
312
- Iterative proposals use tracked `ads-drafts/` source and explicit `.ads`
313
- source, with canonical target mappings and baseline fingerprints. Production
314
- discovery/imports exclude drafts. Generated preview mirrors retain the normal
315
- project layout and public imports while overlaying proposed owner files and
316
- declared draft dependencies; their compiler stays alive across edits. Only these
317
- isolated mirrors skip acceptance validation for fast feedback. Acceptance uses
318
- the ordinary guarded candidate pipeline, fences the exact reviewed revision and
319
- rechecks live inputs before transactional publication. Pattern/composition and
320
- token-group draft dependencies resolve to normal accepted source after promotion.
439
+ Every MCP source change is a tracked proposal: `ads-drafts/` source in explicit
440
+ `.ads` files, with canonical target mappings and baseline fingerprints. Only
441
+ `ads_accept` of an exact draft revision writes accepted source. Production
442
+ discovery/imports exclude drafts.
443
+
444
+ Ownership makes drafts independent. Every authored file has one owner, and an owner
445
+ is in at most one open draft, so concurrent clients edit different owners and drafts
446
+ never share a file. A draft carries only its owners' files; a companion such as
447
+ `ds.config.json` joins when the draft changes it. Shared entries are generated from
448
+ owned files: the public barrel and review entry from each owner's
449
+ `<Owner>.ads.exports.ts` (its named re-exports, copied with rebased paths, so a product
450
+ build never includes an exports file), the styles entry from the canonical token sheets, the theme
451
+ files from the token halves. Style permissions live in the owner's contract. ADS
452
+ therefore never merges: if accepted source changes under a draft (a direct edit or a
453
+ Git pull), acceptance reports a baseline conflict and the draft is recreated.
454
+
455
+ Each connected project runtime owns one managed preview compiler process.
456
+ Semantic analysis uses the shared host described above. Generated preview
457
+ workspaces (`.ds/draft-previews/<id>/project`) retain the normal project layout and
458
+ public imports while overlaying proposed owner files and declared draft dependencies,
459
+ with the generated entries regenerated. The preview compiler process hosts each
460
+ draft workspace as an in-process instance listed in a control file, and one scheduler
461
+ runs their builds in turn: the viewed draft first, then the project, then background
462
+ work. A draft's preview is a view of its workspace served by the project's showcase,
463
+ in comparison (`?draft=<id>`) or alone (`/draft/<id>/`, the same client with that
464
+ workspace's MCP endpoint). Only these workspaces skip acceptance validation for fast
465
+ feedback. A draft's own edits and the viewed draft resync at once; other drafts
466
+ behind an accepted-source change catch up in the background.
467
+
468
+ Acceptance fences the exact reviewed revision, builds a candidate copy and rechecks
469
+ live inputs before publication. When the draft's workspace holds the same inputs as
470
+ the candidate, `ads check` and the browser renders run there, through the project's
471
+ compiler and host, so a dry run followed by acceptance of the same revision reuses its
472
+ check and audit results. Pattern/composition and token-group draft dependencies
473
+ resolve to normal accepted source after promotion.
321
474
  The [draft guide](../skills/ads-designer/references/drafts.md) defines lifecycle,
322
475
  completion requirements, build integration and recovery.
323
476
 
@@ -326,16 +479,16 @@ Humans and coding agents inspect the same project through MCP. The showcase is
326
479
  tooling. Its header, section tabs (Brand, shown first when the project previews its
327
480
  artwork, then Tokens, Icons when the project has a glyph set, Components, Patterns and
328
481
  Composition), collapsible left menu,
329
- grid overlay and theme switches and preview area stay neutral. The grid overlay draws
330
- the project's `--grid-*` columns over every preview through the App's host context, so
331
- alignment is checked on real previews without a second renderer. The client discovers entries, invokes tools, forwards App
482
+ grid overlay and theme switches and preview area stay neutral. Through the App's host
483
+ context, the grid inspector highlights actual computed grid tracks inside the rendered
484
+ widgets, following each container's padding, gaps, size and scroll position. The client discovers entries, invokes tools, forwards App
332
485
  resource requests and subscribes to changes. It contains no project UI catalogue
333
486
  or implementation imports.
334
487
 
335
- The server supplies catalogues, discovered token scenarios, source guides, preview Apps,
488
+ The server supplies catalogues, the token and brand views it builds, source guides, preview Apps,
336
489
  build status and diagnostics. Agents connect over stdio; the browser uses a
337
- loopback HTTP MCP endpoint in the same runtime. Both share one project-configured
338
- compiler. Starting MCP starts the website; a browser-only command starts the same
490
+ loopback HTTP MCP endpoint in the same runtime. Both share ADS's managed Bun
491
+ preview compiler. Starting MCP starts the website; a browser-only command starts the same
339
492
  runtime without stdio. Shutdown closes the website, connections and compiler.
340
493
  Local and external compatible hosts load the same reusable preview App. The
341
494
  browser host uses a separate-origin sandbox proxy around its opaque App iframe.
@@ -350,14 +503,13 @@ external bases still require declared CSP origins. This belongs to document
350
503
  loading and changes no project link or scenario handler. External hosts control
351
504
  their own document-loading and CSP behavior.
352
505
 
353
- The proxy and App sandbox permit native forms (`allow-forms`), including the
354
- legacy nested widget. This lets browser constraint validation and `submit`
506
+ The proxy and App sandbox permit native forms (`allow-forms`). This lets browser constraint validation and `submit`
355
507
  handlers run for clicks, Enter and `requestSubmit()`. Client-side handlers retain
356
508
  their own `preventDefault()` behavior. The App stays opaque; CSP
357
509
  `form-action 'none'` blocks native action requests without suppressing submit
358
510
  handlers. Hosts outside ADS choose their own sandbox and CSP permissions.
359
511
 
360
- The project compiler publishes a versioned dependency graph: shared runtime and
512
+ ADS's Bun preview compiler publishes a versioned dependency graph: shared runtime and
361
513
  foundation assets, plus independently addressable scenario modules. Inside the
362
514
  App, a resource loader obtains the selected dependency closure through MCP,
363
515
  verifies its content and mounts it using the project's framework adapter. Native
@@ -382,9 +534,9 @@ its case results. Persistent transport failures still block a mutation. External
382
534
  hosts own their transport recovery; the reusable App's integrity checks remain
383
535
  the same.
384
536
 
385
- Managed graph builders publish into a private session directory beside the
386
- configured manifest. Logical scenario IDs and resource URIs stay unchanged;
387
- standalone builds retain the configured output and cannot overwrite a live
537
+ Managed graph builders publish into `.ds/preview/sessions/<session>/`.
538
+ Logical scenario IDs and resource URIs stay unchanged;
539
+ standalone builds publish `.ds/preview/manifest.json` and cannot overwrite a live
388
540
  session's success record. Verified compiled snapshots form a bounded shared
389
541
  warm-start cache. Source, compiler, dependency and output hashes still gate reuse.
390
542
  Ordinary shutdown removes owned session output while retaining that cache.
@@ -433,14 +585,13 @@ to produce useful UI. A scenario supplies that development context around the
433
585
  real public implementation. It mounts independently, without opening a showcase
434
586
  page or initializing the application's router, store or services first.
435
587
 
436
- Scenarios and their fixtures live beside the tokens, component or pattern they exercise.
588
+ Scenarios and their fixtures live beside the component or pattern they exercise.
437
589
  Demo framing belongs to development-only review helpers; component props describe
438
590
  intentional product behavior and visual variants.
439
- Token scenarios choose real token names and sample inputs; a project-owned
440
- review renderer applies the foundation variables. The tool contains no project
441
- token list, sample templates or assumed visual identity. Even an initial token
442
- scenario uses a project-owned development review renderer to apply its declared samples;
443
- a definitions-only inspector does not establish preview coverage.
591
+ The token and brand views are tool-owned: ADS builds them from the token sheets,
592
+ `tokens/catalog.ads.json` (groups and sample bindings) and `assets/brand/`. The project
593
+ owns the data; ADS owns the presentation. The tool contains no project token list,
594
+ sample values or assumed visual identity.
444
595
  Larger scenarios live under `composition/`. They use the same public screen
445
596
  patterns as production: application adapters supply live data and effects;
446
597
  scenario adapters supply fixture data, local state and simulated services.
@@ -449,9 +600,7 @@ Reassembling a second screen from shared primitives still allows design drift.
449
600
  The server discovers one path-derived scenario registry. The showcase's scenario
450
601
  sections (Brand, Tokens, Components, Patterns and Composition) browse that same registry
451
602
  through MCP results. They do not initialize the entry or define
452
- its UI. Every preview uses `?scenario=<id>`; discovered `kind` selects its section,
453
- including token scenarios colocated with component/pattern owners. Existing
454
- `?category=` links remain compatibility aliases. The host supplies theme and
603
+ its UI. Every preview uses `?scenario=<id>`; discovered `kind` selects its section. The host supplies theme and
455
604
  available space; the public implementation
456
605
  supplies presentation. Several related public parts may share a scenario with
457
606
  their required parent. Every declared token and every public renderable component
@@ -507,6 +656,11 @@ bundles. Native ADS gates run directly; project lint/build/test commands remain
507
656
  explicit integration checks. Explorer navigation and metadata are served
508
657
  independently of compilation and validation.
509
658
 
659
+ New preview requests share one input-stamp capture per batch. After that
660
+ asynchronous capture, scheduling reads the current candidate, publication and
661
+ registry together. Candidate completion or replacement during capture cannot
662
+ lose a requested view or reuse coverage from a retired candidate.
663
+
510
664
  ```mermaid
511
665
  flowchart LR
512
666
  Edit[Source edit] --> Compile[Compile changes with Bun]
@@ -522,8 +676,8 @@ flowchart LR
522
676
  ```
523
677
 
524
678
  Watched compilation provides immediate visual feedback while validation and
525
- scenario inspection run in the background. Inspection uses a persistent worker
526
- to keep the compiler responsive. Rapid edits replace pending work, with one
679
+ scenario inspection run in the background. Inspection uses the shared asynchronous
680
+ analysis host, rather than an inspector-owned worker. Rapid edits replace pending work, with one
527
681
  verification run in flight. Production builds retain their own optimization.
528
682
 
529
683
  Preview discovery shares `.ds/scenario-registry.json` between the MCP host,
@@ -535,16 +689,17 @@ startup; changed inputs or missing/corrupt snapshots trigger fresh discovery.
535
689
  Explicit catalogue reads fence their in-memory registry against current source,
536
690
  so edits and removals are visible before the next observation/reconciliation tick.
537
691
  Reopening an already known draft scenario retains its last discovered metadata
538
- while a persistent worker refreshes the catalogue. It does not run synchronous
539
- semantic discovery on the preview request. New/missing scenario identities await
540
- worker discovery; accepted comparison metadata is independently revision-fenced.
692
+ while the shared asynchronous analysis service refreshes the catalogue.
693
+ New/missing scenario identities await discovery; accepted comparison metadata
694
+ is independently revision-fenced.
541
695
  The response's `discovery` distinguishes current, pending and failed metadata
542
696
  from the exact proposal revision and the actual preview build. Superseded worker
543
- results cannot replace newer requests; drop/shutdown retires their state/worker.
544
- Preview analysis retains a bounded set of TypeScript programs and unchanged
545
- source trees across edits; module lookups are refreshed so added/deleted files
546
- cannot inherit old resolution results. Full validation uses fresh independent
547
- analysis. Watched graphs include requested scenario roots and their dependencies,
697
+ results cannot replace newer requests; drop/shutdown removes owned discovery
698
+ state and releases registered revisions. Preview analysis and checks share
699
+ bounded native snapshots through `analysis/service.mjs`. Program acquisition
700
+ delegates through `program-cache.mjs`; unchanged ASTs retain identity, and source,
701
+ import and configuration edits invalidate the relevant snapshot. Watched graphs
702
+ include requested scenario roots and their dependencies,
548
703
  preserving roots used by other mounted Apps; untouched catalogue entries are not
549
704
  compiled until requested. Unwatched full builds retain complete entry coverage.
550
705
  Snapshot publication fences source edits during inspection. This cache supplies
@@ -577,7 +732,11 @@ not initialize fresh observation and misclassify each request as a source edit.
577
732
  Draft-only edits preserve accepted registry/catalogue snapshots. Capture updates
578
733
  reuse source-fenced discovery rather than allocating another semantic program.
579
734
  Explorer uses these reports for monochrome
580
- entry glyphs and refreshes its mounted Apps. A ready draft preview remains
735
+ entry glyphs and refreshes its mounted Apps. Its notification scheduler keeps an
736
+ already scheduled refresh's deadline; later build notices cannot postpone a
737
+ catalogue update indefinitely. Refreshes run one at a time, and notices arriving
738
+ during a refresh form one follow-up batch that retains any discovery request.
739
+ A ready draft preview remains
581
740
  unaccepted; catalogue metadata or compiled feedback cannot establish acceptance.
582
741
 
583
742
  Live resources are fenced to the current source digest and managed session.
@@ -604,10 +763,10 @@ newer inputs; it leaves the previous cache intact and requires the next build.
604
763
  A transferred checked graph can refresh older watcher metadata without recompiling
605
764
  it, while a partial watched graph cannot replace the complete catalogue.
606
765
  Its full semantic registry snapshot transfers only when source revisions match,
607
- so restarting a parked compiler need not repeat discovery of accepted source.
766
+ so reopening a compiler need not repeat discovery of accepted source.
608
767
  Shared dependency maps are stored once, with a fresh validation memo for each
609
768
  reuse operation. No file hash is retained across operations. Configuration input
610
- ordering is canonical across Node and Bun; complete caches stay within the
769
+ ordering is canonical; complete caches stay within the
611
770
  existing 8 MiB budget rather than silently writing an unreadable large file.
612
771
 
613
772
  Background acceptance, validation and architecture checks serialize independently
@@ -615,21 +774,26 @@ of the accepted/draft preview lane. They never suspend Explorer's compiler or
615
774
  make a cold selection wait for a browser verification suite. Existing publications
616
775
  remain readable while interactive source changes compile.
617
776
 
618
- For managed resource previews, ADS requests all scenarios in production mode
619
- through that candidate's compiler. It closes an incremental Rollup graph before
620
- starting production compilation. The candidate compiler is parked after production publication, while its host
621
- continues serving that immutable graph to registered browser verification.
777
+ For managed resource previews, ADS requests the scenarios in production mode
778
+ through the reviewed draft's workspace, compiled by ADS's managed compiler and
779
+ served by its host. Only a candidate without such a workspace gets a preview host
780
+ of its own; its compiler is parked after production publication while the host
781
+ continues serving that immutable graph to registered browser verification. Either
782
+ way the incremental graph is closed before production compilation starts.
622
783
  Warming an already-current selection does not restart or wait for that compiler.
623
784
  Production reuse requires a successful production build of the exact inputs,
624
785
  not merely a previously compiled development graph. Project-owned additional
625
786
  commands still run as configured. Remove the standalone preview-build command
626
- from `acceptance.checks`; keep it in the ordinary project build.
787
+ from `acceptance.scripts`; keep it in the ordinary project build.
627
788
 
628
- Candidate architecture inspection runs in a short-lived owned process, releasing
629
- its TypeScript heap after completion or cancellation. Semantic preview workers
630
- retire after five idle seconds, while revision-fenced metadata remains on disk.
631
- Closing a temporary host releases its semantic program cache. These lifecycle
632
- bounds do not change source checks, behavior selection or publication fences.
789
+ Candidate architecture inspection shares the project's native compiler through
790
+ an isolated snapshot rather than starting a compiler for each acceptance.
791
+ Releasing a candidate drops its adapters, resolvers and snapshot leases while
792
+ keeping live/sibling revisions valid. The service bounds active project/revision
793
+ state and closes after idle time when no registered revision pins it. Direct
794
+ library and syntax-only clients have their own short idle cleanup. Closing one
795
+ scenario inspector cancels its requests without retiring other callers' shared
796
+ compiler. Persisted registry metadata has separate content checks.
633
797
 
634
798
  After the selected view paints, a connected showcase can prefetch changed peers'
635
799
  static resources into the App's existing byte cache. This bounded, opportunistic
@@ -644,15 +808,16 @@ adapter. Native ESM resources still obey digest checks and the existing bounded
644
808
  revision lifecycle; this is state-preserving refresh, not component-level HMR.
645
809
 
646
810
  Incremental compilation is separate from test selection. Preview refresh runs the
647
- adapter's validation callback. Guarded mutations select affected behavior owners
648
- by registered input dependencies, then execute their registered checks. A shared
811
+ adapter's validation callback. Draft acceptance executes the draft owners' own
812
+ registered behavior checks when `acceptance.behavior` is enabled. `ads validate`
813
+ selects affected behavior owners through registered input dependencies; a shared
649
814
  foundation change can select every owner. Configured project checks still run as
650
815
  authored; releases run the full test suite. ADS does not claim per-test-case
651
816
  selection or skip validation because a module transform was cached.
652
817
 
653
- Architecture inspection shares analysis within one immutable TypeScript checker
654
- and avoids redundant source discovery. A new inspection still observes current
655
- source and configuration; successful diagnostics are not cached across edits.
818
+ Architecture inspection shares immutable ASTs/programs, native semantic queries
819
+ and request-scoped facts. A new inspection still observes current source and
820
+ configuration; successful reports are reused only for their exact input key.
656
821
  Source scans prepare generated-directory and source-root comparisons once per
657
822
  inventory. Every scan still discovers tests and hashes current input bytes.
658
823
 
@@ -669,8 +834,8 @@ The built-in client uses `waitFor: compiled` for interactive selections, so it
669
834
  can browse compiled feedback or a retained verified graph while checks run.
670
835
  Default MCP preview calls, captures and verification still wait for verified
671
836
  output. Pending selections never report App readiness as verified. Discovery
672
- notifications are reconciled after validation rather than repeating synchronous
673
- semantic inspection on the live update path. The App retains or remounts its view
837
+ notifications are reconciled after validation through asynchronous discovery.
838
+ The App retains or remounts its view
674
839
  according to its dependency closure. A quiet monochrome indicator in the
675
840
  showcase's upper-right header exposes compilation, checking, reload and fallback
676
841
  status through its accessible label, tooltip and details popover. Editing keeps
@@ -682,6 +847,11 @@ failures stay in the watcher's recoverable diagnostic path. Fixing source trigge
682
847
  If the compiler process exits, the next preview request starts one fresh child;
683
848
  MCP inspection remains available. Each child generation has its own status report,
684
849
  so independent MCP clients do not overwrite each other's build state.
850
+ Standalone compilation writes `.ds/build-status.json`. Managed compilation uses
851
+ `.ds/build-status-<session>.json`, selected through the internal
852
+ `ADS_MCP_BUILD_STATUS` and `ADS_MCP_BUILD_SESSION` launch variables. Session identity
853
+ separates revisions across restarts; source and artifact digests establish
854
+ freshness independently of process state.
685
855
  Compilation remains necessary for TSX and Linaria;
686
856
  there is one preview pipeline with automatic updates.
687
857
 
@@ -715,9 +885,9 @@ sandboxed App the requested viewport. Project runtime, fonts and styles remain
715
885
  inside the App resource graph. The image excludes showcase chrome.
716
886
 
717
887
  Captures exist only when requested. `ads_capture` replaces current and removes any
718
- candidate for that scenario/target. Guarded patch/transaction dry runs can opt into
719
- `screenshot:true` with explicit selected captures: after the normal gates, ADS
720
- renders current and candidate under matching settings without changing live source.
888
+ candidate for that scenario/target; with a draft and its exact revision it renders
889
+ current and candidate under matching settings without changing live source.
890
+ Acceptance and its dry run take no screenshots.
721
891
  A new scenario has no fabricated baseline. Final freshness/conflict checks precede
722
892
  image publication. Matching accepted source promotes candidate to current.
723
893
 
@@ -737,8 +907,8 @@ source ownership and product bundles. Detailed usage lives in each portable skil
737
907
 
738
908
  Brand artwork lives in `assets/brand/`: SVG masters, finished PNG/JPEG/WebP images and
739
909
  delivered `.ico`/`.icns` files, each described with its use and license in the folder's
740
- README. Brand previews are scenarios in `brand/`, the showcase's first section; they show
741
- artwork in the current theme and the app icon at its sizes and have no token samples.
910
+ README. ADS generates the Brand view from those assets, including construction grids
911
+ and actual-size samples; projects do not author brand preview scenarios.
742
912
 
743
913
  `ads assets` makes three kinds of output. Web icons from `assets.iconSource` are rebuilt
744
914
  into ignored `.ds/assets/` on every build, for the application's bundler. Committed targets
@@ -757,6 +927,32 @@ owners' colors, render as images, and are never muted, tinted or recolored (a on
757
927
  only where the owner's rules allow it, in the colors they name). ADS generates and checks
758
928
  nothing there.
759
929
 
930
+ ### Declared artwork/text lockups
931
+
932
+ `@ads-lockup { artwork: .hook; text: .other-hook; size: --icon-sm; }` is an opt-in
933
+ construction on an owned row. It emits ordinary CSS for centered artwork, an intrinsic
934
+ aspect ratio, a baseline-aligned text group and font-metric trimming of the group's
935
+ native text runs. It does not impose a canvas shape, symmetric artwork, internal
936
+ padding or cap-height-sized logos. Older browsers without text trimming retain box
937
+ centering. The [branding guide](../skills/ads-designer/references/branding.md#aligning-artwork-with-text)
938
+ contains the complete authoring example and visual-review boundaries.
939
+
940
+ The `lockup-construction` control is a blocking source check, shared by `ads check`,
941
+ validation and draft acceptance. It rejects malformed declarations, missing or
942
+ unresolved owned hooks, explicitly distorted inline SVGs and conflicting geometry,
943
+ alignment or text-trimming declarations across resolved class compositions. It
944
+ does not claim proof of painted-edge alignment or inspect opaque artwork internals.
945
+
946
+ `src/construction-styles.cjs` runs the pure lockup and spatial transforms for both
947
+ checking and the public Linaria resolver, including preview compilation. The lockup
948
+ transform in `src/lockup-model.cjs` reads no files and needs no spatial model. Generated
949
+ declarations retain their rule identity for shared CSS override protection.
950
+ `src/lockup-composition.mjs` binds the declaration through the existing captured native
951
+ AST/class-composition analysis. It adds no compiler, source capture, disk reads or
952
+ persistent rule-local cache. Preview fingerprints include the transform modules;
953
+ changes cannot reuse previously compiled output. Optical review remains separate
954
+ from these source-only checks and benchmarks.
955
+
760
956
  ## Build checks keep the architecture in place
761
957
 
762
958
  The project build runs ADS checks before producing application or showcase
@@ -768,7 +964,7 @@ Themes and brands are declared in `ds.config.json` and are only value sets: ever
768
964
  brand shares the same token names. A theme sets the color mode and a brand sets identity
769
965
  values (an accent ramp, a font), so a white-label product needs one brand per customer
770
966
  rather than one theme per customer and mode. The declaration is the one list the showcase,
771
- captures, preview host context, contrast review, browser audit and token export read, so a
967
+ captures, preview host context, contrast review, render audit and token export read, so a
772
968
  project can add a high-contrast theme or a brand without tool changes.
773
969
 
774
970
  A token that differs per theme is authored as one plain half per theme (`--x-light`,
@@ -800,16 +996,20 @@ equal token values with possibly different roles, keyboard reach, unused artwork
800
996
  in a render path); it is shown with guidance and never blocks. An info item notes an analysis
801
997
  limit. Stale or hand-edited generated outputs are errors, since they ship.
802
998
 
803
- Widths are fluid on the grid. A width that cannot shrink below 96 px, in any unit, raw, through a
804
- token or by arithmetic, is an error wherever a component, pattern or composition sets one. Values
805
- are read for what they resolve to, never by token name, and a maximum is not read because it cannot
806
- force overflow. A project names the widths that stay fixed (`layout.widthTokens`) and the owners
807
- that float above the layout (`layout.fixedWidthUnits`) in `ds.config.json`, and `ads check` lists
808
- both for review; ADS knows a unit's layer, not whether it is an overlay, and there is no
809
- per-declaration exception. The browser
999
+ The [spatial check map](SPATIAL-CHECKS.md) records GC-01–GC-06 enforcement, supported
1000
+ construction boundaries and focused evidence, including per-call container ancestry,
1001
+ placement alternatives and protection of emitted geometry.
1002
+
1003
+ Fixed minima use the spatial scale, mini/fine units, standard control/icon dimensions or
1004
+ explicit `layout.widthTokens` roles; their resolved minimum must fit the spatial maximum.
1005
+ Projects without a spatial definition may use their shared spacing primitives. The checker
1006
+ follows private aliases and calculated expressions. Responsive, fractional and intrinsic
1007
+ sizing remain supported; maximum sizes can cap otherwise fixed dimensions. Validated
1008
+ `@ads-layout` fixed/hybrid tracks use their own local algebra. Declared fixed roles and
1009
+ `layout.fixedWidthUnits` owners remain visible as review findings. The browser
810
1010
  audit adds what source cannot show: axe-core, non-text contrast of control borders and icons,
811
1011
  image shape and horizontal overflow at 390, 768 and 1280 px, by resizing each rendered scenario. It
812
- also narrows components and patterns to a 240 px container: a set width above the small-part limit
1012
+ also narrows components and patterns to a 240 px container: a set width above the browser review threshold of 96 px
813
1013
  that overflows it is a review item, since whether a part ever sits in a pane takes judgement.
814
1014
 
815
1015
  Each render waits, bounded, for its content to settle before anything is measured, and says so when it
@@ -817,7 +1017,16 @@ did not. The audit also renders what a scenario shows only after someone acts on
817
1017
  `aria-haspopup` controls open, and hovers and focuses controls for contrast. Each worker lists what
818
1018
  every render could measure, then assigns targets in request order, so which render measures a shared
819
1019
  control does not depend on page speed. Its result states what it covered, and what it skipped is an
820
- info item per reason.
1020
+ info item per reason. `mcp.auditPages` (1–16, default 4) sets how many pages render at once.
1021
+
1022
+ The audit runs in both gates. Draft acceptance audits the draft owners' own UI
1023
+ scenarios unless `acceptance.audit` is false. `ads validate` always audits every
1024
+ scenario its change set reaches through imports: everything with scope `all`, and
1025
+ with scope `changed` what changed since the last successful full run (all scenarios
1026
+ after shared configuration, foundation or token changes). The cost of auditing what
1027
+ a change reaches grows with how widely the owner is used, so it runs once for a
1028
+ series of drafts, before a commit or release, rather than on every acceptance. A dry run's audit is remembered by candidate revision and selection,
1029
+ so accepting that revision does not render again.
821
1030
 
822
1031
  Static errors split by what they stop. A preview session the audit starts renders despite policy
823
1032
  errors, records no pass, and reports them with the audit's findings; the audit still exits non-zero.
@@ -834,7 +1043,7 @@ tests and browser review verify the resulting accessibility, layout, themes,
834
1043
  states, and motion. Both forms of verification support agent-driven iteration.
835
1044
 
836
1045
  The CLI `ads validate` and MCP `ads_validate` share one audit engine, combining
837
- architecture and test-boundary guards, registered lint rules, project commands
1046
+ architecture and test-boundary guards, configured project lint/check scripts
838
1047
  and behavior contracts. Full audits establish a content baseline. Changed audits
839
1048
  select affected behavior owners from that baseline; broad or unclassified changes
840
1049
  expand to full. Opaque project commands retain their declared scope.
@@ -847,8 +1056,8 @@ recording changed paths and known/unknown attribution. Source-change interruptio
847
1056
  cannot publish a successful baseline. A small run journal supports crash recovery;
848
1057
  immutable run results and exact-run investigations survive reconnects and subsequent
849
1058
  runs under bounded age/count/disk retention. Collection protects active work and
850
- expires owned evidence with its result. See [execution coordination](MCP.md#shared-process-execution-coordination)
851
- and the [implementation plan](plans/execution-coordination.md).
1059
+ expires owned evidence with its result. See
1060
+ [execution coordination](MCP.md#shared-process-execution-coordination).
852
1061
 
853
1062
  Only a successful full audit against unchanged source advances the baseline.
854
1063
  This works without Git history and does not cache individual test results. Skills
@@ -878,17 +1087,6 @@ Bounded tools establish what exists; explicit resource reads provide detail.
878
1087
  Prompts and packaged skills explain how to reason through Data, UX and Skin and
879
1088
  how to inspect the real implementation before changing it.
880
1089
 
881
- Agent feedback has a separate intake boundary. `ads_report_bug` records suspected
882
- broken behavior; `ads_request_feature` records a missing capability and its use
883
- case. Both save durable development metadata under the connected project's
884
- `.ds/reports/`, with verified evidence selectors, compact snapshots and observed
885
- version/framework/revisions. Classification remains an untriaged agent claim.
886
- Reports grant no architecture exception, execute no submitted command and upload
887
- nothing. Equivalent submissions reuse an ID; records do not expire or get pruned
888
- by count. Individual records and receipts are bounded. MCP intake is submission-only:
889
- it exposes no report-reading tools, resources, subscriptions or notifications.
890
- See the [reporting contract](MCP.md#bug-reports-and-feature-requests).
891
-
892
1090
  The MCP runtime owns its browser hosts and preview builder lifetime. Closing the
893
1091
  client connection releases them together; a separate ownership guard can stop
894
1092
  detached builders after abrupt owner death. A preview process must not outlive
@@ -900,29 +1098,35 @@ Build reports expose queued, validation, compilation and publication progress.
900
1098
  A timed-out preview request marks the builder stalled; the next explicit request
901
1099
  restarts it within the same MCP session. A running process alone is not freshness.
902
1100
 
903
- Opt-in MCP editing makes validation part of the write operation. The agent sends
904
- a Git unified diff for one logical ADS unit: its implementation and owned preview
905
- context, or the shared token foundation. ADS resolves file ownership, reconstructs
906
- candidate files locally and validates a temporary project copy with architecture
907
- checks, registered lint rules and project validation scripts.
1101
+ Opt-in MCP editing makes validation part of the write operation. The agent edits a
1102
+ draft of one or more owners (file contents or a Git unified diff) and accepts it. ADS
1103
+ resolves file ownership, takes the draft's files as they are and validates a
1104
+ temporary project copy with architecture checks and configured project
1105
+ lint/validation scripts.
908
1106
  The temporary copy contains the relevant input graph and patched files, with room
909
1107
  for 100,000 files / 2 GiB. Unrelated native artifacts are not copied. Declared extra
910
1108
  inputs support project commands that read data outside the UI graph. When
911
- `acceptance.behaviorChecks` is true, affected registered behavior checks, including
912
- consumers of a changed shared controller, run in the isolated candidate project.
913
- Architecture batch checks use the internal pinned Turbo runner and its installed
914
- platform binary; no global Turbo or runtime dependency installer is invoked. Local artifact
1109
+ `acceptance.behavior` is true (the default), the draft owners' own registered behavior
1110
+ checks run in the isolated candidate project; the consumers of a changed shared
1111
+ controller run in `ads validate`.
1112
+ Architecture batch checks from the CLI and CI use the internal pinned Turbo runner
1113
+ and its installed platform binary; no global Turbo or runtime dependency installer is
1114
+ invoked. A task miss invokes the same asynchronous native analysis service.
1115
+ The MCP server, its preview compiler and registered candidates use warm checks
1116
+ (`check-service.mjs`) backed by that service. Native snapshots reuse unchanged
1117
+ ASTs and query results; an exact input-key repeat can return a remembered passing
1118
+ report. Local artifact
915
1119
  reuse is enabled by default and fenced by current input/tool/runtime/Git state;
916
- policy results, browser evidence, locks and baselines are never task outputs.
1120
+ gate results, browser evidence, locks and baselines are never task outputs.
917
1121
  Project scripts remain uncached without a known deterministic contract. The warm
918
1122
  Bun preview compiler retains its module cache; complete verified graph restoration
919
1123
  publishes fresh build-session evidence without semantic rediscovery. See
920
1124
  [cache controls and CI wiring](CACHING.md).
921
1125
 
922
- `acceptance.checks` and `validation.checks` explicitly select project scripts; no
923
- names are inferred. Validation selects its own `behaviorChecks` flag. Direct
924
- edits can invoke `ads validate --policy acceptance`; separate baselines prevent
925
- acceptance evidence from satisfying a complete validation audit. The project owns its test code and runner policy;
1126
+ `acceptance.scripts` and `validation.scripts` explicitly select project scripts; no
1127
+ names are inferred, and `ads validate` runs both lists, so each script is listed
1128
+ once. Direct edits invoke `ads validate --changed`; draft acceptance records no
1129
+ baseline, so its owner-scoped evidence never satisfies a complete validation. The project owns its test code and runner policy;
926
1130
  ADS owns affected-check selection, candidate hosting, progress, evidence freshness
927
1131
  and process cleanup. One profile timeout bounds its entire runner process. Parallel
928
1132
  workers can share that candidate host with independent App state. Partial outcomes
@@ -968,18 +1172,15 @@ replace the managed process while retaining the MCP connection. Normal build gat
968
1172
  remain in place for source changes made through other editors; preview review remains
969
1173
  necessary after either editing path.
970
1174
 
971
- For genuinely coupled changes, a bounded transaction accepts one Git patch per
972
- distinct owner and validates a single complete candidate before publication.
973
- Each patch retains its ownership and companion rules. Local owner drafts remove
974
- the need for a separate project mirror; token-sample reconciliation preserves
975
- project bindings and reports unresolved mappings. Neither preparation changes live
976
- source or substitutes for guarded application and rendered review.
1175
+ Genuinely coupled owners share one draft (up to 64 owners), validated as a single
1176
+ complete candidate and published together. Token-sample reconciliation writes into
1177
+ a draft, preserves project bindings and reports unresolved mappings; it never
1178
+ changes live source or substitutes for rendered review and acceptance.
977
1179
 
978
- Required shared-entry bookkeeping can accompany its owner: component/pattern
979
- re-exports, canonical foundation imports for token files created or deleted, and
980
- only that owner’s style-boundary entries in project configuration in the same
981
- patch. ADS restricts these companion edits and validates the complete candidate
982
- before writing, so coupled changes do not need a guard bypass.
1180
+ No owner edits a shared entry. An owner's public names, its style permissions and its
1181
+ token sheets are its own files; ADS regenerates the barrels and the styles entry in
1182
+ the candidate, and deletes an empty `.gitkeep` itself when accepted source is added
1183
+ beneath it. Coupled changes therefore need no companion edits or guard bypass.
983
1184
 
984
1185
  The architecture makes that inspection practical. A public export has an owning
985
1186
  source and addressable preview coverage. Token definitions expose its visual
@@ -996,20 +1197,14 @@ of evidence; source checks and metadata cannot establish visual or behavioral
996
1197
  correctness. Text/resource access and the normal showcase keep the workflow
997
1198
  usable when a client lacks experimental presentation capabilities.
998
1199
 
999
- Experimental MCP Apps are another development review surface. Token, component,
1000
- pattern and composition views are project-built scenarios with the project's
1001
- own extracted CSS and public implementations. A generic tool-owned definition
1002
- inspector remains available for token source/alias diagnostics, even if project
1003
- previews cannot compile; it does not substitute for token scenario coverage.
1200
+ Experimental MCP Apps are another development review surface. Component, pattern and
1201
+ composition views are project-built scenarios with the project's own extracted CSS and
1202
+ public implementations; token and brand views are built by ADS from project definitions.
1004
1203
  The server serves those artifacts; it does not interpret arbitrary component
1005
1204
  code or introduce production UI dependencies. File-change notifications let
1006
- hosts refresh their views. ADS normally manages its native Bun preview compiler with one launch command.
1205
+ hosts refresh their views. ADS runs its Bun preview compiler itself, with no launch command.
1007
1206
  Editing access is independent: direct editors can use MCP only for preview/checks,
1008
- while MCP-only editors use enabled mutation tools. Direct editors can instead
1009
- manage compilation externally with `mcp.previewWatch: false`; the external builder
1010
- must publish the ADS resource graph and build evidence. MCP still serves previews,
1011
- but source changes stale their evidence until verified updated output is published.
1012
- See the [editing workflows](../skills/ads-designer/references/workflows.md). Structured build reports distinguish running compilers
1207
+ while MCP-only editors use enabled mutation tools. Both use ADS's compiler. See the [editing workflows](../skills/ads-designer/references/workflows.md). Structured build reports distinguish running compilers
1013
1208
  from successful, current previews; diagnostics remain readable even when a host
1014
1209
  does not forward notifications. Older clients retain tools/resources/prompts;
1015
1210
  native skill discovery and Apps presentation depend on the host's capabilities.
@@ -1019,13 +1214,13 @@ For concrete instructions, use:
1019
1214
 
1020
1215
  - [ADS tooling contract](ADS.md) for naming, ownership rules, updates, and lint responsibilities.
1021
1216
  - [Tool guide](GUIDE.md) for prerequisites, supported formats, configuration, and build wiring.
1022
- - [Working example guide](../design-system/README.md) for Linaria composition, extraction, and project commands.
1217
+ - [Starter/playground guide](../starters/README.md) for Linaria composition, extraction, and project commands.
1023
1218
  - Component-local READMEs for APIs, lifecycle, tests, and provenance.
1024
1219
 
1025
- Token preview completeness has two checks. Static guards require explicit fixture
1026
- bindings (`token`, CSS `property`, and project-selected `probe`) consumed by a public
1027
- review renderer. The App then verifies rendered samples in the actual browser by
1028
- probing those bindings and restoring them. The tool supplies no token/property
1220
+ Token preview completeness has two checks. Static guards validate the catalogue's explicit
1221
+ bindings (`token`, CSS `property`, and project-selected `probe`; `foundation-catalog`). The
1222
+ view then verifies rendered samples in the actual browser by probing those bindings and
1223
+ restoring them. The tool supplies no token/property
1029
1224
  classification or visual sample palette. A source build alone is not a rendered
1030
1225
  verification, and the browser check does not judge design quality.
1031
1226
 
@@ -1065,7 +1260,7 @@ scenarios and fixtures use the marked names; existing IDs remain stable.
1065
1260
  Instance bindings are distinct from static tokens and arbitrary inline styles.
1066
1261
  Source checks trace config origin, key validation, exact map construction and
1067
1262
  attachment to an owner root. Shared token and private runtime-variable ownership and consumer permissions
1068
- remain enforced. Browser audits inspect current scoped values, paint effects and
1263
+ remain enforced. Render audits inspect current scoped values, paint effects and
1069
1264
  local SVG resources; registered checks must cover updates/removal, isolation and
1070
1265
  relevant themes. Registration, source-demonstrated consumption and current browser
1071
1266
  verification are separate evidence. Unknown paths establish no blanket permission.
@@ -1080,8 +1275,7 @@ Shared token references remain visible across the project. Component state and
1080
1275
  implementation variables retain their existing ownership boundaries. Project checks
1081
1276
  may use `inspectTokenOrigins` to audit more specific shared alias relationships;
1082
1277
  core Data/UX/Skin separation does not depend on opting into such a check. ADS does
1083
- not hardcode a spacing scale or palette. Contract/file-role migration still uses
1084
- ordinary owner drafts, candidate gates and rollback.
1278
+ not hardcode a spacing scale or palette.
1085
1279
 
1086
1280
  Preview scheduling prunes standard generated output trees before allocating OS
1087
1281
  watches and computing source freshness. Explicit source roots retain priority;