@reqvire-org/ads 0.4.0 → 0.4.3

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 (410) hide show
  1. package/README.md +115 -87
  2. package/dist/a11y.mjs +133 -48
  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 +142 -0
  7. package/dist/analysis/impact.mjs +20 -0
  8. package/dist/analysis/inputs.mjs +22 -0
  9. package/dist/analysis/module-resolvers.mjs +46 -0
  10. package/dist/analysis/native-adapter.mjs +180 -0
  11. package/dist/analysis/native-project.mjs +323 -0
  12. package/dist/analysis/queries.mjs +133 -0
  13. package/dist/analysis/service.mjs +153 -0
  14. package/dist/analysis/standalone.mjs +57 -0
  15. package/dist/analysis/syntax.mjs +179 -0
  16. package/dist/analysis/worker.mjs +182 -0
  17. package/dist/assets.mjs +6 -6
  18. package/dist/atomic-composition.mjs +191 -70
  19. package/dist/atomic-trace.mjs +120 -50
  20. package/dist/behavior-libraries.mjs +106 -37
  21. package/dist/behaviors.mjs +219 -77
  22. package/dist/boundaries.mjs +140 -41
  23. package/dist/brand-assets.mjs +219 -47
  24. package/dist/brands.mjs +86 -27
  25. package/dist/bun-compiler.mjs +28 -14
  26. package/dist/bun-worker.mjs +7 -5
  27. package/dist/capture/worker.mjs +15 -4
  28. package/dist/capture-store.mjs +4 -2
  29. package/dist/capture.mjs +17 -14
  30. package/dist/check-service.mjs +44 -58
  31. package/dist/check.mjs +754 -188
  32. package/dist/cli.mjs +200 -99
  33. package/dist/color-values.mjs +21 -21
  34. package/dist/component-contrast.mjs +127 -9
  35. package/dist/config.mjs +303 -135
  36. package/dist/construction-styles.cjs +10 -0
  37. package/dist/contrast-composition.mjs +134 -0
  38. package/dist/control-padding.mjs +45 -25
  39. package/dist/css-values.mjs +3 -2
  40. package/dist/declarative-flow.mjs +209 -109
  41. package/dist/design-values.mjs +136 -51
  42. package/dist/development-runtime.mjs +4 -6
  43. package/dist/draft-boundary.mjs +11 -6
  44. package/dist/evidence.mjs +1 -1
  45. package/dist/finding-rules.mjs +9 -5
  46. package/dist/font-rules.mjs +22 -17
  47. package/dist/fonts-generated.mjs +23 -16
  48. package/dist/foundation-views.mjs +242 -0
  49. package/dist/foundation.mjs +63 -39
  50. package/dist/generated-entries.mjs +101 -34
  51. package/dist/icons.mjs +79 -32
  52. package/dist/image-attributes.mjs +143 -66
  53. package/dist/image-size.mjs +1 -1
  54. package/dist/index.mjs +0 -2
  55. package/dist/init.mjs +122 -41
  56. package/dist/investigations.mjs +2 -2
  57. package/dist/layers.mjs +298 -129
  58. package/dist/layout-widths.mjs +180 -85
  59. package/dist/linaria/preserve-values.cjs +7 -0
  60. package/dist/linaria/spatial-inputs.cjs +56 -0
  61. package/dist/lockup-composition.mjs +44 -0
  62. package/dist/lockup-model.cjs +64 -0
  63. package/dist/mcp/THIRD_PARTY_NOTICES.md +51 -1
  64. package/dist/mcp/apps.mjs +4 -30
  65. package/dist/mcp/behavior-pages.mjs +72 -24
  66. package/dist/mcp/build-status.mjs +257 -64
  67. package/dist/mcp/catalog.mjs +90 -26
  68. package/dist/mcp/context.mjs +17 -18
  69. package/dist/mcp/draft-discovery.mjs +44 -21
  70. package/dist/mcp/drafts.mjs +903 -281
  71. package/dist/mcp/execution-coordinator.mjs +417 -167
  72. package/dist/mcp/execution-results.mjs +7 -7
  73. package/dist/mcp/mutations.mjs +673 -234
  74. package/dist/mcp/preview-watch.mjs +448 -170
  75. package/dist/mcp/preview-widget.bundle.js +44 -50
  76. package/dist/mcp/prompts.mjs +5 -5
  77. package/dist/mcp/result-pages.mjs +1 -1
  78. package/dist/mcp/sandbox-host.mjs +1 -1
  79. package/dist/mcp/server.mjs +2409 -577
  80. package/dist/mcp/showcase-host.mjs +165 -41
  81. package/dist/mcp/skills.mjs +1 -1
  82. package/dist/mcp/text-diff.mjs +29 -10
  83. package/dist/paint-contracts.mjs +174 -81
  84. package/dist/palette-generated.mjs +2 -2
  85. package/dist/pictogram-model.mjs +59 -0
  86. package/dist/pictograms.mjs +52 -0
  87. package/dist/preview-bun.mjs +494 -187
  88. package/dist/preview-failure.mjs +1 -1
  89. package/dist/preview-files.mjs +13 -13
  90. package/dist/preview-imports.mjs +104 -55
  91. package/dist/preview-inputs.mjs +2 -2
  92. package/dist/preview-requests.mjs +24 -0
  93. package/dist/preview-resources.mjs +288 -147
  94. package/dist/preview-scope.mjs +5 -4
  95. package/dist/program-cache.mjs +8 -34
  96. package/dist/project-documents.mjs +1 -1
  97. package/dist/public-api.mjs +69 -31
  98. package/dist/public-props.mjs +39 -22
  99. package/dist/{browser-audit → render-audit}/axe-run.mjs +3 -3
  100. package/dist/{browser-audit → render-audit}/image-shape.mjs +15 -5
  101. package/dist/{browser-audit → render-audit}/layout-overflow.mjs +86 -23
  102. package/dist/{browser-audit → render-audit}/non-text-contrast.mjs +86 -27
  103. package/dist/render-audit/pictograms.mjs +88 -0
  104. package/dist/{browser-audit → render-audit}/render-states.mjs +208 -52
  105. package/dist/{browser-audit → render-audit}/worker.mjs +98 -30
  106. package/dist/render-audit.mjs +838 -0
  107. package/dist/render-color-probe.mjs +96 -42
  108. package/dist/render-composition.mjs +164 -0
  109. package/dist/resource-limits.mjs +229 -97
  110. package/dist/runtime-contracts.mjs +467 -185
  111. package/dist/scenario-groups.mjs +22 -10
  112. package/dist/scenario-inspector.mjs +6 -43
  113. package/dist/scenario-program.mjs +8 -25
  114. package/dist/scenario-registry.mjs +72 -30
  115. package/dist/scenario-selectors.mjs +161 -64
  116. package/dist/scenario-slots.mjs +149 -56
  117. package/dist/scenario-trace.mjs +215 -109
  118. package/dist/scenarios-compiler.mjs +719 -378
  119. package/dist/scenarios-vite.d.mts +1 -3
  120. package/dist/scenarios-vite.mjs +2 -81
  121. package/dist/scenarios.mjs +421 -157
  122. package/dist/selector-match.mjs +2 -2
  123. package/dist/showcase/client.bundle.js +57 -56
  124. package/dist/showcase/draft-navigation.js +21 -3
  125. package/dist/showcase/favicon.ico +0 -0
  126. package/dist/showcase/favicon.svg +1 -0
  127. package/dist/showcase/foundation-view.css +58 -0
  128. package/dist/showcase/foundation-view.mjs +255 -0
  129. package/dist/showcase/guide-controls.ads.review.mjs +32 -0
  130. package/dist/showcase/icons.js +1 -145
  131. package/dist/showcase/index.html +3 -31
  132. package/dist/showcase/pictogram-view.mjs +53 -0
  133. package/dist/showcase/preview-frame.ads.review.css +46 -0
  134. package/dist/showcase/preview-frame.ads.review.d.mts +11 -0
  135. package/dist/showcase/preview-frame.ads.review.mjs +22 -0
  136. package/dist/showcase/preview-state.js +0 -9
  137. package/dist/showcase/refresh-scheduler.js +23 -0
  138. package/dist/showcase/style.css +5 -47
  139. package/dist/showcase/ui/ui.css +1353 -0
  140. package/dist/showcase/ui/ui.js +1064 -0
  141. package/dist/showcase-coverage.mjs +58 -37
  142. package/dist/skills/README.md +24 -23
  143. package/dist/skills/ads-designer/README.md +8 -2
  144. package/dist/skills/ads-designer/SKILL.md +143 -120
  145. package/dist/skills/ads-designer/references/accessibility.md +78 -15
  146. package/dist/skills/ads-designer/references/atomic-styles.md +4 -4
  147. package/dist/skills/ads-designer/references/behaviors.md +30 -27
  148. package/dist/skills/ads-designer/references/branding.md +101 -24
  149. package/dist/skills/ads-designer/references/captures.md +25 -0
  150. package/dist/skills/ads-designer/references/cli.md +21 -24
  151. package/dist/skills/ads-designer/references/contracts.md +7 -6
  152. package/dist/skills/ads-designer/references/design-data.md +49 -52
  153. package/dist/skills/ads-designer/references/drafts.md +20 -17
  154. package/dist/skills/ads-designer/references/evidence.md +1 -5
  155. package/dist/skills/ads-designer/references/guarded-editing.md +14 -18
  156. package/dist/skills/ads-designer/references/layers.md +1 -1
  157. package/dist/skills/ads-designer/references/layout.md +347 -0
  158. package/dist/skills/ads-designer/references/mobile.md +2 -1
  159. package/dist/skills/{ads-motion/references/performance.md → ads-designer/references/motion-performance.md} +5 -1
  160. package/dist/skills/{ads-motion/references/build.md → ads-designer/references/motion.md} +73 -5
  161. package/dist/skills/ads-designer/references/performance.md +3 -2
  162. package/dist/skills/ads-designer/references/pictograms.md +131 -0
  163. package/dist/skills/ads-designer/references/review.md +37 -34
  164. package/dist/skills/ads-designer/references/runtimes.md +33 -30
  165. package/dist/skills/ads-designer/references/scenarios.md +16 -18
  166. package/dist/skills/{ads-break-ui/references/catalog.md → ads-designer/references/stress-catalog.md} +3 -1
  167. package/dist/skills/ads-designer/references/stress-test.md +68 -0
  168. package/dist/skills/ads-designer/references/validation.md +83 -75
  169. package/dist/skills/ads-designer/references/workflows.md +8 -33
  170. package/dist/skills/ads-import/SKILL.md +43 -325
  171. package/dist/skills/ads-import/references/atomic-styles.md +4 -4
  172. package/dist/skills/ads-import/references/behaviors.md +30 -27
  173. package/dist/skills/ads-import/references/branding.md +5 -5
  174. package/dist/skills/ads-import/references/captures.md +25 -0
  175. package/dist/skills/ads-import/references/cli.md +21 -24
  176. package/dist/skills/ads-import/references/compatibility.md +1 -1
  177. package/dist/skills/ads-import/references/contracts.md +7 -6
  178. package/dist/skills/ads-import/references/design-data.md +49 -52
  179. package/dist/skills/ads-import/references/drafts.md +20 -17
  180. package/dist/skills/ads-import/references/evidence.md +1 -5
  181. package/dist/skills/ads-import/references/guarded-editing.md +14 -18
  182. package/dist/skills/ads-import/references/implementation.md +2 -1
  183. package/dist/skills/ads-import/references/layers.md +1 -1
  184. package/dist/skills/ads-import/references/layout.md +347 -0
  185. package/dist/skills/ads-import/references/review.md +37 -34
  186. package/dist/skills/ads-import/references/runtimes.md +33 -30
  187. package/dist/skills/ads-import/references/scenarios.md +16 -18
  188. package/dist/skills/ads-import/references/tokens.md +3 -3
  189. package/dist/skills/ads-import/references/validation.md +83 -75
  190. package/dist/skills/ads-import/references/workflows.md +8 -33
  191. package/dist/skills/ads-migrate/SKILL.md +56 -0
  192. package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +602 -0
  193. package/dist/skills/ads-port/SKILL.md +58 -344
  194. package/dist/skills/ads-port/references/atomic-styles.md +4 -4
  195. package/dist/skills/ads-port/references/behaviors.md +30 -27
  196. package/dist/skills/ads-port/references/captures.md +25 -0
  197. package/dist/skills/ads-port/references/cli.md +21 -24
  198. package/dist/skills/ads-port/references/contracts.md +7 -6
  199. package/dist/skills/ads-port/references/design-data.md +49 -52
  200. package/dist/skills/ads-port/references/drafts.md +20 -17
  201. package/dist/skills/ads-port/references/evidence.md +1 -5
  202. package/dist/skills/ads-port/references/guarded-editing.md +14 -18
  203. package/dist/skills/ads-port/references/layers.md +1 -1
  204. package/dist/skills/ads-port/references/layout.md +347 -0
  205. package/dist/skills/ads-port/references/lint-and-docs.md +8 -11
  206. package/dist/skills/ads-port/references/native-implementation.md +2 -1
  207. package/dist/skills/ads-port/references/review.md +37 -34
  208. package/dist/skills/ads-port/references/runtimes.md +33 -30
  209. package/dist/skills/ads-port/references/scenarios.md +16 -18
  210. package/dist/skills/ads-port/references/validation.md +83 -75
  211. package/dist/skills/ads-port/references/workflows.md +8 -33
  212. package/dist/source-symbols.mjs +1 -8
  213. package/dist/source-values.mjs +270 -129
  214. package/dist/spatial-composition.mjs +322 -0
  215. package/dist/spatial-contexts.cjs +56 -0
  216. package/dist/spatial-css.cjs +351 -0
  217. package/dist/spatial-inputs.cjs +80 -0
  218. package/dist/spatial-metadata.mjs +18 -0
  219. package/dist/spatial-model.cjs +322 -0
  220. package/dist/spatial.mjs +21 -0
  221. package/dist/stage-timing.cjs +20 -0
  222. package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +105 -0
  223. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +275 -0
  224. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  225. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  226. package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +8 -0
  227. package/dist/starters/preact/ds.config.json +25 -6
  228. package/dist/starters/preact/package.json +4 -8
  229. package/dist/starters/preact/tsconfig.json +4 -5
  230. package/dist/starters/preact/vite.config.ts +3 -3
  231. package/dist/starters/react/ADS.md +42 -47
  232. package/dist/starters/react/README.md +47 -49
  233. package/dist/starters/react/design-system/assets/pictograms/catalog.ads.json +13 -0
  234. package/dist/starters/react/design-system/assets/pictograms/journey.dark.svg +7 -0
  235. package/dist/starters/react/design-system/assets/pictograms/journey.svg +7 -0
  236. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +18 -2
  237. package/dist/starters/react/design-system/components/Actions/IconButton/README.md +3 -0
  238. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.exports.ts +1 -0
  239. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.fixture.ts +1 -0
  240. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.scenario.tsx +7 -0
  241. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.tsx +26 -0
  242. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +5 -0
  243. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +13 -0
  244. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +22 -0
  245. package/dist/starters/react/design-system/index.ts +2 -1
  246. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +1 -0
  247. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +7 -0
  248. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +15 -0
  249. package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +105 -0
  250. package/dist/starters/react/design-system/patterns/Conversation/README.md +9 -0
  251. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +5 -0
  252. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +21 -0
  253. package/dist/starters/react/design-system/patterns/Shell/README.md +43 -0
  254. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +1 -0
  255. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +5 -0
  256. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +21 -0
  257. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +274 -0
  258. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +1 -1
  259. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  260. package/dist/starters/react/design-system/review/index.ads.review.ts +4 -0
  261. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +1 -0
  262. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +6 -0
  263. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +1 -1
  264. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  265. package/dist/starters/react/design-system/showcase/mcp/{main.tsx → main.ads.mount.tsx} +4 -2
  266. package/dist/starters/react/design-system/tokens/catalog.ads.json +1221 -0
  267. package/dist/starters/react/design-system/tokens/colors.css +1 -1
  268. package/dist/starters/react/design-system/tokens/spacing.css +22 -32
  269. package/dist/starters/react/design-system/tokens/spatial.ads.json +70 -0
  270. package/dist/starters/react/design-system/tokens/themes.generated.ts +1 -1
  271. package/dist/starters/react/ds.config.json +25 -6
  272. package/dist/starters/react/package.json +2 -6
  273. package/dist/starters/react/tsconfig.json +2 -3
  274. package/dist/starters/react/vite.config.ts +3 -3
  275. package/dist/style-boundaries.mjs +70 -25
  276. package/dist/task-cache.mjs +173 -72
  277. package/dist/task-worker.mjs +22 -11
  278. package/dist/test-boundaries.mjs +132 -59
  279. package/dist/themes-generated.mjs +1 -1
  280. package/dist/themes-watch.mjs +57 -22
  281. package/dist/themes.mjs +176 -73
  282. package/dist/token-export.mjs +39 -14
  283. package/dist/token-policy.mjs +6 -3
  284. package/dist/token-quality.mjs +6 -6
  285. package/dist/token-samples.mjs +16 -5
  286. package/dist/tokens.mjs +71 -26
  287. package/dist/ui-framework.mjs +16 -14
  288. package/dist/unit-contracts.mjs +251 -104
  289. package/dist/units.mjs +209 -99
  290. package/dist/usage.mjs +138 -38
  291. package/dist/validation-checks.mjs +115 -38
  292. package/dist/validation-inputs.mjs +191 -78
  293. package/dist/validation.mjs +268 -102
  294. package/dist/verification/browser.mjs +27 -5
  295. package/dist/verification.mjs +711 -187
  296. package/docs/ADS.md +96 -80
  297. package/docs/ARCHITECTURE.md +368 -137
  298. package/docs/BEHAVIORS.md +29 -25
  299. package/docs/CACHING.md +77 -17
  300. package/docs/CHANGELOG.md +332 -17
  301. package/docs/CONTRACTS.md +12 -4
  302. package/docs/DESIGN-REFERENCES.md +40 -0
  303. package/docs/GUIDE.md +300 -263
  304. package/docs/MCP.md +187 -324
  305. package/docs/SPATIAL-CHECKS.md +69 -0
  306. package/docs/benchmarks/README.md +39 -0
  307. package/package.json +43 -34
  308. package/dist/browser-audit.mjs +0 -429
  309. package/dist/create.mjs +0 -48
  310. package/dist/lint-config.mjs +0 -50
  311. package/dist/mcp/project-widget.bundle.js +0 -114
  312. package/dist/mcp/reports.mjs +0 -101
  313. package/dist/mcp/widget.bundle.js +0 -147
  314. package/dist/oxlint.mjs +0 -89
  315. package/dist/preview-builder.mjs +0 -133
  316. package/dist/preview-workers.mjs +0 -184
  317. package/dist/showcase.mjs +0 -77
  318. package/dist/skills/ads-break-ui/LICENSE.upstream +0 -21
  319. package/dist/skills/ads-break-ui/README.md +0 -16
  320. package/dist/skills/ads-break-ui/SKILL.md +0 -412
  321. package/dist/skills/ads-break-ui/agents/openai.yaml +0 -4
  322. package/dist/skills/ads-break-ui/references/atomic-styles.md +0 -293
  323. package/dist/skills/ads-break-ui/references/behaviors.md +0 -412
  324. package/dist/skills/ads-break-ui/references/captures.md +0 -135
  325. package/dist/skills/ads-break-ui/references/contracts.md +0 -317
  326. package/dist/skills/ads-break-ui/references/design-data.md +0 -354
  327. package/dist/skills/ads-break-ui/references/drafts.md +0 -194
  328. package/dist/skills/ads-break-ui/references/evidence.md +0 -128
  329. package/dist/skills/ads-break-ui/references/guarded-editing.md +0 -165
  330. package/dist/skills/ads-break-ui/references/layers.md +0 -145
  331. package/dist/skills/ads-break-ui/references/reporting.md +0 -101
  332. package/dist/skills/ads-break-ui/references/review.md +0 -97
  333. package/dist/skills/ads-break-ui/references/runtimes.md +0 -203
  334. package/dist/skills/ads-break-ui/references/scenarios.md +0 -246
  335. package/dist/skills/ads-break-ui/references/validation.md +0 -166
  336. package/dist/skills/ads-break-ui/references/verification.md +0 -58
  337. package/dist/skills/ads-break-ui/references/workflows.md +0 -90
  338. package/dist/skills/ads-designer/references/reporting.md +0 -101
  339. package/dist/skills/ads-import/references/reporting.md +0 -101
  340. package/dist/skills/ads-motion/LICENSE.upstream +0 -21
  341. package/dist/skills/ads-motion/README.md +0 -22
  342. package/dist/skills/ads-motion/SKILL.md +0 -385
  343. package/dist/skills/ads-motion/agents/openai.yaml +0 -4
  344. package/dist/skills/ads-motion/references/atomic-styles.md +0 -293
  345. package/dist/skills/ads-motion/references/audit.md +0 -44
  346. package/dist/skills/ads-motion/references/behaviors.md +0 -412
  347. package/dist/skills/ads-motion/references/captures.md +0 -135
  348. package/dist/skills/ads-motion/references/contracts.md +0 -317
  349. package/dist/skills/ads-motion/references/design-data.md +0 -354
  350. package/dist/skills/ads-motion/references/drafts.md +0 -194
  351. package/dist/skills/ads-motion/references/evidence.md +0 -128
  352. package/dist/skills/ads-motion/references/guarded-editing.md +0 -165
  353. package/dist/skills/ads-motion/references/layers.md +0 -145
  354. package/dist/skills/ads-motion/references/motion-review.md +0 -35
  355. package/dist/skills/ads-motion/references/reporting.md +0 -101
  356. package/dist/skills/ads-motion/references/review.md +0 -97
  357. package/dist/skills/ads-motion/references/runtimes.md +0 -203
  358. package/dist/skills/ads-motion/references/scenarios.md +0 -246
  359. package/dist/skills/ads-motion/references/validation.md +0 -166
  360. package/dist/skills/ads-motion/references/verification.md +0 -39
  361. package/dist/skills/ads-motion/references/workflows.md +0 -90
  362. package/dist/skills/ads-port/references/reporting.md +0 -101
  363. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.ads.contract.ts +0 -6
  364. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.tsx +0 -76
  365. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  366. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  367. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.ads.contract.ts +0 -6
  368. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.tsx +0 -137
  369. package/dist/starters/preact/design-system/showcase/mcp/main.tsx +0 -6
  370. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +0 -7
  371. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx +0 -4
  372. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +0 -7
  373. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx +0 -4
  374. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.contract.ts +0 -6
  375. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.exports.ts +0 -1
  376. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.fixture.ts +0 -12
  377. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.scenario.tsx +0 -17
  378. package/dist/starters/react/design-system/components/Layout/Grid/Grid.tsx +0 -75
  379. package/dist/starters/react/design-system/components/Layout/Grid/README.md +0 -21
  380. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.ads.exports.ts +0 -1
  381. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.tsx +0 -112
  382. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  383. package/dist/starters/react/design-system/review/grid-cell/GridCell.ads.exports.ts +0 -1
  384. package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +0 -18
  385. package/dist/starters/react/design-system/review/index.ts +0 -6
  386. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  387. package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.contract.ts +0 -6
  388. package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.exports.ts +0 -1
  389. package/dist/starters/react/design-system/review/token-preview/TokenPreview.tsx +0 -137
  390. package/dist/starters/react/design-system/showcase/mcp/index.html +0 -1
  391. package/dist/starters/react/design-system/tokens/Color.ads.fixture.ts +0 -124
  392. package/dist/starters/react/design-system/tokens/Color.ads.scenario.tsx +0 -4
  393. package/dist/starters/react/design-system/tokens/Layout.ads.fixture.ts +0 -39
  394. package/dist/starters/react/design-system/tokens/Layout.ads.scenario.tsx +0 -4
  395. package/dist/starters/react/design-system/tokens/Motion.ads.fixture.ts +0 -18
  396. package/dist/starters/react/design-system/tokens/Motion.ads.scenario.tsx +0 -4
  397. package/dist/starters/react/design-system/tokens/Shape.ads.fixture.ts +0 -30
  398. package/dist/starters/react/design-system/tokens/Shape.ads.scenario.tsx +0 -4
  399. package/dist/starters/react/design-system/tokens/Space.ads.fixture.ts +0 -37
  400. package/dist/starters/react/design-system/tokens/Space.ads.scenario.tsx +0 -4
  401. package/dist/starters/react/design-system/tokens/Type.ads.fixture.ts +0 -29
  402. package/dist/starters/react/design-system/tokens/Type.ads.scenario.tsx +0 -4
  403. package/dist/starters/react/package-lock.json +0 -4707
  404. package/dist/token-fixtures.mjs +0 -30
  405. package/docs/benchmarks/bun-previews.md +0 -91
  406. package/docs/benchmarks/preview-memory.md +0 -147
  407. package/docs/benchmarks/turbo-poc.md +0 -284
  408. package/docs/plans/execution-coordination.md +0 -57
  409. /package/dist/{browser-audit → render-audit}/first-render.mjs +0 -0
  410. /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,156 @@ 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
