feat(p10-1d): C + C++ AST chunkers — P10 Tier 1 chunker family complete #156
Reference in New Issue
Block a user
Delete Branch "feat/p10-1d-c-cpp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
code-c-ast-v1—.c/.hAST chunker via tree-sitter-c 0.24.2. Top-level units: function_definition (symbol = fn name), struct_specifier / enum_specifier / union_specifier (named). C symbol = function name only (design §3.4). 매크로 + typedef + global 변수 등은<top-level>glue.code-cpp-ast-v1—.cpp/.cc/.cxx/.hpp/.hh/.hxxAST chunker via tree-sitter-cpp 0.23.4. namespace + class recursion (Java/Kotlin + Python hybrid). Symbol =namespace::Class::method. Anonymous namespace →<anonymous>. Constructor/destructor/operator overload/template fn 모두 정확히 처리 (qualified_identifier 의 out-of-class definition 도 prefix 복원). template params 는 symbol 미포함..h→ C 매핑 (design §3.5): C++ syntax (namespace / template / class) 만나면 tree-sitter-c parse 실패 → p10-3 Tier 3 fallback (code-text-paragraph-v1) 으로 자동 picked up.tier3_fallback_cv확장 + missing p10-3 fix landing: PR #155 (p10-3) 가 reviewer-flaggedtry_skip_unchanged7-param fallback-aware fix (commit2a39513per implementer report) 를 머지하지 못함 (commit 이 main 에 존재하지 않음). 이 PR 의 commit1034de2가 그 fix 를 같이 land —try_skip_unchanged7th paramfallback_chunker_version: Option<&ChunkerVersion>+stored_is_tier3_fallback감지 branch + 모든 call site 갱신 + tier3_fallback_cv match 에 c/cpp 추가 +tier3_yaml_fallback_reingest_is_unchanged+tier3_shell_reingest_is_unchanged2 regression test 추가.Citation::Code.lang의c/cpp값 +chunker_version의code-c-ast-v1/code-cpp-ast-v1값. schema 본문 변경 0.Test plan
cargo test --workspace --no-fail-fast -j 1PASS (memory-conscious-j 1)cargo clippy --workspace --all-targets -- -D warningscleancode_ingest_smoke: 18 tests (16 +tier1_c_ingest_searchable+tier1_cpp_ingest_searchable)tier3_yaml_fallback_reingest_is_unchanged+tier3_shell_reingest_is_unchangedconfirm Unchanged on second ingest (was broken in main per the missing 2a39513 fix)--code-lang c/--code-lang cpp검색 결과 + Tier 3 fallback 동작 (.hwith namespace) 확인Branch
feat/p10-1d-c-cpp(head:86aa180). 12 commits A-K + 1 follow-up fix. Spec:tasks/p10/p10-1d-c-cpp-ast-chunker.md. Plan:docs/superpowers/plans/2026-05-21-p10-1d-c-cpp-ast-chunker.md.Critical: missing p10-3 fix landed in this PR
Background: PR #155 (p10-3 merged 2026-05-21 as
7a90df1) was reviewed CHANGES_REQUESTED for atry_skip_unchangedbug — fallback path always re-ingested. The implementer reported a fix commit (2a39513) but it never actually made it to main (likely local-only commit that got dropped during the merge dance). The bug shipped in v0.15.0 release.This PR's commit
1034de2lands the original Option B1 fix verbatim. v0.16.0 ships with both p10-1D AND the corrected p10-3 behavior. Regression tests confirm reingest = Unchanged on the fallback path.🤖 Generated with Claude Code