open-code-review icon indicating copy to clipboard operation
open-code-review copied to clipboard

docs: use the "subtask" abstraction instead of file/file-group in user-facing docs

Open lizhengfeng101 opened this issue 2 months ago • 1 comments

Description

The docs site still describes parallelism and per-unit limits in terms of the review implementation (a "file" or a "file group") instead of the user-facing concept. A subtask is the real unit: it reviews one file or a bundle of related files, and users should not need to know which. The internal grouping is an implementation detail we should not surface in usage-facing docs.

The leakage is also inconsistent across locales, which proves it is accidental rather than intentional. For the exact flag the reporter flagged, --concurrency:

Locale Current wording Meaning exposed
en Maximum number of file groups reviewed in parallel. file group
zh 并行评审的最大文件数。 file
ja 並行してレビューするファイルの最大数。 file
ru Максимальное число файлов, проверяемых параллельно. file
ko 병렬로 리뷰할 파일 그룹의 최대 개수. file group

Three locales say "files", two say "file groups" — neither is correct, and they contradict each other.

The abstraction we want already exists in the codebase (dispatchSubtasks, the subtask.execute.group.* telemetry span, and the --timeout help string which already reads "concurrent task timeout"). This issue only asks the docs to catch up.

Expected: every user-facing description of these flags and behaviors talks about a subtask (子任务 / サブタスク / подзадача / 서브태스크), defined once as "one file or a group of related files", with the same wording in all five locales.

Scope

User-facing usage surface only. Out of scope: architecture.md and telemetry.md — those deliberately document the internal grouping mechanism and should keep the "file group" terminology.

Files (all five locales: en, zh, ja, ko, ru):

  • pages/src/content/docs/<locale>/cli-reference.md — flag table rows for --concurrency, --timeout, --max-tools, --max-tokens, and --no-filter. Replace the file/file-group unit with "subtask". Suggested canonical wording:
    • --concurrency → "Maximum number of subtasks reviewed in parallel."
    • --timeout → "Per-subtask deadline. …"
    • --max-tools → "Max tool-call rounds per subtask. …"
    • --max-tokens → "Prompt (input) token ceiling per subtask; …"
    • --no-filter → "… skip the per-subtask REVIEW_FILTER_TASK LLM post-processing call."
    • Add a one-line note where the term first appears: a subtask reviews a single file or a bundle of related files.
  • pages/src/content/docs/<locale>/integrations/ci.md — the "8 parallel sub-agents, one per file group" prose (both the inline tuning note and the "Custom rules and concurrency" section). Reword to "one per subtask".
  • pages/src/content/docs/<locale>/configuration.md — the effort description ("each file group gets N review rounds") and the max_tokens unit description ("a file group for ocr review, a file for ocr scan"). Reword the user-facing framing to "subtask"; a parenthetical may keep the underlying detail if helpful, but the primary unit is the subtask.

Acceptance Criteria

  • [ ] For the five flags above, all five locales use the "subtask" abstraction with equivalent wording (no more file vs file group disagreement across locales).
  • [ ] ci.md and configuration.md user-facing prose no longer presents "file"/"file group" as the unit of parallelism or per-unit limits.
  • [ ] The term "subtask" is defined once (one file or a group of related files) where a reader first meets it.
  • [ ] architecture.md and telemetry.md are left unchanged.
  • [ ] make check passes (English-only check included).

Context

Reported by a maintainer noticing that the docs site still teaches file-granularity review, e.g. --concurrency documented as "并行评审的最大文件数" when the true unit is a subtask (which may bundle several files).

Related, same-source leakage (worth fixing in the same PR for consistency): the CLI --help strings in cmd/opencodereview/shared_flags.go — "max concurrent file-group reviews" (review) and "max concurrent file scans" (scan) — expose the same implementation detail. Note --timeout there already reads "concurrent task timeout in minutes", so --concurrency should be unified to the same "subtask" phrasing. Changing these Go strings touches the CLI, so a contributor should keep make test / make coverage green.

Disclosure: this issue was drafted with AI assistance (Claude Code).

lizhengfeng101 avatar Sep 15 '26 12:09 lizhengfeng101

Hi @lizhengfeng101, I would like to work on this. Please assign it to me if it is still available.

jimpablo avatar Sep 15 '26 12:09 jimpablo