From 094c4641baf1d65823517b25d93d940eff543453 Mon Sep 17 00:00:00 2001 From: altair823 Date: Thu, 30 Apr 2026 17:02:17 +0000 Subject: [PATCH] kb-chunk: populate Chunk.policy_hash field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set the new policy_hash field on every emitted Chunk to the same hex already computed for the chunk_id recipe (§4.2). No recipe / chunk_id change — only the field on the struct is now populated. Pairs with the kb-core hotfix (preceding commit) and unblocks P1-6's DocumentStore::put_chunks to read chunk.policy_hash directly per §5.5. --- crates/kb-chunk/src/md_heading_v1.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/kb-chunk/src/md_heading_v1.rs b/crates/kb-chunk/src/md_heading_v1.rs index cf4c82a..7626ea5 100644 --- a/crates/kb-chunk/src/md_heading_v1.rs +++ b/crates/kb-chunk/src/md_heading_v1.rs @@ -355,6 +355,7 @@ fn build_chunk( source_spans, token_estimate, chunker_version: chunker_version.clone(), + policy_hash: policy_hash.to_string(), } }