SKEIN / verify/check.js Run it from any directory: node /opt/www/art/skein/verify/check.js It needs Node and nothing else: no dependency, no network, no database. Exit codes 0 every control passed 1 at least one control failed, and the failing line names what it measured 2 no verdict: glyphs.js, stitch.js or core.js is missing or unreadable, and the bench refuses to guess rather than pass on nothing What it checks It loads the modules the page loads, asks the engine for a design, writes the DST bytes and decodes them back. Twenty-one controls: determinism, the header fields, the record count, the box, the longest record, the end record, the file length, the thread length, the centring, the trim runs, three refusal states, the dispersion of twenty words, and the three passes adding up to the stitch count. Control 6 walks every decoded stitch back to the segment it must lie on, so a mistake in the bytes cannot hide behind a good picture. Control 14 refuses a word that does not fit the hoop and prints the height that would. What it cannot see Whether a machine sews it. No embroidery machine touched this file: stitch order, density and trims are conventions of the craft, and a real machine can still pucker, pull or break a thread where this model says it will not. It cannot see how the letters look in thread either: the fill is a scanline fill at 0.42 mm, a plausible density rather than a measured one. It also does not check the page's drawing, only the geometry the drawing is made from. A second reader, not shipped because it needs a library (pyembroidery): projects/skein/build/read-dst.py FILE.dst DESIGN.json It decodes with someone else's code, compares count, width, thread and centring, and renders a PNG. Its verdict on this file is quoted in the log. The control that proves the bench bites. check.js had twenty-one controls and none of them was a false file. Both sides of every control came from stitch.js, so an error shared by the writer and the reader would pass. negative.js moves one byte of the written file and requires the bench to go red: node /opt/www/art/skein/verify/negative.js Three hands, five expectations A the untouched file bench green, 21 controls, 0 failed B one coordinate delta, +1 mm bench red, and control 6 (every stitch on the drawing) must be among the failures: 5 of 21 since 2026-11-26 C the AX header field, not judged the geometry controls (4, 6, 10, 11) must stay green; only control 1, which compares the file to what the page writes, may fall Hand C is the one that matters. Without it, B only shows the bench notices a change, and any checksum does as much. Measured on 2026-11-26 with Node 20.20.2: B broke controls 1, 4, 6, 10, 11 (276 of 624 stitches left the drawing, worst 10.60 units), C broke control 1 alone. check.js also takes a file: `node check.js FILE.dst [CAP]` reads it instead of writing one. The word comes from the LA field and the height from the optional second argument (millimetres, default the page's own), because the file records neither. Control 1 then asks whether that file is the file the page writes, so a downloaded DST can be checked from a fresh directory. Exit codes do not change: 0 accepted, 1 a control failed, 2 no verdict (the LA field names nothing this engine can plan, or the modules are missing). What this still does not do It corrupts one byte the model itself calls a coordinate, so it tests the reader, not the writer. A wrong letter shape, a fill density that puckers, a design that sews badly: none of that is in reach. A file can pass all 26 lines of the two benches and still be a bad embroidery file.