Signature Tune test run Generated: 2026-12-04 12:16:47 -0500 Command: npm test (node --test $(node scripts/list-tests.mjs)) > signature-tune@1.0.0 test > node --test $(node scripts/list-tests.mjs) ✔ CI uses Node 22 LTS (0.934009ms) ✔ CI test step enables pipefail before any pipe (1.019953ms) ✔ CI runs an explicit test file list, not a quoted ** glob (0.172078ms) ✔ CI fails when zero tests run (0.110383ms) ✔ npm test does not depend on a quoted ** glob (0.224668ms) ✔ focus moves from Play to Stop when playback starts with Play focused (7.45448ms) ✔ focus moves from Stop back to Play when the notes are stopped (2.779877ms) ✔ reset() restores Play, clears status, and removes the row highlight (2.18816ms) ✔ the "Playing ..." status clears when the notes finish (4.13915ms) ✔ the "Playing ..." status clears when Stop is pressed (2.360844ms) ✔ the demo seeds with LOVE as four rows that recover to LOVE (1.63768ms) ✔ typing a word updates the rows and the recovered line, input only A to Z (0.365535ms) ✔ the word is capped at twelve letters (0.217892ms) ✔ rows and recovered text are rendered as plain text nodes, never markup (0.245397ms) ✔ the play button stops other playback and plays just those notes (5.858809ms) ✔ fixed pitch table (3.428816ms) ✔ fixed duration table (0.264195ms) ✔ thirty slots (0.285322ms) ✔ A to Z map to slots 0 to 25 (0.216389ms) ✔ space and punctuation slots (0.259877ms) ✔ each slot maps to a defined pitch and duration pair (0.429876ms) ✔ slot formula: floor(s/3) pitch, s%3 duration (0.301071ms) ✔ lowercase letters match uppercase slots (0.146121ms) ✔ fnv1a32 is deterministic and unsigned (0.620286ms) ✔ encode produces one event per code point, original char kept (0.534184ms) ✔ encode counts code points, including astral emoji as one event (0.299565ms) ✔ blank name encodes to empty sequence (0.141481ms) ✔ decodeSlot only for 0 to 25 (0.141113ms) ✔ decodeSlots returns null when any slot is out of A to Z range (0.131892ms) ✔ round trip A to Z: encode then decode gives uppercase (0.115128ms) ✔ fallback hashed slots stay within 0 to 29 (0.21983ms) ✔ midiToFrequency: A4 is 440 (0.879013ms) ✔ codePointLength counts code points not UTF-16 units (1.1483ms) ✔ valid card accepted and preserved exactly (0.516448ms) ✔ message and sender are optional (0.378549ms) ✔ blank name rejected (empty) (0.390878ms) ✔ blank name rejected (whitespace only) (0.267486ms) ✔ name over 24 code points rejected (0.15457ms) ✔ message over 80 code points rejected (0.266939ms) ✔ sender over 24 code points rejected (0.128849ms) ✔ line breaks rejected (0.369544ms) ✔ control characters rejected (1.013896ms) ✔ lone surrogate rejected (0.200685ms) ✔ accents, scripts, and emoji accepted (0.10847ms) ✔ non-string input rejected without throwing (0.244388ms) ✔ pack then unpack round trips exactly (2.569742ms) ✔ unpack accepts a full URL (0.297327ms) ✔ canonical URL is ASCII with expected base (0.594162ms) ✔ linkByteLength and fitsUrlBudget (0.22989ms) ✔ unpack rejects unsupported version (0.274997ms) ✔ unpack rejects garbage, markup, and non-strings (0.102376ms) ✔ unpack rejects invalid base64url characters (0.076259ms) ✔ unpack rejects oversized payload (0.048327ms) ✔ unpack rejects wrong JSON shapes (0.271416ms) ✔ unpack re-rejects a payload whose decoded card is invalid (0.135624ms) ✔ error results never carry technical detail (0.12348ms) ✔ maximum-length card within budget round trips (0.147832ms) ✔ contrast >= 4.5:1 for navy on ivory (1.165868ms) ✔ contrast >= 4.5:1 for navy on white (0.139673ms) ✔ contrast >= 4.5:1 for navy on rose (0.09408ms) ✔ contrast >= 4.5:1 for navy on powder blue (0.092597ms) ✔ contrast >= 4.5:1 for navy on sage (0.83675ms) ✔ contrast >= 4.5:1 for burgundy on ivory (0.09535ms) ✔ contrast >= 4.5:1 for ivory on navy (0.265892ms) ✔ contrast >= 4.5:1 for ivory on burgundy (0.090712ms) ✔ contrast >= 4.5:1 for gold on ivory (0.450399ms) ✔ contrast >= 4.5:1 for gold on white (0.382462ms) ✔ contrast >= 4.5:1 for muted navy on ivory (0.153244ms) ✔ contrast >= 4.5:1 for muted navy on white (0.720228ms) ✔ contrast >= 4.5:1 for judges button text on navy (0.080339ms) ✔ contrast >= 4.5:1 for judges button hover on burgundy (0.04368ms) ✔ a rule at least as specific as .judges a sets the button text to ivory (1.151672ms) ✔ judges a link base colour is burgundy (so the override is needed) (1.636764ms) ✔ the focus-visible ring colour is distinct from the burgundy error border (0.838297ms) ✔ the focus-ring colours clear 3:1 against ivory and white backgrounds (0.290964ms) ✔ focus moves to the replacement when the hidden control held focus (0.881004ms) ✔ focus does not move when another element held focus (mouse user) (0.144356ms) ✔ focus does not move when the replacement is hidden or disabled (0.10907ms) ✔ handles missing elements safely (0.177065ms) ✔ play screen: Play again -> Stop moves focus (not only Tap to play -> Stop) (0.203461ms) ✔ Print after a blocked copy leaves the fallback and status visible (1.71014ms) ✔ Hear your full greeting after a blocked copy leaves the fallback visible (0.157836ms) ✔ an edit after a blocked copy hides the fallback and clears the status (0.158219ms) ✔ a later successful copy hides the fallback shown by a blocked copy (0.126716ms) ✔ an edit during a pending copy leaves no stale status or fallback (2.109659ms) ✔ a stale successful copy does not set a status after an edit (0.142744ms) ✔ a second copy within 4 s is not cleared by the first copy timer (0.178009ms) ✔ "Copy this link:" is visible exactly when the fallback field is visible (0.14438ms) ✔ the success timer clears the status only when it is still current (0.201006ms) ✔ the script prints the canonical base and the Michael Smith card (33.995384ms) ✔ the Michael Smith link decodes through codec.js back to exactly those fields (38.681824ms) ✔ the script matches src/samples.js exactly for every sample (39.267078ms) ✔ a name of 1 emoji starts at <= 13 mm and clears the label by 2 mm (66.151684ms) ✔ a name of 2 emoji starts at <= 13 mm and clears the label by 2 mm (24.642229ms) ✔ a name of 3 emoji starts at <= 13 mm and clears the label by 2 mm (21.8742ms) ✔ a name of 4 emoji starts at <= 13 mm and clears the label by 2 mm (12.737332ms) ✔ an ordinary short Latin name is unaffected (still starts at 15 mm) (11.096092ms) ✔ a valid card has no error to place (1.199159ms) ✔ an empty name is not an error placement (the empty prompt handles it) (0.128283ms) ✔ an over-long message places the exact wording under the message field (0.161ms) ✔ an over-long name places under the name field (0.108651ms) ✔ an over-long sender places under the sender field (0.109058ms) ✔ the oversized-message error appears in exactly one place (0.426322ms) ✔ clearing the problem removes the alert and the invalid mark (0.261039ms) ✔ a control character in the name marks only the name field (0.181197ms) ✔ a control character in the sender marks only the sender field (0.193462ms) ✔ a control character in the message marks only the message field (0.244662ms) ✔ a message at the code-point limit that still fails the URL budget states the reason in plain words (0.216555ms) generators passed: 22000 cards across 11 seeds ✔ validCard only produces cards validateCard accepts (128.420574ms) ✔ rendered demo song stays below -1 dBFS and does not clip (1013.833887ms) ✔ rendering a card is deterministic (472.616158ms) ✔ an [aria-invalid="true"] input has a visible border style (5.915124ms) ✔ rapid Play/Stop/Replay repeated 20 times leaves exactly one active schedule (9.976361ms) ✔ stop is idempotent: calling it repeatedly is safe and reveals nothing after (0.431566ms) ✔ silent reveal after a sound play leaves no sound timers from the old session (0.799076ms) ✔ navigation disposes the player: no reveal callback fires afterwards (0.451995ms) ✔ speech cancel is called on stop and on navigation (1.41676ms) ✔ the real SingAlong.cancel is safe to call with no speech facility (0.810452ms) ✔ empty name shows the enter-a-name prompt (0.936765ms) ✔ whitespace-only name is treated as empty (0.1246ms) ✔ a valid card yields a printable card state, not the empty prompt (1.063151ms) ✔ an over-long message reports the real count and limit, name present (0.184761ms) ✔ the item 7 example wording is produced for a 412-character message (0.24414ms) ✔ an over-long name reports its real count and limit (0.20566ms) ✔ an over-long sender reports its real count and limit (0.097908ms) ✔ a successful copy confirms and shows no fallback (0.227465ms) ✔ a failed copy shows the on-screen fallback and never points at an off-screen address (0.415271ms) ✔ a v1 card fragment is recognised as a card fragment (0.339621ms) ✔ a page anchor like #main is not a card fragment (0.14842ms) ✔ an empty or non-string hash is not a card fragment (0.068061ms) ✔ an unsupported version marker is not treated as a v1 card fragment (0.657237ms) ✔ name "ten-O" fits the 78 mm column at its real measured width (44.250431ms) ✔ name "twentyfour-W" fits the 78 mm column at its real measured width (32.250353ms) ✔ name "GRANDMOTHER" fits the 78 mm column at its real measured width (8.978285ms) ✔ name "MOHAMMED" fits the 78 mm column at its real measured width (7.935505ms) ✔ name "Michael Smith" fits the 78 mm column at its real measured width (5.988307ms) ✔ name "katakana" fits the 78 mm column at its real measured width (8.445487ms) ✔ name "cjk" fits the 78 mm column at its real measured width (4.117946ms) ✔ name "twelve-star" fits the 78 mm column at its real measured width (4.225361ms) ✔ name "twelve-watch" fits the 78 mm column at its real measured width (6.265557ms) ✔ name "twelve-play" fits the 78 mm column at its real measured width (6.837515ms) ✔ name "twelve-grin" fits the 78 mm column at its real measured width (6.585845ms) ✔ a measured sender line fits its column and uses no textLength while it fits (4.633757ms) ✔ the pure fallback estimate is never narrower than the real drawn width (Node safety) (0.563568ms) ✔ star, watch, and play symbols count as wide in the fallback estimate (0.19761ms) ✔ building the card 50 times leaves at most one measuring SVG in the body (319.453217ms) ✔ media/durations.json matches the current arrangement within 0.5 s (4.999446ms) ✔ every "about N seconds" claim matches the demo rounded to the nearest second (0.55664ms) ✔ no 2D rotate keyframe turns the whole music-box drum (0.832883ms) ✔ the drum pins are clipped to the drum outline so a sweep stays inside (1.30314ms) ✔ the clip-path is on a static wrapper, not on the animated pin group (0.749052ms) ✔ no keyhole stem element pokes out under the drum (2.458357ms) ✔ the drum has 13 pin columns (2.975327ms) ✔ the pin columns are evenly spaced (3.166505ms) ✔ the sweep distance equals the full pattern period (two columns, including the stagger) (3.733335ms) ✔ at the loop boundary every pin lands exactly where a pin sat at the start (2.143958ms) ✔ no keyhole element remains on the body under the drum (0.826384ms) ✔ four family emoji never shows a count above the limit (0.840859ms) ✔ an exactly-24 name shows "24 of 24" and is not over (0.130076ms) ✔ the count uses code points, not UTF-16 units (0.119856ms) ✔ 24 party emoji in the name are valid and show "24 of 24" (0.408144ms) ✔ 25 party emoji in the name show the over-limit error (0.140469ms) ✔ a pasted 120-character message is kept whole and shows the real count error (0.128337ms) ✔ the name, message, and sender inputs carry no native maxlength (0.428795ms) ✔ a rule sets the name field font-family to the serif variable (0.878361ms) ✔ the serif name rule is not overridden by a later, more specific input font rule (0.495328ms) ✔ buildNotesOnlySong(LOVE) has exactly 4 melody events starting at 0 (1.338528ms) ✔ the notes-only events match the cipher pitch and duration for L, O, V, E (0.189091ms) ✔ the notes-only song is short (total under 3 s) (0.189805ms) ✔ an empty word yields no events (0.114325ms) ✔ the demo plays a notes-only song and exposes row highlighting (4.042946ms) ✔ a narrow-screen media rule targets up to about 600px (0.833839ms) ✔ the narrow-screen rule shrinks or hides the hero art and reorders it below the form (1.276859ms) ✔ while playing, only Stop shows; Tap to play is hidden (0.84971ms) ✔ after the song ends, Play again shows and Tap to play stays hidden (0.136922ms) ✔ prepare during an in-flight prefetch for the same song posts exactly one worker render (2.731996ms) ✔ prepare awaits the in-flight prefetch result at the renders own sample rate (0.454419ms) ✔ prepare reuses a 44100 prefetch when the context is 48000 (no second render) (2.621109ms) ✔ a second prepare at the same context rate hits the final cache (still one render) (0.806807ms) ✔ play with async prepare does not reveal until prepare resolves (2.486106ms) ✔ stop during prepare prevents audio start and any reveal (0.427295ms) ✔ a second play of the same card reuses the cached buffer (render once) (422.032113ms) ✔ the AudioEngine prepare path uses a Worker when one exists and never renders inline (0.94818ms) ✔ syncPrintCard fills #print-card with the current valid card (44.173426ms) ✔ syncPrintCard clears and unmarks when there is no valid card (0.283666ms) ✔ syncPrintCard clears when the card is invalid rather than leaving a stale one (0.164096ms) ✔ the print hide-everything rule is scoped to a card-present body class (0.281118ms) ✔ judges page print styles do not hide all content (0.204393ms) P1 passed: seed=1345409072 cases=200 + 3 regression P2 passed: seed=1345474610 cases=200 + Kiro/KIRO regression P3 passed: seed=1345540147 cases=200 + 5 regression P9 passed: seed=1345933369 cases=200 ✔ P1 reversible letter cipher (5.347947ms) ✔ P2 case invariance (4.177303ms) ✔ P3 scale membership and deterministic fallback (11.495118ms) ✔ P9 name independence (7.163916ms) P4 passed: seed=1345605684 cases=200 + 5 regression P5 passed: seed=1345671221 cases=200 + boundary and overflow P6 passed: seed=1345736758 cases=200 + 9 regression ✔ P4 card serialization round trip (56.667904ms) ✔ P5 scan-code capacity (675.057637ms) ✔ P6 total and safe decoding (2.299429ms) P12a passed: 26 letters + 4 marks P12b passed: seed=1343356929 cases=200 P12c passed: seed=1343356930 cases=200 P12d passed: seed=1343356931 cases=200 ✔ P12a every A to Z letter round-trips through canonicalPairs then decodeNotes (1.599497ms) ✔ P12b random A to Z strings (with spaces and . ! ?) round-trip exactly (4.397555ms) ✔ P12c full-song melody canonical pitch and duration decode to the greeting (23.400715ms) ✔ P12d lowercase letters decode to their uppercase form (0.987085ms) ✔ decodeNotes throws a clear error on an unknown pitch or duration (0.498662ms) P7 passed: seed=1345781761 cases=200 + 1 regression P8 passed: seed=1345847297 cases=200 + 2 regression ✔ schedule reveals the name when there is no message (2.174332ms) ✔ schedule reveals the message, gated after the signature melody (0.707851ms) ✔ start times are strictly non-decreasing and match durations (0.324452ms) ✔ P7 playback ordering (46.859238ms) ✔ P8 playback cancellation (31.14105ms) P10 passed: seed=1343266817 cases=200 + 8 regression P11 passed: seed=1343336449 cases=200 + 8 regression ✔ P10 full-card song round trip (38.673886ms) ✔ P11 decorative events are ignored (46.188252ms) render-budget: demo render best of 3 = 752.5 ms render-budget: intro -14.11 dB, body -13.63 dB, gap 0.48 dB ✔ renderSong for the demo card at 44.1 kHz completes well under 1500 ms (3171.44427ms) ✔ rendering the demo card is deterministic (two renders are identical) (1616.894594ms) ✔ the demo render peak stays below -1 dBFS and never clips (908.212357ms) ✔ the quiet intro is within about 10 dB of the body average (898.364969ms) ✔ the visual reveal element #reveal-text has no aria-live (1.32158ms) ✔ a separate visually hidden live region exists for the reveal announcement (0.208622ms) ✔ the live region receives the full message exactly once per playback (0.261976ms) ✔ fullRevealText uses the name when there is no message (0.115839ms) ✔ hiding the copy fallback clears the copy-status text (0.122667ms) ✔ a valid v1 card fragment routes to the player (2.06598ms) ✔ an unsupported version hash routes to the damaged-card screen (0.40166ms) ✔ a malformed v1 card hash routes to the damaged-card screen (4.064428ms) ✔ an empty hash or a plain page anchor routes to the maker (0.299819ms) ✔ isVersionedHash detects any version marker but not page anchors (0.136004ms) ✔ three samples are provided (1.464555ms) ✔ each sample decodes back to its original fields (1.399069ms) ✔ each sample fits the scan-code URL budget (0.179323ms) ✔ rebuilding the samples is deterministic (0.227843ms) ✔ each sample link uses the canonical base and v1 fragment (0.128316ms) ✔ every local PNG image declares its real dimensions (2.506812ms) ✔ tune strip builds an svg with one note per code point (2.525192ms) ✔ tune strip uses only approved palette fills (0.337608ms) ✔ makeMatrix returns a square matrix within version 15 (15.098647ms) ✔ scan code svg has a quiet zone and dark blue modules (7.640984ms) ✔ capacity check succeeds for a typical card (7.170812ms) ✔ matrixToSvg requires a document (0.420186ms) ✔ card elements keep 1 mm clearance from every corner flourish (36.294636ms) ✔ card text boxes do not overlap the scan box (5.016745ms) ✔ card caption fits inside the card width (6.357388ms) ✔ flourish keep-out boxes from the built SVG transform clear every card element (9.601425ms) ✔ index.html has exactly one visible instance of the tagline outside the card SVG (0.664099ms) ✔ wide names stay clear of the scan box with a realistic per-character estimate (78.364684ms) ✔ a name that still overflows gets a textLength guard with spacingAndGlyphs (3.995692ms) ✔ emoji names stay clear of the scan box at 1.35 em per emoji, or carry a textLength guard (22.941767ms) ✔ an emoji sender line stays clear of the scan box at 1.35 em per emoji (4.293669ms) ✔ a wide sender line stays clear of the bottom-right flourish and card edge (3.446161ms) ℹ tests 243 ℹ suites 0 ℹ pass 243 ℹ fail 0 ℹ cancelled 0 ℹ skipped 0 ℹ todo 0 ℹ duration_ms 7329.072557