mosaic-headless 1.36.2 → 1.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SKILL.md +179 -1119
- package/assets/templates/platforms/claude-ai.json +6 -3
- package/assets/templates/platforms/claude-code.json +10 -4
- package/assets/templates/platforms/codex-cli.json +6 -3
- package/assets/templates/platforms/continue.json +1 -1
- package/assets/templates/platforms/copilot.json +6 -3
- package/assets/templates/platforms/cursor.json +1 -1
- package/assets/templates/platforms/gemini-cli.json +6 -3
- package/data/pending.csv +8 -0
- package/data/terms-zh.csv +97 -0
- package/evals/RESULTS.md +41 -0
- package/evals/cases.json +329 -0
- package/evals/grade.py +121 -0
- package/evals/runs/2026-11-16-final-with-skill.json +29 -0
- package/evals/runs/2026-11-16-final-without-skill.json +30 -0
- package/evals/runs/2026-11-16-r1-with-skill.json +19 -0
- package/evals/runs/2026-11-16-r1-without-skill.json +19 -0
- package/evals/runs/2026-11-16-r2-with-skill.json +9 -0
- package/evals/runs/2026-11-16-r2-without-skill.json +9 -0
- package/evals/runs/2026-11-16-r3-without-skill.json +1 -0
- package/package.json +1 -1
- package/references/building.md +93 -0
- package/references/core-rules.md +143 -0
- package/references/data-files.md +102 -0
- package/references/design-system.md +1 -1
- package/references/facts.md +261 -0
- package/references/failure-modes.md +1 -1
- package/references/maintenance.md +70 -0
- package/references/tools.md +84 -0
- package/references/tutorials.md +1 -1
- package/references/upgrading.md +2 -2
- package/references/verification-record.md +395 -0
- package/scripts/check-release.mjs +15 -7
- package/scripts/install.mjs +35 -14
- package/scripts/sync-version.mjs +5 -3
- package/tools/check_numbers.py +196 -0
- package/tools/mo.py +132 -7
- package/tools/test_mosaic.py +373 -0
- package/tools/verify_menus.py +1 -1
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
# Verification record
|
|
2
|
+
|
|
3
|
+
What was swept, probed, driven and measured, on which version, with what coverage. Moved out of SKILL.md on 2026-11-16 (skill SOP pass).
|
|
4
|
+
|
|
5
|
+
## What was verified, and how
|
|
6
|
+
|
|
7
|
+
Everything ran against a live install: WordPress 7.1, WooCommerce 11.1,
|
|
8
|
+
Mosaic Pro 1.0.12, **unlicensed** — the licence gates the theme library and updates,
|
|
9
|
+
not the node factories, so the Pro types register and render regardless. The
|
|
10
|
+
site was built on 1.0.7 and upgraded in place five times: every data migration
|
|
11
|
+
ran over the real theme (1.0.11 has none; 1.0.12's Select split ran by itself in
|
|
12
|
+
the background), the source tables were re-extracted from 1.0.12, every demo
|
|
13
|
+
verifier was re-run on the result, and the node sweep covers 133 of 134 types
|
|
14
|
+
(`document` excluded because its probe wrecks the master; the seven Select and
|
|
15
|
+
List box types swept on 1.0.12, the rest on 1.0.11), so the tables describe 1.0.12
|
|
16
|
+
as delivered, not as declared. Where a row is still an older measurement - the property sweeps - the
|
|
17
|
+
section says so. 1.0.11 swapped the Free/Pro split and 1.0.12 replaced the native
|
|
18
|
+
select (`references/upgrading.md`).
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
WRITE PATH verified end to end over REST
|
|
22
|
+
theme -> master -> healed node tree -> template -> nodes -> public HTML
|
|
23
|
+
|
|
24
|
+
NODE SWEEP 134 of 134 node types, ONE PER DOCUMENT, committed then rendered then
|
|
25
|
+
deleted, asserting each type's attrID against the delivered HTML:
|
|
26
|
+
RENDERED 82 id found; tag and classes recorded
|
|
27
|
+
COMMITTED 25 row exists, nothing reached the page
|
|
28
|
+
COMMIT_5xx 15 PHP fatal on commit
|
|
29
|
+
BROKE_PAGE 12 committed, then the whole page died
|
|
30
|
+
data/node-verification.csv. 1.0.9's four new types - modal,
|
|
31
|
+
modal-window, modal-overlay, openstreetmap - all render, and so
|
|
32
|
+
does 1.0.10's one, popover (<div popover=manual>, swept on 1.0.10;
|
|
33
|
+
the other rows are the 1.0.9 sweep).
|
|
34
|
+
Re-swept on 1.0.8: five types that used to commit and render
|
|
35
|
+
nothing (accordion-title, loop-pagination and its two buttons,
|
|
36
|
+
multi-steps-form-step) now kill the page instead - the render
|
|
37
|
+
guard on their required parent throws. Same advice, louder
|
|
38
|
+
failure: nest them. `button` now renders `<button>`, not `<span>`.
|
|
39
|
+
Three of the non-rendering outcomes are artefacts of the sweep's own
|
|
40
|
+
method - one type per document, under a plain div - and not of the
|
|
41
|
+
type: `component-instance` (needs `component-instance/<id>`),
|
|
42
|
+
`accordion-item` and `accordion-content` (need their parent). Each is
|
|
43
|
+
proven to work as built, and `data/node-type-notes.csv` says so
|
|
44
|
+
beside the row. The sweep verdict stands; the note is what to read.
|
|
45
|
+
|
|
46
|
+
STYLE the states[state][breakpoint][property] shape confirmed by writing it
|
|
47
|
+
and reading back the compiled CSS; 20 of 22 structured value shapes
|
|
48
|
+
pinned down the same way. data/style-value-shapes.csv
|
|
49
|
+
|
|
50
|
+
DESIGN SYS variants and collection variables both verified against compiled
|
|
51
|
+
CSS: a variant on the Heading 2 catalog entry emitted a site-wide
|
|
52
|
+
h2,.m-heading-2{...} rule (1.0.7: h2,.M_EL_Text__Heading2), and a
|
|
53
|
+
collection variable emitted
|
|
54
|
+
:root{--brand: rgb(9, 99, 199)} with background-color:var(--brand).
|
|
55
|
+
references/design-system.md
|
|
56
|
+
|
|
57
|
+
SLIDER the slider family nested as its factories require, driven in a
|
|
58
|
+
browser, 19 of 19 across two configurations: it advances unaided on
|
|
59
|
+
its declared delay, the arrows and bullets move it, Enter on a
|
|
60
|
+
focused bullet moves it, and under prefers-reduced-motion it holds
|
|
61
|
+
still on its own. The sweep calls the whole family COMMIT_500 /
|
|
62
|
+
BROKE_PAGE, which is what a bare `slider` does under a plain div and
|
|
63
|
+
nothing about the component - the same kind of row the accordion
|
|
64
|
+
probe corrected. Two facts no markup announces: a
|
|
65
|
+
slider-navigation-bullet is a TEMPLATE, repeated once per slide with
|
|
66
|
+
the SAME id on every copy and an aria-label taken from each slide's
|
|
67
|
+
own title; and an arrow hides ITSELF at the end it cannot pass.
|
|
68
|
+
data/slider-verification.csv
|
|
69
|
+
|
|
70
|
+
SITE the nineteen converted Elementor pages assembled into one real site:
|
|
71
|
+
a shared shell, a menu of `menu-link` nodes that render real
|
|
72
|
+
<a href>, a WordPress page each, and a modal on every page - six
|
|
73
|
+
distinct configurations across pageLoad / exitIntent / scrollDepth,
|
|
74
|
+
cap / cooldown / firstRunWindow, page / session / forever memory and
|
|
75
|
+
four closedby policies. 46 of 46 navigation checks (including no page scrolling sideways at three widths), 19 of 19 pages
|
|
76
|
+
carrying a working modal. data/navigation-verification.csv,
|
|
77
|
+
data/page-modal-verification.csv
|
|
78
|
+
|
|
79
|
+
DIALOG 1.0.9's features built on a live page and read back out of the
|
|
80
|
+
browser, 19 of 19: the modal renders a real <dialog> (aria-modal
|
|
81
|
+
appears only with an overlay child), a modalOpen action opens it and
|
|
82
|
+
modalClose closes it, closedby=everything is answered by Esc,
|
|
83
|
+
remember/forget write and clear mos:v1:r:<name> in local AND session
|
|
84
|
+
storage, scrollDepth fires, and an exitIntent modal opened by the
|
|
85
|
+
interaction SHORTHAND alone - nothing in the page points at it -
|
|
86
|
+
runs once a session and again in a new one, which is the cap rule
|
|
87
|
+
holding. The OpenStreetMap element carries the coordinates only in
|
|
88
|
+
the {"v": ...} object form. data/dialog-verification.csv,
|
|
89
|
+
references/dialog-and-triggers.md. Re-run on 1.0.10, 19 of 19, with
|
|
90
|
+
one row changed: the open modal is now in the top layer (1.0.10
|
|
91
|
+
moved it onto the Popover API - `dialog.open` is always false, read
|
|
92
|
+
`:popover-open`; close from script with `mosaicDialog.requestClose()`)
|
|
93
|
+
|
|
94
|
+
POPOVER 1.0.10's non-blocking surface on a lab page, 37 of 37 in Chromium:
|
|
95
|
+
a page-load notice leaves the page scrollable and clickable;
|
|
96
|
+
closedby nothing / clickOutside / everything each honoured; an
|
|
97
|
+
unanchored menu on its trigger to the pixel, an anchored card on
|
|
98
|
+
the element it names, the nine screen cells where they say;
|
|
99
|
+
keepInView flips and ___popover--flipped styles the flipped one -
|
|
100
|
+
and without it the popover does not overflow but slides back over
|
|
101
|
+
its own trigger. A three-step tour taught the two rules that decide
|
|
102
|
+
how any sequence is built: a dialog opened from inside another is
|
|
103
|
+
its child and closes with it, and closing a popover suspends the
|
|
104
|
+
interactions inside it - so steps advance on afterClose, never on a
|
|
105
|
+
button that opens the next one. data/popover-verification.csv
|
|
106
|
+
|
|
107
|
+
FIELDS ACF 6.8 and Meta Box 5.15, forty fields registered in code on a page,
|
|
108
|
+
read back off the delivered HTML: 59 of 62 expressions resolve to the
|
|
109
|
+
value expected, the 3 empties explained (select label needs ACF's
|
|
110
|
+
array format; oEmbed dies in a text node, lives in a code node).
|
|
111
|
+
Loops over relationship / checkbox / taxonomy / gallery / clone /
|
|
112
|
+
group fields rendered exactly the rows the field holds. The names
|
|
113
|
+
are not guessable (meta_k, meta_k__label, loopk, loop-k for a
|
|
114
|
+
group, item/value_sub) - tools/list_fields.php prints them.
|
|
115
|
+
data/custom-fields-verification.csv, references/custom-fields.md
|
|
116
|
+
|
|
117
|
+
DYNAMIC the @VAR('namespace/name') language verified against rendered output -
|
|
118
|
+
@VAR('post/title') produced the real post title, @concat/@substr/
|
|
119
|
+
@fallback all compose over it. 74 variables in
|
|
120
|
+
data/dynamic-variables.csv. references/dynamic-content.md
|
|
121
|
+
|
|
122
|
+
PROPERTIES 170 probes over the declared property surface, each value asserted
|
|
123
|
+
against the delivered markup and the compiled CSS separately.
|
|
124
|
+
data/property-verification.csv
|
|
125
|
+
|
|
126
|
+
STATES 59 of the 60 style states written to a live page on 1.0.12 and
|
|
127
|
+
matched against the selector `data/style-states.csv` promises:
|
|
128
|
+
39 COMPILED exactly, 15 NO_HOST (their node type cannot be committed
|
|
129
|
+
safely), 4 SKIPPED, 1 ABSENT (`___select--opened`: a `select` only
|
|
130
|
+
renders inside a `field`, and the probe host is a bare div). The new
|
|
131
|
+
Select's option states (--active, --selected, --in-toggle) and
|
|
132
|
+
___listbox-option compiled. All seven globally usable states verified
|
|
133
|
+
- and the pseudo-classes are emitted UPPERCASE (`._j:HOVER`), so
|
|
134
|
+
grepping a stylesheet for `:hover` finds nothing.
|
|
135
|
+
data/style-state-verification.csv
|
|
136
|
+
|
|
137
|
+
COMPONENTS used on the example page: the service row is committed ONCE to the
|
|
138
|
+
theme and the page places four instances of it, each carrying only the
|
|
139
|
+
words that differ. A spec declares `"components": {...}` and a node
|
|
140
|
+
says `"component": "<name>"` with `"overrides"`; build_site creates or
|
|
141
|
+
refills the definition, resolves the name to an id, and writes the
|
|
142
|
+
overrides in a second pass - they cannot exist before the instance
|
|
143
|
+
does. Plus the system driven end to end, 8 of 8 checks: a component
|
|
144
|
+
created under a category, its document healed, its tree filled through
|
|
145
|
+
the WRITABLE instance, the read-only one refused the same write as a
|
|
146
|
+
negative control, and two instances placed on a page rendering the one
|
|
147
|
+
definition twice. data/component-verification.csv
|
|
148
|
+
|
|
149
|
+
INTERACTION the JS animation path, values included, since v1.35: one tween
|
|
150
|
+
authored in the editor and read back showed the shape - values keyed
|
|
151
|
+
by the property META's uuid, written as CSS strings with units, and
|
|
152
|
+
`duration` on the keyframe for timed triggers. Written headlessly it
|
|
153
|
+
binds on the first commit; bare numbers and name keys, one field
|
|
154
|
+
apart, store nothing. data/interaction-verification.csv
|
|
155
|
+
|
|
156
|
+
TUTORIALS Mosaic's four docs tutorials built from tools/interactions.py and
|
|
157
|
+
driven in Chromium, 16 of 16: a dark/light switcher (variable-mode
|
|
158
|
+
action on `document`, session cookie, cookie-gated page load), a
|
|
159
|
+
loading overlay that ends display:none and stops catching clicks, a
|
|
160
|
+
class-triggered scroll reveal that fires per element, and a loop a
|
|
161
|
+
hover suspends and resumes by Interaction ID.
|
|
162
|
+
data/tutorial-recipes-verification.csv
|
|
163
|
+
|
|
164
|
+
INTRO the page-load sequence - an ukiyo-e sheet printing itself eleven
|
|
165
|
+
carved blocks at a time, each impression landing out of register and
|
|
166
|
+
easing true against the kento marks - sampled at fifteen timestamps
|
|
167
|
+
on a monotonic clock (the first version scheduled against the previous
|
|
168
|
+
sample and drifted fourteen seconds) and asserted on eight counts: it
|
|
169
|
+
plays, the animated `@property` counter reaches 100, the veil leaves
|
|
170
|
+
hit-testing, no in-viewport content is stranded at opacity 0 (elements
|
|
171
|
+
waiting on a scroll timeline are exempt, and a `position:fixed` one
|
|
172
|
+
was the case that showed the exemption had to be by timeline and not
|
|
173
|
+
by position), a real click reaches the document, under
|
|
174
|
+
`prefers-reduced-motion` the veil never exists and nothing is
|
|
175
|
+
invisible at 120ms, plus AMBIENT, which counts how many elements still
|
|
176
|
+
move with no input once everything has settled. Every other motion
|
|
177
|
+
check here fires on an EVENT; a page can pass all of them and be
|
|
178
|
+
completely static the moment you stop scrolling. Also measured, with
|
|
179
|
+
CPU-time counters rather than frame timing, which proved unusable:
|
|
180
|
+
the sequence costs one late frame over a page with no animation in it,
|
|
181
|
+
because it no longer starts until the document's own first layout is
|
|
182
|
+
done. All pass. data/intro-verification.csv
|
|
183
|
+
|
|
184
|
+
LOOP 28 assertions about the one animation nothing else here can see: the
|
|
185
|
+
ukiyo-e plate that keeps printing itself in the corner of the page,
|
|
186
|
+
forever, with no input, and that opens to full size when tapped. Its
|
|
187
|
+
eleven moving parts are SVG groups inside a raw-HTML `code` node, so no
|
|
188
|
+
checker that walks the spec tree knows they exist. RUNS reads them on the clock across a full period; each part is
|
|
189
|
+
then proved periodic by PAUSING its animation and scrubbing
|
|
190
|
+
`currentTime` to T and T + one period (14s), past the stagger, which
|
|
191
|
+
is the only way to compare a compositor-driven transform exactly.
|
|
192
|
+
CLEAR is the one that found a real defect: a fixed decoration is
|
|
193
|
+
opaque, and on a full-bleed page no rectangle anywhere along the right
|
|
194
|
+
edge misses text at every scroll offset - so the test is not "never
|
|
195
|
+
overlaps" but "never makes anything unreadable", per element, at five
|
|
196
|
+
widths and twenty-five scroll stops.
|
|
197
|
+
It caught three footer links buried at the position a reader cannot
|
|
198
|
+
scroll past. Once the plate became a control, REACHABLE holds links and
|
|
199
|
+
buttons to the same rule - swallowing a click is worse than covering a
|
|
200
|
+
word - and OPENS/CLOSES/KEYBOARD check the enlarged view on the
|
|
201
|
+
delivered page, including that Enter works on it. Five widths from 390
|
|
202
|
+
up. data/loop-verification.csv
|
|
203
|
+
|
|
204
|
+
CONVERSION an Elementor page turned into a Mosaic spec and built, then checked
|
|
205
|
+
against its own source: every text string, every image, every link
|
|
206
|
+
target, every h1-h6 level. 5 of 5 on a page with 16 images and 21
|
|
207
|
+
links. Scope was decided by counting a real site rather than by
|
|
208
|
+
taste - across 19 Elementor pages and 3,292 element instances,
|
|
209
|
+
container/heading/text-editor/button/html/icon-list/divider/image
|
|
210
|
+
are 99.6% of everything present, and the long tail (loop-grid, form,
|
|
211
|
+
posts, countdown, third-party addons) is dynamic: a query and a
|
|
212
|
+
server-side action have no node to become. Those are reported per
|
|
213
|
+
element with a reason, never dropped, and `--strict` refuses to
|
|
214
|
+
write a spec while any remain. The verifier earned its place twice
|
|
215
|
+
over: it caught the converter writing `url` onto `text` and `image`
|
|
216
|
+
nodes, which only `button`, `menu-link`, `wysiwyg-link` and
|
|
217
|
+
`dropdown-toggle` declare - 19 of 21 link targets accepted, stored
|
|
218
|
+
and silently emitting no anchor, this platform's signature failure -
|
|
219
|
+
and it caught two bugs in ITSELF that had blamed the converter.
|
|
220
|
+
Then the converted page went through the skill's own suites like any
|
|
221
|
+
other: 96 responsive declarations verified, 5,595 computed values
|
|
222
|
+
with 0 overridden, and a design audit of 49 CONTRAST findings -
|
|
223
|
+
every one traced back to a colour the Elementor source declared,
|
|
224
|
+
none introduced by the conversion. That split is a check of its own,
|
|
225
|
+
FIDELITY, and the inherited defects are recorded beside it as still
|
|
226
|
+
real: a 3.19:1 label is 3.19:1 whoever wrote it. 8 of 8.
|
|
227
|
+
Then all 19 pages of the site, each re-converted, built onto one
|
|
228
|
+
post, cache purged and content-checked in turn: 19 of 19, 3,281
|
|
229
|
+
elements carried and 11 declared. The one that did not pass the
|
|
230
|
+
first time was the HTTP 500 above - an "open source" page whose
|
|
231
|
+
`<style>` blocks wrote `@media(`. data/conversion-verification.csv,
|
|
232
|
+
data/conversion-batch.csv
|
|
233
|
+
|
|
234
|
+
ACCORDION 7 checks that resolve a wrong entry in this skill's own tables.
|
|
235
|
+
`accordion-item` and `accordion-content` are recorded BROKE_PAGE, which
|
|
236
|
+
is true and misleading in exactly the way `component-instance` was:
|
|
237
|
+
the failure is `AccordionItemElementMResource instance required`, i.e.
|
|
238
|
+
committed without the parent the factory needs. Nested properly they
|
|
239
|
+
commit, render, and emit `<dl><div class=AccordionItem><dt tabindex=0
|
|
240
|
+
aria-expanded><dd>` - which is why the worked example's enlargeable
|
|
241
|
+
plate is built on it instead of on a checkbox, and gets keyboard
|
|
242
|
+
operation and a screen-reader state for nothing. The negative control
|
|
243
|
+
asks the placement guard rather than committing, because the first
|
|
244
|
+
version of the probe destroyed the positive result it had just
|
|
245
|
+
produced. data/accordion-verification.csv
|
|
246
|
+
|
|
247
|
+
BROWSER 4,132 computed-style readings on the delivered pages in Chromium, at
|
|
248
|
+
three viewports: every declared property vs `getComputedStyle` on the
|
|
249
|
+
node it targets. 2,929 compared and agreed, 912 not-comparable and
|
|
250
|
+
labelled as such, 0 overridden. Plus a design audit that only a browser
|
|
251
|
+
can run - font fallback, tracking against script, text contrast,
|
|
252
|
+
horizontal overflow, clipped text, line measure - 26 findings, every
|
|
253
|
+
one ruled on in writing. Two pages: the homepage, and a WooCommerce
|
|
254
|
+
My Account page whose UI arrives through one `code` node running a
|
|
255
|
+
shortcode - which is also the measurement that shows the property
|
|
256
|
+
sweep's NO_EFFECT on `processShortcodes` was the sweep, not the flag.
|
|
257
|
+
data/browser-verification/ (one CSV per page), data/design-audit.csv
|
|
258
|
+
|
|
259
|
+
RWD 733 responsive declarations across two sites asserted against the
|
|
260
|
+
stylesheet the site actually served - each `_t`/`_m` property matched
|
|
261
|
+
to its element's generated class inside that breakpoint's own media
|
|
262
|
+
query. All verified; the checker is itself checked against a poisoned
|
|
263
|
+
spec so a pass means something. data/rwd-verification.csv
|
|
264
|
+
|
|
265
|
+
BUILD nine complete designed pages built through the tables alone and checked
|
|
266
|
+
in a real browser, hover states included - the ninth uses only design
|
|
267
|
+
tokens, element-class typography and dynamic content, no hard-coded
|
|
268
|
+
colour anywhere, plus a real studio homepage rebuilt from the
|
|
269
|
+
live moksaweb.com. sites/_moksa.py is the one that ships.
|
|
270
|
+
|
|
271
|
+
EVAL the skill itself, put in front of the model with and without it loaded
|
|
272
|
+
(`claude plugin eval .`, 5 cases x 3 runs x 2 arms, three LLM judges
|
|
273
|
+
per run). Every case is a question a user of this skill would ask
|
|
274
|
+
where the measured facts decide the answer: an invented `heading`
|
|
275
|
+
type, a `code` node that 500s on `@media(`, whether the accordion is
|
|
276
|
+
usable, moving a theme without going live by accident, placing a grid
|
|
277
|
+
child on tablet only. With the skill: 1.00 on all five. Without it:
|
|
278
|
+
0.00 on all five - and the baseline's best answer was to refuse ("I
|
|
279
|
+
don't have reliable knowledge of Mosaic Pro's spec format"), which is
|
|
280
|
+
the right thing for a model with no data to do. evals/
|
|
281
|
+
|
|
282
|
+
MEASURED 115 REST routes, 157 variants, 59 condition subjects,
|
|
283
|
+
23 tables / 210 columns - read off the running site.
|
|
284
|
+
|
|
285
|
+
UPGRADE 1.0.7 -> 1.0.8 driven over the plugin's own milestone route from
|
|
286
|
+
outside wp-admin (6 milestones, 17 calls): four class tables renamed,
|
|
287
|
+
every emitted class name changed (M_EL4 M_EL_Div -> m-div _e),
|
|
288
|
+
customStyles -> customDeclarations in every stored row - and the
|
|
289
|
+
one selector on the worked example that named an emitted class
|
|
290
|
+
stopped matching until it was rewritten. references/upgrading.md
|
|
291
|
+
|
|
292
|
+
FROM SOURCE 134 node types, 201 properties (68 with enums), 285 pluggable IDs,
|
|
293
|
+
134 placement rules, 27 composite default structures (10 declared,
|
|
294
|
+
17 healed in), 101 style properties, 60 style states, 16 interaction
|
|
295
|
+
triggers - re-extracted from the 1.0.12 tree.
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
**Coverage, stated as a fraction rather than as a headline.** The verification
|
|
299
|
+
counts above are real, but they are not the same as "the surface is verified", and
|
|
300
|
+
the difference is worth being exact about:
|
|
301
|
+
|
|
302
|
+
```
|
|
303
|
+
node types 134 / 134 swept live, one per document
|
|
304
|
+
node properties 191 / 196 re-probed with a value shaped by each property's
|
|
305
|
+
own validator chain: 39 APPLIED, 45 NO_EFFECT,
|
|
306
|
+
2 EDITOR_ONLY, 55 NO_HOST (no rendering type
|
|
307
|
+
declares them), 2 INSTRUMENT, 48 SKIPPED
|
|
308
|
+
(the five missing are 1.0.10's popover -
|
|
309
|
+
role, ariaLive, accessibleLabel, closedby,
|
|
310
|
+
positioning - measured on the popover lab
|
|
311
|
+
instead: data/popover-verification.csv)
|
|
312
|
+
style properties 101 / 101 swept live; 61 COMPILED, 18 ABSENT, 1 NO_ELEMENT,
|
|
313
|
+
21 SKIPPED (no test value could be synthesised, and
|
|
314
|
+
SKIPPED is never counted as a pass)
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
**A same-value probe measures the probe, not the surface.** The first property run
|
|
318
|
+
sent the string `MPROP0000X` to all 181 properties (191 by 1.0.9) regardless of what each wanted,
|
|
319
|
+
and reported 91 NO_EFFECT. The tell was that `tagName` was in that list while the
|
|
320
|
+
entire demo site is built on it. Re-probed with a value derived from the declared
|
|
321
|
+
validator chain - array for `ValidatorArray`, boolean for `ValidatorBoolean`, a legal
|
|
322
|
+
enum member for `ValidatorAcceptedValues` - six of those NO_EFFECTs turn out to work:
|
|
323
|
+
`tagName`, `target`, `rel`, `height`, `size`, `insertLocation`.
|
|
324
|
+
|
|
325
|
+
**A sweep cannot be its own subject.** `attrID` and `style` came back SKIPPED
|
|
326
|
+
because the property sweep finds each probe node BY its `attrID` and reads its
|
|
327
|
+
`style` back out of the compiled CSS - asking it to probe those is asking a ruler to
|
|
328
|
+
measure itself. But SKIPPED reads as "nobody checked", and they are in fact the two
|
|
329
|
+
most heavily asserted properties here: every row of `style-verification.csv` is a
|
|
330
|
+
`style` assertion and every row of `rwd-verification.csv` is a `style` assertion
|
|
331
|
+
located by `attrID`. They are labelled **INSTRUMENT**, which is not a pass either,
|
|
332
|
+
and the label carries the file and row count that does cover them.
|
|
333
|
+
|
|
334
|
+
**Some properties are gated by a companion.** `target` and `rel` did nothing until
|
|
335
|
+
the node also carried a `url`: `menu-link` renders a `<span>` without one (and so did
|
|
336
|
+
`button` before 1.0.8; it is a `<button>` now)
|
|
337
|
+
and an `<a href>` with it, so an anchor-only attribute has nothing to attach to. A
|
|
338
|
+
NO_EFFECT is only meaningful once the property has been given the context it needs.
|
|
339
|
+
|
|
340
|
+
Twelve remain NO_EFFECT with a correctly shaped value, `cssClasses` and `attributes`
|
|
341
|
+
among them - recorded as measured-inert-with-this-shape rather than as dead, because
|
|
342
|
+
a third shape may yet be the right one.
|
|
343
|
+
|
|
344
|
+
**A property that belongs to a `group` is inert when you set it on its own.** This is
|
|
345
|
+
the sweep's one big result and it is exact:
|
|
346
|
+
|
|
347
|
+
```
|
|
348
|
+
ungrouped 78 properties 58 COMPILED 0 ABSENT (20 SKIPPED)
|
|
349
|
+
grouped 20 properties 0 COMPILED 18 ABSENT (1 NO_ELEMENT, 1 SKIPPED)
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
Zero exceptions in either direction. The 20 are the `borderStyle` per-side longhands
|
|
353
|
+
(12), `outlineStyle` (4) and `gridChildPosition` (4) — so `borderLeftWidth`,
|
|
354
|
+
`outlineColor` and `gridColumnStart` are all instances of one rule rather than three
|
|
355
|
+
oddities. Set the grouped shape instead (`border` takes `{width, style, color}`), or
|
|
356
|
+
use `customDeclarations`. `data/style-verification.csv` carries the group beside the result
|
|
357
|
+
so the pattern is in the data, not just in this paragraph.
|
|
358
|
+
|
|
359
|
+
**Known gaps, stated rather than papered over.**
|
|
360
|
+
|
|
361
|
+
- `backgroundStyle` is the one style property whose shape resisted every attempt — it
|
|
362
|
+
accepts what you send and emits `background-image:none`. Use `customDeclarations` for
|
|
363
|
+
gradients, as the glass and darkglow pages do.
|
|
364
|
+
- **`gridColumnStart` / `gridColumnEnd` / `gridRowStart` / `gridRowEnd` emit nothing.**
|
|
365
|
+
All four are real entries in `data/style-properties.csv`, under `gridChildPosition`.
|
|
366
|
+
Measured: 16 `gridColumnStart` declarations committed, zero occurrences of
|
|
367
|
+
`grid-column` in the delivered CSS. Change the template; you cannot place a child.
|
|
368
|
+
- **Interaction values bind in the editor's shape - build them with
|
|
369
|
+
`tools/interactions.py`.** `initial` and each keyframe's `properties` are keyed by
|
|
370
|
+
the property META's `uuid`, values are CSS strings with units (`"0%"`, `"40px"`),
|
|
371
|
+
and a timed trigger's keyframe carries `duration`/`delay` in ms (only
|
|
372
|
+
`scrollIntoView`/`pointerMove` use `progressData`). A simple action's fields go
|
|
373
|
+
under `<type>Options.settings` - under the opt-group's name they are dropped, and a
|
|
374
|
+
suspend without its ID suspends everything on the element, itself included. The
|
|
375
|
+
full table of stored shapes is in references/interactions.md.
|
|
376
|
+
- An element **condition** puts its comparator INSIDE the subject's options
|
|
377
|
+
(`subject.<type>Options.comparator`). One level up is a PHP fatal that blanks the
|
|
378
|
+
whole page; so is `{"v": …}` as a `variable` subject's `dynamicCode` (a plain
|
|
379
|
+
string there). A server-condition `regexp` needs delimiters (`/./`) - `.` never
|
|
380
|
+
matches and the element silently disappears. Driven end to end on a client build;
|
|
381
|
+
references/templates-and-conditions.md
|
|
382
|
+
|
|
383
|
+
**Cross-checked against the official docs.** All 72 pages of Mosaic's own
|
|
384
|
+
documentation (Oct 2026) were compared with this skill, and every disagreement was
|
|
385
|
+
settled in the 1.0.11 source or on the live site. Where the docs are wrong for
|
|
386
|
+
1.0.11, the skill follows the source and says so at the spot: the system
|
|
387
|
+
requirement is WordPress 6.9, not 6.5; evaluator functions are `find_image` /
|
|
388
|
+
`remove_html`, and `@FINDIMAGE` prints nothing; a slider's `duration` is the
|
|
389
|
+
transition, not the dwell; the Google Maps Language and Region settings do not
|
|
390
|
+
exist; the optimizer opt-out attributes are the four the source adds, not the
|
|
391
|
+
docs' longer list. Where the docs corrected the skill, re-measured on 1.0.11:
|
|
392
|
+
`gridChildPosition` compiles as a group, `scale` / `perspective` /
|
|
393
|
+
`collectionModesData` exist and compile, `youtube` `privacy` renders on
|
|
394
|
+
youtube-nocookie.com, "Wrap in link" is a `button` with the Link variant, and a
|
|
395
|
+
variable's `customProperty` is optional.
|
|
@@ -75,8 +75,11 @@ else if (fmVersion[1].trim() !== want)
|
|
|
75
75
|
const platDir = path.join(ROOT, "assets", "templates", "platforms");
|
|
76
76
|
for (const f of fs.readdirSync(platDir).filter((x) => x.endsWith(".json"))) {
|
|
77
77
|
const cfg = JSON.parse(fs.readFileSync(path.join(platDir, f), "utf8"));
|
|
78
|
-
const
|
|
79
|
-
|
|
78
|
+
const fm = cfg.frontmatter || {};
|
|
79
|
+
for (const k of ["version", "author"])
|
|
80
|
+
if (k in fm) fail(`${f} frontmatter has a top-level ${k} - it belongs under metadata`);
|
|
81
|
+
const v = fm.metadata?.version;
|
|
82
|
+
if (v !== undefined && v !== want) fail(`${f} frontmatter metadata.version ${v} != ${want}`);
|
|
80
83
|
if (JSON.stringify(cfg).includes("gutenberg-headless"))
|
|
81
84
|
fail(`${f} still names another skill`);
|
|
82
85
|
}
|
|
@@ -147,12 +150,17 @@ const counts = {
|
|
|
147
150
|
"data/popover-verification.csv": 37,
|
|
148
151
|
"data/value-coercion-verification.csv": 12,
|
|
149
152
|
};
|
|
153
|
+
// The per-file table moved from SKILL.md to references/data-files.md (skill SOP:
|
|
154
|
+
// SKILL.md holds routing, not data). The claim is now the row in that table.
|
|
155
|
+
const dataFiles = read("references/data-files.md");
|
|
150
156
|
for (const [file, expected] of Object.entries(counts)) {
|
|
151
157
|
if (!fs.existsSync(path.join(ROOT, file))) { fail(`${file} missing`); continue; }
|
|
152
158
|
const n = rows(file);
|
|
153
|
-
if (n !== expected) fail(`${file} has ${n} rows,
|
|
154
|
-
|
|
155
|
-
|
|
159
|
+
if (n !== expected) fail(`${file} has ${n} rows, references/data-files.md claims ${expected}`);
|
|
160
|
+
const shown = file + (fs.statSync(path.join(ROOT, file)).isDirectory() ? "/" : "");
|
|
161
|
+
if (!dataFiles.includes("| `" + shown + "` | " + expected + " ")
|
|
162
|
+
&& !skill.includes(String(expected)))
|
|
163
|
+
fail(`neither references/data-files.md nor SKILL.md states ${expected} for ${file}`);
|
|
156
164
|
}
|
|
157
165
|
|
|
158
166
|
// a sweep whose own blind spots were folded into a pass rate is the failure this
|
|
@@ -261,8 +269,8 @@ if ((batch.match(/,PASS,/g) || []).length < 10)
|
|
|
261
269
|
// claim in SKILL.md go stale.
|
|
262
270
|
{
|
|
263
271
|
const cases = fs.readdirSync(path.join(ROOT, "evals"), { withFileTypes: true })
|
|
264
|
-
.filter(d => d.isDirectory() && d.name
|
|
265
|
-
if (cases.length < 5) fail(`evals/ has ${cases.length} cases,
|
|
272
|
+
.filter(d => d.isDirectory() && !["results", "runs"].includes(d.name)).map(d => d.name);
|
|
273
|
+
if (cases.length < 5) fail(`evals/ has ${cases.length} plugin-eval cases, the floor is five`);
|
|
266
274
|
for (const c of cases)
|
|
267
275
|
if (!fs.existsSync(path.join(ROOT, "evals", c, "graders", "criteria.md")))
|
|
268
276
|
fail(`evals/${c} has no graders/criteria.md`);
|
package/scripts/install.mjs
CHANGED
|
@@ -172,18 +172,37 @@ function detectPlatforms() {
|
|
|
172
172
|
|
|
173
173
|
// ---------- content assembly ------------------------------------------------
|
|
174
174
|
|
|
175
|
+
// SKILL.md's own `description: |` block is the one source of truth. The platform
|
|
176
|
+
// templates only say *whether* a description goes in their frontmatter; their copy
|
|
177
|
+
// of the text used to be pasted in by hand and went stale (installs kept announcing
|
|
178
|
+
// the 1.0.10-era counts while the repo said 1.0.12).
|
|
179
|
+
function readSkillDescription() {
|
|
180
|
+
const raw = fs.readFileSync(path.join(ROOT, "SKILL.md"), "utf8");
|
|
181
|
+
const end = raw.indexOf("\n---", 3);
|
|
182
|
+
const head = raw.startsWith("---") && end !== -1 ? raw.slice(0, end) : "";
|
|
183
|
+
const m = /^description:\s*\|\s*\n((?:[ \t]+.*(?:\n|$))+)/m.exec(head);
|
|
184
|
+
if (!m) die("SKILL.md frontmatter has no `description: |` block");
|
|
185
|
+
return m[1].split("\n").map((l) => l.replace(/^ {2}/, "")).join("\n").trim();
|
|
186
|
+
}
|
|
187
|
+
|
|
175
188
|
function buildFrontmatter(fm) {
|
|
176
189
|
if (!fm) return "";
|
|
190
|
+
if ("description" in fm) fm = { ...fm, description: readSkillDescription() };
|
|
177
191
|
const lines = ["---"];
|
|
178
|
-
|
|
179
|
-
if (v === null || v === undefined)
|
|
180
|
-
if (Array.isArray(v)) lines.push(`${k}: [${v.map((x) => JSON.stringify(x)).join(", ")}]`);
|
|
181
|
-
else if (typeof v === "boolean") lines.push(`${k}: ${v}`);
|
|
182
|
-
else if (typeof v === "
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
192
|
+
const emit = (k, v, ind) => {
|
|
193
|
+
if (v === null || v === undefined) return;
|
|
194
|
+
if (Array.isArray(v)) lines.push(`${ind}${k}: [${v.map((x) => JSON.stringify(x)).join(", ")}]`);
|
|
195
|
+
else if (typeof v === "boolean") lines.push(`${ind}${k}: ${v}`);
|
|
196
|
+
else if (typeof v === "object") {
|
|
197
|
+
// `metadata:` - the Agent Skills spec rejects a top-level author/version
|
|
198
|
+
lines.push(`${ind}${k}:`);
|
|
199
|
+
for (const [k2, v2] of Object.entries(v)) emit(k2, v2, ind + " ");
|
|
200
|
+
} else if (typeof v === "string" && (v.includes("\n") || v.length > 100)) {
|
|
201
|
+
lines.push(`${ind}${k}: |`);
|
|
202
|
+
for (const sub of v.split("\n")) lines.push(`${ind} ${sub}`);
|
|
203
|
+
} else lines.push(`${ind}${k}: ${JSON.stringify(v)}`);
|
|
204
|
+
};
|
|
205
|
+
for (const [k, v] of Object.entries(fm)) emit(k, v, "");
|
|
187
206
|
lines.push("---");
|
|
188
207
|
return lines.join("\n") + "\n\n";
|
|
189
208
|
}
|
|
@@ -223,7 +242,7 @@ function walkFiles(dir) {
|
|
|
223
242
|
return out;
|
|
224
243
|
}
|
|
225
244
|
|
|
226
|
-
function copySection(sec, dstRoot, force) {
|
|
245
|
+
function copySection(sec, dstRoot, force, prune = true) {
|
|
227
246
|
// Upgrades MUST delete what the previous version left behind: a stale, wrong
|
|
228
247
|
// dataset sitting next to the right one is worse than no installer.
|
|
229
248
|
const srcPath = path.join(ROOT, sec);
|
|
@@ -241,7 +260,7 @@ function copySection(sec, dstRoot, force) {
|
|
|
241
260
|
}
|
|
242
261
|
let pruned = 0;
|
|
243
262
|
const secDir = path.join(dstRoot, sec);
|
|
244
|
-
if (fs.existsSync(secDir)) {
|
|
263
|
+
if (prune && fs.existsSync(secDir)) {
|
|
245
264
|
for (const f of walkFiles(secDir)) {
|
|
246
265
|
if (!keep.has(path.resolve(f))) { fs.unlinkSync(f); pruned++; }
|
|
247
266
|
}
|
|
@@ -258,7 +277,7 @@ async function installFull(cfg, root, force, dry) {
|
|
|
258
277
|
const content = buildFrontmatter(cfg.frontmatter) + readSkillBody();
|
|
259
278
|
const plan = { file, size: content.length, sections: [] };
|
|
260
279
|
if (dry) {
|
|
261
|
-
for (const s of ["references", "tools", "data", "sites"]) if (cfg.sections?.[s]) plan.sections.push(s);
|
|
280
|
+
for (const s of ["references", "tools", "data", "sites", "evals", "scripts"]) if (cfg.sections?.[s]) plan.sections.push(s);
|
|
262
281
|
return plan;
|
|
263
282
|
}
|
|
264
283
|
await step("寫入 SKILL.md", () => {
|
|
@@ -266,10 +285,12 @@ async function installFull(cfg, root, force, dry) {
|
|
|
266
285
|
if (fs.existsSync(file) && !force) die(`Refusing to overwrite ${file} - pass --force.`);
|
|
267
286
|
fs.writeFileSync(file, content);
|
|
268
287
|
});
|
|
269
|
-
for (const s of ["references", "tools", "data", "sites"]) {
|
|
288
|
+
for (const s of ["references", "tools", "data", "sites", "evals", "scripts"]) {
|
|
270
289
|
if (!cfg.sections?.[s]) continue;
|
|
271
290
|
await step(`複製 ${s}/`, () => {
|
|
272
|
-
|
|
291
|
+
// evals/ is copied without pruning: an installed copy may hold eval cases
|
|
292
|
+
// of its own, and the skill's behaviour does not depend on stale ones.
|
|
293
|
+
const [n, pruned] = copySection(s, dir, force, s !== "evals");
|
|
273
294
|
plan.sections.push(`${s} (${n} files${pruned ? `, ${pruned} stale removed` : ""})`);
|
|
274
295
|
});
|
|
275
296
|
}
|
package/scripts/sync-version.mjs
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Targets:
|
|
13
13
|
* SKILL.md frontmatter `version:`
|
|
14
|
-
* assets/templates/platforms/*.json frontmatter.version, where present
|
|
14
|
+
* assets/templates/platforms/*.json frontmatter.metadata.version, where present
|
|
15
15
|
* .claude-plugin/plugin.json version (the Claude plugin directory reads it)
|
|
16
16
|
*
|
|
17
17
|
* check-release.mjs asserts afterwards that this worked, so a silent miss here
|
|
@@ -55,8 +55,10 @@ const platDir = path.join(ROOT, "assets", "templates", "platforms");
|
|
|
55
55
|
for (const f of fs.readdirSync(platDir).filter((x) => x.endsWith(".json"))) {
|
|
56
56
|
const p = path.join(platDir, f);
|
|
57
57
|
const cfg = JSON.parse(fs.readFileSync(p, "utf8"));
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
// under metadata:, like SKILL.md - a top-level version fails the Agent Skills upload
|
|
59
|
+
const meta = cfg.frontmatter?.metadata;
|
|
60
|
+
if (meta && "version" in meta && meta.version !== v) {
|
|
61
|
+
meta.version = v;
|
|
60
62
|
fs.writeFileSync(p, JSON.stringify(cfg, null, 2) + "\n");
|
|
61
63
|
touched.push(`assets/templates/platforms/${f}`);
|
|
62
64
|
}
|