@reqvire-org/ads 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/README.md +105 -86
  2. package/dist/a11y.mjs +108 -29
  3. package/dist/analysis/compiler-options.mjs +13 -0
  4. package/dist/analysis/context.mjs +46 -0
  5. package/dist/analysis/file-tree.mjs +52 -0
  6. package/dist/analysis/helpers.mjs +140 -0
  7. package/dist/analysis/impact.mjs +20 -0
  8. package/dist/analysis/inputs.mjs +15 -0
  9. package/dist/analysis/native-adapter.mjs +180 -0
  10. package/dist/analysis/native-project.mjs +323 -0
  11. package/dist/analysis/queries.mjs +133 -0
  12. package/dist/analysis/service.mjs +146 -0
  13. package/dist/analysis/standalone.mjs +57 -0
  14. package/dist/analysis/syntax.mjs +164 -0
  15. package/dist/analysis/worker.mjs +182 -0
  16. package/dist/assets.mjs +5 -5
  17. package/dist/atomic-composition.mjs +191 -70
  18. package/dist/atomic-trace.mjs +120 -50
  19. package/dist/behavior-libraries.mjs +106 -37
  20. package/dist/behaviors.mjs +219 -77
  21. package/dist/boundaries.mjs +135 -38
  22. package/dist/brand-assets.mjs +219 -47
  23. package/dist/brands.mjs +86 -27
  24. package/dist/bun-compiler.mjs +28 -14
  25. package/dist/bun-worker.mjs +7 -5
  26. package/dist/capture/worker.mjs +15 -4
  27. package/dist/capture-store.mjs +4 -2
  28. package/dist/capture.mjs +17 -14
  29. package/dist/check-service.mjs +40 -57
  30. package/dist/check.mjs +749 -188
  31. package/dist/cli.mjs +200 -99
  32. package/dist/color-values.mjs +21 -21
  33. package/dist/component-contrast.mjs +2 -2
  34. package/dist/config.mjs +303 -135
  35. package/dist/construction-styles.cjs +10 -0
  36. package/dist/control-padding.mjs +45 -25
  37. package/dist/css-values.mjs +3 -2
  38. package/dist/declarative-flow.mjs +209 -109
  39. package/dist/design-values.mjs +136 -51
  40. package/dist/development-runtime.mjs +4 -6
  41. package/dist/draft-boundary.mjs +11 -6
  42. package/dist/evidence.mjs +1 -1
  43. package/dist/finding-rules.mjs +7 -5
  44. package/dist/font-rules.mjs +2 -2
  45. package/dist/fonts-generated.mjs +2 -2
  46. package/dist/foundation-views.mjs +238 -0
  47. package/dist/foundation.mjs +63 -39
  48. package/dist/generated-entries.mjs +101 -34
  49. package/dist/icons.mjs +79 -32
  50. package/dist/image-attributes.mjs +109 -36
  51. package/dist/image-size.mjs +1 -1
  52. package/dist/index.mjs +0 -2
  53. package/dist/init.mjs +122 -41
  54. package/dist/investigations.mjs +2 -2
  55. package/dist/layers.mjs +298 -129
  56. package/dist/layout-widths.mjs +180 -85
  57. package/dist/linaria/preserve-values.cjs +7 -0
  58. package/dist/linaria/spatial-inputs.cjs +56 -0
  59. package/dist/lockup-composition.mjs +44 -0
  60. package/dist/lockup-model.cjs +64 -0
  61. package/dist/mcp/THIRD_PARTY_NOTICES.md +51 -1
  62. package/dist/mcp/apps.mjs +4 -30
  63. package/dist/mcp/behavior-pages.mjs +72 -24
  64. package/dist/mcp/build-status.mjs +257 -64
  65. package/dist/mcp/catalog.mjs +90 -26
  66. package/dist/mcp/context.mjs +17 -18
  67. package/dist/mcp/draft-discovery.mjs +44 -21
  68. package/dist/mcp/drafts.mjs +901 -281
  69. package/dist/mcp/execution-coordinator.mjs +417 -167
  70. package/dist/mcp/execution-results.mjs +7 -7
  71. package/dist/mcp/mutations.mjs +670 -234
  72. package/dist/mcp/preview-watch.mjs +448 -170
  73. package/dist/mcp/preview-widget.bundle.js +44 -50
  74. package/dist/mcp/prompts.mjs +5 -5
  75. package/dist/mcp/result-pages.mjs +1 -1
  76. package/dist/mcp/sandbox-host.mjs +1 -1
  77. package/dist/mcp/server.mjs +2402 -577
  78. package/dist/mcp/showcase-host.mjs +165 -41
  79. package/dist/mcp/skills.mjs +1 -1
  80. package/dist/mcp/text-diff.mjs +29 -10
  81. package/dist/paint-contracts.mjs +174 -81
  82. package/dist/palette-generated.mjs +2 -2
  83. package/dist/preview-bun.mjs +493 -187
  84. package/dist/preview-failure.mjs +1 -1
  85. package/dist/preview-files.mjs +13 -13
  86. package/dist/preview-imports.mjs +104 -55
  87. package/dist/preview-inputs.mjs +2 -2
  88. package/dist/preview-requests.mjs +24 -0
  89. package/dist/preview-resources.mjs +288 -147
  90. package/dist/preview-scope.mjs +5 -4
  91. package/dist/program-cache.mjs +8 -34
  92. package/dist/project-documents.mjs +1 -1
  93. package/dist/public-api.mjs +69 -31
  94. package/dist/public-props.mjs +39 -22
  95. package/dist/{browser-audit → render-audit}/axe-run.mjs +3 -3
  96. package/dist/{browser-audit → render-audit}/image-shape.mjs +2 -2
  97. package/dist/{browser-audit → render-audit}/layout-overflow.mjs +86 -23
  98. package/dist/{browser-audit → render-audit}/non-text-contrast.mjs +86 -27
  99. package/dist/{browser-audit → render-audit}/render-states.mjs +208 -52
  100. package/dist/{browser-audit → render-audit}/worker.mjs +86 -30
  101. package/dist/render-audit.mjs +828 -0
  102. package/dist/render-color-probe.mjs +96 -42
  103. package/dist/resource-limits.mjs +229 -97
  104. package/dist/runtime-contracts.mjs +467 -185
  105. package/dist/scenario-groups.mjs +22 -10
  106. package/dist/scenario-inspector.mjs +6 -43
  107. package/dist/scenario-program.mjs +8 -25
  108. package/dist/scenario-registry.mjs +72 -30
  109. package/dist/scenario-selectors.mjs +161 -64
  110. package/dist/scenario-slots.mjs +149 -56
  111. package/dist/scenario-trace.mjs +215 -109
  112. package/dist/scenarios-compiler.mjs +719 -378
  113. package/dist/scenarios-vite.d.mts +1 -3
  114. package/dist/scenarios-vite.mjs +2 -81
  115. package/dist/scenarios.mjs +421 -157
  116. package/dist/selector-match.mjs +2 -2
  117. package/dist/showcase/client.bundle.js +57 -56
  118. package/dist/showcase/draft-navigation.js +18 -0
  119. package/dist/showcase/favicon.ico +0 -0
  120. package/dist/showcase/favicon.svg +1 -0
  121. package/dist/showcase/foundation-view.css +55 -0
  122. package/dist/showcase/foundation-view.mjs +252 -0
  123. package/dist/showcase/guide-controls.ads.review.mjs +32 -0
  124. package/dist/showcase/icons.js +1 -145
  125. package/dist/showcase/index.html +3 -31
  126. package/dist/showcase/preview-frame.ads.review.css +46 -0
  127. package/dist/showcase/preview-frame.ads.review.d.mts +11 -0
  128. package/dist/showcase/preview-frame.ads.review.mjs +22 -0
  129. package/dist/showcase/preview-state.js +0 -9
  130. package/dist/showcase/refresh-scheduler.js +23 -0
  131. package/dist/showcase/style.css +5 -47
  132. package/dist/showcase/ui/ui.css +1353 -0
  133. package/dist/showcase/ui/ui.js +1062 -0
  134. package/dist/showcase-coverage.mjs +58 -37
  135. package/dist/skills/README.md +24 -23
  136. package/dist/skills/ads-designer/README.md +8 -2
  137. package/dist/skills/ads-designer/SKILL.md +130 -119
  138. package/dist/skills/ads-designer/references/accessibility.md +12 -13
  139. package/dist/skills/ads-designer/references/atomic-styles.md +4 -4
  140. package/dist/skills/ads-designer/references/behaviors.md +30 -27
  141. package/dist/skills/ads-designer/references/branding.md +98 -10
  142. package/dist/skills/ads-designer/references/captures.md +25 -0
  143. package/dist/skills/ads-designer/references/cli.md +21 -24
  144. package/dist/skills/ads-designer/references/contracts.md +7 -6
  145. package/dist/skills/ads-designer/references/design-data.md +49 -52
  146. package/dist/skills/ads-designer/references/drafts.md +20 -17
  147. package/dist/skills/ads-designer/references/evidence.md +1 -5
  148. package/dist/skills/ads-designer/references/guarded-editing.md +14 -18
  149. package/dist/skills/ads-designer/references/layers.md +1 -1
  150. package/dist/skills/ads-designer/references/layout.md +347 -0
  151. package/dist/skills/ads-designer/references/mobile.md +2 -1
  152. package/dist/skills/{ads-motion/references/performance.md → ads-designer/references/motion-performance.md} +5 -1
  153. package/dist/skills/{ads-motion/references/build.md → ads-designer/references/motion.md} +73 -5
  154. package/dist/skills/ads-designer/references/review.md +37 -34
  155. package/dist/skills/ads-designer/references/runtimes.md +33 -30
  156. package/dist/skills/ads-designer/references/scenarios.md +16 -18
  157. package/dist/skills/{ads-break-ui/references/catalog.md → ads-designer/references/stress-catalog.md} +3 -1
  158. package/dist/skills/ads-designer/references/stress-test.md +68 -0
  159. package/dist/skills/ads-designer/references/validation.md +83 -75
  160. package/dist/skills/ads-designer/references/workflows.md +8 -33
  161. package/dist/skills/ads-import/SKILL.md +43 -325
  162. package/dist/skills/ads-import/references/atomic-styles.md +4 -4
  163. package/dist/skills/ads-import/references/behaviors.md +30 -27
  164. package/dist/skills/ads-import/references/branding.md +5 -5
  165. package/dist/skills/ads-import/references/captures.md +25 -0
  166. package/dist/skills/ads-import/references/cli.md +21 -24
  167. package/dist/skills/ads-import/references/compatibility.md +1 -1
  168. package/dist/skills/ads-import/references/contracts.md +7 -6
  169. package/dist/skills/ads-import/references/design-data.md +49 -52
  170. package/dist/skills/ads-import/references/drafts.md +20 -17
  171. package/dist/skills/ads-import/references/evidence.md +1 -5
  172. package/dist/skills/ads-import/references/guarded-editing.md +14 -18
  173. package/dist/skills/ads-import/references/implementation.md +2 -1
  174. package/dist/skills/ads-import/references/layers.md +1 -1
  175. package/dist/skills/ads-import/references/layout.md +347 -0
  176. package/dist/skills/ads-import/references/review.md +37 -34
  177. package/dist/skills/ads-import/references/runtimes.md +33 -30
  178. package/dist/skills/ads-import/references/scenarios.md +16 -18
  179. package/dist/skills/ads-import/references/tokens.md +3 -3
  180. package/dist/skills/ads-import/references/validation.md +83 -75
  181. package/dist/skills/ads-import/references/workflows.md +8 -33
  182. package/dist/skills/ads-migrate/SKILL.md +56 -0
  183. package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +602 -0
  184. package/dist/skills/ads-port/SKILL.md +54 -343
  185. package/dist/skills/ads-port/references/atomic-styles.md +4 -4
  186. package/dist/skills/ads-port/references/behaviors.md +30 -27
  187. package/dist/skills/ads-port/references/captures.md +25 -0
  188. package/dist/skills/ads-port/references/cli.md +21 -24
  189. package/dist/skills/ads-port/references/contracts.md +7 -6
  190. package/dist/skills/ads-port/references/design-data.md +49 -52
  191. package/dist/skills/ads-port/references/drafts.md +20 -17
  192. package/dist/skills/ads-port/references/evidence.md +1 -5
  193. package/dist/skills/ads-port/references/guarded-editing.md +14 -18
  194. package/dist/skills/ads-port/references/layers.md +1 -1
  195. package/dist/skills/ads-port/references/layout.md +347 -0
  196. package/dist/skills/ads-port/references/lint-and-docs.md +8 -11
  197. package/dist/skills/ads-port/references/native-implementation.md +2 -1
  198. package/dist/skills/ads-port/references/review.md +37 -34
  199. package/dist/skills/ads-port/references/runtimes.md +33 -30
  200. package/dist/skills/ads-port/references/scenarios.md +16 -18
  201. package/dist/skills/ads-port/references/validation.md +83 -75
  202. package/dist/skills/ads-port/references/workflows.md +8 -33
  203. package/dist/source-symbols.mjs +1 -8
  204. package/dist/source-values.mjs +266 -128
  205. package/dist/spatial-composition.mjs +322 -0
  206. package/dist/spatial-contexts.cjs +56 -0
  207. package/dist/spatial-css.cjs +351 -0
  208. package/dist/spatial-inputs.cjs +80 -0
  209. package/dist/spatial-metadata.mjs +18 -0
  210. package/dist/spatial-model.cjs +322 -0
  211. package/dist/spatial.mjs +21 -0
  212. package/dist/stage-timing.cjs +20 -0
  213. package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +105 -0
  214. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +275 -0
  215. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  216. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  217. package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +8 -0
  218. package/dist/starters/preact/ds.config.json +25 -6
  219. package/dist/starters/preact/package.json +4 -8
  220. package/dist/starters/preact/tsconfig.json +4 -5
  221. package/dist/starters/preact/vite.config.ts +3 -3
  222. package/dist/starters/react/ADS.md +42 -47
  223. package/dist/starters/react/README.md +47 -49
  224. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +18 -2
  225. package/dist/starters/react/design-system/components/Actions/IconButton/README.md +3 -0
  226. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +5 -0
  227. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +13 -0
  228. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +22 -0
  229. package/dist/starters/react/design-system/index.ts +2 -1
  230. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +1 -0
  231. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +7 -0
  232. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +15 -0
  233. package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +105 -0
  234. package/dist/starters/react/design-system/patterns/Conversation/README.md +9 -0
  235. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +5 -0
  236. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +21 -0
  237. package/dist/starters/react/design-system/patterns/Shell/README.md +43 -0
  238. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +1 -0
  239. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +5 -0
  240. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +21 -0
  241. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +274 -0
  242. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +1 -1
  243. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  244. package/dist/starters/react/design-system/review/index.ads.review.ts +4 -0
  245. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +1 -0
  246. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +6 -0
  247. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +1 -1
  248. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  249. package/dist/starters/react/design-system/showcase/mcp/{main.tsx → main.ads.mount.tsx} +4 -2
  250. package/dist/starters/react/design-system/tokens/catalog.ads.json +1221 -0
  251. package/dist/starters/react/design-system/tokens/colors.css +1 -1
  252. package/dist/starters/react/design-system/tokens/spacing.css +22 -32
  253. package/dist/starters/react/design-system/tokens/spatial.ads.json +70 -0
  254. package/dist/starters/react/design-system/tokens/themes.generated.ts +1 -1
  255. package/dist/starters/react/ds.config.json +25 -6
  256. package/dist/starters/react/package.json +2 -6
  257. package/dist/starters/react/tsconfig.json +2 -3
  258. package/dist/starters/react/vite.config.ts +3 -3
  259. package/dist/style-boundaries.mjs +70 -25
  260. package/dist/task-cache.mjs +173 -72
  261. package/dist/task-worker.mjs +22 -11
  262. package/dist/test-boundaries.mjs +132 -59
  263. package/dist/themes-generated.mjs +1 -1
  264. package/dist/themes-watch.mjs +57 -22
  265. package/dist/themes.mjs +176 -73
  266. package/dist/token-export.mjs +39 -14
  267. package/dist/token-policy.mjs +6 -3
  268. package/dist/token-quality.mjs +6 -6
  269. package/dist/token-samples.mjs +16 -5
  270. package/dist/tokens.mjs +71 -26
  271. package/dist/ui-framework.mjs +16 -14
  272. package/dist/unit-contracts.mjs +251 -104
  273. package/dist/units.mjs +208 -98
  274. package/dist/usage.mjs +138 -38
  275. package/dist/validation-checks.mjs +115 -38
  276. package/dist/validation-inputs.mjs +187 -78
  277. package/dist/validation.mjs +268 -102
  278. package/dist/verification/browser.mjs +27 -5
  279. package/dist/verification.mjs +711 -187
  280. package/docs/ADS.md +90 -79
  281. package/docs/ARCHITECTURE.md +294 -136
  282. package/docs/BEHAVIORS.md +29 -25
  283. package/docs/CACHING.md +52 -17
  284. package/docs/CHANGELOG.md +309 -17
  285. package/docs/CONTRACTS.md +12 -4
  286. package/docs/DESIGN-REFERENCES.md +40 -0
  287. package/docs/GUIDE.md +270 -258
  288. package/docs/MCP.md +181 -324
  289. package/docs/SPATIAL-CHECKS.md +69 -0
  290. package/docs/benchmarks/README.md +39 -0
  291. package/package.json +42 -34
  292. package/dist/browser-audit.mjs +0 -429
  293. package/dist/create.mjs +0 -48
  294. package/dist/lint-config.mjs +0 -50
  295. package/dist/mcp/project-widget.bundle.js +0 -114
  296. package/dist/mcp/reports.mjs +0 -101
  297. package/dist/mcp/widget.bundle.js +0 -147
  298. package/dist/oxlint.mjs +0 -89
  299. package/dist/preview-builder.mjs +0 -133
  300. package/dist/preview-workers.mjs +0 -184
  301. package/dist/showcase.mjs +0 -77
  302. package/dist/skills/ads-break-ui/LICENSE.upstream +0 -21
  303. package/dist/skills/ads-break-ui/README.md +0 -16
  304. package/dist/skills/ads-break-ui/SKILL.md +0 -412
  305. package/dist/skills/ads-break-ui/agents/openai.yaml +0 -4
  306. package/dist/skills/ads-break-ui/references/atomic-styles.md +0 -293
  307. package/dist/skills/ads-break-ui/references/behaviors.md +0 -412
  308. package/dist/skills/ads-break-ui/references/captures.md +0 -135
  309. package/dist/skills/ads-break-ui/references/contracts.md +0 -317
  310. package/dist/skills/ads-break-ui/references/design-data.md +0 -354
  311. package/dist/skills/ads-break-ui/references/drafts.md +0 -194
  312. package/dist/skills/ads-break-ui/references/evidence.md +0 -128
  313. package/dist/skills/ads-break-ui/references/guarded-editing.md +0 -165
  314. package/dist/skills/ads-break-ui/references/layers.md +0 -145
  315. package/dist/skills/ads-break-ui/references/reporting.md +0 -101
  316. package/dist/skills/ads-break-ui/references/review.md +0 -97
  317. package/dist/skills/ads-break-ui/references/runtimes.md +0 -203
  318. package/dist/skills/ads-break-ui/references/scenarios.md +0 -246
  319. package/dist/skills/ads-break-ui/references/validation.md +0 -166
  320. package/dist/skills/ads-break-ui/references/verification.md +0 -58
  321. package/dist/skills/ads-break-ui/references/workflows.md +0 -90
  322. package/dist/skills/ads-designer/references/reporting.md +0 -101
  323. package/dist/skills/ads-import/references/reporting.md +0 -101
  324. package/dist/skills/ads-motion/LICENSE.upstream +0 -21
  325. package/dist/skills/ads-motion/README.md +0 -22
  326. package/dist/skills/ads-motion/SKILL.md +0 -385
  327. package/dist/skills/ads-motion/agents/openai.yaml +0 -4
  328. package/dist/skills/ads-motion/references/atomic-styles.md +0 -293
  329. package/dist/skills/ads-motion/references/audit.md +0 -44
  330. package/dist/skills/ads-motion/references/behaviors.md +0 -412
  331. package/dist/skills/ads-motion/references/captures.md +0 -135
  332. package/dist/skills/ads-motion/references/contracts.md +0 -317
  333. package/dist/skills/ads-motion/references/design-data.md +0 -354
  334. package/dist/skills/ads-motion/references/drafts.md +0 -194
  335. package/dist/skills/ads-motion/references/evidence.md +0 -128
  336. package/dist/skills/ads-motion/references/guarded-editing.md +0 -165
  337. package/dist/skills/ads-motion/references/layers.md +0 -145
  338. package/dist/skills/ads-motion/references/motion-review.md +0 -35
  339. package/dist/skills/ads-motion/references/reporting.md +0 -101
  340. package/dist/skills/ads-motion/references/review.md +0 -97
  341. package/dist/skills/ads-motion/references/runtimes.md +0 -203
  342. package/dist/skills/ads-motion/references/scenarios.md +0 -246
  343. package/dist/skills/ads-motion/references/validation.md +0 -166
  344. package/dist/skills/ads-motion/references/verification.md +0 -39
  345. package/dist/skills/ads-motion/references/workflows.md +0 -90
  346. package/dist/skills/ads-port/references/reporting.md +0 -101
  347. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.ads.contract.ts +0 -6
  348. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.tsx +0 -76
  349. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  350. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  351. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.ads.contract.ts +0 -6
  352. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.tsx +0 -137
  353. package/dist/starters/preact/design-system/showcase/mcp/main.tsx +0 -6
  354. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +0 -7
  355. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx +0 -4
  356. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +0 -7
  357. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx +0 -4
  358. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.contract.ts +0 -6
  359. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.exports.ts +0 -1
  360. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.fixture.ts +0 -12
  361. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.scenario.tsx +0 -17
  362. package/dist/starters/react/design-system/components/Layout/Grid/Grid.tsx +0 -75
  363. package/dist/starters/react/design-system/components/Layout/Grid/README.md +0 -21
  364. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.ads.exports.ts +0 -1
  365. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.tsx +0 -112
  366. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  367. package/dist/starters/react/design-system/review/grid-cell/GridCell.ads.exports.ts +0 -1
  368. package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +0 -18
  369. package/dist/starters/react/design-system/review/index.ts +0 -6
  370. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  371. package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.contract.ts +0 -6
  372. package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.exports.ts +0 -1
  373. package/dist/starters/react/design-system/review/token-preview/TokenPreview.tsx +0 -137
  374. package/dist/starters/react/design-system/showcase/mcp/index.html +0 -1
  375. package/dist/starters/react/design-system/tokens/Color.ads.fixture.ts +0 -124
  376. package/dist/starters/react/design-system/tokens/Color.ads.scenario.tsx +0 -4
  377. package/dist/starters/react/design-system/tokens/Layout.ads.fixture.ts +0 -39
  378. package/dist/starters/react/design-system/tokens/Layout.ads.scenario.tsx +0 -4
  379. package/dist/starters/react/design-system/tokens/Motion.ads.fixture.ts +0 -18
  380. package/dist/starters/react/design-system/tokens/Motion.ads.scenario.tsx +0 -4
  381. package/dist/starters/react/design-system/tokens/Shape.ads.fixture.ts +0 -30
  382. package/dist/starters/react/design-system/tokens/Shape.ads.scenario.tsx +0 -4
  383. package/dist/starters/react/design-system/tokens/Space.ads.fixture.ts +0 -37
  384. package/dist/starters/react/design-system/tokens/Space.ads.scenario.tsx +0 -4
  385. package/dist/starters/react/design-system/tokens/Type.ads.fixture.ts +0 -29
  386. package/dist/starters/react/design-system/tokens/Type.ads.scenario.tsx +0 -4
  387. package/dist/starters/react/package-lock.json +0 -4707
  388. package/dist/token-fixtures.mjs +0 -30
  389. package/docs/benchmarks/bun-previews.md +0 -91
  390. package/docs/benchmarks/preview-memory.md +0 -147
  391. package/docs/benchmarks/turbo-poc.md +0 -284
  392. package/docs/plans/execution-coordination.md +0 -57
  393. /package/dist/{browser-audit → render-audit}/first-render.mjs +0 -0
  394. /package/dist/{browser-audit → render-audit}/layout-shift.mjs +0 -0
package/docs/MCP.md CHANGED
@@ -8,8 +8,8 @@ UI to demonstrate their subject; application adapters own store access and routi
8
8
 
9
9
  `ads mcp [directory]` serves a project's local design system over stdio. It uses
10
10
  the same `ds.config.json`, token inspection and core checks as the CLI. It reads
11
- source and build artifacts. Optionally it manages one configured project
12
- preview watcher and serves the built-in browser showcase, so the client needs
11
+ source and build artifacts. With a declared framework, it manages ADS's Bun
12
+ preview compiler and serves the built-in browser showcase, so the client needs
13
13
  only one launch command. Source editing is disabled by default; `--mutations`
14
14
  enables guarded ADS edits. MCP does not install skills or add a production runtime.
15
15
 
@@ -25,7 +25,7 @@ action and do not require restarting MCP.
25
25
  its installed version and the ADS units that use it. Catalog entries expose their
26
26
  `behaviorLibraries`, following local helpers and controllers. This allowlist
27
27
  permits imports; it does not load packages or audit third-party dependencies.
28
- Used code is bundled by the project's normal preview compiler into the resources
28
+ Used code is bundled by ADS's managed Bun preview compiler into the resources
29
29
  read by the sandboxed MCP App. Existing style and geometry boundaries still apply.
