Skip to content

train 1115184313: #2687 #3012 #3014 #3018 (CI only) - #3453

Closed
ashhart wants to merge 23 commits into
mainfrom
lead/train-1115184313
Closed

ashhart wants to merge 23 commits into
mainfrom
lead/train-1115184313

Conversation

@ashhart

@ashhart ashhart commented Nov 15, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #2687 #3012 #3014 #3018 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.

ashhart and others added 23 commits November 15, 2026 21:18
A stream count's first all-plain trial pays one-off costs, and blending
each later trial a fifth of the way kept that slow sample in the plain
price for hundreds of rounds, so near-even drafts kept drafting. The
first trial is now a warm-up whose sample is dropped (the existing
allocator stays in charge until the next trial, `every` rounds on), and
each later trial replaces the plain point. Natural plain rounds still
blend as before; `due` is unchanged.
Off unless TF_SHARED_PRICE_LOG=1. A common-scope environment.zig row
refuses any other text by name when a server starts, and the lane core
reads it through the same parser at an engine's first priced shared
round, which then logs the load-time shared forward costs and head
steps. Each priced shared round after that logs one line: its trial
flag, rows, time, the forward's table time, each stream's verified
drafts and next depth, the plain and row prices the depths were chosen
by, and each stream's acceptance estimates. Nothing it logs feeds back
into a decision.
Keep the measured plain intercept while the row learner owns its signed slope.
Exercise both prices, the plain-width floor and all three measuring allocators.

Refs #2605.
…runs it

"a reply's end is born with its request's prompt" built its reply stream
without history_len, so keepEnd pinned nothing. Since a reply supersedes
equal-born states on its token path (e5f75e8), the request's own
history went first and the other conversation's state stayed: the test
failed, and no build step ran it. The served host names the history on
every request that keeps one, the pin 3487174 added; the test now does
too. test-qwen27-reply-cache-host runs it. Serving is unchanged.
… metrics (#2135)

Each queued request holds one wait reason, decided where the host last tried to admit it (pick, choose, a family planner's wait or skip, takeJob's ledger promise) and cleared on admission; publishing the ledger only counts the stored reasons and never asks the family's pool. The planner's Verdict carries the reason with its wait or skip, and DeepSeek-V4.1 names kv_pool, memory_floor or prefill_concurrent from its own counters, so the floor is never reported as memory_pressure.

/metrics gains requests_waiting_by_reason{reason} (all ten labels, summing to requests_waiting), request_failures_total{reason}, restore_fallbacks_total and request_refusals_total{reason}; /v1/load gains waiting_by_reason and refusals. Refusals are counted where the chat, embeddings, rerank and speech routes answer with a client code, and every reply's bytes are unchanged. Shape B as designed by devopsfortunato on #2196.

Co-authored-by: devopsfortunato <57877156+devopsfortunato@users.noreply.github.com>
…est, DeepSeek's mapping tested on the host (#2135)

request_refusals_total gains the admission flags' 429s under the code each reply carries (max_inflight_exceeded, max_inflight_per_key_exceeded, admission_capacity_exceeded, requests_per_second_exceeded), counted once at the request gate, and an images engine's busy 503 as engine_busy. request_failures_total is now always shown, the server's count beside the host's: the chat routes' 500 for a stale device is engine_stale, and a family planner's refusal, a failed reply with its own words and no code, is planner_refused.

A begin that reports its saved entry damaged and the pass that then reports the failed restore count one fallback: each request carries whether its fallback is counted. DeepSeek-V4.1's verdict mapping moves from sched_host.zig into sched_verdict.zig, which a new host step (test-dsv41-wait-reasons-host, in both nightly DeepSeek lists) drives through a real lane host round into the ledger. The docs say the stored reasons are as of the last admission attempt. Every reply's bytes are unchanged.
…2370)

TF_QWEN27_SLOT_RESUME, TF_QWEN27_METAL_KV_PAGES, TF_QWEN35_METAL_KV_PAGES,
TF_SLIDE_FIT_REDUCE, TF_SLIDE_TAKE_OUT_CHECK and TF_SLIDE_TAP_CHECK get
rows in platform/environment and are read through it, so a malformed
value is refused by name instead of read as a default. Unset or blank
keeps today's defaults: resume on, pages off, the ordered fit reduction,
both checks off. The two check switches move from on-when-set to exact
0 or 1. The two KV-page switches and the tree reduction get profile rows
(arithmetic until a token-hash run says otherwise), and the docs list the
six in the strict table.

Host tests: each switch's forms, blank as unset and named refusals,
valid-form coverage for the new rows, and profile-line reporting.
…rt (#2370)

TF_SLIDE_FIT_REDUCE leaves this change: its only reader, fitDevice, takes
living.pocket_fit.DeviceFit, which does not exist, so nothing compiles
it. Its row, profile entry and reader go back to main, and it stays in
the lenient list.

TF_SLIDE_TAKE_OUT_CHECK is read once when the server starts with --slide
and kept in the config, so a malformed value is refused there by name
instead of being logged at every kept lesson.

Host test: the start-up read with and without --slide, and its refusals.
…600 with slide_take_out_check

Comment-only: Config keeps every field and default.
@ashhart
ashhart force-pushed the lead/train-1115184313 branch from 6d62732 to 32826b6 Compare November 15, 2026 21:18
@ashhart

ashhart commented Nov 15, 2026

Copy link
Copy Markdown
Owner Author

CI red on this tip (zig); the PRs go on as two smaller trains.

@ashhart ashhart closed this Nov 15, 2026
@ashhart
ashhart deleted the lead/train-1115184313 branch November 15, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant