Repository navigation
count a cited page once in a sources check - #36
Merged
agency-builder merged 2 commits intoNov 25, 2026
Merged
Conversation
Collaborator
|
Merges onto current main, and the app suite passes. Two things:
|
anuraggdubey
force-pushed
the
fix/sources-distinct-pages
branch
from
November 25, 2026 23:10
4f2cc15 to
031b329
Compare
Contributor
Author
|
Thanks! Updated the |
This was referenced Nov 27, 2026
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.
Fixes #35.
A
sourcescriterion'smincounted cited links by exact string, so one page cited as…/p#1,…/p#2and…/p#3metmin: 3and was fetched three times.Changes
links()andload()drop the#fragmentbefore de-duplicating, caching and fetching, so fragment-only variants are one page, fetched once.sourcescheck counts a page once per SHA-256, so the same bytes at two addresses (a mirror,httpandhttps) are one source.mincounts distinct pages.Tests
evidence-transport.test.ts: its 70 mock responses all had the same body, which the new de-duplication correctly collapsed. They are now distinct. The test is about queueing, not content.pnpm typecheckpasses.Not included
agent.ts:307, is unchanged and still accurate.