draft: the adaptive window is the serial drafter's; a block drafter keeps its depth

RADIANCE_DRAFT_ADAPT prices a draft as one more round of the head. A block
drafter proposes its whole block in one pass, so it is not that trade; with
a block drafter the engine now turns the policy off before the first step
and says so. New sched_test case.
This commit is contained in:
keptn42 authored and StillDeadcode committed 2026-10-07 11:10:19 +02:00
1 parent 76727fa050
commit 1e27172c14
4 files changed
+48

No files matched your search

+2
View File
@@ -410,6 +410,8 @@ int Engine::step_loop() {
* collected, and a pass issued ahead would have overwritten them by then. */
pipelining_ = !cfg_.kld() && drafter_.kind != RAD_DRAFT_BLOCK &&
(serial_drafting() || cfg_.n_spec <= 0);
/* The adaptive draft window prices serial rounds; a block drafter keeps its depth (scheduler.h). */
if (drafter_.kind == RAD_DRAFT_BLOCK) sched_.draft_adapt_off("a block drafter");
const bool t_on = (int)log_level() >= (int)Log::Debug;
/* Read once. See the block in the idle branch below for what it is for. */
/* "kv" | "arena" | "all" | "kv:<name>,<name>" -- the last narrows the KV scrub to named groups,