@reqvire-org/ads 0.3.25 → 0.3.26

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 (96) hide show
  1. package/README.md +7 -5
  2. package/dist/bootstrap-ds/ADS.md +28 -30
  3. package/dist/bootstrap-ds/README.md +6 -6
  4. package/dist/bootstrap-ds/design-system/assets/brand/README.md +3 -2
  5. package/dist/boundaries.mjs +0 -3
  6. package/dist/check.mjs +15 -22
  7. package/dist/config.mjs +3 -7
  8. package/dist/contract-migration.mjs +2 -2
  9. package/dist/contracts.d.mts +0 -1
  10. package/dist/design-values.mjs +81 -0
  11. package/dist/evidence.mjs +1 -1
  12. package/dist/mcp/context.mjs +3 -3
  13. package/dist/mcp/prompts.mjs +4 -4
  14. package/dist/mcp/reports.mjs +101 -0
  15. package/dist/mcp/server.mjs +38 -3
  16. package/dist/paint-contracts.mjs +4 -5
  17. package/dist/preview-resources.mjs +1 -2
  18. package/dist/scenarios.mjs +14 -14
  19. package/dist/skills/README.md +7 -3
  20. package/dist/skills/ads-break-ui/SKILL.md +23 -13
  21. package/dist/skills/ads-break-ui/references/atomic-styles.md +9 -2
  22. package/dist/skills/ads-break-ui/references/behaviors.md +393 -0
  23. package/dist/skills/ads-break-ui/references/captures.md +1 -1
  24. package/dist/skills/ads-break-ui/references/contracts.md +18 -37
  25. package/dist/skills/ads-break-ui/references/design-data.md +91 -0
  26. package/dist/skills/ads-break-ui/references/evidence.md +4 -0
  27. package/dist/skills/ads-break-ui/references/guarded-editing.md +7 -11
  28. package/dist/skills/ads-break-ui/references/reporting.md +101 -0
  29. package/dist/skills/ads-break-ui/references/scenarios.md +9 -15
  30. package/dist/skills/ads-designer/SKILL.md +25 -15
  31. package/dist/skills/ads-designer/assets/bootstrap-ds/ADS.md +28 -30
  32. package/dist/skills/ads-designer/assets/bootstrap-ds/README.md +6 -6
  33. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/README.md +3 -2
  34. package/dist/skills/ads-designer/references/atomic-styles.md +9 -2
  35. package/dist/skills/ads-designer/references/behaviors.md +393 -0
  36. package/dist/skills/ads-designer/references/captures.md +1 -1
  37. package/dist/skills/ads-designer/references/contracts.md +18 -37
  38. package/dist/skills/ads-designer/references/design-craft.md +1 -1
  39. package/dist/skills/ads-designer/references/design-data.md +91 -0
  40. package/dist/skills/ads-designer/references/evidence.md +4 -0
  41. package/dist/skills/ads-designer/references/guarded-editing.md +7 -11
  42. package/dist/skills/ads-designer/references/mobile.md +1 -1
  43. package/dist/skills/ads-designer/references/reporting.md +101 -0
  44. package/dist/skills/ads-designer/references/scenarios.md +9 -15
  45. package/dist/skills/ads-import/SKILL.md +28 -17
  46. package/dist/skills/ads-import/references/atomic-styles.md +9 -2
  47. package/dist/skills/ads-import/references/behaviors.md +393 -0
  48. package/dist/skills/ads-import/references/branding.md +1 -1
  49. package/dist/skills/ads-import/references/captures.md +1 -1
  50. package/dist/skills/ads-import/references/contracts.md +18 -37
  51. package/dist/skills/ads-import/references/design-data.md +91 -0
  52. package/dist/skills/ads-import/references/evidence.md +4 -0
  53. package/dist/skills/ads-import/references/guarded-editing.md +7 -11
  54. package/dist/skills/ads-import/references/implementation.md +3 -2
  55. package/dist/skills/ads-import/references/reporting.md +101 -0
  56. package/dist/skills/ads-import/references/scenarios.md +9 -15
  57. package/dist/skills/ads-import/references/tokens.md +11 -9
  58. package/dist/skills/ads-motion/SKILL.md +22 -12
  59. package/dist/skills/ads-motion/references/atomic-styles.md +9 -2
  60. package/dist/skills/ads-motion/references/behaviors.md +393 -0
  61. package/dist/skills/ads-motion/references/captures.md +1 -1
  62. package/dist/skills/ads-motion/references/contracts.md +18 -37
  63. package/dist/skills/ads-motion/references/design-data.md +91 -0
  64. package/dist/skills/ads-motion/references/evidence.md +4 -0
  65. package/dist/skills/ads-motion/references/guarded-editing.md +7 -11
  66. package/dist/skills/ads-motion/references/reporting.md +101 -0
  67. package/dist/skills/ads-motion/references/scenarios.md +9 -15
  68. package/dist/skills/{ads-migrate → ads-port}/SKILL.md +58 -31
  69. package/dist/skills/ads-port/agents/openai.yaml +4 -0
  70. package/dist/skills/{ads-migrate → ads-port}/references/atomic-styles.md +9 -2
  71. package/dist/skills/ads-port/references/behaviors.md +393 -0
  72. package/dist/skills/{ads-migrate → ads-port}/references/captures.md +1 -1
  73. package/dist/skills/{ads-migrate → ads-port}/references/contracts.md +18 -37
  74. package/dist/skills/ads-port/references/design-data.md +91 -0
  75. package/dist/skills/{ads-migrate → ads-port}/references/evidence.md +4 -0
  76. package/dist/skills/{ads-migrate → ads-port}/references/guarded-editing.md +7 -11
  77. package/dist/skills/{ads-migrate → ads-port}/references/lint-and-docs.md +5 -0
  78. package/dist/skills/{ads-migrate → ads-port}/references/native-implementation.md +49 -15
  79. package/dist/skills/ads-port/references/reporting.md +101 -0
  80. package/dist/skills/{ads-migrate → ads-port}/references/scenarios.md +9 -15
  81. package/dist/skills/{ads-migrate → ads-port}/references/testing.md +11 -1
  82. package/dist/tokens.mjs +5 -8
  83. package/dist/unit-contracts.mjs +1 -8
  84. package/docs/ADS.md +42 -73
  85. package/docs/ARCHITECTURE.md +49 -20
  86. package/docs/BEHAVIORS.md +40 -38
  87. package/docs/CHANGELOG.md +23 -0
  88. package/docs/CONTRACTS.md +18 -37
  89. package/docs/GUIDE.md +21 -13
  90. package/docs/MCP.md +57 -10
  91. package/package.json +1 -1
  92. package/dist/scoped-tokens.mjs +0 -68
  93. package/dist/skills/ads-migrate/agents/openai.yaml +0 -4
  94. /package/dist/skills/{ads-migrate → ads-port}/references/cli.md +0 -0
  95. /package/dist/skills/{ads-migrate → ads-port}/references/layers.md +0 -0
  96. /package/dist/skills/{ads-migrate → ads-port}/references/review.md +0 -0
@@ -60,6 +60,20 @@ choosing their own values. Stable names let implementations move between
60
60
  projects without importing an unrelated brand. Themes evolve by changing
61
61
  values behind those names, and visual formulas have one source of truth.
62
62
 
63
+ The shared foundation is the only design-value catalogue. Components and patterns
64
+ map its roles into owned `--ds-*` and `--ux-*` variables; these namespaces cannot
65
+ introduce independent design values. Raw literals hidden by aliases, fallbacks,
66
+ themes or static helper/import interpolation follow the same source checks.
67
+ Runtime measurements and typed instance paints retain narrow, explicit contracts.
68
+ When adapting external UI, use the project's existing font, text, spacing and
69
+ other semantic roles even when their values differ from the reference. Add a
70
+ shared role only for a missing design decision, and document intentional visual
71
+ differences. Equal values alone do not prove equivalent roles: duplicate shared
72
+ definitions invite review; ownership and value-source violations are errors.
73
+ Ports should converge on that shared vocabulary, consolidating equivalent roles
74
+ introduced by their source dependencies. Acceptance checks required behavior and
75
+ project consistency; exact upstream pixels apply only when explicitly requested.
76
+
63
77
  ### UX owns the interaction contract
64
78
 
65
79
  Components own control semantics, input handling, focus, accessibility, and
@@ -186,7 +200,7 @@ conditional at-rule context for atomic `css`/`styled`. Their descriptors are sch
186
200
  metadata, not separate atomic declarations. CSS-tree validates CSS value grammar;
187
201
  PostCSS supplies source/at-rule structure. Registered names have one owner and a
188
202
  stable schema across its modules, because registration is document-global. Runtime
189
- variables are registered in owned Linaria; shared or namespaced design tokens are
203
+ variables are registered in owned Linaria; shared design tokens are
190
204
  registered beside their real value definitions. Base resets and fonts cannot own
191
205
  registrations. Descriptor literals are narrowly permitted where CSS requires an
192
206
  independent initial value; ordinary visual assignments remain token-governed.
@@ -215,8 +229,8 @@ dependencies, with no runtime supplied by the MCP host. Shared controllers do no
215
229
  import styled consumers or introduce another skin layer. Existing measurement and
216
230
  style-write boundaries still apply.
217
231
 
218
- Optional owner-local `behavior.json` contracts identify public APIs or private
219
- source/symbols, named guarantees and registered execution checks. Scenario
232
+ Optional `<Owner>.ads.contract.ts` modules identify public APIs or private
233
+ implementation symbols, named guarantees and registered execution checks. Scenario
220
234
  `exercises` links public behavior APIs to reachable demonstrations; `covers`
221
235
  continues to describe rendered public UI. Controllers need no artificial standalone
222
236
  visual scenario. Static registration is separate from current passing evidence.
@@ -459,6 +473,17 @@ Bounded tools establish what exists; explicit resource reads provide detail.
459
473
  Prompts and packaged skills explain how to reason through Data, UX and Skin and
460
474
  how to inspect the real implementation before changing it.
461
475
 
476
+ Agent feedback has a separate intake boundary. `ads_report_bug` records suspected
477
+ broken behavior; `ads_request_feature` records a missing capability and its use
478
+ case. Both save durable development metadata under the connected project's
479
+ `.ds/reports/`, with verified evidence selectors, compact snapshots and observed
480
+ version/framework/revisions. Classification remains an untriaged agent claim.
481
+ Reports grant no architecture exception, execute no submitted command and upload
482
+ nothing. Equivalent submissions reuse an ID; records do not expire or get pruned
483
+ by count. Individual records and receipts are bounded. MCP intake is submission-only:
484
+ it exposes no report-reading tools, resources, subscriptions or notifications.
485
+ See the [reporting contract](MCP.md#bug-reports-and-feature-requests).
486
+
462
487
  The MCP runtime owns its browser hosts and preview builder lifetime. Closing the
463
488
  client connection releases them together; a separate ownership guard can stop
464
489
  detached builders after abrupt owner death. A preview process must not outlive
@@ -576,27 +601,31 @@ probing those bindings and restoring them. The tool supplies no token/property
576
601
  classification or visual sample palette. A source build alone is not a rendered
577
602
  verification, and the browser check does not judge design quality.
578
603
 
579
- An optional owner-local token namespace keeps component/pattern constants beside
580
- their consumer. Its definition-only stylesheet contains root/theme custom
581
- properties and is imported by the runtime owner; UI styling remains in Linaria.
582
- Independent owner-token preview entries also import the registered definition
583
- sheet directly, so tree-shaking an unused runtime owner cannot remove their values.
584
- Namespaces, aliases, ownership and actual colocated sample coverage are checked.
585
- The shared foundation remains the cross-owner vocabulary. See the
586
- [owner-token contract](ADS.md#owner-local-tokens).
604
+ The Data pillar has one shared design catalogue in the configured token foundation.
605
+ Components/patterns own mappings (`--ds-*`/`--ux-*`) and mechanics, not independent
606
+ value sheets or token namespaces. Private variables, fallbacks, themes and static
607
+ helper/import interpolation obey the same design-value source checks. Unknown
608
+ interpolation grants no permission. Intrinsic runtime geometry and typed instance
609
+ bindings keep their existing narrow contracts. Shared token previews consume the
610
+ same foundation through the project mount adapter.
611
+
612
+ Shared tokens with identical normalized theme/condition definitions receive a
613
+ nonblocking `token-overlap-review` advisory. Equal values do not establish equal
614
+ meaning; ownership/value-source violations remain errors. See the
615
+ [shared Data contract](ADS.md#shared-data-and-component-mappings).
587
616
 
588
617
  ## Static contracts and instance data
589
618
 
590
619
  Owner-local tooling declarations use optional `<Owner>.ads.contract.ts` modules.
591
620
  ADS resolves their data and implementation symbols statically without executing
592
- project imports. Tokens and behavior share this contract with constrained paint
621
+ project imports. Behavior shares this contract with constrained paint
593
622
  inputs, instance binding families and declarative parent/consumer relationships.
594
623
  Declarative relationships form an acyclic graph: parts may have several parents
595
624
  and contain nested parts, with every chain anchored at a rendering root. Exercise
596
625
  metadata records reachable use; registered browser checks establish its effects.
597
626
  Binding producers declare each direct/derived paint path explicitly. Private
598
627
  visual implementation subjects are distinct from headless controller subjects.
599
- Legacy JSON sections remain supported; duplicate policies fail. The
628
+ Competing registrations fail. The
600
629
  [contract reference](CONTRACTS.md) specifies the authoring and analysis limits.
601
630
 
602
631
  Any `.ads.` source is development-only. Runtime implementation/types/styles cannot
@@ -607,7 +636,7 @@ scenarios and fixtures use the marked names; existing IDs remain stable.
607
636
 
608
637
  Instance bindings are distinct from static tokens and arbitrary inline styles.
609
638
  Source checks trace config origin, key validation, exact map construction and
610
- attachment to an owner root. Shared/private namespaces and consumer permissions
639
+ attachment to an owner root. Shared token and private runtime-variable ownership and consumer permissions
611
640
  remain enforced. Browser audits inspect current scoped values, paint effects and
612
641
  local SVG resources; registered checks must cover updates/removal, isolation and
613
642
  relevant themes. Registration, source-demonstrated consumption and current browser
@@ -619,9 +648,9 @@ a rendered parent. Metadata alone cannot turn a null-returning stub into verifie
619
648
  UI. Invalid scenario fields preserve independent valid coverage; unreadable
620
649
  prerequisites report that coverage is not established.
621
650
 
622
- Owner tokens are private across CSS and supported TypeScript value flows, including
623
- constants, re-exports, helper returns and paint/property sinks. Normal component
624
- composition remains valid. Namespaces are a source boundary, not CSS isolation.
625
- Ownership does not mandate a visual scale: projects may register explicit origin
626
- policies using `inspectTokenOrigins`, without ADS hardcoding spacing meanings.
627
- Migration prepares ordinary owner drafts; candidate gates and rollback still apply.
651
+ Shared token references remain visible across the project. Component state and
652
+ implementation variables retain their existing ownership boundaries. Project checks
653
+ may use `inspectTokenOrigins` to audit more specific shared alias relationships;
654
+ core Data/UX/Skin separation does not depend on opting into such a check. ADS does
655
+ not hardcode a spacing scale or palette. Contract/file-role migration still uses
656
+ ordinary owner drafts, candidate gates and rollback.
package/docs/BEHAVIORS.md CHANGED
@@ -25,8 +25,8 @@ These gates inspect supported direct imports, markup and style boundaries.
25
25
  External package internals and delegated DOM behavior still require source,
26
26
  build and browser review; declaring a dependency does not prove it is headless.
27
27
 
28
- New owner registrations can live in `<Owner>.ads.contract.ts` with actual API and
29
- implementation references; legacy JSON remains supported. The
28
+ Register owner behavior in `<Owner>.ads.contract.ts` with actual API and
29
+ implementation references. The
30
30
  [contract reference](CONTRACTS.md) covers static authoring, `.ads.behavior.spec.ts`,
31
31
  declarative `exercises`, required browser checks and guarded migration.
32
32
  A contract declaration alone is not passing evidence. Use
@@ -42,48 +42,50 @@ those inputs are rejected, including dynamic imports and aliases.
42
42
 
43
43
  ## Register guarantees
44
44
 
45
- An optional `behavior.json` belongs to one directory unit. Flat units use
46
- `<Owner>.behavior.json`. Existing projects without manifests remain valid and have
47
- no implied behavioral verification. A manifest is declarative and contains no
48
- executable command:
45
+ An optional `<Owner>.ads.contract.ts` belongs to one unit. Owners without a
46
+ behavior declaration have no implied behavioral verification. ADS reads the
47
+ contract statically; it does not execute these imports or a project command:
49
48
 
50
- ```json
51
- {
52
- "schemaVersion": 1,
53
- "subjects": {
54
- "controller": { "source": "./scroller-controller.ts", "symbol": "ScrollerController" },
55
- "scroll-api": { "api": "useMessageScroller" }
49
+ ```ts
50
+ import type { UnitContract } from "@reqvire-org/ads/contracts";
51
+ import { ScrollerController } from "./scroller-controller";
52
+ import { useMessageScroller } from "./MessageScroller";
53
+
54
+ export default {
55
+ schemaVersion: 1,
56
+ behavior: {
57
+ subjects: {
58
+ controller: { implementation: ScrollerController },
59
+ "scroll-api": { api: useMessageScroller },
60
+ },
61
+ guarantees: [{
62
+ id: "prepend-anchor",
63
+ description: "Prepending history preserves the visible anchor after layout settles.",
64
+ subjects: ["controller", "scroll-api"],
65
+ checks: ["prepend-anchor"],
66
+ }],
67
+ checks: {
68
+ "prepend-anchor": {
69
+ file: "./MessageScroller.ads.behavior.spec.ts",
70
+ case: "prepend-anchor",
71
+ scenario: "components/MessageScroller",
72
+ profile: "widget",
73
+ },
74
+ },
56
75
  },
57
- "guarantees": [
58
- {
59
- "id": "prepend-anchor",
60
- "description": "Prepending history preserves the visible anchor after layout settles.",
61
- "subjects": ["controller", "scroll-api"],
62
- "checks": ["prepend-anchor"]
63
- }
64
- ],
65
- "checks": {
66
- "prepend-anchor": {
67
- "file": "./behavior.spec.ts",
68
- "case": "prepend-anchor",
69
- "scenario": "components/MessageScroller",
70
- "profile": "widget"
71
- }
72
- }
73
- }
76
+ } satisfies UnitContract;
74
77
  ```
75
78
 
76
- Names above are illustrative project choices. A subject identifies a public export
77
- through `api`, or an owner-local implementation `source` with an optional top-level
78
- `symbol`. Private subjects do not become public API. A guarantee references known
79
- subjects and checks. Each check names an owner-local test/spec file, stable case
80
- ID, registered profile and optional discovered scenario. Several guarantees may
81
- reference one check. Repeated execution identities use the same check ID.
79
+ Names above are illustrative project choices. A subject identifies a public API
80
+ or an implementation symbol owned by the unit. Private subjects do not become
81
+ public API. A guarantee references known subjects and checks. Each check names a
82
+ colocated test/spec file, stable case ID, registered profile and optional
83
+ discovered scenario. Several guarantees may reference one check. Repeated
84
+ execution identities use the same check ID.
82
85
 
83
86
  Private subjects default to the headless controller role. For an intentionally
84
87
  visual internal renderer or binding producer, declare `role: "implementation"`
85
- alongside its `implementation` reference in the TypeScript contract (or its
86
- `source`/`symbol` in legacy JSON). Its source ownership and normal runtime gates
88
+ alongside its `implementation` reference in the contract. Its source ownership and normal runtime gates
87
89
  still apply; registration does not make it public API. Shared `controllers/`
88
90
  source remains headless regardless of subject metadata. See the
89
91
  [owner contract](CONTRACTS.md#a-contract-uses-actual-implementation-references).
@@ -274,7 +276,7 @@ selected `checks` and optional `scenarios` URLs. Write a bounded JSON report:
274
276
  "cases": [
275
277
  {
276
278
  "id": "prepend-anchor",
277
- "file": "design-system/components/MessageScroller/behavior.spec.ts",
279
+ "file": "design-system/components/MessageScroller/MessageScroller.ads.behavior.spec.ts",
278
280
  "status": "passed"
279
281
  }
280
282
  ]
package/docs/CHANGELOG.md CHANGED
@@ -2,6 +2,29 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.3.26
6
+
7
+ - Rename the external-library porting skill and MCP prompt from `ads-migrate`
8
+ to `ads-port`; update workflow discovery, installation examples and skill links.
9
+ - Make porting converge on shared project tokens and primitives, consolidating
10
+ equivalent roles introduced by source dependencies instead of requiring default
11
+ pixel parity. Document and verify intentional visual adaptations.
12
+ - Restore one shared Data vocabulary: remove owner token namespaces/value sheets
13
+ and the owner-contract token section. Keep component/pattern mappings and narrow
14
+ runtime geometry/paint contracts. This is a breaking source contract change.
15
+ - Check design values through static helper/import interpolation, custom-property
16
+ aliases, raw fallbacks and theme branches; warn on equivalent shared definitions.
17
+ - Align architecture, guides, MCP entry guidance, starter and all five portable
18
+ skills with Data, UX and Skin, shared project-role precedence, marked development
19
+ files and the separate review layer.
20
+
21
+ - Add separate `ads_report_bug` and `ads_request_feature` intake tools with shared
22
+ durable project-local storage, context/evidence snapshots and deduplication.
23
+ - Keep intake submission-only with compact ID/local-path receipts, no report-reading
24
+ tools/resources and no automatic expiry or count limit. Bound individual records.
25
+ - Add portable reporting guidance to all five skills, MCP discovery and relevant
26
+ source-proof diagnostics. Reports remain untriaged agent claims, not ADS findings.
27
+
5
28
  ## 0.3.25
6
29
 
7
30
  - Support source-proven shared/nested declarative parts, with acyclic parent
package/docs/CONTRACTS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Static owner contracts and development files
2
2
 
3
- Use one optional `<Owner>.ads.contract.ts` for owner-local tokens, constrained
3
+ Use one optional `<Owner>.ads.contract.ts` for constrained
4
4
  paint inputs, scoped runtime bindings, declarative parts and behavioral checks.
5
5
  The import `import type { UnitContract } from "@reqvire-org/ads/contracts"` supplies
6
6
  development typing. ADS reads its AST and resolves real symbols without importing
@@ -15,12 +15,9 @@ components/Plot/
15
15
  renderer.tsx production consumer
16
16
  paints.ts production binding producer
17
17
  types.ts production prop types
18
- tokens.css optional production token definitions
19
18
  Plot.ads.contract.ts static tool declaration
20
19
  Plot.ads.scenario.tsx demonstration
21
20
  Plot.ads.fixture.ts demonstration data
22
- Tokens.ads.scenario.tsx real owner-token samples
23
- Tokens.ads.fixture.ts sample bindings/probes
24
21
  Plot.ads.behavior.spec.ts registered browser checks
25
22
  Plot.ads.test.tsx optional unit tests
26
23
  Plot.ads.helpers.ts development-only adapters
@@ -56,7 +53,6 @@ import { paints } from "./paints";
56
53
 
57
54
  export default {
58
55
  schemaVersion: 1,
59
- tokens: { namespace: "--plot-", stylesheet: "./tokens.css" },
60
56
  paintInputs: [
61
57
  { api: Plot, property: "config.*.paint", kind: "paint-reference" },
62
58
  { api: Series, property: "fill", kind: "paint-reference", bindings: ["items"] },
@@ -164,17 +160,17 @@ Raw constants, undeclared fields, extra writes and unknown transforms are reject
164
160
  The browser audit checks actual accessible color references in both branches;
165
161
  a local SVG URL or `none` is not a CSS color inside `light-dark()`.
166
162
 
167
- Families cannot overlap shared tokens, owner-token namespaces, private runtime
163
+ Families cannot overlap shared tokens, private runtime
168
164
  prefixes or other bindings. A broad family such as `--color-${key}` grants no
169
165
  shared-token exception. Use a distinct private family where collision freedom
170
166
  cannot be established. Registered paint consumers list their allowed binding IDs;
171
- borrowing a peer's family or private token remains invalid. Bindings are scoped
167
+ borrowing a peer's binding family or private runtime variable remains invalid. Bindings are scoped
172
168
  to their actual root; portals outside it need deliberate project integration.
173
169
 
174
170
  A registered binding producer may combine two accessible color references as
175
171
  `light-dark(var(--light-token), var(--dark-token))`. The App paint audit checks
176
172
  both branches and their observed effect in the active color scheme. Raw colors,
177
- unknown/private tokens and SVG URLs inside this color function remain invalid.
173
+ undefined tokens and SVG URLs inside this color function remain invalid.
178
174
  This derived binding form does not widen public paint-input types; use constrained
179
175
  references for each theme input and verify both color schemes in browser checks.
180
176
 
@@ -239,38 +235,23 @@ retained. Unreadable prerequisites report coverage as not established. Inspect
239
235
  the exact source diagnostic and bounded results; do not assume every subsequent
240
236
  missing preview means its runtime API is invalid.
241
237
 
242
- ## Local tokens and project consistency
243
-
244
- `tokens.css` remains optional production design data for component/pattern owners,
245
- imported by the runtime owner. Controllers stay headless; review uses the shared
246
- vocabulary and its own development presentation state. Only root/theme definitions belong there. Tokens require real sample
247
- coverage, including independently built owner token scenarios. One namespace
248
- cannot be shared by peer components. Private references remain private through
249
- TS constants, re-exports, helper returns, SVG/paint props and property reads/writes.
250
- Normal composition of a public component using its own tokens remains valid.
251
- Source analysis covers supported value flows; arbitrary dynamic code is not
252
- proof of ownership. CSS variables remain browser-visible; namespacing is an
253
- architecture boundary, not browser encapsulation.
254
-
255
- Ownership does not establish a project's visual scale:
256
-
257
- - A component redefining shared `--space-4` fails.
258
- - Its private `--plot-gap: 7px` can be valid component geometry.
259
- - `--plot-gap: var(--space-4)` preserves a shared scale with local meaning.
260
-
261
- Choose project policy explicitly. A registered project check can use tooling-only
262
- `inspectTokens(root)` and `inspectTokenOrigins(inventory, name, { stopAt: names })`
263
- from `@reqvire-org/ads`. `aliasOnly` verifies every theme definition follows only
264
- aliases to the explicitly selected origins; `literals` and `diagnostics` explain
265
- violations/limits. Select the exact targets and permitted shared origins. Keep
266
- intentional geometry exceptions exact with documented reasons. ADS neither
267
- infers spacing meaning from names nor prescribes a global spacing palette.
238
+ ## Shared Data and project consistency
239
+
240
+ Data has one shared design vocabulary in the configured token foundation. There
241
+ is no owner-contract token namespace or private value stylesheet. Components map
242
+ shared values into `--ds-*`; patterns use `--ux-*`. Static literals cannot bypass
243
+ this boundary through aliases, fallbacks, themes or helper/import interpolation.
244
+ Shared token samples belong under the token directory. See
245
+ [shared Data and component mappings](ADS.md#shared-data-and-component-mappings).
246
+
247
+ `inspectTokenOrigins(inventory, name, {stopAt: names})` remains available for
248
+ project-specific audits of shared alias relationships. It supplements mandatory
249
+ core source checks and does not enable independent local values.
268
250
 
269
251
  ## Migration and MCP editing
270
252
 
271
- Legacy `tokens.json`/`<Owner>.tokens.json` and `behavior.json` remain readable.
272
- Use either authoring form per section; competing declarations fail. New contracts
273
- normalize into the same discovery, ownership, source revisions, affected-check
253
+ Use the static owner contract for new registrations. Competing declarations fail.
254
+ Contracts participate in discovery, ownership, source revisions, affected-check
274
255
  selection and candidate gates. `ads_units` exposes `contractFile`; `ads_catalog`
275
256
  reports constrained paint paths and declarative parent/consumer/check references.
276
257
  Use bounded file reads and paged detailed results, not repeated whole-project dumps.
package/docs/GUIDE.md CHANGED
@@ -33,6 +33,12 @@ An agent uses the MCP tools to inspect, edit and review the project:
33
33
  checks. Recheck `ads_status.build` after changes; notifications alone do not
34
34
  establish current output.
35
35
 
36
+ After targeted diagnosis, record a suspected ADS defect with `ads_report_bug`, or
37
+ a missing capability with `ads_request_feature`. Supply a minimal reproduction or
38
+ workflow and reference exact execution/check evidence when available. Reports stay
39
+ local, are untriaged, and do not bypass guards. Read `ads://guides/reporting` or the
40
+ [portable reporting guide](../skills/ads-designer/references/reporting.md).
41
+
36
42
  For an on-demand screenshot, call `ads_capture` with a discovered scenario ID and
37
43
  optionally a named `captureTargets` element, theme and viewport. To compare a
38
44
  proposed change before applying it, add `screenshot:true` and an explicit
@@ -83,7 +89,7 @@ Keep private controllers with their consumer; share reusable behavior through
83
89
  project dependencies. Controllers own lifecycle/measurements while components and
84
90
  patterns own presentation. A shared context provider is a behavioral API too.
85
91
 
86
- Optional owner-local `behavior.json` registers guarantees and maintained checks.
92
+ Optional `<Owner>.ads.contract.ts` registers guarantees and maintained checks using actual implementation references.
87
93
  Scenario `exercises` records demonstrations separately from rendered `covers`.
88
94
  Use `ads behaviors --json` for discovery and `ads verify --unit <discovered-id>`
89
95
  to run registered cases; MCP exposes `ads_behaviors` and `ads_verify`. Tests and
@@ -414,10 +420,10 @@ categories, undefined aliases, alias cycles, and individual theme/media
414
420
  overrides. Project-specific values and additional definitions within ADS's fixed
415
421
  naming contract are allowed. The contract's `naming` section lists the fixed
416
422
  shared families and names; projects cannot rename those shared semantics.
417
- Component/pattern constants can use an explicit unique owner-local namespace and
418
- definition-only stylesheet, with the same real-token preview completeness rules.
419
- See [owner-local tokens](ADS.md#owner-local-tokens). Unregistered foreign names
420
- remain rejected.
423
+ All design values belong in the shared foundation. Components and patterns map
424
+ shared roles into their runtime variables instead of defining independent values.
425
+ See [shared Data and component mappings](ADS.md#shared-data-and-component-mappings).
426
+ Foreign token namespaces remain rejected.
421
427
  `--ds-*`, `--ux-*`, and `--showcase-*` variables remain owned by their layers,
422
428
  including when a file is inside `tokens/`. Shared token assignments outside
423
429
  `tokens/` fail. Source styles also check shared references for undeclared names.
@@ -482,14 +488,14 @@ changes may require restarting the runtime; ordinary owner/fixture/style/asset e
482
488
  See [the compiler contract](MCP.md#configure-the-project-compiler) for revisions,
483
489
  diagnostics, invalidation and the shared resource graph.
484
490
 
485
- Colocate `Scenario.tsx` and `fixture.ts` beside tokens and each component/pattern, or use
486
- `<Owner>.scenario.tsx` and `<Owner>.fixture.ts` for flat owners. Larger entries
491
+ Colocate `<Owner>.ads.scenario.tsx` and `<Owner>.ads.fixture.ts` beside tokens and
492
+ each component/pattern. Larger entries
487
493
  live under `composition/<Name>/`. A default zero-input mountable view imports the
488
494
  real public UI and a local fixture, and exports literal metadata:
489
495
 
490
496
  ```tsx
491
497
  import { Button } from "@ds";
492
- import { fixture } from "./fixture";
498
+ import { fixture } from "./Button.ads.fixture";
493
499
  export const scenario = { title: "Button states", covers: ["Button"] };
494
500
  export default function Scenario() { return <Button>{fixture.label}</Button>; }
495
501
  ```
@@ -497,11 +503,11 @@ export default function Scenario() { return <Button>{fixture.label}</Button>; }
497
503
  IDs derive from filenames; do not maintain another registry or hand-assigned IDs.
498
504
  Token scenarios live beside foundation CSS under the configured token directory.
499
505
  The starter includes `tokens/Foundation.ads.scenario.tsx` and its local fixture for
500
- a project-owned token review renderer. Keep its presentation in that pattern:
506
+ a project-owned token review renderer. Keep its presentation in development-only `review/`:
501
507
 
502
508
  ```tsx
503
509
  import { TokenSamples } from "@ds/review";
504
- import { fixture } from "./Typography.fixture";
510
+ import { fixture } from "./Typography.ads.fixture";
505
511
  export const scenario = { title: fixture.title, covers: ["TokenSamples"], samples: fixture.samples };
506
512
  export default function Scenario() { return <TokenSamples {...fixture} />; }
507
513
  ```
@@ -552,8 +558,7 @@ in owned component/pattern styles, with tokens supplying visual values.
552
558
  ADS has fixed token names and ownership namespaces. Change values in the existing
553
559
  token files; `--accent`, `--font-sans`, `--radius-md`, and the other shared roles
554
560
  keep their meanings across projects. Foreign shared prefixes such as `--nuv-*` or
555
- `--brand-*` fail; a registered owner-local constant namespace is separate from
556
- the shared branding vocabulary. Components own `--ds-*`, patterns own `--ux-*`, and the showcase
561
+ `--brand-*` fail. There are no independent owner-local token namespaces. Components own `--ds-*`, patterns own `--ux-*`, and the showcase
557
562
  reserves `--showcase-*` for showcase boundaries. Fixture files still define no
558
563
  custom styling; the frame pattern uses `--ux-*`. Branding never assigns
559
564
  component state variables.
@@ -787,9 +792,12 @@ Retain unrelated lint, type checking, and framework build commands.
787
792
  ## External content
788
793
 
789
794
  Use the repository's `ads-import` skill for selected external ADS source or theme
790
- values, and `ads-migrate` for a native implementation inspired by an upstream
795
+ values, and `ads-port` for a native implementation inspired by an upstream
791
796
  library. These agent workflows handle dependency closure, token mapping, motion
792
797
  comparisons, source credits, applicable notices, and local documentation.
798
+ Ports reuse the project's visual language and consolidate equivalent design roles
799
+ introduced by upstream dependencies. Verify required behavior and project
800
+ consistency; exact visual replication is an explicit requirement, not the default.
793
801
  They are agent workflows, rather than CLI import/design subcommands. Install
794
802
  them through `npx skills`, or read the packaged skills through the
795
803
  [stdio MCP server](MCP.md#skills). MCP serving does not install or automatically
package/docs/MCP.md CHANGED
@@ -21,8 +21,8 @@ The agent keeps its stdio connection; the browser connects to `/mcp` on the same
21
21
  runtime using HTTP and the current modern protocol. Both share the configured
22
22
  preview watcher and artifacts. Stdout remains exclusively JSON-RPC.
23
23
 
24
- Every registered preview uses `?scenario=<discovered-id>`, including token
25
- previews colocated under components or patterns. The client selects its section
24
+ Every registered preview uses `?scenario=<discovered-id>`, including shared token
25
+ previews under the configured token directory. The client selects its section
26
26
  from the scenario's discovered `kind`, never from the ID's path prefix. Existing
27
27
  `?category=<id>` links remain accepted and normalize to `?scenario=`; an explicit
28
28
  `scenario` parameter takes precedence when both are present. `ads_show_tokens`
@@ -160,6 +160,11 @@ protocol. The diagnostic explorer defaults to compatible mode; select
160
160
 
161
161
  ## Tools and resources
162
162
 
163
+ For suspected ADS defects after targeted investigation, use `ads_report_bug`;
164
+ for missing capabilities, use `ads_request_feature`. They collect project-local
165
+ untriaged reports with compact context/evidence and no upstream posting. See
166
+ [bug reports and feature requests](#bug-reports-and-feature-requests).
167
+
163
168
  ### Inspect the design system
164
169
 
165
170
  Call `ads_status` to identify the connected project and preview build state.
@@ -375,8 +380,9 @@ composition owns its scenario and mock inputs. Imported components and patterns
375
380
  remain separate owners. `tokens` is one foundation unit covering token definitions,
376
381
  themes and token scenarios/fixtures, whose coverage spans shared source files.
377
382
  Preview IDs remain separate: several token previews belong to `tokens`.
378
- Unit-local token definitions and their previews stay in their component/pattern
379
- owner; see [owner tokens](ADS.md#owner-local-tokens).
383
+ Design tokens and token previews belong to the shared Data foundation. Component
384
+ contracts do not register token namespaces or independent value sheets. Read
385
+ `ads://guides/tokens` for state mappings, source checks and overlap advisories.
380
386
 
381
387
  The `tokens` manifest also returns `companionFiles` with the configured foundation
382
388
  entry path. When creating or deleting a canonical token foundation file, include
@@ -724,10 +730,9 @@ framework compilation and Linaria extraction. The starter's
724
730
  - Its `buildGraph(entries, options, track)` adapter runs one multi-entry Vite build
725
731
  with `previewEntriesPlugin()` and `createPreviewResources()` from
726
732
  `@reqvire-org/ads/scenarios/vite`.
727
- Generated owner-token entries include `stylesheets` derived from the registered
728
- owner manifest. Pass the entries intact: the plugin imports those definition
729
- sheets even when the runtime owner is tree-shaken. A replacement entry plugin
730
- must preserve these dependencies without importing unrelated owners.
733
+ Each mount imports the project's shared foundation entry. Keep that import in
734
+ the preview module graph so independently built token scenarios receive the
735
+ same shared Data as production UI.
731
736
  - Keep `preserveEntrySignatures: "strict"`, `cssCodeSplit: true`,
732
737
  `assetsInlineLimit: 0`, `modulePreload: false`, and `write: false`. Include the
733
738
  supplied dependency-tracking plugin and the project's Linaria/framework plugins.
@@ -981,7 +986,7 @@ See the [MCP Apps specification](https://github.com/modelcontextprotocol/ext-app
981
986
  | Each of the five ADS skill names | `request` | Select that workflow and its skill resource |
982
987
 
983
988
  Example: get `ads-inspect` with `element="Button states in both themes"`, or
984
- `ads-migrate` with `request` containing the upstream component-library URL.
989
+ `ads-port` with `request` containing the upstream component-library URL.
985
990
  Prompts explain Data/UX/Skin ownership, public API reuse, fixture boundaries,
986
991
  which tools select widgets, progressive skill reads and validation. They guide
987
992
  reasoning rather than inventing another component implementation.
@@ -1093,7 +1098,7 @@ The same guide is available at `ads://guides/contracts`.
1093
1098
  A registered binding producer may combine two accessible color references as
1094
1099
  `light-dark(var(--light-token), var(--dark-token))`. The App paint audit checks
1095
1100
  both branches and their observed effect in the active color scheme. Raw colors,
1096
- unknown/private tokens and SVG URLs inside this color function remain invalid.
1101
+ undefined tokens and SVG URLs inside this color function remain invalid.
1097
1102
  This derived binding form does not widen public paint-input types; use constrained
1098
1103
  references for each theme input and verify both color schemes in browser checks.
1099
1104
 
@@ -1103,3 +1108,45 @@ registered nested parents, anchored at rendering roots. `exercises` records
1103
1108
  reachable use; registered browser checks establish the effects. Private visual
1104
1109
  behavior subjects use explicit `role: "implementation"`; headless defaults and
1105
1110
  shared-controller gates remain enabled. See [CONTRACTS.md](CONTRACTS.md).
1111
+
1112
+ ## Bug reports and feature requests
1113
+
1114
+ `ads_report_bug` records suspected broken existing ADS behavior after targeted
1115
+ investigation. Required fields are `title`, `expected`, `observed`, `steps` and
1116
+ `frequency` (`always`, `intermittent`, `once`, `unknown`); `suspectedCause` is optional.
1117
+ `ads_request_feature` records a legitimate workflow requiring a missing capability:
1118
+ `title`, `workflow`, `capability` and `impact` are required; `proposal` is optional.
1119
+ Both accept optional `unit`, `scenario`, agent-supplied `reporter`, and up to three
1120
+ `evidence` selectors: `{resultId}` or the exact `{unit, check, runId}`.
1121
+
1122
+ The server verifies evidence references and snapshots compact completion-time
1123
+ metadata before the underlying execution/check slot can be replaced. Superseded
1124
+ references fail explicitly. Current-project context separately captures ADS
1125
+ version, configured framework, Node/platform, source/configuration revisions,
1126
+ available build metadata and capture time. Missing metadata stays unobserved;
1127
+ context and candidate evidence do not become current passing source evidence.
1128
+ No source files, full logs, screenshots or trace bytes are automatically attached.
1129
+
1130
+ The tools save ordinary JSON at `<projectRoot>/.ds/reports/<reportId>.json`.
1131
+ They are available without `--mutations`, like other development-evidence tools,
1132
+ and write generated metadata rather than project-owned ADS source. Tool annotations
1133
+ mark them as writes. Each saved record is limited to 32 KiB. Neither tool posts to
1134
+ GitHub, sends telemetry nor changes validation policy. Reports remain `untriaged`;
1135
+ `classification: "agent-supplied"` distinguishes a claim from an established cause.
1136
+
1137
+ Equivalent submissions for the same ADS version/framework reuse the report ID,
1138
+ keep its creation time, increment `submissionCount` and replace its latest
1139
+ submission/context/evidence. This is a submission count, not independent
1140
+ reproductions. There is no automatic age/count pruning; report retention differs
1141
+ from replaceable execution evidence and screenshot slots. Archive or removal is
1142
+ an explicit maintenance action.
1143
+
1144
+ Each submission returns a compact receipt (at most 4096 JSON bytes) with
1145
+ `reportId`, `revision`, `storagePath`, `submissionCount` and deduplication status.
1146
+ The local path is relative to the connected project root. MCP intake is
1147
+ submission-only: saved reports have no listing/read tool, resource, URI template,
1148
+ subscription or notification. Inspect or share local JSON through normal project
1149
+ maintenance when needed. `ads_status.reports` identifies the two intake tools,
1150
+ storage directory and `ads://guides/reporting`, without listing report contents.
1151
+ All five skills include the same portable
1152
+ [reporting reference](../skills/ads-designer/references/reporting.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reqvire-org/ads",
3
- "version": "0.3.25",
3
+ "version": "0.3.26",
4
4
  "type": "module",
5
5
  "description": "A design system your agent can see and shape. Your components. Your look. Your code.",
6
6
  "repository": {