@reqvire-org/ads 0.3.53 → 0.4.0

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 (138) hide show
  1. package/README.md +9 -8
  2. package/dist/assets.mjs +1 -1
  3. package/dist/behaviors.mjs +6 -5
  4. package/dist/boundaries.mjs +5 -5
  5. package/dist/browser-audit.mjs +10 -5
  6. package/dist/bun-compiler.mjs +14 -7
  7. package/dist/check-service.mjs +83 -0
  8. package/dist/check.mjs +16 -17
  9. package/dist/cli.mjs +4 -2
  10. package/dist/config.mjs +17 -40
  11. package/dist/contracts.d.mts +9 -0
  12. package/dist/fonts-generated.mjs +2 -0
  13. package/dist/generated-entries.mjs +131 -0
  14. package/dist/icons.mjs +1 -1
  15. package/dist/init.mjs +11 -32
  16. package/dist/layers.mjs +7 -3
  17. package/dist/lint-config.mjs +4 -2
  18. package/dist/mcp/catalog.mjs +2 -1
  19. package/dist/mcp/context.mjs +3 -3
  20. package/dist/mcp/drafts.mjs +136 -121
  21. package/dist/mcp/mutations.mjs +65 -19
  22. package/dist/mcp/preview-watch.mjs +31 -5
  23. package/dist/mcp/prompts.mjs +1 -1
  24. package/dist/mcp/server.mjs +79 -38
  25. package/dist/mcp/showcase-host.mjs +20 -7
  26. package/dist/oxlint.mjs +3 -2
  27. package/dist/program-cache.mjs +36 -0
  28. package/dist/public-api.mjs +2 -1
  29. package/dist/scenarios-compiler.mjs +82 -14
  30. package/dist/scenarios-vite.mjs +1 -1
  31. package/dist/scenarios.mjs +4 -3
  32. package/dist/showcase/client.bundle.js +1 -1
  33. package/dist/showcase/index.html +2 -2
  34. package/dist/skills/ads-break-ui/SKILL.md +25 -28
  35. package/dist/skills/ads-break-ui/references/behaviors.md +7 -6
  36. package/dist/skills/ads-break-ui/references/captures.md +7 -32
  37. package/dist/skills/ads-break-ui/references/contracts.md +58 -25
  38. package/dist/skills/ads-break-ui/references/drafts.md +59 -43
  39. package/dist/skills/ads-break-ui/references/evidence.md +1 -1
  40. package/dist/skills/ads-break-ui/references/guarded-editing.md +58 -47
  41. package/dist/skills/ads-break-ui/references/review.md +9 -8
  42. package/dist/skills/ads-break-ui/references/scenarios.md +1 -1
  43. package/dist/skills/ads-break-ui/references/validation.md +8 -4
  44. package/dist/skills/ads-break-ui/references/workflows.md +15 -8
  45. package/dist/skills/ads-designer/SKILL.md +25 -28
  46. package/dist/skills/ads-designer/references/accessibility.md +9 -5
  47. package/dist/skills/ads-designer/references/behaviors.md +7 -6
  48. package/dist/skills/ads-designer/references/captures.md +7 -32
  49. package/dist/skills/ads-designer/references/cli.md +5 -1
  50. package/dist/skills/ads-designer/references/contracts.md +58 -25
  51. package/dist/skills/ads-designer/references/drafts.md +59 -43
  52. package/dist/skills/ads-designer/references/evidence.md +1 -1
  53. package/dist/skills/ads-designer/references/guarded-editing.md +58 -47
  54. package/dist/skills/ads-designer/references/performance.md +3 -2
  55. package/dist/skills/ads-designer/references/review.md +9 -8
  56. package/dist/skills/ads-designer/references/scenarios.md +1 -1
  57. package/dist/skills/ads-designer/references/validation.md +8 -4
  58. package/dist/skills/ads-designer/references/workflows.md +15 -8
  59. package/dist/skills/ads-import/SKILL.md +25 -28
  60. package/dist/skills/ads-import/references/behaviors.md +7 -6
  61. package/dist/skills/ads-import/references/captures.md +7 -32
  62. package/dist/skills/ads-import/references/cli.md +5 -1
  63. package/dist/skills/ads-import/references/contracts.md +58 -25
  64. package/dist/skills/ads-import/references/drafts.md +59 -43
  65. package/dist/skills/ads-import/references/evidence.md +1 -1
  66. package/dist/skills/ads-import/references/guarded-editing.md +58 -47
  67. package/dist/skills/ads-import/references/review.md +9 -8
  68. package/dist/skills/ads-import/references/scenarios.md +1 -1
  69. package/dist/skills/ads-import/references/validation.md +8 -4
  70. package/dist/skills/ads-import/references/workflows.md +15 -8
  71. package/dist/skills/ads-motion/SKILL.md +25 -28
  72. package/dist/skills/ads-motion/references/behaviors.md +7 -6
  73. package/dist/skills/ads-motion/references/captures.md +7 -32
  74. package/dist/skills/ads-motion/references/contracts.md +58 -25
  75. package/dist/skills/ads-motion/references/drafts.md +59 -43
  76. package/dist/skills/ads-motion/references/evidence.md +1 -1
  77. package/dist/skills/ads-motion/references/guarded-editing.md +58 -47
  78. package/dist/skills/ads-motion/references/review.md +9 -8
  79. package/dist/skills/ads-motion/references/scenarios.md +1 -1
  80. package/dist/skills/ads-motion/references/validation.md +8 -4
  81. package/dist/skills/ads-motion/references/workflows.md +15 -8
  82. package/dist/skills/ads-port/SKILL.md +25 -28
  83. package/dist/skills/ads-port/references/behaviors.md +7 -6
  84. package/dist/skills/ads-port/references/captures.md +7 -32
  85. package/dist/skills/ads-port/references/cli.md +5 -1
  86. package/dist/skills/ads-port/references/contracts.md +58 -25
  87. package/dist/skills/ads-port/references/drafts.md +59 -43
  88. package/dist/skills/ads-port/references/evidence.md +1 -1
  89. package/dist/skills/ads-port/references/guarded-editing.md +58 -47
  90. package/dist/skills/ads-port/references/native-implementation.md +6 -6
  91. package/dist/skills/ads-port/references/review.md +9 -8
  92. package/dist/skills/ads-port/references/scenarios.md +1 -1
  93. package/dist/skills/ads-port/references/validation.md +8 -4
  94. package/dist/skills/ads-port/references/workflows.md +15 -8
  95. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.ads.contract.ts +6 -0
  96. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.ads.contract.ts +6 -0
  97. package/dist/starters/preact/ds.config.json +0 -14
  98. package/dist/starters/react/README.md +9 -5
  99. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.exports.ts +1 -0
  100. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.exports.ts +1 -0
  101. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.exports.ts +1 -0
  102. package/dist/starters/react/design-system/components/Content/Image/Image.ads.exports.ts +1 -0
  103. package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.exports.ts +1 -0
  104. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.exports.ts +1 -0
  105. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.contract.ts +6 -0
  106. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.exports.ts +1 -0
  107. package/dist/starters/react/design-system/controllers/Palette/Palette.ads.exports.ts +1 -0
  108. package/dist/starters/react/design-system/index.ts +3 -7
  109. package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.exports.ts +1 -0
  110. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.ads.exports.ts +1 -0
  111. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +1 -0
  112. package/dist/starters/react/design-system/review/grid-cell/GridCell.ads.exports.ts +1 -0
  113. package/dist/starters/react/design-system/review/index.ts +4 -3
  114. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +1 -0
  115. package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.contract.ts +6 -0
  116. package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.exports.ts +1 -0
  117. package/dist/starters/react/design-system/styles.css +1 -0
  118. package/dist/starters/react/ds.config.json +0 -14
  119. package/dist/style-boundaries.mjs +7 -6
  120. package/dist/test-boundaries.mjs +2 -2
  121. package/dist/themes-watch.mjs +9 -3
  122. package/dist/token-fixtures.mjs +1 -1
  123. package/dist/unit-contracts.mjs +38 -4
  124. package/dist/units.mjs +16 -91
  125. package/dist/validation-checks.mjs +7 -1
  126. package/docs/ADS.md +10 -10
  127. package/docs/ARCHITECTURE.md +79 -43
  128. package/docs/BEHAVIORS.md +8 -7
  129. package/docs/CACHING.md +15 -6
  130. package/docs/CHANGELOG.md +61 -12
  131. package/docs/COMPARISON.md +1 -1
  132. package/docs/CONTRACTS.md +10 -25
  133. package/docs/GUIDE.md +64 -55
  134. package/docs/MCP.md +116 -151
  135. package/package.json +1 -1
  136. package/dist/contract-migration.mjs +0 -110
  137. package/dist/mcp/draft-exports.mjs +0 -40
  138. package/dist/mcp/edit-preparation.mjs +0 -115
package/docs/GUIDE.md CHANGED
@@ -36,11 +36,13 @@ An agent uses the MCP tools to inspect, edit and review the project:
36
36
  4. Select the editing route, independently of `mutations.enabled`. With direct
37
37
  source access, edit owned files and use the existing compiler/preview; run
38
38
  current gates and relevant project/behavior checks before finishing. With
39
- MCP-only access and mutation tools enabled, discover owners with `ads_units`,
40
- use `ads_create_draft`, `ads_read_file`/`ads_update_draft`, rendered
41
- `ads_show_draft` review and exact-revision `ads_accept`. Accept dependencies
42
- first and review dependents again. Guarded patches/transactions remain
43
- available for MCP-only focused repairs/migrations. A read-only MCP connection
39
+ MCP-only access and mutation tools enabled, every change goes through a draft:
40
+ discover owners with `ads_units`, use `ads_create_draft`,
41
+ `ads_read_file`/`ads_update_draft` (file contents or a Git diff), rendered
42
+ `ads_show_draft` review, an optional `ads_accept` dry run and exact-revision
43
+ `ads_accept`. An owner is in at most one open draft. Accept dependencies first and
44
+ review dependents again. After a series of accepted drafts, run the stage check
45
+ `ads_validate` (validation policy, `scope:"changed"`). A read-only MCP connection
44
46
  supports direct editors; it cannot edit for an MCP-only client.
45
47
  5. Review diagnostics, registered behavior evidence and the rendered result.
46
48
  `ads_behaviors` discovers guarantees; `ads_verify` executes selected registered
@@ -55,9 +57,8 @@ local, are untriaged, and do not bypass guards. Read `ads://guides/reporting` or
55
57
 
56
58
  For an on-demand screenshot, call `ads_capture` with a discovered scenario ID and
57
59
  optionally a named `captureTargets` element, theme and viewport. To compare a
58
- proposed change before applying it, add `screenshot:true` and an explicit
59
- `captures:[{scenario:"<discovered ID>"}]` selection to the patch/transaction dry run.
60
- Normal patches and dry runs create no screenshots. Capture uses project-installed
60
+ draft with accepted source, pass its `draft` id and exact `revision`; acceptance and
61
+ its dry run create no screenshots. Capture uses project-installed
61
62
  Playwright and its browser; ADS installs neither (`ads create` and `ads init` declare
62
63
  `@playwright/test`; run `npx playwright install chromium` once).
63
64
 
@@ -448,11 +449,15 @@ Guarded MCP editing is opt-in. Its mandatory checks and optional project
448
449
  `acceptance.checks` scripts run in a temporary project copy with installed
449
450
  dependencies. Project scripts default to 60 seconds each; use the explicit
450
451
  `mcp.mutationCheckTimeoutMs` budget (100–300000 ms) for measured slower builds.
452
+ A preview waits up to 5 minutes for its build, including the first build after the
453
+ MCP server starts; set `mcp.previewBuildTimeoutMs` (1000–3600000 ms) to change it.
451
454
  Behavior profiles have a separate whole-run budget.
452
455
  Set `acceptance.behaviorChecks` to require affected registered tests at acceptance.
453
456
  Set `validation.checks` and `validation.behaviorChecks` independently for audits.
454
- Both script lists default to empty; no names are inferred. Both policies run the
455
- browser audit; `"browserAudit": false` in a policy turns its audit off. Direct source edits
457
+ Both script lists default to empty; no names are inferred. The validation policy runs
458
+ the full browser audit (`validation.browserAudit: false` turns it off); draft
459
+ acceptance audits per `acceptance.browserAudit`: `"owners"` (default), `"affected"` or
460
+ `false`. Direct source edits
456
461
  can run `ads validate --policy acceptance`; ordinary `ads validate` selects the
457
462
  validation policy. See [policy guidance](../skills/ads-designer/references/validation.md).
458
463
  When the acceptance policy requires affected registered behavior checks (or
@@ -512,9 +517,12 @@ There is no warning level.
512
517
  | `ads audit` | axe-core (WCAG A/AA rules), ADS's non-text contrast check, `layout-shift` and `layout-overflow` at 390, 768 and 1280 px in every component, pattern and composition scenario, once per brand and theme, and in a 240 px container for components and patterns |
513
518
  | `ads validate` | The validation policy: `ads check` rules, `validation.checks` scripts, current previews, registered behavior checks (`validation.behaviorChecks`, default `true`) and the browser audit |
514
519
  | `ads validate --policy acceptance` | The acceptance policy against current source, applying nothing: `ads check` rules, `acceptance.checks` scripts, affected behavior checks when `acceptance.behaviorChecks` is `true` (default `false`) and the browser audit |
515
- | MCP acceptance | `ads_accept`, `ads_apply_patch` and `ads_apply_transaction` run the acceptance policy on an isolated candidate and write no source unless it passes; the audit covers the candidate's affected UI scenarios (all of them after configuration, foundation, token or asset changes) |
520
+ | MCP acceptance | `ads_accept` runs the acceptance policy on the draft's candidate and writes no source unless it passes (`dryRun:true` writes nothing); `acceptance.browserAudit` audits the draft owners' own UI scenarios (`"owners"`, default), every scenario the change reaches (`"affected"`; all of them after configuration, foundation, token or asset changes) or none (`false`) |
521
+ | Stage check | After a series of accepted drafts, `ads_validate` with the validation policy and `scope:"changed"` audits everything they reached and runs the registered behavior checks |
516
522
 
517
- **Browser audit.** Both policies run it by default. Each `a11y-axe`,
523
+ **Browser audit.** Both policies run it by default: the validation policy over every
524
+ scenario, acceptance over the draft owners' own scenarios unless set to `"affected"`.
525
+ `mcp.auditPages` (1–16, default 4) sets how many pages render at once. Each `a11y-axe`,
518
526
  `a11y-non-text-contrast`, `layout-overflow` and `layout-shift` finding is an error that fails the policy, and an audit that cannot run fails it with a `browser-audit` error
519
527
  naming what to install. Each `a11y-incomplete` finding is an info item that fails nothing: axe could
520
528
  not decide that rule on those elements, so check it by hand. It names the axe rule, scenario, themes,
@@ -527,12 +535,12 @@ npx playwright install chromium # Bun: bunx playwright install chromium
527
535
  ```
528
536
 
529
537
  `mcp.capture` selects `browser` (`chromium`, `firefox`, `webkit`), an installed Chrome
530
- `channel` such as `"chrome"`, and `timeoutMs`. To turn the audit off for a policy, set
531
- `browserAudit` to `false` in `ds.config.json`:
538
+ `channel` such as `"chrome"`, and `timeoutMs`. To choose the audits, set
539
+ `browserAudit` in `ds.config.json`:
532
540
 
533
541
  ```json
534
542
  {
535
- "acceptance": { "checks": [], "behaviorChecks": false, "browserAudit": false },
543
+ "acceptance": { "checks": [], "behaviorChecks": false, "browserAudit": "affected" },
536
544
  "validation": { "checks": [], "behaviorChecks": true, "browserAudit": false }
537
545
  }
538
546
  ```
@@ -715,8 +723,8 @@ project with no `@font-face` gets none of these.
715
723
 
716
724
  The starters' `Image` lazily loads and reserves space; `priority` marks the view's main visible
717
725
  image. When body or heading text uses a font from `tokens/fonts.css`, `ads assets` writes
718
- `tokens/fonts.preload.generated.ts`: call its `preloadFonts()` in the app entry before the first
719
- render. It imports the files through the bundler, Vite or Bun, so the preload and the stylesheet share
726
+ `tokens/fonts.preload.generated.ts`, and the generated public barrel re-exports it: call
727
+ `preloadFonts()` from the public entry in the app entry before the first render. It imports the files through the bundler, Vite or Bun, so the preload and the stylesheet share
720
728
  one URL. For a preload earlier than JavaScript, a build step or prerender can call `fontPreloadTags()`
721
729
  for `<link>` tags or `fontPreloadHeader()` for a `Link` header value; `fontPreloads` is the same list.
722
730
  A project that sets heading fonts per component names what to preload in `assets.preloadFonts`:
@@ -791,7 +799,7 @@ loads only the selected scenario's dependencies. TSX/Linaria compilation still
791
799
  happens automatically. Accepted configuration-unit mutations replace the managed
792
800
  compiler while keeping MCP connected. External compiler/configuration or dependency
793
801
  changes may require restarting the runtime; ordinary owner/fixture/style/asset edits do not.
794
- See [the compiler contract](MCP.md#configure-the-project-compiler) for revisions,
802
+ See [the compiler contract](MCP.md#one-client-command-managed-preview-builds) for revisions,
795
803
  diagnostics, invalidation and the shared resource graph.
796
804
 
797
805
  Colocate `<Owner>.ads.scenario.tsx` and `<Owner>.ads.fixture.ts` beside tokens and
@@ -1028,10 +1036,10 @@ and composition scenario, once per declared brand and theme (`--scenario`, `--th
1028
1036
  `--brand` narrow it). Each violation is an `a11y-axe` error naming the axe rule, WCAG
