fix: fallback WoT score to bootstrap pubkeys (#46) #160

Closed
priyanshu_bharti wants to merge 2 commits from priyanshu_bharti/flotilla:46-fallback-wot-score into dev
Contributor

Summary

This PR adds a fallback WoT scoring path for users who do not follow anyone.

Problem

For no-follow accounts, the user-based WoT path could not produce meaningful scores, so the WoT ring stayed flat/empty.

What changed

  • Kept the existing WoT behavior for users who already follow accounts.
  • Added fallback scoring when follow count is zero.
  • Fallback uses bootstrap pubkeys as the scoring source.
  • Score is computed from follow/mute signals from the bootstrap set.

Why this matches issue #46

Issue #46 asks to fallback to bootstrap pubkeys when the user does not follow anyone.
This PR implements exactly that behavior.

Validation

  1. Ran lint successfully.
  2. Ran type-check successfully.
  3. Ran app locally and verified WoT rings on the People page.
  4. Verified no-follow flow uses fallback logic.
  5. Verified normal flow (with follows) remains unchanged.

Screenshots

Attached: People page screenshot showing WoT rings near profile names.

Before

image.png

After

image.png

Closes #46

## Summary This PR adds a fallback WoT scoring path for users who do not follow anyone. ## Problem For no-follow accounts, the user-based WoT path could not produce meaningful scores, so the WoT ring stayed flat/empty. ## What changed - Kept the existing WoT behavior for users who already follow accounts. - Added fallback scoring when follow count is zero. - Fallback uses bootstrap pubkeys as the scoring source. - Score is computed from follow/mute signals from the bootstrap set. ## Why this matches issue #46 Issue #46 asks to fallback to bootstrap pubkeys when the user does not follow anyone. This PR implements exactly that behavior. ## Validation 1. Ran lint successfully. 2. Ran type-check successfully. 3. Ran app locally and verified WoT rings on the People page. 4. Verified no-follow flow uses fallback logic. 5. Verified normal flow (with follows) remains unchanged. ## Screenshots Attached: People page screenshot showing WoT rings near profile names. ### Before ![image.png](/attachments/aa1a6efe-bfa2-4132-aed5-1b7da768ec0c) ## After ![image.png](/attachments/07a7996c-1531-43cd-b24d-7f09f25b39c7) Closes #46
153 KiB
152 KiB
priyanshu_bharti added 1 commit 2026-04-06 06:55:22 +00:00
Author
Contributor

Hi @hodlbod
The fallback for WoT score to bootstrap pubkeys is now implemented and working properly
Can you please take a look

Hi @hodlbod The fallback for WoT score to bootstrap pubkeys is now implemented and working properly ✅ Can you please take a look
hodlbod reviewed 2026-04-06 19:05:23 +00:00
hodlbod left a comment
Owner

Calculating wot is pretty expensive, so we should try to calculate fallback only when user score is unavailable. The logic as is is also kind of confusing, see if you can make this more concise.

Calculating wot is pretty expensive, so we should try to calculate fallback only when user score is unavailable. The logic as is is also kind of confusing, see if you can make this more concise.
Author
Contributor

Hi @hodlbod, thanks for the review. I’m working on this right now. I’m updating it so fallback WoT is calculated only when user score is unavailable, and simplifying the logic for clarity.

Hi @hodlbod, thanks for the review. I’m working on this right now. I’m updating it so fallback WoT is calculated only when user score is unavailable, and simplifying the logic for clarity.
priyanshu_bharti added 1 commit 2026-04-06 23:21:34 +00:00
priyanshu_bharti requested review from hodlbod 2026-04-07 21:41:56 +00:00
Owner

Hey @priyanshu_bharti I was thinking about this issue this morning, and my apologies, but I want to take a different approach. I will update the issue shortly.

Hey @priyanshu_bharti I was thinking about this issue this morning, and my apologies, but I want to take a different approach. I will update the issue shortly.
hodlbod closed this pull request 2026-04-08 15:07:42 +00:00
Author
Contributor

@hodlbod ,No worries at all.
Thanks for the review and for letting me know.

I’ll wait for the updated issue with the new approach. Once it’s updated, please let me know if I can still help with it.

Also, I’ll wait for you to reopen my PR after updating the issue so I can adjust my changes accordingly.

Thanks again!

@hodlbod ,No worries at all. Thanks for the review and for letting me know. I’ll wait for the updated issue with the new approach. Once it’s updated, please let me know if I can still help with it. Also, I’ll wait for you to reopen my PR after updating the issue so I can adjust my changes accordingly. Thanks again!
Owner

I've updated the issue, please take a look and open a new PR when you're ready.

I've updated the issue, please take a look and open a new PR when you're ready.

Pull request closed

Sign in to join this conversation.