fzt in Rust, held identical to Go by shared cases (FZT2-10) #31

Merged
merge-queue merged 2 commits from FZT2-10-rust-fzt into main 2026-12-01 01:42:53 -08:00
Owner

fzt in Rust, beside the Go engine, for tuimail, spotify-player and fisch's coach to build in rather than loading fzt.dll, which nothing tied to what they were built against. Nelson's decision on FT-17: fzt is kept in both languages, identical.

Added

  • rust/: the crate fzt (a workspace from the root Cargo.toml, as logline has it), taken by git tag. It is the Go engine (tiered fuzzy search, folders, tag search, checklists, the / key pop-up, Tab stepping) plus the two layers fzt.dll put over it: fzt-terminal's host session, with the scrolling its renderer does as it draws, and fzt-frontend's : palette. Its fzt::Session takes the same calls and gives the same frames, as the same JSON, as fzt.dll.
  • testdata/host/: the shared cases that hold the two identical. Each is a menu, options and key presses/resizes/prompts, with the hash of every frame the Go host session answered, byte for byte as fzt.dll writes it: 47 written cases and 120 random ones. fzt-terminal's host/suite_test.go (its own PR, once this is released) records them and checks the Go side against them; rust/tests/host_cases.rs replays them here.
  • CLAUDE.md's new Rust section: what "identical" means and the three steps a change to fzt's behavior now takes (Go, Rust, record).

Left alone: the Go engine, unchanged. The flat list, providers, rename and the item editor, which no host session reaches, aren't in the Rust crate.

Checked: every recorded case replays identically; 20,000 fresh random cases from the Go side (random menus with folders, tags, checklists, hidden rows, Unicode names, and random keys, resizes and prompts) replayed identically too. The Rust suite's checks (tests on Windows, lint, format) pass in pull-request check; the suite becomes fzt's in CI with romaine-life/infra-bootstrap#60 and romaine-life/pipeline-templates#342.

Work package: https://openproject.home.romaine.life/wp/FZT2-10

🤖 Generated with Claude Code

fzt in Rust, beside the Go engine, for tuimail, spotify-player and fisch's coach to build in rather than loading fzt.dll, which nothing tied to what they were built against. Nelson's decision on FT-17: fzt is kept in both languages, identical. **Added** - `rust/`: the crate `fzt` (a workspace from the root `Cargo.toml`, as logline has it), taken by git tag. It is the Go engine (tiered fuzzy search, folders, tag search, checklists, the `/` key pop-up, Tab stepping) plus the two layers fzt.dll put over it: fzt-terminal's host session, with the scrolling its renderer does as it draws, and fzt-frontend's `:` palette. Its `fzt::Session` takes the same calls and gives the same frames, as the same JSON, as fzt.dll. - `testdata/host/`: the shared cases that hold the two identical. Each is a menu, options and key presses/resizes/prompts, with the hash of every frame the Go host session answered, byte for byte as fzt.dll writes it: 47 written cases and 120 random ones. fzt-terminal's `host/suite_test.go` (its own PR, once this is released) records them and checks the Go side against them; `rust/tests/host_cases.rs` replays them here. - `CLAUDE.md`'s new Rust section: what "identical" means and the three steps a change to fzt's behavior now takes (Go, Rust, record). **Left alone**: the Go engine, unchanged. The flat list, providers, rename and the item editor, which no host session reaches, aren't in the Rust crate. **Checked**: every recorded case replays identically; 20,000 fresh random cases from the Go side (random menus with folders, tags, checklists, hidden rows, Unicode names, and random keys, resizes and prompts) replayed identically too. The Rust suite's checks (tests on Windows, lint, format) pass in `pull-request check`; the suite becomes fzt's in CI with https://forgejo.romaine.life/romaine-life/infra-bootstrap/pulls/60 and https://forgejo.romaine.life/romaine-life/pipeline-templates/pulls/342. Work package: https://openproject.home.romaine.life/wp/FZT2-10 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fzt in Rust beside Go, held identical by shared recorded cases (FZT2-10)
Some checks failed
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite go / check-format (pull_request) Has been skipped
Suite go / check-test-linux (pull_request) Has been skipped
Suite release / reused-checks (pull_request) Has been skipped
Suite release / check-package (pull_request) Has been skipped
Suite go / scope (pull_request) Successful in 23s
Suite release / deliver (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / deliver-prune (pull_request) Has been skipped
Suite default / scope (pull_request) Successful in 23s
Suite release / scope (pull_request) Successful in 24s
Suite release / check-manifest (pull_request) Has been skipped
Suite default / check-rules (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite default / reused-checks (pull_request) Successful in 18s
Suite go / check-test-windows (pull_request) Successful in 1m15s
Suite default / check-fetches (pull_request) Successful in 28s
Suite default / check-logs (pull_request) Successful in 27s
Suite go / reused-checks (pull_request) Successful in 20s
merge-queue / group failed with the 11 modules that use it; its run names the modules
merge-queue CI failed: merge-queue / group
94d319a566
Collaborator

merge-queue stopped this at 94d319a: CI failed: merge-queue / group. Push a fix. A failure fixed on main lands once the queue label is removed and added again: the queue merges main in and CI runs on the new head.

merge-queue stopped this at 94d319a: CI failed: merge-queue / group. Push a fix. A failure fixed on main lands once the `queue` label is removed and added again: the queue merges main in and CI runs on the new head.
Collaborator

merge-queue stopped this at 94d319a: CI failed: merge-queue / group. Push a fix. A failure fixed on main lands once the queue label is removed and added again: the queue merges main in and CI runs on the new head.

merge-queue stopped this at 94d319a: CI failed: merge-queue / group. Push a fix. A failure fixed on main lands once the `queue` label is removed and added again: the queue merges main in and CI runs on the new head.
Test with fzt's users again, now that fzt-frontend's engine-version test skips in a workspace
All checks were successful
Suite release / reserve (pull_request) Has been skipped
Suite release / check-manifest (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite rust / check-audit (pull_request) Has been skipped
Suite go / check-format (pull_request) Has been skipped
Suite go / check-test-linux (pull_request) Has been skipped
Suite release / deliver-prune (pull_request) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite rust / check-format (pull_request) Successful in 7s
Suite default / check-logs (pull_request) Successful in 6s
Suite default / check-fetches (pull_request) Successful in 6s
Suite default / reused-checks (pull_request) Successful in 5s
Suite go / reused-checks (pull_request) Successful in 9s
Suite release / check-package (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / reused-checks (pull_request) Has been skipped
Suite release / deliver (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite rust / check-test-linux (pull_request) Has been skipped
Suite rust / check-services (pull_request) Has been skipped
Suite rust / check-typos (pull_request) Has been skipped
Suite rust / check-machete (pull_request) Has been skipped
Suite default / check-rules (pull_request) Has been skipped
merge-queue / group passed with the 11 modules that use it
Suite rust / check-test-windows (pull_request) Successful in 2m59s
Suite go / check-test-windows (pull_request) Successful in 1m25s
Suite rust / reused-checks (pull_request) Successful in 7s
merge-queue landed on main
4b4b88eed5
merge-queue deleted branch FZT2-10-rust-fzt 2026-12-01 01:42:53 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/fzt!31
No description provided.