From 9342b9543f7cea75aa7620fe47294621b31e2b12 Mon Sep 17 00:00:00 2001 From: altair823 Date: Thu, 21 May 2026 11:17:51 +0000 Subject: [PATCH] refactor(p10-3): expose tier2_shared::build_chunk as pub(crate) Tier 3 chunker (next task) needs to call the same Chunk-construction helper to keep id / hash / token-count / policy_hash semantics identical with Tier 2. Visibility-only change; signature and body unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) --- crates/kebab-chunk/src/tier2_shared.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/kebab-chunk/src/tier2_shared.rs b/crates/kebab-chunk/src/tier2_shared.rs index f52173c..3709384 100644 --- a/crates/kebab-chunk/src/tier2_shared.rs +++ b/crates/kebab-chunk/src/tier2_shared.rs @@ -88,7 +88,7 @@ pub(crate) fn push_chunks_with_oversize( /// for normal single-chunk emission. Mirrors the `Some(part_ls)` / `None` /// split_key pattern in 1A-2. #[allow(clippy::too_many_arguments)] -fn build_chunk( +pub(crate) fn build_chunk( doc: &CanonicalDocument, chunker_version: &ChunkerVersion, base_policy_hash: &str,