Skip to content

docs(similarity): correct the fallback key comment - #36

Merged
MeroZemory merged 3 commits into
mainfrom
docs/similarity-fallback-comment
Jul 30, 2026
Merged

docs(similarity): correct the fallback key comment#36
MeroZemory merged 3 commits into
mainfrom
docs/similarity-fallback-comment

Conversation

@MeroZemory

Copy link
Copy Markdown
Owner

Comment-only fix spotted while reviewing #24.

_instance_key's fallback comment said "path + size", but the seed is
binary_path + function_count. #24 describes the code correctly; the comment
was the stale one.

Also records the collision the fallback accepts (two different binaries at the
same path with equal function counts), so the weakness is visible where the code
lives rather than only in the issue. The underlying design question stays in #24.

No behaviour change.

🤖 Generated with Claude Code

MeroZemory and others added 3 commits July 30, 2026 20:10
The comment said "path + size" but the seed is binary_path + function_count.
Noted while reviewing #24, which describes the same code correctly. Also record
the collision case the fallback accepts, so the weakness is visible at the site
rather than only in the issue.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@MeroZemory
MeroZemory merged commit 2c044fd into main Jul 30, 2026
7 checks passed
@MeroZemory
MeroZemory deleted the docs/similarity-fallback-comment branch July 30, 2026 13:54
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.

1 participant