Repository navigation
Feature request: Allow tolerance-backed title rescue instead of exact reported-size only #2742
Replies: 1 comment
Agent BriefCategory: enhancement Current behavior: Desired behavior: Key interfaces:
Acceptance criteria:
Out of scope:
Why a human: Admitting more candidates means downloading more |
Uh oh!
There was an error while loading. Please reload this page.
Summary
I'd like to propose a small extension to the existing cross-seed title-rescue system:
This is deliberately narrow.
qui already has nearly all infrastructure required:
Rescue title mismatchesSkip recheckis enabledI am not proposing another tolerance setting, another matcher, another rescue queue, or weaker final verification.
The missing behaviour appears to be specifically that title rescue cannot currently use normal tolerance-backed reported-size evidence.
Current behaviour
Current search classification distinguishes only:
For title rescue, this effectively means:
If total reported size differs at all, title rescue cannot activate.
This includes a one-byte difference.
There are current unit tests explicitly pinning this behaviour:
and for generic exact-size fallback:
So this is distinct from qui's existing 5% size tolerance.
Why this can miss valid cross-seeds
Reported torrent total size is not necessarily the same thing as reusable payload identity.
Example:
Another tracker may package:
Important media payload is byte-identical:
but reported torrent totals differ by 550 KB.
Both totals are vastly inside qui's existing 5% tolerance, yet a title mismatch cannot currently enter title rescue because reported totals are not exactly equal.
That means qui can reject candidate before downloading
.torrentmetadata, even though its existing downstream title-rescue validation could determine that usable files pair exactly.Existing downstream validation is already strong enough
This request does not require weakening final validation.
Current title rescue already requires:
That is much stronger evidence than Torznab-reported total size.
So proposed flow would be:
The 5% comparison would therefore only decide:
It would not decide:
Existing file validation and recheck remain final authority.
Proposed change
Conceptually, title-rescue admission could change from:
to something like:
while retaining every existing title-rescue safety check afterwards.
Exact-size candidates should still rank ahead of tolerance-only candidates.
For example:
No new user-configurable percentage appears necessary initially.
Use existing:
Important: retain existing title-rescue safeguards
Tolerance-backed title rescue should reuse current protections unchanged.
Existing 3-attempt limit
qui already limits title-rescue attempts:
That should remain.
This is important because downloading
.torrentfiles from private trackers may count as snatches or consume tokens.The feature should not download every result inside 5%.
Existing source-bound provenance
Current title rescue is tied to original source torrent via search-decision provenance.
That should remain unchanged.
A tolerance-backed decision should only apply to exact source torrent which produced search.
No global weakening of release matching is required.
Existing exact usable-file pairing
Current title rescue already checks that every usable source file has one exact-size partner.
That should remain mandatory.
For example:
Candidate:
Reported totals differ.
But usable payload pairing succeeds:
Candidate can proceed to full recheck.
Whereas:
may be inside reported 5% tolerance, but exact usable-file pairing fails.
Result:
So tolerance is only discovery evidence.
Existing mandatory recheck
Title-rescue candidates already require verification.
Tolerance-backed title rescue should continue to:
Skip recheckprevents required verificationNo new verification mechanism is needed.
Existing precedent: WEB source relabel
Current code already demonstrates that tolerance-backed relaxation can be safe in a narrowly scoped search case.
The WEBRip ↔ WEB-DL source-relabel path can accept its specific metadata mismatch when reported sizes fall inside normal tolerance.
So conceptually qui already has both:
and:
This request is essentially asking to combine those existing concepts for title rescue:
Why this may improve recall
I've been comparing qui with
ccf-2012/seedcross.For same source torrents and indexers, seedcross appears to identify substantially more possible cross-seeds.
I don't think qui should copy seedcross's permissive matching directly.
qui has much stronger validation.
But one architectural difference appears important:
versus roughly:
The problem is not qui being too strict at verification.
The problem is potentially being too strict about which candidates are allowed to reach verification.
Tolerance-backed title rescue would improve discovery recall without weakening final safety.
Why exact reported-total equality is weaker than actual file evidence
Before candidate torrent is downloaded, qui has:
After candidate torrent is downloaded, qui has:
For deciding whether content can cross-seed, latter evidence is much stronger.
Example:
not equal.
But actual usable files:
are exact.
Requiring equal reported totals before allowing existing exact per-file matcher to run seems unnecessarily restrictive.
Related prior work
PR #1592,
fix(crossseed): relax discovery matching, previously explored broader separation between strict identity matching and more permissive discovery matching.That PR was closed rather than merged.
Since then, qui has gained more targeted infrastructure including:
Because these mechanisms now exist, I don't think broad discovery-matcher changes are necessary for this request.
A much smaller extension to existing title rescue may recover much of practical benefit.
Suggested acceptance tests
Exact-size title mismatch
Current behaviour remains unchanged.
Existing title rescue applies.
One-byte reported-size difference
Currently rejected from title rescue.
Proposed behaviour:
Actual usable-file pairing must still pass before add.
Small sidecar difference
Reported totals differ.
Proposed:
Payload itself differs
Potentially still inside 5% reported-size tolerance.
But existing exact usable-file pairing fails.
Expected:
Outside existing tolerance
Expected:
Skip recheck enabled
Expected:
Same safety behaviour as current title rescue.
Potential follow-up
If tolerance-backed title rescue proves safe in practice, it may later be worth evaluating whether selected exact-size fallback relaxations should also accept tolerance-backed size evidence.
Current tests explicitly reject even a one-byte/non-exact difference for generic exact-size fallback.
I would treat that as a separate follow-up rather than broadening this initial feature.
Starting with title rescue is narrower because it already has:
which makes it a good place to evaluate whether exact reported-total equality is unnecessarily limiting recall.
Requested change in one sentence
All reactions