Repository navigation
feat(web): show who wrote what — 7…5 ids, full-id identicons and role badges - #368
Merged
Merged
Conversation
… badges An identity id is a hash an attacker can grind until its first characters match a maintainer's, and the pill showed only those characters on an initial swatch. Identity ids now show their first 7 and last 5 characters everywhere (shortId, Oid included), every pill and assignee avatar draws the identicon of SHA-256 of the whole id, and issue and pull request bylines carry an Owner/Maintainer/Writer/Triage/Reader badge from the repository's proved membership documents. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A profile's identicon seed that is another identity's id now draws the profile's own pattern, so no one can borrow a maintainer's picture. The empty-repo heading keeps DPNS names whole, the private-repo errors and pack-copy errors name ids by both ends, Oid callers drop the ignored length, the identicon hashes its seed once, and the contrast test checks the fill on the identicon's own tile. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 43 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (52)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…splay # Conflicts: # forge-web/components/repo/settings-content.tsx # forge-web/components/repo/webhook-settings.tsx # forge-web/lib/auth/controller.ts # forge-web/lib/auth/signin-messages.test.ts
Issue and PR pages keep master's full-width layout inside AuthorRolesProvider; the style guide keeps this branch's identity pill and master's line-icon backend badge. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Brings #390's contract snapshot (sakura runs UPDATE-1) and the latest master; conflicts resolved keeping both sides. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PastaPastaPasta
added a commit
that referenced
this pull request
Oct 5, 2026
limited-key.ts keeps the key lifetimes; its prefix-only shortId gives way to master's 7…5 shortId from lib/utils (#368). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Part 1 of epic E4 "Who is this" (TS-02). You can now tell who wrote something:
G6D3ejK…hgEQH) everywhere one was shown as a prefix. That covers pills, confirm dialogs, assignee labels, fork labels, private-repo errors, the spend panel, the sign-in pickers, page titles, andOidfor any base58 Platform id (Settings, profile, repo settings).identicon:<seed>whose seed is another identity's id draws the profile's own pattern, so nobody can borrow a maintainer's picture.Why
An identity id is a hash of the asset lock that funded it, so an attacker can grind funding transactions offline until the first 7 characters match a maintainer's (58⁷ tries) and broadcast only the winner. The pill showed exactly those 7 characters on a picture derived from the same id, and nothing marked a maintainer's comment. A fake "maintainer" comment looked identical to a real one. Matching the last 5 characters and the identicon as well is out of reach, and the badge comes from a document only the owner can write.
The badge uses current membership, the set every approval and moderation rule already reads, rather than each document's
asMemberproof.asMemberproves membership only at write time, admits any role, and is optional on comments. A badge from it would keep showing on a former member and miss members who did not attach it.How tested
shortId,authorRoles(owner beats a maintainer document, a former member shows none),RoleBadge/provider,ProfileAvatar(default identicon, borrowed seed refused), and the contrast test (identicon fill vs white and vs the#f3f4f6tile, 3:1 for graphics). I updated the sign-in message and target-rail tests for the new id form. tsc and eslint are clean. A full run of the suite on a heavily loaded machine passed except for 4 timeouts in key-derivation tests, which passed when re-run alone.Screenshots:
/Users/pasta/workspace/dash-forge-qa/evidence/p0/e4/before-issue-thread.pngvsafter-issue-thread.png,after-issue-thread-dark-390.pngafter-pr-thread.png(forge-v2-demo PR feat(mint-identity): mint funded identities on devnet moutai (PV14) #5: Writer, Maintainer, Owner)before-profile.pngvsafter-profile.pngLimits
dgalready prints full identity ids, so nothing changed there.🤖 Generated with Claude Code