@reqvire-org/ads 0.3.24 → 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 (102) hide show
  1. package/README.md +7 -5
  2. package/dist/behaviors.mjs +6 -4
  3. package/dist/bootstrap-ds/ADS.md +28 -30
  4. package/dist/bootstrap-ds/README.md +6 -6
  5. package/dist/bootstrap-ds/design-system/assets/brand/README.md +3 -2
  6. package/dist/boundaries.mjs +0 -3
  7. package/dist/check.mjs +15 -22
  8. package/dist/config.mjs +3 -7
  9. package/dist/contract-migration.mjs +3 -3
  10. package/dist/contracts.d.mts +2 -3
  11. package/dist/declarative-flow.mjs +144 -0
  12. package/dist/design-values.mjs +81 -0
  13. package/dist/evidence.mjs +1 -1
  14. package/dist/mcp/catalog.mjs +4 -2
  15. package/dist/mcp/context.mjs +3 -3
  16. package/dist/mcp/prompts.mjs +4 -4
  17. package/dist/mcp/reports.mjs +101 -0
  18. package/dist/mcp/server.mjs +38 -3
  19. package/dist/paint-contracts.mjs +4 -5
  20. package/dist/preview-resources.mjs +1 -2
  21. package/dist/runtime-contracts.mjs +26 -37
  22. package/dist/scenario-trace.mjs +47 -18
  23. package/dist/scenarios.mjs +15 -15
  24. package/dist/skills/README.md +7 -3
  25. package/dist/skills/ads-break-ui/SKILL.md +24 -13
  26. package/dist/skills/ads-break-ui/references/atomic-styles.md +9 -2
  27. package/dist/skills/ads-break-ui/references/behaviors.md +393 -0
  28. package/dist/skills/ads-break-ui/references/captures.md +1 -1
  29. package/dist/skills/ads-break-ui/references/contracts.md +61 -40
  30. package/dist/skills/ads-break-ui/references/design-data.md +91 -0
  31. package/dist/skills/ads-break-ui/references/evidence.md +4 -0
  32. package/dist/skills/ads-break-ui/references/guarded-editing.md +7 -11
  33. package/dist/skills/ads-break-ui/references/reporting.md +101 -0
  34. package/dist/skills/ads-break-ui/references/scenarios.md +9 -15
  35. package/dist/skills/ads-designer/SKILL.md +26 -15
  36. package/dist/skills/ads-designer/assets/bootstrap-ds/ADS.md +28 -30
  37. package/dist/skills/ads-designer/assets/bootstrap-ds/README.md +6 -6
  38. package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/README.md +3 -2
  39. package/dist/skills/ads-designer/references/atomic-styles.md +9 -2
  40. package/dist/skills/ads-designer/references/behaviors.md +393 -0
  41. package/dist/skills/ads-designer/references/captures.md +1 -1
  42. package/dist/skills/ads-designer/references/contracts.md +61 -40
  43. package/dist/skills/ads-designer/references/design-craft.md +1 -1
  44. package/dist/skills/ads-designer/references/design-data.md +91 -0
  45. package/dist/skills/ads-designer/references/evidence.md +4 -0
  46. package/dist/skills/ads-designer/references/guarded-editing.md +7 -11
  47. package/dist/skills/ads-designer/references/mobile.md +1 -1
  48. package/dist/skills/ads-designer/references/reporting.md +101 -0
  49. package/dist/skills/ads-designer/references/scenarios.md +9 -15
  50. package/dist/skills/ads-import/SKILL.md +29 -17
  51. package/dist/skills/ads-import/references/atomic-styles.md +9 -2
  52. package/dist/skills/ads-import/references/behaviors.md +393 -0
  53. package/dist/skills/ads-import/references/branding.md +1 -1
  54. package/dist/skills/ads-import/references/captures.md +1 -1
  55. package/dist/skills/ads-import/references/contracts.md +61 -40
  56. package/dist/skills/ads-import/references/design-data.md +91 -0
  57. package/dist/skills/ads-import/references/evidence.md +4 -0
  58. package/dist/skills/ads-import/references/guarded-editing.md +7 -11
  59. package/dist/skills/ads-import/references/implementation.md +3 -2
  60. package/dist/skills/ads-import/references/reporting.md +101 -0
  61. package/dist/skills/ads-import/references/scenarios.md +9 -15
  62. package/dist/skills/ads-import/references/tokens.md +11 -9
  63. package/dist/skills/ads-motion/SKILL.md +23 -12
  64. package/dist/skills/ads-motion/references/atomic-styles.md +9 -2
  65. package/dist/skills/ads-motion/references/behaviors.md +393 -0
  66. package/dist/skills/ads-motion/references/captures.md +1 -1
  67. package/dist/skills/ads-motion/references/contracts.md +61 -40
  68. package/dist/skills/ads-motion/references/design-data.md +91 -0
  69. package/dist/skills/ads-motion/references/evidence.md +4 -0
  70. package/dist/skills/ads-motion/references/guarded-editing.md +7 -11
  71. package/dist/skills/ads-motion/references/reporting.md +101 -0
  72. package/dist/skills/ads-motion/references/scenarios.md +9 -15
  73. package/dist/skills/{ads-migrate → ads-port}/SKILL.md +59 -31
  74. package/dist/skills/ads-port/agents/openai.yaml +4 -0
  75. package/dist/skills/{ads-migrate → ads-port}/references/atomic-styles.md +9 -2
  76. package/dist/skills/ads-port/references/behaviors.md +393 -0
  77. package/dist/skills/{ads-migrate → ads-port}/references/captures.md +1 -1
  78. package/dist/skills/{ads-migrate → ads-port}/references/contracts.md +61 -40
  79. package/dist/skills/ads-port/references/design-data.md +91 -0
  80. package/dist/skills/{ads-migrate → ads-port}/references/evidence.md +4 -0
  81. package/dist/skills/{ads-migrate → ads-port}/references/guarded-editing.md +7 -11
  82. package/dist/skills/{ads-migrate → ads-port}/references/lint-and-docs.md +5 -0
  83. package/dist/skills/{ads-migrate → ads-port}/references/native-implementation.md +49 -15
  84. package/dist/skills/ads-port/references/reporting.md +101 -0
  85. package/dist/skills/{ads-migrate → ads-port}/references/scenarios.md +9 -15
  86. package/dist/skills/{ads-migrate → ads-port}/references/testing.md +11 -1
  87. package/dist/source-values.mjs +3 -3
  88. package/dist/tokens.mjs +5 -8
  89. package/dist/unit-contracts.mjs +24 -12
  90. package/docs/ADS.md +42 -73
  91. package/docs/ARCHITECTURE.md +54 -20
  92. package/docs/BEHAVIORS.md +46 -36
  93. package/docs/CHANGELOG.md +34 -0
  94. package/docs/CONTRACTS.md +67 -39
  95. package/docs/GUIDE.md +21 -13
  96. package/docs/MCP.md +67 -11
  97. package/package.json +1 -1
  98. package/dist/scoped-tokens.mjs +0 -68
  99. package/dist/skills/ads-migrate/agents/openai.yaml +0 -4
  100. /package/dist/skills/{ads-migrate → ads-port}/references/cli.md +0 -0
  101. /package/dist/skills/{ads-migrate → ads-port}/references/layers.md +0 -0
  102. /package/dist/skills/{ads-migrate → ads-port}/references/review.md +0 -0
@@ -0,0 +1,91 @@
1
+ # Shared Data, component mappings and design consistency
2
+
3
+ ADS has three cooperating responsibilities: Data supplies one shared design
4
+ vocabulary; UX owns structure, behavior and accessibility; Skin maps Data to
5
+ states and variants. Components own their implementation, not separate design
6
+ systems. Project values and themes remain project-owned.
7
+
8
+ ## One design catalogue
9
+
10
+ Define static design values, semantic roles, formulas and themes in the configured
11
+ shared token foundation: colors, typography, spacing and elevation. Reuse existing
12
+ roles before introducing another token. A new value is a visible project design
13
+ decision. Do not copy every imported library constant into another name merely to
14
+ satisfy a guard. Existing project font, text, spacing and other semantic roles
15
+ take precedence over divergent upstream constants. Preserve the capability and
16
+ interaction contract, then document deliberate visual differences from the
17
+ migration reference. Do not add a private or duplicate role to recover an
18
+ upstream font or size that project policy intentionally replaces.
19
+
20
+ Porting should converge on the destination's visual language. Different upstream
21
+ dependencies do not justify separate scales or duplicate roles. Consolidate
22
+ equivalent roles introduced by the selected port, update their consumers and
23
+ samples, and remove obsolete source sheets when unused. Compare semantics,
24
+ themes, states and actual use before merging; equal numbers alone are not enough.
25
+ For an empty destination, establish a coherent initial vocabulary across the
26
+ selected scope. Exact upstream pixels are not a default acceptance requirement.
27
+ Document intentional adaptations and verify consistency with existing UI while
28
+ preserving required behavior. Unrelated cleanup or removal of an existing public
29
+ token needs its own scope/compatibility decision.
30
+
31
+ There are no owner-local token namespaces, token manifests, component token value
32
+ sheets or `tokens` sections in owner contracts. Token previews and their fixtures
33
+ belong under the shared token directory. The public contract remains about shared
34
+ names, meanings, types and alias relationships; ADS supplies no hardcoded palette,
35
+ spacing grid or component catalogue.
36
+
37
+ ## Component variables are mappings and runtime mechanics
38
+
39
+ `--ds-*` belongs to component implementations, `--ux-*` to patterns and review
40
+ presentation, and `--showcase-*` to development scaffolding. They are not additional
41
+ token vocabularies. State styling remains owned by the control. Documented non-state
42
+ customization hooks keep their narrow registration and ownership rules.
43
+
44
+ ```css
45
+ /* In component Linaria: map project Data into a state. */
46
+ --ds-control-bg: var(--accent);
47
+ --ds-control-hover-bg: var(--accent-hover);
48
+ --ds-control-gap: var(--space-4);
49
+ --ds-control-font: var(--font-sans);
50
+
51
+ /* Rejected: private design values, even behind aliases or fallbacks. */
52
+ --ds-control-gap: 7px;
53
+ --ds-control-bg: red;
54
+ --ds-control-gap: var(--space-4, 7px);
55
+ --ds-control-font: Arial;
56
+ ```
57
+
58
+ Styles and static interpolations from imports/helpers obey the same source rule.
59
+ Unknown interpolation is not proof of a valid design source. Typography/layering
60
+ roles follow variable references to their actual consuming properties; a different
61
+ variable name cannot conceal an independent font, weight or stacking level.
62
+
63
+ Zero, structural unitless geometry, percentages, grid fractions, responsive
64
+ viewport/container relationships and structural angles retain their existing use.
65
+ Measured instance geometry still uses exact, documented style-write boundaries;
66
+ those boundaries do not authorize another static design palette. Typed per-instance
67
+ paint bindings retain their provenance and browser checks. Inputs select shared
68
+ paints or local SVG resources, rather than supplying arbitrary visual strings.
69
+
70
+ A calculation containing a raw design length/color is still rejected. Structural
71
+ calculations using shared values can remain valid; static analysis cannot prove
72
+ whether a dimensionless factor represents real geometry or an invented scale.
73
+ Review that intent and do not disguise a new design decision as arithmetic.
74
+
75
+ ## Review overlap without deleting legitimate roles
76
+
77
+ `token-overlap-review` is a nonblocking warning for shared tokens with identical
78
+ normalized definitions across their declared theme/condition scopes. It identifies
79
+ the tokens and source. Inspect their consumers and roles. If one decision is being
80
+ copied, reuse one shared token or make its relationship explicit with an alias.
81
+ Equal values alone do not prove equal purpose: body text and strong text, spacing
82
+ and control sizes, or two motion roles may intentionally differ later. A light-only
83
+ match does not justify merging tokens whose dark/reduced-motion values differ.
84
+
85
+ For our existing workspaces, convert independent component constants explicitly:
86
+ select an existing shared role when it means the same thing; centralize genuinely
87
+ missing decisions; remove private sheets/imports and contract fields; update token
88
+ sample coverage in the shared directory. Preserve themes, units, public APIs and
89
+ behavior unless changing the visual policy was explicitly intended. Review a Git
90
+ diff and run core, project and browser checks. There is no compatibility mode that
91
+ keeps independent component token definitions valid.
@@ -118,3 +118,7 @@ the smallest source/browser reproduction when ownership remains unprovable.
118
118
  guard acceptance; registered tests establish only their actual cases/profiles.
119
119
  Neither establishes untested states, visual parity, an accessibility audit or
120
120
  another MCP host's compatibility. Captures show an appearance, not a transition.
121
+
122
+ When targeted investigation suggests a tooling defect or missing capability, read
123
+ [reporting.md](reporting.md), then use the matching intake tool. Reports preserve
124
+ compact evidence without certifying an ADS cause or changing validation policy.
@@ -19,7 +19,7 @@ managed preview, not the live showcase. Read the summary, then page failing
19
19
  `outcomes`, `diagnostics` or pipeline `checks` through `ads_results` with its
20
20
  `resultId`. Inspect one exact outcome with `ads_investigate({unit,check,runId})`;
21
21
  fix the draft and diff again. See [evidence.md](evidence.md) for page/range limits.
22
- Keep behavior.json/specs with their owner and use registered checks; a scratchpad
22
+ Keep `<Owner>.ads.contract.ts` and specs with their owner and use registered checks; a scratchpad
23
23
  run against live source cannot verify unapplied changes. After validation, apply
24
24
  with `dryRun:false`; ADS revalidates before writing. Dry-run evidence is not saved
25
25
  as passing evidence for the live project.
@@ -106,15 +106,11 @@ on the final candidate before live source is written. Dry-run first. Rejection,
106
106
  conflict and cancellation publish nothing. Dependency installation remains local;
