[P1] H02: Deliver persisted streamed chat turns with cancellation and response-time authorization #27
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#28 [P1] H03: Store protected answer feedback and authorized offline evaluation workflow
primatekuntech/rag-rust
#29 [P1] U02: Complete React streaming chat, authorized sources and feedback controls
primatekuntech/rag-rust
#33 [P2] O02: Complete service-wide observability, protected diagnostics and operator alerts
primatekuntech/rag-rust
#11 [P0] F06: Implement the protected tamper-evident audit trail
primatekuntech/rag-rust
#26 [P1] H01: Assemble bounded authorized context and propagate answer provenance
primatekuntech/rag-rust
#25 [P1] E02: Integrate the selected local runtime with verified session and KV-cache isolation
primatekuntech/rag-rust
#30 [P1] O01: Enforce bounded admission, inference scheduling and request resource budgets
primatekuntech/rag-rust
Reference
primatekuntech/rag-rust#27
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: H02 | Priority: P1 | Phase: M5 — Local inference and complete chat
Outcome and scope
Implement POST conversation turns and a typed SSE lifecycle backed by durable message records and authorized citations; propagate deadline/cancellation through retrieval and inference.
Dependencies and gates
Engineering prerequisites: #26 (H01), #25 (E02), #11 (F06), #30 (O01)
Synthetic-data development may proceed. Production use remains subject to the decision gates in the SRS.
Starting points
crates/api/src/routes/turns.rs; crates/conversations/src/turns/; migrations/; tests/integration/chat_stream.rs
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 happy path, revocation mid-stream, slow consumer, disconnect, duplicate/reconnect, timeout and runtime error; verify terminal event and cleanup counts.
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-RAG-001, 004–009; FR-UX-001, 007; FR-PRIV-003; architecture §9.3
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