Commit Graph
1 Commits
Author SHA1 Message Date
Niko1221 5152c03663 --batch-mtp: the slot's own draft counters reach the response (#5890)
With --batch-mtp the proposals are checked in the slot windows and were counted only in the engine's totals and its log, so every response of a batch-path
request read timings.draft_n = 0 and draft_n_accepted = 0 (and last_timings) while /metrics and the log showed real drafting; users read it as "MTP is off".

Each batch slot now counts the proposals its windows checked and kept (both the serial and the pipelined group path), and its BDONE line ends with
` drafts=<checked>:<kept>` (nothing is added for a slot that checked none; an older server ignores the key). The server's _apply_bdone adds them to the admission's
DONE counters, which feed the response and the per-request record.

Tests: terminal/serve/test_parallel.py BatchDraftCounters (fake engine with --drafts: the response record reads them; without the key it reads as before),
engine/src/program/bdone_drafts_test.cpp (the text).
2026-11-19 11:09:13 +01:00