#:schema ../schema/work.schema.json [govctl] id = "WI-2026-06-03-001" title = "Implement CP shared-KV batch owner-lane allocation" status = "done" created = "2026-06-03" started = "2026-06-03" completed = "2026-06-03" refs = ["RFC-0001"] [content] description = "Implement RFC-0001 W2 so CP shared-KV extend allocation supports real batch-size greater than one through owner-lane allocation instead of legacy multi_batch fallback. Scope includes request-local owner planning at allocation time, batch-aware alloc_extend_compute_owner support, owner-lane capacity behavior, and focused unit tests." [[content.journal]] date = "2026-06-03" scope = "gov" content = "Created active work item for RFC-0001 W2 implementation and defined acceptance criteria." [[content.journal]] date = "2026-06-03" scope = "plan" content = "Wrote implementation plan docs/superpowers/plans/2026-06-03-cp-shared-kv-batch-owner-lane-allocation.md covering RFC-0001 clauses and tests." [[content.journal]] date = "2026-06-03" scope = "implementation" content = "Implemented W2 batch owner-lane allocation: added request-local batch owner planner, routed supported bs>1 CP shared-KV extend allocation through alloc_extend_compute_owner, removed allocator bs=1 guard, added bs>1 no-legacy-fallback, owner-lane invariant, capacity wait, unsupported fail-fast, and bs1 compatibility tests. Compliance checker returned COMPLIANT. Local py_compile and govctl render/check passed before remote verification." [[content.journal]] date = "2026-06-03" scope = "verification" content = "Remote uv verification passed on ubuntu@10.20.32.33:/mnt/beegfs/qjs-work/sglang after rsync source-only sync excluding binaries and caches: test_nsa_cp_utils.py ran 39 tests OK; test_cp_shared_kv_layout.py ran 34 tests OK; test_alloc_pages_with_owners.py ran 10 tests OK. Non-fatal warnings observed: missing Python.h during CUDA utils probe and Triton unsupported CPU fallback." [[content.acceptance_criteria]] text = "CP shared-KV batch-size greater than one derives request-local page owners and enters owner-lane allocation" status = "done" category = "added" [[content.acceptance_criteria]] text = "Batch-aware alloc_extend_compute_owner returns flattened request-token order locations whose new pages match expected owner lanes" status = "done" category = "added" [[content.acceptance_criteria]] text = "Supported CP shared-KV batch-size greater than one no longer uses legacy multi_batch fallback" status = "done" category = "fixed" [[content.acceptance_criteria]] text = "Owner-lane exhaustion for batch-size greater than one raises KVCapacityWaitError with lane diagnostics instead of falling back" status = "done" category = "fixed" [[content.acceptance_criteria]] text = "Batch-size one owner-lane allocation remains compatible with existing behavior" status = "done" category = "chore" [[content.acceptance_criteria]] text = "Focused W1/W2 unit tests pass in the remote uv environment" status = "done" category = "chore" [[content.acceptance_criteria]] text = "govctl check and govctl render pass" status = "done" category = "chore"