Deep, production-critical review workflow for TiKV changes. Use when asked to review a PR, branch, commit range, or diff in this repository and produce a markdown review report with findings, risk analysis, and TiKV-specific validation results.
Produce a production-critical review for TiKV that:
AGENTS.md./Makefile./target.review-report-YYYYMMDD-<summary>.md.make format and as the authoritative static checks because TiKV’s adds required setup and repository-specific scripts.make clippyMakefilecargo clippy for make clippy unless the user explicitly asks for a narrower check.AGENTS.md before judging engineering-rule compliance.Confirm inputs
origin/HEAD.Collect the change set
git diff origin/HEAD...HEAD from the repository root.origin/HEAD is unavailable or the diff command fails, stop and ask for guidance.Understand the intent
Read the affected TiKV subsystems
src/storage, src/storage/mvcc, src/storage/txnsrc/servercomponents/raftstore, components/raftstore-v2components/cdccomponents/pd_clienttests/Explain how the change works
Evaluate costs and negative impacts
Run TiKV static validation from ./Makefile
make format from the repository root.make clippy from the repository root.### Deep Review
#### Problem Summary
- [Explain the concrete problem the change targets]
#### Solution Walkthrough
- [Explain how the change solves the problem; cover all non-obvious logic]
#### Findings (ordered by severity)
- [Issue or risk with file/line references]
#### Costs and Negative Impacts
- Correctness:
- Security:
- Compatibility:
- Robustness:
- Operability:
- Cognitive Load:
- CPU:
- Memory:
- Log Volume:
#### Static Validation
- `make format`:
- `make clippy`:
#### Engineering Rules Check
- [List code or process mismatches against `AGENTS.md`, or "None"]
#### Questions and Assumptions
- [List unknowns or assumptions made]
#### Suggested Tests / Validation
- [Targeted tests or checks to validate behavior]
Makefilemake format runs pre-format, which installs rustfmt and bootstraps the pinned cargo-sort version before running cargo fmt and cargo sortmake clippy runs repository checks including redact-log, log-style, dashboards, docker-build, license, deny, and finally scripts/clippy-allmake format or make clippy reports code issues in the working tree:
make clippy fails in scripts/deny, record that separately from Rust lint results because clippy-all may not have run yet.Check engineering rules
AGENTS.md, especially:
make devWrite the review output