107
107
  the candidate uses installed node_modules. Never bypass a rejected gate directly.
108
108
 
109
- A component/pattern can own constants without expanding the shared vocabulary:
110
- colocate `tokens.json` with `{ "schemaVersion":1, "namespace":"--<owner>-" }`
111
- and a definition-only `tokens.css`, imported by its runtime source. Flat owners use
112
- `<Owner>.tokens.json`/`<Owner>.tokens.css`. Namespaces are unique and cannot overlap
113
- shared or --ds-/--ux-/--showcase- variables. Only that owner consumes/defines its
114
- local tokens; aliases can use shared or own tokens. UI styles stay in Linaria.
115
- Add a colocated token scenario with `kind:"tokens"`, real fixture `samples` and a
116
- development-only review renderer. These inputs belong to the same owner and need real sample
117
- coverage. Manifests and fixtures stay out of the product bundle.
109
+ Static design values and formulas belong in the shared Data foundation. Components
110
+ map those values with `--ds-*` variables; patterns use `--ux-*`. There are no private
111
+ token namespaces/value sheets or token sections in owner contracts. Keep measured
112
+ runtime geometry separate. Read [design-data.md](design-data.md) before adding a
113
+ design value or repairing an ownership/value-source diagnostic.
118
114
 
119
115
  `ads_prepare_token_samples({id, bindings?})` preserves existing project samples,
120
116
  removes undeclared names and returns an owner patchFile. Supply explicit
@@ -138,7 +134,7 @@ DOM. Source ownership must be proven; an `asChild` flag or a lookalike marker is
138
134
  insufficient. Standalone controls and custom scenario styling remain rejected. See
139
135
  [scenarios.md](scenarios.md) for evidence and limits. Preserve the intended
140
136
  composition instead of substituting an unrelated styled control or adding a
141
- demo-only component prop. Review framing belongs in public layout patterns.
137
+ demo-only component prop. Review framing belongs in development-only `review/`, through its separate public entry.
142
138
 
143
139
  A complete runner report containing an ordinary failed assertion preserves each
144
140
  passing check as `passed`; the failed check remains `failed`, and overall
@@ -52,7 +52,7 @@ owns domain constraints and error handling.
52
52
 
53
53
  Check focus zoom in the supported mobile browsers. A 16px-or-larger computed
54
54
  input font can avoid common iOS focus-zoom behavior; verify it on the relevant
55
- device/browser and express any needed size through a local token or variant.
55
+ device/browser and express any needed size through a shared token or component variant.
56
56
  Do not disable user zoom to conceal a typography/layout issue. Preserve the
57
57
  project's dense non-input typography unless the task calls for changing it.
58
58
 