1029
1037
  criterion, themes and brands, failing elements and help link, and `ads audit` exits 1. It
1030
1038
  needs the project's Playwright and browser, as captures do. The validation and acceptance
1031
- policies run it too unless their `browserAudit` is `false`; MCP draft acceptance and
1032
- guarded patches audit the candidate's affected scenarios before
1033
- writing source, and an `a11y-axe`, `a11y-non-text-contrast` or `layout-overflow` error rejects
1034
- the change.
1039
+ policies run it too unless their `browserAudit` is `false`; MCP draft acceptance audits
1040
+ the draft owners' own scenarios (or, with `"affected"`, every scenario the change
1041
+ reaches) before writing source, and an `a11y-axe`, `a11y-non-text-contrast` or
1042
+ `layout-overflow` error rejects the change.
1035
1043
  `ads tokens --format dtcg` exports the tokens as W3C Design Tokens JSON for design tools
1036
1044
  (`--theme <name>` and `--brand <name>` select one context).
1037
1045
 
@@ -1204,17 +1212,30 @@ and required MCP checks. The optional linter adapter is one project choice.
1204
1212
 
1205
1213
  ### Project boundaries and assets
1206
1214
 
1207
- Optional configuration adds only the permissions and paths that the project
1208
- actually uses; the tool contains no component or product-specific lists:
1215
+ Style permissions belong to their owner, in its `<Owner>.ads.contract.ts`, with paths
1216
+ relative to the contract:
1217
+
1218
+ ```ts
1219
+ export default {
1220
+ schemaVersion: 1,
1221
+ styles: { writes: { "./geometry.ts": ["--ds-panel-height"] }, inline: [] },
1222
+ customization: ["--ds-panel-gap"],
1223
+ } satisfies UnitContract;
1224
+ ```
1225
+
1226
+ `styles.writes` permits only the listed CSS properties in that exact file. Use
1227
+ kebab-case (`user-select`) or an exact custom property. Static assignments,
1228
+ `setProperty`, and `removeProperty` can use that permission; `cssText`, computed
1229
+ property names, escaped style objects, and bulk writes remain forbidden. Plain
1230
+ property reads are allowed. `styles.inline` is a separate file-level JSX/type
1231
+ exception and never permits imperative writes by itself. `customization` lists a
1232
+ component's non-state `--ds-*` variables that patterns, the showcase and the
1233
+ application may set.
1234
+
1235
+ Optional asset configuration adds only the paths that the project actually uses:
1209
1236
 
1210
1237
  ```json
1211
1238
  {
1212
- "boundaries": {
1213
- "styleWrites": [
1214
- { "file": "design-system/components/geometry.ts", "properties": ["--ds-panel-height"] }
1215
- ],
1216
- "componentVariables": ["--ds-panel-gap"]
1217
- },
1218
1239
  "assets": {
1219
1240
  "iconSource": "assets/brand/app-icon.svg",
1220
1241
  "publicDirs": ["public/assets"],
@@ -1224,13 +1245,7 @@ actually uses; the tool contains no component or product-specific lists:
1224
1245
  }
1225
1246
  ```
1226
1247
 
1227
- Merge these sections into `ds.config.json`. `styleWrites` permits only the
1228
- listed CSS properties in that exact file. Use kebab-case (`user-select`) or an
1229
- exact custom property. Static assignments, `setProperty`, and `removeProperty`
1230
- can use that boundary; `cssText`, computed property names, escaped style
1231
- objects, and bulk writes remain forbidden. Plain property reads are allowed.
1232
- `inlineStyleFiles` is a separate file-level JSX/type exception and never
1233
- permits imperative writes by itself.
1248
+ Merge this section into `ds.config.json`.
1234
1249
 
1235
1250
  Asset checks compare `design-system/assets/` with each configured public mount
1236
1251
  and `design-system/showcase/public/assets/`, adjusting for `dsDir`. A relative
@@ -1262,14 +1277,17 @@ Paths stay within the receiving project:
1262
1277
  "stylesEntry": "styles.css",
1263
1278
  "tokenDir": "tokens",
1264
1279
  "themes": [{ "name": "light", "scheme": "light" }, { "name": "dark", "scheme": "dark" }],
1265
- "inlineStyleFiles": [],
1266
1280
  "layout": { "widthTokens": [], "fixedWidthUnits": [] },
1267
1281
  "oxlint": { "plugins": [], "rules": {} }
1268
1282
  }
1269
1283
  ```
1270
1284
 
1271
1285
  `layout` declares allowed width tokens and owners with fixed widths; see
1272
- [Checks and guards](#checks-and-guards).
1286
+ [Checks and guards](#checks-and-guards). `publicEntry`, `reviewEntry` and
1287
+ `stylesEntry` name generated files: ADS writes the barrels from the owners'
1288
+ `<Owner>.ads.exports.ts` files and the styles entry from the token sheets (`ads
1289
+ assets`, the showcase and the MCP server); `ads check` reports one that is stale or
1290
+ edited by hand.
1273
1291
 
1274
1292
  These source-layout defaults apply when the file is absent; the example omits
1275
1293
  the required init-time framework choice. Run `ads init --framework react` (or
@@ -1300,15 +1318,13 @@ native ADS import guards enforce this boundary. It does not
1300
1318
  allow application code to import private ADS modules or build helpers to import
1301
1319
  private UI implementation.
1302
1320
 
1303
- Unused `inlineStyleFiles` entries and `styleWrites` properties fail the core
1304
- `stale-style-boundary` check. Inline permissions recognize JSX, imported UI
1305
- factories and UI `CSSProperties` use; property permissions require an exact write
1306
- or removal, not a read. For MCP migrations, include the owner's source and only
1307
- its own exception entries through its `ds.config.json` companion. Preserve peer
1308
- permissions and other settings. A future filename can be valid configuration,
1309
- but the complete checked candidate must contain the matching use.
1321
+ Unused `styles.inline` entries and `styles.writes` properties fail the core
1322
+ `stale-style-boundary` check, reported on the contract. Inline permissions recognize
1323
+ JSX, imported UI factories and UI `CSSProperties` use; property permissions require
1324
+ an exact write or removal, not a read. Change an owner's source and its contract
1325
+ permissions together in its draft.
1310
1326
 
1311
- `inlineStyleFiles` should name only documented geometry/renderer boundaries,
1327
+ `styles.inline` should name only documented geometry/renderer boundaries,
1312
1328
  not broad styling exceptions. Ignore `.ds/`; generated paths refer to the project
1313
1329
  and its locally installed tool.
1314
1330
 
@@ -1360,14 +1376,7 @@ scenario, fixture, helpers, test, spec or behavior.spec. Optional
1360
1376
  paint and declarative-consumer contracts. Production APIs/types stay in runtime
1361
1377
  files. ADS reads contract data statically; no project import runs during discovery.
1362
1378
  See [CONTRACTS.md](CONTRACTS.md) for exact fields, supported producer forms and
1363
- source/browser limits. Older JSON and unmarked recognized development filenames
1364
- remain supported during migration.
1365
-
1366
- With supporting tooling installed and MCP reconnected, discover one owner, call
1367
- `ads_prepare_patch` with `action: "migrate"`, inspect the local draft/notes, and use
1368
- normal diff, dry-run and apply gates. This never changes live source by itself.
1369
- Review custom runner globs and unimportable private subjects before application;
1370
- migrate passing owners in stages and preserve pending agent drafts.
1379
+ source/browser limits. Only `.ads.`-marked filenames are development roles.
1371
1380
 
1372
1381
  Project scale policies remain explicit. A registered check can call
1373
1382
  `inspectTokenOrigins(inspectTokens(root), target, {stopAt: allowedSharedTokens})`