review fixes of the block drafter's short block (independent review)

- declare_drafter: a block drafter's proposal_pitch, now the row pitch the engine reads row s
  at, defaults to depth (it defaulted to 1, which a pitch-reading engine would take as packed
  rows: wrong drafts from the second sequence and a read past the readback) and is refused
  under depth. The engine's fallback goes.
- run_block_drafter: hysteresis -- the short block goes on at --draft-short-from decoding
  sequences and off only two below, so a load wavering at the threshold does not switch the
  block (a new pass shape, the adaptive estimates) every step. Comment: the proposals are for
  the next step.
- block_begin's comment: after a long block a short one's reservation stops short of the trunk
  step's end; the rejected rows past it land on freed pages with slot -1, which every kv_store
  drops. Named as the load-bearing rule it is.
- The --draft-short-from warning names a serial head as such; the arch_test stub returns the
  real builder's codes.
- build_test: the pitch's default and refusal.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
mici81andClaude Opus 5.5 committed 2026-10-23 11:24:45 +00:00
1 parent 90e14c5015
commit da52bc8593
6 files changed
+55 -9

No files matched your search

+6 -2
View File
@@ -2374,8 +2374,12 @@ void Scheduler::serial_end(int rounds_done) {
* also propose. Called while plan() still describes that step, because the context pass mirrors
* it exactly, rejected suffix included: the drafter reads hidden states positionally from its
* own buffer, so batch row i must be buffer row i. The rejected positions lie in [n_computed,
* n_computed + block), which the query pass overwrites before anything reads them, and the
* ensure() below covers them since n_computed + block reaches the trunk step's own end.
* n_computed + the trunk step's block), which a query pass overwrites before anything reads them.
* The ensure() below covers n_computed + `block`; with the block the trunk step verified that
* reaches its end. A short block (rad_drafter_short_block) after a long one does not: rejected
* rows past it fall on pages the commit's rollback freed, whose slot is -1, and every kv_store
* drops a negative slot. That rule is what keeps such a step from writing into another
* sequence's pages.
*
* On the card the step has not committed yet. The step began at n_computed (a row issued ahead
* was staged at its furthest reach; it really continued from the committed end, as commit()