@reqvire-org/ads 0.4.0 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (410) hide show
  1. package/README.md +115 -87
  2. package/dist/a11y.mjs +133 -48
  3. package/dist/analysis/compiler-options.mjs +13 -0
  4. package/dist/analysis/context.mjs +46 -0
  5. package/dist/analysis/file-tree.mjs +52 -0
  6. package/dist/analysis/helpers.mjs +142 -0
  7. package/dist/analysis/impact.mjs +20 -0
  8. package/dist/analysis/inputs.mjs +22 -0
  9. package/dist/analysis/module-resolvers.mjs +46 -0
  10. package/dist/analysis/native-adapter.mjs +180 -0
  11. package/dist/analysis/native-project.mjs +323 -0
  12. package/dist/analysis/queries.mjs +133 -0
  13. package/dist/analysis/service.mjs +153 -0
  14. package/dist/analysis/standalone.mjs +57 -0
  15. package/dist/analysis/syntax.mjs +179 -0
  16. package/dist/analysis/worker.mjs +182 -0
  17. package/dist/assets.mjs +6 -6
  18. package/dist/atomic-composition.mjs +191 -70
  19. package/dist/atomic-trace.mjs +120 -50
  20. package/dist/behavior-libraries.mjs +106 -37
  21. package/dist/behaviors.mjs +219 -77
  22. package/dist/boundaries.mjs +140 -41
  23. package/dist/brand-assets.mjs +219 -47
  24. package/dist/brands.mjs +86 -27
  25. package/dist/bun-compiler.mjs +28 -14
  26. package/dist/bun-worker.mjs +7 -5
  27. package/dist/capture/worker.mjs +15 -4
  28. package/dist/capture-store.mjs +4 -2
  29. package/dist/capture.mjs +17 -14
  30. package/dist/check-service.mjs +44 -58
  31. package/dist/check.mjs +754 -188
  32. package/dist/cli.mjs +200 -99
  33. package/dist/color-values.mjs +21 -21
  34. package/dist/component-contrast.mjs +127 -9
  35. package/dist/config.mjs +303 -135
  36. package/dist/construction-styles.cjs +10 -0
  37. package/dist/contrast-composition.mjs +134 -0
  38. package/dist/control-padding.mjs +45 -25
  39. package/dist/css-values.mjs +3 -2
  40. package/dist/declarative-flow.mjs +209 -109
  41. package/dist/design-values.mjs +136 -51
  42. package/dist/development-runtime.mjs +4 -6
  43. package/dist/draft-boundary.mjs +11 -6
  44. package/dist/evidence.mjs +1 -1
  45. package/dist/finding-rules.mjs +9 -5
  46. package/dist/font-rules.mjs +22 -17
  47. package/dist/fonts-generated.mjs +23 -16
  48. package/dist/foundation-views.mjs +242 -0
  49. package/dist/foundation.mjs +63 -39
  50. package/dist/generated-entries.mjs +101 -34
  51. package/dist/icons.mjs +79 -32
  52. package/dist/image-attributes.mjs +143 -66
  53. package/dist/image-size.mjs +1 -1
  54. package/dist/index.mjs +0 -2
  55. package/dist/init.mjs +122 -41
  56. package/dist/investigations.mjs +2 -2
  57. package/dist/layers.mjs +298 -129
  58. package/dist/layout-widths.mjs +180 -85
  59. package/dist/linaria/preserve-values.cjs +7 -0
  60. package/dist/linaria/spatial-inputs.cjs +56 -0
  61. package/dist/lockup-composition.mjs +44 -0
  62. package/dist/lockup-model.cjs +64 -0
  63. package/dist/mcp/THIRD_PARTY_NOTICES.md +51 -1
  64. package/dist/mcp/apps.mjs +4 -30
  65. package/dist/mcp/behavior-pages.mjs +72 -24
  66. package/dist/mcp/build-status.mjs +257 -64
  67. package/dist/mcp/catalog.mjs +90 -26
  68. package/dist/mcp/context.mjs +17 -18
  69. package/dist/mcp/draft-discovery.mjs +44 -21
  70. package/dist/mcp/drafts.mjs +903 -281
  71. package/dist/mcp/execution-coordinator.mjs +417 -167
  72. package/dist/mcp/execution-results.mjs +7 -7
  73. package/dist/mcp/mutations.mjs +673 -234
  74. package/dist/mcp/preview-watch.mjs +448 -170
  75. package/dist/mcp/preview-widget.bundle.js +44 -50
  76. package/dist/mcp/prompts.mjs +5 -5
  77. package/dist/mcp/result-pages.mjs +1 -1
  78. package/dist/mcp/sandbox-host.mjs +1 -1
  79. package/dist/mcp/server.mjs +2409 -577
  80. package/dist/mcp/showcase-host.mjs +165 -41
  81. package/dist/mcp/skills.mjs +1 -1
  82. package/dist/mcp/text-diff.mjs +29 -10
  83. package/dist/paint-contracts.mjs +174 -81
  84. package/dist/palette-generated.mjs +2 -2
  85. package/dist/pictogram-model.mjs +59 -0
  86. package/dist/pictograms.mjs +52 -0
  87. package/dist/preview-bun.mjs +494 -187
  88. package/dist/preview-failure.mjs +1 -1
  89. package/dist/preview-files.mjs +13 -13
  90. package/dist/preview-imports.mjs +104 -55
  91. package/dist/preview-inputs.mjs +2 -2
  92. package/dist/preview-requests.mjs +24 -0
  93. package/dist/preview-resources.mjs +288 -147
  94. package/dist/preview-scope.mjs +5 -4
  95. package/dist/program-cache.mjs +8 -34
  96. package/dist/project-documents.mjs +1 -1
  97. package/dist/public-api.mjs +69 -31
  98. package/dist/public-props.mjs +39 -22
  99. package/dist/{browser-audit → render-audit}/axe-run.mjs +3 -3
  100. package/dist/{browser-audit → render-audit}/image-shape.mjs +15 -5
  101. package/dist/{browser-audit → render-audit}/layout-overflow.mjs +86 -23
  102. package/dist/{browser-audit → render-audit}/non-text-contrast.mjs +86 -27
  103. package/dist/render-audit/pictograms.mjs +88 -0
  104. package/dist/{browser-audit → render-audit}/render-states.mjs +208 -52
  105. package/dist/{browser-audit → render-audit}/worker.mjs +98 -30
  106. package/dist/render-audit.mjs +838 -0
  107. package/dist/render-color-probe.mjs +96 -42
  108. package/dist/render-composition.mjs +164 -0
  109. package/dist/resource-limits.mjs +229 -97
  110. package/dist/runtime-contracts.mjs +467 -185
  111. package/dist/scenario-groups.mjs +22 -10
  112. package/dist/scenario-inspector.mjs +6 -43
  113. package/dist/scenario-program.mjs +8 -25
  114. package/dist/scenario-registry.mjs +72 -30
  115. package/dist/scenario-selectors.mjs +161 -64
  116. package/dist/scenario-slots.mjs +149 -56
  117. package/dist/scenario-trace.mjs +215 -109
  118. package/dist/scenarios-compiler.mjs +719 -378
  119. package/dist/scenarios-vite.d.mts +1 -3
  120. package/dist/scenarios-vite.mjs +2 -81
  121. package/dist/scenarios.mjs +421 -157
  122. package/dist/selector-match.mjs +2 -2
  123. package/dist/showcase/client.bundle.js +57 -56
  124. package/dist/showcase/draft-navigation.js +21 -3
  125. package/dist/showcase/favicon.ico +0 -0
  126. package/dist/showcase/favicon.svg +1 -0
  127. package/dist/showcase/foundation-view.css +58 -0
  128. package/dist/showcase/foundation-view.mjs +255 -0
  129. package/dist/showcase/guide-controls.ads.review.mjs +32 -0
  130. package/dist/showcase/icons.js +1 -145
  131. package/dist/showcase/index.html +3 -31
  132. package/dist/showcase/pictogram-view.mjs +53 -0
  133. package/dist/showcase/preview-frame.ads.review.css +46 -0
  134. package/dist/showcase/preview-frame.ads.review.d.mts +11 -0
  135. package/dist/showcase/preview-frame.ads.review.mjs +22 -0
  136. package/dist/showcase/preview-state.js +0 -9
  137. package/dist/showcase/refresh-scheduler.js +23 -0
  138. package/dist/showcase/style.css +5 -47
  139. package/dist/showcase/ui/ui.css +1353 -0
  140. package/dist/showcase/ui/ui.js +1064 -0
  141. package/dist/showcase-coverage.mjs +58 -37
  142. package/dist/skills/README.md +24 -23
  143. package/dist/skills/ads-designer/README.md +8 -2
  144. package/dist/skills/ads-designer/SKILL.md +143 -120
  145. package/dist/skills/ads-designer/references/accessibility.md +78 -15
  146. package/dist/skills/ads-designer/references/atomic-styles.md +4 -4
  147. package/dist/skills/ads-designer/references/behaviors.md +30 -27
  148. package/dist/skills/ads-designer/references/branding.md +101 -24
  149. package/dist/skills/ads-designer/references/captures.md +25 -0
  150. package/dist/skills/ads-designer/references/cli.md +21 -24
  151. package/dist/skills/ads-designer/references/contracts.md +7 -6
  152. package/dist/skills/ads-designer/references/design-data.md +49 -52
  153. package/dist/skills/ads-designer/references/drafts.md +20 -17
  154. package/dist/skills/ads-designer/references/evidence.md +1 -5
  155. package/dist/skills/ads-designer/references/guarded-editing.md +14 -18
  156. package/dist/skills/ads-designer/references/layers.md +1 -1
  157. package/dist/skills/ads-designer/references/layout.md +347 -0
  158. package/dist/skills/ads-designer/references/mobile.md +2 -1
  159. package/dist/skills/{ads-motion/references/performance.md → ads-designer/references/motion-performance.md} +5 -1
  160. package/dist/skills/{ads-motion/references/build.md → ads-designer/references/motion.md} +73 -5
  161. package/dist/skills/ads-designer/references/performance.md +3 -2
  162. package/dist/skills/ads-designer/references/pictograms.md +131 -0
  163. package/dist/skills/ads-designer/references/review.md +37 -34
  164. package/dist/skills/ads-designer/references/runtimes.md +33 -30
  165. package/dist/skills/ads-designer/references/scenarios.md +16 -18
  166. package/dist/skills/{ads-break-ui/references/catalog.md → ads-designer/references/stress-catalog.md} +3 -1
  167. package/dist/skills/ads-designer/references/stress-test.md +68 -0
  168. package/dist/skills/ads-designer/references/validation.md +83 -75
  169. package/dist/skills/ads-designer/references/workflows.md +8 -33
  170. package/dist/skills/ads-import/SKILL.md +43 -325
  171. package/dist/skills/ads-import/references/atomic-styles.md +4 -4
  172. package/dist/skills/ads-import/references/behaviors.md +30 -27
  173. package/dist/skills/ads-import/references/branding.md +5 -5
  174. package/dist/skills/ads-import/references/captures.md +25 -0
  175. package/dist/skills/ads-import/references/cli.md +21 -24
  176. package/dist/skills/ads-import/references/compatibility.md +1 -1
  177. package/dist/skills/ads-import/references/contracts.md +7 -6
  178. package/dist/skills/ads-import/references/design-data.md +49 -52
  179. package/dist/skills/ads-import/references/drafts.md +20 -17
  180. package/dist/skills/ads-import/references/evidence.md +1 -5
  181. package/dist/skills/ads-import/references/guarded-editing.md +14 -18
  182. package/dist/skills/ads-import/references/implementation.md +2 -1
  183. package/dist/skills/ads-import/references/layers.md +1 -1
  184. package/dist/skills/ads-import/references/layout.md +347 -0
  185. package/dist/skills/ads-import/references/review.md +37 -34
  186. package/dist/skills/ads-import/references/runtimes.md +33 -30
  187. package/dist/skills/ads-import/references/scenarios.md +16 -18
  188. package/dist/skills/ads-import/references/tokens.md +3 -3
  189. package/dist/skills/ads-import/references/validation.md +83 -75
  190. package/dist/skills/ads-import/references/workflows.md +8 -33
  191. package/dist/skills/ads-migrate/SKILL.md +56 -0
  192. package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +602 -0
  193. package/dist/skills/ads-port/SKILL.md +58 -344
  194. package/dist/skills/ads-port/references/atomic-styles.md +4 -4
  195. package/dist/skills/ads-port/references/behaviors.md +30 -27
  196. package/dist/skills/ads-port/references/captures.md +25 -0
  197. package/dist/skills/ads-port/references/cli.md +21 -24
  198. package/dist/skills/ads-port/references/contracts.md +7 -6
  199. package/dist/skills/ads-port/references/design-data.md +49 -52
  200. package/dist/skills/ads-port/references/drafts.md +20 -17
  201. package/dist/skills/ads-port/references/evidence.md +1 -5
  202. package/dist/skills/ads-port/references/guarded-editing.md +14 -18
  203. package/dist/skills/ads-port/references/layers.md +1 -1
  204. package/dist/skills/ads-port/references/layout.md +347 -0
  205. package/dist/skills/ads-port/references/lint-and-docs.md +8 -11
  206. package/dist/skills/ads-port/references/native-implementation.md +2 -1
  207. package/dist/skills/ads-port/references/review.md +37 -34
  208. package/dist/skills/ads-port/references/runtimes.md +33 -30
  209. package/dist/skills/ads-port/references/scenarios.md +16 -18
  210. package/dist/skills/ads-port/references/validation.md +83 -75
  211. package/dist/skills/ads-port/references/workflows.md +8 -33
  212. package/dist/source-symbols.mjs +1 -8
  213. package/dist/source-values.mjs +270 -129
  214. package/dist/spatial-composition.mjs +322 -0
  215. package/dist/spatial-contexts.cjs +56 -0
  216. package/dist/spatial-css.cjs +351 -0
  217. package/dist/spatial-inputs.cjs +80 -0
  218. package/dist/spatial-metadata.mjs +18 -0
  219. package/dist/spatial-model.cjs +322 -0
  220. package/dist/spatial.mjs +21 -0
  221. package/dist/stage-timing.cjs +20 -0
  222. package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +105 -0
  223. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +275 -0
  224. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  225. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  226. package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +8 -0
  227. package/dist/starters/preact/ds.config.json +25 -6
  228. package/dist/starters/preact/package.json +4 -8
  229. package/dist/starters/preact/tsconfig.json +4 -5
  230. package/dist/starters/preact/vite.config.ts +3 -3
  231. package/dist/starters/react/ADS.md +42 -47
  232. package/dist/starters/react/README.md +47 -49
  233. package/dist/starters/react/design-system/assets/pictograms/catalog.ads.json +13 -0
  234. package/dist/starters/react/design-system/assets/pictograms/journey.dark.svg +7 -0
  235. package/dist/starters/react/design-system/assets/pictograms/journey.svg +7 -0
  236. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +18 -2
  237. package/dist/starters/react/design-system/components/Actions/IconButton/README.md +3 -0
  238. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.exports.ts +1 -0
  239. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.fixture.ts +1 -0
  240. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.scenario.tsx +7 -0
  241. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.tsx +26 -0
  242. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +5 -0
  243. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +13 -0
  244. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +22 -0
  245. package/dist/starters/react/design-system/index.ts +2 -1
  246. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +1 -0
  247. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +7 -0
  248. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +15 -0
  249. package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +105 -0
  250. package/dist/starters/react/design-system/patterns/Conversation/README.md +9 -0
  251. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +5 -0
  252. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +21 -0
  253. package/dist/starters/react/design-system/patterns/Shell/README.md +43 -0
  254. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +1 -0
  255. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +5 -0
  256. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +21 -0
  257. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +274 -0
  258. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +1 -1
  259. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  260. package/dist/starters/react/design-system/review/index.ads.review.ts +4 -0
  261. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +1 -0
  262. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +6 -0
  263. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +1 -1
  264. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  265. package/dist/starters/react/design-system/showcase/mcp/{main.tsx → main.ads.mount.tsx} +4 -2
  266. package/dist/starters/react/design-system/tokens/catalog.ads.json +1221 -0
  267. package/dist/starters/react/design-system/tokens/colors.css +1 -1
  268. package/dist/starters/react/design-system/tokens/spacing.css +22 -32
  269. package/dist/starters/react/design-system/tokens/spatial.ads.json +70 -0
  270. package/dist/starters/react/design-system/tokens/themes.generated.ts +1 -1
  271. package/dist/starters/react/ds.config.json +25 -6
  272. package/dist/starters/react/package.json +2 -6
  273. package/dist/starters/react/tsconfig.json +2 -3
  274. package/dist/starters/react/vite.config.ts +3 -3
  275. package/dist/style-boundaries.mjs +70 -25
  276. package/dist/task-cache.mjs +173 -72
  277. package/dist/task-worker.mjs +22 -11
  278. package/dist/test-boundaries.mjs +132 -59
  279. package/dist/themes-generated.mjs +1 -1
  280. package/dist/themes-watch.mjs +57 -22
  281. package/dist/themes.mjs +176 -73
  282. package/dist/token-export.mjs +39 -14
  283. package/dist/token-policy.mjs +6 -3
  284. package/dist/token-quality.mjs +6 -6
  285. package/dist/token-samples.mjs +16 -5
  286. package/dist/tokens.mjs +71 -26
  287. package/dist/ui-framework.mjs +16 -14
  288. package/dist/unit-contracts.mjs +251 -104
  289. package/dist/units.mjs +209 -99
  290. package/dist/usage.mjs +138 -38
  291. package/dist/validation-checks.mjs +115 -38
  292. package/dist/validation-inputs.mjs +191 -78
  293. package/dist/validation.mjs +268 -102
  294. package/dist/verification/browser.mjs +27 -5
  295. package/dist/verification.mjs +711 -187
  296. package/docs/ADS.md +96 -80
  297. package/docs/ARCHITECTURE.md +368 -137
  298. package/docs/BEHAVIORS.md +29 -25
  299. package/docs/CACHING.md +77 -17
  300. package/docs/CHANGELOG.md +332 -17
  301. package/docs/CONTRACTS.md +12 -4
  302. package/docs/DESIGN-REFERENCES.md +40 -0
  303. package/docs/GUIDE.md +300 -263
  304. package/docs/MCP.md +187 -324
  305. package/docs/SPATIAL-CHECKS.md +69 -0
  306. package/docs/benchmarks/README.md +39 -0
  307. package/package.json +43 -34
  308. package/dist/browser-audit.mjs +0 -429
  309. package/dist/create.mjs +0 -48
  310. package/dist/lint-config.mjs +0 -50
  311. package/dist/mcp/project-widget.bundle.js +0 -114
  312. package/dist/mcp/reports.mjs +0 -101
  313. package/dist/mcp/widget.bundle.js +0 -147
  314. package/dist/oxlint.mjs +0 -89
  315. package/dist/preview-builder.mjs +0 -133
  316. package/dist/preview-workers.mjs +0 -184
  317. package/dist/showcase.mjs +0 -77
  318. package/dist/skills/ads-break-ui/LICENSE.upstream +0 -21
  319. package/dist/skills/ads-break-ui/README.md +0 -16
  320. package/dist/skills/ads-break-ui/SKILL.md +0 -412
  321. package/dist/skills/ads-break-ui/agents/openai.yaml +0 -4
  322. package/dist/skills/ads-break-ui/references/atomic-styles.md +0 -293
  323. package/dist/skills/ads-break-ui/references/behaviors.md +0 -412
  324. package/dist/skills/ads-break-ui/references/captures.md +0 -135
  325. package/dist/skills/ads-break-ui/references/contracts.md +0 -317
  326. package/dist/skills/ads-break-ui/references/design-data.md +0 -354
  327. package/dist/skills/ads-break-ui/references/drafts.md +0 -194
  328. package/dist/skills/ads-break-ui/references/evidence.md +0 -128
  329. package/dist/skills/ads-break-ui/references/guarded-editing.md +0 -165
  330. package/dist/skills/ads-break-ui/references/layers.md +0 -145
  331. package/dist/skills/ads-break-ui/references/reporting.md +0 -101
  332. package/dist/skills/ads-break-ui/references/review.md +0 -97
  333. package/dist/skills/ads-break-ui/references/runtimes.md +0 -203
  334. package/dist/skills/ads-break-ui/references/scenarios.md +0 -246
  335. package/dist/skills/ads-break-ui/references/validation.md +0 -166
  336. package/dist/skills/ads-break-ui/references/verification.md +0 -58
  337. package/dist/skills/ads-break-ui/references/workflows.md +0 -90
  338. package/dist/skills/ads-designer/references/reporting.md +0 -101
  339. package/dist/skills/ads-import/references/reporting.md +0 -101
  340. package/dist/skills/ads-motion/LICENSE.upstream +0 -21
  341. package/dist/skills/ads-motion/README.md +0 -22
  342. package/dist/skills/ads-motion/SKILL.md +0 -385
  343. package/dist/skills/ads-motion/agents/openai.yaml +0 -4
  344. package/dist/skills/ads-motion/references/atomic-styles.md +0 -293
  345. package/dist/skills/ads-motion/references/audit.md +0 -44
  346. package/dist/skills/ads-motion/references/behaviors.md +0 -412
  347. package/dist/skills/ads-motion/references/captures.md +0 -135
  348. package/dist/skills/ads-motion/references/contracts.md +0 -317
  349. package/dist/skills/ads-motion/references/design-data.md +0 -354
  350. package/dist/skills/ads-motion/references/drafts.md +0 -194
  351. package/dist/skills/ads-motion/references/evidence.md +0 -128
  352. package/dist/skills/ads-motion/references/guarded-editing.md +0 -165
  353. package/dist/skills/ads-motion/references/layers.md +0 -145
  354. package/dist/skills/ads-motion/references/motion-review.md +0 -35
  355. package/dist/skills/ads-motion/references/reporting.md +0 -101
  356. package/dist/skills/ads-motion/references/review.md +0 -97
  357. package/dist/skills/ads-motion/references/runtimes.md +0 -203
  358. package/dist/skills/ads-motion/references/scenarios.md +0 -246
  359. package/dist/skills/ads-motion/references/validation.md +0 -166
  360. package/dist/skills/ads-motion/references/verification.md +0 -39
  361. package/dist/skills/ads-motion/references/workflows.md +0 -90
  362. package/dist/skills/ads-port/references/reporting.md +0 -101
  363. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.ads.contract.ts +0 -6
  364. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.tsx +0 -76
  365. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  366. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  367. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.ads.contract.ts +0 -6
  368. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.tsx +0 -137
  369. package/dist/starters/preact/design-system/showcase/mcp/main.tsx +0 -6
  370. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +0 -7
  371. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx +0 -4
  372. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +0 -7
  373. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx +0 -4
  374. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.contract.ts +0 -6
  375. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.exports.ts +0 -1
  376. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.fixture.ts +0 -12
  377. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.scenario.tsx +0 -17
  378. package/dist/starters/react/design-system/components/Layout/Grid/Grid.tsx +0 -75
  379. package/dist/starters/react/design-system/components/Layout/Grid/README.md +0 -21
  380. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.ads.exports.ts +0 -1
  381. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.tsx +0 -112
  382. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  383. package/dist/starters/react/design-system/review/grid-cell/GridCell.ads.exports.ts +0 -1
  384. package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +0 -18
  385. package/dist/starters/react/design-system/review/index.ts +0 -6
  386. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  387. package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.contract.ts +0 -6
  388. package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.exports.ts +0 -1
  389. package/dist/starters/react/design-system/review/token-preview/TokenPreview.tsx +0 -137
  390. package/dist/starters/react/design-system/showcase/mcp/index.html +0 -1
  391. package/dist/starters/react/design-system/tokens/Color.ads.fixture.ts +0 -124
  392. package/dist/starters/react/design-system/tokens/Color.ads.scenario.tsx +0 -4
  393. package/dist/starters/react/design-system/tokens/Layout.ads.fixture.ts +0 -39
  394. package/dist/starters/react/design-system/tokens/Layout.ads.scenario.tsx +0 -4
  395. package/dist/starters/react/design-system/tokens/Motion.ads.fixture.ts +0 -18
  396. package/dist/starters/react/design-system/tokens/Motion.ads.scenario.tsx +0 -4
  397. package/dist/starters/react/design-system/tokens/Shape.ads.fixture.ts +0 -30
  398. package/dist/starters/react/design-system/tokens/Shape.ads.scenario.tsx +0 -4
  399. package/dist/starters/react/design-system/tokens/Space.ads.fixture.ts +0 -37
  400. package/dist/starters/react/design-system/tokens/Space.ads.scenario.tsx +0 -4
  401. package/dist/starters/react/design-system/tokens/Type.ads.fixture.ts +0 -29
  402. package/dist/starters/react/design-system/tokens/Type.ads.scenario.tsx +0 -4
  403. package/dist/starters/react/package-lock.json +0 -4707
  404. package/dist/token-fixtures.mjs +0 -30
  405. package/docs/benchmarks/bun-previews.md +0 -91
  406. package/docs/benchmarks/preview-memory.md +0 -147
  407. package/docs/benchmarks/turbo-poc.md +0 -284
  408. package/docs/plans/execution-coordination.md +0 -57
  409. /package/dist/{browser-audit → render-audit}/first-render.mjs +0 -0
  410. /package/dist/{browser-audit → render-audit}/layout-shift.mjs +0 -0
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,13 +330,22 @@ 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
 
343
+ Pictograms are discoverable with `ads_scenarios({kind: "pictograms"})` and preview
344
+ ids `pictograms/<id>`. Their source owner is `assets/pictograms`; its drafts attach
345
+ to those gallery entries. `ads://guides/pictograms` documents the catalogue, theme
346
+ rules, artistic freedom and render-guard limits. They are tool-owned foundation
347
+ views, not authored `.ads.scenario.tsx` files.
348
+
348
349
  The server supplies agent guidance through its instructions, tool descriptions,
349
350
  `ads://project/guide` and packaged ADS skills.
350
351
 
@@ -353,22 +354,17 @@ The server supplies agent guidance through its instructions, tool descriptions,
353
354
  | `ads_status` | Project paths, watcher/build states, preview revisions and diagnostics, skills |
354
355
  | `ads_catalog` | Bounded search for public UI, controllers and hooks, with source/guide URIs |
355
356
  | `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 |
357
+ | `ads_skills` | 2025-era connections only: workflow names/descriptions without loading instructions |
358
+ | `ads_read_skill` | 2025-era connections only: explicit text instruction/support-file reads in bounded chunks |
360
359
  | `ads_scenarios` | Bounded scenario discovery, including folder-derived groups searchable with `query` |
361
360
  | `ads_show_scenario` | Render an exact discovered scenario with its own fixtures |
362
361
  | `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 |
