Skip to content

Improve guess ordering and add data policy warning#36

Merged
SupraSummus merged 2 commits intomainfrom
claude/embedding-guess-top-position-gXRhl
Apr 12, 2026
Merged

Improve guess ordering and add data policy warning#36
SupraSummus merged 2 commits intomainfrom
claude/embedding-guess-top-position-gXRhl

Conversation

@SupraSummus
Copy link
Copy Markdown
Owner

Summary

This PR improves the guess ordering logic and adds a data policy warning to the guess submission form.

Key Changes

  • Enhanced guess ordering: Updated _annotated_guesses() to use F('distance').asc(nulls_first=True) instead of simple order_by('distance'). This ensures explicit null handling, placing null distances first in the result set.
  • Data policy warning: Added a prominent warning message to the guess submission form that discourages users from sharing private, secret, or classified information, with a link to the data policy page.

Implementation Details

  • The ordering change uses Django's F expressions for more explicit control over null value placement in the query results.
  • The warning is displayed in a <strong> tag within the form, making it visually prominent to users before they submit their guess.
  • The data policy link is dynamically generated using the reverse() function to reference the data_policy:root URL.

https://claude.ai/code/session_01G6KHKtYCqjXQHSgPRPZ8js

claude added 2 commits April 12, 2026 21:52
- Order guesses with nulls_first so pending guesses (embedding not yet
  computed) appear at the top of the list immediately after submission
- Add "Don't share any private, secret, or classified information!" disclaimer
  to the guess form, matching the warrior create page

https://claude.ai/code/session_01G6KHKtYCqjXQHSgPRPZ8js
Adds a "Last guess" heading with the most recently submitted guess,
so users can immediately see how their latest attempt did, separate
from the full list ordered by distance.

https://claude.ai/code/session_01G6KHKtYCqjXQHSgPRPZ8js
@SupraSummus SupraSummus merged commit 934f716 into main Apr 12, 2026
5 checks passed
@SupraSummus SupraSummus deleted the claude/embedding-guess-top-position-gXRhl branch April 12, 2026 22:00
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