+ With fixed compiler options, import resolution shares normalized specifiers by
87
+ importing directory, including pending queries from sibling files. Its cache
88
+ belongs to the current inventory/request; a new capture resolves against current
89
+ package/configuration bytes and cannot inherit an earlier resolution by path alone.
90
+ Input capture shares compiler options and the import resolver with configuration
91
+ discovery. `analysis/module-resolvers.mjs` owns native resolver leases for that
92
+ capture, including pending queries; cleanup drains them on success or failure.
93
+ The syntax client stays alive until the capture releases its leases. No resolver
94
+ that observes the live filesystem survives into the next capture.
95
+ Warm checks collect compiler source bytes while computing the task input key and
96
+ pass them through `analyzeCaptured`; registered draft branches remain authoritative.
97
+ The independent post-check input capture still verifies freshness before caching
98
+ the report. Draft preparation similarly shares one inventory between inspection
99
+ and workspace population, retaining its targeted live conflict/path checks.
100
+ `render-composition.mjs` reuses the captured native program and `createSourceValues`
101
+ for owned JSX, component calls, props and classes. Its pending/completed graph is weakly
102
+ memoized by immutable program, so sibling drafts and edited imports do not share mutable
103
+ render facts. It does not execute project code or open another compiler. The contrast
104
+ adapter consumes the CSS trees already parsed by the check, resolves ancestor backdrops
105
+ and caches identical token-pair calculations within the check. It reports incomplete
106
+ cascade/branch evidence explicitly; browser axe audits retain dynamic rendering coverage.
107
+ Optional inputs and immediate directory membership use `optionalSourceText` and
108
+ `sourceDirectoryFiles`; both observe the captured revision, including absence.
109
+ `sourceCss` shares read-only PostCSS trees across requests on the same captured revision; transforms clone
110
+ before modifying them. Spatial guards and foundation discovery use
111
+ `spatial.mjs` over these helpers. The pure `spatial-model.cjs` compiler does no
112
+ filesystem I/O. `spatial-inputs.cjs` retains a bounded cache of immutable models
113
+ by contents, without branch paths or ASTs. Linaria's build adapter captures at
114
+ the build/extraction boundary, and Bun previews track spatial contents and token
115
+ sheet membership, including layouts introduced by evaluated interpolations.
116
+ `spatial-contexts.cjs` validates bounded conditional token graphs and shares immutable
117
+ context models. `spatial-css.cjs` normalizes supported ordinary CSS placement and protects
118
+ generated geometry. Its bounded 256-entry cache contains only immutable selector-text
119
+ facts, including finite functional branches and attribute targets; it retains no source
120
+ trees or project paths. Keyframe effects join the same target/property checks.
121
+ `spatial-composition.mjs` binds those facts to existing native JSX
122
+ nodes and owned component calls; it creates no compiler or independent syntax tree.
123
+ Standalone extraction checks algebra; acceptance adds the owned composition evidence.
124
+
125
+ The spatial design and starter defaults draw on IBM Carbon's 2x Grid. The
126
+ [design references](DESIGN-REFERENCES.md) record adopted concepts, the consulted
127
+ source revision, and attribution boundaries. ADS's compiler and analysis services
128
+ are separate from Carbon's Sass/React grid packages; consumers own their definitions.
129
+
130
+ File-local accessibility and image-attribute checks consume the main check's source
131
+ inventory and captured native ASTs. Their findings are memoized by immutable source
132
+ tree; they create no separate syntax parser or filesystem scan. Font checking and
133
+ preload generation share captured CSS trees and parsed face facts. Token values,
134
+ current preload configuration and actual style uses are evaluated separately on
135
+ each operation, so changing a consumer or theme cannot reuse an unrelated result.
136
+ Optional text (including absence) and CSS trees have weak captured-revision ownership;
137
+ new revisions invalidate them, while repeated reads on the same revision share data.
138
+
139
+ Do not create compiler programs, native clients, path-keyed semantic caches or
140
+ independent AST parsers in new rules. `memoFact` lives for one fenced request;
141
+ `memoProgram` is only for facts determined by an immutable program/tree or captured
142
+ revision, with weak ownership. Return
143
+ copies when exposing cached mutable results. A boundary test prevents rule modules
144
+ from constructing programs or importing native transports. Library inspection
145
+ APIs are asynchronous and use the same native session implementation. Await
146
+ `checkProject`, `inspectTokens`, contract/scenario inspection and import
147
+ resolution. Direct library callers acquire a context through `standalone.mjs`;
148
+ they do not select a different engine. Syntax-only work uses the native API's
149
+ bounded source-file leases. There is one compiler implementation.
150
+
151
+ Semantic calls go through `analysis/queries.mjs`, which shares pending promises
152
+ and batches independent symbol/type queries. Await source and semantic lookups;
153
+ ordinary syntax predicates remain synchronous. Use the ordered async traversal
154
+ and collection helpers when callbacks perform semantic work, so short-circuit
155
+ checks and diagnostic order remain deterministic.
156
+ Use `walkValuesAsync` for CSS values: returning false prunes that function's
157
+ children. `walkAsync` follows PostCSS's different contract, stopping the walk.
158
+ Resolve named subjects through `localValueDeclarations` instead of enumerating
159
+ all symbols in scope. Resolving declarations for a global symbol inventory can
160
+ load the compiler libraries unnecessarily and exhaust memory.
161
+
162
+ `bun run test:analysis` verifies native analysis, cache invalidation, production
163
+ draft acceptance and computed-CSS compilation without browser rendering or
164
+ registered behavior execution. The [analysis benchmark](../scripts/benchmarks/analysis/README.md)
165
+ runs the current engine serially with correctness assertions and time/memory
166
+ regression gates when a compatible baseline is supplied. Its acceptance fixtures
167
+ disable scripts, registered behavior execution and rendering so measurements
168
+ include input capture, branching, guards and publication without browser work.
169
+ [AGENTS.md](../AGENTS.md#mandatory-analysis-benchmarks) requires both inventory
170
+ sizes for relevant changes. Browser and component behavior suites remain
171
+ separate from these engine measurements.
172
+
173
+ Changed-scope validation follows shared source trees and native import resolution.
174
+ Its successful full baseline also retains plain dependency closures, so later
175
+ selection includes consumers from both the previous and current revisions.
176
+ Deleted inputs without previous evidence, unknown ownership, computed imports
177
+ and shared configuration widen selection conservatively. This selects what to
178
+ audit; it does not replace browser evidence or grant a passing result.
44
179
  The project declares React or native Preact in `ds.config.json` and uses the
45
180
  matching compiler and mount adapter. Both integrate with the required styling
46
181
  and validation pipeline; additional frameworks need explicit tooling support.
47
182
 
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
183
+ A design system can start from the starter that ships inside the same ADS package:
184
+ `ads init --framework react|preact --include-starter`, run inside an existing project, adds
185
+ `dist/starters/react` and its generated Preact overlay
186
+ where the project has nothing, so it always matches the tool version that checks it. It
187
+ never replaces a project file or writes a lockfile. Skills carry no starter copy; they
188
+ point agents to `ads init --include-starter`. The starter is a working base: a
53
189
  token foundation in six groups (color ramps with AA-checked roles, type,
54
190
  space and sizing, shape and elevation, motion, layout with a column grid), brand artwork
55
191
  with Brand previews, an icon set, and one example of each layer.
@@ -91,6 +227,11 @@ The shared foundation is the only design-value catalogue. Components and pattern
91
227
  map its roles into owned `--ds-*` and `--ux-*` variables; these namespaces cannot
92
228
  introduce independent design values. Raw literals hidden by aliases, fallbacks,
93
229
  themes or static helper/import interpolation follow the same source checks.
230
+ Every interpolated alternative must resolve. The checker deduplicates known
231
+ values and checks all resulting styles; unknown alternatives and work-limit
232
+ exhaustion produce a blocking `design-value-source` finding. A template may
233
+ produce at most 256 distinct styles, including combinations of interpolations;
234
+ larger constructions must be split into smaller styles, never silently sampled.
94
235
  Runtime measurements and typed instance paints retain narrow, explicit contracts.
95
236
  When adapting external UI, use the project's existing font, text, spacing and
96
237
  other semantic roles even when their values differ from the reference. Add a
@@ -115,15 +256,32 @@ patterns. Import count, element count and implementation size do not decide the
115
256
  layer. Scenarios may compose public UI and development review helpers to demonstrate their
116
257
  subject without becoming production patterns.
117
258
 
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.
259
+ Patterns are production application UI. The showcase owns generic preview UX:
260
+ navigation, theme/viewport controls, framing and hosting inside the App iframe.
261
+ Projects supply `.ads.scenario.*` demonstrations and `.ads.fixture.*` inputs for
262
+ the actual production implementation. Small project-specific arrangements
263
+ and demonstration controls use `.ads.review.*` files. `review/`
264
+ is an optional organizational home for shared helpers, not another production
265
+ UI layer or an exemption from the filename marker. Its generated helper entry is
266
+ `review/index.ads.review.ts`, imported through `@ds/review`.
267
+
268
+ The tool-owned `@reqvire-org/ads/preview` API supplies generic frame classes and
269
+ mount containers; project framework adapters use `.ads.mount.*`. Its development-only
270
+ `setPreviewGuides(options)` and `observePreviewGuides(listener)` helpers let a
271
+ composed inspection toolbar control the managed preview’s existing guide overlay.
272
+ Choices are a `mode` (`off`, `hover` or `always`: where guides show) and boolean
273
+ layers (`bounds`, `tracks`, `gaps`, `padding`, `margins`, `mini`: what they draw);
274
+ the observer receives the current choices immediately and returns an unsubscribe
275
+ function. The App forwards edits to its host, which retains them across views and
276
+ synchronizes other controls. This does not create a second overlay or a production
277
+ layout dependency. Neither this
278
+ preview API nor marked project code/styles may enter production dependencies.
279
+ Review helpers retain public product-contract and style checks. They reuse
280
+ production tokens unchanged; literal width/height and grid-track dimensions are
281
+ permitted only for isolated demonstration geometry. Colors, typography, spacing
282
+ and component states remain governed by production Data and owners. Showcase-only
283
+ values do not belong in the production token foundation. See the
284
+ [scenario support guide](../skills/ads-designer/references/review.md).
127
285
 
128
286
  Core guards reject component runtime dependencies on patterns/composition through
129
287
  resolved imports, re-exports and helpers. Patterns consume public component
@@ -166,9 +324,8 @@ visual expression.
166
324
  ## Linaria is the implementation mechanism
167
325
 
168
326
  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
327
+ pipeline. The starter has one authored `starters/shared/` design with generated
328
+ native React/Preact imports and configuration. Both runtimes are supported: the project
172
329
  chooses its rendering runtime, while ADS checks the same architecture and serves
173
330
  its actual compiled scenarios. A React application remains React; MCP does not
174
331
  substitute a different runtime or a visual reproduction.
@@ -223,7 +380,7 @@ of every unused variant. Atomic composition still requires care with the cascade
223
380
 
224
381
  Apply extraction to application and project preview builds, preserve intentional
225
382
  foundation CSS, and inspect compiled output when performance matters. The
226
- [implementation guide](../design-system/README.md#bundling-notes) covers these details.
383
+ [starter guide](../starters/shared/README.md) covers these details.
227
384
  Both extraction pipelines use the build-only `@reqvire-org/ads/linaria` tag
228
385
  resolver. It delegates atomization and nesting to the project's installed Linaria
229
386
  processor while preserving custom-property token streams around that pass.
@@ -275,7 +432,7 @@ components, patterns or controllers; extract a shared controller only when the
275
432
  behavior is shared. Other external runtime imports fail
276
433
  `behavior-library-undeclared`. Type-only imports and development roles retain
277
434
  their existing rules, as do the configured framework and Linaria exceptions.
278
- `ads lint-config` reports import locations and the exact list to declare.
435
+ `ads check` reports import locations and the exact list to declare.
279
436
 
280
437
  This is project approval, not a recursive dependency audit or a guarantee about
281
438
  third-party internals. ADS reads installed versions without executing packages
@@ -287,7 +444,7 @@ allowlisted producer's `style.setProperty("--ds-popover-x", ...)` and
287
444
  `style.setProperty("--ds-popover-y", ...)`; project Linaria owns positioning
288
445
  rules and visual treatment. Declare those exact properties in the owner contract's
289
446
  `styles.writes`. Clean up positioning observers on unmount.
290
- The project preview compiler bundles used library code into the normal MCP App
447
+ ADS's managed preview compiler bundles used library code into the normal MCP App
291
448
  resource graph; declarations alone do not load packages or change its sandbox.
292
449
 
293
450
  Optional `<Owner>.ads.contract.ts` modules identify public APIs or private
@@ -325,10 +482,11 @@ files from the token halves. Style permissions live in the owner's contract. ADS
325
482
  therefore never merges: if accepted source changes under a draft (a direct edit or a
326
483
  Git pull), acceptance reports a baseline conflict and the draft is recreated.
327
484
 
328
- There is one runtime and one compiler process per project. Generated preview
485
+ Each connected project runtime owns one managed preview compiler process.
486
+ Semantic analysis uses the shared host described above. Generated preview
329
487
  workspaces (`.ds/draft-previews/<id>/project`) retain the normal project layout and
330
488
  public imports while overlaying proposed owner files and declared draft dependencies,
331
- with the generated entries regenerated. The project's compiler process hosts each
489
+ with the generated entries regenerated. The preview compiler process hosts each
332
490
  draft workspace as an in-process instance listed in a control file, and one scheduler
333
491
  runs their builds in turn: the viewed draft first, then the project, then background
334
492
  work. A draft's preview is a view of its workspace served by the project's showcase,
@@ -351,16 +509,16 @@ Humans and coding agents inspect the same project through MCP. The showcase is
351
509
  tooling. Its header, section tabs (Brand, shown first when the project previews its
352
510
  artwork, then Tokens, Icons when the project has a glyph set, Components, Patterns and
353
511
  Composition), collapsible left menu,
354
- grid overlay and theme switches and preview area stay neutral. The grid overlay draws
355
- the project's `--grid-*` columns over every preview through the App's host context, so
356
- alignment is checked on real previews without a second renderer. The client discovers entries, invokes tools, forwards App
512
+ grid overlay and theme switches and preview area stay neutral. Through the App's host
513
+ context, the grid inspector highlights actual computed grid tracks inside the rendered
514
+ widgets, following each container's padding, gaps, size and scroll position. The client discovers entries, invokes tools, forwards App
357
515
  resource requests and subscribes to changes. It contains no project UI catalogue
358
516
  or implementation imports.
359
517
 
360
- The server supplies catalogues, discovered token scenarios, source guides, preview Apps,
518
+ The server supplies catalogues, the token and brand views it builds, source guides, preview Apps,
361
519
  build status and diagnostics. Agents connect over stdio; the browser uses a
362
- loopback HTTP MCP endpoint in the same runtime. Both share one project-configured
363
- compiler. Starting MCP starts the website; a browser-only command starts the same
520
+ loopback HTTP MCP endpoint in the same runtime. Both share ADS's managed Bun
521
+ preview compiler. Starting MCP starts the website; a browser-only command starts the same
364
522
  runtime without stdio. Shutdown closes the website, connections and compiler.
365
523
  Local and external compatible hosts load the same reusable preview App. The
366
524
  browser host uses a separate-origin sandbox proxy around its opaque App iframe.
@@ -375,14 +533,13 @@ external bases still require declared CSP origins. This belongs to document
375
533
  loading and changes no project link or scenario handler. External hosts control
376
534
  their own document-loading and CSP behavior.
377
535
 
378
- The proxy and App sandbox permit native forms (`allow-forms`), including the
379
- legacy nested widget. This lets browser constraint validation and `submit`
536
+ The proxy and App sandbox permit native forms (`allow-forms`). This lets browser constraint validation and `submit`
380
537
  handlers run for clicks, Enter and `requestSubmit()`. Client-side handlers retain
381
538
  their own `preventDefault()` behavior. The App stays opaque; CSP
382
539
  `form-action 'none'` blocks native action requests without suppressing submit
383
540
  handlers. Hosts outside ADS choose their own sandbox and CSP permissions.
384
541
 
385
- The project compiler publishes a versioned dependency graph: shared runtime and
542
+ ADS's Bun preview compiler publishes a versioned dependency graph: shared runtime and
386
543
  foundation assets, plus independently addressable scenario modules. Inside the
387
544
  App, a resource loader obtains the selected dependency closure through MCP,
388
545
  verifies its content and mounts it using the project's framework adapter. Native
@@ -407,9 +564,9 @@ its case results. Persistent transport failures still block a mutation. External
407
564
  hosts own their transport recovery; the reusable App's integrity checks remain
408
565
  the same.
409
566
 
410
- Managed graph builders publish into a private session directory beside the
411
- configured manifest. Logical scenario IDs and resource URIs stay unchanged;
412
- standalone builds retain the configured output and cannot overwrite a live
567
+ Managed graph builders publish into `.ds/preview/sessions/<session>/`.
568
+ Logical scenario IDs and resource URIs stay unchanged;
569
+ standalone builds publish `.ds/preview/manifest.json` and cannot overwrite a live
413
570
  session's success record. Verified compiled snapshots form a bounded shared
414
571
  warm-start cache. Source, compiler, dependency and output hashes still gate reuse.
415
572
  Ordinary shutdown removes owned session output while retaining that cache.
@@ -458,14 +615,13 @@ to produce useful UI. A scenario supplies that development context around the
458
615
  real public implementation. It mounts independently, without opening a showcase
459
616
  page or initializing the application's router, store or services first.
460
617
 
461
- Scenarios and their fixtures live beside the tokens, component or pattern they exercise.
618
+ Scenarios and their fixtures live beside the component or pattern they exercise.
462
619
  Demo framing belongs to development-only review helpers; component props describe
463
620
  intentional product behavior and visual variants.
464
- Token scenarios choose real token names and sample inputs; a project-owned
465
- review renderer applies the foundation variables. The tool contains no project
466
- token list, sample templates or assumed visual identity. Even an initial token
467
- scenario uses a project-owned development review renderer to apply its declared samples;
468
- a definitions-only inspector does not establish preview coverage.
621
+ The token and brand views are tool-owned: ADS builds them from the token sheets,
622
+ `tokens/catalog.ads.json` (groups and sample bindings) and `assets/brand/`. The project
623
+ owns the data; ADS owns the presentation. The tool contains no project token list,
624
+ sample values or assumed visual identity.
469
625
  Larger scenarios live under `composition/`. They use the same public screen
470
626
  patterns as production: application adapters supply live data and effects;
471
627
  scenario adapters supply fixture data, local state and simulated services.
@@ -474,9 +630,7 @@ Reassembling a second screen from shared primitives still allows design drift.
474
630
  The server discovers one path-derived scenario registry. The showcase's scenario
475
631
  sections (Brand, Tokens, Components, Patterns and Composition) browse that same registry
476
632
  through MCP results. They do not initialize the entry or define
477
- its UI. Every preview uses `?scenario=<id>`; discovered `kind` selects its section,
478
- including token scenarios colocated with component/pattern owners. Existing
479
- `?category=` links remain compatibility aliases. The host supplies theme and
633
+ its UI. Every preview uses `?scenario=<id>`; discovered `kind` selects its section. The host supplies theme and
480
634
  available space; the public implementation
481
635
  supplies presentation. Several related public parts may share a scenario with
482
636
  their required parent. Every declared token and every public renderable component
@@ -532,6 +686,11 @@ bundles. Native ADS gates run directly; project lint/build/test commands remain
532
686
  explicit integration checks. Explorer navigation and metadata are served
533
687
  independently of compilation and validation.
534
688
 
689
+ New preview requests share one input-stamp capture per batch. After that
690
+ asynchronous capture, scheduling reads the current candidate, publication and
691
+ registry together. Candidate completion or replacement during capture cannot
692
+ lose a requested view or reuse coverage from a retired candidate.
693
+
535
694
  ```mermaid
536
695
  flowchart LR
537
696
  Edit[Source edit] --> Compile[Compile changes with Bun]
@@ -547,8 +706,8 @@ flowchart LR
547
706
  ```
548
707
 
549
708
  Watched compilation provides immediate visual feedback while validation and
550
- scenario inspection run in the background. Inspection uses a persistent worker
551
- to keep the compiler responsive. Rapid edits replace pending work, with one
709
+ scenario inspection run in the background. Inspection uses the shared asynchronous
710
+ analysis host, rather than an inspector-owned worker. Rapid edits replace pending work, with one
552
711
  verification run in flight. Production builds retain their own optimization.
553
712
 
554
713
  Preview discovery shares `.ds/scenario-registry.json` between the MCP host,
@@ -560,16 +719,17 @@ startup; changed inputs or missing/corrupt snapshots trigger fresh discovery.
560
719
  Explicit catalogue reads fence their in-memory registry against current source,
561
720
  so edits and removals are visible before the next observation/reconciliation tick.
562
721
  Reopening an already known draft scenario retains its last discovered metadata
563
- while a persistent worker refreshes the catalogue. It does not run synchronous
564
- semantic discovery on the preview request. New/missing scenario identities await
565
- worker discovery; accepted comparison metadata is independently revision-fenced.
722
+ while the shared asynchronous analysis service refreshes the catalogue.
723
+ New/missing scenario identities await discovery; accepted comparison metadata
724
+ is independently revision-fenced.
566
725
  The response's `discovery` distinguishes current, pending and failed metadata
567
726
  from the exact proposal revision and the actual preview build. Superseded worker
568
- results cannot replace newer requests; drop/shutdown retires their state/worker.
569
- Preview analysis and checks retain a bounded set of TypeScript programs and
570
- unchanged source trees across edits (`program-cache.mjs`); module lookups are
571
- refreshed so added/deleted files cannot inherit old resolution results, and a changed
572
- file is always parsed again. Watched graphs include requested scenario roots and their dependencies,
727
+ results cannot replace newer requests; drop/shutdown removes owned discovery
728
+ state and releases registered revisions. Preview analysis and checks share
729
+ bounded native snapshots through `analysis/service.mjs`. Program acquisition
730
+ delegates through `program-cache.mjs`; unchanged ASTs retain identity, and source,
731
+ import and configuration edits invalidate the relevant snapshot. Watched graphs
732
+ include requested scenario roots and their dependencies,
573
733
  preserving roots used by other mounted Apps; untouched catalogue entries are not
574
734
  compiled until requested. Unwatched full builds retain complete entry coverage.
575
735
  Snapshot publication fences source edits during inspection. This cache supplies
@@ -602,7 +762,11 @@ not initialize fresh observation and misclassify each request as a source edit.
602
762
  Draft-only edits preserve accepted registry/catalogue snapshots. Capture updates
603
763
  reuse source-fenced discovery rather than allocating another semantic program.
604
764
  Explorer uses these reports for monochrome
605
- entry glyphs and refreshes its mounted Apps. A ready draft preview remains
765
+ entry glyphs and refreshes its mounted Apps. Its notification scheduler keeps an
766
+ already scheduled refresh's deadline; later build notices cannot postpone a
767
+ catalogue update indefinitely. Refreshes run one at a time, and notices arriving
768
+ during a refresh form one follow-up batch that retains any discovery request.
769
+ A ready draft preview remains
606
770
  unaccepted; catalogue metadata or compiled feedback cannot establish acceptance.
607
771
 
608
772
  Live resources are fenced to the current source digest and managed session.
@@ -629,10 +793,10 @@ newer inputs; it leaves the previous cache intact and requires the next build.
629
793
  A transferred checked graph can refresh older watcher metadata without recompiling
630
794
  it, while a partial watched graph cannot replace the complete catalogue.
631
795
  Its full semantic registry snapshot transfers only when source revisions match,
632
- so restarting a parked compiler need not repeat discovery of accepted source.
796
+ so reopening a compiler need not repeat discovery of accepted source.
633
797
  Shared dependency maps are stored once, with a fresh validation memo for each
634
798
  reuse operation. No file hash is retained across operations. Configuration input
635
- ordering is canonical across Node and Bun; complete caches stay within the
799
+ ordering is canonical; complete caches stay within the
636
800
  existing 8 MiB budget rather than silently writing an unreadable large file.
637
801
 
638
802
  Background acceptance, validation and architecture checks serialize independently
@@ -641,7 +805,7 @@ make a cold selection wait for a browser verification suite. Existing publicatio
641
805
  remain readable while interactive source changes compile.
642
806
 
643
807
  For managed resource previews, ADS requests the scenarios in production mode
644
- through the reviewed draft's workspace, compiled by the project's compiler and
808
+ through the reviewed draft's workspace, compiled by ADS's managed compiler and
645
809
  served by its host. Only a candidate without such a workspace gets a preview host
646
810
  of its own; its compiler is parked after production publication while the host
647
811
  continues serving that immutable graph to registered browser verification. Either
@@ -650,13 +814,16 @@ Warming an already-current selection does not restart or wait for that compiler.
650
814
  Production reuse requires a successful production build of the exact inputs,
651
815
  not merely a previously compiled development graph. Project-owned additional
652
816
  commands still run as configured. Remove the standalone preview-build command
653
- from `acceptance.checks`; keep it in the ordinary project build.
817
+ from `acceptance.scripts`; keep it in the ordinary project build.
654
818
 
655
- Candidate architecture inspection runs in a short-lived owned process, releasing
656
- its TypeScript heap after completion or cancellation. Semantic preview workers
657
- retire after five idle seconds, while revision-fenced metadata remains on disk.
658
- Closing a temporary host releases its semantic program cache. These lifecycle
659
- bounds do not change source checks, behavior selection or publication fences.
819
+ Candidate architecture inspection shares the project's native compiler through
820
+ an isolated snapshot rather than starting a compiler for each acceptance.
821
+ Releasing a candidate drops its adapters, resolvers and snapshot leases while
822
+ keeping live/sibling revisions valid. The service bounds active project/revision
823
+ state and closes after idle time when no registered revision pins it. Direct
824
+ library and syntax-only clients have their own short idle cleanup. Closing one
825
+ scenario inspector cancels its requests without retiring other callers' shared
826
+ compiler. Persisted registry metadata has separate content checks.
660
827
 
661
828
  After the selected view paints, a connected showcase can prefetch changed peers'
662
829
  static resources into the App's existing byte cache. This bounded, opportunistic
@@ -669,17 +836,22 @@ scroll state when that closure matches, and reruns token/paint audits against th
669
836
  accepted manifest. A changed selected closure remounts through the project's
670
837
  adapter. Native ESM resources still obey digest checks and the existing bounded
671
838
  revision lifecycle; this is state-preserving refresh, not component-level HMR.
839
+ The visible preview retains its framing while replacement resources load. Kind
840
+ and subject framing change only after a successful mount; structural padding is
841
+ resolved before paint, including delayed framework commits. Font readiness and
842
+ the later audits do not temporarily restore specimen padding during reloads.
672
843
 
673
844
  Incremental compilation is separate from test selection. Preview refresh runs the
674
- adapter's validation callback. Guarded mutations select affected behavior owners
675
- by registered input dependencies, then execute their registered checks. A shared
845
+ adapter's validation callback. Draft acceptance executes the draft owners' own
846
+ registered behavior checks when `acceptance.behavior` is enabled. `ads validate`
847
+ selects affected behavior owners through registered input dependencies; a shared
676
848
  foundation change can select every owner. Configured project checks still run as
677
849
  authored; releases run the full test suite. ADS does not claim per-test-case
678
850
  selection or skip validation because a module transform was cached.
679
851
 
680
- Architecture inspection shares analysis within one immutable TypeScript checker
681
- and avoids redundant source discovery. A new inspection still observes current
682
- source and configuration; successful diagnostics are not cached across edits.
852
+ Architecture inspection shares immutable ASTs/programs, native semantic queries
853
+ and request-scoped facts. A new inspection still observes current source and
854
+ configuration; successful reports are reused only for their exact input key.
683
855
  Source scans prepare generated-directory and source-root comparisons once per
684
856
  inventory. Every scan still discovers tests and hashes current input bytes.
685
857
 
@@ -696,8 +868,8 @@ The built-in client uses `waitFor: compiled` for interactive selections, so it
696
868
  can browse compiled feedback or a retained verified graph while checks run.
697
869
  Default MCP preview calls, captures and verification still wait for verified
698
870
  output. Pending selections never report App readiness as verified. Discovery
699
- notifications are reconciled after validation rather than repeating synchronous
700
- semantic inspection on the live update path. The App retains or remounts its view
871
+ notifications are reconciled after validation through asynchronous discovery.
872
+ The App retains or remounts its view
701
873
  according to its dependency closure. A quiet monochrome indicator in the
702
874
  showcase's upper-right header exposes compilation, checking, reload and fallback
703
875
  status through its accessible label, tooltip and details popover. Editing keeps
@@ -709,6 +881,11 @@ failures stay in the watcher's recoverable diagnostic path. Fixing source trigge
709
881
  If the compiler process exits, the next preview request starts one fresh child;
710
882
  MCP inspection remains available. Each child generation has its own status report,
711
883
  so independent MCP clients do not overwrite each other's build state.
884
+ Standalone compilation writes `.ds/build-status.json`. Managed compilation uses
885
+ `.ds/build-status-<session>.json`, selected through the internal
886
+ `ADS_MCP_BUILD_STATUS` and `ADS_MCP_BUILD_SESSION` launch variables. Session identity
887
+ separates revisions across restarts; source and artifact digests establish
888
+ freshness independently of process state.
712
889
  Compilation remains necessary for TSX and Linaria;
713
890
  there is one preview pipeline with automatic updates.
714
891
 
@@ -764,8 +941,8 @@ source ownership and product bundles. Detailed usage lives in each portable skil
764
941
 
765
942
  Brand artwork lives in `assets/brand/`: SVG masters, finished PNG/JPEG/WebP images and
766
943
  delivered `.ico`/`.icns` files, each described with its use and license in the folder's
767
- README. Brand previews are scenarios in `brand/`, the showcase's first section; they show
768
- artwork in the current theme and the app icon at its sizes and have no token samples.
944
+ README. ADS generates the Brand view from those assets, including construction grids
945
+ and actual-size samples; projects do not author brand preview scenarios.
769
946
 
770
947
  `ads assets` makes three kinds of output. Web icons from `assets.iconSource` are rebuilt
771
948
  into ignored `.ds/assets/` on every build, for the application's bundler. Committed targets
@@ -784,6 +961,32 @@ owners' colors, render as images, and are never muted, tinted or recolored (a on
784
961
  only where the owner's rules allow it, in the colors they name). ADS generates and checks
785
962
  nothing there.
786
963
 
964
+ ### Declared artwork/text lockups
965
+
966
+ `@ads-lockup { artwork: .hook; text: .other-hook; size: --icon-sm; }` is an opt-in
967
+ construction on an owned row. It emits ordinary CSS for centered artwork, an intrinsic
968
+ aspect ratio, a baseline-aligned text group and font-metric trimming of the group's
969
+ native text runs. It does not impose a canvas shape, symmetric artwork, internal
970
+ padding or cap-height-sized logos. Older browsers without text trimming retain box
971
+ centering. The [branding guide](../skills/ads-designer/references/branding.md#aligning-artwork-with-text)
972
+ contains the complete authoring example and visual-review boundaries.
973
+
974
+ The `lockup-construction` control is a blocking source check, shared by `ads check`,
975
+ validation and draft acceptance. It rejects malformed declarations, missing or
976
+ unresolved owned hooks, explicitly distorted inline SVGs and conflicting geometry,
977
+ alignment or text-trimming declarations across resolved class compositions. It
978
+ does not claim proof of painted-edge alignment or inspect opaque artwork internals.
979
+
980
+ `src/construction-styles.cjs` runs the pure lockup and spatial transforms for both
981
+ checking and the public Linaria resolver, including preview compilation. The lockup
982
+ transform in `src/lockup-model.cjs` reads no files and needs no spatial model. Generated
983
+ declarations retain their rule identity for shared CSS override protection.
984
+ `src/lockup-composition.mjs` binds the declaration through the existing captured native
985
+ AST/class-composition analysis. It adds no compiler, source capture, disk reads or
986
+ persistent rule-local cache. Preview fingerprints include the transform modules;
987
+ changes cannot reuse previously compiled output. Optical review remains separate
988
+ from these source-only checks and benchmarks.
989
+
787
990
  ## Build checks keep the architecture in place
788
991
 
789
992
  The project build runs ADS checks before producing application or showcase
@@ -795,7 +998,7 @@ Themes and brands are declared in `ds.config.json` and are only value sets: ever
795
998
  brand shares the same token names. A theme sets the color mode and a brand sets identity
796
999
  values (an accent ramp, a font), so a white-label product needs one brand per customer
797
1000
  rather than one theme per customer and mode. The declaration is the one list the showcase,
798
- captures, preview host context, contrast review, browser audit and token export read, so a
1001
+ captures, preview host context, contrast review, render audit and token export read, so a
799
1002
  project can add a high-contrast theme or a brand without tool changes.
800
1003
 
801
1004
  A token that differs per theme is authored as one plain half per theme (`--x-light`,
@@ -817,7 +1020,8 @@ instead of asking the browser to normalize a color per drawn item.
817
1020
  ADS findings are errors, review items or info items. An error is a rule ADS can decide: it
818
1021
  fails `ads check`, validation and acceptance, and no setting turns it off. Token, theme, brand,
819
1022
  glyph and accessibility rules read from tokens and source are errors: contrast between the
820
- roles that meet on screen and the color pairs components set themselves, in every theme and
1023
+ roles that meet on screen, declared component pairs and source-proven composed text/backdrop
1024
+ pairs, in every theme and
821
1025
  brand, the 2 px spacing rhythm, fixed widths built from spacing tokens, theme and brand
822
1026
  coverage, brand artwork that is undescribed, unlicensed or unpreviewed, glyphs off the
823
1027
  shared viewBox or with fixed colors, controls padded off their size, target size, focus,
@@ -827,18 +1031,29 @@ equal token values with possibly different roles, keyboard reach, unused artwork
827
1031
  in a render path); it is shown with guidance and never blocks. An info item notes an analysis
828
1032
  limit. Stale or hand-edited generated outputs are errors, since they ship.
829
1033
 
830
- Widths are fluid on the grid. A width that cannot shrink below 96 px, in any unit, raw, through a
831
- token or by arithmetic, is an error wherever a component, pattern or composition sets one. Values
832
- are read for what they resolve to, never by token name, and a maximum is not read because it cannot
833
- force overflow. A project names the widths that stay fixed (`layout.widthTokens`) and the owners
834
- that float above the layout (`layout.fixedWidthUnits`) in `ds.config.json`, and `ads check` lists
835
- both for review; ADS knows a unit's layer, not whether it is an overlay, and there is no
836
- per-declaration exception. The browser
1034
+ The [spatial check map](SPATIAL-CHECKS.md) records GC-01–GC-06 enforcement, supported
1035
+ construction boundaries and focused evidence, including per-call container ancestry,
1036
+ placement alternatives and protection of emitted geometry.
1037
+
1038
+ Fixed minima use the spatial scale, mini/fine units, standard control/icon dimensions or
1039
+ explicit `layout.widthTokens` roles; their resolved minimum must fit the spatial maximum.
1040
+ Projects without a spatial definition may use their shared spacing primitives. The checker
1041
+ follows private aliases and calculated expressions. Responsive, fractional and intrinsic
1042
+ sizing remain supported; maximum sizes can cap otherwise fixed dimensions. Validated
1043
+ `@ads-layout` fixed/hybrid tracks use their own local algebra. Declared fixed roles and
1044
+ `layout.fixedWidthUnits` owners remain visible as review findings. The browser
837
1045
  audit adds what source cannot show: axe-core, non-text contrast of control borders and icons,
838
1046
  image shape and horizontal overflow at 390, 768 and 1280 px, by resizing each rendered scenario. It
839
- also narrows components and patterns to a 240 px container: a set width above the small-part limit
1047
+ also narrows components and patterns to a 240 px container: a set width above the browser review threshold of 96 px
840
1048
  that overflows it is a review item, since whether a part ever sits in a pane takes judgement.
841
1049
 
1050
+ Audit previews retain the same subject framing and layout as showcase previews but disable
1051
+ the decorative grey surround and clipped canvas layer before mounting. The preview root
1052
+ therefore paints the project's theme/brand canvas directly, so axe and non-text contrast
1053
+ resolve the real ancestor background. Authored surfaces remain intact. Image shape uses
1054
+ untransformed CSS dimensions: explicit ratios respect `box-sizing`, while width/height
1055
+ attribute ratios compare the content box, excluding border and padding.
1056
+
842
1057
  Each render waits, bounded, for its content to settle before anything is measured, and says so when it
843
1058
  did not. The audit also renders what a scenario shows only after someone acts on it. It opens what
844
1059
  `aria-haspopup` controls open, and hovers and focuses controls for contrast. Each worker lists what
@@ -846,13 +1061,13 @@ every render could measure, then assigns targets in request order, so which rend
846
1061
  control does not depend on page speed. Its result states what it covered, and what it skipped is an
847
1062
  info item per reason. `mcp.auditPages` (1–16, default 4) sets how many pages render at once.
848
1063
 
849
- The audit runs in two places. Draft acceptance audits per `acceptance.browserAudit`:
850
- `"owners"` (default) the draft owners' own UI scenarios, `"affected"` every scenario
851
- the change reaches through imports (all of them for shared configuration, foundation
852
- or token changes), `false` none. The cost of an affected audit grows with how widely
853
- the owner is used, so the full audit of everything a series of drafts reached runs as
854
- a stage: `ads_validate` with the validation policy and `scope:"changed"`, before a
855
- commit or release. A dry run's audit is remembered by candidate revision and selection,
1064
+ The audit runs in both gates. Draft acceptance audits the draft owners' own UI
1065
+ scenarios unless `acceptance.audit` is false. `ads validate` always audits every
1066
+ scenario its change set reaches through imports: everything with scope `all`, and
1067
+ with scope `changed` what changed since the last successful full run (all scenarios
1068
+ after shared configuration, foundation or token changes). The cost of auditing what
1069
+ a change reaches grows with how widely the owner is used, so it runs once for a
1070
+ 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,
856
1071
  so accepting that revision does not render again.
857
1072
 
858
1073
  Static errors split by what they stop. A preview session the audit starts renders despite policy
@@ -870,7 +1085,7 @@ tests and browser review verify the resulting accessibility, layout, themes,
870
1085
  states, and motion. Both forms of verification support agent-driven iteration.
871
1086
 
872
1087
  The CLI `ads validate` and MCP `ads_validate` share one audit engine, combining
873
- architecture and test-boundary guards, registered lint rules, project commands
1088
+ architecture and test-boundary guards, configured project lint/check scripts
874
1089
  and behavior contracts. Full audits establish a content baseline. Changed audits
875
1090
  select affected behavior owners from that baseline; broad or unclassified changes
876
1091
  expand to full. Opaque project commands retain their declared scope.
@@ -883,8 +1098,8 @@ recording changed paths and known/unknown attribution. Source-change interruptio
883
1098
  cannot publish a successful baseline. A small run journal supports crash recovery;
884
1099
  immutable run results and exact-run investigations survive reconnects and subsequent
885
1100
  runs under bounded age/count/disk retention. Collection protects active work and
886
- expires owned evidence with its result. See [execution coordination](MCP.md#shared-process-execution-coordination)
887
- and the [implementation plan](plans/execution-coordination.md).
1101
+ expires owned evidence with its result. See
1102
+ [execution coordination](MCP.md#shared-process-execution-coordination).
888
1103
 
889
1104
  Only a successful full audit against unchanged source advances the baseline.
890
1105
  This works without Git history and does not cache individual test results. Skills
@@ -914,17 +1129,6 @@ Bounded tools establish what exists; explicit resource reads provide detail.
914
1129
  Prompts and packaged skills explain how to reason through Data, UX and Skin and
915
1130
  how to inspect the real implementation before changing it.
916
1131
 
917
- Agent feedback has a separate intake boundary. `ads_report_bug` records suspected
918
- broken behavior; `ads_request_feature` records a missing capability and its use
919
- case. Both save durable development metadata under the connected project's
920
- `.ds/reports/`, with verified evidence selectors, compact snapshots and observed
921
- version/framework/revisions. Classification remains an untriaged agent claim.
922
- Reports grant no architecture exception, execute no submitted command and upload
923
- nothing. Equivalent submissions reuse an ID; records do not expire or get pruned
924
- by count. Individual records and receipts are bounded. MCP intake is submission-only:
925
- it exposes no report-reading tools, resources, subscriptions or notifications.
926
- See the [reporting contract](MCP.md#bug-reports-and-feature-requests).
927
-
928
1132
  The MCP runtime owns its browser hosts and preview builder lifetime. Closing the
929
1133
  client connection releases them together; a separate ownership guard can stop
930
1134
  detached builders after abrupt owner death. A preview process must not outlive
@@ -939,30 +1143,32 @@ restarts it within the same MCP session. A running process alone is not freshnes
939
1143
  Opt-in MCP editing makes validation part of the write operation. The agent edits a
940
1144
  draft of one or more owners (file contents or a Git unified diff) and accepts it. ADS
941
1145
  resolves file ownership, takes the draft's files as they are and validates a
942
- temporary project copy with architecture checks, registered lint rules and project
943
- validation scripts.
1146
+ temporary project copy with architecture checks and configured project
1147
+ lint/validation scripts.
944
1148
  The temporary copy contains the relevant input graph and patched files, with room
945
1149
  for 100,000 files / 2 GiB. Unrelated native artifacts are not copied. Declared extra
946
1150
  inputs support project commands that read data outside the UI graph. When
947
- `acceptance.behaviorChecks` is true, affected registered behavior checks, including
948
- consumers of a changed shared controller, run in the isolated candidate project.
1151
+ `acceptance.behavior` is true (the default), the draft owners' own registered behavior
1152
+ checks run in the isolated candidate project; the consumers of a changed shared
1153
+ controller run in `ads validate`.
949
1154
  Architecture batch checks from the CLI and CI use the internal pinned Turbo runner
950
1155
  and its installed platform binary; no global Turbo or runtime dependency installer is
951
- invoked. The MCP server and its preview compiler instead run them in one warm worker
952
- thread (`check-service.mjs`): it keeps its TypeScript programs and parsed sources, so
953
- a check after an edit reparses only what changed, and an exact repeat of the same
954
- inputs returns the remembered passing report. Local artifact
1156
+ invoked. A task miss invokes the same asynchronous native analysis service.
1157
+ The MCP server, its preview compiler and registered candidates use warm checks
1158
+ (`check-service.mjs`) backed by that service. Native snapshots reuse unchanged
1159
+ ASTs and query results; an exact input-key repeat can return a remembered passing
1160
+ report. Local artifact
955
1161
  reuse is enabled by default and fenced by current input/tool/runtime/Git state;
956
- policy results, browser evidence, locks and baselines are never task outputs.
1162
+ gate results, browser evidence, locks and baselines are never task outputs.
957
1163
  Project scripts remain uncached without a known deterministic contract. The warm
958
1164
  Bun preview compiler retains its module cache; complete verified graph restoration
959
1165
  publishes fresh build-session evidence without semantic rediscovery. See
960
1166
  [cache controls and CI wiring](CACHING.md).
961
1167
 
962
- `acceptance.checks` and `validation.checks` explicitly select project scripts; no
963
- names are inferred. Validation selects its own `behaviorChecks` flag. Direct
964
- edits can invoke `ads validate --policy acceptance`; separate baselines prevent
965
- acceptance evidence from satisfying a complete validation audit. The project owns its test code and runner policy;
1168
+ `acceptance.scripts` and `validation.scripts` explicitly select project scripts; no
1169
+ names are inferred, and `ads validate` runs both lists, so each script is listed
1170
+ once. Direct edits invoke `ads validate --changed`; draft acceptance records no
1171
+ baseline, so its owner-scoped evidence never satisfies a complete validation. The project owns its test code and runner policy;
966
1172
  ADS owns affected-check selection, candidate hosting, progress, evidence freshness
967
1173
  and process cleanup. One profile timeout bounds its entire runner process. Parallel
968
1174
  workers can share that candidate host with independent App state. Partial outcomes
@@ -1033,20 +1239,14 @@ of evidence; source checks and metadata cannot establish visual or behavioral
1033
1239
  correctness. Text/resource access and the normal showcase keep the workflow
1034
1240
  usable when a client lacks experimental presentation capabilities.
1035
1241
 
1036
- Experimental MCP Apps are another development review surface. Token, component,
1037
- pattern and composition views are project-built scenarios with the project's
1038
- own extracted CSS and public implementations. A generic tool-owned definition
1039
- inspector remains available for token source/alias diagnostics, even if project
1040
- previews cannot compile; it does not substitute for token scenario coverage.
1242
+ Experimental MCP Apps are another development review surface. Component, pattern and
1243
+ composition views are project-built scenarios with the project's own extracted CSS and
1244
+ public implementations; token and brand views are built by ADS from project definitions.
1041
1245
  The server serves those artifacts; it does not interpret arbitrary component
1042
1246
  code or introduce production UI dependencies. File-change notifications let
1043
- hosts refresh their views. ADS normally manages its native Bun preview compiler with one launch command.
1247
+ hosts refresh their views. ADS runs its Bun preview compiler itself, with no launch command.
1044
1248
  Editing access is independent: direct editors can use MCP only for preview/checks,
1045
- while MCP-only editors use enabled mutation tools. Direct editors can instead
1046
- manage compilation externally with `mcp.previewWatch: false`; the external builder
1047
- must publish the ADS resource graph and build evidence. MCP still serves previews,
1048
- but source changes stale their evidence until verified updated output is published.
1049
- See the [editing workflows](../skills/ads-designer/references/workflows.md). Structured build reports distinguish running compilers
1249
+ 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
1050
1250
  from successful, current previews; diagnostics remain readable even when a host
1051
1251
  does not forward notifications. Older clients retain tools/resources/prompts;
1052
1252
  native skill discovery and Apps presentation depend on the host's capabilities.
@@ -1056,13 +1256,13 @@ For concrete instructions, use:
1056
1256
 
1057
1257
  - [ADS tooling contract](ADS.md) for naming, ownership rules, updates, and lint responsibilities.
1058
1258
  - [Tool guide](GUIDE.md) for prerequisites, supported formats, configuration, and build wiring.
1059
- - [Working example guide](../design-system/README.md) for Linaria composition, extraction, and project commands.
1259
+ - [Starter/playground guide](../starters/README.md) for Linaria composition, extraction, and project commands.
1060
1260
  - Component-local READMEs for APIs, lifecycle, tests, and provenance.
1061
1261
 
1062
- Token preview completeness has two checks. Static guards require explicit fixture
1063
- bindings (`token`, CSS `property`, and project-selected `probe`) consumed by a public
1064
- review renderer. The App then verifies rendered samples in the actual browser by
1065
- probing those bindings and restoring them. The tool supplies no token/property
1262
+ Token preview completeness has two checks. Static guards validate the catalogue's explicit
1263
+ bindings (`token`, CSS `property`, and project-selected `probe`; `foundation-catalog`). The
1264
+ view then verifies rendered samples in the actual browser by probing those bindings and
1265
+ restoring them. The tool supplies no token/property
1066
1266
  classification or visual sample palette. A source build alone is not a rendered
1067
1267
  verification, and the browser check does not judge design quality.
1068
1268
 
@@ -1102,7 +1302,7 @@ scenarios and fixtures use the marked names; existing IDs remain stable.
1102
1302
  Instance bindings are distinct from static tokens and arbitrary inline styles.
1103
1303
  Source checks trace config origin, key validation, exact map construction and
1104
1304
  attachment to an owner root. Shared token and private runtime-variable ownership and consumer permissions
1105
- remain enforced. Browser audits inspect current scoped values, paint effects and
1305
+ remain enforced. Render audits inspect current scoped values, paint effects and
1106
1306
  local SVG resources; registered checks must cover updates/removal, isolation and
1107
1307
  relevant themes. Registration, source-demonstrated consumption and current browser
1108
1308
  verification are separate evidence. Unknown paths establish no blanket permission.
@@ -1125,3 +1325,34 @@ custom outputs use `assets.generatedPaths`. Bundled binary assets are forwarded
1125
1325
  as resources: the built-in Apps sandbox permits blob reads and WebAssembly
1126
1326
  compilation without granting external network access, JavaScript eval or host
1127
1327
  DOM access. External MCP hosts retain their own CSP policy.
1328
+
1329
+ ### Pictogram ownership and evidence
1330
+
1331
+ Pictograms are project-owned illustrative SVGs in `assets/pictograms/`, separate
1332
+ from brand identity, glyphs and raster images. `catalog.ads.json` declares their
1333
+ meaning, license, minimum drawn height and exact-theme/scheme/shared source
1334
+ selection. See the [pictogram contract and examples](../skills/ads-designer/references/pictograms.md).
1335
+
1336
+ `src/pictogram-model.mjs` is the pure catalogue/XML/geometry model;
1337
+ `src/pictograms.mjs` is its captured-input adapter. Pictogram SVG text is retained during the
1338
+ existing analysis input read; unrelated image assets are not added to the source tree. The adapter shares immutable results per request
1339
+ and weakly per captured revision, including missing inputs; rules/discovery never
1340
+ fall back to disk for a missing snapshot. No TypeScript program or parser is
1341
+ created for asset metadata. The XML parser checks document structure without
1342
+ executing SVG. Artwork is embedded as image data, never injected into gallery DOM.
1343
+
1344
+ Discovery publishes tool-owned `pictograms/<id>` foundation views attached to the
1345
+ `assets/pictograms` draft owner. CLI checks, MCP discovery, validation and acceptance
1346
+ share the same diagnostics. The gallery resolves explicit theme variants, renders
1347
+ clean/actual-size samples and a separate construction-grid card. Components keep
1348
+ normal SVG imports and their own theme selection; no ADS runtime ships with them.
1349
+
1350
+ The render audit receives the registry's checked digests and geometry, without
1351
+ rereading sources. It identifies visible SVG images by digest, caches source
1352
+ identities across viewport samples, and checks the active variant, accessibility
1353
+ markup, drawn size and proportions. `data-ads-pictogram` disambiguates shared bytes
1354
+ and detects wrong source substitutions. Inline SVG/CSS backgrounds, arbitrary
1355
+ transformations, illustration meaning and optical quality remain outside this
1356
+ image guard. Assets remain shared inputs for change selection, so their edits
1357
+ widen verification to consuming UI. Browser measurements are not included in
1358
+ analysis/acceptance performance benchmarks.