Parent: SPARK-CROSSOVER contract #47.
Outcome and ownership
Build the smallest reusable, independently checked native measurement path for the frozen AIEN/vLLM concurrency comparison. Extend the existing benchmark/evidence lane and #44 .om migration; do not fork a second benchmark framework or replace the serving engines.
Actual source to inspect first
- src/harness/llm_stream.rs: StreamConfig, request_body, RequestSample, summarize, distribution. Current code sends one configured prompt repeatedly; it does not provide the complete heterogeneous workload/sweep protocol in #47.
- src/harness/sse.rs: fragmented/coalesced HTTP/SSE framing and read timestamps.
- src/evidence.rs, bench_verify_records and bench_index: existing status/provenance checks and discovery index.
- Core #710/#714 native receipt arithmetic and their current successors: reuse valid .om facilities and tests, do not duplicate the 27B owner.
- Root Cargo.toml has historical ../canonical-branch-native-runtime path dependencies; a clean checkout currently cannot assume those local-only APIs exist. Resolve reproducible build/source pins with #44's owner, not by creating a phantom repo or reviving removed MAX. Treat Rust paths as existing semantics/oracle/migration input, not permission for new permanent first-party Rust implementation.
Deliverables
- A versioned campaign profile/manifest and deterministic request list with IDs, exact input/template/tokenizer hashes, per-request stopping/sampling parameters and workload stratum. Bind all #47 frozen fields to artifacts rather than unchecked free-text labels.
- Engine-neutral native .om request driver with bounded closed-loop concurrency, replacement policy, monotonic scheduled/enqueued/sent/first-byte/first-content/last-content/DONE timestamps, all outcomes and full trial wall interval. Include connection/setup boundaries, timeout, cancellation and client CPU saturation checks; freeze whether connection time belongs to latency.
- Thin AIEN and vLLM external endpoint/config adapters, not runtime replacements. Verify /models plus loaded artifact/provenance; fail on wrong model/backend, unsupported options, hidden CPU/other-engine fallback, incompatible tokenizer/context or missing capability. Same native driver and request bytes where semantics match.
- Verified backend token counts cross-checked against pinned tokenizer/reference fixtures; record visible/reasoning/special/output token policies. No one-SSE-event-equals-one-token rule. Missing reliable accounting yields explicit unavailable token metrics, never a speed claim. Average client-observed TPOT is labeled separately from true token-level ITL.
- Explicit cold-prefix/no-reuse and warm-prefix setup/reset; record prompt reuse/cache hit state. Setup/load/compile timing is separate from steady-state timing. A candidate must not silently remove validation or use a shorter task.
- Offline deterministic summarizer computes completed-output throughput, input throughput separately, request/SLO-qualified output goodput, failure/early-EOS distributions, TTFT/TPOT/e2e p50/p95 with N, paired run-block ratios/intervals and #47 crossover dispositions. Preserve zero-denominator/zero-goodput and partial/nonfinite cases; do not silently drop failed attempts or time.
- Complete manifest: source/build/compiler/seed/native binary/container/model/tokenizer/quantizer/config hashes, hardware/software environment, commands/exit codes, machine state, exact request/outcome logs, invalidation reasons and all replications. Additive schema extension preserves old immutable records.
- Clean-checkout offline replay command reproduces tables/curves and rejects edited/missing raw data or wrong hashes. Independent evaluator uses separately reviewed calculation/fixtures or disclosed external reference, not candidate self-certification.
Test cycle and acceptance
Write failing tests, reproduce RED, implement smallest .om change, run GREEN and relevant aggregate gates:
- Fragmented UTF-8/HTTP/SSE, many events per read, role-only/usage-only/reasoning chunks, zero content, absent usage, malformed/truncated stream and missing DONE.
- Non-2xx/busy, read/write/connect timeout, disconnect/cancel, out-of-order responses, no duplicate/lost request, bounded memory and zero successful requests.
- Inconsistent/token-inflated usage; synthetic known token counts and exact throughput denominators; early EOS vs max_tokens.
- Cache state leakage, wrong artifact/precision/model, missing profile fields, dirty/stale binary manifests and forged evidence.
- Concurrency refill/drain and timing boundaries; slow producer/consumer; client bottleneck detection.
- Correct output math with unequal lengths, failures and SLO misses; quality gate failure cannot become a winner.
- Planted summarizer mutants (count prompt tokens as output; count events as tokens; omit failed-run time; invert ratio; replace max with actual length; falsely assert equivalence from overlapping intervals) must fail.
- Host fixture suite, mutants, exact-head CI and independent review pass; host PASS is not a GB10 performance result.
- Reproduction/runbook invokes actual implemented commands; no pseudo-command claimed executable. Preserve raw old evidence and current gates.
Dependency
Profile/schema freeze from #47 precedes final implementation. Native host work can proceed while model inventory and exclusive run authorization are pending. Physical run/report waits for this host-qualified artifact.
Delivery boundaries
This is a bounded user-requested benchmark campaign, not a new serving engine or master plan. Read current AGENTS.md, PLAN_AUTHORITY, CURRENT_EXECUTION_PLAN, worktree claims and open PRs before changes. Preserve existing owners; one writer per shared path. New first-party implementation/tests use seeded handwritten .om under native judge migration #44; reuse existing measurement semantics and independent external oracles. vLLM is an explicitly isolated external comparison arm, never a hidden production dependency. Missing .om facilities go to the compiler/adapter owner rather than a permanent Rust/Python replacement or revival of frozen C kernels. Source/host tests, GB10 runs, qualification and deployment are separate states. No gate weakening, auto-merge, service interruption, new software/model installation, driver changes, unreserved GPU work or live deployment is authorized by creating this issue. Hardware execution requires an existing authorized exclusive window with the serving/Spark owner; otherwise finish offline work and report BLOCKED/NOT_RUN precisely. Do not load a second model beside the resident service. No private prompts, weights, credentials or customer data in public receipts.