30
30
 
31
31
  Websites and product MCP Apps reuse the project's public design-system UI. The
@@ -45,16 +45,13 @@ With MCP-only access, enabled mutation tools provide source/draft edits and
45
45
  exact-revision acceptance. Without them or a separate editor, source editing is
46
46
  unavailable. `mutations.enabled` reports server capability, not the chosen route.
47
47
 
48
- Direct editing normally uses the ADS-managed compiler. Setting
49
- `mcp.previewWatch: false` selects an external builder: the editor/builder publishes
50
- the ADS resource graph and build evidence, and MCP serves previews without
51
- starting a compiler. Existing views may remain visible during compilation, but
52
- changed-source evidence is stale until verified updated artifacts are published.
53
- Both editing routes require current ADS/project checks and rendered review.
48
+ Both editing routes use ADS's compiler, which the MCP server runs. Existing views
49
+ may remain visible during compilation, but changed-source evidence is stale until
50
+ verified updated artifacts are published. Both editing routes require current ADS/project checks and rendered review.
54
51
 
55
- ## Command memory budgets (ADS 0.3.38+)
52
+ ## Command memory budgets
56
53
 
57
- ADS 0.3.38 adds `resources.memoryLimitMb` in `ds.config.json`. Missing/null
54
+ `resources.memoryLimitMb` in `ds.config.json` controls command memory. Missing/null
58
55
  selects an automatic process-tree budget of at most 6 GiB and one quarter of
59
56
  physical RAM, with 1 GiB of available-memory headroom and inherited Linux limits
60
57
  respected. A positive MiB value sets the project budget explicitly. Changing it
@@ -96,11 +93,11 @@ is explicitly `previewOnly`, not behavioral or acceptance evidence.
96
93
 
97
94
  `ads_accept({id,revision})` validates and applies the exact reviewed revision in
98
95
  one operation; `dryRun:true` runs every check and writes nothing. It is the only way
99
- MCP writes accepted source. Architecture, configured project commands and affected
100
- behavior checks remain mandatory. `acceptance.browserAudit` chooses the axe-core
101
- audit: `"owners"` (default) renders the draft owners' own UI scenarios, `"affected"`
102
- every scenario the change reaches, `false` none; each in every declared brand and
103
- theme, with the non-text contrast and overflow checks; any `a11y-axe`,
96
+ MCP writes accepted source. It runs `ads check`, `acceptance.scripts`, the draft
97
+ owners' own registered behavior checks (`acceptance.behavior`, default true) and the
98
+ render audit of the draft owners' own UI scenarios (`acceptance.audit`, default
99
+ true), each scenario in every declared brand and theme, with the non-text contrast
100
+ and overflow checks; any `a11y-axe`,
104
101
  `a11y-non-text-contrast` or `layout-overflow` error rejects acceptance. Edits during checking and baseline conflicts
105
102
  prevent application; failures retain the draft and return execution evidence.
106
103
  Successful acceptance removes draft source, records an event and resolves draft
@@ -113,16 +110,17 @@ manifest and `.ads` source files. Generated mirrors, compilers and events
113
110
  live under ignored `.ds/`. A draft can be committed and reviewed in a PR without
114
111
  being imported into application source. Normal imports of marked draft source,
115
112
  including aliases/symlinks, fail guards; use the isolated preview overlay instead.
116
- Install the exported `draftImportGuard()` in application Vite/Rollup builds too.
113
+ Install the exported `developmentImportGuard()` in application Vite/Rollup builds too.
117
114
 
118
115
  Explorer keeps pending proposals in the ordinary catalogue, with Draft badges
119
116
  on their owners, including new owners without an accepted version. Selecting an
120
- entry with a draft enables the upper-header Split view toggle to compare Accepted
117
+ entry with accepted and draft versions shows Split view in the preview toolbar to compare Accepted
121
118
  and Draft in the right pane using separate opaque MCP Apps, the same scenario/theme
122
119
  and matched available/phone viewport widths. New-only entries show their draft
123
- and disable comparison. Unchanged scenarios available as explicit overlay review
124
- contexts do not acquire owner badges. There is no separate Drafts tab or scenario
125
- picker; `ads_drafts` provides draft-only MCP listing. Project
120
+ without a comparison toggle. Entries without a draft also hide the toggle, and
121
+ the toolbar disappears when empty. Unchanged scenarios available as explicit overlay review
122
+ contexts do not acquire owner badges. The Drafts tab lists active proposals by
123
+ catalogue category; selecting one opens its draft. `ads_drafts` provides draft-only MCP listing. Project
126
124
  code remains inside the existing sandbox; no additional iframe origin is allowed.
127
125
  Draft resource reads are explicitly scoped through `ads://drafts/<id>/resource`.
128
126
  `ads://project/drafts` supports resource subscriptions; tool outcomes and persisted
@@ -165,21 +163,19 @@ the acceptance gates.
165
163
  Starting `ads mcp` automatically serves a loopback showcase. Its URL is printed
166
164
  on stderr and returned by `ads_status.showcaseUrl`/`project.showcase.url`.
167
165
  The agent keeps its stdio connection; the browser connects to `/mcp` on the same
168
- runtime using HTTP and the current modern protocol. Both share the configured
169
- preview watcher and artifacts. Stdout remains exclusively JSON-RPC.
166
+ runtime over HTTP. Both serve the same protocol versions and share the compiler
167
+ and artifacts. Stdout remains exclusively JSON-RPC.
170
168
 
171
- Every registered preview uses `?scenario=<discovered-id>`, including shared token
172
- previews under the configured token directory. The client selects its section
173
- from the scenario's discovered `kind`, never from the ID's path prefix. Existing
174
- `?category=<id>` links remain accepted and normalize to `?scenario=`; an explicit
175
- `scenario` parameter takes precedence when both are present. `ads_show_tokens`
176
- keeps its `category` tool argument and returns the same canonical showcase link
177
- as `ads_show_scenario` for that ID.
169
+ Every registered preview uses `?scenario=<discovered-id>`, including the token and brand
170
+ views ADS builds from project definitions. The client selects its section
171
+ from the scenario's discovered `kind`, never from the ID's path prefix. `ads_show_scenario({id})`
172
+ opens those views like any other and returns their canonical showcase link.
178
173
 
179
174
  For browser-only work, run `ads showcase` inside the project. It starts the same
180
175
  runtime without stdio. `--port 4185` selects a port; otherwise the OS chooses an
181
176
  available one. For a stable address, add `"--port", "4191"` to the server's `args`
182
- in `.mcp.json` (or the corresponding client configuration). An occupied explicit
177
+ in `.mcp.json` (or the corresponding client configuration). `ads_status.showcaseUrl`
178
+ always reports the URL and port of the showcase the server is running. An occupied explicit
183
179
  port fails startup; ADS does not silently switch ports or terminate another live
184
180
  client. Reuse the connected server's showcase instead of launching another one.
185
181
  `ads mcp --no-showcase` disables the website for headless clients.
@@ -194,7 +190,7 @@ status/diagnostics when needed, and the App slot. The Icons tab (shown when the
194
190
  a glyph set) renders `ads://project/icons` natively: the glyph set, each glyph on its grid
195
191
  at every icon size with aliases and glyph errors, and the logos in `assets/logos/`. Its MCP client does discovery,
196
192
  tool calls, resource forwarding and notification handling. Token categories come
197
- from `ads_tokens.categories` (discovered token scenarios); every scenario section also
193
+ from `ads_tokens.categories` (the catalogue's groups); every scenario section also
198
194
  comes from the same `ads_scenarios` registry.
199
195
  It invokes the selected App tool and uses the official Apps bridge to render its
200
196
  HTML in an opaque sandbox. Project UI is never imported into the shell.
@@ -207,7 +203,7 @@ the selected preview again. The retained view is identified as stale. Themes and
207
203
  available space flow through host context. Other coding-agent hosts retain their own reload
208
204
  policy. A disconnected subscription marks retained output stale and tears down
209
205
  App watchers; refresh the page after restarting ADS. Compilation remains necessary for project TSX/Linaria, performed by the
210
- managed project compiler on demand and after relevant source changes.
206
+ managed Bun compiler on demand and after relevant source changes.
211
207
 
212
208
  Switching entries updates the scenario inside the existing App. A quiet monochrome
213
209
  indicator in the upper-right header reports compilation, checking, readiness or
@@ -219,10 +215,10 @@ selection cannot clear navigation's loading state.
219
215
  Token presentation comes from project-owned scenarios, fixtures and
220
216
  development-only review helpers, using the project's real foundation CSS and extracted
221
217
  styles. The App runtime contains no token sample templates or named token ordering.
222
- The generic definition inspector remains available without a scenario build.
218
+ `ads_tokens` inspects definitions without a scenario build.
223
219
 
224
220
  There are no required browser-page files in the project. Colocated scenarios and
225
- fixtures, optional development-only review helpers, and the project's compiler
221
+ fixtures, optional development-only review helpers, and the project's framework
226
222
  entry supply the presentation. Use the existing runtime URL when MCP is connected
227
223
  instead of starting a second compiler for that project.
228
224
 
@@ -234,8 +230,9 @@ render token samples without entering the deployed application's graph.
234
230
 
235
231
  ## Connect Codex or Claude
236
232
 
237
- Use the published package through `npx`. No ADS checkout or global installation
238
- is needed. Open your client in the project folder containing `ds.config.json`.
233
+ Use the published package through `npx` (or `bunx` in a Bun project). ADS runs on
234
+ Bun 1.4.1+, which must be installed; no ADS checkout or global installation is
235
+ needed. Open your client in the project folder containing `ds.config.json`.
239
236
 
240
237
  For **Codex**, add this to the project's `.codex/config.toml`:
241
238
 
@@ -299,18 +296,18 @@ scripts rebuild ADS source first.
299
296
  Checked against the current [base specification, 2026-07-28](https://modelcontextprotocol.io/specification/2026-07-28),
300
297
  the stable [Skills extension](https://github.com/modelcontextprotocol/ext-skills/blob/main/specification/stable/skills.mdx),
301
298
  and [Apps revision 2026-01-26](https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx).
302
- Skills and Apps are optional negotiated extensions. ADS keeps older protocol paths
303
- for clients that do not offer those capabilities.
299
+ Skills and Apps are optional negotiated extensions. A client gets the
300
+ capabilities its negotiated protocol version defines.
304
301
 
305
302
  | Content | Protocol surface |
306
303
  |---------|------------------|
307
304
  | Discovery, checks and preview selection | `tools/list`, `tools/call`; small structured results |
308
305
  | Source, guides, tokens, build reports, manifests and compiled bytes | `resources/list`, `resources/read`; URI-addressed text or binary content |
309
- | Packaged agent workflows and their complete file manifests | `skills/list`, `skills/get` on the Skills extension; ordinary resource/tool access on older clients |
306
+ | Packaged agent workflows and their complete file manifests | `skills/list`, `skills/get` on the Skills extension; ordinary resource/tool access on 2025-era connections |
310
307
  | Skill folders and direct children | `resources/directory/read`, gated by `directoryRead: true`; directory MIME type `inode/directory` |
311
308
  | Reusable user-selected workflow messages | `prompts/list`, `prompts/get` |
312
309
  | Interactive previews | Tool `_meta.ui.resourceUri` points to a `ui://` HTML App resource; rendering uses the Apps lifecycle and resource bridge |
313
- | Source/catalogue, build and resource changes | List-change and resource-update notifications; modern `subscriptions/listen`, legacy resource subscriptions |
310
+ | Source/catalogue, build and resource changes | List-change and resource-update notifications; `subscriptions/listen` for the 2026 protocol and resource subscriptions for the supported 2025 protocols |
314
311
 
315
312
  Directory reads cover the packaged skill trees, including references and starter
316
313
  assets. They are not an arbitrary project filesystem browser. File manifests
@@ -325,11 +322,6 @@ protocol. The diagnostic explorer defaults to compatible mode; select
325
322
 
326
323
  ## Tools and resources
327
324
 
328
- For suspected ADS defects after targeted investigation, use `ads_report_bug`;
329
- for missing capabilities, use `ads_request_feature`. They collect project-local
330
- untriaged reports with compact context/evidence and no upstream posting. See
331
- [bug reports and feature requests](#bug-reports-and-feature-requests).
332
-
333
325
  ### Inspect the design system
334
326
 
335
327
  Call `ads_status` to identify the connected project and preview build state.
@@ -338,10 +330,13 @@ For example, find Button with
338
330
  open one of its returned preview IDs with `ads_show_scenario`. Results link to
339
331
  the owning source and guides; `ads_scenarios` lists available previews.
340
332
 
341
- `ads_tokens` inspects definitions and values. `ads_show_tokens` renders the
342
- project's token scenarios. `ads_scenarios` also lists brand previews (`kind: "brand"`,
343
- scenarios in `brand/`), which open with `ads_show_scenario` and lead the showcase. For
344
- design tools, the CLI's `ads tokens --format dtcg` exports W3C Design Tokens JSON. If the client cannot render Apps, use the returned
333
+ `ads_tokens` inspects definitions and values. `ads_scenarios({kind: "tokens"})` lists the
334
+ token views ADS builds from the token sheets and `tokens/catalog.ads.json`, which open with
335
+ `ads_show_scenario`. `ads_scenarios` also lists the brand view (`kind: "brand"`, `brand/Assets`,
336
+ built from `assets/brand/`), which leads the showcase. For
337
+ design tools, `ads://project/tokens/dtcg` serves the same W3C Design Tokens JSON as the CLI's
338
+ `ads tokens --format dtcg` (`?theme=<name>&brand=<name>` select one context; `ads_tokens`
339
+ returns it as `dtcgUri`). If the client cannot render Apps, use the returned
345
340
  showcase URL. Build reports identify current, stale and failed output; browser
346
341
  review and project checks still verify behavior.
347
342
 
@@ -353,22 +348,17 @@ The server supplies agent guidance through its instructions, tool descriptions,
353
348
  | `ads_status` | Project paths, watcher/build states, preview revisions and diagnostics, skills |
354
349
  | `ads_catalog` | Bounded search for public UI, controllers and hooks, with source/guide URIs |
355
350
  | `ads_tokens` | Bounded token-definition and theme inspection |
356
- | `ads_check` | Current core architectural diagnostics; configured project build tests remain separate |
357
- | `ads_skills` | Workflow names/descriptions without loading instructions |
358
- | `ads_read_skill` | Explicit text instruction/support-file reads in bounded chunks |
359
- | `ads_show_tokens` | Render a discovered token scenario; legacy compilers retain the definition inspector |
351
+ | `ads_skills` | 2025-era connections only: workflow names/descriptions without loading instructions |
352
+ | `ads_read_skill` | 2025-era connections only: explicit text instruction/support-file reads in bounded chunks |
360
353
  | `ads_scenarios` | Bounded scenario discovery, including folder-derived groups searchable with `query` |
361
354
  | `ads_show_scenario` | Render an exact discovered scenario with its own fixtures |
362
355
  | `ads_behaviors` | Paged owner discovery; select a unit and detail section |
363
- | `ads_verify` | Execute an owner's registered checks and record revision-bound evidence |
364
- | `ads_validate` | Run the complete project audit, or affected checks since a successful full baseline |
356
+ | `ads_validate` | The project gate: `ads check`, project scripts, and every behavior test and render audit its scope (`all`, or `changed` since the last successful full run) reaches |
365
357
  | `ads_results` | Page saved execution outcomes, diagnostics, logs and captures without rerunning |
366
358
  | `ads_investigate` | Read one check's summary, then paged requests/errors/artifacts |
367
359
  | `ads_capture` | On-demand PNG of a discovered scenario or named element; replace current and clear candidate |
368
360
  | `ads_capture_clear` | Remove generated captures or discard only the candidate |
369
- | `ads_show_<id>` | Optional explicitly configured grouped App |
370
361
  | `ads_units` | Discover edit owners and the files belonging to one unit |
371
- | `ads_prepare_token_samples` | Reconcile real-token fixture samples into a draft, using explicit project bindings |
372
362
  | `ads_read_file` | Read bounded source ranges, with owning unit and full-file digest |
373
363
 
374
364
  Scenario results include `group` only when folder structure supplies one. It is
@@ -385,14 +375,14 @@ public exports from `components/`, `patterns/` and `controllers/`; it does not e
385
375
  guess component props. Read the exported API and owning guide. An export name
386
376
  alone does not prove that a preview renders that particular element.
387
377
 
388
- `ads://project/status`, `/build`, `/tokens`, `/icons`, `/catalog`, `/scenarios` and
378
+ `ads://project/status`, `/build`, `/tokens`, `/tokens/dtcg`, `/icons`, `/catalog`, `/scenarios` and
389
379
  `/checks` carry project JSON detail. Behavior discovery, execution outcomes and investigation
390
380
  details are paged; their resource reads use the same bounds as their tools. Allowed project documentation/source and skill files are separate
391
381
  resources. No arbitrary filesystem reader is exposed. Prefer bounded tools for
392
382
  large catalogues; explicit resource reads can enter model context and a client
393
383
  may truncate large payloads.
394
384
 
395
- `ads_check` and `ads://project/checks` return errors under `diagnostics` (they fail the
385
+ `ads://project/checks` returns errors under `diagnostics` (they fail the
396
386
  check) and review items under `advisories` with `severity: "review"` (they never block),
397
387
  then informational limits with `severity: "info"`; `summary` counts errors and review
398
388
  items. Every finding id has one class (error, review or info), and no configuration changes
@@ -422,7 +412,7 @@ ownership, valid initial values, browser checks and examples.
422
412
 
423
413
  ### Screenshots and candidate comparison
424
414
 
425
- `ads_capture({scenario:"<discovered ID>",target?,theme?,brand?,viewport?})` renders current
415
+ `ads_capture({scenario:"<discovered ID>",target?,theme?,brand?,viewport?,guides?})` renders current
426
416
  source in the real sandboxed App using project-local Playwright/browser. `theme` is a declared
427
417
  theme name (default: the first). Previews receive the theme in host context: `theme` carries
428
418
  the MCP Apps light/dark scheme and `adsTheme` the project theme name; hosts that send only
@@ -434,6 +424,14 @@ viewport; optional `captureTargets` metadata names an element within the scenari
434
424
  Token/component/pattern/composition scenarios share this path. The tool adds no
435
425
  project-specific renderer or fixture assumptions.
436
426
 
427
+ Optional `guides` selects any of `bounds`, `tracks` (columns/rows), `gaps`
428
+ (including gutters), `padding`, `margins`, and `mini` (mini-unit squares), for
429
+ example `guides:["tracks","padding","mini"]`. The existing showcase overlay
430
+ draws those layers on all visible elements; omitted or `[]` produces a clean
431
+ image. Components, patterns, compositions and `tokens/Layout` support guides.
432
+ The selection is stored in `settings.guides`, applies to both comparison images,
433
+ and does not create extra capture slots. Named targets keep their existing crop.
434
+
437
435
  `ads_capture` with a draft `id` and exact `revision` captures current and candidate
438
436
  under matching settings without acceptance checks; acceptance and its dry run take
439
437
  no screenshots. A newly added scenario has a candidate with an explicit absent
@@ -461,8 +459,8 @@ and runner schema. `ads_behaviors({ "unit": "components/MessageScroller" })`
461
459
  pages an owner's checks by default; select `section: "subjects"`, `"guarantees"`,
462
460
  `"demonstrations"` or `"profiles"` for other details. Without a unit it lists owner
463
461
  summaries. Follow `nextCursor` with identical filters. Changed registrations or
464
- evidence revisions invalidate discovery cursors. `ads_verify({ "unit": "components/MessageScroller", "checks": ["prepend-anchor"] })`
465
- runs those registered cases. The names here are examples, never built-in cases.
462
+ evidence revisions invalidate discovery cursors. `ads verify . --unit components/MessageScroller --check prepend-anchor`
463
+ runs those registered cases from the CLI; over MCP the gates run them. The names here are examples, never built-in cases.
466
464
 
467
465
  `covers` describes rendered UI; optional `exercises` describes public behavioral
468
466
  APIs used through reachable scenario code. Neither metadata nor README prose is
@@ -473,9 +471,9 @@ Missing/skipped cases, unavailable runners and changed inputs cannot pass.
473
471
  Results and subscribed resource notifications are available through
474
472
  `ads://project/behaviors`; explicitly re-read evidence when notifications are absent.
475
473
 
476
- During a run, `ads_status.behaviors.progress` exposes completed/active/pending
477
- checks, timings and the profile's whole-run timeout. Candidate mutation checks use
478
- `ads_status.mutations.progress`. Requested MCP progress notifications also report
474
+ During an `ads_validate` run, `ads_status.validation.progress` (stage `behavior`)
475
+ exposes completed/active/pending checks, timings and the profile's whole-run
476
+ timeout. Draft acceptance uses `ads_status.mutations.progress`. Requested MCP progress notifications also report
479
477
  runner activity. Profiles accept an explicit `timeoutMs` from 100 to 900000 ms
480
478
  (up to fifteen minutes), with a 60000 ms default. This covers the complete
481
479
  selected suite; each runner's individual test/hook timeouts are separate.
@@ -540,9 +538,9 @@ the selected candidate's sources. StrictMode profiles need a project React
540
538
  development harness. Profiles describe the execution environment, not a proof
541
539
  that every possible interaction or lifecycle has been tested.
542
540
 
543
- When `acceptance.behaviorChecks` is true, guarded mutations also run affected registered behavior checks, including contracts
544
- that depend on changed shared controllers. Failures reject the candidate before
545
- writing real source. Projects without contracts retain their existing checks.
541
+ Unless `acceptance.behavior` is false, guarded mutations also run the draft owners'
542
+ own registered behavior checks; `ads_validate` runs the contracts that depend on a
543
+ changed shared controller. Failures reject the candidate before writing real source. Projects without contracts retain their existing checks.
546
544
 
547
545
  ## Guarded editing
548
546
 
@@ -565,14 +563,17 @@ the flat/directory colocation convention. A component or pattern unit includes
565
563
  its implementation and colocated scenarios, fixtures, tests and guides. A
566
564
  composition owns its scenario and mock inputs. Imported components and patterns
567
565
  remain separate owners. `tokens` is one foundation unit covering token definitions,
568
- themes and token scenarios/fixtures, whose coverage spans shared source files.
566
+ themes and `catalog.ads.json`, whose coverage spans shared source files.
569
567
  Preview IDs remain separate: several token previews belong to `tokens`.
570
568
  Design tokens and token previews belong to the shared Data foundation. Component
571
569
  contracts do not register token namespaces or independent value sheets. Read
572
570
  `ads://guides/tokens` for state mappings, color roles, the grid, contrast/rhythm/overlap
573
571
  reviews and the token export; `ads://guides/branding` for brand artwork, web icons,
574
- committed targets and glyph sets; `ads://guides/accessibility` for the WCAG 2.2 AA
575
- guards (`token-contrast`, `component-contrast`, `a11y-*`) and the practice no tool can check.
572
+ committed targets, glyph sets and `@ads-lockup`/`lockup-construction` fixes;
573
+ `ads://guides/accessibility` for the WCAG 2.2 AA
574
+ guards (`token-contrast`, `component-contrast`, `a11y-*`) and the practice no tool can check;
575
+ `ads://guides/layout` for `@ads-layout` constructions, regions, panels and the
576
+ `grid-construction`/`grid-definition` fixes.
576
577
 
577
578
  No owner edits a shared entry. The styles entry is generated from the canonical
578
579
  token sheets in foundation order: adding `tokens/fonts.css` adds its import, and
@@ -601,7 +602,7 @@ The same discovery covers the rest of the project ADS:
601
602
 
602
603
  | Unit | Scope |
603
604
  |------|-------|
604
- | `review/<Owner>` | Development-only frames, token renderers, demo controls, local checks and their review exports file |
605
+ | `review/<Owner>` | Development-only frames, demo controls, local checks and their review exports file |
605
606
  | `foundation` | Shared ADS entry styles and root helpers |
606
607
  | `documentation` | ADS/project guides, shared credits and license notices, and `licenses/` text collections |
607
608
  | `assets/brand`, `assets/fonts`, other `assets/*` groups | Original SVG, image, font and other asset files |
@@ -660,21 +661,16 @@ images, fonts and other assets go through `changes` with `encoding:"base64"`; bi
660
661
  Review the draft with `ads_show_draft`, then check it with
661
662
  `ads_accept({id, revision, dryRun:true})`. This runs the normal candidate gates,
662
663
  including affected registered behavior checks and the acceptance accessibility audit,
663
- in the draft's workspace through the project's compiler; it writes no live source and
664
+ in the draft's workspace through ADS's managed compiler; it writes no live source and
664
665
  does not persist passing evidence for live inputs. Read the summary, then use its
665
666
  `resultId` with `ads_results` for failing `outcomes`, `diagnostics` or named pipeline
666
667
  `checks`; update the draft and repeat. Accept with `ads_accept({id, revision})`; the
667
668
  gates run again, reusing the dry run's results for the same revision.
668
- `ads_verify({unit,checks?})` checks current source and accepts no draft argument.
669
669
 
670
- `ads_prepare_token_samples({id, bindings?, draft?})` reconciles the selected token
671
- scenario's consumed literal sample array. Existing bindings and other fixture fields
672
- are preserved; undeclared samples are removed. New bindings explicitly name a real
673
- `token`, CSS `property` and `probe`. Missing mappings are reported as `unresolved`;
674
- ADS never guesses a property or renderer from the token name. The result is written
675
- into a draft (the given one, or a new one for the scenario's owner) for review and
676
- acceptance. This preparation does not establish rendered effects or waive token
677
- coverage.
670
+ Token sample bindings are ordinary data in `tokens/catalog.ads.json`: change them in a
671
+ `tokens` draft with explicit `token`, CSS `property` and `probe` entries. ADS never guesses
672
+ a property from the token name, and reports entries for undefined tokens
673
+ (`foundation-catalog`).
678
674
 
679
675
  For a coupled rename or upgrade, create one draft for all its owners (2–64 owners, at
680
676
  most 256 distinct files) and accept it once. Core checks, configured project
@@ -699,23 +695,25 @@ checked against a complete candidate; the barrel is regenerated from the exports
699
695
  file. New units use a new `components/`, `patterns/`, `controllers/`, `review/` or
700
696
  `composition/` owner ID following the same colocation convention. A draft cannot
701
697
  include a peer unit or capture existing peers beneath a new directory owner, and a
702
- failed acceptance requires correcting its owner or policy, never a direct-write
698
+ failed acceptance requires correcting its owner or configuration, never a direct-write
703
699
  bypass.
704
700
 
705
701
  Acceptance reconstructs complete candidate files and validates a temporary project
706
- copy with mandatory native ADS guards. The project's acceptance policy selects
707
- additional scripts and registered tests:
702
+ copy with `ads check`. The project's `acceptance` settings select its scripts and
703
+ whether the owners' behavior tests and render audit run; `ads validate` adds
704
+ `validation.scripts`:
708
705
 
709
706
  ```json
710
707
  {
711
- "acceptance": { "checks": ["typecheck"], "behaviorChecks": true },
712
- "validation": { "checks": ["typecheck", "test", "build:app"], "behaviorChecks": true },
708
+ "acceptance": { "scripts": ["typecheck"], "behavior": true, "audit": true },
709
+ "validation": { "scripts": ["test", "build:app"], "inputs": [] },
713
710
  "mcp": { "mutationCheckTimeoutMs": 120000 }
714
711
  }
715
712
  ```
716
713
 
717
- Both script lists default to empty; script names are never inferred. Acceptance
718
- behavior checks default to false; validation behavior checks default to true.
714
+ Both script lists default to empty; script names are never inferred, and each
715
+ script is listed once. `acceptance.behavior` and `acceptance.audit` default to true.
716
+ An unknown field is a configuration error naming it.
719
717
  Managed previews are built for required behavior checks or requested captures,
720
718
  sharing one production graph. Core-only acceptance does not build the whole
721
719
  preview graph. Keep standalone preview builds in normal project builds; avoid
@@ -767,15 +765,14 @@ runtime Linaria provenance; `exercises` alone grants no class permission. The
767
765
  [local scenario reference](../skills/ads-designer/references/scenarios.md) describe
768
766
  the bounded checks and diagnostics.
769
767
  `ads_show_scenario({id})` selects an independently mountable entry with its own
770
- fixtures. `ads_show_tokens({category})` selects a discovered token scenario;
771
- omitting category selects the first token entry. The tool contains no project
768
+ fixtures, or a token or brand view. The tool contains no project
772
769
  token templates or copied values.
773
770
 
774
771
  Both tools default to `waitFor: "verified"`. The showcase requests
775
772
  `waitFor: "compiled"` to browse live feedback or the last verified graph while
776
773
  checks run. That mode can return `build.current: false`; it is visual feedback,
777
774
  not successful verification evidence. It does not alter capture, behavior or
778
- guarded-edit acceptance. Legacy HTML compilers retain their existing wait path.
775
+ guarded-edit acceptance.
779
776
  Registered browser verification URLs and `openPreviewScenario` explicitly select
780
777
  `waitFor=verified`; captures also retain verified readiness.
781
778
 
@@ -800,7 +797,7 @@ the tool result. `resources/read` supplies these registered resources:
800
797
  | URI | Content and owner |
801
798
  |-----|-------------------|
802
799
  | `ui://ads/preview` | Tool-owned App bootstrap, official App SDK and resource loader |
803
- | `ads://preview/manifest` | Project compiler's versioned scenario/dependency graph |
800
+ | `ads://preview/manifest` | ADS preview compiler's versioned scenario/dependency graph |
804
801
  | `ads://preview/live` | Current-source compiled feedback while checks are pending; explicitly unverified |
805
802
  | `ads://assets/<hash>.js` | Compiled shared runtime or scenario module |
806
803
  | `ads://assets/<hash>.css` | Extracted foundation or scenario styles |
@@ -820,11 +817,11 @@ CSS/fonts, then invokes the selected module's `mount(container)`. It caches
820
817
  unchanged resources and shared runtime modules within that App. Dynamic imports
821
818
  load their own dependency closure when invoked. Bun's self-contained worker
822
819
  output remains a separate asset; workers must be stopped by their owner.
823
- The preview adapter uses `worker.format: "iife"`: Chrome rejects module Blob
824
- worker fetches in opaque origins, so the resource compiler adapts those
820
+ Preview workers are compiled as self-contained classic scripts: Chrome rejects
821
+ module Blob worker fetches in opaque origins, so the resource compiler adapts those
825
822
  self-contained preview constructors to classic workers. Production worker mode
826
- is untouched. Worker output with unresolved module imports requires a different
827
- compiler adapter and is rejected rather than falsely reported ready.
823
+ is untouched. The managed compiler rejects worker output with unresolved module
824
+ imports; previews require self-contained worker output.
828
825
 
829
826
  The built-in showcase keeps this App alive across selections. It unmounts the
830
827
  previous scenario before mounting the next; scenario state resets while runtime
@@ -832,8 +829,8 @@ and unchanged styles/fonts are reused. External hosts may create a fresh App for
832
829
  each tool call. Each fresh App loads independently through the same contract.
833
830
  There is no special local direct-artifact rendering path.
834
831
 
835
- `ads_check` returns blocking `diagnostics` separately from bounded nonblocking
836
- `advisories`, with `advisoryCount`. The checks resource contains the full result.
832
+ `ads://project/checks` returns blocking `diagnostics` separately from nonblocking
833
+ `advisories`.
837
834
  For example, `pointer-capture-review` reports capture without a locally visible
838
835
  capture-loss handler. Cleanup can be delegated; inspect it and test cancellation,
839
836
  capture loss and teardown. A local handler suppresses that advisory but does not
@@ -858,8 +855,7 @@ for verification and diagnosis.
858
855
  For inline documents without an explicit App base URL, ADS supplies
859
856
  `<base href="about:srcdoc">` and permits the local `about:` base scheme in CSP.
860
857
  Bare and named fragment links retain native in-document navigation and state.
861
- Explicit App bases remain subject to declared CSP origins. The legacy nested
862
- widget uses the same document preparation. External hosts own this behavior in
858
+ Explicit App bases remain subject to declared CSP origins. External hosts own this behavior in
863
859
  their loaders; adding scenario click handlers would conceal a host defect.
864
860
 
865
861
  Hosts need Apps support, server resource forwarding, native ESM/import maps and
@@ -882,16 +878,15 @@ area. Other Apps hosts retain the in-App status fallback.
882
878
  ### ADS-owned Bun compiler
883
879
 
884
880
  Bun 1.4.1+ compiles ADS browser bundles and MCP previews independently of the
885
- application's bundler. Configure `framework` and `mcp.previewManifest`; ADS
886
- supplies its compiler when no explicit project watcher is configured:
881
+ application's bundler. Configure `framework`; ADS supplies its compiler and
882
+ publishes the graph to `.ds/preview/`:
887
883
 
888
884
  ```json
889
- {"framework":"react","mcp":{"previewManifest":".ds/preview/manifest.json"}}
885
+ {"framework":"react"}
890
886
  ```
891
887
 
892
- Use `preact` for native Preact. Remove the old project `mcp.previewWatch` command
893
- to adopt this compiler. The project retains its framework mount in
894
- `showcase/mcp/main.tsx` under the ADS root. It exports
888
+ Use `preact` for native Preact. The project retains its framework mount in
889
+ `showcase/mcp/main.ads.mount.tsx` under the ADS root. It exports
895
890
  `mountScenario(Scenario,container)` and returns cleanup. Bun selects the ADS JSX
896
891
  runtime, resolves the public alias and extracts Linaria through the shared tag
897
892
  resolver. Project application build settings stay under project control.
@@ -900,8 +895,8 @@ Run `ads compile .` for production previews or `ads compile . --watch` for a
900
895
  continuous compiler. Project setup can call `compilePreviews` from
901
896
  `@reqvire-org/ads/scenarios/compile`. Projects can integrate `ads check`,
902
897
  `ads verify` and `ads validate` into their own build/test/CI scripts. ADS acceptance
903
- always runs native gates; `acceptance.checks` and `acceptance.behaviorChecks`
904
- choose additional scripts and affected registered tests. Oxlint is not an ADS gate dependency.
898
+ always runs native gates; `acceptance.scripts`, `acceptance.behavior` and
899
+ `acceptance.audit` choose additional scripts and whether the owners' tests and audit run. Oxlint is not an ADS gate dependency.
905
900
 
906
901
  MCP warms the prioritized view first, then compiles the remaining graph in
907
902
  one background build, without delaying service startup. One compiler job runs
@@ -930,7 +925,7 @@ reuses successful validation/output only when inputs, compiler/tool code,
930
925
  lockfile, recorded dependencies and content digests match. A source edit
931
926
  revalidates the project and incrementally updates the watched module graph. Both
932
927
  must succeed against unchanged source before verified atomic publication; a failed or
933
- superseded build cannot become current. Files outside Rollup's graph still trigger
928
+ superseded build cannot become current. Files outside Bun's module graph still trigger
934
929
  validation and a reconciled build. Preview refresh retains the selected view's
935
930
  state when its complete static module/style/asset closure is unchanged, while
936
931
  rerunning its token/paint audits against the new manifest. Actual selected-view
@@ -944,7 +939,9 @@ selected view paints, using its existing integrity-checked byte cache. This does
944
939
  not import modules, attach styles or mount hidden examples; dynamic imports stay
945
940
  lazy. Preparation is bounded and never establishes passing evidence by itself.
946
941
 
947
- The graph lives beside the configured manifest, under `assets/`. Tiny
942
+ Graph assets live in the manifest's sibling `assets/` directory. Standalone
943
+ compilation writes `.ds/preview/manifest.json`; managed builders use private
944
+ directories under `.ds/preview/sessions/`. Tiny
948
945
  `.ds/scenarios/<id>/index.html` descriptors retain the reporter/registry contract;
949
946
  they are not standalone runnable previews. Six previous graph revisions retain
950
947
  old assets for in-flight reads; older references expire with a refresh error.
@@ -953,41 +950,15 @@ built-in host then recreates the App automatically; external hosts receive an
953
950
  explicit reopen diagnostic. Manifest size is capped at 2 MiB and individual resources
954
951
  at 16 MiB; those development transport limits do not alter production bundles.
955
952
 
956
- ### Existing HTML compilers
957
-
958
- Missing/null `mcp.previewManifest` retains the older per-scenario self-contained
959
- HTML contract, `ui://ads/scenario`, and generic `ui://ads/tokens` definition
960
- inspector. `inlineScenarioHtml()` and the scheduler's `build(entry,...)` adapter
961
- remain available during migration. The older nested widget requires its declared
962
- `about:` frame CSP; it does not share runtime modules across scenarios.
963
- Do not set `previewManifest` until the compiler emits the graph and mount adapter.
964
-
965
- Explicit `mcp.apps` entries still accept unique lowercase/hyphen IDs, title, kind
966
- (`components`, `patterns`, `showcase`) and a project-relative self-contained HTML
967
- file. They remain capped at 2 MiB and do not replace scenario coverage.
968
- The generic token definition inspector remains available as a resource for source
969
- and alias diagnostics; `ads_tokens` works even when project previews cannot build.
970
-
971
953
  ### One client command, managed preview builds
972
954
 
973
- With a declared framework and preview manifest, `ads mcp` starts ADS's Bun
955
+ With a declared framework, `ads mcp` starts ADS's Bun
974
956
  compiler and warms the prioritized view followed by the remaining graph in
975
957
  the background. Jobs run sequentially; foreground selections have priority. The client configuration above stays the same; no second terminal
976
- or separately managed server is needed. An explicit `mcp.previewWatch` is reserved
977
- for a custom compiler integration; remove former project Vite build commands to
978
- adopt native compilation. A custom compiler calls
979
- `runScenarioCompiler(root, root => ({ watched, compilerFiles, validate, buildGraph }))`:
980
- the function of the root lets the same process compile every draft preview too, each
981
- with its own builder, after the project's selected view. Options fixed to one root build
982
- only the project, and each draft preview then reports that it cannot be compiled.
983
- For direct editing with external compilation, set `mcp.previewWatch: false`.
984
- An agent or human edits code and runs `ads compile .` or an external watch/builder
985
- that publishes the ADS resource graph and build evidence. MCP serves that output
986
- without starting a compiler. Existing views can remain visible while building;
987
- source changes make their evidence stale until a verified update is published.
988
- Missing or null uses the native compiler when the framework and preview manifest
989
- are configured. This compiler choice does not force direct editors to use MCP
990
- mutation tools.
958
+ or separately managed server is needed. The same compiler also builds every draft
959
+ preview after the project's selected view. Existing views can remain visible while
960
+ building; source changes make their evidence stale until a verified update is
961
+ published.
991
962
  Standard output trees (`dist`, `build`, `target`, `out`, `.next`, `.nuxt`,
992
963
  `.svelte-kit`, `.turbo`) are excluded from preview watches and freshness inputs
993
964
  outside the configured source roots. Nested outputs are pruned before OS watches
@@ -1013,28 +984,21 @@ without JavaScript eval; external MCP hosts own their own CSP capabilities.
1013
984
  Keep renderer/transport adapters and their dependency notices explicit. A working
1014
985
  website or build alone does not establish that a binary renderer works in an App.
1015
986
 
1016
- The configured command runs in the project root. `command` names an executable;
1017
- `args` is a literal argument array, with no shell parsing. Local
1018
- `node_modules/.bin` and the running interpreter's directory are added to its PATH.
1019
- Use `runtime` with a project script to inherit Node or Bun; Windows `.cmd`
1020
- wrappers require their own launcher and are not shell-executed by ADS.
1021
-
1022
987
  Both build output streams go to stderr, keeping stdout exclusively for MCP.
1023
988
  Opening an App waits up to 30 seconds for validated current output. A matching
1024
989
  success cache is republished in the new watcher session without recompilation;
1025
990
  merely finding an older HTML file is insufficient. Managed resource graphs and
1026
- HTML descriptors use private session output; standalone build commands retain
1027
- the configured output. One cannot overwrite the other's success record. The
991
+ HTML descriptors use private session output; standalone builds publish under
992
+ `.ds/preview/`. One cannot overwrite the other's success record. The
1028
993
  compiler caches at most six verified graph snapshots under `.ds/preview-graphs/`
1029
994
  and cleans its session output on ordinary shutdown. These are generated files;
1030
- do not track or use them as source. Legacy self-contained HTML builders retain
1031
- their existing publication contract. A timeout leaves the watcher running: inspect the
995
+ do not track or use them as source. A timeout leaves the watcher running: inspect the
1032
996
  logs and invoke the preview again. `ads_status` distinguishes watcher process
1033
997
  state from reported build state. Token inspection and other ordinary tools
1034
998
  remain available after a build failure. Invalid scenario metadata at startup and
1035
999
  later source/validation failures remain reported while the compiler watches for
1036
1000
  repairs. A successful edit recovers without reconnecting MCP. If the child process
1037
- exits, fix the builder and invoke the preview again: concurrent requests share one
1001
+ exits, fix the reported failure and invoke the preview again: concurrent requests share one
1038
1002
  fresh child and session. ADS does not run an unattended crash/restart loop.
1039
1003
 
1040
1004
  Changes to loaded compiler code or dependencies produce `ADS_PREVIEW_RESTART`;
@@ -1049,13 +1013,8 @@ receives SIGINT/SIGTERM. Active browser subscriptions do not retain the runtime.
1049
1013
  A small independent ownership guard watches a pipe from MCP; owner death closes
1050
1014
  that pipe even after SIGKILL. The guard terminates the owned compiler process
1051
1015
  group, escalates for stubborn descendants, then exits. It is disarmed on ordinary
1052
- shutdown; `previewWatch.guardPid` identifies it while running. This requires no
1053
- second user command and applies to custom builders too.
1054
- The project must keep its watcher in the foreground,
1055
- rather than launching detached background processes. The configuration is
1056
- trusted project setup; MCP tools accept no executable or command arguments.
1057
- For resource previews, missing or null `previewWatch` selects the native compiler.
1058
- Custom standalone HTML integrations must declare their own publication contract.
1016
+ shutdown; `ads_status.compiler.guardPid` identifies it while running. This requires
1017
+ no second user command. MCP tools accept no executable or command arguments.
1059
1018
 
1060
1019
  ### When a component changes
1061
1020
 
@@ -1068,37 +1027,29 @@ The MCP server detects the new artifact and sends resource-change notifications.
1068
1027
  The built-in host forwards the current selection after a successful build;
1069
1028
  the App reads the new manifest and remounts the scenario. Invoking the preview
1070
1029
  tool again also works in compatible external hosts. The App checks freshness
1071
- every two seconds when notifications are unavailable. Legacy HTML adapters
1072
- retain their own reload behavior.
1030
+ every two seconds when notifications are unavailable.
1073
1031
  No ADS package release or skill reinstall is needed for project component changes.
1074
1032
 
1075
1033
  ### When code or styles break
1076
1034
 
1077
- A preview publisher reports `building`, `ready` or `error` to
1078
- `.ds/build-status.json` for standalone builds. A managed compiler receives its own
1079
- `.ds/build-status-<session>.json` through `ADS_MCP_BUILD_STATUS`; publishers must
1080
- honor that path and `ADS_MCP_BUILD_SESSION`. Independent MCP clients therefore do
1081
- not clobber each other's reports. `ads_status.build` and the `ads://project/build` resource
1082
- expose those states, each preview's build revision, last successful revision,
1035
+ Use `ads_status.build` or the `ads://project/build` resource to inspect
1036
+ `building`, `ready` or `error` states, each preview's build revision, last successful revision,
1083
1037
  availability, freshness and diagnostics. Diagnostic positions are one-based.
1084
1038
  Tool summaries include the first three diagnostics per preview, capped at 1,000
1085
1039
  characters each, with counts and truncation flags; the build resource retains
1086
1040
  the complete bounded report.
1087
- A watcher session separates revisions across restarts, and an artifact digest
1088
- checks that the served output matches the reported successful build. Each build
1089
- captures a `sourceRevision` before compilation. Status reads compare that content
1090
- digest with current project inputs; unchanged output cannot remain current after
1091
- source changes. Such previews retain their last successful revision and output,
1041
+ After source changes, unchanged output cannot remain current.
1042
+ Such previews retain their last successful revision and output,
1092
1043
  but report `current: false`, `stale: true` and `ADS_PREVIEW_STALE_SOURCE` while
1093
1044
  awaiting the current build. Changes during compilation also invalidate success.
1094
1045
 
1095
1046
  Accepted drafts explicitly invalidate the managed compiler after publication. Filesystem events provide fast updates; one-second
1096
1047
  input reconciliation recovers missed atomic replacements without touching source
1097
- or restarting MCP. Keep the project compiler's ADS dependency and the MCP package
1098
- updated together: older reports without source evidence cannot establish freshness.
1048
+ or restarting MCP. Keep the ADS package used by managed compilation and MCP
1049
+ consistent; reports without source evidence cannot establish freshness.
1099
1050
 
1100
1051
  On each status transition MCP sends `notifications/resources/updated` to build
1101
- resource subscribers. Legacy connections use `resources/subscribe`; modern
1052
+ resource subscribers. Connections using the supported 2025 protocols use `resources/subscribe`; 2026
1102
1053
  connections use the SDK's `subscriptions/listen`. The notification identifies
1103
1054
  the resource to read; it does not carry the diagnostics. This follows the
1104
1055
  [resource subscription contract](https://modelcontextprotocol.io/specification/2025-11-25/server/resources#subscriptions).
@@ -1112,8 +1063,8 @@ failed build even when older output remains on disk. The reusable bootstrap and
1112
1063
  retained immutable assets stay readable so an existing App can report freshness;
1113
1064
  readability alone does not establish a current preview. After a successful rebuild the same
1114
1065
  tool works again without restarting MCP. If the watcher itself exits, its
1115
- failure is reported; after fixing the command, invoke the preview again to start
1116
- a fresh builder. Partial or empty scenario discovery also exposes project-level
1066
+ failure is reported; after fixing the source, configuration or dependency failure,
1067
+ invoke the preview again to start a fresh managed compiler. Partial or empty scenario discovery also exposes project-level
1117
1068
  diagnostics through `ads://project/build`.
1118
1069
 
1119
1070
  Already-mounted Apps show rebuilding, failure or a newer available revision
@@ -1123,66 +1074,15 @@ graph without replacing their iframe; failed builds leave the earlier view marke
1123
1074
  stale. The built-in host recreates the App after its retained-module limit. Other hosts can also reinvoke the tool or reload the App. Token source
1124
1075
  inspection is independent of component build failures.
1125
1076
 
1126
- Builders without status reporting remain usable, with freshness explicitly
1127
- `unreported` (`current: false`, `stale: null`). A running process or an existing
1128
- HTML file is not proof of current source. `ads_check` separately reports source/CSS
1077
+ When build status is unavailable, freshness is `unreported`
1078
+ (`current: false`, `stale: null`). This does not establish a usable current
1079
+ preview; request the preview to start ADS's managed compiler and inspect its
1080
+ diagnostics. A running process or an existing HTML file is not proof of current
1081
+ source. `ads://project/checks` separately reports source/CSS
1129
1082
  syntax and architecture violations. Typechecks, behavior tests and browser
1130
1083
  review still cover runtime exceptions, incorrect layout and motion. MCP does
1131
1084
  not repair source automatically.
1132
1085
 
1133
- ### Custom builder integration (advanced)
1134
-
1135
- The standard graph adapter already uses this reporter through
1136
- `runScenarioCompiler`; use [managed preview builds](#one-client-command-managed-preview-builds)
1137
- for that path. Custom builders can integrate the framework-independent reporter
1138
- with their own publication step. A selective HTML builder, for example, uses one
1139
- shared reporter for the compiler process:
1140
-
1141
- ```js
1142
- import { createBuildReporter } from "@reqvire-org/ads/mcp/build";
1143
- import { loadConfig } from "@reqvire-org/ads";
1144
-
1145
- import { inspectScenarios } from "@reqvire-org/ads/scenarios";
1146
- // loadConfig is also exported by @reqvire-org/ads.
1147
- const { scenarios } = inspectScenarios(loadConfig(process.cwd()));
1148
- const reports = createBuildReporter(process.cwd(), {
1149
- apps: scenarios.map(entry => ({ id: entry.id, file: entry.artifact })),
1150
- });
1151
-
1152
- async function rebuild(entry) {
1153
- const revision = reports.begin(entry.id);
1154
- try {
1155
- await buildProjectPreview(entry); // project-owned compilation, extraction and checks
1156
- reports.ready(entry.id, revision); // only after writing complete output
1157
- } catch (error) {
1158
- reports.error(entry.id, revision, error);
1159
- }
1160
- }
1161
- ```
1162
-
1163
- For selective builds, MCP also supplies `ADS_MCP_REQUEST_FILE`: an atomically
1164
- updated JSON file `{session, active, files: [project-relative artifact paths]}`.
1165
- `active` is the most recently selected artifact path; prioritize it when draining
1166
- affected builds. The shared scheduler handles this. Custom builders may ignore
1167
- that optional field. Watch/read
1168
- it, validate the session against `ADS_MCP_BUILD_SESSION`, and match paths against
1169
- the discovered registry before building. Newly requested paths need a build;
1170
- source changes invalidate and rebuild requested entries. A builder that compiles
1171
- all entries may ignore this request file. It is removed when MCP stops.
1172
-
1173
- ADS provides `ADS_MCP_BUILD_SESSION` and `ADS_MCP_BUILD_STATUS` to a managed child;
1174
- the reporter uses them automatically. Standalone builders use the same project
1175
- file and a new session. Updates are atomic and bounded to 256 KiB, with at most
1176
- 20 diagnostics per preview. The builder must report failures from its checks as
1177
- well as its compiler. Call `begin` when source is invalidated, and capture a
1178
- separate revision for each actual build; a completion from an older revision
1179
- cannot clear a newer invalidation or error.
1180
-
1181
- This checkout's [native compiler entry](../scripts/build-mcp-previews.mjs) reports initial and
1182
- incremental builds, compiler/output errors and immediate invalidation. Another
1183
- project wires the reporter into its existing build hooks; ADS does not infer
1184
- success from free-form console output or install another compiler.
1185
-
1186
1086
  Invoke an App's entry **tool** to ask a capable host to render it. Reading its
1187
1087
  HTML resource is a data read, not evidence of a rendered view. When Apps are
1188
1088
  unavailable, tool results provide a bounded descriptor and the runtime's
@@ -1215,7 +1115,7 @@ The npm distribution includes the five ADS skills, references, empty designer
1215
1115
  scaffold, credits and upstream notices. Each `skill://ads/<name>/SKILL.md` has
1216
1116
  a complete manifest of file URIs, UTF-8 byte lengths and SHA-256 digests.
1217
1117
  Supporting files are read lazily via `resources/read`; directory browsing is
1218
- available on the newer protocol. The packaged scaffold's `.gitignore` remains
1118
+ available on `2026-07-28`. The packaged scaffold's `.gitignore` remains
1219
1119
  addressable at its original resource URI.
1220
1120
 
1221
1121
  `ads-import` assesses the destination and adapts selected source to its contracts.
@@ -1229,9 +1129,9 @@ project package-manager step before validating dependent changes.
1229
1129
 
1230
1130
  On protocol `2026-07-28`, discovery advertises `io.modelcontextprotocol/skills`
1231
1131
  with directory reading and implements `skills/list`, `skills/get`, and
1232
- `resources/directory/read`. Older connections retain ordinary skill resources,
1233
- `ads_skills` and `ads_read_skill`; their metadata listing does not pretend to be
1234
- native skill activation. Relative references resolve from the skill URI.
1132
+ `resources/directory/read`, and lists no skill tools. 2025-era connections, which
1133
+ have no native skills, get ordinary skill resources plus `ads_skills` and
1134
+ `ads_read_skill`; their metadata listing does not pretend to be native skill activation. Relative references resolve from the skill URI.
1235
1135
 
1236
1136
  The host controls integrity verification, user approval and activation. Reading
1237
1137
  `SKILL.md` through ordinary resources/tools does not prove activation. Local
@@ -1240,10 +1140,14 @@ installation with `npx skills` remains supported independently. See the
1240
1140
 
1241
1141
  ## Protocols, notifications and compatibility
1242
1142
 
1243
- The same SDK server factory serves `2024-11-05`, `2025-03-26`, `2025-06-18` and
1244
- `2025-11-25` through the initialize lifecycle, and `2026-07-28` through modern
1245
- discovery/per-request metadata. An older client is not forced onto the modern
1246
- protocol. Apps use their separate `2026-01-26` UI handshake.
1143
+ ADS serves the same protocol versions on stdio and on HTTP: `2026-07-28` through
1144
+ discovery and per-request metadata, and `2024-10-07`, `2024-11-05`, `2025-03-26`,
1145
+ `2025-06-18` and `2025-11-25` through the initialize lifecycle. Over HTTP a
1146
+ 2025-era client gets a session (`Mcp-Session-Id`) with its GET stream for server
1147
+ notifications, as the 2025 Streamable HTTP transport defines. A client gets what
1148
+ its negotiated version defines; only features that version lacks, such as native
1149
+ Skills or `subscriptions/listen`, are unavailable to it. Apps use their separate
1150
+ `2026-01-26` UI handshake.
1247
1151
 
1248
1152
  Project source changes invalidate catalogue caches and notify resource
1249
1153
  list/read subscribers. Artifact and build-status changes notify preview/build
@@ -1252,18 +1156,17 @@ also notify the tool catalog.
1252
1156
  Publishing a changed asset catalogue also sends a resource-list notification;
1253
1157
  status-only transitions with unchanged resource identities need only updates.
1254
1158
  The server polls file metadata once a second, so replaced files and newly added
1255
- directories are detected. On modern connections, notifications use the SDK's
1256
- `subscriptions/listen`; legacy clients retain list-change and subscribed-resource
1257
- notifications. Hosts may require a manual refresh. The older generic definition
1258
- inspector also provides an explicit Refresh action; project token scenarios
1259
- supply their own controls.
1159
+ directories are detected. On `2026-07-28` connections, notifications use the SDK's
1160
+ `subscriptions/listen`; 2025-era connections, on stdio or in an HTTP session, get
1161
+ list-change and subscribed-resource notifications. Hosts may require a manual
1162
+ refresh.
1260
1163
 
1261
1164
  Client support varies by product and version. Ordinary tools and resources
1262
1165
  remain available without Apps or native Skills support. ADS uses bounded tool
1263
1166
  results and separate resource reads; previews also return showcase links for
1264
1167
  clients without Apps. Native Skills support is optional.
1265
1168
 
1266
- Automated tests verify both protocol eras, resource/skill integrity, prompt
1169
+ Automated tests verify both protocol eras on both transports, resource/skill integrity, prompt
1267
1170
  retrieval, bounded tools, initial preview readiness, managed rebuilds, process
1268
1171
  cleanup and resource notifications. SDK and
1269
1172
  browser-host tests are distinct from a real Codex/Claude session. In a new host,
@@ -1274,13 +1177,11 @@ instruction reads alone do not establish Apps/Skills activation.
1274
1177
 
1275
1178
  ### Token sample verification
1276
1179
 
1277
- Token scenarios declare `samples: fixture.samples` and render a project-owned public
1278
- review renderer with that `samples` input. Each fixture record has `{ token, property,
1279
- probe }`; the tool discovers the resulting token names. Plain token lists and empty
1280
- covers do not satisfy review coverage. The same bindings travel in the compiled
1281
- resource manifest or self-contained App seed.
1180
+ Token views take their bindings from `tokens/catalog.ads.json`: each record has
1181
+ `{ token, property, probe }`. The same bindings travel in the compiled resource manifest or
1182
+ self-contained App seed.
1282
1183
 
1283
- The renderer identifies its styled sample elements through `data-ads-token` and
1184
+ The view marks its styled sample elements with `data-ads-token` and
1284
1185
  `data-ads-property`. After mounting and font loading, the App uses the browser's CSS
1285
1186
  engine to validate each declared binding and project-supplied probe, then checks
1286
1187
  that changing the token changes the sample's computed property. It restores token
@@ -1311,7 +1212,7 @@ contract source for additional relationships. Read the relevant source range;
1311
1212
  these summaries establish registration, not completed verification. Detailed
1312
1213
  results remain bounded and paged.
1313
1214
 
1314
- See [CONTRACTS.md](CONTRACTS.md) for the static schema, compatibility and browser audits.
1215
+ See [CONTRACTS.md](CONTRACTS.md) for the static schema, compatibility and render audits.
1315
1216
  The same guide is available at `ads://guides/contracts`.
1316
1217
 
1317
1218
  A registered binding producer gives a per-theme value with `themed()` or
@@ -1328,48 +1229,6 @@ reachable use; registered browser checks establish the effects. Private visual
1328
1229
  behavior subjects use explicit `role: "implementation"`; headless defaults and
1329
1230
  shared-controller gates remain enabled. See [CONTRACTS.md](CONTRACTS.md).
1330
1231
 
1331
- ## Bug reports and feature requests
1332
-
1333
- `ads_report_bug` records suspected broken existing ADS behavior after targeted
1334
- investigation. Required fields are `title`, `expected`, `observed`, `steps` and
1335
- `frequency` (`always`, `intermittent`, `once`, `unknown`); `suspectedCause` is optional.
1336
- `ads_request_feature` records a legitimate workflow requiring a missing capability:
1337
- `title`, `workflow`, `capability` and `impact` are required; `proposal` is optional.
1338
- Both accept optional `unit`, `scenario`, agent-supplied `reporter`, and up to three
1339
- `evidence` selectors: `{resultId}` or the exact `{unit, check, runId}`.
1340
-
1341
- The server verifies evidence references and snapshots compact completion-time
1342
- metadata before the underlying execution/check slot can be replaced. Superseded
1343
- references fail explicitly. Current-project context separately captures ADS
1344
- version, configured framework, runtime name/version/platform, source/configuration revisions,
1345
- available build metadata and capture time. Missing metadata stays unobserved;
1346
- context and candidate evidence do not become current passing source evidence.
1347
- No source files, full logs, screenshots or trace bytes are automatically attached.
1348
-
1349
- The tools save ordinary JSON at `<projectRoot>/.ds/reports/<reportId>.json`.
1350
- They are available without `--mutations`, like other development-evidence tools,
1351
- and write generated metadata rather than project-owned ADS source. Tool annotations
1352
- mark them as writes. Each saved record is limited to 32 KiB. Neither tool posts to
1353
- GitHub, sends telemetry nor changes validation policy. Reports remain `untriaged`;
1354
- `classification: "agent-supplied"` distinguishes a claim from an established cause.
1355
-
1356
- Equivalent submissions for the same ADS version/framework reuse the report ID,
1357
- keep its creation time, increment `submissionCount` and replace its latest
1358
- submission/context/evidence. This is a submission count, not independent
1359
- reproductions. There is no automatic age/count pruning; report retention differs
1360
- from replaceable execution evidence and screenshot slots. Archive or removal is
1361
- an explicit maintenance action.
1362
-
1363
- Each submission returns a compact receipt (at most 4096 JSON bytes) with
1364
- `reportId`, `revision`, `storagePath`, `submissionCount` and deduplication status.
1365
- The local path is relative to the connected project root. MCP intake is
1366
- submission-only: saved reports have no listing/read tool, resource, URI template,
1367
- subscription or notification. Inspect or share local JSON through normal project
1368
- maintenance when needed. `ads_status.reports` identifies the two intake tools,
1369
- storage directory and `ads://guides/reporting`, without listing report contents.
1370
- All five skills include the same portable
1371
- [reporting reference](../skills/ads-designer/references/reporting.md).
1372
-
1373
1232
  Build errors carry optional `failure: {scope, phase}` metadata. `scope` is
1374
1233
  `project`, `graph` or `scenario`; `phase` is `validation`, `discovery` or `build`.
1375
1234
  A failed project gate blocks verification across previews; it does not establish
@@ -1382,37 +1241,36 @@ scenario's failure. A retained earlier view is not current-source evidence.
1382
1241
 
1383
1242
  `ads_validate({})` and `ads validate` share the full validation engine.
1384
1243
  `ads_validate({scope:"changed"})` matches `ads validate --changed`.
1385
- `ads_validate({policy:"acceptance"})` matches `ads validate --policy acceptance`:
1386
- it checks the acceptance policy against current source without applying anything.
1387
- Validation and acceptance keep separate baselines; acceptance cannot establish
1388
- full validation. Each policy chooses `checks`, `behaviorChecks` and `browserAudit`;
1389
- its `a11y-axe`, `a11y-non-text-contrast` and `layout-overflow` findings are errors, and
1390
- skipped tests are reported as skipped, without a passing label. `validation.browserAudit`
1391
- (on by default, `false` turns it off) audits every UI scenario in every brand and theme;
1392
- with `scope:"changed"` it is the stage check after a series of accepted drafts. Draft
1393
- preview/edit triggers neither policy. Draft acceptance runs the acceptance policy on
1394
- its candidate before writing source; `acceptance.browserAudit` audits the draft owners'
1395
- own UI scenarios (`"owners"`, the default), every scenario the change reaches
1396
- (`"affected"`: all of them after configuration, foundation, token or asset changes) or
1397
- none (`false`). `mcp.auditPages` (1–16, default 4) sets how many pages render at once. Any `a11y-axe`, `a11y-non-text-contrast` or
1398
- `layout-overflow` error, a scenario that fails all 3 attempts (`browser-audit`, naming it and the
1244
+ `ads validate` is the project gate: `ads check`, `acceptance.scripts` then
1245
+ `validation.scripts`, current production previews, and every registered behavior test
1246
+ and render audit its change set reaches; it writes nothing. With scope `all` that is
1247
+ everything; with `scope:"changed"` it is what changed since the last successful full
1248
+ run (configuration, foundation or token changes widen it to everything), the check to
1249
+ run after direct edits or a series of accepted drafts. `acceptance.behavior` and
1250
+ `acceptance.audit` affect draft acceptance only. Its `a11y-axe`,
1251
+ `a11y-non-text-contrast` and `layout-overflow` findings are errors, and skipped tests
1252
+ are reported as skipped, without a passing label. Draft preview/edit runs no gate.
1253
+ Draft acceptance checks its candidate before writing source: `ads check`,
1254
+ `acceptance.scripts`, and the draft owners' own behavior tests and render audit.
1255
+ `mcp.auditPages` (1–16, default 4) sets how many pages render at once. Any `a11y-axe`, `a11y-non-text-contrast` or
1256
+ `layout-overflow` error, a scenario that fails all 3 attempts (`render-audit`, naming it and the
1399
1257
  last cause, with retried passes listed under `retries`), or an audit that
1400
- cannot run (`browser-audit`: no project Playwright or browser; the message names what to
1258
+ cannot run (`render-audit`: no project Playwright or browser; the message names what to
1401
1259
  install), rejects the change; findings are in `diagnostics` and the
1402
- `browser-accessibility-audit` check lists the audited scenarios, themes, brands and
1403
- timing. Explicit `ads_verify` remains independent of gating choices. The MCP tool
1260
+ `render-audit` check lists the audited scenarios, themes, brands and
1261
+ timing. The MCP tool
1404
1262
  runs trusted configured project commands with cancellation and bounded output; it
1405
1263
  is available with source mutations disabled and writes only build/evidence output
1406
- when project commands honor their checking contract. Summaries include policy, scope,
1264
+ when project commands honor their checking contract. Summaries include scope,
1407
1265
  requestedScope, fallback reason, sourceRevision, current, elapsedMs and resultId.
1408
1266
  Read diagnostics/checks/outcomes with `ads_results`; progress and the latest
1409
1267
  validation summary are in `ads_status.validation`. Retention is latest per kind:
1410
- validation, verification and mutation are independent.
1268
+ validation and mutation are independent.
1411
1269
 
1412
1270
  Read `ads://guides/validation` for trigger guidance, baseline expansion, test
1413
- boundaries, script selection and limits. Full audits include configured scripts
1414
- and registered guarantees; changed mode narrows behavior owners while core and
1415
- opaque project scripts remain complete. Neither mode rewrites npm test commands
1271
+ boundaries, script selection and limits. Full runs include configured scripts,
1272
+ registered guarantees and every UI scenario; changed mode narrows behavior owners and
1273
+ audited scenarios while core and opaque project scripts remain complete. Neither mode rewrites npm test commands
1416
1274
  or treats compiled live previews as verification evidence.
1417
1275
 
1418
1276
  Source freshness covers the configured ADS and UI roots, public assets, local
@@ -1445,15 +1303,14 @@ selected commands; ADS cannot infer arbitrary filesystem access inside a command
1445
1303
  ## Shared-process execution coordination
1446
1304
 
1447
1305
  One ADS process has an exclusive execution lease shared by its HTTP and stdio
1448
- clients. `ads_validate` (both policies/scopes), `ads_verify` and `ads_accept` acquire
1306
+ clients. `ads_validate` (both scopes) and `ads_accept` acquire
1449
1307
  it before work and retain it
1450
1308
  through child/ownership-guard cleanup and result publication. Changed scope still
1451
1309
  runs full project scripts. Parallel units and `wait: true` are not supported.
1452
1310
 
1453
1311
  A conflicting call is a tool error with `code: "ADS_VALIDATION_LOCKED"` and `lock`:
1454
- run ID, instance ID, operation, owner/client label where known, policy, requested
1455
- and effective scope, units, start time, progress and nullable estimated remaining
1456
- milliseconds. Client labels (including optional request `_meta["ads/clientId"]`)
1312
+ run ID, instance ID, operation, owner/client label where known, requested
1313
+ and effective scope, units, start time and progress. Client labels (including optional request `_meta["ads/clientId"]`)
1457
1314
  are advisory metadata, not authentication. Stateless HTTP requests do not define
1458
1315
  persistent client sessions. The run ID is the result ID; any connected project
1459
1316
  client can read retained evidence by ID after reconnecting.