Skip to content

Commit d4d79e8

Browse files
authored
chore: sync develop → main (v8.3 + develop fixes) (#187)
chore: sync develop → main (v8.3 + develop fixes)
2 parents 1cae8fc + 6f4c792 commit d4d79e8

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

.claude/commands/review.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ so pre-existing issues interacting with new code won't surface.
3030
## Phase 1: Structural scan (~1k tokens into context)
3131

3232
```bash
33-
ckb review --base=main --format=json 2>/dev/null
33+
ckb review --base=main --format=json --compact 2>/dev/null
3434
```
3535

3636
If a PR number was given:
3737
```bash
3838
BASE=$(gh pr view $ARGUMENTS --json baseRefName -q .baseRefName)
39-
ckb review --base=$BASE --format=json 2>/dev/null
39+
ckb review --base=$BASE --format=json --compact 2>/dev/null
4040
```
4141

4242
If "staged" was given:
4343
```bash
44-
ckb review --staged --format=json 2>/dev/null
44+
ckb review --staged --format=json --compact 2>/dev/null
4545
```
4646

4747
Parse the JSON output to extract:
@@ -56,10 +56,10 @@ Parse the JSON output to extract:
5656
- `reviewers[]` — suggested reviewers with expertise areas
5757
- `healthReport` — degraded/improved file counts
5858

59-
From checks, build three lists:
59+
From the output, build three lists:
6060
- **SKIP**: passed checks — don't touch these files or topics
6161
- **INVESTIGATE**: warned/failed checks — these are your review scope
62-
- **READ**: files with warn/fail findings — the only files you'll read
62+
- **READ**: hotspot files + files with warn/fail findings — the only files you'll read
6363

6464
**Early exit**: Skip LLM ONLY when ALL conditions are met:
6565
1. Score ≥ 90 (not 80 — per-check caps hide warnings at 80)
@@ -87,7 +87,7 @@ Read only the changed hunks via `git diff main...HEAD -- <file>`.
8787
**For each file you read, look for exactly:**
8888
- Logic errors (wrong condition, off-by-one, nil deref, race condition)
8989
- Resource leaks (file handles, connections, goroutines not closed on error paths)
90-
- Security issues (injection, auth bypass, secrets CKB's patterns missed)
90+
- Security issues (injection, auth bypass, secrets CKB's 26 patterns missed)
9191
- Design problems (wrong abstraction, leaky interface, coupling metrics don't catch)
9292
- Missing edge cases the tests don't cover
9393
- Incomplete refactoring (callers that should have changed but didn't)

cmd/ckb/setup.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ and intent. Every source line you read costs tokens — read only what CKB says
844844
CKB runs 15 deterministic checks with AST rules, SCIP index, and git history.
845845
It is structurally sound but semantically blind:
846846
847-
- **Logic errors**: wrong conditions, off-by-one, incorrect algorithm
847+
- **Logic errors**: wrong conditions (` + "`" + `>` + "`" + ` vs ` + "`" + `>=` + "`" + `), off-by-one, incorrect algorithm
848848
- **Business logic**: domain-specific mistakes CKB has no context for
849849
- **Design fitness**: wrong abstraction, leaky interface, coupling that metrics miss
850850
- **Input validation**: missing bounds checks, nil guards outside AST patterns
@@ -860,18 +860,18 @@ so pre-existing issues interacting with new code won't surface.
860860
## Phase 1: Structural scan (~1k tokens into context)
861861
862862
` + "```" + `bash
863-
ckb review --base=main --format=json 2>/dev/null
863+
ckb review --base=main --format=json --compact 2>/dev/null
864864
` + "```" + `
865865
866866
If a PR number was given:
867867
` + "```" + `bash
868868
BASE=$(gh pr view $ARGUMENTS --json baseRefName -q .baseRefName)
869-
ckb review --base=$BASE --format=json 2>/dev/null
869+
ckb review --base=$BASE --format=json --compact 2>/dev/null
870870
` + "```" + `
871871
872872
If "staged" was given:
873873
` + "```" + `bash
874-
ckb review --staged --format=json 2>/dev/null
874+
ckb review --staged --format=json --compact 2>/dev/null
875875
` + "```" + `
876876
877877
Parse the JSON output to extract:
@@ -886,10 +886,10 @@ Parse the JSON output to extract:
886886
- ` + "`" + `reviewers[]` + "`" + ` — suggested reviewers with expertise areas
887887
- ` + "`" + `healthReport` + "`" + ` — degraded/improved file counts
888888
889-
From checks, build three lists:
889+
From the output, build three lists:
890890
- **SKIP**: passed checks — don't touch these files or topics
891891
- **INVESTIGATE**: warned/failed checks — these are your review scope
892-
- **READ**: files with warn/fail findings — the only files you'll read
892+
- **READ**: hotspot files + files with warn/fail findings — the only files you'll read
893893
894894
**Early exit**: Skip LLM ONLY when ALL conditions are met:
895895
1. Score >= 90 (not 80 — per-check caps hide warnings at 80)
@@ -917,7 +917,7 @@ Read only the changed hunks via ` + "`" + `git diff main...HEAD -- <file>` + "`"
917917
**For each file you read, look for exactly:**
918918
- Logic errors (wrong condition, off-by-one, nil deref, race condition)
919919
- Resource leaks (file handles, connections, goroutines not closed on error paths)
920-
- Security issues (injection, auth bypass, secrets CKB's patterns missed)
920+
- Security issues (injection, auth bypass, secrets CKB's 26 patterns missed)
921921
- Design problems (wrong abstraction, leaky interface, coupling metrics don't catch)
922922
- Missing edge cases the tests don't cover
923923
- Incomplete refactoring (callers that should have changed but didn't)

0 commit comments

Comments
 (0)