Skip to content

[RAG Projection] Add revision-aware derived indexing and rebuilds #3

Description

@rica-v3

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

  • Equal input and collaborators produce equal chunks, calls, and receipts.
  • Revision replacement and deletion cannot leave current generic documents ambiguously addressable.
  • Missing, stale, corrupt, wrong-schema, or wrong-embedding state is detectable and rebuildable.
  • Partial collaborator failure returns an explicit receipt/failure without claiming a completed checkpoint.
  • Runtime imports perform no external I/O and borrowed resources are never implicitly closed.
  • Mandatory tests run with deterministic fakes and no network.

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:projectionDerived indexing and rebuild lifecyclearea:testingAutomated verification and test infrastructureenhancementNew feature or requestwave:11Execution wave 11

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions