[Core] Native NIXL and Mooncake store halves on the native input path
Requests took the native input path only without a KV connector, because
the native connector halves still read the Python request at their edges:
NIXL's `add_request` parsed and truncated it, and Mooncake's metadata
referenced its id and `block_hashes` objects. Let them work from the Rust
request and the wire, as the Rust-first direction has it; Python KV
connectors keep the Python input path and their Python requests.
- NIXL: `NixlKvTransferParams::from_wire` parses `kv_transfer_params` as
they come in the add request, to what parsing the dict Python decodes
from them gives. `NixlKvConnector::add_wire_request` truncates a P-side
prompt in the Rust request (`truncate_request_for_prefill`, as
`_truncate_request_for_prefill`) and registers the params; the binding
then gives the `NativeAddRequest` the truncated prompt the workers read.
The input thread keeps requests whose only extra arg is
`kv_transfer_params` on the fast path when the half is native.
- Mooncake store: the binding context has no Python request for a native
one, so the metadata is built from the Rust request.
- `NativeAddRequest` exposes `kv_transfer_params` as `Request` reads them,
and takes `abort_immediately`, which the engine sets on a request it
rejects while paused so that the connector frees what it holds.
- The native input path is off only with a Python KV connector
(`RustScheduler.kv_connector_impl`); `set_connector` refuses a Python one
while native requests are in the scheduler.
Tests: the native input fuzzer runs the NIXL and Mooncake store samples
(and catches a parser that drops `do_remote_prefill`); unit tests for the
wire parser and the P-side truncation, which the fuzzer's layouts do not
reach.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CJckC9nFcrpLQhRK5vTJZU
Signed-off-by: Bugen Zhao <i@bugenzhao.com>