Parent and project
Objective
Implement deterministic revision-aware document projection through injected embedding and vector-index ports so derived state can be checkpointed, rebuilt, replaced, and deleted without owning authoritative application data.
In scope
- Deterministic bounded chunking of immutable generic documents.
- Stable fragment identities derived from corpus/document/revision and chunk position.
- Projection receipts and checkpoints tied to schema and embedding identity.
- Create, replace, delete, stale-revision, wrong-model, partial-failure, and full rebuild behavior.
- Idempotent replay and explicit collaborator-failure translation.
- No rollback requirement for an external authoritative store; the caller decides when to project.
- Bounded text and batch sizes supplied through explicit policy values.
Out of scope
Story events/citations, filesystem/SQLite access, provider implementations, background workers, implicit retry, credentials, semantic ranking, or hybrid fusion.
Acceptance criteria
Verification
Chunk boundary/property cases, revision and deletion matrices, checkpoint/rebuild/idempotency tests, injected failure tests, clean imports, compileall, and module-index review.
Dependencies and risks
Blocked by #2 public contracts. Risks are unstable chunk identity, partial state claims, accidental raw-score semantics, and hidden lifecycle ownership.
Gates
github_planning_gate = pending until hierarchy, native dependency, Project metadata, milestone, and branch are verified. modularity_gate = required; implementation must preserve the accepted package boundary.
Parent and project
Objective
Implement deterministic revision-aware document projection through injected embedding and vector-index ports so derived state can be checkpointed, rebuilt, replaced, and deleted without owning authoritative application data.
In scope
Out of scope
Story events/citations, filesystem/SQLite access, provider implementations, background workers, implicit retry, credentials, semantic ranking, or hybrid fusion.
Acceptance criteria
Verification
Chunk boundary/property cases, revision and deletion matrices, checkpoint/rebuild/idempotency tests, injected failure tests, clean imports, compileall, and module-index review.
Dependencies and risks
Blocked by #2 public contracts. Risks are unstable chunk identity, partial state claims, accidental raw-score semantics, and hidden lifecycle ownership.
Gates
github_planning_gate = pendinguntil hierarchy, native dependency, Project metadata, milestone, and branch are verified.modularity_gate = required; implementation must preserve the accepted package boundary.