Skip to content

Make spot ranking honest about ties, skill and access - #33

Merged
xquantize merged 1 commit into
feature/conditionsfrom
agent/honest-spot-ranking-1d73
Oct 19, 2026
Merged

xquantize merged 1 commit into
feature/conditionsfrom
agent/honest-spot-ranking-1d73

Conversation

@xquantize

Copy link
Copy Markdown
Owner

Implements #32 (part of #21). Targets feature/conditions.

Equal best-hour scores were broken by spot id, so the alphabetically first spot looked like the top recommendation. Ties are now shown as ties, and skill and access count.

  • rank_spots gives spots with the same best-hour score a shared rank (=1, =1, 3). Within a tie the order is practicality: shore access before a boat, then easier min_skill, then earlier best hour, then name.
  • Optional skill (beginner, intermediate, advanced) keeps harder spots out of the ranking and returns them as above your level.
  • swellsense check --all [--hours 12] [--skill LEVEL] adds rank, min_skill, access and a hazards count. With --skill, the above-your-level list is printed after the ranking.

No new dependencies. bash scripts/check.sh passed (270 tests).

Open in Web Open in Cursor 

Equal best-hour scores share a rank. Within a tie, shore access and an
easier skill come first. --skill lists spots above that level instead
of dropping them.

Co-authored-by: Zane <xquantize@users.noreply.github.com>
@xquantize
xquantize marked this pull request as ready for review October 19, 2026 01:47
@xquantize
xquantize merged commit 4071db0 into feature/conditions Oct 19, 2026
1 check passed
@xquantize
xquantize deleted the agent/honest-spot-ranking-1d73 branch October 19, 2026 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants