Skip to content

Review skill: walk the input of a fixed bug through the touched functions - #131044

Merged
Algunenano merged 1 commit into
ClickHouse:masterfrom
Algunenano:review-skill-pr130793
Nov 12, 2026
Merged

Algunenano merged 1 commit into
ClickHouse:masterfrom
Algunenano:review-skill-pr130793

Conversation

@Algunenano

@Algunenano Algunenano commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Related: #130793
Related: #131029

The AI review approved #130793, and it missed a heap-use-after-free that the same input reaches ten lines below the line the PR added, in the function it changed (fixed in #131029). The review checked only that the new guard holds: it did not run the PR's own trigger through the unchanged code, and it took ColumnsDescription::rename as known from its name. The same miss reproduced in every run with the current skill (CI, the author's pre-review, and 2 local runs of codex with gpt-6.1-sol at xhigh: 0 of 4).

Two edits to .claude/skills/review/SKILL.md, with nothing specific to this bug:

  • Contract gate: for a bug fix, the triggering input is part of the contract; walk it and variants of it through every statement of the touched functions, unchanged lines included, and open each callee it reaches.
  • Scope rule: a pre-existing defect that the PR's inputs reach is a finding; the PR must fix it or link an issue that tracks it.

With these edits, the same local review of #130793 found the use-after-free in 6 of 8 runs, most of them with a standalone ASan reproduction. Placement matters: the same rule as a separate bullet under the concrete-trace section found it in 0 of 2 runs, and a rule to fan out from the fixed bug in 0 of 2.

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Workflow [PR]
Sync PR [sync-upstream/pr/131044]

Version info

  • Merged into: 26.11.1.2106-master (included in 26.11 and later)

…ions

A review of a bug fix checked only that the new guard holds. It missed a defect reached by the same
input ten lines away in the function the fix changed, because it treated the unchanged code as out
of scope and a callee as known from its name. Make the triggering input part of the contract, and
require a pre-existing defect that it reaches to be fixed or tracked by an issue.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [6cf74fe]

Summary: ✅


AI Review

Summary

The PR requires tracing bug-triggering inputs and variants through touched functions and their callees, including unchanged code, and requires reachable pre-existing defects to be fixed or tracked. No actionable findings.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Nov 12, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-documentation Documentation (docs, examples, READMEs). label Nov 12, 2026
@Algunenano
Algunenano added this pull request to the merge queue Nov 12, 2026
Merged via the queue into ClickHouse:master with commit fab27dd Nov 12, 2026
203 checks passed
@Algunenano
Algunenano deleted the review-skill-pr130793 branch November 12, 2026 15:37
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 12, 2026
@clickhouse-gh clickhouse-gh Bot added comp-ai-tooling Tooling of AI coding agents in the repository: skills, hooks, permission settings, instructions a... and removed comp-documentation Documentation (docs, examples, READMEs). labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-ai-tooling Tooling of AI coding agents in the repository: skills, hooks, permission settings, instructions a... pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants