From 13a3361ba290c5c6f1a53f8ee1f597eb9f30c0be Mon Sep 17 00:00:00 2001 From: altair823 Date: Sun, 24 May 2026 20:27:40 +0000 Subject: [PATCH] =?UTF-8?q?docs(v0.17.0/PR-C):=20rustdoc=20=E2=80=94=20cod?= =?UTF-8?q?e=5Flang=5Fbreakdown=20/=20repo=5Fbreakdown=20=EA=B0=80=20?= =?UTF-8?q?=EC=8B=A4=EC=A0=9C=EB=A1=9C=20doc=20count=20=EC=9E=84=EC=9D=84?= =?UTF-8?q?=20=EB=AA=85=EC=8B=9C=20(PR=20#161=20=EC=9B=8C=EC=BB=A4=20?= =?UTF-8?q?=EB=A6=AC=EB=B7=B0=20MEDIUM=20=EB=B0=98=EC=98=81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit JSON schema description 은 PR-C 본체에서 'code chunk count' → 'doc count' 로 정정했으나 Rust struct field 의 rustdoc 은 같은 오기재를 그대로 carry — Gemini round 2 가 JSON schema 만 봤고 rustdoc 은 miss. 워커 둘 다 동일 finding (MEDIUM). implementation 변경 없음 — 의미가 doc count 였던 사실이 처음부터 일관. wording 만 맞춤. Co-Authored-By: Claude Opus 4.7 (1M context) --- crates/kebab-app/src/schema.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/crates/kebab-app/src/schema.rs b/crates/kebab-app/src/schema.rs index 5026c95..c8e4fd4 100644 --- a/crates/kebab-app/src/schema.rs +++ b/crates/kebab-app/src/schema.rs @@ -63,12 +63,18 @@ pub struct Stats { /// p9-fb-37: docs whose `updated_at` exceeds the staleness threshold. #[serde(default)] pub stale_doc_count: u64, - /// p10-1A-1: code language breakdown (chunk counts by canonical lowercase - /// language identifier). Empty until 1A-2 produces code chunks. + /// p10-1A-1: code language breakdown (**doc** counts by canonical + /// lowercase language identifier). Empty until 1A-2 produces code + /// docs. v0.17.0 PR-C: doc-count semantics corrected here (the + /// previous "chunk counts" wording was a longstanding mis-label — + /// implementation has always been `COUNT(*) FROM documents + /// GROUP BY code_lang`). Use `code_lang_chunk_breakdown` for the + /// chunk-level companion. #[serde(default)] pub code_lang_breakdown: std::collections::BTreeMap, - /// p10-1A-1: repo breakdown (chunk counts by `metadata.repo` value). - /// Empty until 1A-2 produces code chunks. + /// p10-1A-1: repo breakdown (**doc** counts by `metadata.repo` + /// value). Empty until 1A-2 produces code docs. v0.17.0 PR-C: + /// doc-count wording corrected (mirror of code_lang_breakdown). #[serde(default)] pub repo_breakdown: std::collections::BTreeMap, /// v0.17.0 PR-C: sister of [`Self::code_lang_breakdown`] returning