Repository navigation
feat: mirror claims read "says it mirrors" until the source lists the repo - #371
Merged
Merged
Conversation
… repo A repo description saying it mirrors github.com/o/r is its owner's own word, and anyone can write it for the price of a repo, yet the not-found page ranked such repos first and bolded the claim. Claims now read "says it mirrors" and never rank a repo higher (stars, then age). A source vouches for a mirror with .dash-forge.json listing its repo id (forge-v2.md §6.4; rules::mirror and lib/rules/mirror-backlink.ts, pinned by mirror_backlink vectors). The rail and the not-found page check it with GitHub from the viewer's browser only when asked, and the rail also compares the source's default branch with the mirror's proved tip; nothing is green until checked. Maintainers of an unlisted mirror get a prefilled GitHub new-file link, and forge-import prints the file after creating a GitHub mirror. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Only the GitHub repo the missing address names can rank a mirror first (a look-alike source can list its own repo). A check that lands after the viewer moved on is dropped, a body that fails to read is a failed check and is never cached, and failed checks can be retried. The head check compares the source's default branch (commits/HEAD), a maintainer whose source already lists other mirrors is sent to edit that file, and both readers refuse JSON nested deeper than 64 so Rust and TS agree (vectors). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… under clippy's line limit Also says in §6.4 that the head check compares the source's default branch (commits/HEAD). 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 38 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (37)
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 |
# Conflicts: # forge-web/components/repo/repo-rail.tsx
# Conflicts: # crates/forge-core/src/rules.rs
PastaPastaPasta
added a commit
that referenced
this pull request
Oct 5, 2026
repo-not-found keeps master's checked-claim ranking (#371) and this branch's auto-open of one clear mirror; short-url reserves both gh/github.com and icons. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PastaPastaPasta
added a commit
that referenced
this pull request
Oct 5, 2026
…rror" Match the wording #371 uses for unchecked mirror claims. 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 2 of epic E4 "Who is this" (TS-01, CJ-3): mirror claims can no longer pass as fact.
Mirror of github.com/o/rnow reads "Says it mirrors github.com/o/r" in the rail and on the "Repo not found" page. It is never bold and never ranks a repo higher. The not-found suggestions are ordered by proved star count, then age..dash-forge.jsonat the root of its default branch:{"mirrors":["<repo id>"]}. The reader rule is shared byforge_core::rules::mirrorandlib/rules/mirror-backlink.ts: at most 4,096 bytes and 64 levels of nesting, an object with amirrorslist, exact id match, unknown keys ignored. Both sides are pinned by 21mirror_backlink*vectors.raw.githubusercontent.com(CORS-open) and compares GitHub's default branch (commits/HEAD) with the mirror's proved default-branch tip. When the source lists the repo, the rail reads "Mirror of …" with green results. Until the viewer asks, nothing is fetched and nothing is green, and a failure reads "couldn't check", never a match. The not-found page has Check mirror claims with GitHub. A repo listed by the very source the address names (github.com/<owner>/<name>) then comes first. A look-alike source listing its own repo does not.Why
Anyone can create a repo named
dipsdescribed as a mirror ofgithub.com/dashpay/dipsfor about 0.0016 DASH. The not-found page fordashpay/dips, the URL a GitHub user would guess, ranked that claim first in bold. That was the cheapest impersonation path in the trust review. Only someone who can push to the source can add the back-link file, so a listed mirror is one the source's maintainers vouch for.How tested
cargo test -p forge-core conformance_vectorsandlib/rules/conformance.test.ts.mirror-check.test.ts: listed, not listed, no file, broken file, branch differs, empty repo, network failure, rate limit, body read failure, session cache, look-alike paths.repo-not-found.test.ts: a claim never ranks higher, and a look-alike source can't rank first.mirror-claim.test.tsx: nothing fetched or green before the check, "Mirror of" once listed, a stale answer dropped after navigation, maintainer links.backlink_hint.-D warnings(forge-core, forge-import) are clean./repo/?owner=dashpay&name=dipsshows "says it mirrors … (not listed there)" after its check.Screenshots in
/Users/pasta/workspace/dash-forge-qa/evidence/p0/e4/:before-mirror-rail.png,after-mirror-rail-unchecked.png,after-mirror-rail-checked.pngbefore-404-suggestions.png,after-404-suggestions.png,after-404-suggestions-checked-dark-390.pngLimits
.dash-forge.jsonlisting their repo ids todashpay/dipsanddashpay/dash. That needs push access to those repositories.🤖 Generated with Claude Code