Problem
Request lengths change during serving. Existing split decode, paged attention and reservations should be reused while assigning uneven attention work efficiently.
Scope
Add a bounded plan containing per-CTA work, split/reduction maps, stable workspace addresses and explicit shape/capacity limits. Reuse plans across compatible layers. Keep serving admission and request policy in the model-serving consumer.
Acceptance
- Plan and execute batches with heterogeneous query/KV lengths without padding all work to the longest request.
- Preserve fixed workspace capacities and detect overflow/stale plan/changed page table before submission.
- Reuse existing reservation/seal behavior; no hidden allocation during sealed execution.
- Document deterministic assignment and reduction order, with comparisons to the current attention path.
- Exercise empty requests, maximum limits, changed lengths, reused pages and plan-generation mutants.
- Benchmark CPU planning, plan upload, GPU execution and end-to-end latency separately; establish when cross-layer reuse amortizes planning.
Research: FlashInfer (https://doi.org/10.48550/arXiv.2501.01005), especially plan/run separation and deterministic ragged scheduling. Reimplement transferable mechanisms in the native stack; no CUDA JIT dependency in deployment.
Evidence and closure
Review baseline: 232332422bfdc31c8918085b50f13c1e18ab702e; re-inspect the current tree and reuse existing work before editing. Coordinate with #5 and #6 and the serving/chip-window owner; host work can proceed independently of hardware scheduling. This issue does not authorize interrupting the live motor or switching kernel drivers.
Publish exact source/pin SHAs, build and binary hashes, commands, exit codes, hardware/driver identity, raw logs and relevant negative controls under evidence/. Separate host, simulator and GB10 results. Hardware acceptance needs a real coordinated GB10 run on the final integrated artifact. Keep CUDA userspace dependencies out of the deployed runtime. Do not close on a branch push, simulator-only hardware result or PR merge alone. Experimental issues may close with a reproducible negative result and explicit decision; do not claim an optimization shipped unless its integration gates pass.