Skip to content

docs: comprehensive v2.2.0 documentation update#442

Merged
justn-hyeok merged 1 commit intomainfrom
docs/v2.2.0-update
Apr 1, 2026
Merged

docs: comprehensive v2.2.0 documentation update#442
justn-hyeok merged 1 commit intomainfrom
docs/v2.2.0-update

Conversation

@justn-hyeok
Copy link
Copy Markdown
Collaborator

@justn-hyeok justn-hyeok commented Apr 1, 2026

Summary

  • Updated all 7 documentation files to reflect v2.2.0 features: pre-analysis layer, 4-layer hallucination filter, specialist personas, suggestion verification, triage digest, reviewContext config, external AI rule file detection, and build artifact exclusion
  • Fully rewrote README.ko.md from v2.0.0-rc.1 to v2.2.0 (badges, test counts, architecture diagram, GitHub Actions ref, new sections)
  • Added deprecation note to docs/3_V3_DESIGN.md pointing to current ARCHITECTURE.md (closes docs: V3 design doc describes unimplemented Claude Code skill architecture #336)

Files changed

  • CLAUDE.md — 6-stage pipeline, security updates (0o700 dir perms, fail-closed)
  • README.md — new "How It Works" diagram with Pre-Analysis + Filter stages
  • README.ko.md — major overhaul: 2846 tests, v2.2.0 badge, new architecture diagram, reviewContext/persona/AI rules/artifact exclusion sections, bssm-oss/CodeAgora@v2 action ref
  • docs/ARCHITECTURE.md — full pipeline diagram with Pre-Analysis and Hallucination Filter layers
  • docs/CONFIGURATION.md — reviewContext, specialist personas, .reviewrules, external AI rules, artifact exclusion
  • docs/AGENTS.md — updated architecture references
  • docs/3_V3_DESIGN.md — added note redirecting to ARCHITECTURE.md

Test plan

  • grep sanity check: no remaining stale references (1880, 2702, 2749, rc.1, justn-hyeok/CodeAgora)
  • Visual review of all updated diagrams and sections

Closes #336.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Documented expanded 6-stage review pipeline with Pre-Analysis and Hallucination Filter stages
    • Added specialist reviewer personas (security, logic, API contract, general) and configuration guidance
    • Documented automatic detection and injection of external AI rule files
    • Clarified CRITICAL+ suggestion verification and triage classifications in final output
    • Updated test metrics and version references across documentation

Update all docs for v2.2.0: pre-analysis layer, hallucination
filter, specialist personas, suggestion verification, triage
digest, reviewContext config, and updated architecture diagrams.

README.ko.md fully rewritten from v2.0.0-rc.1 to v2.2.0.
Closes #336.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions bot added the size/L <500 lines label Apr 1, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 1, 2026

📝 Walkthrough

Walkthrough

Documentation restructure updating the review pipeline architecture from 4 layers to 6 stages, introducing Pre-Analysis and Hallucination Filter stages, documenting specialist personas configuration, and archiving outdated v3 design references with current architecture pointers.

Changes

Cohort / File(s) Summary
Main Architecture Documentation
CLAUDE.md, docs/ARCHITECTURE.md, docs/3_V3_DESIGN.md, docs/AGENTS.md
Updated pipeline description from 4-layer to 6-stage flow with Pre-Analysis and Hallucination Filter stages. Documented specialist personas (security, logic, api-contract, general), tsc verification for CRITICAL+ suggestions, and security fail-closed behavior. Archived v3 design as historical reference with pointer to current ARCHITECTURE.md.
README Updates
README.md, README.ko.md
Refreshed "How It Works" pipeline diagrams describing new Pre, Filter, Adversarial Discussion, and Head Verdict stages with triage classification. Updated metrics: test count 1880→2846, version 2.0.0-rc.1→2.2.0. Updated GitHub Actions workflow reference and repository descriptions.
Configuration Documentation
docs/CONFIGURATION.md
Added reviewContext configuration section with deploymentType, notes, bundledOutputs, pathRules, and verifySuggestions fields. Documented specialist persona assignment via builtin:* identifiers. Described automatic injection of external AI rule files (.cursorrules, CLAUDE.md, copilot-instructions.md) and expanded built-in artifact exclusion patterns.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested labels

size/M

Poem

🐰 From four layers grew six stages bright,
Pre-filters hallucinations from sight,
Personas guide each specialist review,
Architecture docs shine crystal clear—new!
The pipeline flows with whisker precision,
thump-thump goes the heart of our vision! 🐾

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately describes the main change: comprehensive v2.2.0 documentation updates across seven documentation files reflecting new features.
Linked Issues check ✅ Passed The PR directly addresses issue #336 by adding an archival caveat to docs/3_V3_DESIGN.md that redirects users to docs/ARCHITECTURE.md, which documents the current v2.2.0 architecture.
Out of Scope Changes check ✅ Passed All changes are in-scope documentation updates for v2.2.0 features and issue #336 archival caveat; no unrelated out-of-scope modifications are present.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/v2.2.0-update

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
docs/AGENTS.md (1)

23-35: ⚠️ Potential issue | 🟡 Minor

Fix stale architecture pointer in AI-agent instructions.

This file now labels 3_V3_DESIGN.md as historical, but Line 34 still tells readers to use it for the current architecture. Update that step to ARCHITECTURE.md to avoid misrouting.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/AGENTS.md` around lines 23 - 35, Update the "Working In This Directory"
step that currently references `3_V3_DESIGN.md` as the current architecture to
point to `ARCHITECTURE.md` instead: locate the bullet list under "For AI Agents"
/ "When exploring CodeAgora" and replace the mention of `3_V3_DESIGN.md` (the
second item) with `ARCHITECTURE.md` so the instructions correctly direct readers
to the current architecture doc.
🧹 Nitpick comments (3)
docs/ARCHITECTURE.md (1)

3-3: Add parent-document header comment.

Please add a <!-- Parent: ... --> header at the top for docs consistency.

As per coding guidelines, "Include a <!-- Parent: ... --> header comment linking to parent documents".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/ARCHITECTURE.md` at line 3, Add a parent-document header comment at the
very top of ARCHITECTURE.md by inserting a single HTML comment like <!-- Parent:
<ParentDocName> --> above the existing content (above the "## 6-Stage Pipeline"
heading); replace <ParentDocName> with the canonical parent doc title or link
used elsewhere in the docs to maintain consistency.
docs/CONFIGURATION.md (1)

1-1: Add parent-document header comment.

Please add <!-- Parent: ... --> at the top of this doc.

As per coding guidelines, "Include a <!-- Parent: ... --> header comment linking to parent documents".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/CONFIGURATION.md` at line 1, Add a parent-document header comment at the
very top of the file by inserting a single HTML comment like <!-- Parent:
<parent-document-name-or-path> --> immediately before the "# Configuration"
heading; replace <parent-document-name-or-path> with the canonical parent doc
identifier used across the repo so the file begins with that Parent header
comment.
docs/3_V3_DESIGN.md (1)

1-2: Add parent-document header for guideline compliance.

Please add a top-of-file parent header comment (e.g., <!-- Parent: ... -->) to match docs conventions.

As per coding guidelines, "Include a <!-- Parent: ... --> header comment linking to parent documents".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/3_V3_DESIGN.md` around lines 1 - 2, Add a top-of-file parent header
comment to comply with docs conventions by inserting a single HTML comment like
<!-- Parent: ARCHITECTURE.md --> at the very top of the document (above the
existing "**Note**: This document describes the original v3 design..." line) so
the file includes the required parent-document linkage.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/ARCHITECTURE.md`:
- Line 40: Update the "Confidence scoring" line so it matches the actual verdict
logic: change the documented threshold that routes CRITICAL+ issues to
NEEDS_HUMAN from "0%" to "≤15%" (or "15% and below") and ensure the surrounding
text that mentions confidence-routing (occurrences at other locations like the
duplicate at the other referenced line) is updated to reflect the same ≤15%
threshold so operator guidance matches the implementation.

In `@docs/CONFIGURATION.md`:
- Around line 83-105: The example and types for reviewContext are inconsistent
with the actual schema: update the JSON example and the type table so
reviewContext uses the correct shapes—set deploymentType to one of the schema
enum values, change notes from a string to notes: [string], change
bundledOutputs from a boolean to bundledOutputs: [string], and replace pathRules
object map with pathRules: [{ pattern: string, notes: string[] }] (keep
verifySuggestions as boolean if that matches the schema); update both the JSON
snippet and the corresponding table rows for `deploymentType`, `notes`,
`bundledOutputs`, and `pathRules` to reflect these exact types and example
values (referencing reviewContext, deploymentType, notes, bundledOutputs,
pathRules, verifySuggestions).

In `@README.ko.md`:
- Around line 469-489: Update the reviewContext example so it matches the actual
schema: change deploymentType to one of the allowed enum values, make notes a
string[] (array), replace bundledOutputs boolean with an array of string pattern
entries, and convert pathRules from a map into an array of objects each with
pattern and notes[] fields; ensure verifySuggestions remains typed as in the
schema and mirror the exact shapes shown in CONFIGURATION.md for reviewContext
to keep examples consistent.

---

Outside diff comments:
In `@docs/AGENTS.md`:
- Around line 23-35: Update the "Working In This Directory" step that currently
references `3_V3_DESIGN.md` as the current architecture to point to
`ARCHITECTURE.md` instead: locate the bullet list under "For AI Agents" / "When
exploring CodeAgora" and replace the mention of `3_V3_DESIGN.md` (the second
item) with `ARCHITECTURE.md` so the instructions correctly direct readers to the
current architecture doc.

---

Nitpick comments:
In `@docs/3_V3_DESIGN.md`:
- Around line 1-2: Add a top-of-file parent header comment to comply with docs
conventions by inserting a single HTML comment like <!-- Parent: ARCHITECTURE.md
--> at the very top of the document (above the existing "**Note**: This document
describes the original v3 design..." line) so the file includes the required
parent-document linkage.

In `@docs/ARCHITECTURE.md`:
- Line 3: Add a parent-document header comment at the very top of
ARCHITECTURE.md by inserting a single HTML comment like <!-- Parent:
<ParentDocName> --> above the existing content (above the "## 6-Stage Pipeline"
heading); replace <ParentDocName> with the canonical parent doc title or link
used elsewhere in the docs to maintain consistency.

In `@docs/CONFIGURATION.md`:
- Line 1: Add a parent-document header comment at the very top of the file by
inserting a single HTML comment like <!-- Parent: <parent-document-name-or-path>
--> immediately before the "# Configuration" heading; replace
<parent-document-name-or-path> with the canonical parent doc identifier used
across the repo so the file begins with that Parent header comment.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7d382681-362e-437f-89be-40d013c8a90c

📥 Commits

Reviewing files that changed from the base of the PR and between 81ab54b and e4e96f0.

📒 Files selected for processing (7)
  • CLAUDE.md
  • README.ko.md
  • README.md
  • docs/3_V3_DESIGN.md
  • docs/AGENTS.md
  • docs/ARCHITECTURE.md
  • docs/CONFIGURATION.md

│ ① File/line validation against actual diff │
│ ② Self-contradiction detection │
│ ③ Evidence deduplication (merge duplicates) │
│ ④ Confidence scoring (0% → NEEDS_HUMAN) │
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Confidence-routing threshold is documented incorrectly.

The doc says only 0% confidence routes CRITICAL+ issues to NEEDS_HUMAN, but verdict logic indicates a broader low-confidence threshold (≤15%). Please align these lines to actual behavior to avoid incorrect operator expectations.

Proposed doc fix
-│  ④ Confidence scoring (0% → NEEDS_HUMAN)         │
+│  ④ Confidence scoring (low confidence, e.g. ≤15% for CRITICAL+ → NEEDS_HUMAN) │
...
-4. **Confidence-based verdict**: Issues with 0% confidence at CRITICAL+ severity route to NEEDS_HUMAN instead of REJECT
+4. **Confidence-based verdict**: Low-confidence CRITICAL+ issues (e.g., ≤15%) route to NEEDS_HUMAN instead of REJECT

Also applies to: 75-75

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/ARCHITECTURE.md` at line 40, Update the "Confidence scoring" line so it
matches the actual verdict logic: change the documented threshold that routes
CRITICAL+ issues to NEEDS_HUMAN from "0%" to "≤15%" (or "15% and below") and
ensure the surrounding text that mentions confidence-routing (occurrences at
other locations like the duplicate at the other referenced line) is updated to
reflect the same ≤15% threshold so operator guidance matches the implementation.

Comment on lines +83 to +105
```json
{
"reviewContext": {
"deploymentType": "production",
"notes": "Auth module refactoring in progress",
"bundledOutputs": true,
"pathRules": {
"src/auth/**": "builtin:security",
"src/api/**": "builtin:api-contract"
},
"verifySuggestions": true
}
}
```

| Field | Type | Description |
|-------|------|-------------|
| `deploymentType` | `string` | Deployment context: `"production"`, `"staging"`, `"internal"` |
| `notes` | `string` | Free-text notes passed to reviewers as project context |
| `bundledOutputs` | `boolean` | Whether to include bundled outputs in review |
| `pathRules` | `object` | Glob-to-persona mapping for path-specific specialist review |
| `verifySuggestions` | `boolean` | Enable tsc transpile check on CRITICAL+ suggestions |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

reviewContext example/types do not match the actual config schema.

This section currently documents invalid shapes:

  • deploymentType: "production" (not in enum)
  • notes as string (schema is string[])
  • bundledOutputs as boolean (schema is string[])
  • pathRules as object map (schema is array of { pattern, notes[] })

Please align the JSON example and the type table with the schema to prevent invalid configs.

Proposed doc fix
 {
   "reviewContext": {
-    "deploymentType": "production",
-    "notes": "Auth module refactoring in progress",
-    "bundledOutputs": true,
-    "pathRules": {
-      "src/auth/**": "builtin:security",
-      "src/api/**": "builtin:api-contract"
-    },
+    "deploymentType": "web-app",
+    "notes": ["Auth module refactoring in progress"],
+    "bundledOutputs": ["dist/**/*.js"],
+    "pathRules": [
+      { "pattern": "src/auth/**", "notes": ["Prioritize security review"] },
+      { "pattern": "src/api/**", "notes": ["Check API contract compatibility"] }
+    ],
     "verifySuggestions": true
   }
 }
@@
-| `deploymentType` | `string` | Deployment context: `"production"`, `"staging"`, `"internal"` |
-| `notes` | `string` | Free-text notes passed to reviewers as project context |
-| `bundledOutputs` | `boolean` | Whether to include bundled outputs in review |
-| `pathRules` | `object` | Glob-to-persona mapping for path-specific specialist review |
+| `deploymentType` | `string` | One of: `github-action`, `cli`, `library`, `web-app`, `api-server`, `lambda`, `docker`, `edge-function`, `monorepo` |
+| `notes` | `string[]` | Free-form context lines passed to reviewers |
+| `bundledOutputs` | `string[]` | Glob patterns treated as bundled outputs |
+| `pathRules` | `{ pattern: string, notes: string[] }[]` | Path-based review notes by glob |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/CONFIGURATION.md` around lines 83 - 105, The example and types for
reviewContext are inconsistent with the actual schema: update the JSON example
and the type table so reviewContext uses the correct shapes—set deploymentType
to one of the schema enum values, change notes from a string to notes: [string],
change bundledOutputs from a boolean to bundledOutputs: [string], and replace
pathRules object map with pathRules: [{ pattern: string, notes: string[] }]
(keep verifySuggestions as boolean if that matches the schema); update both the
JSON snippet and the corresponding table rows for `deploymentType`, `notes`,
`bundledOutputs`, and `pathRules` to reflect these exact types and example
values (referencing reviewContext, deploymentType, notes, bundledOutputs,
pathRules, verifySuggestions).

Comment on lines +469 to +489
"reviewContext": {
"deploymentType": "production",
"notes": "인증 모듈 리팩토링 중",
"bundledOutputs": true,
"pathRules": {
"src/auth/**": "builtin:security",
"src/api/**": "builtin:api-contract"
},
"verifySuggestions": true
}
}
```

| 필드 | 설명 |
|------|------|
| `deploymentType` | 배포 유형 (production, staging, internal) |
| `notes` | 리뷰어에게 전달할 프로젝트 컨텍스트 메모 |
| `bundledOutputs` | 번들된 출력 포함 여부 |
| `pathRules` | 경로별 전문 페르소나 매핑 |
| `verifySuggestions` | CRITICAL+ 제안에 tsc 트랜스파일 검증 활성화 |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

reviewContext 예시가 실제 스키마와 맞지 않습니다.

현재 예시는 실제 설정 스키마와 타입/형태가 다릅니다:

  • deploymentType: "production" (허용 enum 아님)
  • notesstring[]이어야 함
  • bundledOutputsboolean이 아니라 string[] 패턴 목록
  • pathRules는 맵이 아니라 { pattern, notes[] }[] 배열

한국어 문서도 docs/CONFIGURATION.md와 동일한 스키마 형태로 맞춰 주세요.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.ko.md` around lines 469 - 489, Update the reviewContext example so it
matches the actual schema: change deploymentType to one of the allowed enum
values, make notes a string[] (array), replace bundledOutputs boolean with an
array of string pattern entries, and convert pathRules from a map into an array
of objects each with pattern and notes[] fields; ensure verifySuggestions
remains typed as in the schema and mirror the exact shapes shown in
CONFIGURATION.md for reviewContext to keep examples consistent.

@justn-hyeok justn-hyeok merged commit c0405c5 into main Apr 1, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L <500 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: V3 design doc describes unimplemented Claude Code skill architecture

1 participant