@@ -0,0 +1,101 @@
1
+ # Record an ADS problem or capability request
2
+
3
+ Use this reference when targeted investigation suggests an ADS defect or a
4
+ legitimate workflow needs a missing capability. MCP serves it as
5
+ `ads://guides/reporting`. Reports collect observations for later triage; they do
6
+ not prove an ADS cause, open an upstream issue or change architecture policy.
7
+
8
+ ## Choose the tool
9
+
10
+ - `ads_report_bug`: existing ADS behavior appears broken, including an apparently
11
+ false guard rejection, stale preview, resource delivery or runner defect.
12
+ - `ads_request_feature`: an intended workflow needs a capability ADS does not
13
+ currently provide. Explain the workflow and impact before proposing a design.
14
+
15
+ When classification is uncertain, choose the best fit and state the uncertainty.
16
+ Both tools mark reports `untriaged` and classification `agent-supplied`.
17
+
18
+ Investigate the failing boundary first using [evidence.md](evidence.md). Correct
19
+ ordinary invalid tool arguments, component defects and legitimate guard failures
20
+ in their owner. Do not label every failed check as an ADS bug. A transport error
21
+ does not prove a network-interface cause, and a failed assertion may be a test
22
+ defect. Describe observations separately from `suspectedCause` or `proposal`.
23
+
24
+ ## Submit compact, actionable observations
25
+
26
+ Bug reports require `title`, `expected`, `observed`, nonempty `steps` and
27
+ `frequency` (`always`, `intermittent`, `once` or `unknown`). A one-time failure can
28
+ be reported honestly; repeated reproduction is not required. `suspectedCause` is
29
+ optional. Feature requests require `title`, `workflow`, `capability` and `impact`;
30
+ `proposal` is optional.
31
+
32
+ Both accept optional `unit`, `scenario`, `reporter` and up to three `evidence`
33
+ selectors. Use discovered target IDs where possible. A new draft may not yet be
34
+ registered; naming it is a claim rather than registration or coverage credit.
35
+ Reporter names are agent-supplied metadata, not authenticated identity.
36
+
37
+ ```js
38
+ ads_report_bug({
39
+ title: "Consumer proof rejects a child reached through a local helper",
40
+ unit: "components/Example",
41
+ expected: "The real child and its props are recognized through the helper.",
42
+ observed: "The candidate is rejected by declarative-consumer.",
43
+ steps: ["Render the registered part through its parent.", "Dry-run its owner patch."],
44
+ frequency: "always",
45
+ evidence: [{resultId: "<returned execution ID>"}],
46
+ });
47
+
48
+ ads_request_feature({
49
+ title: "Select checks directly from a prepared draft",
50
+ workflow: "Investigate one registered behavior before validating a large draft.",
51
+ capability: "Run selected draft checks against an isolated candidate.",
52
+ impact: "Avoid repeating unrelated checks during investigation.",
53
+ });
54
+ ```
55
+
56
+ An evidence selector is either `{resultId}` from `ads_verify`/guarded editing,
57
+ or the exact `{unit, check, runId}` from a check outcome. ADS verifies the selector
58
+ and saves a compact completion-time snapshot. Superseded or fabricated IDs fail;
59
+ do not attach another run's evidence. If the older slot is gone, omit the selector
60
+ and state what was observed rather than claiming it remains verified.
61
+
62
+ ADS also captures its version, configured framework, Node/platform, source and
63
+ configuration revisions, available build metadata and capture time. Missing
64
+ metadata is explicitly unobserved. Context capture does not rerun checks or
65
+ establish current passing behavior. A report can refer to a candidate while its
66
+ current-project context describes the live source; compare the labeled revisions.
67
+
68
+ Include a minimal reproduction, not whole component files, complete runner logs,
69
+ customer fixtures, credentials or request headers. The tools accept no file
70
+ attachment path and upload nothing. Artifact links may later become unavailable;
71
+ reports preserve compact text evidence, not image/trace bytes. Snapshot truncation
72
+ is explicit. A saved record is limited to 32 KiB; shorten oversized narrative.
73
+ Keep each report focused on one problem or capability rather than a session dump.
74
+
75
+ The reply is a compact receipt with `reportId`, `revision` and local `storagePath`. Equivalent submissions
76
+ for the same ADS version/framework reuse the ID and increment `submissionCount`.
77
+ This counts submissions, not independent reproductions. The latest submission,
78
+ context and evidence replace that report's details; there is no occurrence log.
79
+
80
+ ## Storage and receipt
81
+
82
+ Both kinds are stored as ordinary JSON files at
83
+ `<projectRoot>/.ds/reports/<reportId>.json`. They are development metadata,
84
+ excluded from production code. Reports do not expire or get deleted by a count
85
+ limit. Archiving/deletion are deliberate maintenance actions; neither intake tool
86
+ performs them. This is project-local collection, not automatic delivery to ADS
87
+ maintainers or GitHub. Share selected reports explicitly when needed.
88
+
89
+ MCP intake is submission-only. There are no tools or resources for listing,
90
+ reading or subscribing to saved reports. The receipt acknowledges local storage;
91
+ it does not return the report body. Inspect or share the local JSON files through
92
+ normal project maintenance when needed. `ads_status.reports` identifies the two
93
+ submission tools, storage directory and this guidance, without listing reports.
94
+
95
+ ## Continue without distorting the design
96
+
97
+ Preserve the draft and legitimate public API while reporting a tooling gap.
98
+ Do not privatize parts, add demo-only props, alter the reference baseline, weaken
99
+ guards or bypass a rejected MCP patch merely to proceed. Continue independent
100
+ work when possible. Tell the user the report ID, the exact blocked step and what
101
+ remains unverified; do not restate the entire stored report in conversation.
@@ -4,8 +4,8 @@ Use this reference for `scenario-render`, `scenario-coverage`, `showcase-control
4
4
  diagnostics. MCP serves the same guide as `ads://guides/scenarios`.