362
+ | `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
363
  | `ads_results` | Page saved execution outcomes, diagnostics, logs and captures without rerunning |
366
364
  | `ads_investigate` | Read one check's summary, then paged requests/errors/artifacts |
367
365
  | `ads_capture` | On-demand PNG of a discovered scenario or named element; replace current and clear candidate |
368
366
  | `ads_capture_clear` | Remove generated captures or discard only the candidate |
369
- | `ads_show_<id>` | Optional explicitly configured grouped App |
370
367
  | `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
368
  | `ads_read_file` | Read bounded source ranges, with owning unit and full-file digest |
373
369
 
374
370
  Scenario results include `group` only when folder structure supplies one. It is
@@ -385,14 +381,14 @@ public exports from `components/`, `patterns/` and `controllers/`; it does not e
385
381
  guess component props. Read the exported API and owning guide. An export name
386
382
  alone does not prove that a preview renders that particular element.
387
383
 
388
- `ads://project/status`, `/build`, `/tokens`, `/icons`, `/catalog`, `/scenarios` and
384
+ `ads://project/status`, `/build`, `/tokens`, `/tokens/dtcg`, `/icons`, `/catalog`, `/scenarios` and
389
385
  `/checks` carry project JSON detail. Behavior discovery, execution outcomes and investigation
