Skip to content

Accept only Orbit64 V2 token lengths - #92

Merged
wstein merged 2 commits into
mainfrom
cursor/assembler-v2-tokens-34f8
Nov 28, 2026
Merged

wstein merged 2 commits into
mainfrom
cursor/assembler-v2-tokens-34f8

Conversation

@wstein

@wstein wstein commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

What changes for the user

A typed Orbit64 token is accepted only when its length is a V2 color entry. A 43-character string is not a token, so it is not read as a 5×5 state and the reader no longer says that V1 is unsupported.

Tests

  • npx vitest run test/cube/notation/orbit64Token.test.ts test/cube/notation/orbit64V2.test.ts: 2 files, 189 passed, including after the format fix.
  • npx biome format .: 387 files, no remaining format changes. The first CI run failed because the JSON rewrite expanded the short 2×2 rows; Biome keeps those on one line.
  • npm run typecheck
  • npm run lint
  • npm test was not run for the photo fixtures.

looksLikeToken matches a registered V2 length only. parseCubeInput uses the generic invalid-token sentence. Twenty rows in test/cube/notation/orbit64Vectors.json changed from 43 characters to the 42-character framed token of the same facelets. The 5×5 framed entry does not start at offset 0, so the vector test asserts that only for the other sizes.

This does not approve Cube Assembler M2. Capture, profiles, and rendering are unchanged.

Open in Web Open in Cursor 

A 43-character string is no longer treated as a token, so the reader does
not mention V1. The twenty 5x5 vectors are the framed V2 tokens of the same
facelets.
Biome keeps a short token row on one line. The JSON rewrite had
expanded those 2x2 rows, which failed format:check.

@wstein wstein left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review-Protokoll — CLEAR (bd572c2)

  • Keine Findings. Die Eingabeerkennung verwendet die Längen des V2-Registers. Der Decoder prüft weiterhin den Farbeintrag. Eine 43-Zeichen-Eingabe wird als ungültig abgewiesen.
  • Die aktualisierten 5×5-Vektoren prüfen die exakte Kodierung und Dekodierung der 42-Zeichen-Tokens. Der UI-Test deckt die Ablehnung der alten Länge ab.
  • Statische Prüfung. GitHub CI war erfolgreich. Der PR ist bereits „Ready for review“.

@wstein
wstein merged commit 8d77443 into main Nov 28, 2026
2 checks passed
@wstein
wstein deleted the cursor/assembler-v2-tokens-34f8 branch November 28, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants