[P0] D02: Define the reproducible bilingual workload and TTFT benchmark envelope #3

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

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

Outcome and scope

Specify a versioned synthetic English/Malay/mixed workload with representative ACL scopes and the benchmark parameters needed to evaluate models and the final application.

Dependencies and gates

Engineering prerequisites: None — ready to start.

Envelope drafting is immediately actionable. Approved values are required for performance acceptance and final model/runtime selection.

Starting points

benchmarks/workload/; docs/benchmarks/workload.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

  • Product/platform owners approve maximum question size, candidate counts, reranking setting, context-token limit, corpus/index scale, client/network profile, error threshold and queue/resource bounds.
  • Define ten simultaneous active turns and p95 browser-submit-to-first-rendered-generated-token <= 1.0 second; queueing, authorization, retrieval and prefill are included.
  • Record server-side and browser-side TTFT separately, warm-model main runs, cold starts, sample count, percentile calculation and reproducible arrival/concurrency method.
  • Versioned fixture seeds and a result template capture model/runtime/hardware, p50/p95/p99, throughput, errors and resources.

Verification

Replay the fixture schedule and confirm exactly ten overlapping active turns. Review measurement definitions and obtain product/platform sign-off.

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–004; OD-05–06; architecture §9.6

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:** D02 | **Priority:** P0 | **Phase:** M0 — Decisions and feasibility ## Outcome and scope Specify a versioned synthetic English/Malay/mixed workload with representative ACL scopes and the benchmark parameters needed to evaluate models and the final application. ## Dependencies and gates **Engineering prerequisites:** None — ready to start. Envelope drafting is immediately actionable. Approved values are required for performance acceptance and final model/runtime selection. ## Starting points benchmarks/workload/; docs/benchmarks/workload.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 - [ ] Product/platform owners approve maximum question size, candidate counts, reranking setting, context-token limit, corpus/index scale, client/network profile, error threshold and queue/resource bounds. - [ ] Define ten simultaneous active turns and p95 browser-submit-to-first-rendered-generated-token <= 1.0 second; queueing, authorization, retrieval and prefill are included. - [ ] Record server-side and browser-side TTFT separately, warm-model main runs, cold starts, sample count, percentile calculation and reproducible arrival/concurrency method. - [ ] Versioned fixture seeds and a result template capture model/runtime/hardware, p50/p95/p99, throughput, errors and resources. ## Verification Replay the fixture schedule and confirm exactly ten overlapping active turns. Review measurement definitions and obtain product/platform sign-off. 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–004; OD-05–06; architecture §9.6 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#3
No description provided.