Conversation
|
Not sure (1) is actually true DRY issues should be addressed to keep codebase sane PR #96 Review: Setup-circuits commandOverall the intent is solid and well-aligned with a real UX pain: 🔴 Blocking issues1. The PR doesn't actually achieve its stated goal — 2. CI (rustfmt) is failing. The "Fast Checks (Format)" job red-X'd. Several real diffs rustfmt wants:
Just run 3. Clippy will (very likely) fail. 🟠 DRY violations (explicit user rule)4. The identical logic and identical message strings are reproduced in 5. Two hard-coded lists of the same eight circuit files. 6. 🟡 Correctness / UX concerns7. The progress bar is cosmetic and misleading. The bar jumps to 10 % immediately, then sits there for the entire multi-minute generation (a single blocking call with no callback hook), then jumps to 100 %. It gives users the impression of a hang. Either (a) use a spinner ( 8. Silent failure risk — If generation succeeded but a file is missing, this loop silently skips it. Per the "fail early, no silent failure" rule, either log an error or re-validate with 9. Redundant timing. 10. 11. 🟢 Docs / discoverability12. README isn't updated. The 13. The module docstring claims "Users must run Nits
Suggested minimum-viable merge checklist
Happy to draft any of those fixes as follow-up commits if you want — just say the word. |
This lets users who do
cargo install quantus-clido wormhole commands, but it prompts them to generate the circuits firstquantus setup-circuits