Alquerque risk check
Date: 2026-12-04. Machine: macOS 27.2 arm64, Xcode installed, Node 26.13.1, npm 11.20.0,
Gleam 1.19.2 on Erlang/OTP 29 (the original’s CI uses Gleam 1.14.0 on OTP 28), rustc / cargo
1.100.1. Versions installed: Lustre 5.5.2, lustre_dev_tools 2.3.4 (which downloaded Bun
1.2.22 into .lustre/), @tauri-apps/cli and the tauri crate 2.13.0, tauri-build 2.8.0,
Playwright 1.65.2 with its WebKit.
Everything here was done on the Mac, except the Linux trial at the end. Nothing has been run on Windows.
Results
| Check | Result | How it was checked |
|---|---|---|
| Source copied | Pass | diff -r "../Qirkat Gleam/qirkat/src" src (ignoring .DS_Store): no difference; manifest.toml identical. git status in ../Qirkat Gleam: clean before and after. |
gleam test |
Pass | 16 passed, no failures. |
gleam format --check src test |
Fail, left as it is | Seven copied files “have not been formatted”: ai, ffi, game, model, move, view, view/controls_view. They are byte for byte the original’s, so the original fails the same check under Gleam 1.19.2. See “For Jonathan to decide”. |
| The page is generated | Pass | no_html removed; [tools.lustre.html] carries the title and the reset. gleam run -m lustre/dev build wrote dist/index.html (589 bytes: title Alquerque, the inline stylesheet, <script src="/qirkat.js" type="module">, <div id="app">) and dist/qirkat.js (79 KB, minified). |
| The page in a browser | Pass | npm run web, opened at http://localhost:1234 at 720 x 860: the board, the buttons and the settings as in the web version; no console messages. |
| The page played in WebKit | Pass | node dev/play.mjs: 37 checks, 0 failed, against the dev server and again against dist/ served by python3 -m http.server 8391. What it covers is listed below. |
tauri init |
Pass | npx tauri init --ci with the four build fields on the command line wrote Tauri 2 names (frontendDist, devUrl, capabilities/default.json granting core:default). Identifier changed from com.tauri.dev by hand. |
npm run dev window |
Pass by program; not yet checked by eye | Rust dev build Finished dev profile ... in 36.99s, Running target/debug/app. CGWindowListCopyWindowInfo showed the process’s window at 720 x 860, and lsof showed a WebKit networking process holding a connection to the dev server on port 1234 (the live-reload socket), so the web view had loaded the page. The page’s content inside the window was not read. |
| Icon | Pass; Jonathan has not yet said yes | src-tauri/app-icon.svg rendered in WebKit at 512, 128, 64, 32 and 16 px (docs/screenshots/icon-preview.png): Dark and Light are distinct down to 32 px; at 16 px it is eight dots. npx tauri icon then wrote icons/; android/ and ios/ deleted. git check-ignore src-tauri/icons/icon.png: not ignored. |
npm run build |
Pass | Exit 0; Finished release profile ... in 1m 05s; Alquerque.app (10.06 MiB). The macOS override (tauri.macos.conf.json) was merged: one bundle, format app, Built application at: .../target/release/Alquerque. |
| Info.plist | Pass | CFBundleIdentifier = com.jonathanhuston.alquerque, CFBundleName = Alquerque, CFBundleExecutable = Alquerque, CFBundleShortVersionString = 0.1.0, LSApplicationCategoryType = public.app-category.board-games, NSHumanReadableCopyright = © 2026 Jonathan Huston, CFBundleIconFile = icon.icns, LSMinimumSystemVersion = 10.13 (Tauri’s default; not tested on anything older than this Mac). Signature adhoc. |
Packaged .app launches |
Pass by program; not yet checked by eye | open .../Alquerque.app; after 5 s pgrep found .../Alquerque.app/Contents/MacOS/Alquerque and its window was 720 x 860; ~/Library/WebKit/com.jonathanhuston.alquerque exists. |
src-tauri/target/ is 3.0 GB after the dev and release builds.
What dev/play.mjs checks
- The page opens with the title Alquerque, “How many players?”, an empty board, a tally of
0 0 0 and a black background, and has no
__TAURI_INTERNALS__(it is an ordinary browser). - One player as Light: “Choose your side”; 12 and 12 pieces; Light to move with legal moves shown; three moves each with the computer replying; pieces taken; undo, redo enabled after it, undo all the way back to the opening position; Resign gives Dark the win and the tally 0 1 0.
- One player as Dark: the computer opens; Dark’s move is played; Quit returns to setup and keeps the tally.
- Two players: each side moves in turn and no computer move follows.
- Settings: with “Show valid moves” off there are no blue lines; with “Allow takebacks” off there are no arrows.
- No players: a whole game at strength 0 (38 moves in 19 s) and at strength 8 (35 moves in about 100 s), each ending and adding one to the tally.
- No page errors and no console errors.
- Every screen (setup, choose side, playing, game over) fits 720 x 860 and 480 x 680 without scrolling.
It reads the game from the DOM the view draws (the board is svg[width="400"], pieces are
circles of radius 18, legal moves are lines of stroke #4488ff, the 25 click targets are the
transparent circles in row order), so a change to board_view.gleam may need a change here.
Found on the way
A computer move outlives the game it was scheduled in
model.gleam schedules the computer’s move with ffi.after(500, AiMove), and
handle_ai_move plays for model.game.current_player whenever the phase is Playing. It
does not check that the side to move is the computer’s, and nothing cancels the timer. So
anything that changes whose turn it is inside that half second leaves a move that fires anyway:
- Undo at once after your own move (one player): the position goes back, it is your turn again, and half a second later the computer plays a move with your pieces, then goes on to play its own. Reproduced in WebKit: Light moves, Undo within the 500 ms, and 0.9 s later a Light piece had moved from row 3, column 1 to row 2, column 2 with Dark to move.
- Quit (or Resign) and start a two-player game at once: the computer makes one move in the
two-player game. This is how it was found: the first run of
dev/play.mjsfailed “no computer move follows”.
(Superseded on 5 December 2026: fixed in the original and copied here; see “Fixes carried over from Qirkat Gleam” at the end.)
It is in the copied code, so the deployed web version does the same. Not fixed: step 1
changes nothing in the game, and the fix belongs in the original first. The smallest fix is in
handle_ai_move: do nothing unless is_computer_turn(model). That stops the wrong side being
moved; a stale timer could still make the computer move a little early in a new game where it
is the computer’s turn, which a game counter in the message would stop (Desdemona’s
:game-id).
The search blocks the page
ai.choose_move runs inside update, on the page’s only thread. At strength 8 the slowest
single move took 21 to 22 s in headless WebKit (dev build and minified build alike); the page
cannot repaint or take a click during it, and a desktop window may show as not responding. At
strength 0 no move took longer than the 500 ms pause plus about 50 ms. The default is 3. A
Web Worker, as in Desdemona, is the cure if the high strengths matter; that is a change to
the game and so a step 2 question.
Smaller things
- Minimum height. The setup screen’s content ends 628.5 px down, so Desdemona’s minimum of 480 x 600 would have cut off the settings. The minimum here is 480 x 680.
- Lustre draws on the next animation frame. The first run of the script failed because it
read the DOM straight after a click.
tap()indev/play.mjswaits two frames. tauri devand port 1234.beforeDevCommandstarts the Lustre dev server, sonpm run webmust not be running. Afterpkill -f 'tauri dev'thegleam run -m lustre/dev startprocess and itsbeam.smpwere still alive and holding the port; they had to be killed by process id.- Dev server with and without
node_modules/. The dev tools serve a Bun bundle (/qirkat.dev.js) whennode_modules/exists and the unbundled modules when it does not. Only the first was used here, sincenode_modules/exists as soon as the Tauri CLI is installed. - Per-platform config.
tauri.macos.conf.json,tauri.linux.conf.jsonandtauri.windows.conf.jsonsetbundle.targetsandmainBinaryName, sonpm run buildneeds no--bundlesflag (Desdemona’snpm run buildwas Mac-only for want of this). Only the macOS file has been exercised. Expected, not observed: on Fedora the binary is/usr/bin/alquerqueand the launcher entry reads Alquerque. - No screen capture.
screencapture -l <window id>answerscould not create image from window(no screen-recording permission for the shell), so the native window was measured but not seen. - A slip while tidying.
git mv -k CLAUDE.md docs/...on an untracked file does nothing and still exits 0, so themvafter||never ran and the newCLAUDE.mdwas written over the handoff. The handoff was restored intodocs/handoff-2026-12-04.mdfrom the text read at the start of the session; it is 11,270 bytes, as the original was. Worth a read-through by Jonathan all the same.
For Jonathan to decide
- The icon.
docs/screenshots/icon-preview.png. If it should change, editsrc-tauri/app-icon.svgand runnpx tauri icon src-tauri/app-icon.svgagain. - The window size. At 720 x 860 the game takes about the top two thirds (630 px on the setup screen, 540 px while playing) and the rest is black. The page puts the board at the top; centring it or making the window shorter are both small changes.
- Formatting. (Done on 5 December 2026 in the original,
1b02c73, and copied here.) - The stale computer move. (Fixed on 5 December 2026 in the original,
48c04ef, and copied here.) - The blocking search, above: still as it was, in both copies. Fix in the original, or not at all.
Still to be checked by eye
On the Mac, in this order:
- The icon:
docs/screenshots/icon-preview.png, thenAlquerque.appin Finder and in the Dock: nine points of the board, four Dark and four Light pieces, a blue move into the empty centre, on a dark rounded tile the same size as other apps’ icons. npm run build, thenopen src-tauri/target/release/bundle/macos/Alquerque.app: the window opens black with no white flash, titled Alquerque, 720 x 860; the board, the four buttons, “How many players?”, AI Strength and the two checkboxes are all visible; shrinking the window stops at a size where they still all fit.- Play: a game as Light and one as Dark against the computer; a two-player game; a no-player game. Undo, redo, Resign and Quit do what they do in the web version. The tally counts. Nothing looks different from the deployed web version, apart from the title.
- The menu bar is whatever Tauri gives a Mac app by default (expected: Alquerque, File, Edit, View, Window, Help; not seen), since this step adds no menu. Cmd+Q quits. Right-click: WebKit’s own context menu (with Reload) will probably appear; say if it should go.
npm run dev: the same window on the dev server; editing a.gleamfile reloads it.
On the ThinkPad: done by program on 5 December 2026 (see “Linux trial” at the end, which lists what is left to look at there).
Fixes carried over from Qirkat Gleam: 5 December 2026
Jonathan asked for the stale computer move to be fixed and for the port to be checked against
what had changed in ../Qirkat Gleam since the copy. By then the original had three commits
past 59955f5, made by a session there. Read with git log and git show only; nothing was
run or changed in that folder.
| Commit | What it does | What it means here |
|---|---|---|
1b02c73 Format source with Gleam 1.19.2 and pin CI to it |
gleam format src test over seven modules, layout only; CI’s Gleam version 1.14.0 → 1.19.2 |
Copied. gleam format --check src test now passes here and is back in the commit routine. The CI file is not part of the copy. |
48c04ef Drop a computer move that outlives the game it was scheduled in |
Model gains revision, counted up by a new set_game on every change to the game; the message is AiMove(Int) carrying the revision it was scheduled at; handle_ai_move plays only if that still matches and it is the computer’s turn. Adds test/model_test.gleam, 12 tests of model.update |
Copied. This is the fix asked for, and it is the fuller of the two sketched above (the turn check and the counter). |
a023d2b Add README, MIT licence and a screenshot |
Repository-level README.md, LICENSE, docs/screenshots/playing.png; removes the stub qirkat/README.md |
Nothing to copy: no source. It does mean the original now carries an MIT licence and this project has no licence file; Jonathan’s call. |
At the time of the copy main there was at 48c04ef, two commits ahead of origin/main
(59955f5), and a023d2b was on a branch, readme-and-licence: none of the three had been
pushed, so the deployed web version presumably still had the stale move. The working tree was
clean, and git diff 48c04ef a023d2b touches nothing under qirkat/src or qirkat/test.
Not changed in the original: the search still runs on the page’s thread (strength 8 took up to
25 s for one move in this run), and gleam.toml, manifest.toml and qirkat_ffi.mjs are as
they were.
| Check | Result | How it was checked |
|---|---|---|
| Copy | Pass | rsync -a --delete of src/ and test/; diff -r against the original (ignoring .DS_Store): no difference; manifest.toml identical. git status in ../Qirkat Gleam: clean after. |
gleam test |
Pass | 28 passed, no failures (16 before; the 12 new ones are model_test). |
gleam format --check src test |
Pass | No output. |
| The new checks catch the old code | Pass | dev/play.mjs gained section 4b and lost its wait before Quit in section 3. Against a build of the source as it was (git stash, build, git stash pop): 37 passed, 6 failed, all of them the stale move: “no computer move follows”, “Dark moves, then it is Light’s turn”, and four of the five in 4b. |
| The fix, in WebKit | Pass | Against a build of the copied source: 42 passed, 0 failed. In 4b the Undo landed 198 ms after the move and the new two-player game 247 ms after it, both well inside the 500 ms; 0.9 s later nothing had moved, and the computer still answered the next move. |
npm run build |
Pass | Alquerque.app rebuilt (Finished release profile ... in 19.44s) and launched; pgrep found it. Not checked by eye. |
One more thing for the by-eye list, in the app: play as Light, make a move and press ← at once. The piece goes back and stays back, and nothing else moves until you move again.
The game fills the window: 5 December 2026
Jonathan, having seen the app: “not happy with the huge black border around the game board and
controls”, with the Swift app’s screenshots (../Qirkat/Screenshots, read only) as the model,
“and make sure it’s centered, unlike some of the screenshots”.
In those screenshots (1870 x 2520 px) the board runs almost from edge to edge, the tally is above it and the buttons and the prompt or turn marker below, with little left over; the content sits left of centre. The Gleam view draws the same arrangement but at a fixed 400 px, at the top of whatever window it is in.
What was done, with no change to the copied modules:
assets/fit.jssets--fittomin(innerWidth / 400, innerHeight / 644)on load and on every resize;assets/fit.cssmakes#appa centring flex box and gives the view’s root the fixed 400 x 644 box, scaled by--fitabout its centre. 644 is the setup screen, the tallest: its settings end 628.5 px down.gleam.tomllinks both files; Lustre’s dev tools serveassets/at/in development and copy it intodist/in the build.- The window is 514 x 860 (it was 720 x 860), minimum 300 x 515.
| Check | Result | How it was checked |
|---|---|---|
| Inner size of the Mac window | Measured | tauri dev pointed with --config at a one-line page that reports innerWidth and innerHeight to a local server: a 534 x 860 window gave 534 x 828. So the configured height includes the 32 px title bar here, and the window was narrowed to 514 so that the web view is 400 : 644. |
dev/play.mjs |
Pass | 99 checks, 0 failed, against dist/. On each of the four screens, at 514 x 828, 300 x 483, 1100 x 700 and 420 x 900: nothing scrolls or is cut off; the frame’s left and right margins are equal, and its top and bottom; it touches the window one way; and the board is where it was on the previous screen. At 514 x 828 the frame touches all four sides and the board is the window’s width. |
| Dev server | Pass | /fit.css and /fit.js answer 200 from gleam run -m lustre/dev start; the page loaded in WebKit at 534 x 860 had --fit 1.335 and the frame at 0, 0, 534 wide. |
| Screenshots | Read | docs/screenshots/setup.png and playing.png, retaken: the board spans the window with the pieces 26 px from each side; the settings end just above the bottom edge. |
npm run build, launch |
Pass by program; not yet checked by eye | Bundle rebuilt; the app’s window measured 514 x 860. |
gleam test, format check, copy |
Pass | 28 passed; no format output; diff -r against ../Qirkat Gleam/qirkat/src: no difference. |
Left as it is, for Jonathan to say:
- While a game is being played the bottom sixth of the window is empty (147 px of 828,
measured on
playing.png). The settings fill that space on the setup screen, and the board must not jump when a game starts, so the box is as tall as the setup screen throughout. The Swift app has no such strip because its settings are in a Preferences window. - The pieces are smaller than the Swift app’s relative to the board (radius about a quarter of the spacing against a third), and the Swift board has a faint lighter square behind it. Both are the Gleam view’s drawing, not touched.
- Linux: whether the configured 860 includes GNOME’s header bar is not known. If it does not, the game is 16 px short of the top and the bottom, centred.
Found while looking: the two games do not have the same board
(Superseded later the same day: both now use the Swift app’s board; see “The Swift app’s board” at the end.)
The Swift app’s Shared/BoardSetup.swift gives a point its four diagonal neighbours only when
(rank + file) % 2 == 0, which is the usual Alquerque board, and its screenshots show that
pattern of lines. src/qirkat/position.gleam gives every point all eight neighbours, and
board_view.gleam draws “Diagonals in every cell” to match. So the web version, and with it
Alquerque, allows diagonal moves and jumps from the twelve points where the Swift app does
not. Not changed: it is the game’s rules, and a change belongs in ../Qirkat Gleam first.
The icon’s excerpt of the board was drawn from the Gleam view, so the diamond joining its
four mid-side points is not on the Swift board either.
The Swift app’s board: 5 December 2026
Jonathan: “match the Swift board in both Qirkat Gleam and Alquerque”, done from this session
at his word, which is the one time so far that an Alquerque session has changed
../Qirkat Gleam.
In Qirkat Gleam
On a new local branch, swift-board, from main at 938cf8a (which was level with
origin/main). One commit, 40c939c; nothing pushed, nothing deployed, dist/ not rebuilt.
position.neighborsgives a point its four straight neighbours, and the four diagonal ones only where the newposition.has_diagonalsis true: row + column even, as in the Swift app’sBoardSetup.getDirections. Moves and jumps both come fromneighbors, so nothing else in the rules changed. The search and the evaluation do not look at the lines.board_viewdraws its diagonals from a new publicdiagonal_segments: one in each square, between its two corners where diagonals meet.test/board_lines_test.gleam, 12 tests, written first: with the old rules 7 of them failed (the neighbours of odd points, the count of lines, a diagonal step and a diagonal jump from an odd point, the number of lines drawn, and the drawn diagonals against the rules).- Its README says which points the diagonals meet at and counts 40 tests, and its screenshot was retaken on the new board from its own dev server (same size, 960 x 1144).
gleam test: 40 passed. gleam format --check src test: clean. No compiler warnings.
For Jonathan there: merge swift-board into main when he is happy with it, then
gleam run -m lustre/dev build and upload as usual; until then https://qirkat.com/play/
has the old board.
In Alquerque
| Check | Result | How it was checked |
|---|---|---|
| The new checks catch the old board | Pass | dev/play.mjs first: “the board has 16 diagonals, all between points where diagonals meet” and “no diagonal step was ever offered from a point without diagonals”. Against the old source: 99 passed, 2 failed (32 diagonals; steps such as 3,2 to 2,1). |
| Copy | Pass | rsync from the clean swift-board tree; diff -r of src and test: no difference. |
gleam test, format |
Pass | 40 passed; clean. |
dev/play.mjs |
Pass | 101 checks, 0 failed, against dist/. |
| Icon | Redrawn | The diamond joining the four mid-side points is gone: on this board only the two diagonals through the centre cross the icon’s nine points. docs/screenshots/icon-preview.png re-rendered and read; npx tauri icon run again. |
npm run build, launch |
Pass by program; not yet checked by eye | Bundle rebuilt and launched. |
Two things the new board showed up, both older than it:
- A game between two computers need not end. At strength 8 the no-player game was still
going after 126 moves and four minutes, moving the same pieces back and forth; on the old
board the same game ended in 35 moves. The Gleam game has no rule against stepping back to a
point a piece has moved from, which Qirkat Gleam’s README already gives as a difference from
the app.
dev/play.mjsnow passes a no-player game that ends and is counted, or is still moving after 60 moves. At strength 0 the game ended in 31 moves. - A jump of several hops is hinted from its start to its last landing, as a single blue
line, but is played one hop at a time, so clicking the end of the line does nothing. The
script that retook Qirkat Gleam’s screenshot stalled on exactly that;
humanTurnindev/play.mjsnow tries the points two away when the first click makes no move. Whether the hint should follow the hops is a question for the game, not asked yet.
The slowest move at strength 8 fell from about 25 s to about 3 s: fewer lines, fewer moves to search.
By eye, in the app: the board has one diagonal in each square, as in the Swift app’s screenshots; a piece on a point with no diagonal offers no diagonal move.
No stepping straight back: 5 December 2026
Jonathan: “add the Swift app’s no-stepping-back rule to both too.”
The rule, as read from the Swift source
Shared/BoardState.swift keeps lastPositions, one entry for each point: where the piece
standing there last stepped from. A step sets the entry of the point stepped to and clears
that of the point left; validMoves takes the remembered point out of a piece’s steps; a jump
is never barred and leaves no entry behind for the piece that jumped. The entry lasts as long
as the piece stays where it is, however many turns. Since steps go forward or sideways only,
what the rule stops is a sideways step taken straight back. Game.swift words it for the
player as “The piece just moved from there”.
In Qirkat Gleam
One more commit on the local branch swift-board, 751802c, on top of 40c939c; nothing
pushed or deployed, dist/ not rebuilt.
board.Piecehas a second form,Stepped(owner, from).board.step_piecemakes one;board.jump_pieceleaves a plainPiece. They replaceboard.move_piece. Because the memory is in the piece, it goes wherever the board goes: through the search, into the history behind undo and redo, and out again.move.generate_all_movesleaves out the step back tofrom(board.stepped_from).test/no_stepping_back_test.gleam, 11 tests, written first, after a first commit-sized step that added the new form of piece without using it (40 tests still passing). With the rule missing 8 of the 11 failed, among them “a game between computers ends”: at depths 1 to 3 no such game was over within 400 moves.- Its README states the rule under Playing and no longer lists it as something only the app has.
gleam test: 51 passed. gleam format --check src test: clean. No compiler warnings.
Two places where the Swift app’s rules still differ, neither copied, both for Jonathan:
- A draw. When the side to move cannot move, the Swift app (
checkForWinner) gives the game to the side that just moved only if that side could itself move; if neither can, it is a draw. The Gleam game gives it to the side that just moved either way, and never scores a draw. With this rule a side can more easily be left with no move (a lone piece that has stepped into a corner of the far row has none), so the case is a little less remote than it was. - A captured piece’s entry. The Swift app does not clear
lastPositionsfor a piece that is captured, and a jump does not write the entry of the point landed on, so a piece that jumps onto a point where a captured piece once stood inherits that piece’s bar. That reads as an oversight, and here the bar goes with the piece that earned it (a_captured_piece_takes_its_bar_with_it_test).
In Alquerque
| Check | Result | How it was checked |
|---|---|---|
| The new check catches the old rules | Pass | Section 6 of dev/play.mjs now keeps its own note of where each piece last stepped from during the two computer-against-computer games and fails if a blue line offers that step back. Against the build without the rule, at strength 0: failed (“1,1 back to 1,2; 0,0 back to 0,1; …”). The strength 8 game on that build was stopped by hand, still running; the earlier run had it at 126 moves in four minutes without ending. |
| Copy | Pass | rsync from the clean swift-board tree at 751802c; diff -r of src and test: no difference. |
gleam test, format |
Pass | 51 passed; clean. |
dev/play.mjs |
Pass | 103 checks, 0 failed, against dist/. Strength 0: 41 moves, 26 steps watched. Strength 8: the game ends, in 33 moves and 22 s, 16 steps watched, slowest move 1.3 s. The check for a no-player game is once more that it ends and is counted. |
npm run build, launch |
Pass by program; not yet checked by eye | Bundle rebuilt and launched. |
By eye, in the app, with Show valid moves on: step a piece sideways, let the other side move, and the blue line back to where it came from is not there; clicking that point does nothing.
Draws, and a note for the Swift app: 5 December 2026
Jonathan: “yes, add draws, and make a note about the Swift app oversight in the Qirkat folder (.md doc).”
Draws, in Qirkat Gleam
A third commit on the local branch swift-board, 4873969; nothing pushed or deployed,
dist/ not rebuilt.
game.result_when_stuck(board, stuck): when the side to move cannot move, the other side wins ifstuckhas no pieces or the other side could itself still move, and otherwise the game is a draw. This is the Swift app’scheckForWinner.phase_after_moveuses it in the three places a move ends (apply_move,apply_jump_segment,begin_jump), which each had their own copy of “the mover wins”.- The search (
ai.alphabeta) scores a side to move with no moves as lost, or as level if the other side cannot move either;game.evaluatescores a position where neither side can move as level (it scored it as a win for Dark). So the computer takes a win in preference to a draw. modeland the views were already written for a draw (GameOver(Error(Nil))adds one todrawsand shows “Draw”); nothing could reach it before.test/draw_test.gleam, 7 tests, written first: 5 failed without the change (a draw by a step, a draw by a jump made hop by hop, the tally, the computer preferring the win, the level score). The other two, that the side which can still move wins and that taking the last piece wins even with no move left, passed before and after.
gleam test: 58 passed. gleam format --check src test: clean. No compiler warnings. Its
README gives the draw under Playing and says the tally counts draws.
In Alquerque
| Check | Result | How it was checked |
|---|---|---|
| Copy | Pass | rsync from the clean swift-board tree at 4873969; diff -r of src and test: no difference. |
gleam test, format |
Pass | 58 passed; clean. |
dev/play.mjs |
Pass | 103 checks, 0 failed, against dist/; the two computer games end as before (41 and 33 moves). No game in it ends in a draw, so the page’s “Draw” and the third counter are covered by the Gleam tests only, not seen in a browser. |
npm run build, launch |
Pass by program; not yet checked by eye | Bundle rebuilt and launched. |
The note in the Swift app’s folder
../Qirkat/KNOWN-ISSUES.md, a new file at the root of the Swift repository, outside Docs/
(which is the app’s published documentation). Not committed there: that repository is his.
It describes the leftover lastPositions entry of a captured piece, with an example.
The example was run, not only read: the app’s GlobalDefinitions.swift, BoardSetup.swift
and BoardState.swift, unchanged, compiled with swiftc and a short driver in a scratch
folder. A Light piece that jumps onto (2,2), where a captured piece had stepped from (2,1),
is offered (1,1) (1,2) (1,3) (2,3); the same position set down with no history offers (2,1)
as well. A one-line fix (clear the captured point’s entry in makeMove) was tried on a copy
of BoardState.swift in the same scratch folder, where it makes the two agree. The Swift
source was not changed, and the app was not built.
A slip in this round: the script that wrote these notes stopped on a text that did not match, and the commit went ahead without them; the notes were added and the commit amended (it had not left this machine).
Merged in Qirkat Gleam
Later on 5 December 2026, at Jonathan’s word: swift-board was merged into main there by
fast-forward (938cf8a to 4873969, three commits). On main: gleam test 58 passed,
format check clean, working tree clean. main is three commits ahead of origin/main; not
pushed, dist/ not rebuilt, nothing deployed, and the branch swift-board left in place.
Later the same day, at his word: main pushed to origin (938cf8a..4873969) and the local
branch swift-board deleted; it was never on the remote. dist/ still not rebuilt and
nothing deployed from here.
Later still, at his word: dist/ in Qirkat Gleam rebuilt from main for him to upload
(dist/qirkat.js, 209,123 bytes; the built page checked in WebKit from a local server: 26
lines, 16 diagonals, a strength 8 computer game ending in 22 s, no errors). Then, also at his
word, commit 44145fb there, pushed: qirkat/dist/ is no longer ignored and is committed, and
the top-level .gitignore no longer lists .gitignore, a line that had kept both ignore files
out of the repository. A second build left qirkat/.gitignore alone (the dev tools add their
lines only when .lustre is not mentioned in it) and produced the same bundle, byte for byte.
An earlier answer of mine said both ignore files were in the repository; they were not.
Public repository and release 0.1.0: 5 December 2026
Jonathan: “create a public GitHub repo for alquerque, update README accordingly, and push. also build Alquerque.app and create release on GitHub.” Asked two things before starting, he chose: sign and notarise as for Desdemona, and the MIT licence.
The repository
https://github.com/jonathanhuston/alquerque already existed: public, empty, created by him
that day. So nothing was created; origin was added and main pushed.
| Check | Result | How it was checked |
|---|---|---|
| Nothing private in any commit | Pass | git grep over every commit for home-directory paths, an e-mail address, the team identifier, the notary profile’s name, private keys and tokens: nothing. Every commit’s author address is GitHub’s no-reply one. |
| What a reader will find that is about him | Noted | The documents say he has a ThinkPad with Fedora, name his private Swift repository (jonathanhuston/qirkat) and, in the handoff, call Qirkat Gleam private, which it no longer is. Left as written. |
| Licence | Added | LICENSE, the MIT text of Qirkat Gleam. |
| README | Rewritten | For readers who are not him: what the game is, where to get it, the rules, building from source, Fedora (still marked not tried), how a release is made. |
_config.yml |
His | A one-line file (theme: jekyll-theme-hacker) appeared in the folder during the build; committed as it was, in its own commit. |
| Minimum macOS | 13.0 | Tauri’s default of 10.13 would not run the page: the bundle uses Object.hasOwn, ??= and private class fields. Nothing older than this Mac’s system was tried. |
| Before the push | Pass | gleam test 58 passed; format clean; dev/play.mjs 103 of 103 against the dist/ of the signed build. |
The release
From the commit “Prepare for a public repository and a first release” (now 9bbb109); the tag
v0.1.0 is on the next one (now 2a25eac), which adds only _config.yml. Both had other
hashes when the release was made; see the end of this section. Signed with the
Developer ID Application identity in the keychain, passed as APPLE_SIGNING_IDENTITY for the
one command; notarised with the stored notarytool profile. Team identifier written <team>.
| Step | Result | How it was checked |
|---|---|---|
| Signed build | Pass | PATH="/usr/bin:$PATH" APPLE_SIGNING_IDENTITY="$ID" npm run build: Alquerque.app (10.01 MiB); Tauri’s Warn skipping app notarization .... No keychain prompt held it up. |
codesign |
Pass | --verify --deep --strict -v: valid, satisfies its Designated Requirement. -d --verbose=2: Identifier=com.jonathanhuston.alquerque, flags=0x10000(runtime), Authority=Developer ID Application: Jonathan Huston (<team>), a Timestamp. LSMinimumSystemVersion = 13.0; lipo -archs: arm64. spctl before notarising: rejected, Unnotarized Developer ID. |
| Notarise the app | Accepted | ditto -c -k --keepParent (3.0 MB), xcrun notarytool submit ... --wait: status: Accepted. |
| Staple the app | Pass | “The staple and validate action worked!”; spctl -a -vv: accepted, source=Notarized Developer ID. |
| Disk image | Pass | Stapled app copied with ditto beside a link to /Applications; hdiutil create -volname Alquerque ... -format UDZO; codesign --sign ... --timestamp; codesign --verify -v: valid. |
| Notarise and staple the image | Accepted | status: Accepted; stapler staple and stapler validate worked; spctl -a -t open --context context:primary-signature -vv: accepted, Notarized Developer ID. |
| The app inside the image | Pass | Mounted read-only: Alquerque.app and Applications -> /Applications; spctl on the app inside: accepted, Notarized Developer ID; stapler validate and codesign --verify --deep --strict pass. |
| Launch | Pass by program; not checked by eye | The stapled app opened and pgrep found it. |
| Published | Pass | gh release create v0.1.0: https://github.com/jonathanhuston/alquerque/releases/tag/v0.1.0, not a draft, one asset, Alquerque-0.1.0.dmg, 3,377,433 bytes. Downloaded back with gh release download: the same SHA-256 as the local file (9d57b7b5...5d219c). |
The image and its notes are in release/, which git ignores.
Not checked: opening the image on a second Mac, which is the only way to see what a downloader sees; the window by eye in this build; anything on Linux or Windows.
The handoff taken out of the repository
Later the same day, at his word: docs/handoff-2026-12-04.md is no longer tracked and
.gitignore ignores docs/handoff-*.md; the file stays in the folder.
Then, also at his word, it was taken out of the history: git filter-branch with an index
filter removed that one file from all twelve commits that held it, and from the tag. Checked
before pushing: no commit reachable from main or v0.1.0 has the file or its text; each
rewritten tree differs from its original by that file alone; the file on disk is untouched
(11,270 bytes). Every commit hash changed, which is why the hashes of this repository’s own
commits given above were replaced. A bundle of the history as it was is in release/, which
git ignores.
After the forced push of main and of the tag: the release is still published with its image;
a fresh clone has 14 commits and none holds the file or its text; the source archive of
v0.1.0 has no such file. GitHub still serves the old commits to anyone who asks for them
by their old hash, and its Activity page records the forced push with those hashes. They
are no longer reachable from any branch or tag, but only GitHub’s own clean-up, a request to
GitHub Support, or deleting and recreating the repository removes them. The repository had no
forks, stars or watchers at the time.
GitHub Pages
Enabled at his word, built from main at / with the legacy build, as in his other
repositories: https://jonathanhuston.github.io/alquerque/. The first build finished without
error. The README is the front page; docs/risk-check.md (linked from it), CLAUDE.md and
the spec are served as pages too, and the source files as they are. The handoff’s address
answers 404.
The repository recreated
Still 5 December 2026, at his word, so that the old commits would be gone for certain. The
sign-in here may not delete repositories (GitHub answered 403 and named the missing
delete_repo scope), so he deleted jonathanhuston/alquerque himself. Then, from here: the
repository created again, public, with the same description; main and the tag v0.1.0
pushed; the release published again from the same image and notes; Pages enabled again.
| Check | Result | How it was checked |
|---|---|---|
| Old commits | Gone | Each of the twelve hashes the history had before the rewrite, asked of GitHub’s API: “No commit found”. |
| Fresh clone | Pass | 15 commits; none holds the handoff or its text. |
| Release | Pass | v0.1.0, not a draft, Alquerque-0.1.0.dmg, 3,377,433 bytes; downloaded back, the same SHA-256 as before (9d57b7b5...5d219c). Its published date is now this evening’s and its download count starts again. |
| Pages | Pass | Built without error from main; the front page and the risk check answer 200, the handoff’s address 404. |
The history as it was before the rewrite now exists only on this Mac: in the bundle in
release/ and, until git prunes it, in the local repository’s own leftovers.
Linux trial: Fedora, 5 December 2026
On the ThinkPad (Fedora 45, GNOME on Wayland, x86_64), from a fresh clone of origin/main at
6c2057c, by a Claude session there at Jonathan’s word. Nothing in the game changed; the one
change to the shell is noted below.
The toolchain
Already there from Desdemona’s trial: Tauri’s libraries (webkit2gtk4.1-devel 2.54.3 and the
rest of its list), Rust 1.100.1 through rustup, Node 22.23.1 and npm 10.9.8 from dnf.
Missing: Gleam, Erlang and rebar3. dnf has erlang (27.3) but no rebar3 and no gleam,
and the session could not use sudo, so all three came from Homebrew, which was already
installed: brew install gleam brought Gleam 1.19.2, Erlang/OTP 29.1.3 and rebar3 3.28.0.
The route through dnf and the two downloads, which the README also gives, was not tried.
Results
| Check | Result | What was seen |
|---|---|---|
npm install |
Pass, with one flaw | It rewrote package-lock.json: npm 10 drops the libc fields npm 11 wrote. Restored with git checkout; npm ci installs the same and leaves the file alone. The README now says npm ci. |
npm test |
Pass | 58 passed, no failures; gleam format --check src test clean. |
npm run build |
Pass | The dev tools fetched their Bun and built dist/; Rust Finished release profile ... in 3m 07s; Bundling Alquerque-0.1.0-1.x86_64.rpm, 3.04 MiB. No --bundles flag was needed, and no rpm-build: Tauri writes the RPM itself. |
| The RPM | Pass | rpm -qpl: /usr/bin/alquerque, /usr/lib/Alquerque/gstreamer-1.0/libgsttauriasset.so, /usr/share/applications/Alquerque.desktop, icons at 32, 128 and 256@2 under hicolor. It requires libgtk-3.so.0 and libwebkit2gtk-4.1.so.0. The launcher entry: Name=Alquerque, Exec=alquerque, Icon=alquerque, Categories=Game;BoardGame;, StartupWMClass=alquerque. |
| What the binary links | Pass | ldd: GTK and WebKitGTK from /lib64, nothing from Homebrew, nothing missing; no rpath. |
| Installed | Pass | pkexec dnf install of the RPM, Jonathan typing his password in the desktop’s dialog: Complete!, with the warning that the OpenPGP check was skipped for an unsigned package. rpm -q alquerque: alquerque-0.1.0-1.x86_64. |
| Launch | Pass by program; not yet checked by eye | The built binary, and then the installed app through its launcher entry (gtk-launch Alquerque), started with nothing on standard error and stayed up. |
npm run dev |
Pass by program; not yet checked by eye | Dev server on port 1234 answered 200; Rust Finished dev profile ... in 2m 07s; Running target/debug/app, which stayed up until it was stopped. Live reload was not tried. |
| The dash | Done; not yet checked by eye | Alquerque.desktop appended to org.gnome.shell favorite-apps. |
npm run play |
Not run | Playwright’s WebKit was not installed here. |
src-tauri/target/ came to 4.4 GB with both the release and the dev build in it.
One change to the shell
bundle.license (MIT) and bundle.homepage were added to tauri.conf.json, because the
first RPM had an empty licence field. The RPM was rebuilt with them before it was installed
and published. The Mac image of 0.1.0 was built before this and is unchanged.
Found on the way
- Homebrew’s
gsettingsis not the desktop’s. Installing Erlang from Homebrew brought its GLib, whosegsettingsthen came first on thePATH. It answered with GNOME’s default favourites, not Jonathan’s, and asetthrough it wrote a file under~/.config/glib-2.0/and changed nothing on the desktop. The file was removed and the dash set with/usr/bin/gsettings; his five favourites were kept and Alquerque added after them. - The dev binary is
target/debug/app, notalquerque:mainBinaryNamenames the packaged binary only.
Published
The RPM was added to release 0.1.0 as Alquerque-0.1.0-1.x86_64.rpm (3,188,283 bytes,
SHA-256 56ef5a417b86364501502ad1464dd8eea1581ad0553457cd03095abef6da6d9d), and the release
notes and the README now give the Fedora install.
For Jonathan to look at on the ThinkPad
- The dash and the applications grid show the icon and the name Alquerque, and a running Alquerque is the same icon as the pinned one, not a second, generic one.
- The window: black from the start, titled Alquerque, the whole setup screen visible. Whether there is a black band above and below the game (the open question about GNOME’s header bar and the 860 px), and how the fonts and the board look under WebKitGTK.
- A game against the computer, and a no-player game at a high strength.