fzt in Rust, held identical to Go by shared cases (FZT2-10) #31
Loading…
Reference in a new issue
No description provided.
Delete branch "FZT2-10-rust-fzt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 cratefzt(a workspace from the rootCargo.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. Itsfzt::Sessiontakes 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'shost/suite_test.go(its own PR, once this is released) records them and checks the Go side against them;rust/tests/host_cases.rsreplays 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
merge-queue stopped this at
94d319a: CI failed: merge-queue / group. Push a fix. A failure fixed on main lands once thequeuelabel 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 thequeuelabel is removed and added again: the queue merges main in and CI runs on the new head.