390
386
  details are paged; their resource reads use the same bounds as their tools. Allowed project documentation/source and skill files are separate
391
387
  resources. No arbitrary filesystem reader is exposed. Prefer bounded tools for
392
388
  large catalogues; explicit resource reads can enter model context and a client
393
389
  may truncate large payloads.
394
390
 
395
- `ads_check` and `ads://project/checks` return errors under `diagnostics` (they fail the
391
+ `ads://project/checks` returns errors under `diagnostics` (they fail the
396
392
  check) and review items under `advisories` with `severity: "review"` (they never block),
397
393
  then informational limits with `severity: "info"`; `summary` counts errors and review
398
394
  items. Every finding id has one class (error, review or info), and no configuration changes
@@ -422,7 +418,7 @@ ownership, valid initial values, browser checks and examples.
422
418
 
423
419
  ### Screenshots and candidate comparison
424
420
 
425
- `ads_capture({scenario:"<discovered ID>",target?,theme?,brand?,viewport?})` renders current
421
+ `ads_capture({scenario:"<discovered ID>",target?,theme?,brand?,viewport?,guides?})` renders current
426
422
  source in the real sandboxed App using project-local Playwright/browser. `theme` is a declared
427
423
  theme name (default: the first). Previews receive the theme in host context: `theme` carries
428
424
  the MCP Apps light/dark scheme and `adsTheme` the project theme name; hosts that send only
@@ -434,6 +430,14 @@ viewport; optional `captureTargets` metadata names an element within the scenari
434
430
  Token/component/pattern/composition scenarios share this path. The tool adds no
435
431
  project-specific renderer or fixture assumptions.
436
432
 
433
+ Optional `guides` selects any of `bounds`, `tracks` (columns/rows), `gaps`
434
+ (including gutters), `padding`, `margins`, and `mini` (mini-unit squares), for
435
+ example `guides:["tracks","padding","mini"]`. The existing showcase overlay
436
+ draws those layers on all visible elements; omitted or `[]` produces a clean
437
+ image. Components, patterns, compositions and `tokens/Layout` support guides.
438
+ The selection is stored in `settings.guides`, applies to both comparison images,
439
+ and does not create extra capture slots. Named targets keep their existing crop.
440
+
437
441
  `ads_capture` with a draft `id` and exact `revision` captures current and candidate
438
442
  under matching settings without acceptance checks; acceptance and its dry run take
439
443
  no screenshots. A newly added scenario has a candidate with an explicit absent
@@ -461,8 +465,8 @@ and runner schema. `ads_behaviors({ "unit": "components/MessageScroller" })`
461
465
  pages an owner's checks by default; select `section: "subjects"`, `"guarantees"`,
462
466
  `"demonstrations"` or `"profiles"` for other details. Without a unit it lists owner
463
467
  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.
468
+ evidence revisions invalidate discovery cursors. `ads verify . --unit components/MessageScroller --check prepend-anchor`
469
+ runs those registered cases from the CLI; over MCP the gates run them. The names here are examples, never built-in cases.
466
470
 
467
471
  `covers` describes rendered UI; optional `exercises` describes public behavioral
468
472
  APIs used through reachable scenario code. Neither metadata nor README prose is
@@ -473,9 +477,9 @@ Missing/skipped cases, unavailable runners and changed inputs cannot pass.
473
477
  Results and subscribed resource notifications are available through
474
478
  `ads://project/behaviors`; explicitly re-read evidence when notifications are absent.
475
479
 
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
480
+ During an `ads_validate` run, `ads_status.validation.progress` (stage `behavior`)
481
+ exposes completed/active/pending checks, timings and the profile's whole-run
482
+ timeout. Draft acceptance uses `ads_status.mutations.progress`. Requested MCP progress notifications also report
479
483
  runner activity. Profiles accept an explicit `timeoutMs` from 100 to 900000 ms
480
484
  (up to fifteen minutes), with a 60000 ms default. This covers the complete
481
485
  selected suite; each runner's individual test/hook timeouts are separate.
@@ -540,9 +544,9 @@ the selected candidate's sources. StrictMode profiles need a project React
540
544
  development harness. Profiles describe the execution environment, not a proof
541
545
  that every possible interaction or lifecycle has been tested.
542
546
 
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.
547
+ Unless `acceptance.behavior` is false, guarded mutations also run the draft owners'
548
+ own registered behavior checks; `ads_validate` runs the contracts that depend on a
549
+ changed shared controller. Failures reject the candidate before writing real source. Projects without contracts retain their existing checks.
546
550
 
547
551
  ## Guarded editing
548
552
 
@@ -565,14 +569,17 @@ the flat/directory colocation convention. A component or pattern unit includes
565
569
  its implementation and colocated scenarios, fixtures, tests and guides. A
566
570
  composition owns its scenario and mock inputs. Imported components and patterns
567
571
  remain separate owners. `tokens` is one foundation unit covering token definitions,
568
- themes and token scenarios/fixtures, whose coverage spans shared source files.
572
+ themes and `catalog.ads.json`, whose coverage spans shared source files.
569
573
  Preview IDs remain separate: several token previews belong to `tokens`.
570
574
  Design tokens and token previews belong to the shared Data foundation. Component
571
575
  contracts do not register token namespaces or independent value sheets. Read
572
576
  `ads://guides/tokens` for state mappings, color roles, the grid, contrast/rhythm/overlap
573
577
  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.
578
+ committed targets, glyph sets and `@ads-lockup`/`lockup-construction` fixes;
579
+ `ads://guides/accessibility` for the WCAG 2.2 AA
580
+ guards (`token-contrast`, `component-contrast`, `a11y-*`) and the practice no tool can check;
581
+ `ads://guides/layout` for `@ads-layout` constructions, regions, panels and the
582
+ `grid-construction`/`grid-definition` fixes.
576
583
 
577
584
  No owner edits a shared entry. The styles entry is generated from the canonical
578
585
  token sheets in foundation order: adding `tokens/fonts.css` adds its import, and
@@ -601,7 +608,7 @@ The same discovery covers the rest of the project ADS:
601
608
 
602
609
  | Unit | Scope |
603
610
  |------|-------|
604
- | `review/<Owner>` | Development-only frames, token renderers, demo controls, local checks and their review exports file |
611
+ | `review/<Owner>` | Development-only frames, demo controls, local checks and their review exports file |
605
612
  | `foundation` | Shared ADS entry styles and root helpers |
606
613
  | `documentation` | ADS/project guides, shared credits and license notices, and `licenses/` text collections |
607
614
  | `assets/brand`, `assets/fonts`, other `assets/*` groups | Original SVG, image, font and other asset files |
@@ -660,21 +667,16 @@ images, fonts and other assets go through `changes` with `encoding:"base64"`; bi
660
667
  Review the draft with `ads_show_draft`, then check it with
661
668
  `ads_accept({id, revision, dryRun:true})`. This runs the normal candidate gates,
662
669
  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
670
+ in the draft's workspace through ADS's managed compiler; it writes no live source and
664
671
  does not persist passing evidence for live inputs. Read the summary, then use its
665
672
  `resultId` with `ads_results` for failing `outcomes`, `diagnostics` or named pipeline
666
673
  `checks`; update the draft and repeat. Accept with `ads_accept({id, revision})`; the
667
674
  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
675
 
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.
676
+ Token sample bindings are ordinary data in `tokens/catalog.ads.json`: change them in a
677
+ `tokens` draft with explicit `token`, CSS `property` and `probe` entries. ADS never guesses
678
+ a property from the token name, and reports entries for undefined tokens
679
+ (`foundation-catalog`).
678
680
 
679
681
  For a coupled rename or upgrade, create one draft for all its owners (2–64 owners, at
680
682
  most 256 distinct files) and accept it once. Core checks, configured project
@@ -699,23 +701,25 @@ checked against a complete candidate; the barrel is regenerated from the exports
699
701
  file. New units use a new `components/`, `patterns/`, `controllers/`, `review/` or
700
702
  `composition/` owner ID following the same colocation convention. A draft cannot
701
703
  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
704
+ failed acceptance requires correcting its owner or configuration, never a direct-write
703
705
  bypass.
704
706
 
705
707
  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:
708
+ copy with `ads check`. The project's `acceptance` settings select its scripts and
709
+ whether the owners' behavior tests and render audit run; `ads validate` adds
710
+ `validation.scripts`:
708
711
 
709
712
  ```json
710
713
  {
711
- "acceptance": { "checks": ["typecheck"], "behaviorChecks": true },
712
- "validation": { "checks": ["typecheck", "test", "build:app"], "behaviorChecks": true },
714
+ "acceptance": { "scripts": ["typecheck"], "behavior": true, "audit": true },
715
+ "validation": { "scripts": ["test", "build:app"], "inputs": [] },
713
716
  "mcp": { "mutationCheckTimeoutMs": 120000 }
714
717
  }
715
718
  ```
716
719
 
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.
720
+ Both script lists default to empty; script names are never inferred, and each
721
+ script is listed once. `acceptance.behavior` and `acceptance.audit` default to true.
722
+ An unknown field is a configuration error naming it.
719
723
  Managed previews are built for required behavior checks or requested captures,
720
724
  sharing one production graph. Core-only acceptance does not build the whole
721
725
  preview graph. Keep standalone preview builds in normal project builds; avoid
@@ -767,15 +771,14 @@ runtime Linaria provenance; `exercises` alone grants no class permission. The
767
771
  [local scenario reference](../skills/ads-designer/references/scenarios.md) describe
768
772
  the bounded checks and diagnostics.
769
773
  `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
774
+ fixtures, or a token or brand view. The tool contains no project
772
775
  token templates or copied values.
773
776
 
774
777
  Both tools default to `waitFor: "verified"`. The showcase requests
775
778
  `waitFor: "compiled"` to browse live feedback or the last verified graph while
776
779
  checks run. That mode can return `build.current: false`; it is visual feedback,
777
780
  not successful verification evidence. It does not alter capture, behavior or
778
- guarded-edit acceptance. Legacy HTML compilers retain their existing wait path.
781
+ guarded-edit acceptance.
779
782
  Registered browser verification URLs and `openPreviewScenario` explicitly select
780
783
  `waitFor=verified`; captures also retain verified readiness.
781
784
 
@@ -800,7 +803,7 @@ the tool result. `resources/read` supplies these registered resources:
800
803
  | URI | Content and owner |
801
804
  |-----|-------------------|
802
805
  | `ui://ads/preview` | Tool-owned App bootstrap, official App SDK and resource loader |
803
- | `ads://preview/manifest` | Project compiler's versioned scenario/dependency graph |
806
+ | `ads://preview/manifest` | ADS preview compiler's versioned scenario/dependency graph |
804
807
  | `ads://preview/live` | Current-source compiled feedback while checks are pending; explicitly unverified |
805
808
  | `ads://assets/<hash>.js` | Compiled shared runtime or scenario module |
806
809
  | `ads://assets/<hash>.css` | Extracted foundation or scenario styles |
@@ -820,11 +823,11 @@ CSS/fonts, then invokes the selected module's `mount(container)`. It caches
820
823
  unchanged resources and shared runtime modules within that App. Dynamic imports
821
824
  load their own dependency closure when invoked. Bun's self-contained worker
822
825
  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
826
+ Preview workers are compiled as self-contained classic scripts: Chrome rejects
827
+ module Blob worker fetches in opaque origins, so the resource compiler adapts those
825
828
  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.
829
+ is untouched. The managed compiler rejects worker output with unresolved module
830
+ imports; previews require self-contained worker output.
828
831
 
829
832
  The built-in showcase keeps this App alive across selections. It unmounts the
830
833
  previous scenario before mounting the next; scenario state resets while runtime
@@ -832,8 +835,8 @@ and unchanged styles/fonts are reused. External hosts may create a fresh App for
832
835
  each tool call. Each fresh App loads independently through the same contract.
833
836
  There is no special local direct-artifact rendering path.
834
837
 
835
- `ads_check` returns blocking `diagnostics` separately from bounded nonblocking
836
- `advisories`, with `advisoryCount`. The checks resource contains the full result.
838
+ `ads://project/checks` returns blocking `diagnostics` separately from nonblocking
839
+ `advisories`.
837
840
  For example, `pointer-capture-review` reports capture without a locally visible
838
841
  capture-loss handler. Cleanup can be delegated; inspect it and test cancellation,
839
842
  capture loss and teardown. A local handler suppresses that advisory but does not
@@ -858,8 +861,7 @@ for verification and diagnosis.
858
861
  For inline documents without an explicit App base URL, ADS supplies
859
862
  `<base href="about:srcdoc">` and permits the local `about:` base scheme in CSP.
860
863
  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
864
+ Explicit App bases remain subject to declared CSP origins. External hosts own this behavior in
863
865
  their loaders; adding scenario click handlers would conceal a host defect.
864
866
 
865
867
  Hosts need Apps support, server resource forwarding, native ESM/import maps and
@@ -882,16 +884,15 @@ area. Other Apps hosts retain the in-App status fallback.
882
884
  ### ADS-owned Bun compiler
883
885
 
884
886
  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:
887
+ application's bundler. Configure `framework`; ADS supplies its compiler and
888
+ publishes the graph to `.ds/preview/`:
887
889
 
888
890
  ```json
889
- {"framework":"react","mcp":{"previewManifest":".ds/preview/manifest.json"}}
891
+ {"framework":"react"}
890
892
  ```
891
893
 
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
894
+ Use `preact` for native Preact. The project retains its framework mount in
895
+ `showcase/mcp/main.ads.mount.tsx` under the ADS root. It exports
895
896
  `mountScenario(Scenario,container)` and returns cleanup. Bun selects the ADS JSX
896
897
  runtime, resolves the public alias and extracts Linaria through the shared tag
897
898
  resolver. Project application build settings stay under project control.
@@ -900,8 +901,8 @@ Run `ads compile .` for production previews or `ads compile . --watch` for a
900
901
  continuous compiler. Project setup can call `compilePreviews` from
901
902
  `@reqvire-org/ads/scenarios/compile`. Projects can integrate `ads check`,
902
903
  `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.
904
+ always runs native gates; `acceptance.scripts`, `acceptance.behavior` and
905
+ `acceptance.audit` choose additional scripts and whether the owners' tests and audit run. Oxlint is not an ADS gate dependency.
905
906
 
906
907
  MCP warms the prioritized view first, then compiles the remaining graph in
907
908
  one background build, without delaying service startup. One compiler job runs
@@ -930,7 +931,7 @@ reuses successful validation/output only when inputs, compiler/tool code,
930
931
  lockfile, recorded dependencies and content digests match. A source edit
931
932
  revalidates the project and incrementally updates the watched module graph. Both
932
933
  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
934
+ superseded build cannot become current. Files outside Bun's module graph still trigger
934
935
  validation and a reconciled build. Preview refresh retains the selected view's
935
936
  state when its complete static module/style/asset closure is unchanged, while
936
937
  rerunning its token/paint audits against the new manifest. Actual selected-view
@@ -944,7 +945,9 @@ selected view paints, using its existing integrity-checked byte cache. This does
944
945
  not import modules, attach styles or mount hidden examples; dynamic imports stay
945
946
  lazy. Preparation is bounded and never establishes passing evidence by itself.
946
947
 
947
- The graph lives beside the configured manifest, under `assets/`. Tiny
948
+ Graph assets live in the manifest's sibling `assets/` directory. Standalone
949
+ compilation writes `.ds/preview/manifest.json`; managed builders use private
950
+ directories under `.ds/preview/sessions/`. Tiny
948
951
  `.ds/scenarios/<id>/index.html` descriptors retain the reporter/registry contract;
949
952
  they are not standalone runnable previews. Six previous graph revisions retain
950
953
  old assets for in-flight reads; older references expire with a refresh error.
@@ -953,41 +956,15 @@ built-in host then recreates the App automatically; external hosts receive an
953
956
  explicit reopen diagnostic. Manifest size is capped at 2 MiB and individual resources
954
957
  at 16 MiB; those development transport limits do not alter production bundles.
955
958
 
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
959
  ### One client command, managed preview builds
972
960
 
973
- With a declared framework and preview manifest, `ads mcp` starts ADS's Bun
961
+ With a declared framework, `ads mcp` starts ADS's Bun
974
962
  compiler and warms the prioritized view followed by the remaining graph in
975
963
  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.
964
+ or separately managed server is needed. The same compiler also builds every draft
965
+ preview after the project's selected view. Existing views can remain visible while
966
+ building; source changes make their evidence stale until a verified update is
967
+ published.
991
968
  Standard output trees (`dist`, `build`, `target`, `out`, `.next`, `.nuxt`,
992
969
  `.svelte-kit`, `.turbo`) are excluded from preview watches and freshness inputs
993
970
  outside the configured source roots. Nested outputs are pruned before OS watches
@@ -1013,28 +990,21 @@ without JavaScript eval; external MCP hosts own their own CSP capabilities.
1013
990
  Keep renderer/transport adapters and their dependency notices explicit. A working
1014
991
  website or build alone does not establish that a binary renderer works in an App.
1015
992
 
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
993
  Both build output streams go to stderr, keeping stdout exclusively for MCP.
1023
994
  Opening an App waits up to 30 seconds for validated current output. A matching
1024
995
  success cache is republished in the new watcher session without recompilation;
1025
996
  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
997
+ HTML descriptors use private session output; standalone builds publish under
998
+ `.ds/preview/`. One cannot overwrite the other's success record. The
1028
999
  compiler caches at most six verified graph snapshots under `.ds/preview-graphs/`
1029
1000
  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
1001
+ do not track or use them as source. A timeout leaves the watcher running: inspect the
1032
1002
  logs and invoke the preview again. `ads_status` distinguishes watcher process
1033
1003
  state from reported build state. Token inspection and other ordinary tools
1034
1004
  remain available after a build failure. Invalid scenario metadata at startup and
1035
1005
  later source/validation failures remain reported while the compiler watches for
1036
1006
  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
1007
+ exits, fix the reported failure and invoke the preview again: concurrent requests share one
1038
1008
  fresh child and session. ADS does not run an unattended crash/restart loop.
1039
1009
 
1040
1010
  Changes to loaded compiler code or dependencies produce `ADS_PREVIEW_RESTART`;
@@ -1049,13 +1019,8 @@ receives SIGINT/SIGTERM. Active browser subscriptions do not retain the runtime.
1049
1019
  A small independent ownership guard watches a pipe from MCP; owner death closes
1050
1020
  that pipe even after SIGKILL. The guard terminates the owned compiler process
1051
1021
  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.
1022
+ shutdown; `ads_status.compiler.guardPid` identifies it while running. This requires
1023
+ no second user command. MCP tools accept no executable or command arguments.
1059
1024
 
1060
1025
  ### When a component changes
1061
1026
 
@@ -1068,37 +1033,29 @@ The MCP server detects the new artifact and sends resource-change notifications.
1068
1033
  The built-in host forwards the current selection after a successful build;
1069
1034
  the App reads the new manifest and remounts the scenario. Invoking the preview
1070
1035
  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.
1036
+ every two seconds when notifications are unavailable.
1073
1037
  No ADS package release or skill reinstall is needed for project component changes.
1074
1038
 
1075
1039
  ### When code or styles break
1076
1040
 
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,
1041
+ Use `ads_status.build` or the `ads://project/build` resource to inspect
1042
+ `building`, `ready` or `error` states, each preview's build revision, last successful revision,
1083
1043
  availability, freshness and diagnostics. Diagnostic positions are one-based.
1084
1044
  Tool summaries include the first three diagnostics per preview, capped at 1,000
1085
1045
  characters each, with counts and truncation flags; the build resource retains
1086
1046
  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,
1047
+ After source changes, unchanged output cannot remain current.
1048
+ Such previews retain their last successful revision and output,
1092
1049
  but report `current: false`, `stale: true` and `ADS_PREVIEW_STALE_SOURCE` while
1093
1050
  awaiting the current build. Changes during compilation also invalidate success.
1094
1051
 
1095
1052
  Accepted drafts explicitly invalidate the managed compiler after publication. Filesystem events provide fast updates; one-second
1096
1053
  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.
1054
+ or restarting MCP. Keep the ADS package used by managed compilation and MCP
1055
+ consistent; reports without source evidence cannot establish freshness.
1099
1056
 
1100
1057
  On each status transition MCP sends `notifications/resources/updated` to build
1101
- resource subscribers. Legacy connections use `resources/subscribe`; modern
1058
+ resource subscribers. Connections using the supported 2025 protocols use `resources/subscribe`; 2026
1102
1059
  connections use the SDK's `subscriptions/listen`. The notification identifies
1103
1060
  the resource to read; it does not carry the diagnostics. This follows the
1104
1061
  [resource subscription contract](https://modelcontextprotocol.io/specification/2025-11-25/server/resources#subscriptions).
@@ -1112,8 +1069,8 @@ failed build even when older output remains on disk. The reusable bootstrap and
1112
1069
  retained immutable assets stay readable so an existing App can report freshness;
1113
1070
  readability alone does not establish a current preview. After a successful rebuild the same
1114
1071
  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
1072
+ failure is reported; after fixing the source, configuration or dependency failure,
1073
+ invoke the preview again to start a fresh managed compiler. Partial or empty scenario discovery also exposes project-level
1117
1074
  diagnostics through `ads://project/build`.
1118
1075
 
1119
1076
  Already-mounted Apps show rebuilding, failure or a newer available revision
@@ -1123,66 +1080,15 @@ graph without replacing their iframe; failed builds leave the earlier view marke
1123
1080
  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
1081
  inspection is independent of component build failures.
1125
1082
 
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
1083
+ When build status is unavailable, freshness is `unreported`
1084
+ (`current: false`, `stale: null`). This does not establish a usable current
1085
+ preview; request the preview to start ADS's managed compiler and inspect its
1086
+ diagnostics. A running process or an existing HTML file is not proof of current
1087
+ source. `ads://project/checks` separately reports source/CSS
1129
1088
  syntax and architecture violations. Typechecks, behavior tests and browser
1130
1089
  review still cover runtime exceptions, incorrect layout and motion. MCP does
1131
1090
  not repair source automatically.
1132
1091
 
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
1092
  Invoke an App's entry **tool** to ask a capable host to render it. Reading its
1187
1093
  HTML resource is a data read, not evidence of a rendered view. When Apps are
1188
1094
  unavailable, tool results provide a bounded descriptor and the runtime's
@@ -1215,7 +1121,7 @@ The npm distribution includes the five ADS skills, references, empty designer
1215
1121
  scaffold, credits and upstream notices. Each `skill://ads/<name>/SKILL.md` has
1216
1122
  a complete manifest of file URIs, UTF-8 byte lengths and SHA-256 digests.
1217
1123
  Supporting files are read lazily via `resources/read`; directory browsing is
1218
- available on the newer protocol. The packaged scaffold's `.gitignore` remains
1124
+ available on `2026-07-28`. The packaged scaffold's `.gitignore` remains
1219
1125
  addressable at its original resource URI.
1220
1126
 
1221
1127
  `ads-import` assesses the destination and adapts selected source to its contracts.
@@ -1229,9 +1135,9 @@ project package-manager step before validating dependent changes.
1229
1135
 
1230
1136
  On protocol `2026-07-28`, discovery advertises `io.modelcontextprotocol/skills`
1231
1137
  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.
1138
+ `resources/directory/read`, and lists no skill tools. 2025-era connections, which
1139
+ have no native skills, get ordinary skill resources plus `ads_skills` and
1140
+ `ads_read_skill`; their metadata listing does not pretend to be native skill activation. Relative references resolve from the skill URI.
1235
1141
 
1236
1142
  The host controls integrity verification, user approval and activation. Reading
1237
1143
  `SKILL.md` through ordinary resources/tools does not prove activation. Local
@@ -1240,10 +1146,14 @@ installation with `npx skills` remains supported independently. See the
1240
1146
 
1241
1147
  ## Protocols, notifications and compatibility
1242
1148
 
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.
1149
+ ADS serves the same protocol versions on stdio and on HTTP: `2026-07-28` through
1150
+ discovery and per-request metadata, and `2024-10-07`, `2024-11-05`, `2025-03-26`,
1151
+ `2025-06-18` and `2025-11-25` through the initialize lifecycle. Over HTTP a
1152
+ 2025-era client gets a session (`Mcp-Session-Id`) with its GET stream for server
1153
+ notifications, as the 2025 Streamable HTTP transport defines. A client gets what
1154
+ its negotiated version defines; only features that version lacks, such as native
1155
+ Skills or `subscriptions/listen`, are unavailable to it. Apps use their separate
1156
+ `2026-01-26` UI handshake.
1247
1157
 
1248
1158
  Project source changes invalidate catalogue caches and notify resource
1249
1159
  list/read subscribers. Artifact and build-status changes notify preview/build
@@ -1252,18 +1162,17 @@ also notify the tool catalog.
1252
1162
  Publishing a changed asset catalogue also sends a resource-list notification;
1253
1163
  status-only transitions with unchanged resource identities need only updates.
1254
1164
  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.
1165
+ directories are detected. On `2026-07-28` connections, notifications use the SDK's
1166
+ `subscriptions/listen`; 2025-era connections, on stdio or in an HTTP session, get
1167
+ list-change and subscribed-resource notifications. Hosts may require a manual
1168
+ refresh.
1260
1169
 
1261
1170
  Client support varies by product and version. Ordinary tools and resources
1262
1171
  remain available without Apps or native Skills support. ADS uses bounded tool
1263
1172
  results and separate resource reads; previews also return showcase links for
1264
1173
  clients without Apps. Native Skills support is optional.
1265
1174
 
1266
- Automated tests verify both protocol eras, resource/skill integrity, prompt
1175
+ Automated tests verify both protocol eras on both transports, resource/skill integrity, prompt
1267
1176
  retrieval, bounded tools, initial preview readiness, managed rebuilds, process
1268
1177
  cleanup and resource notifications. SDK and
1269
1178
  browser-host tests are distinct from a real Codex/Claude session. In a new host,
@@ -1274,13 +1183,11 @@ instruction reads alone do not establish Apps/Skills activation.
1274
1183
 
1275
1184
  ### Token sample verification
1276
1185
 
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.
1186
+ Token views take their bindings from `tokens/catalog.ads.json`: each record has
1187
+ `{ token, property, probe }`. The same bindings travel in the compiled resource manifest or
1188
+ self-contained App seed.
1282
1189
 
1283
- The renderer identifies its styled sample elements through `data-ads-token` and
1190
+ The view marks its styled sample elements with `data-ads-token` and
1284
1191
  `data-ads-property`. After mounting and font loading, the App uses the browser's CSS
1285
1192
  engine to validate each declared binding and project-supplied probe, then checks
1286
1193
  that changing the token changes the sample's computed property. It restores token
@@ -1311,7 +1218,7 @@ contract source for additional relationships. Read the relevant source range;
1311
1218
  these summaries establish registration, not completed verification. Detailed
1312
1219
  results remain bounded and paged.
1313
1220
 
1314
- See [CONTRACTS.md](CONTRACTS.md) for the static schema, compatibility and browser audits.
1221
+ See [CONTRACTS.md](CONTRACTS.md) for the static schema, compatibility and render audits.
1315
1222
  The same guide is available at `ads://guides/contracts`.
1316
1223
 
1317
1224
  A registered binding producer gives a per-theme value with `themed()` or
@@ -1328,48 +1235,6 @@ reachable use; registered browser checks establish the effects. Private visual
1328
1235
  behavior subjects use explicit `role: "implementation"`; headless defaults and
1329
1236
  shared-controller gates remain enabled. See [CONTRACTS.md](CONTRACTS.md).
1330
1237
 
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
1238
  Build errors carry optional `failure: {scope, phase}` metadata. `scope` is
1374
1239
  `project`, `graph` or `scenario`; `phase` is `validation`, `discovery` or `build`.
1375
1240
  A failed project gate blocks verification across previews; it does not establish
@@ -1382,37 +1247,36 @@ scenario's failure. A retained earlier view is not current-source evidence.
1382
1247
 
1383
1248
  `ads_validate({})` and `ads validate` share the full validation engine.
1384
1249
  `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
1250
+ `ads validate` is the project gate: `ads check`, `acceptance.scripts` then
1251
+ `validation.scripts`, current production previews, and every registered behavior test
1252
+ and render audit its change set reaches; it writes nothing. With scope `all` that is
1253
+ everything; with `scope:"changed"` it is what changed since the last successful full
1254
+ run (configuration, foundation or token changes widen it to everything), the check to
1255
+ run after direct edits or a series of accepted drafts. `acceptance.behavior` and
1256
+ `acceptance.audit` affect draft acceptance only. Its `a11y-axe`,
1257
+ `a11y-non-text-contrast` and `layout-overflow` findings are errors, and skipped tests
1258
+ are reported as skipped, without a passing label. Draft preview/edit runs no gate.
1259
+ Draft acceptance checks its candidate before writing source: `ads check`,
1260
+ `acceptance.scripts`, and the draft owners' own behavior tests and render audit.
1261
+ `mcp.auditPages` (1–16, default 4) sets how many pages render at once. Any `a11y-axe`, `a11y-non-text-contrast` or
1262
+ `layout-overflow` error, a scenario that fails all 3 attempts (`render-audit`, naming it and the
1399
1263
  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
1264
+ cannot run (`render-audit`: no project Playwright or browser; the message names what to
1401
1265
  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
1266
+ `render-audit` check lists the audited scenarios, themes, brands and
1267
+ timing. The MCP tool
1404
1268
  runs trusted configured project commands with cancellation and bounded output; it
1405
1269
  is available with source mutations disabled and writes only build/evidence output
1406
- when project commands honor their checking contract. Summaries include policy, scope,
1270
+ when project commands honor their checking contract. Summaries include scope,
1407
1271
  requestedScope, fallback reason, sourceRevision, current, elapsedMs and resultId.
1408
1272
  Read diagnostics/checks/outcomes with `ads_results`; progress and the latest
1409
1273
  validation summary are in `ads_status.validation`. Retention is latest per kind:
1410
- validation, verification and mutation are independent.
1274
+ validation and mutation are independent.
1411
1275
 
1412
1276
  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
1277
+ boundaries, script selection and limits. Full runs include configured scripts,
1278
+ registered guarantees and every UI scenario; changed mode narrows behavior owners and
1279
+ audited scenarios while core and opaque project scripts remain complete. Neither mode rewrites npm test commands
1416
1280
  or treats compiled live previews as verification evidence.
1417
1281
 
1418
1282
  Source freshness covers the configured ADS and UI roots, public assets, local
@@ -1445,15 +1309,14 @@ selected commands; ADS cannot infer arbitrary filesystem access inside a command
1445
1309
  ## Shared-process execution coordination
1446
1310
 
1447
1311
  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
1312
+ clients. `ads_validate` (both scopes) and `ads_accept` acquire
1449
1313
  it before work and retain it
1450
1314
  through child/ownership-guard cleanup and result publication. Changed scope still
1451
1315
  runs full project scripts. Parallel units and `wait: true` are not supported.
1452
1316
 
1453
1317
  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"]`)
1318
+ run ID, instance ID, operation, owner/client label where known, requested
1319
+ and effective scope, units, start time and progress. Client labels (including optional request `_meta["ads/clientId"]`)
1457
1320
  are advisory metadata, not authentication. Stateless HTTP requests do not define
1458
1321
  persistent client sessions. The run ID is the result ID; any connected project
1459
1322
  client can read retained evidence by ID after reconnecting.