Skip to content

docs: issue classification and priority rules for the issue triage - #3440

Merged
ccoltx merged 1 commit into
mainfrom
polyglot/issue-triage-rules
Nov 26, 2026
Merged

ccoltx merged 1 commit into
mainfrom
polyglot/issue-triage-rules

Conversation

@polyglotAI-bot

@polyglotAI-bot polyglotAI-bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Issue triage of this repository moves to the shared triage that clickhouse-go, clickhouse-js, clickhouse-cs, clickhouse-cpp, clickhouse-odbc, ch-go and adbc_clickhouse use. That triage reads two rule files from the repository. This PR adds them, on request of the Language Clients team (no issue).

  • .claude/skills/issue-classification/SKILL.md: the shared text of the other repositories, unchanged, and a section "This repository": the area comes from the observed effect, not from the module of docs/source-map.md; boundaries for JDBC metadata, the SQL parser and parameters; the native code (NativeFormatReader, and the compressed blocks of compress=1 / decompress=1).
  • .claude/skills/issue-priority/SKILL.md: the structure of the clickhouse-go file, with java content.
  • AGENTS.md: a section "Issue triage" that points to both files, and the rule that a vulnerability that is not public yet goes into a private security report.
  • docs/source-map.md: ClickHouseDriver and ClickHouseDataSource are proxies that run jdbc-v2 by default (ClickHouseDriver.isV2). The map listed them as v1 classes, so a report about the artifact com.clickhouse:clickhouse-jdbc would get the label legacy.

Legacy rule (team decision; please review the wording). An issue that only the v1 stack has gets Low. It gets Urgent when it is critical for customers: the severity is "Wrong data or security" or "Broken, no workaround", and the issue links a Linear customer request, or a maintainer or ClickHouse employee says that customers are affected. The reach tiers and the modifiers do not apply. Two consequences to confirm:

  • A v1 vulnerability with a shown path from untrusted input, but with no customer evidence, gets Low.
  • The code that runs decides, not the label: DriverV1 and the other v1 classes run only with clickhouse.jdbc.v1=true or clickhouse.jdbc.v2=false. r2dbc is not legacy unless a maintainer says so.

Reach tiers (from the code; please correct the split where usage differs):

  • Core: the default paths of client-v2 and jdbc-v2. Defaults put some paths here that look optional: compressed responses (compress is true, so CompressedBlockInputStream reads each response), RowBinaryWithNamesAndTypes (format), retries, the JavaCC parser and JDBC escape processing (each statement), and ResultSetMetaData column count, names, labels and types (frameworks such as Spring and MyBatis call them for each query).
  • Common: compressed requests and HTTP compression (off by default), POJO serde, sessions and roles, server-side parameters, the other JDBC metadata, more than one endpoint, JSON and Dynamic (JSON values are read as Dynamic), IPv4/IPv6, 128/256-bit integers, Nested.
  • Narrow: Variant and the Geo types, QBit, Time/Time64, BFloat16, the Native and JSONEachRow readers, the RowBinary writer of jdbc-v2 (beta), the ANTLR4 parsers, token and certificate authentication, proxy, OpenTelemetry, Micrometer, r2dbc.
  • Satellite: examples, benchmarks, tests, docs, build tools, agent files.

Modifiers: security with a shown path from untrusted input (candidates: PreparedStatementImpl.encodeObject, SQLUtils, the metadata SQL), ingestion, regression in the latest release (vX.Y.Z; a patch release of an older line such as v0.9.9 is not the latest), customer request in Linear. The clickhouse-go panic modifier has no java form. In its place, an unchecked exception from driver or client code in place of SQLException or a ClickHouseException uses the severity "Broken, no workaround", unless the caller has a workaround other than catching it.

Checklist

No item applies: no change to a client, no tests, no CHANGELOG entry.

🤖 Generated with Claude Code


Note

Low Risk
Documentation and agent guidance only; no runtime, API, or dependency changes.

Overview
Adds documented issue triage so this repo uses the same automated classification/priority flow as other ClickHouse language clients, without changing client code.

New agent skills: .claude/skills/issue-classification/SKILL.md (shared impact/area/native taxonomy plus a Java-specific “This repository” section: modules, JDBC metadata vs types, SQL parser/parameters, and what counts as native format/protocol code). .claude/skills/issue-priority/SKILL.md defines Priority for clickhouse-java: when to skip priority, handling non-public vulnerabilities, legacy (v1-only) issues defaulting to Low unless customer-critical, reach tiers (Core/Common/Narrow/Satellite) mapped to concrete APIs, severity matrix, modifiers (untrusted-input security, ingestion data loss, latest-release regression, Linear customer links), and confidence/reason format.

Wiring: AGENTS.md gains an Issue triage section pointing at both skills and requiring private GitHub security reports for unconfirmed public vulnerabilities.

docs/source-map.md fixes so triage does not mis-label the default JDBC artifact: ClickHouseDriver / ClickHouseDataSource are jdbc-v2 proxies by default; v1 is DriverV1 / DataSourceV1 and real ClickHouse* JDBC types, with matching stack-trace heuristics.

Reviewed by Cursor Bugbot for commit 921b33c. Bugbot is set up for automated code reviews on this repo. Configure here.

Add the shared issue-classification skill with a section for this
repository, and the issue-priority skill: the rule for legacy (v1)
issues, the reach tiers of client-v2 and jdbc-v2, the severity rows,
the modifiers, and the confidence. AGENTS.md points to both files.
docs/source-map.md: ClickHouseDriver and ClickHouseDataSource are
proxies that run jdbc-v2 by default, not v1 classes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@polyglotAI-bot
polyglotAI-bot requested review from a team and mzitnik as code owners November 26, 2026 13:58

@security-ai-gate-reviewer security-ai-gate-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved by the AI review gate on 921b33c. Details in the approver's comment on this pull request.

@security-ai-gate-reviewer

Copy link
Copy Markdown

AI review gate — auto-approved

921b33caeb1f is approved by security-ai-gate-reviewer[bot], an automated identity, not a human. The approval stands on the required AI review: Cursor Bugbot concluded green on this commit and the AI review gate is SUCCESS (its own comment has the verdict), and the change touches no path that requires a human reviewer. It is bound to this commit: a new push dismisses it and the approver re-evaluates.

History (latest 5 heads, newest first)

  • 921b33caeb1f approved — green: Cursor Bugbot

@ccoltx
ccoltx merged commit 7590550 into main Nov 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants