agentleFS
ClickHouseClickHouse/clickhouse-cs/.claude/skills/issue-classification/SKILL.md

issue-classification

Skill102 starsChanged 2 months agoMITView on GitHub

The classes of an issue in this ClickHouse client repository: the impacts (Security, Data integrity, Stability, Performance) and the area (Connectivity, Data types & formats, Queries, Configuration, API & diagnostics, Environment, Docs & project, Other), and the native classes (format, protocol) of an issue that needs a change in the client's code for the Native format or the native TCP protocol. Use this skill when the task is to "classify an issue" or "give the classes of an issue", and when you triage, file, or prioritize an issue: the issue-priority skill uses the impacts.

2 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every ClickHouse client repository has a copy of this file, so that any agent can classify an issue in the repository.

    line 30
  2. Distinctive:

    Use only what the issue, a reproduction, or code inspection of the current code

    line 38
  3. Distinctive:

    shows: Do not give a class for an effect that is only possible.

    line 39
  4. Distinctive:

    Data integrity needs "no error": When the client rejects a value with an error, the issue has no Data integrity impact.

    line 61
  5. Distinctive:

    Never put a confirmed vulnerability into a public comment, issue, pull request, or Classification line.

    line 100
  6. Distinctive:

    Configuration or the area that an option controls: If the client reads an option correctly but the behavior that the option controls is …

    line 126
  7. Distinctive:

    Environment or the area of the failure: Use Environment when the same call works in general, and fails only with one server version, one …

    line 131
  8. Distinctive:

    API & diagnostics or the area of the failure: When the problem is the quality of an error, use API & diagnostics.

    line 134
  9. Distinctive:

    When the evidence does not show where the cause is, give no native class.

    line 171
  10. Very specific:

    When a native class applies, add it at the end of the line: · native: format, · native: protocol, or · native: format, protocol.

    line 211
  11. Very specific:

    Data types & formats: always the ClickHouse types or the data format, for example (Enum8, Enum16), (Map), (DateTime64), (RowBinary), …

    line 220
  12. Very specific:

    Native code: Only the native TCP client (ClickHouse.Driver.Tcp/) has native code.

    line 234

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Issue classification

The classes name what kind of problem an issue is about, with the same words in every ClickHouse client repo. They are an input to the priority, and they make issue counts comparable across clients.

An issue has:

  • Impacts — what goes wrong: none, one, or more of the four impact classes.
  • One area — the part of the client whose behavior is wrong or missing.
  • Native classes — none, one, or both of format and protocol: the issue needs a change in the client's code for the Native format or for the native TCP protocol.

The classes do not replace the kind of request (bug, feature, question) or the reach tier of a repo's priority rules.

Every ClickHouse client repository has a copy of this file, so that any agent can classify an issue in the repository. Keep the copies the same where you can, so that the classes mean the same in every client. Put a change that applies only to this repository in the section "This repository" at the end.

Rules

  1. Give each impact that applies, one area, and each native class that applies.
  2. Use only what the issue, a reproduction, or code inspection of the current code shows. Do not give a class for an effect that is only possible. Classes can raise the priority, so each class needs evidence.
  3. Classify by the observed effect, not by the location of the code. Example: a connection-string defect that makes the client drop rows with no error has the impact Data integrity. The native classes are the exception: they follow the code (section "Native classes").
  4. Data integrity and Stability are for defects only. Security and Performance are also for feature requests: a new authentication method, a request to make an operation faster. The priority rules rate such requests as feature requests.
  5. An issue with no harm has no impact. This is the normal case.

Impact classes

ImpactUse when
SecurityTwo parts. A vulnerability: a defect makes the protection weaker: it exposes credentials or data (also a secret that leaks to a log, an error message, a URL, or another host), lets a value change the meaning of a query (injection), skips or weakens a TLS or identity check, corrupts memory (an out-of-bounds write, a use after free), or lets input that the application takes from its users stop the client; also a vulnerability in a dependency. The boundaries "Hostile server or network" and "Dependencies" below say when these count. Authentication: an authentication method that does not work or is missing, or how the client takes credentials (for example a token provider or a credentials file); a secret that leaks is a vulnerability, not authentication. Say which part applies: the priority rules of a repo rate the two parts differently.
Data integrityData that the caller wrote, or a result that the caller reads, is missing, incomplete, or different from the value given or stored, and the client reports no error. This includes a failed operation that the client reports as a success, a server error that the client ignores, overflow, lost precision, a time zone shift, a wrong decode, a stream that loses synchronization, a duplicate write, and a write to the wrong table.
StabilityThe process stops in a way that the caller cannot handle as a normal error (abort, segmentation fault, unrecovered panic, stack overflow), a call does not return (deadlock, hang), or a resource leaks until none is left (connections, sockets, memory). Also a thread-safety defect.
PerformanceThe result is correct, but the operation is too slow, or uses too much memory or CPU. Also a request to make an operation faster.

Boundaries:

  • Data integrity needs "no error". When the client rejects a value with an error, the issue has no Data integrity impact. When the caller gets an error, but the error is wrong or not clear, the issue has no Data integrity impact either: it has the area API & diagnostics.
  • Security and values that are not quoted. A value or an identifier that the client does not quote or escape gets Security only when the issue shows a path from untrusted input. A string value that leaves its literal because the client does not escape it is such a path. An identifier that the client does not quote, with no such path, is the area Queries with no impact.
  • TLS. A TLS check that the client skips or weakens is Security. A connection with TLS that fails has no impact; its area is Connectivity.
  • Memory. High memory use without a failure is Performance, not Stability.
  • Hostile server or network. A hang, or a crash with no memory corruption, that only a hostile server or network causes is Stability, not Security. Memory corruption is a vulnerability also when only a hostile server or network causes it. A crash while the client reads data from the server (for example an access violation or SIGSEGV) can be memory corruption: rule that out by code inspection before you classify it as Stability.
  • Dependencies. A vulnerability in a dependency is Security (vulnerability) when the client calls the vulnerable code, and also when it is not published yet. A published one (CVE or GHSA) in code that the client does not call has no impact: the issue asks for a dependency update (area Environment). Report one that is not published yet also to the maintainers of that dependency, in private, through their security policy, never in a public issue.
  • An error is not Stability. A normal exception or error value is not a crash. In Go and Rust, a panic that the library does not recover is Stability. In Java, a StackOverflowError, OutOfMemoryError, or VerifyError is Stability.

A vulnerability that is not public yet

A security issue must not stay public with a description of how to reproduce it. An issue is a confirmed vulnerability when a run or code inspection shows one of these:

  • credentials or data are exposed to a party that must not get them (also a secret that leaks);
  • a value changes the meaning of a query (injection);
  • a TLS or identity check is skipped or weakened;
  • memory corruption (see "Hostile server or network" in the boundaries above);
  • a vulnerability in a dependency that is not published yet (see "Dependencies" above);
  • input that the application takes from its users stops the client.

Never put a confirmed vulnerability into a public comment, issue, pull request, or Classification line. Report it in a private GitHub vulnerability report for this repository (Security → Report a vulnerability). The issue-priority skill of this repository says how to handle the public issue and how to rate the vulnerability. When you can neither confirm nor rule out a vulnerability, do not discuss it in public either: ask a maintainer in private, or send a private report that says what is not confirmed.

These are not affected: a vulnerability that is already public (a published CVE or GHSA, for example in a dependency), and the part authentication (a method that does not work or is missing). Classify them as usual.

Area classes

AreaScope
ConnectivityConnect and handshake, a connection with TLS, proxies and redirects, the connection pool, keep-alive, reconnect and failover, retries, timeouts, cancellation, the transport (HTTP, native TCP), compression on the wire.
Data types & formatsParsing of type names, encoding and decoding of values, the mapping to language types and to rows or objects (POJO, serde, struct), data formats (Native, RowBinary, JSON, Parquet, Arrow), support for a new type or format.
QueriesHow the client builds a statement: parameters and placeholders, quoting and escaping, SQL parsing in the client, size limits of the statement and its parameters. How the client runs a statement: batches and streaming inserts, sessions and roles, external data, totals, asynchronous inserts, the queries that the client sends on its own (DESCRIBE, server information), caches of table structure.
ConfigurationReading and passing options: connection strings, DSNs, URLs, and option objects (parsing, validation, defaults); ClickHouse settings for a connection or a query; settings that the client sends on its own.
API & diagnosticsThe shape of the public API (a missing method or overload, a wrong type signature), and conformance to a standard interface that the client implements (JDBC, ODBC, ADO.NET, database/sql, DB-API, SQLAlchemy, R2DBC), including metadata and catalog functions. Errors that are wrong, incomplete, or not clear. Logging, metrics, tracing, progress, the query ID.
EnvironmentA build from sources, support for a compiler, runtime, operating system, or architecture, package managers, released artifacts, installers, dependencies. Also a failure with one ClickHouse server version only, or with one third-party tool only (Power BI, Tableau, Spark, DBeaver).
Docs & projectDocumentation, examples, or the changelog are wrong or missing. Tests, CI, the release process, refactoring.
OtherNo area fits.

Boundaries:

  • Configuration or the area that an option controls. If the client reads an option correctly but the behavior that the option controls is wrong, use the area of that behavior. Example: a keep-alive option that has no effect is Connectivity.
  • Authentication. An authentication issue has the impact Security and the area Connectivity.
  • Environment or the area of the failure. Use Environment when the same call works in general, and fails only with one server version, one platform, or one third-party tool. A failure with all server versions and without the tool has the area of the failure.
  • API & diagnostics or the area of the failure. When the problem is the quality of an error, use API & diagnostics. When the problem is that the operation fails at all, use the area of the operation.

Rules for Other:

  • Other is the last choice. Say why no area fits.
  • Other does not raise the priority.
  • A subject that repeats in Other is a sign that a class is missing: report it.

Native classes

The native classes mark an issue that needs a change in the client's native code: its codec for the ClickHouse Native format, or its implementation of the native TCP protocol. A shared core for this code is planned (ClickHouse/ch-core-rs). The native classes count how much maintenance this code needs in each client.

Native classCode
formatReading and writing data in the Native format, over HTTP (FORMAT Native) and in the Data packets of the native protocol: the block structure (column and row counts, column names, type names), the parsing of the type names of a block, and the bytes of each column type: fixed widths, null maps, offsets, LowCardinality dictionaries and keys, serialization versions and kinds (also sparse columns), Variant and Dynamic discriminators, JSON paths.
protocolThe native TCP protocol: the packets and their fields (Hello and its addendum, Query with the client information, the settings, and the parameters, Data, Exception, Progress, ProfileInfo, ProfileEvents, Totals, Extremes, Log, TableColumns, Ping, Cancel, EndOfStream), the negotiation of the protocol revision and the features that the revision controls, the order of the packets, the framing of compressed blocks (checksum, method, sizes), and external tables in the protocol.

Rules:

  1. Classify by the code, not by the observed effect (an exception to rule 3 of "Rules"). Give a native class when a run, code inspection, or the fix shows that the cause is in that code. A feature request gets a native class when the feature changes that code, for example support for the native protocol, for a new type in the Native format, or for a new packet.
  2. The code around the native code gets no native class: the conversion between a decoded value and a language type (a scan into a struct or an object, a time type of the language), the connection pool, TLS, the socket, timeouts and retries, the public API, and the other formats (RowBinary, JSON, Arrow, Parquet, ODBCDriver2). A failure that occurs only with the native protocol, but that has its cause in this code, gets no native class.
  3. Code that the client uses for the Native format and for another format (for example one parser of type names) gets the class format when the defect also occurs on the Native path.
  4. When the evidence does not show where the cause is, give no native class.
  5. The native classes do not change the impacts, the area, or the priority. A format issue usually has the area Data types & formats. A protocol issue usually has the area Connectivity, Queries, or API & diagnostics. A failure with one server version only has the area Environment.
  6. A client that has no native code gets a native class only for a request to add it.

On GitHub, the label native-format shows the class format, and the label native-protocol shows the class protocol.

IssueClassification
A LowCardinality(String) column is written with wrong dictionary keysimpact: Data integrity · area: Data types & formats (LowCardinality(String)) · native: format
The client cannot read a new serialization version of JSON that one new server version sendsimpact: none · area: Environment (JSON, ClickHouse 26.x) · native: format
The client sends the client version 0.0.0 in the Hello packet, and one server version rejects itimpact: none · area: Environment (client version, ClickHouse 26.10) · native: protocol
The client allocates a new buffer for each compressed blockimpact: Performance · area: Connectivity (compression) · native: protocol
A request to support the native TCP protocolimpact: none · area: Connectivity (native protocol) · native: protocol
A scan of a DateTime64 column into a time type of the language loses the time zoneimpact: Data integrity · area: Data types & formats (DateTime64): the conversion to a language type is not native code
The connection pool leaks connections that use the native protocolimpact: Stability · area: Connectivity (connection pool)

Examples

IssueImpactsArea
A bare Enum(...) type hint is written as Enum8, which corrupts the dataData integrityData types & formats
A flush returns no error when the server rejects the INSERTData integrityQueries
The connection pool leaks connections until none is leftStabilityConnectivity
String parameters are not escapedSecurity (vulnerability)Queries
LowCardinality(Nullable(String)) cannot be read: the client returns an errornoneData types & formats
A server error loses its code when the response arrives in two chunksnoneAPI & diagnostics
A request for Kerberos authenticationSecurity (authentication)Connectivity
Each compressed read fails on one new server versionnoneEnvironment
Parameter binding takes quadratic timePerformanceQueries

How to write the classification

One line, in this form. In a triage comment, the line has the name Classification:

impact: <impacts, separated by a comma, or "none"> · area: <area> (<subject>)

When a native class applies, add it at the end of the line: · native: format, · native: protocol, or · native: format, protocol. When none applies, add nothing.

For Security, add the part in parentheses: Security (vulnerability) or Security (authentication).

The subject names what the issue is about inside the area, in one to four words. Use the names that ClickHouse or the client API uses:

  • Data types & formats: always the ClickHouse types or the data format, for example (Enum8, Enum16), (Map), (DateTime64), (RowBinary), (Parquet). "Data types & formats" alone does not say which type.
  • Other areas: the feature, for example (cancellation), (TLS), (connection pool), (query parameters), (sessions), (mid-stream errors), (logging), (release process).
  • With two areas, give a subject after each one.

Examples: impact: Data integrity · area: Data types & formats (Map), impact: none · area: Configuration (URL parameters), impact: Security (vulnerability), Stability · area: Connectivity (TLS), impact: none · area: Connectivity (ZSTD compression) · native: protocol.

This repository

Native code. Only the native TCP client (ClickHouse.Driver.Tcp/) has native code. Format: Format/ (blocks), Types/Codecs/ (one codec per type), and Types/TypeParser.cs with Types/TypeTokenizer.cs (type names). Protocol: Protocol/ (handshake, packets, protocol revision), Parameters/ParameterText.cs (quoting of parameter values), and the compressed frames (Compression/, ClickHouse.Driver.Common/Compression/CompressionFrame.cs). The HTTP client has no native code: it uses RowBinary and its own type parser (ClickHouse.Driver/Types/Grammar/).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.