Check tasks for leakage
check_task_leakageCheck whether coding tasks from SWE-bench-style benchmarks leaked their fix. Pass one instance ID for the full evidence, or up to 50 IDs in the queries field, as a JSON array of strings or one string separated by commas, spaces or new lines (a results file's task list), to get back which are flagged. Each task returns its tier, state and agreement, countedInHeadline, a one-clause why, a quoted sentence (disputedQuote when the checks disagreed), the upstream fix commit and its date, and the public task page. flaggedCount and countedInHeadline use the benchmark headline's rule: Tier A where both checks agreed, plus Tier C. Tier B (pointerCount) and Tier A settled by a third check (settledCount) keep state flag but are counted apart, as on the site. tier: A (the issue or comments state the fix); B (the text points to the exact file, function or line to change, without giving the change); C (lines of the gold patch appear in the text); none (no quoted evidence found); pending (not checked yet). state: flag (Tier A, B or C); clear (no quoted evidence and no link to the fix); disputed (the checks disagreed and at least one found something; not a flag, never read as clear); link (no quoted evidence, but the issue text or discussion links the pull request that is the fix); pending (not checked yet). agreement: agreed (both checks agreed); split (the two checks disagreed; the lower reading is shown); tiebreak (a third check settled a disagreement); n/a (Tier C, a string match, needs no second check). Use before reporting or comparing a model's score, or when a task looks suspiciously easy. Takes SWE-bench instance IDs, GitHub issue or PR URLs, or repo#number. Covers SWE-bench Verified and Lite.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_task_leakage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | One-task form of queries. Give queries or query, not both. | |
| queries | No | Several tasks at once: 1 to 50 identifiers separated by commas, spaces or new lines, or a JSON array of strings (sent as an array, or JSON-encoded in this string). Each is a SWE-bench instance ID (django__django-11099), a GitHub issue or PR URL (https://github.com/django/django/pull/11099), or repo#number (django/django#11099). | |
| benchmark | No | Optional: restrict the match to one benchmark. Display names such as 'SWE-bench Verified' are accepted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | No | ||
| note | No | ||
| found | No | ||
| tasks | No | ||
| caveat | Yes | ||
| matches | No | ||
| notFound | No | ||
| linkCount | No | ||
| flaggedCount | No | ||
| pointerCount | No | ||
| settledCount | No | ||
| totalMatches | No | ||
| disputedCount | No | ||
| asOfByBenchmark | No |