@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.
- package/README.md +7 -5
- package/dist/behaviors.mjs +6 -4
- package/dist/bootstrap-ds/ADS.md +28 -30
- package/dist/bootstrap-ds/README.md +6 -6
- package/dist/bootstrap-ds/design-system/assets/brand/README.md +3 -2
- package/dist/boundaries.mjs +0 -3
- package/dist/check.mjs +15 -22
- package/dist/config.mjs +3 -7
- package/dist/contract-migration.mjs +3 -3
- package/dist/contracts.d.mts +2 -3
- package/dist/declarative-flow.mjs +144 -0
- package/dist/design-values.mjs +81 -0
- package/dist/evidence.mjs +1 -1
- package/dist/mcp/catalog.mjs +4 -2
- package/dist/mcp/context.mjs +3 -3
- package/dist/mcp/prompts.mjs +4 -4
- package/dist/mcp/reports.mjs +101 -0
- package/dist/mcp/server.mjs +38 -3
- package/dist/paint-contracts.mjs +4 -5
- package/dist/preview-resources.mjs +1 -2
- package/dist/runtime-contracts.mjs +26 -37
- package/dist/scenario-trace.mjs +47 -18
- package/dist/scenarios.mjs +15 -15
- package/dist/skills/README.md +7 -3
- package/dist/skills/ads-break-ui/SKILL.md +24 -13
- package/dist/skills/ads-break-ui/references/atomic-styles.md +9 -2
- package/dist/skills/ads-break-ui/references/behaviors.md +393 -0
- package/dist/skills/ads-break-ui/references/captures.md +1 -1
- package/dist/skills/ads-break-ui/references/contracts.md +61 -40
- package/dist/skills/ads-break-ui/references/design-data.md +91 -0
- package/dist/skills/ads-break-ui/references/evidence.md +4 -0
- package/dist/skills/ads-break-ui/references/guarded-editing.md +7 -11
- package/dist/skills/ads-break-ui/references/reporting.md +101 -0
- package/dist/skills/ads-break-ui/references/scenarios.md +9 -15
- package/dist/skills/ads-designer/SKILL.md +26 -15
- package/dist/skills/ads-designer/assets/bootstrap-ds/ADS.md +28 -30
- package/dist/skills/ads-designer/assets/bootstrap-ds/README.md +6 -6
- package/dist/skills/ads-designer/assets/bootstrap-ds/design-system/assets/brand/README.md +3 -2
- package/dist/skills/ads-designer/references/atomic-styles.md +9 -2
- package/dist/skills/ads-designer/references/behaviors.md +393 -0
- package/dist/skills/ads-designer/references/captures.md +1 -1
- package/dist/skills/ads-designer/references/contracts.md +61 -40
- package/dist/skills/ads-designer/references/design-craft.md +1 -1
- package/dist/skills/ads-designer/references/design-data.md +91 -0
- package/dist/skills/ads-designer/references/evidence.md +4 -0
- package/dist/skills/ads-designer/references/guarded-editing.md +7 -11
- package/dist/skills/ads-designer/references/mobile.md +1 -1
- package/dist/skills/ads-designer/references/reporting.md +101 -0
- package/dist/skills/ads-designer/references/scenarios.md +9 -15
- package/dist/skills/ads-import/SKILL.md +29 -17
- package/dist/skills/ads-import/references/atomic-styles.md +9 -2
- package/dist/skills/ads-import/references/behaviors.md +393 -0
- package/dist/skills/ads-import/references/branding.md +1 -1
- package/dist/skills/ads-import/references/captures.md +1 -1
- package/dist/skills/ads-import/references/contracts.md +61 -40
- package/dist/skills/ads-import/references/design-data.md +91 -0
- package/dist/skills/ads-import/references/evidence.md +4 -0
- package/dist/skills/ads-import/references/guarded-editing.md +7 -11
- package/dist/skills/ads-import/references/implementation.md +3 -2
- package/dist/skills/ads-import/references/reporting.md +101 -0
- package/dist/skills/ads-import/references/scenarios.md +9 -15
- package/dist/skills/ads-import/references/tokens.md +11 -9
- package/dist/skills/ads-motion/SKILL.md +23 -12
- package/dist/skills/ads-motion/references/atomic-styles.md +9 -2
- package/dist/skills/ads-motion/references/behaviors.md +393 -0
- package/dist/skills/ads-motion/references/captures.md +1 -1
- package/dist/skills/ads-motion/references/contracts.md +61 -40
- package/dist/skills/ads-motion/references/design-data.md +91 -0
- package/dist/skills/ads-motion/references/evidence.md +4 -0
- package/dist/skills/ads-motion/references/guarded-editing.md +7 -11
- package/dist/skills/ads-motion/references/reporting.md +101 -0
- package/dist/skills/ads-motion/references/scenarios.md +9 -15
- package/dist/skills/{ads-migrate → ads-port}/SKILL.md +59 -31
- package/dist/skills/ads-port/agents/openai.yaml +4 -0
- package/dist/skills/{ads-migrate → ads-port}/references/atomic-styles.md +9 -2
- package/dist/skills/ads-port/references/behaviors.md +393 -0
- package/dist/skills/{ads-migrate → ads-port}/references/captures.md +1 -1
- package/dist/skills/{ads-migrate → ads-port}/references/contracts.md +61 -40
- package/dist/skills/ads-port/references/design-data.md +91 -0
- package/dist/skills/{ads-migrate → ads-port}/references/evidence.md +4 -0
- package/dist/skills/{ads-migrate → ads-port}/references/guarded-editing.md +7 -11
- package/dist/skills/{ads-migrate → ads-port}/references/lint-and-docs.md +5 -0
- package/dist/skills/{ads-migrate → ads-port}/references/native-implementation.md +49 -15
- package/dist/skills/ads-port/references/reporting.md +101 -0
- package/dist/skills/{ads-migrate → ads-port}/references/scenarios.md +9 -15
- package/dist/skills/{ads-migrate → ads-port}/references/testing.md +11 -1
- package/dist/source-values.mjs +3 -3
- package/dist/tokens.mjs +5 -8
- package/dist/unit-contracts.mjs +24 -12
- package/docs/ADS.md +42 -73
- package/docs/ARCHITECTURE.md +54 -20
- package/docs/BEHAVIORS.md +46 -36
- package/docs/CHANGELOG.md +34 -0
- package/docs/CONTRACTS.md +67 -39
- package/docs/GUIDE.md +21 -13
- package/docs/MCP.md +67 -11
- package/package.json +1 -1
- package/dist/scoped-tokens.mjs +0 -68
- package/dist/skills/ads-migrate/agents/openai.yaml +0 -4
- /package/dist/skills/{ads-migrate → ads-port}/references/cli.md +0 -0
- /package/dist/skills/{ads-migrate → ads-port}/references/layers.md +0 -0
- /package/dist/skills/{ads-migrate → ads-port}/references/review.md +0 -0
package/docs/ADS.md
CHANGED
|
@@ -50,7 +50,7 @@ The shell owns section tabs, collapsible navigation, theme controls and the App
|
|
|
50
50
|
slot. The browser host uses a separate-origin sandbox proxy; project runtimes,
|
|
51
51
|
styles, fonts and UI execute/apply only in the App iframe. Components, patterns,
|
|
52
52
|
token values, scenarios, fixtures and their Linaria styles remain project-owned.
|
|
53
|
-
App presentation comes from the selected compiled scenario; reusable review layouts live in public
|
|
53
|
+
App presentation comes from the selected compiled scenario; reusable review layouts live in development-only `review/` through its separate public entry. Do not recreate
|
|
54
54
|
production widgets inside the client or scenario.
|
|
55
55
|
|
|
56
56
|
There are four sections: Tokens, Components, Patterns and Composition. There are
|
|
@@ -72,19 +72,19 @@ Colocate development entries and fixture inputs:
|
|
|
72
72
|
design-system/
|
|
73
73
|
tokens/
|
|
74
74
|
typography.css
|
|
75
|
-
Typography.scenario.tsx
|
|
76
|
-
Typography.fixture.ts
|
|
75
|
+
Typography.ads.scenario.tsx
|
|
76
|
+
Typography.ads.fixture.ts
|
|
77
77
|
components/core/Button/
|
|
78
78
|
Button.tsx
|
|
79
|
-
|
|
80
|
-
fixture.ts
|
|
79
|
+
Button.ads.scenario.tsx
|
|
80
|
+
Button.ads.fixture.ts
|
|
81
81
|
patterns/Editor/
|
|
82
82
|
Editor.tsx
|
|
83
|
-
|
|
84
|
-
fixture.ts
|
|
83
|
+
Editor.ads.scenario.tsx
|
|
84
|
+
Editor.ads.fixture.ts
|
|
85
85
|
composition/Workspace/
|
|
86
|
-
|
|
87
|
-
fixture.ts
|
|
86
|
+
Workspace.ads.scenario.tsx
|
|
87
|
+
Workspace.ads.fixture.ts
|
|
88
88
|
showcase/mcp/ Project compiler adapter
|
|
89
89
|
main.tsx
|
|
90
90
|
```
|
|
@@ -95,9 +95,8 @@ guarded public re-exports. They may use the configured framework and declared
|
|
|
95
95
|
dependencies, plain TypeScript and browser APIs; CSS/Linaria and visual DOM belong
|
|
96
96
|
to consumers. They require no artificial visual scenario.
|
|
97
97
|
|
|
98
|
-
Optional `<Owner>.ads.contract.ts` registers behavior with actual symbol references
|
|
99
|
-
|
|
100
|
-
subjects, guarantees and owner-local checks against project-configured runner
|
|
98
|
+
Optional `<Owner>.ads.contract.ts` registers behavior with actual symbol references:
|
|
99
|
+
subjects, guarantees and colocated checks against project-configured runner
|
|
101
100
|
profiles. `exercises` records public behavioral APIs demonstrated by a scenario;
|
|
102
101
|
`covers` retains its rendered UI contract. ADS validates references and reachable
|
|
103
102
|
uses; execution evidence is separate and becomes stale when its inputs change.
|
|
@@ -105,8 +104,8 @@ Runtime imports/re-exports of manifests, tests, fixtures and scenarios are rejec
|
|
|
105
104
|
See [controllers and behavioral verification](BEHAVIORS.md) for the schema,
|
|
106
105
|
framework/dependency gates and MCP execution contract.
|
|
107
106
|
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
Use `<Owner>.ads.scenario.tsx` and `<Owner>.ads.fixture.ts` for new entries.
|
|
108
|
+
The scenario exports a default independently mountable view and literal metadata
|
|
110
109
|
`export const scenario = { title: "Button states", covers: ["Button"] };`.
|
|
111
110
|
Optional static `captureTargets` maps up to 20 names to CSS selectors scoped to
|
|
112
111
|
that scenario's App. These support explicitly requested element screenshots; they
|
|
@@ -119,7 +118,7 @@ Token entries under the configured token directory declare
|
|
|
119
118
|
Its colocated fixture declares literal `samples: [{ token, property, probe }]`.
|
|
120
119
|
Each token must exist and have sample coverage; duplicate bindings, missing probes,
|
|
121
120
|
empty covers and value-only inspectors fail. The default entry passes the declared
|
|
122
|
-
samples to a rendered public
|
|
121
|
+
samples to a rendered public review renderer's `samples` prop. No token-name/property mapping
|
|
123
122
|
or sample values are embedded in the tool. Display values come from foundation CSS;
|
|
124
123
|
probes are isolated verification inputs owned by the fixture.
|
|
125
124
|
|
|
@@ -137,12 +136,12 @@ mandatory caller inputs or prior page initialization. Related parts may share a
|
|
|
137
136
|
scenario containing their required public parent. Larger composition scenarios
|
|
138
137
|
reuse production screen patterns; that screen reuse remains skill guidance.
|
|
139
138
|
|
|
140
|
-
IDs derive from the ADS-relative path: `components/core/Button/
|
|
141
|
-
`components/core/Button.scenario.tsx` both identify `components/core/Button`.
|
|
139
|
+
IDs derive from the ADS-relative path: `components/core/Button/Button.ads.scenario.tsx` and
|
|
140
|
+
`components/core/Button.ads.scenario.tsx` both identify `components/core/Button`.
|
|
142
141
|
Use one form per owner. Renaming moves the ID. No manually assigned ID or parallel
|
|
143
|
-
registry is maintained.
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
registry is maintained. Use marked `<Owner>.ads.fixture.ts` files and
|
|
143
|
+
`<Owner>.ads.helpers.ts` adapters for new source. An empty fixture is valid without inputs.
|
|
144
|
+
All `.ads.` files stay outside the production import graph.
|
|
146
145
|
|
|
147
146
|
`scenario-contract`, `scenario-render` and `scenario-coverage` checks require valid
|
|
148
147
|
entries and reachable public render references for every public renderable
|
|
@@ -157,7 +156,7 @@ mounting, correct props, every branch/state or visual parity. The older
|
|
|
157
156
|
|
|
158
157
|
`token-scenario-reference` rejects undeclared token names in metadata and reachable
|
|
159
158
|
inputs. `token-scenario-render` rejects claimed tokens with no reachable input
|
|
160
|
-
reference; `token-scenario-coverage` requires every discovered shared
|
|
159
|
+
reference; `token-scenario-coverage` requires every discovered shared token
|
|
161
160
|
to have coverage. A new or removed token therefore needs a scenario/fixture
|
|
162
161
|
update. All three are errors in `ads check`, run by `lint:ds` and the build.
|
|
163
162
|
Coverage is static reachability, not proof that every branch actually renders
|
|
@@ -200,56 +199,27 @@ connected project's actual entry. Older tooling must be upgraded before migratio
|
|
|
200
199
|
|
|
201
200
|
## Shared token contract
|
|
202
201
|
|
|
203
|
-
###
|
|
202
|
+
### Shared Data and component mappings
|
|
204
203
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
204
|
+
Design values, semantic roles, formulas and themes have one shared source in the
|
|
205
|
+
configured token foundation. Independent owner-local token namespaces, value
|
|
206
|
+
sheets and owner-contract `tokens` sections are not supported. Components map
|
|
207
|
+
shared values into `--ds-*` state/implementation variables; patterns use `--ux-*`.
|
|
208
|
+
These variables cannot hide raw design values, including in fallbacks, themes or
|
|
209
|
+
statically resolved helper/import interpolation. Typography/layering checks follow
|
|
210
|
+
aliases to their actual CSS consumers. Measured geometry and typed instance paint
|
|
211
|
+
bindings retain their narrow runtime contracts; they are not static design scales.
|
|
210
212
|
|
|
211
|
-
Shared
|
|
212
|
-
|
|
213
|
+
Shared token previews and sample coverage live under the configured token directory.
|
|
214
|
+
The project mount adapter imports its foundation for both runtime and independent
|
|
215
|
+
token previews. No owner stylesheet dependencies are injected into preview entries.
|
|
216
|
+
`ads_prepare_token_samples` reconciles real shared bindings from project-selected
|
|
217
|
+
properties/probes; it does not invent missing semantics.
|
|
213
218
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
tokens.css # :root { --notice-width: 356px; }
|
|
219
|
-
Scenario.tsx
|
|
220
|
-
fixture.ts
|
|
221
|
-
Tokens.scenario.tsx # kind: "tokens", development-only review renderer + samples
|
|
222
|
-
Tokens.fixture.ts
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
Flat owners use `<Owner>.tokens.json` and `<Owner>.tokens.css`. A unit has one
|
|
226
|
-
explicit namespace, unique across owners and separate from shared/runtime-variable
|
|
227
|
-
prefixes. The stylesheet contains only namespaced custom-property definitions
|
|
228
|
-
under root/theme conditions; imports, selectors for UI, ordinary declarations,
|
|
229
|
-
font faces and animations remain outside it. Its runtime owner imports it, so
|
|
230
|
-
product and preview consume the same values. Raw UI styling remains token-backed.
|
|
231
|
-
|
|
232
|
-
Local token aliases may reference shared tokens or their own namespace, with
|
|
233
|
-
undefined references and cycles rejected. Other owners consume shared tokens;
|
|
234
|
-
they cannot redefine, write or directly consume another owner's local namespace.
|
|
235
|
-
Measured runtime variables retain their existing exact `styleWrites` boundary.
|
|
236
|
-
`ads_tokens` returns each token's owner, definitions and local namespace.
|
|
237
|
-
|
|
238
|
-
A colocated scenario sets `kind:"tokens"` and declares real fixture `samples`
|
|
239
|
-
consumed by a development-only review renderer. Its ID still derives from its source path.
|
|
240
|
-
Discovery attaches its owner's registered definition sheet as `stylesheets` on
|
|
241
|
-
the generated scenario record; `previewEntriesPlugin` imports it directly into
|
|
242
|
-
that preview's module graph. CSS-only package side effects can then tree-shake
|
|
243
|
-
the runtime component without dropping the token definitions. Keep the runtime
|
|
244
|
-
CSS import for product use; the token scenario need not import or render its owner.
|
|
245
|
-
Every local token needs this real sample coverage, just like shared tokens.
|
|
246
|
-
Definitions, metadata, fixture and token scenario belong to the same edit unit.
|
|
247
|
-
Manifests/fixtures are development inputs; production includes the runtime's
|
|
248
|
-
imported CSS definitions, never the preview adapter or tooling manifest.
|
|
249
|
-
|
|
250
|
-
Use `ads_prepare_token_samples` to propose sample reconciliation from explicit
|
|
251
|
-
project property/probe bindings. The tool preserves project sample meaning and
|
|
252
|
-
reports missing mappings instead of choosing them from token prefixes.
|
|
219
|
+
`token-overlap-review` warns about identical normalized shared definitions across
|
|
220
|
+
their declared theme scopes. It never merges semantic roles or blocks a build merely
|
|
221
|
+
because values coincide. Shared Data boundary violations are errors. See the
|
|
222
|
+
[portable Data guide](../skills/ads-designer/references/design-data.md).
|
|
253
223
|
|
|
254
224
|
### Shared definitions
|
|
255
225
|
|
|
@@ -280,8 +250,7 @@ CSS imports the approved token files in order; shared assignments belong in
|
|
|
280
250
|
those token files, never in consumer styles or component state overrides.
|
|
281
251
|
|
|
282
252
|
Typed custom-property registrations follow the same ownership. Runtime-variable
|
|
283
|
-
`@property` metadata lives in component/pattern Linaria; shared
|
|
284
|
-
token registrations live beside real token definitions. Names are document-global:
|
|
253
|
+
`@property` metadata lives in component/pattern Linaria; shared token registrations live beside real token definitions. Names are document-global:
|
|
285
254
|
unrelated owners and conflicting descriptor sets cannot claim the same name.
|
|
286
255
|
Descriptors have their own CSS grammar and independent literal defaults; normal
|
|
287
256
|
visual styling still uses tokens. Registration does not create token/sample
|
|
@@ -470,8 +439,8 @@ Validate accepted and rejected cases, configuration, and false-positive limits.
|
|
|
470
439
|
|
|
471
440
|
## Bootstrap and updates
|
|
472
441
|
|
|
473
|
-
|
|
474
|
-
|
|
442
|
+
Portable architecture and workflow guides live in each skill's `references/`,
|
|
443
|
+
including shared Data, behavior contracts, atomic styles and scenarios. The maintained copies
|
|
475
444
|
are in `skills/ads-designer/references/`; MCP serves those packaged references.
|
|
476
445
|
`npm run sync:skill-references` copies them to the other skills for standalone use;
|
|
477
446
|
`npm run check:skill-references`
|
|
@@ -482,7 +451,7 @@ Root [bootstrap-ds/](../bootstrap-ds/README.md) is the canonical empty scaffold.
|
|
|
482
451
|
Its identical copy under `skills/ads-designer/assets/bootstrap-ds/` makes the
|
|
483
452
|
skill self-contained. Run `npm run sync:skill-starter` after edits and
|
|
484
453
|
`npm run check:skill-starter` to verify the copy. Both contain empty product component/composition directories and a minimal project-owned
|
|
485
|
-
token review renderer. The scaffold
|
|
454
|
+
token review renderer. The scaffold review renderer can be renamed or replaced; the tool
|
|
486
455
|
does not require that name or its styles and ships no product UI catalogue.
|
|
487
456
|
|
|
488
457
|
Tool releases should version contract changes, rules, skills, bootstrap support,
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -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
|
|
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
|
|
219
|
-
|
|
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,22 +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
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
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.
|
|
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
|
|
624
|
+
and contain nested parts, with every chain anchored at a rendering root. Exercise
|
|
625
|
+
metadata records reachable use; registered browser checks establish its effects.
|
|
626
|
+
Binding producers declare each direct/derived paint path explicitly. Private
|
|
627
|
+
visual implementation subjects are distinct from headless controller subjects.
|
|
628
|
+
Competing registrations fail. The
|
|
595
629
|
[contract reference](CONTRACTS.md) specifies the authoring and analysis limits.
|
|
596
630
|
|
|
597
631
|
Any `.ads.` source is development-only. Runtime implementation/types/styles cannot
|
|
@@ -602,7 +636,7 @@ scenarios and fixtures use the marked names; existing IDs remain stable.
|
|
|
602
636
|
|
|
603
637
|
Instance bindings are distinct from static tokens and arbitrary inline styles.
|
|
604
638
|
Source checks trace config origin, key validation, exact map construction and
|
|
605
|
-
attachment to an owner root. Shared
|
|
639
|
+
attachment to an owner root. Shared token and private runtime-variable ownership and consumer permissions
|
|
606
640
|
remain enforced. Browser audits inspect current scoped values, paint effects and
|
|
607
641
|
local SVG resources; registered checks must cover updates/removal, isolation and
|
|
608
642
|
relevant themes. Registration, source-demonstrated consumption and current browser
|
|
@@ -614,9 +648,9 @@ a rendered parent. Metadata alone cannot turn a null-returning stub into verifie
|
|
|
614
648
|
UI. Invalid scenario fields preserve independent valid coverage; unreadable
|
|
615
649
|
prerequisites report that coverage is not established.
|
|
616
650
|
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
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
|
-
|
|
29
|
-
implementation references
|
|
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,43 +42,53 @@ those inputs are rejected, including dynamic imports and aliases.
|
|
|
42
42
|
|
|
43
43
|
## Register guarantees
|
|
44
44
|
|
|
45
|
-
An optional
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
```
|
|
51
|
-
{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
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
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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.
|
|
85
|
+
|
|
86
|
+
Private subjects default to the headless controller role. For an intentionally
|
|
87
|
+
visual internal renderer or binding producer, declare `role: "implementation"`
|
|
88
|
+
alongside its `implementation` reference in the contract. Its source ownership and normal runtime gates
|
|
89
|
+
still apply; registration does not make it public API. Shared `controllers/`
|
|
90
|
+
source remains headless regardless of subject metadata. See the
|
|
91
|
+
[owner contract](CONTRACTS.md#a-contract-uses-actual-implementation-references).
|
|
82
92
|
|
|
83
93
|
Static validation establishes registration and ownership, not that the guarantee
|
|
84
94
|
is true. README prose is not automatically certified. Link specific guarantees
|
|
@@ -266,7 +276,7 @@ selected `checks` and optional `scenarios` URLs. Write a bounded JSON report:
|
|
|
266
276
|
"cases": [
|
|
267
277
|
{
|
|
268
278
|
"id": "prepend-anchor",
|
|
269
|
-
"file": "design-system/components/MessageScroller/behavior.spec.ts",
|
|
279
|
+
"file": "design-system/components/MessageScroller/MessageScroller.ads.behavior.spec.ts",
|
|
270
280
|
"status": "passed"
|
|
271
281
|
}
|
|
272
282
|
]
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,40 @@
|
|
|
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
|
+
|
|
28
|
+
## 0.3.25
|
|
29
|
+
|
|
30
|
+
- Support source-proven shared/nested declarative parts, with acyclic parent
|
|
31
|
+
graphs anchored to rendering roots and bounded multi-relationship discovery.
|
|
32
|
+
- Trace recursive child flattening, selections, props records, mapped fixtures
|
|
33
|
+
and repeated review layout instances without changing render coverage.
|
|
34
|
+
- Prove derived theme binding maps from explicit constrained `valueFrom` paths;
|
|
35
|
+
retain key/map/scope checks and current browser paint audits.
|
|
36
|
+
- Distinguish private visual behavior subjects with explicit implementation roles
|
|
37
|
+
while preserving headless defaults, shared-controller gates and migration.
|
|
38
|
+
|
|
5
39
|
## 0.3.24
|
|
6
40
|
|
|
7
41
|
- Audit derived `light-dark()` bindings when both branches are accessible
|