Implement deterministic chunk generation #63
No reviewers
Labels
No labels
area/deployment
area/governance
area/metadata
area/pipeline
area/search
type/data
type/design
type/implementation
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Arkive/arkive!63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/issue-15-chunk-generation"
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
Implements deterministic chunk generation for Issue #15 on top of the normalized-text contract introduced by Issue #14.
The implementation adds a dedicated chunk-generation stage that consumes
NormalizationResultwithout reopening, re-extracting, or re-normalizing source content.Implementation
src/arkive/chunk_generation.py.chunk_iddocument_id/source_idlineage[char_start, char_end)offsetsdistribution_scopechk_<document-key>-<six-digit-sequence>.No schema changes, dependency changes, or generic metadata-validator changes are required.
Tests
Added comprehensive chunk-generation tests covering:
Final validation:
207unit tests passedpipeline/validate/validate_records.pypassedgit diff --checkpassedpip checkpassedDocumentation
Updates the architecture overview with the implemented v0.1 chunk-generation contract and removes chunk generation from the future-work list.
Closes #15