[P1] I01: Register authorized document uploads, markings and quarantined versions #17
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#18 [P1] I02: Implement retryable bilingual extraction and source-preserving chunking
primatekuntech/rag-rust
#8 [P0] F03: Wire PostgreSQL migrations, bounded pooling and canonical repositories
primatekuntech/rag-rust
#10 [P0] F05: Enforce centralized authorization and bounded revocation across protected operations
primatekuntech/rag-rust
#11 [P0] F06: Implement the protected tamper-evident audit trail
primatekuntech/rag-rust
Reference
primatekuntech/rag-rust#17
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Backlog ID: I01 | Priority: P1 | Phase: M3 — Canonical ingestion and lexical search
Outcome and scope
Add the custodian upload/register API for the approved initial text format, protected original storage and canonical document/version/job records.
Dependencies and gates
Engineering prerequisites: #8 (F03), #10 (F05), #11 (F06)
Initial supported format, provenance requirements and protected original-storage profile follow D01/K01 decisions; fixtures remain synthetic.
Starting points
crates/ingestion/; crates/api/src/routes/documents.rs; crates/storage-postgres/; migrations/
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
Verification
Integration tests cover missing markings, forbidden custodian, malformed format, traversal, oversized upload, duplicate retries and rollback; queries cannot see quarantined versions.
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-001–002, 005; FR-AUTH-009; FR-DATA-001, 005; architecture §§7–8
Sources: SRS, system design. Local planning context:
docs/implementation-plan.mdanddocs/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