@@ -844,7 +844,7 @@ and intent. Every source line you read costs tokens — read only what CKB says
844844CKB runs 15 deterministic checks with AST rules, SCIP index, and git history.
845845It 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
866866If a PR number was given:
867867` + "```" + `bash
868868BASE=$(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
872872If "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
877877Parse 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:
8958951. 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