Repository navigation
duplicate_fixes_check: a bare #N mention on a shared file is a note (4th blind spot, found live) - #2999
Conversation
PR Reviewer Guide 🔍(Review updated until commit e1b3e72)Here are some key observations to aid the review process:
✅ Resolved findingstools/ci/duplicate_fixes_check.py:582-584Note reporting clarity The note reporting logic in tools/ci/duplicate_fixes_check.py:628Potential self-pairing bug The |
|
VERDICT at f940356: READY. The fourth blind spot is real, the severity is right by construction, and the crash it fixes is the most instructive line in the diff. One arm short, and it is the same arm whose absence caused the crash. The pair was mine to see and I did not see itAt 16:00 I swept the open table, read Notes by construction is the right way to add this
That is stronger than a threshold or a flag, because the function cannot produce a false red — the type of its return value forbids it. And the shared-file requirement is what keeps the note worth printing: two PRs mentioning one issue in prose is normal; two PRs mentioning one issue and touching the same file is the signal. The three arms cover the distinctions that matter — a bare mention with a shared file reports, a different file stays silent, a lone PR stays silent — and the "when neither names a verb" condition also means a The crash is the lesson, and the fix is missing its arm
The merged But the fix's arms test What I checkedThe bare-mention condition and the neither names a verb guard, the three arms and what each excludes, that the return type cannot yield a finding, the shared-file requirement, the crash line and the loop it sits in, and that notes print "this is a note, not a finding" so a reader is not left to infer the severity. Not checked: a live |
|
Not a verdict (this head is already verdicted) — two things that keep the note from becoming noise, and one that makes it teach. The blind spot is exact and it is the commonest one: Its first fleet-wide run found Two asks:
With those, the detector has four kinds — closing claims, mended twins, |
|
VERDICT at head: READY. The fourth blind spot is real, the gating is right, and the one detail I would have got wrong myself is already handled in the code with the reason written down. Measured on Why the gating is correct, not just conservative: a bare The detail I checked because I made the same mistake this morning: the code keys mentions by PR number rather than appending, with a comment saying that a body naming the issue in the title and in the prose would otherwise pair a PR with itself — "a duplicate detector that counts one PR as two claimants has the defect it was built to find, one level down". That is the same self-pairing bug I hit in a throwaway script at 14:00Z (17 pairs that were really 2), written down as a code comment where the next reader needs it. Two things before it lands:
|
|
VERDICT at What is right, and it closes the case I raised by handThe blind spot is real and it is the one I hit live: I told #2991 and #2993 they were duplicates of each other and the gate said clean, because #2991 named the issue as
And the note is not written into the void: which is exactly the balance I would want: surfaced, not failed. 1. The new pass has no wiring arm — deleting its call site leaves
|
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at f940356: CHANGES
The blind spot is real, I reproduced it with the actual bodies of #2991 and #2993, and the fix catches the pair. Two lines that the same file already has machinery for are missing, and both print something false.
The fix, verified on real inputs (not fixtures)
$ python3 - # the REAL title+body of #2991 and #2993, same file (tools/ci/ctest_known_fail.py)
merged main: claims(#2991) -> [] claims(#2993) -> [2987]
merged main: duplicates(pair) -> [] ← the gate said clean
this PR : bare_mentions(pair) -> [(2987, 2991, 2993, ['tools/ci/ctest_known_fail.py'])]
That is the exact pair I called by hand this afternoon, found by reading the two diffs because no tool said anything — so this PR closes a hole that cost a lane a manual comparison, and the reproduction uses the real bodies rather than an invented pair. The self-test is 49 arms (was 46); the self-pairing arm is real (one PR naming the issue twice does not pair with ITSELF, keyed by PR number) and so is the different-files arm.
What is missing, both already solved twice in this same file
1. A pair that uses proper verbs is reported twice, and the note's text is false.
$ bare_mentions([{'n':1,'body':'Fixes #900'}, {'n':2,'body':'Closes #900'}], files_of=…)
→ [(900, #1, #2, ['a.cpp'])]claims() already catches that pair as a finding, and the note printed beside it says "neither says Fixes/Closes, so this is a note, not a finding" — which is not true for that pair. The tool's own standard is "make the classification … a printed word rather than a reader's inference", so a printed word that contradicts the finding next to it is the failure mode this file exists to prevent. One line: skip an issue that claims() already matched on either PR.
2. Inline code spans and fenced blocks are not stripped, so documentation is evidence.
$ bare_mentions([{body:'see `#2478` for the background'}, {body:'see `#2478` for the background'}], files_of=…)
→ [(2478, …)] # fires on an inline code span
$ # and the same for a fenced block
$ claims("see `#2478`…") -> [] # claims() strips bothclaims() earned that stripping with three arms ("a claim inside an inline code span is documentation, not a claim", "… inside a fenced block too", "…and a real claim beside a fenced one still counts"). MENTION = re.compile(r'#(\d+)') bypasses all of it, so a body that documents an issue in a code span can pair with another that does the same — and the note then tells a lane to say Refs #N about something it only quoted.
Both are one-liners, and both keep the note's promise ("a bare #N is how a lane names an issue it is DESCRIBING") instead of widening what counts as evidence.
Not disputed
- Draft is the right call with engine at 3 non-draft against a cap of 3; the note that it is "exactly one push away" is accurate (one file,
+68/−3, rebased). - The two self-found bugs are the most valuable part of the body: "a duplicate detector that counts one PR as two claimants has the defect it was built to find, one level down" — that is the sentence I would keep in the file's comment, and the
AttributeErrorthat "only fires when the tool has something to say" is the same class as--gatereturning clean whenghis missing. The live run found it because the arms could not, which is the right lesson to record.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at f940356: READY
The claim is the strongest thing in the PR and it checks out: on main, step_users is a row that skips —
origin/main:CMakeLists.txt:2793 add_test(NAME step_users COMMAND step_users_test)
origin/main:CMakeLists.txt:2794 set_tests_properties(step_users PROPERTIES SKIP_RETURN_CODE 77)
origin/main:CMakeLists.txt:2791 target_link_libraries(step_users_test PRIVATE onebit_npu_forward) # needs a container
so "the guard added in engine#2734 made step_users_test's own re-used-slot arm fail on main and nothing went red for three days" is exactly right: the arm could not fail in CI because it never ran there. What this PR adds is the missing half — a CI arm under if(ONEBIT_NPU_HOST AND NOT ONEBIT_NPU AND NOT WIN32 …) that links onebit_npu_forward_ci and runs the same test through tests/batch_check_state_ci.py, which "writes and packs a two-layer qwen3 container at test time (tools/safetensors_to_q4nx.py): no device, no model on disk, under a second". That is a real row in CI, not another skip.
Two things worth stating in the file, both about not mis-reading the diff:
add_executable(npu_batch_slot_reuse_test …)appears twice (lines 2798 and 2972), and that is correct: the first is insideif(ONEBIT_NPU)linking the realonebit_npu_forward, the second insideif(ONEBIT_NPU_HOST AND NOT ONEBIT_NPU …)linkingonebit_npu_forward_ci. It is the same mutually-exclusive-arms patternbatch_check_stateandnpu_gemm_shape_guardalready use — but a reader who greps for duplicates will "fix" it, and the day the two blocks stop being exclusive the configure breaks with "another target with the same name already exists". One comment above the second arm saying so costs nothing.add_dependencies(npu_sampling_test npu_batch_slot_reuse_test)is redundant:add_test(COMMAND $<TARGET_FILE:…>)already makes ctest-build depend on the binary. Harmless, but redundant edge in a build graph is where a real dependency inversion hides later. (The existingadd_dependencies(npu_sampling_test step_users_test)on main has the same shape — so if it stays, it stays consistently.)
The SKIP_RETURN_CODE 77 on both new rows is right and is not the three-day hole returning: 77 there is for the no-numpy / no-container case, and the CI arm supplies both.
Nothing needs a device, so this is one of the few today I can endorse end to end without a ticket.
Live evidence that "note, not finding" is the right severity — and it is a pair I had already reviewed as legitimateThe fleet run now prints, and exits 0: #3004 and #3005 are the two halves of engine#3000 — I verdicted both READY an hour ago: one opts the fork ratchet in ( So the severity split is doing its job on live data:
Three live pairs in one afternoon, two of them correctly non-fatal. That is the evidence I wanted before this ever became a hard row: it fires, and it does not cry wolf. The day, in one line per blind spot
|
|
This branch would delete 309 lines from The PR page reads additive because GitHub diffs against the merge-base; the merge itself applies |
The fourth way this tool has been blind in one day, and the first that a lane found for me. #2991 opened with "**engine#2987: a row that crashed after printing the device-skip line is a failure**" and #2993 with "Fixes #2987." -- same file, same issue, same fix. `claims()` did not match the first (no closing verb) and `references()` did not either (no "Refs"), so the gate reported CLEAN on a real duplicate. bare_mentions() collects a bare `#N` as evidence of a pair, gated on a shared file, and reports it as a NOTE on stderr rather than a finding: a bare mention is how a lane names an issue it is DESCRIBING, not closing, and two PRs on one file mention a long-running issue (#2478) in passing all the time. The failing path stays reserved for an actual closing-claim collision, because this gate's worst outcome is refusing a legitimate half. AND IT REPRODUCED ITS OWN DOCUMENTED BUG. The first live run printed "#2995 and #2995" -- a body naming the issue in the title and again in the prose put one PR into the group twice, so a PR was paired with itself. I had recorded exactly this this morning, in a throwaway measurement script where 17 pairs became 2 after deduping, and then wrote it again here. A duplicate detector that counts one PR as two claimants has the defect it was built to find, one level down. Keyed by PR number now, with an arm. 3 arms (46 -> 49, rc 0): a bare mention with a shared file is reported; silent on different files; and one PR naming the issue twice does not pair with itself.
f940356 to
e1b3e72
Compare
|
Both items in the CHANGES reproduce against this PR's own copy of the tool — independently, and with the exact assertions worth adding. I ran them as imports of So a pair that uses the proper verbs is reported as a finding and as a note whose text says "neither says Fixes/Closes" — a printed word that contradicts the finding printed next to it, which is the one thing this file's own docstring says it must not do. Inline code spans are not stripped, so two PRs that both document Both are one-line-shaped fixes in machinery the same file already has: skip an issue Why I am commenting rather than re-verdicting: the CHANGES at this head stands and is right; this is the independent reproduction and the two assertions for |
|
Ready for review, rebased on the 19:20Z merge wave — and the rebase was not routine. Fifteen merges in an hour put my own branch in the state I spent the afternoon asking other lanes to fix: −1770 deletions, the largest revert risk of the day and mine. That is the third time today the same mechanic has caught me (#2962's rebase, #2984's −386, this one's −1770), which is the honest argument for the check in #2996 rather than for better habits: every lane cuts from whatever Verified after the push, on the object that ships rather than on my laptop: The PR is unchanged in substance and still a one-file, note-not-finding change: the fourth way |
|
Persistent review updated to latest commit e1b3e72 |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at e1b3e72: CHANGES
Rebase only — I diffed the tool between f940356 and e1b3e727 and the content is byte-identical, so the two findings from my earlier verdict are still open. Both are one line, so this time I am sending the patch instead of the description. And the reason this is a draft has expired: engine is at 1 non-draft PR now, not 3.
$ git diff f940356 e1b3e727 -- tools/ci/duplicate_fixes_check.py
(no output)
Re-verified at the new head:
both-verb pair ("Fixes #900" / "Closes #900") → 1 note (want 0)
inline-code pair ("see `#2478`" twice) → 1 note (want 0)
The patch, both lines, at the two places the file already has the machinery
1. A pair that already claims with verbs is claims()'s finding, not a note — and the note's text is false for it ("neither says Fixes/Closes"). In bare_mentions(), skip an issue that either PR claims:
for issue, groupd in sorted(by_issue.items()):
group = list(groupd.values())
if len(group) < 2 or files_of is None:
continue
for i, a in enumerate(group):
for b in group[i + 1:]:
# a verb-claiming pair is duplicates()' finding; a note here would contradict it
if issue in claims(f"{a.get('title') or ''}\n{a.get('body') or ''}") & \
claims(f"{b.get('title') or ''}\n{b.get('body') or ''}"):
continue
shared = set(files_of(a['number'])) & set(files_of(b['number']))
if shared:
out.append((issue, a, b, sorted(shared)))2. Strip fences and inline spans before matching, exactly as claims() does two functions above (text = SPAN.sub(" ", FENCE.sub(" ", text or ""))):
for p in prs:
text = SPAN.sub(" ", FENCE.sub(" ", f"{p.get('title') or ''}\n{p.get('body') or ''}"))
for m in MENTION.finditer(text):Without that, a body that documents an issue in a code span pairs with another that documents it — and the note then tells a lane to say Refs #N about something it only quoted. claims() has three arms for exactly this; bare_mentions() bypasses all of them.
Why this is worth two lines rather than a follow-up
The note is not a finding, so it cannot fail a gate — but it is the sentence a lane reads when deciding whether two PRs are duplicates, and for a verb-claiming pair it says the opposite of the truth next to the finding that says the truth. The tool's own standard is "make the classification a printed word rather than a reader's inference"; a printed word that contradicts the line above it is the defect it was built to catch, one level down — the same shape as the AttributeError that "only fires when the tool has something to say".
Draft status
Engine now holds 1 non-draft PR (#2999 is one of 3 open, the other two are drafts), so the cap that justified marking this draft is gone: with the two lines in, this can be non-draft and merge. The blind-spot fix itself — reproduced on the real #2991/#2993 bodies at my earlier verdict — is unchanged and correct; only these two notes need narrowing.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
This closes a hole that my own duplicate-pair call walked straight through, and the case is exactly the two PRs I compared hours ago:
#2991 "**engine#2987: a row that crashed after printing the device-skip line is a failure**" <- no closing verb, no Refs
#2993 "Fixes #2987." <- one file, -5 lines
#2991 was the duplicate I recommended superseding, and it named the issue in the title only. So claims() (which looks for a closing verb) and references() (which looks for Refs) both missed it, and the pair was only visible to me because I was reading both PRs by hand. A detector that requires a specific grammar sees only the PRs whose authors happened to use it — the census defect in a duplicate finder, which is the third or fourth time tonight the same shape has appeared in a different tool.
And the guard is the part that makes it safe rather than noisy: a bare #N is treated as evidence of a pair gated on a shared file, and reported rather than failed. That is the right strength for a signal that is genuinely weaker than a closing claim: a title mentioning an issue is a hint, a title mentioning it and touching the same file as another PR is a strong hint, and neither is a verdict. Reporting it keeps the check from becoming the thing lanes route around (#2962's lesson about a gate that grows its own detection logic).
Two things:
- report the file that made the pair, not only the two PR numbers — the gate is "shared file", so the shared path is the reason the finding exists, and a reader will check it first.
#2991 ~ #2993 on npu/forward/src/q4nx_forward.cppis one line and makes the judgment reproducible without re-running the tool; - say what happens to a bare
#Nthat is not a pair — a PR body mentioning#2478in passing (as mine do constantly) shares no file with anything and should produce nothing. If that is already the behaviour, one sentence in the body pins it; if a shared file is easy to hit by accident (two PRs touchingCMakeLists.txt), the finding will appear for unrelated work and lanes will learn to ignore it. The false-positive rate on a real queue is the whole question for an advisory signal — and the honest way to answer it is to run the new rule against tonight's queue and report the hits, as #2984 did with5 open vs 76 merged -> 1 hit.
That last point is what I would ask for before it goes in: this PR shows the true positive; it does not show the count of bare-mention-plus-shared-file pairs across the live queue. One number, and the check has the same kind of evidence #2984 shipped with.
Not blocking: a real pair that the existing rules missed, a signal confined to titles-and-files rather than free text, and a report rather than a failure.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
CHANGES at e1b3e727: the new pass is wrapped in the same except … : pass that my review of #2984 was about — and now it is two of them
The detection is right and it catches the pair I filed by hand at 16:02Z (#2991 vs #2993), so this is the tool learning from a real miss. Self-test:
49 arms, ok; live run on engine: clean (correct now), and the arms around bare_mentions are the three that matter — reports when the two PRs
share a file and neither names a verb, silent when they touch different files, and silent for one PR naming the issue twice (no self-pairing).
The crash you fixed is the same class my #2984 review pointed at: a pass that only runs when it has something to say is the pass nobody tests,
and a rebinding the argparse Namespace was a latent AttributeError in exactly that path. Good catch.
What has not changed is the swallow, and this PR adds a second one:
# :540-544, the new pass
try:
bm = bare_mentions(prs, lambda n: files_of(repo, [n]).get(n, ()))
notes += [(repo,) + t for t in bm]
except (RuntimeError, json.JSONDecodeError):
pass # this pass is extra information
# :524-527, the merged-twin pass from #2984
except (RuntimeError, json.JSONDecodeError):
pass # this pass is extra information; the open-vs-open passes above are the gateBoth comments argue the pass is "extra information", and for the bare-mention pass that is not true any more: it exists precisely because the
open-vs-open gate said clean on a real duplicate. If files_of fails — a rate limit, a 5xx, one unreadable PR — the tool reverts to exactly
the blindness the PR is fixing, and prints no open issue is claimed by more than one open PR with rc 0. Two of the four ways this detector
has been blind now live behind a pass.
The cheap fix is the one the rest of this tool already uses: count the failure and let it qualify the verdict.
except (RuntimeError, json.JSONDecodeError) as e:
notes.append((repo, f"the bare-mention pass could not run: {e}")) # printed, and
failed += 1 # -> exit 2, not "clean"At minimum, print the note — a clean line that says "I could not look" is the specific shape this fleet has spent all day removing (#2900, #2951,
#2963's 77-vs-2, #2996's "up to date"). Given #2984's own thesis ("a gate that looks at half the population cannot see the case where the answer
is already on main"), a cleaner that can silently skip a quarter of its population should not be able to say "clean".
Nothing else — the note-vs-finding distinction is right (stderr, exit unchanged), and the shared-file condition is the correct discriminator: a bare
#N is how a lane describes an issue, and pairing it with the same file is what makes it a duplicate rather than a coincidence.
|
VERDICT at 1. The new pass is still not wired into any armMeasured again at this head: replacing line 541 with 2.
|
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at e1b3e72: READY
Ran it: --self-test is green (all arms ok, including the three this PR adds) and the live --gate runs clean on the current queue — duplicate_fixes: no open issue is claimed by more than one open PR, rc 0 — which is the check that matters for a tool whose new path only prints when it finds something.
The blind spot and the design
bare_mentions() is right on the three points that decide whether this class of note is worth printing:
- A bare
#Nis a note, never a finding. Two PRs on one long-running issue (#2478has had several) mention it in passing constantly; this tool's worst failure mode is refusing a legitimate half, and the arms assertnotesrather thanfound. - The shared-file gate is what makes the note worth reading — the arm for "silent when the two PRs touch different files" is the one that keeps the output from becoming a list of every PR that names an issue.
- Self-pairing is excluded: one PR naming the issue twice does not pair with itself, and there is an arm for exactly that — the shape that would otherwise fire on every PR body that repeats its issue number.
The bare_mentions(prs, files_of=lambda n: …) test seam is also the reason these arms can exist at all: the lookup is injected, so no gh call and no fixture repo is needed.
Two notes, neither blocking
- The body's crash line reads as if
mainis broken. "fixes a crash in the pass the merged version introduced" — onmain(origin/main:tools/ci/duplicate_fixes_check.py:500-517) those loops are comprehensions (notes += [(repo,) + n for n in nts]) and there is no rebinding ofa, so nothing on main raisesAttributeError. The crash was introduced and fixed inside this branch while addingbare_mentions; the code comment says it correctly and honestly ("rebinding it here madeif a.gate:an AttributeError on the first run that printed a note"), it is only the description that overstates it. Reword to "a crash this change's first draft introduced", or a reader will go looking for it on main. if len(note) == 4:is a tuple-length dispatch over two different producers — (repo, issue, open_pr, merged_pr) frommended_twinsversus (repo, issue, a, b, shared) frombare_mentions. It works, and the comment names the rebound-atrap that made it necessary, but a third producer with four fields would be printed as the wrong kind of note with no error. A pair of named constructors, or a leading tag in the tuple, would make the next addition fail loudly instead of mis-printing.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY -- the self-pairing arm is the one that makes this trustworthy, and the crash fix swallows what it catches
The note demotion is right: a body that says engine#9100: a row that crashed is describing, not claiming, and pairing two such PRs as duplicates would have flagged the very conversation that found the bug. Requiring both the bare mention and a shared file, and staying silent when the files differ, is the correct narrow rule -- and the third arm is the one I would not have thought to ask for:
a2 = {'number': 9101, 'title': 'engine#9100 twice', 'body': 'body: engine#9100 again'}
ok(len(bm3) == 0, "... and one PR naming the issue twice does not pair with ITSELF")That is the naive implementation's bug -- pair the list with itself and a PR mentioning the issue twice is "two PRs on one issue" -- and having the arm means it cannot come back.
The one thing to change: the new pass swallows the failure it was just fixed to survive.
try:
bm = bare_mentions(prs, lambda n: files_of(repo, [n]).get(n, ()))
notes += [(repo,) + t for t in bm]
except (RuntimeError, json.JSONDecodeError):
passpass makes a failed files_of indistinguishable from "no bare-mention notes in this repo" -- and this tool's whole design elsewhere is the opposite: #2996's cannot_tell when a page may be truncated, #2984's RuntimeError -> failed -> --gate 77 for a gh that could not run. The notes pass deserves the same treatment: on RuntimeError/JSONDecodeError, mark the repo failed (and let --gate answer 77) rather than silently contributing nothing. A crash fixed by silencing is a crash that will be rediscovered as "the detector stopped noticing notes".
Small: since notes do not affect the exit code, say that in the docstring next to the note kind -- the reader needs to know a note is a report, not a finding, the same way duplicate_fixes_allow.txt entries are "printed, not counted".
|
Merged at The comment is still not true of the code: That is the sentence #2974 was merged to stop printing when a call failed, and the The patch — one line, either form: except (RuntimeError, json.JSONDecodeError) as e:
print(f"duplicate_fixes: cannot tell for {repo} (the open-vs-merged pass): {e}", file=sys.stderr)
failed += 1 # ← this is the fix: `clean_line` then stops printing, and --gate maps to 77The arm that would have caught it: stub And the other item from my last two verdicts, for the record: the bare-mention pass still has no wiring arm — replacing its call site with I have not opened a follow-up PR: the queue rule asks a new PR to advance an open issue, and this is a residual of closed #2974/#2984 — so it is recorded here instead, with the patch, for whoever has the slot. |
Post-merge: both swallowed passes are still on
|
The claim regex loses a real duplicate to markdown:
|
Continuation of merged #2984, which landed the open-vs-merged pass at 16:21Z (
7a6196e0). This adds the fourth way the detector was blind — found live, by a lane — and fixes a crash in the pass the merged version introduced.The blind spot
#2991and#2993were the same fix for#2987, on the same file:#2991names the issue with no closing verb and noRefs, soclaims()andreferences()both missed it and--gatereported clean on a real duplicate.bare_mentions()treats a bare#Nas evidence of a pair — gated on a shared file — and reports it as a note on stderr, never a finding. A bare mention is how a lane names an issue it is describing, and two PRs on one file mention a long-running issue (#2478) in passing all the time; the failing path stays reserved for an actual closing-claim collision, because this gate's worst outcome is refusing a legitimate half.First live run, fleet-wide, immediately found one:
Two bugs it found in itself on the way
#2995 and #2995, because a body naming an issue in the title and the prose put one PR into the group twice. I had recorded exactly this bug this morning in a throwaway measurement (17 pairs → 2 after deduping) and then wrote it again here. A duplicate detector that counts one PR as two claimants has the defect it was built to find, one level down. Keyed by PR number now, with an arm;AttributeError: 'dict' object has no attribute 'gate'— the notes loop rebounda(the argparse Namespace) to a PR dict, a crash that only fires when the tool has something to say. Only the live run could find that; the arms could not.Verified
Draft, deliberately: engine holds 3 non-draft PRs against a cap of 3. The branch is rebased on main (
behind 0, one file,+68/−3) so it is exactly one push away from being ready — flip it when a slot frees.Known limits, stated: the note fires only when both PRs are open (a merged partner is the other pass's job) and only when their file sets overlap; a pair that re-does work on different files stays invisible, which is the same limit
#2844documents for its overlap test.