mosaic-headless 1.36.3 → 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.
Files changed (36) hide show
  1. package/SKILL.md +179 -1119
  2. package/assets/templates/platforms/claude-ai.json +1 -1
  3. package/assets/templates/platforms/claude-code.json +5 -2
  4. package/assets/templates/platforms/codex-cli.json +1 -1
  5. package/assets/templates/platforms/copilot.json +1 -1
  6. package/assets/templates/platforms/gemini-cli.json +1 -1
  7. package/data/pending.csv +8 -0
  8. package/data/terms-zh.csv +97 -0
  9. package/evals/RESULTS.md +41 -0
  10. package/evals/cases.json +329 -0
  11. package/evals/grade.py +121 -0
  12. package/evals/runs/2026-11-16-final-with-skill.json +29 -0
  13. package/evals/runs/2026-11-16-final-without-skill.json +30 -0
  14. package/evals/runs/2026-11-16-r1-with-skill.json +19 -0
  15. package/evals/runs/2026-11-16-r1-without-skill.json +19 -0
  16. package/evals/runs/2026-11-16-r2-with-skill.json +9 -0
  17. package/evals/runs/2026-11-16-r2-without-skill.json +9 -0
  18. package/evals/runs/2026-11-16-r3-without-skill.json +1 -0
  19. package/package.json +1 -1
  20. package/references/building.md +93 -0
  21. package/references/core-rules.md +143 -0
  22. package/references/data-files.md +102 -0
  23. package/references/design-system.md +1 -1
  24. package/references/facts.md +261 -0
  25. package/references/failure-modes.md +1 -1
  26. package/references/maintenance.md +70 -0
  27. package/references/tools.md +84 -0
  28. package/references/tutorials.md +1 -1
  29. package/references/upgrading.md +2 -2
  30. package/references/verification-record.md +395 -0
  31. package/scripts/check-release.mjs +10 -5
  32. package/scripts/install.mjs +7 -5
  33. package/tools/check_numbers.py +196 -0
  34. package/tools/mo.py +132 -7
  35. package/tools/test_mosaic.py +373 -0
  36. 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.
@@ -150,12 +150,17 @@ const counts = {
150
150
  "data/popover-verification.csv": 37,
151
151
  "data/value-coercion-verification.csv": 12,
152
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");
153
156
  for (const [file, expected] of Object.entries(counts)) {
154
157
  if (!fs.existsSync(path.join(ROOT, file))) { fail(`${file} missing`); continue; }
155
158
  const n = rows(file);
156
- if (n !== expected) fail(`${file} has ${n} rows, SKILL.md claims ${expected}`);
157
- if (!skill.includes(String(expected)))
158
- fail(`SKILL.md never mentions ${expected}, but ${file} has that many rows`);
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}`);
159
164
  }
160
165
 
161
166
  // a sweep whose own blind spots were folded into a pass rate is the failure this
@@ -264,8 +269,8 @@ if ((batch.match(/,PASS,/g) || []).length < 10)
264
269
  // claim in SKILL.md go stale.
265
270
  {
266
271
  const cases = fs.readdirSync(path.join(ROOT, "evals"), { withFileTypes: true })
267
- .filter(d => d.isDirectory() && d.name !== "results").map(d => d.name);
268
- if (cases.length < 5) fail(`evals/ has ${cases.length} cases, SKILL.md claims five`);
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`);
269
274
  for (const c of cases)
270
275
  if (!fs.existsSync(path.join(ROOT, "evals", c, "graders", "criteria.md")))
271
276
  fail(`evals/${c} has no graders/criteria.md`);
@@ -242,7 +242,7 @@ function walkFiles(dir) {
242
242
  return out;
243
243
  }
244
244
 
245
- function copySection(sec, dstRoot, force) {
245
+ function copySection(sec, dstRoot, force, prune = true) {
246
246
  // Upgrades MUST delete what the previous version left behind: a stale, wrong
247
247
  // dataset sitting next to the right one is worse than no installer.
248
248
  const srcPath = path.join(ROOT, sec);
@@ -260,7 +260,7 @@ function copySection(sec, dstRoot, force) {
260
260
  }
261
261
  let pruned = 0;
262
262
  const secDir = path.join(dstRoot, sec);
263
- if (fs.existsSync(secDir)) {
263
+ if (prune && fs.existsSync(secDir)) {
264
264
  for (const f of walkFiles(secDir)) {
265
265
  if (!keep.has(path.resolve(f))) { fs.unlinkSync(f); pruned++; }
266
266
  }
@@ -277,7 +277,7 @@ async function installFull(cfg, root, force, dry) {
277
277
  const content = buildFrontmatter(cfg.frontmatter) + readSkillBody();
278
278
  const plan = { file, size: content.length, sections: [] };
279
279
  if (dry) {
280
- 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);
281
281
  return plan;
282
282
  }
283
283
  await step("寫入 SKILL.md", () => {
@@ -285,10 +285,12 @@ async function installFull(cfg, root, force, dry) {
285
285
  if (fs.existsSync(file) && !force) die(`Refusing to overwrite ${file} - pass --force.`);
286
286
  fs.writeFileSync(file, content);
287
287
  });
288
- for (const s of ["references", "tools", "data", "sites"]) {
288
+ for (const s of ["references", "tools", "data", "sites", "evals", "scripts"]) {
289
289
  if (!cfg.sections?.[s]) continue;
290
290
  await step(`複製 ${s}/`, () => {
291
- const [n, pruned] = copySection(s, dir, force);
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");
292
294
  plan.sections.push(`${s} (${n} files${pruned ? `, ${pruned} stale removed` : ""})`);
293
295
  });
294
296
  }