计算机使用智能体分类English
R02.01.01.01 · 任务小类

仓库问题修复

Issue resolution in a repository

Reproduce and fix a reported bug so hidden tests pass, in one or several languages.

20 条本项目编写的提案 · 分类 v1.1 · 新增基准运行 0 次。下方验证方式与部分得分规则是设计,不是执行结果。

典型应用
git · pytest · Maven · Go
小类 GUI 需求标签
CL · CLI 足够

数字员工关联

本项目的小类归属,不代表员工能力实证或已导入基准覆盖。验收与价值指标均为建议,未测量 ROI。

关联岗位

  • IT 与软件交付 · 分别对应服务工单、恢复的配置、身份记录、仓库修复、通过的 CI 和发布包。

对照全部数字员工工作流设计

任务提案 · 20

展开查看完整原文与建议检查方式;两种界面均保留提案英文原文。

R02.01.01.01-T01 Fix an HTTP client that leaks the Authorization header on cross-host redirects

原始指令

Repo `/work/httpkit` (Python, pinned commit). Issue #212: when a request with an Authorization header is redirected to a different host, the header is forwarded. Reproduce it with the local redirect test server in `tests/servers/`, fix the client so credentials are stripped on cross-origin redirects (same-host redirects keep them), and keep the public API unchanged.

平台
lin · Linux
应用
git · pytest
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
2 / 5

建议验证方式

Hidden FAIL_TO_PASS tests (6) for cross-host, scheme downgrade and same-host cases pass; PASS_TO_PASS suite (412 tests) stays green; diff limited to src/ (tests dir changes ignored).

建议部分得分

60% fail-to-pass tests (scaled); 30% pass-to-pass green; 10% public API unchanged (signature check)

R02.01.01.01-T02 Resolve a Django ORM crash combining only() with select_related()

原始指令

In a Django checkout at a pinned commit, the issue text in `ISSUE.md` reports a crash when `.only()` names a field on a related model reached through `select_related()` with a reverse one-to-one. Write the fix in `django/db/models/`, and add a regression test in `tests/queries/`.

平台
lin · Linux
应用
git · Django test runner
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
3 / 5

建议验证方式

Hidden FAIL_TO_PASS tests (3) in tests/queries pass; full tests/queries and tests/select_related suites stay green; agent's own regression test fails on the base commit and passes on the patch.

建议部分得分

60% fail-to-pass; 25% pass-to-pass; 15% agent test discriminates base vs patch

R02.01.01.01-T03 Fix a DST off-by-one in a TypeScript date library

原始指令

Repo `/work/tz-dates` (TypeScript, pnpm). Issue: `addDays(date, 1)` returns 23:00 of the same day when crossing the spring-forward DST transition in `Europe/Lisbon`. Fix the implementation for all IANA zones without changing behavior for UTC inputs. Run tests with `TZ` set to several zones.

平台
lin · Linux mac · macOS
应用
pnpm · vitest
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
3 / 5

建议验证方式

Hidden tests run under TZ=Europe/Lisbon, America/Sao_Paulo, Australia/Lord_Howe and UTC: 14 DST-boundary cases pass; existing 600-test suite green; tsc --noEmit clean.

建议部分得分

50% DST cases (scaled); 30% existing suite; 20% type check clean

R02.01.01.01-T04 Eliminate a deadlock in a Go worker pool under the race detector

原始指令

Repo `/work/jobq` (Go 1.22). Issue: `Pool.Shutdown()` hangs about 1 in 50 runs when jobs are still being submitted, and `go test -race` reports a data race in `pool.go`. Fix both without removing the graceful-drain semantics described in `docs/shutdown.md`.

平台
lin · Linux
应用
go · git
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
4 / 5

建议验证方式

Hidden stress test runs 500 iterations with -race and -timeout 120s: zero hangs, zero race reports; drain-semantics tests (jobs accepted before Shutdown complete) pass; go vet clean.

建议部分得分

40% no deadlock in stress run; 30% race-free; 30% drain semantics preserved

R02.01.01.01-T05 Patch an integer overflow in a Rust chunked-format parser

原始指令

Crate `/work/chunkread` (Rust). Issue #77 includes a 12-byte file that makes `Reader::next_chunk` panic with 'attempt to add with overflow' in debug and read out of bounds logic in release. Return a proper `Error::Malformed` instead, for this and similar length fields.

平台
lin · Linux mac · macOS
应用
cargo · git
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
3 / 5

建议验证方式

Hidden tests: the reproducer and 8 other crafted headers return Error::Malformed; cargo test green in debug and release; a 5-minute cargo-fuzz run on the provided target finds no panic.

建议部分得分

40% reproducer fixed; 30% similar fields hardened; 30% fuzz run clean

R02.01.01.01-T06 Fix Optional deserialization in a Java JSON mapper module

原始指令

Maven project `/work/jsonmap` (Java 17). Issue: fields declared as `Optional<String>` deserialize to `null` instead of `Optional.empty()` when the JSON key is absent, but to `Optional.empty()` when the value is `null`; both should be `Optional.empty()`. Fix it in the `jdk8-types` module.

平台
lin · Linux win · Windows
应用
Maven · JUnit
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
3 / 5

建议验证方式

`mvn -pl jdk8-types test` with hidden tests: absent, null and present cases for Optional, OptionalInt and nested Optional fields pass; full reactor build `mvn verify` green.

建议部分得分

60% hidden cases; 40% reactor verify green

R02.01.01.01-T07 Fix a heap overflow in a C CSV parser found by AddressSanitizer

原始指令

Repo `/work/libcsvx` (C, CMake). A user attached `crash.csv` that triggers an ASan heap-buffer-overflow in `parse_field()` when a quoted field ends at EOF without a closing quote. Fix the bug, keep the documented lenient-quote behavior, and make the ASan build pass all tests.

平台
lin · Linux
应用
CMake · gcc · ASan
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
4 / 5

建议验证方式

ASan+UBSan build: hidden tests (crash.csv plus 10 edge cases) pass with no sanitizer reports; lenient-quote output for 5 documented examples matches exactly; 10-minute libFuzzer run clean.

建议部分得分

35% crash fixed; 35% semantics preserved; 30% fuzz clean

R02.01.01.01-T08 Resolve trailing-slash route mismatches in a PHP micro-framework

原始指令

Repo `/work/slimroute` (PHP 8.3, Composer). Issue: routes defined as `/users/{id}` do not match `/users/42/`, but the docs promise optional trailing slashes unless `strict` is set. Fix the matcher, respecting the `strict` flag and not breaking routes whose last segment is optional.

平台
lin · Linux
应用
Composer · PHPUnit
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
3 / 5

建议验证方式

Hidden PHPUnit cases (12) for strict/non-strict, optional segments and root route pass; existing suite green; PHPStan level 6 no new errors.

建议部分得分

60% hidden cases; 30% suite; 10% static analysis

R02.01.01.01-T09 Fix a time-zone parsing bug in a Ruby date helper gem

原始指令

Gem `/work/timeparse` (Ruby 3.3). Issue: `TimeParse.parse('2026-03-29 02:30', zone: 'Europe/Berlin')` raises instead of resolving the nonexistent local time per the `:nonexistent` option. Implement the documented options `:forward`, `:backward`, `:raise` and fix the default.

平台
lin · Linux mac · macOS
应用
Bundler · RSpec
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
3 / 5

建议验证方式

Hidden RSpec examples for the three options across 4 zones and both DST transitions pass; existing specs green; rubocop no new offenses.

建议部分得分

60% hidden examples; 30% existing specs; 10% lint

R02.01.01.01-T10 Fix culture-dependent decimal output in a .NET serializer on Windows

原始指令

Solution `C:\work\LedgerJson` (.NET 8). Issue: on Windows with the `de-DE` culture, decimals serialize as `12,5` instead of `12.5`. Reproduce on the VM by setting the thread culture in a test, fix the serializer to always use invariant formatting, and keep custom format attributes working.

平台
win · Windows
应用
dotnet · xUnit
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
3 / 5

建议验证方式

`dotnet test` with hidden tests under de-DE, fr-FR, ar-SA and invariant cultures: round-trip and exact string output pass; [JsonFormat] attribute tests pass; build has no new warnings.

建议部分得分

60% culture cases; 25% attribute cases; 15% warnings

R02.01.01.01-T11 Fix a pagination bug that spans a Python API and a TypeScript client

原始指令

Monorepo `/work/catalog` has `api/` (FastAPI) and `web/` (TypeScript client). Issue: the last page of `/items` repeats the first item of the previous page when `sort=price`. The root cause is a non-unique sort key on the server plus a client cursor bug. Fix both sides so iterating all pages yields each item exactly once.

平台
lin · Linux
应用
pytest · vitest · uvicorn
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
4 / 5

建议验证方式

Hidden end-to-end test seeds 1,037 items with many price ties, pages through the client with page sizes 7, 50, 100: every id exactly once and in order; api and web unit suites green.

建议部分得分

40% server stable ordering; 30% client cursor; 30% e2e exactly-once

R02.01.01.01-T12 Fix a Kotlin coroutine cancellation bug in an Android library

原始指令

Gradle project `/work/netcache` (Kotlin, Android library + JVM tests). Issue: cancelling a `fetch()` coroutine leaves the disk-cache entry locked, so the next fetch for the same key times out. Fix it so cancellation releases the lock and leaves no partial cache file.

平台
lin · Linux mac · macOS
应用
Gradle · Kotlin · JUnit
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
4 / 5

建议验证方式

`./gradlew test` with hidden kotlinx-coroutines-test cases: cancel at 5 points then refetch succeeds within 100 ms virtual time; no *.tmp files left; existing tests green; detekt clean.

建议部分得分

50% lock released; 30% no partial files; 20% suites/lint

R02.01.01.01-T13 Fix a locale-dependent number formatting bug in a Swift package

原始指令

Swift package `/work/UnitsKit` on macOS. Issue: `Measurement.formattedShort()` drops the unit for `km/h` when the locale is `pt_PT`. Reproduce with `swift test`, fix the formatting path, and add tests for at least 3 locales.

平台
mac · macOS
应用
swift · Xcode toolchain
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
3 / 5

建议验证方式

Hidden XCTest cases across pt_PT, de_DE, ja_JP, en_US for 6 unit types pass; existing tests green; agent-added tests present and passing.

建议部分得分

60% hidden cases; 25% existing suite; 15% own tests

R02.01.01.01-T14 Reproduce a production crash from a stack trace and env-specific config

原始指令

Service `/work/invoicer` (Python). The issue contains only a production stack trace (`trace.txt`) and says it happens 'only in EU deployments'. Find the environment setting that triggers it (see `deploy/`), write a failing test that reproduces it, then fix the code.

平台
lin · Linux
应用
pytest · git
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
hidden · 隐藏 / 过期状态
提案难度
4 / 5

建议验证方式

Agent's reproduction test fails on base and passes on patch; hidden tests for the EU config (VAT rounding mode + locale) pass; full suite green.

建议部分得分

30% trigger identified (test fails on base); 50% hidden tests pass; 20% suite green

R02.01.01.01-T15 Find and fix the root cause of a flaky test without touching the test

原始指令

Repo `/work/scheduler` (Python). `test_next_run_order` fails about 1 in 20 runs. The issue asks for a fix in the library, not the test: the flake comes from nondeterminism in the code under test. Find it and make the behavior deterministic.

平台
lin · Linux
应用
pytest · git
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
4 / 5

建议验证方式

Test files unchanged (hash); the flaky test passes 500/500 under pytest-randomly with varied PYTHONHASHSEED; hidden determinism tests pass; suite green.

建议部分得分

60% 500/500 passes; 25% hidden determinism tests; 15% tests untouched

R02.01.01.01-T16 Bisect a regression between two releases and fix it

原始指令

Repo `/work/mdlite` (JavaScript). Issue: nested ordered lists render flat since v2.4.0; v2.3.0 was fine. Use `git bisect` to find the offending commit, write its hash to `BISECT.txt`, then fix the regression on `main` without reverting unrelated changes from that commit.

平台
lin · Linux mac · macOS
应用
git · npm · jest
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
3 / 5

建议验证方式

BISECT.txt equals the seeded first-bad commit; hidden nested-list snapshot tests pass; the other behavior introduced by that commit (table alignment) still passes its tests.

建议部分得分

30% correct commit; 50% regression fixed; 20% unrelated changes kept

R02.01.01.01-T17 Fix a quadratic slowdown that makes a hidden test time out

原始指令

Repo `/work/difftext` (Python). Issue: diffing two 50k-line files takes minutes; users say v1.2 was fast. Find the accidental O(n^2) behavior and restore near-linear performance without changing diff output.

平台
lin · Linux
应用
pytest · cProfile
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
4 / 5

建议验证方式

Hidden perf test: 50k-line diff under 3 s on the grader box (baseline ~180 s); output byte-identical to reference on 40 corpus pairs; suite green.

建议部分得分

50% performance threshold; 40% identical outputs; 10% suite

R02.01.01.01-T18 Fix a shared-utility bug that breaks three packages in a monorepo

原始指令

pnpm/Turborepo monorepo `/work/shop` with packages `pricing`, `cart`, `checkout` and shared `utils`. Issue: totals are off by one cent for some currencies. The bug is in `utils/money.ts` rounding, but `cart` contains a workaround that double-corrects. Fix the root cause and remove the workaround so all packages agree.

平台
lin · Linux mac · macOS
应用
pnpm · turbo · vitest
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
5 / 5

建议验证方式

Hidden cross-package tests over 30 currencies (incl. JPY, BHD 3-decimals) pass; workaround removed (AST check for the compensating call); all package suites and `turbo build` green.

建议部分得分

40% root-cause fix; 30% workaround removed; 30% all suites green

R02.01.01.01-T19 Resolve an issue reported in Chinese with a screenshot of output

原始指令

Repo `/work/csvkit-lite` (Python). Issue #301 is written in Chinese with a pasted terminal screenshot (`issue_301.png`): converting a GBK-encoded CSV with `--encoding auto` mangles column headers. Reproduce with the attached sample, fix encoding detection, and reply in `REPLY.md` (Chinese or English) summarising the fix.

平台
lin · Linux
应用
pytest · git
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令 vis · 视觉判断
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
2 / 5

建议验证方式

Hidden tests with GBK, Big5, Shift-JIS and UTF-8-BOM samples pass; suite green; REPLY.md non-empty and mentions the detection change (keyword check).

建议部分得分

60% encoding tests; 25% suite; 15% reply

R02.01.01.01-T20 Fix a cancellation race in an asyncio connection pool

原始指令

Library `/work/aiopool` (Python 3.12). Issue: under load, cancelling tasks waiting in `Pool.acquire()` sometimes leaks a connection (pool size drifts down until all requests hang). Fix the race in acquire/release so cancellation at any await point never leaks or double-releases a connection.

平台
lin · Linux
应用
pytest · asyncio
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
5 / 5

建议验证方式

Hidden stress harness: 20k acquire/cancel cycles with random cancellation points over 50 seeds; pool size invariant holds and no double-release assertions; existing suite green; mypy --strict clean.

建议部分得分

50% no leaks across seeds; 30% no double release; 20% suite + typing

已有研究映射

以下沿用研究目录中的基准与小类映射,不是逐题标注、执行记录或产品背书。

同工作流族的小类