[P0] D03: Spike local inference feasibility and runtime isolation on candidate hardware #4

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

Backlog ID: D03 | Priority: P0 | Phase: M0 — Decisions and feasibility

Outcome and scope

Run an early, disposable comparison of local generation, embedding and reranking profiles on the intended hardware class; avoid committing the application to an unverified vendor/runtime.

Dependencies and gates

Engineering prerequisites: #3 (D02)

Depends on D02 workload definition; hardware availability and profile approval may remain external blockers. Run alongside foundation work.

Starting points

benchmarks/inference/; docs/benchmarks/inference-feasibility.md

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

  • Report pinned model/runtime versions, quantization, hardware, context sizes, streaming latency, queue wait, prefill, throughput and memory at ten-way concurrency.
  • Probe cancellation, timeout, slot ownership, reset/eviction and error recovery with distinct session sentinels.
  • Document fit/gaps and a recommended candidate profile; unavailable hardware is an explicit blocker, not fabricated measurements.
  • Distinguish engine-only timings from the full browser-to-token target; never claim this spike proves end-to-end acceptance.

Verification

Re-run the harness from recorded commands and compare raw results. Demonstrate a cancelled session cannot affect the next session.

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

NFR-PERF-001–005, FR-PRIV-002–003, FR-RAG-003; OD-05; architecture §§4, 9.6–9.7

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:** D03 | **Priority:** P0 | **Phase:** M0 — Decisions and feasibility ## Outcome and scope Run an early, disposable comparison of local generation, embedding and reranking profiles on the intended hardware class; avoid committing the application to an unverified vendor/runtime. ## Dependencies and gates **Engineering prerequisites:** #3 (D02) Depends on D02 workload definition; hardware availability and profile approval may remain external blockers. Run alongside foundation work. ## Starting points benchmarks/inference/; docs/benchmarks/inference-feasibility.md 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 - [ ] Report pinned model/runtime versions, quantization, hardware, context sizes, streaming latency, queue wait, prefill, throughput and memory at ten-way concurrency. - [ ] Probe cancellation, timeout, slot ownership, reset/eviction and error recovery with distinct session sentinels. - [ ] Document fit/gaps and a recommended candidate profile; unavailable hardware is an explicit blocker, not fabricated measurements. - [ ] Distinguish engine-only timings from the full browser-to-token target; never claim this spike proves end-to-end acceptance. ## Verification Re-run the harness from recorded commands and compare raw results. Demonstrate a cancelled session cannot affect the next session. 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 NFR-PERF-001–005, FR-PRIV-002–003, FR-RAG-003; OD-05; architecture §§4, 9.6–9.7 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#4
No description provided.