[P1] I05: Propagate document revisions, deletion and revocation to every derived artifact #22

Open
opened 2026-10-21 20:29:28 +02:00 by amiryahaya · 0 comments
Owner

Backlog ID: I05 | Priority: P1 | Phase: M4 — Consistent indexing and hybrid retrieval

Outcome and scope

Implement deny-first lifecycle changes: make a version unavailable immediately, then reconcile chunks/vectors/source objects and invalidate citations, histories, feedback datasets and any approved caches.

Dependencies and gates

Engineering prerequisites: #21 (I04), #13 (C01), #14 (C02)

Lifecycle and records behavior require D01’s approved retention/deletion/revocation policy.

Starting points

crates/ingestion/src/lifecycle/; crates/conversations/; crates/retrieval/; crates/storage-postgres/; crates/storage-qdrant/

These are current files or proposed responsibility boundaries; finalize a focused implementation plan before coding. Existing local scaffolding is uncommitted and is not evidence of completion.

Acceptance criteria

  • Canonical revocation blocks access before asynchronous cleanup; failed sync cannot restore access via stale vectors.
  • Updates replace the published generation safely and old citations/history are reauthorized against current source status.
  • Deletion/retention/export rules cover original files, chunks, vectors, messages, feedback, audit and backups without silently deleting required records.
  • Recovery and retry are idempotent, with operator-visible safe reconciliation state.

Verification

Revoke/delete during searches and open histories, replay stale outbox events, and simulate Qdrant outage; verify no content/metadata returns and measure approved propagation SLA.

Behavior changes follow Red → Green → Refactor. Run affected Rust shared contract/unit tests and real PostgreSQL/Qdrant/runtime integration tests where applicable; frontend changes run typecheck/build and the relevant browser tests. Record exact commands/results in the implementation PR. Documentation/decision tasks use recorded review evidence.

Requirements and design

FR-ING-006, FR-AUTH-007; FR-RAG-004–005; FR-PRIV-004; architecture §§6.3, 8–9

Sources: SRS, system design. Local planning context: docs/implementation-plan.md and docs/development-backlog.md (not published by this task).

Security impact: Use synthetic fixtures until approved for operational data. Preserve current authorization, markings, provenance and default-deny behavior; exclude protected payloads/secrets from operational telemetry. No classified-deployment or PQC-compliance claim is implied by closing this issue.

Parent roadmap: #1

**Backlog ID:** I05 | **Priority:** P1 | **Phase:** M4 — Consistent indexing and hybrid retrieval ## Outcome and scope Implement deny-first lifecycle changes: make a version unavailable immediately, then reconcile chunks/vectors/source objects and invalidate citations, histories, feedback datasets and any approved caches. ## Dependencies and gates **Engineering prerequisites:** #21 (I04), #13 (C01), #14 (C02) Lifecycle and records behavior require D01’s approved retention/deletion/revocation policy. ## Starting points crates/ingestion/src/lifecycle/; crates/conversations/; crates/retrieval/; crates/storage-postgres/; crates/storage-qdrant/ These are current files or proposed responsibility boundaries; finalize a focused implementation plan before coding. Existing local scaffolding is uncommitted and is not evidence of completion. ## Acceptance criteria - [ ] Canonical revocation blocks access before asynchronous cleanup; failed sync cannot restore access via stale vectors. - [ ] Updates replace the published generation safely and old citations/history are reauthorized against current source status. - [ ] Deletion/retention/export rules cover original files, chunks, vectors, messages, feedback, audit and backups without silently deleting required records. - [ ] Recovery and retry are idempotent, with operator-visible safe reconciliation state. ## Verification Revoke/delete during searches and open histories, replay stale outbox events, and simulate Qdrant outage; verify no content/metadata returns and measure approved propagation SLA. Behavior changes follow Red → Green → Refactor. Run affected Rust shared contract/unit tests and real PostgreSQL/Qdrant/runtime integration tests where applicable; frontend changes run typecheck/build and the relevant browser tests. Record exact commands/results in the implementation PR. Documentation/decision tasks use recorded review evidence. ## Requirements and design FR-ING-006, FR-AUTH-007; FR-RAG-004–005; FR-PRIV-004; architecture §§6.3, 8–9 Sources: [SRS](https://forgejo.primatekun.tech/primatekuntech/rag-rust/src/branch/main/docs/SRS.md), [system design](https://forgejo.primatekun.tech/primatekuntech/rag-rust/src/branch/main/docs/architecture.md). Local planning context: `docs/implementation-plan.md` and `docs/development-backlog.md` (not published by this task). **Security impact:** Use synthetic fixtures until approved for operational data. Preserve current authorization, markings, provenance and default-deny behavior; exclude protected payloads/secrets from operational telemetry. No classified-deployment or PQC-compliance claim is implied by closing this issue. **Parent roadmap:** #1
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
primatekuntech/rag-rust#22
No description provided.