5
5
 
6
6
  All preview kinds open at `?scenario=<discovered-id>`. Use the returned showcase
7
- link instead of inferring a section from an ID's directory: an owner-local token
8
- scenario may live under `components/` or `patterns/`, with `kind: "tokens"`.
7
+ link instead of inferring a section from an ID's directory. Token scenarios and
8
+ their fixtures belong in the configured shared token directory, with `kind: "tokens"`.
9
9
  Legacy `?category=` links remain aliases. The `ads_show_tokens` tool retains its
10
10
  `category` argument; both preview tools return canonical `?scenario=` links.
11
11
 
@@ -55,20 +55,14 @@ state effects. A working Next button is not evidence that form submission works.
55
55
  Keep native action navigation separate from client-side submission behavior;
56
56
  `allow-forms` does not grant host DOM access or top-level navigation.
57
57
 
58
- ## Owner-local token previews load their own definitions
58
+ ## Independent shared token previews
59
59
 
60
- Keep the registered token sheet imported by its runtime owner for product use.
61
- A colocated `kind: "tokens"` scenario may render only the development-only review renderer
62
- with its fixture samples. Discovery adds the registered owner sheet to the
63
- generated record's `stylesheets`; `previewEntriesPlugin` imports those paths
64
- into the token preview independently of the runtime component. Custom builders
65
- that replace this plugin must preserve these explicit stylesheet dependencies.
66
- Do not render the runtime owner merely to retain its CSS or add unrelated sheets.
67
-
68
- Open the exact token scenario in a fresh App and verify resolved values and sample
69
- effects in both themes. A successful ordinary component preview does not prove
70
- the independently bundled token preview loads the same definitions. Shared
71
- foundation styling still follows the project's mount/build integration.
60
+ All token scenarios/fixtures belong under the shared token directory. They render
61
+ project-owned review UI with real sample bindings and probes. The project mount
62
+ adapter loads the shared foundation, so a token preview does not need to render a
63
+ runtime component merely to retain its CSS. There is no owner token-sheet injection.
64
+ Open each affected token scenario in a fresh App and verify sample effects in both
65
+ themes. A component preview alone does not establish token-preview correctness.
72
66
 
73
67
  ## Public children can share their parent's scenario
74
68
 
@@ -45,7 +45,7 @@ ADS gates. For binary/large assets, generate `git diff --binary --full-index` in
45
45
  stay out of model context. Binary changes require Git. When editing is disabled,
46
46
  use the client's normal source-editing tools.
47
47
  For owner drafts, token-sample reconciliation, coupled transactions and local
48
- constant namespaces, read [guarded-editing.md](references/guarded-editing.md).
48
+ shared Data ownership, read [guarded-editing.md](references/guarded-editing.md).
49
49
  For on-demand current/candidate screenshots and visual dry-run review, read
50
50
  [captures.md](references/captures.md).
51
51
  For a rejected patch, failed check or loading error, read
@@ -88,11 +88,11 @@ pattern; reusable controllers use discovered `controllers/<Name>` units. Use the
88
88
  project's configured framework and declared dependencies, or plain TypeScript,
89
89
  browser APIs and local helpers. MCP hosts supply no ad hoc runtime APIs. The
90
90
  framework setting selects compilation/mounting; controller checks also validate
91
- imports. For controller/behavior work, read `ads://guides/behaviors` (offline:
92
- the installed ADS package's `docs/BEHAVIORS.md`). Discover registered guarantees
91
+ imports. For controller/behavior work, read
92
+ [behaviors.md](references/behaviors.md), also served as `ads://guides/behaviors`. Discover registered guarantees
93
93
  with `ads_behaviors`; use `ads_verify` for selected real checks. Optional
94
94
  `exercises` links public behavioral APIs to scenarios; keep `covers` for rendered
95
- UI. Registration and demonstration are not passing evidence. `behavior.json`,
95
+ UI. Registration and demonstration are not passing evidence. `<Owner>.ads.contract.ts`,
96
96
  scenarios, fixtures and checks stay out of production exports/imports. Verify
97
97
  current results, including lifecycle setup/cleanup/setup and the actual browser
98
98
  profile when promised. React StrictMode needs a development harness; wrapping a
@@ -198,20 +198,21 @@ types form the contract; concrete values and theme overrides can differ between
198
198
  projects. Different values for the same compatible token are expected.
199
199
 
200
200
  ADS fixes token names and namespaces. The destination uses the architecture's
201
- shared names, `--ds-*` for components, and `--ux-*` for patterns, including the
202
- owned review layouts. Fixtures define no custom styling. Do not add configurable prefixes, source-prefixed
201
+ shared names, `--ds-*` for components, and `--ux-*` for patterns and
202
+ development-only review helpers. Fixtures define no custom styling. Do not add configurable prefixes, source-prefixed
203
203
  aliases, or a parallel vocabulary. Normalize selected nonconforming source to
204
204
  the ADS architecture as part of the import; report unresolved semantic mappings
205
205
  before writing them. This does not add foreign-prefix support to ADS tooling.
206
206
 
207
207
  | Import mode | Token handling |
208
208
  |-------------|----------------|
209
- | Component, pattern, or style | Reuse destination token names and values; add missing shared definitions with initial values |
209
+ | Component, pattern, or style | Reuse destination semantic roles and values; add only genuinely missing shared decisions |
210
210
  | `tokens`, or items plus an explicit values request | Import all source-provided token values and theme variants; add missing definitions |
211
211
 
212
212
  Inspect the complete source/target contract for additions and compatibility.
213
213
  Preserve existing destination values during item imports, including starter
214
- values. Synchronize missing shared definitions and needed aliases/types without
214
+ values. Map equivalent source roles to existing project roles before adding shared
215
+ definitions and needed aliases/types, without
215
216
  replacing existing registries, helpers, stylesheets, or themes wholesale. A truly
216
217
  empty destination needs initial definitions and values before an item can render.
217
218
 
@@ -256,7 +257,7 @@ and reusable controls/patterns must live in the ADS.
256
257
  Do not copy a source mock's private implementation or keep a demo-only replica.
257
258
  Reusable scenario review layouts are public ADS entities with defined APIs.
258
259
  The outer minimal shell belongs to the MCP client. Showcase/scenario files define no CSS, custom classes, or widget markup.
259
- Use the target's owned review layouts; change their ADS pattern if a new layout
260
+ Use the target's owned review layouts; change their development-only review helper if a new layout
260
261
  is needed inside a scenario. The outer showcase shell belongs to the tool.
261
262
 
262
263
  If no showcase is running, start the built-in client with `ads showcase`.
@@ -284,26 +285,27 @@ The host shows errors and marks retained output as stale. Other hosts may need a
284
285
  explicit preview-tool invocation. Compilation remains project-owned and required
285
286
  for TSX/Linaria; it is automatic, not eliminated.
286
287
 
287
- Reusable review layouts belong in public project ADS patterns, while scenario
288
+ Reusable review layouts belong in development-only `review/`, exported through
289
+ the separate review entry, while scenario
288
290
  files define no CSS, custom classes or widget replicas. Keep real presentation in
289
291
  its component/pattern owner. The tooling shell's CSS is outside that project
290
292
  contract. Legacy custom showcase pages may be retained during migration; new
291
293
  projects require no TokensPage/ComponentsPage/PatternsPage/CompositionPage files.
292
294
 
293
- Colocate `Scenario.tsx` and `fixture.ts` with tokens and each component/pattern; flat owners
294
- may use `<Owner>.scenario.tsx` and `<Owner>.fixture.ts`. Put larger entries under
295
- `composition/<Name>/Scenario.tsx` with their own `fixture.ts`. Export a default
295
+ Colocate `<Owner>.ads.scenario.tsx` and `<Owner>.ads.fixture.ts` with tokens and
296
+ each component/pattern. Put larger entries under `composition/<Name>/` with their
297
+ own marked scenario and fixture. Export a default
296
298
  zero-input mountable view and literal metadata, for example
297
299
  `export const scenario = { title: "Button states", covers: ["Button"] };`.
298
300
  Import the real UI from the public ADS alias. Keep fixture inputs, simulated
299
301
  services and initial state/callback adapters beside the scenario. Empty fixtures
300
302
  are valid for an entry with no inputs. Extra development helpers use a
301
- `scenario/` or `fixtures/` subfolder, or `<Owner>.scenario-adapter.ts`, so guards
303
+ `<Owner>.ads.helpers.ts` file, so guards
302
304
  recognize their role even beside runtime code. Never require a page, router or store to
303
305
  initialize the entry. Several contextual public parts may share one scenario.
304
306
 
305
- IDs derive from ADS-relative filenames: both `components/core/Button/Scenario.tsx`
306
- and `components/core/Button.scenario.tsx` identify `components/core/Button`.
307
+ IDs derive from ADS-relative filenames: both `components/core/Button/Button.ads.scenario.tsx`
308
+ and `components/core/Button.ads.scenario.tsx` identify `components/core/Button`.
307
309
  Use one form, no duplicate IDs or hand-maintained registry. Renames change IDs.
308
310
  The showcase and external hosts mount the same discovered entry. The Vite
309
311
  adapter uses `previewEntriesPlugin` and `createPreviewResources` with
@@ -457,5 +459,15 @@ demo URLs only when running; clean up
457
459
  temporary comparison servers when finished unless the user requested they remain.
458
460
 
459
461
  For static owner contracts, `.ads.` development roles, typed paint/binding APIs,
460
- declarative evidence, token privacy and guarded migration, read
462
+ declarative parent graphs, constrained theme bindings, private visual subject roles,
463
+ shared Data ownership and guarded migration, read
461
464
  [contracts.md](references/contracts.md) when the task touches those contracts.
465
+
466
+ For a suspected ADS defect or missing capability after targeted investigation, read
467
+ [reporting.md](references/reporting.md). Record actionable observations with
468
+ `ads_report_bug` or `ads_request_feature`; preserve valid APIs and rejected drafts.
469
+
470
+ For Data/UX/Skin boundaries, shared token reuse and private-value diagnostics, read
471
+ [design-data.md](references/design-data.md). Components own mappings and mechanics,
472
+ not independent token catalogues. Existing project font, text and spacing roles
473
+ take precedence over divergent upstream constants during adaptation.
@@ -110,8 +110,7 @@ MCP delivers it inside the App document, not the outer showcase host.
110
110
  ownership, and rejects conflicting schemas or registrations shared by unrelated
111
111
  owners. Identical registrations from the same owner are permitted. Runtime
112
112
  `--ds-*` / `--ux-*` variables stay with their runtime owner. A shared token's
113
- registration belongs beside its actual definition in a foundation value sheet;
114
- a namespaced owner token's registration belongs in its registered `tokens.css`.
113
+ registration belongs beside its actual definition in a foundation value sheet.
115
114
  Neither `base.css` nor `fonts.css` becomes a registration escape hatch. Registration
116
115
  alone does not define a token or satisfy its sample/fixture coverage.
117
116
 
@@ -258,6 +257,14 @@ contract; an overlap warning remains a review signal.
258
257
  with `severity: "warning"`. CLI checks still exit successfully when there are no
259
258
  errors; MCP checks and mutations preserve the warning and its guidance URI.
260
259
 
260
+ An unchanged advisory baseline is not evidence that the affected styles are
261
+ correct. Triage warnings that reach an edited owner or its shared helpers against
262
+ the actual DOM classes and computed styles in a compiled scenario. Interaction
263
+ checks may pass without measuring padding, alignment or sizing. When an intended
264
+ layout is known, add a focused rendered assertion for that contract; when keeping
265
+ an overlap, state why it is intentional and which states/directions were checked.
266
+ Keep unresolved paths and unsupported writing modes explicit in the evidence.
267
+
261
268
  The source review examines atomic Linaria templates and statically traceable
262
269
  `cx` arguments, including aliases, local imports/re-exports, local helper returns,
263
270
  arguments/defaults, nested composition, conditional expressions and variant-object