uttrflow-dev probe surface --seconds and probe retrieval --entries crash on negative values
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- Under an hour
- Newbie friendliness
- 90/100
Research direction
Read CONTRIBUTING.md, then inspect the probe commands in Sources/uttrflow-dev/Probe.swift and compare their validation patterns with Sources/uttrflow-dev/Bench.swift and Record.swift. Check that negative and zero values are refused with allowed-range messages, valid values remain unchanged, and run the documented probe commands plus make verify.
Written by the indexing model from the issue text.
Description
What happens
probe surface(Sources/uttrflow-dev/Probe.swift:23-24) loopsfor tick in 0..<secondsat line 38. A negative--secondsmakes an invalid range and traps.probe retrieval(Probe.swift:75-76) callsRetrievalBenchmark.corpus(entries), which maps over0..<count(Sources/uttrflow-dev/RetrievalBenchmark.swift:89). A negative--entriestraps the same way;0runs and prints meaningless timings.
bench, record, transcribe and insert in the same tool already have a validate() for their numbers.
How to check
Read the two lines above; 0..<-1 is not a valid Range.
Acceptance criteria
probe surfacerefuses--secondsbelow 1, andprobe retrievalrefuses--entriesbelow 1, each in avalidate()with a message naming the allowed range.- Valid values behave exactly as today.
Where to start
Sources/uttrflow-dev/Probe.swiftvalidate()inSources/uttrflow-dev/Bench.swift:32orRecord.swift:19is the pattern to follow.- Tests to extend: there is no test target for
uttrflow-dev; describe the commands you ran in the pull request.probe retrievalneeds no permissions;probe surfaceneeds Accessibility, so for that one checking--seconds -1is refused is enough. - Before pushing, run
make verify(export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer first). It is the same command CI runs, and it enforces the 95% coverage floor per module. - Read CONTRIBUTING.md first, and say on this issue that you are taking it.
Size: XS to S, about 1 hour.
- Dominant language
- Swift
- Stars
- 4
- Forks
- 17
- Avg merge
- 18h 15m
- Merged PRs (30d)
- 442
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from uttrflow/uttrflow-swift
-
Docs/performance.md says the clipboard panel waits for catchUp; toggleQuickPanel no longer waits Openarea:docs documentation good first issue P2
Difficulty 1/5 1-3 hours Newbie friendliness 94/100
uttrflow/uttrflow-swift#1032 ·
-
area:docs documentation good first issue P2
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
uttrflow/uttrflow-swift#1023 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
uttrflow/uttrflow-swift#827 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
uttrflow/uttrflow-swift#802 ·
-
area:general enhancement good first issue P2
Difficulty 2/5 Under an hour Newbie friendliness 92/100
uttrflow/uttrflow-swift#755 ·
All issues in uttrflow/uttrflow-swift
Similar issues
-
type: docs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
googleapis/google-cloud-swift#971 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mozilla-mobile/firefox-ios#35743 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
manaflow-ai/cmux#13417 ·
-
triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
ionic-team/capacitor#8616 ·