Skip to content

feat: add release tag workflow - #753

Merged
zhyncs merged 1 commit into
sgl-project:mainfrom
zhyncs:rel-tag
Jul 26, 2024
Merged

zhyncs merged 1 commit into
sgl-project:mainfrom
zhyncs:rel-tag

Conversation

@zhyncs

@zhyncs zhyncs commented Jul 26, 2024

Copy link
Copy Markdown
Contributor

Thank you for your contribution, we really appreciate it. The following instructions will help improve your pull request and make it easier to receive feedback. If there are any items you don't understand, don't worry. Just submit the pull request and ask the maintainers for help.

Motivation

Please explain the motivation behind this PR and the goal you aim to achieve with it.

Modification

Briefly describe the changes made in this PR.

Checklist

  1. Ensure pre-commit pre-commit run --all-files or other linting tools are used to fix potential lint issues.
  2. Confirm that modifications are covered by complete unit tests. If not, please add more unit tests for correctness.
  3. Modify documentation as needed, such as docstrings or example tutorials.

@zhyncs
zhyncs merged commit eeb2482 into sgl-project:main Jul 26, 2024
@zhyncs
zhyncs deleted the rel-tag branch July 26, 2024 19:37
timethink pushed a commit to timethink/sglang that referenced this pull request Mar 9, 2025
cherryblo added a commit to cherryblo/sglang-project that referenced this pull request Jul 2, 2026
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 18, 2026
…ded in (same resolution seam)

Item 2. sgl-project#735 delivered the desk half -- crossing_schedule says which crossings
exist, route_schedule binds each to a transport -- and moved no tensor. This is
the forward wire that consumes both.

WHY IT IS A MODULE AND NOT INLINE. The model's loop is boot-only territory: a
wire written inside it can only be tested by booting, and F4-r5 owns the cards.
pp_crossing_wire.py is the same logic as a small object with an injectable
link, so the crossing algebra, the ordering, the counting and the byte-identity
of the contiguous path are all hermetic. qwen3_5.py gains two call sites and no
logic.

BYTE-IDENTITY IS A NULL OBJECT, NOT A BRANCH. Without a layer set, or with the
wire flag off, build_wire_for_model returns NoCrossingWire whose hooks return
their arguments unchanged. The loop calls the same two methods either way, so
the default path cannot drift from the wired one by acquiring a branch only one
of them takes.

ONE MECHANISM, NOT TWO INTERLEAVED. My first test asserted a contiguous set
yields the null wire; that was wrong and the module was right. A contiguous
3-stage split still has 2 crossings -- the stage boundaries the old
pp_proxy_tensors return carried. The wire takes ALL crossings rather than
splitting the job with the old path: two mechanisms exchanging activations in
the same loop is how they drift apart, and the boundary case is the one the old
path already got right, which makes it the cheapest place to prove the wire
equals it. Test corrected, module unchanged.

THE OBSERVABLE. log_routing() had ZERO callers, so "31 crossings observed" was
a claim no run could evidence. build_crossing_wire calls route_schedule +
log_routing when given a peer map, and a test asserts the "31 crossings" line
appears.

HOST-STAGED BY THE RIG, NOT BY CHOICE. PpGroupLink rides the PP group's
tensor-dict path; can_access_peer is false on all six directed pairs, so every
crossing is GPU->host->GPU. That is the path sgl-project#735 priced at 24.68 ms/pass over
31 crossings, so wire and cost model agree by construction.

sgl-project#754 FOLDED IN -- it is the SAME resolution seam, verified by reproducing it:
get_pp_layer_set read the process-wide env regardless of pp_size, and the TP
stack re-reads it during a phase flip with pp_size=1, where a 3-stage string is
not merely inapplicable but invalid ("3 stage(s) given but pp_size is 1"). A
flip with nothing to do with layer sets died on it. A single stage owns every
layer, so the set form has nothing to express: pp_size <= 1 now answers None
and hands the caller back to get_pp_indices -- the correct contiguous answer
rather than a suppressed error. Pinned with a can-fail guard that the real
pp_size still resolves AND that a genuinely wrong stage count (pp_size=2) is
still refused, so the exit is not a blanket amnesty.

TEST RESULTS

test_pp_crossing_wire_753.py: 17 green. The load-bearing one is the BYTE GATE
-- a full simulated forward driven through the wire must equal the same layers
computed straight through, exactly, for BOTH the contiguous split and the
user's gapped target layout. The layer function is order-sensitive on purpose
(h = h*3 + id), so a skipped, duplicated or reordered crossing changes the
number instead of looking close. A can-fail test drops one crossing and
requires the result to diverge.

Also pinned: crossing count == schedule length (31 for the target layout, the
figure sgl-project#735 priced); per-rank sends/receives match the schedule; every failure
path refuses BY NAME rather than continuing (a failed recv, a None payload, a
failed send); the model entry point returns the null object without the flag.

test_pp_layer_set_contiguity_753.py: 10 green (7 gate + 3 for sgl-project#754).

Full distributed suite: 27 failed / 2983 passed, compared PER SUITE against the
pre-753 baseline -- ZERO new failures. sgl-project#749 leak guard silent. One baseline
failure absent (test_bar1_host_cleanup's pgrep self-match, environment
sensitive) and NOT claimed as a fix.

AST-verified that both hooks sit inside the owned_layer_ids loop rather than
merely appearing in the file.

Ruff: pp_crossing_wire.py clean. qwen3_5.py reports one F401 (triton),
verified PRE-EXISTING against HEAD's blob. Codespell clean.

Hermetic throughout, CUDA_VISIBLE_DEVICES=99; no cards touched, no boot.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 18, 2026
The in-process stub proves the crossing algebra, the counting and
byte-identity. It cannot prove the property that matters most across 31
crossings: that sends and receives are ORDERED so three ranks make progress.

A stub mailbox is order-free -- a send is a dict write -- so a schedule that
would deadlock over a blocking transport passes it happily. Real gloo send/recv
block: if rank 0 waits on a receive that rank 1 only posts after its own send,
which rank 0 has not issued, the run hangs. Structurally uncatchable by the
stub, so it gets its own file and its own three processes, using the
multi-process gloo pattern from test_pp_chain_receiver.py:225-243 as prior art.

Result: three ranks make progress over the user's target layout (48 GDN on
stage 0, FA 3..31 and 35..63 on the 3080s), the final rank's value equals the
straight-through model, and the crossings carried sum to exactly 31 -- the
figure sgl-project#735 priced. Every child carries a hard timeout, so a genuine deadlock
fails the test in bounded time rather than hanging the suite.

ONE FIXTURE DEFECT OF MINE, CAUGHT AND FIXED. The first run failed the byte
gate at 4.292105e30 vs 4.292104e30 -- agreement to seven significant figures,
which is exactly float32's limit. The wire was fine; my layer function
(h*3 + id over 64 layers) simply outgrew the transport's dtype, so the
comparison was measuring float precision rather than the wire. Replaced with
bounded modular arithmetic that stays exactly representable.

Bounding it could in principle have destroyed the order-sensitivity the gate
depends on -- a commutative or saturating function would let a skipped layer
pass -- so that is now its own can-fail test: the fixture must still detect a
deliberately skipped layer. A guard on the guard.

3 tests green. Ruff and codespell clean. Hermetic, CPU-only, no CUDA and no
cards (CUDA_VISIBLE_DEVICES=99).
efschu added a commit to efschu/htsglang that referenced this pull request Aug 18, 2026
…- fix/753-on-harvest@8f2094f62b

The blocker row flips from ABSENT to PREPARED: all three sgl-project#753 commits
cherry-picked clean onto composite tip b7e6a41 (zero conflicts; the
- sgl-project#754 seam had no competing resolution, exactly as the map
adjudicated), plus a root-caused fix for the picked gloo suite's
order-dependent flake -- a collection-time foreign-worktree sys.path
prepend in test_prefill_graph_barlink.py poisoned every later spawn
child; removed, and the gloo test hardened with a module-top
__file__-derived pin. Distributed selection 105 passed / 0 failed vs
the tip's 75/0 baseline; byte-gates, the 31-crossing pin, and the
3-process gloo suite green. F4-r5 merges one branch; nothing was
merged into their composite from here.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 18, 2026
…roup attribute

current_stage_layer_set() read getattr(get_pp_group(), 'num_hidden_layers',
None), but no site in the tree ever stamps that attribute onto the group
object -- so on every live process it returned None and stage_owned_layer_ids
degraded to the interval test. The v7 gapped boot (2026-08-18 17:30Z) showed
the consequence: configurator cell_size=0 on PP0, pool still sized for the 15
span layers, KvVmmArena reserved=22.6 GiB, cuMemCreate OOM at 49s. The desk
tests all passed owned= explicitly and never walked the lookup.

Fix: when SGLANG_PP_LAYER_SET is present and the attribute is absent, derive
the layer count from the set string itself -- parse_pp_layer_sets enforces
full cover of [0, N), so N == max(layer) + 1 exactly. No env means None
without touching the group (contiguous path byte-identical); pp world size 1
still answers None (sgl-project#754); a stamped attribute still wins.

Tests: test_stage_layer_set_live_resolution_753.py, red-first proven (7
failed on the unfixed tree), plus the existing arena sizing suite -- 28
passed.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 18, 2026
…yer must produce

Boot v7pp4 built every pool and then wedged with no crash. The py-spy dump
named the cycle exactly: PP0 blocked in the crossing wire's receive for
layer 4, PP1 and PP2 blocked in the scheduler's stage-boundary receive
waiting for a 'proxy' message PP0 could not send until its forward finished
-- which required layer 3, on PP1. Two defects sit behind that.

THE ENTRY PROTOCOL. Contiguous ownership lets a rank wait for its
predecessor's finished hidden states and only then enter the forward loop,
because each stage's layers form one uninterrupted span. A gapped set
INTERLEAVES the spans, so that wait closes a cycle by construction. The
crossing wire was built and tested against a bare gloo group; it was never
run against the scheduler protocol that decides when a rank may enter the
loop at all, and that protocol is where the deadlock lives.

So under a gapped set the stage-boundary handoff is not merely unnecessary,
it IS the deadlock. pp_gapped_ownership_active decides the protocol once,
from the set itself; _pp_recv_proxy_tensors and _pp_send_dict_to_next_stage
each state the consequence in one place rather than at every call site; and
the model accepts a None entry only when its wire reports
provides_entry_activations, so a set that is gapped without a crossing into
some stage's first layer still fails loudly instead of computing on
uninitialised hidden states. A contiguous set expressed through the set
mechanism is deliberately NOT gapped -- it keeps the transport that carries
it.

THE SHARED CHANNEL. 'output' dicts ring from the last rank to rank 0, which
on this cut is the SAME directed pair as PP2 -> PP0's crossings; the wire
received untyped while the scheduler stashed into a private inbox, so either
consumer could take the other's message off the wire. Demonstrated, not
inferred: pre-fix, a crossing receive returns the output dict and would hand
sampled token ids to a decoder layer as hidden states -- silent wrong output,
the sgl-project#753 defect in a new costume. pp_typed_channel gives the channel one
inbox, on the group, keyed by (src, kind). The source is part of the key
because PP0 receives crossings from BOTH peers, and keying by kind alone
would serve one peer's activations to a receive that named the other.

Single micro-batch under a gapped set, and async depth and the phase flip
refused by name: execution is a strict ping-pong, so extra slots hold no
work and their crossings would be indistinguishable on one ordered channel.

TESTS. test_pp_gapped_entry_protocol_753.py, 18 passing. Red before the fix:
the collision test returns the output dict, and provides_entry_activations
did not exist. Full test/registered/unit/distributed: 3018 passed, 29
pre-existing failures in test_prefetch_progress_symmetry_580,
test_stock_dcp_allocator_reach_487 and test_uneven_dcp_pool_geometry --
verified identical at HEAD in a scratch worktree, none touching this path.
ruff clean on all changed files (2 remaining findings pre-existing).

Not yet booted: this is the desk half. The boot is next.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 18, 2026
…ved the output wire

v7pp5 got a full 64-layer forward across the gapped cut -- 122 prefill
tokens, 31 crossings carried, no wedge where v7pp4 died -- and then wedged
one stage later, in the output ring.

Forcing pp_loop_size to 1 was the cause and it was my error. The loop
launches exactly ONE slot's forward per iteration whatever the ring size, so
a smaller ring bought no serialisation that the ping-pong did not already
have. What it destroyed is the ring's FILL SLACK: the output stage works on
slot next_mb_id, and with a single slot that is the batch just launched --
never None -- so the first iteration blocks on a message no upstream has
produced yet. The dump named it exactly: PP0 already into the next decode
pass at layer 4, PP1 and PP2 both in the output receive. Rank 0 had taken
PP2's output and sent nothing onward, because a non-last rank sends only
'if pp_outputs' and its own was still None, while its own receive had
already been satisfied. Asymmetric ring, and one slot removed the slack that
hides the asymmetry during fill.

With the ordinary ring size the unfilled slot is None and that receive
returns early -- which is how the contiguous path absorbs the same fill, so
this is not a gapped-specific concession but the mechanism that was always
there. The async-depth refusal is corrected to say what it actually
protects: async depth commits the output stage BEFORE the launch, which is
what lets a rank enter the next forward while a peer is still in the last
one's output exchange.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 18, 2026
…ve each rank its own footprint file

TWO FINDINGS FROM BOOT v7pp6, which reached the same stall as v7pp5 and
proved the ring SIZE was never the cause.

THE LAG, not the size. Outputs originate at the last rank and travel
2 -> 0 -> 1 -> 2, and a middle rank forwards 'pp_outputs' -- what it received
LAST iteration. On the first pass rank 0 therefore has nothing to forward and
rank 1 blocks on a send that cannot come until rank 0 has been round again.
The contiguous path never sees this because the proxy chain gates each
stage's forward, so a downstream rank cannot reach its output receive before
the upstream has been through its own; the chain was the stagger that
absorbed the lag. Take it away and the lag is exposed -- PP0 at layer 4 of
the NEXT decode pass while PP1 and PP2 sat in the output receive, in both
v7pp5 and v7pp6.

A gapped set is in lockstep by construction, because the crossings are a
rendezvous, so there is no stagger to restore. The lag goes instead: a middle
rank receives FIRST and forwards what it just received, same iteration. The
last rank still sends first -- it is the source and already holds this pass's
outputs. One pass, no debt carried across iterations. The shipped ordering is
untouched; 'forward_now' defaults to None and reads exactly as before.

THE FOOTPRINT FILE. The ledger's dump was keyed by tp_rank, which under pure
pipeline parallelism is 0 on every rank, so all three wrote
phase_footprint_rank0.json over one another and the ingest saw one card. The
measurements were never wrong -- two of three were destroyed -- and the
ledger went on refusing terms it had in fact measured. Keyed by the
distributed rank, which is unique across the job by definition.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 18, 2026
…ne consumer

Boot v7pp8 booted clean with the ledger no longer refusing, and still died:
PP2 priced at weights 6.248 + mamba 0.384 + pool 11.923 GiB against an 18.55
GiB budget, 0.15 GB free, dead on a 32 MiB decode allocation. The pool was
not mis-priced. There was nothing left for the transients a price does not
cover.

rank_user_reserve_mib is the corridor headroom and it had exactly ONE
consumer in the tree, phase_flip_runtime.py:473. A plain PP boot driven by
--rank-gpu-memory-mib therefore spent its budget to the last MiB, and no
auto-reserve line appears anywhere in the boot log to make up for it.

Held back as a NAMED post, so the planner reads it off the same 'KV budget
posts' line it already consumes rather than re-deriving it -- the discipline
sgl-project#704 established when it made that line the instrument.

GATED TO THE GAPPED PATH. Every shipped configuration was solved against
today's arithmetic; moving the reserve into the posts globally would shrink
each of their KV pools by a gigabyte per card, and no boot here has evidence
for changing solved, measured configurations. The gapped cut is the new path
and the one with the demonstrated OOM, so it is the only sizing that moves.
The corridor is a target and not a floor, so the holdback never drives the
pool negative and says so when it declines.

TESTS. 23 passing, including that a contiguous set and a boot with no layer
set price EXACTLY as before. One test earned its keep immediately: the
'or 1024' idiom copied from the flip path conflates an explicit 0 with unset,
so the reserve could not be switched off. Fixed in the code.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 18, 2026
…re it

v7pp9 cleared the corridor fix and reached a third stall: all three ranks in
_pp_commit_comm_work, three works deep, stuck on the first.

The shipped order flushes last iteration's isends and only then posts this
iteration's receives. That is safe only because every rank sent before it
received, so a send's matching receive was already posted in the same
iteration it was issued. The gapped ordering breaks that symmetry on
purpose -- a middle rank receives first so it can forward what it just got --
and the flush then waits on a receive this iteration has not reached.
Every rank waiting on a send that no rank has posted a receive for is a
closed cycle.

Flushing AFTER the exchange restores the property the flush actually needs:
a send is not waited on until its peer has had the chance to take it. That
was previously supplied by the accident of send-before-receive rather than
stated anywhere. Contiguous boots keep the shipped order untouched.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 18, 2026
…ping it stays that way

A gapped forward is not a pipeline. Every stage owns layers inside every
other stage's span, so a pass is computable only with all three ranks inside
it at once, handing the activation back and forth. The crossings enforce that
WITHIN a pass -- each is a rendezvous -- but nothing enforced it ACROSS
passes, and the stages do not finish together: PP1's last owned layer is 31,
PP0's is 62, so both leave the forward well before PP2 computes 63. Whoever
leaves first reaches the next pass first.

Four boots died of that one fact, each a stage further along. v7pp5 and
v7pp6: PP0 at layer 4 of the next pass while PP1 and PP2 sat in the output
receive. v7pp9: all three flushing sends nobody had posted a receive for.
v7pp10 reached HEALTH 200 and then hung on the first real request with PP0 a
whole pass ahead, blocked in a crossing SEND to peers still in the previous
pass's output exchange.

Each earlier fix removed one WAY to drift -- the entry handoff, the output
ring's lag, the flush order -- and every one of them was a real defect that
had to go. None removed drift itself, because the loop contained no statement
that the passes are collective. This is that statement: one barrier per
iteration, on a path that already cannot overlap passes, so it costs a
rendezvous the layout was paying for anyway. It uses the CPU group, which is
what barlink's bounded barrier hooks, so a dead rank is named rather than
waited on for the full gloo timeout.

Contiguous boots do not take it.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 18, 2026
…is a debt the barrier cannot pay

v7pp11 hung with two ranks already at the iteration barrier and the third
still waiting on an isend those two could only take by moving PAST that
barrier. An isend defers its completion to a flush in a later iteration,
which is a dependency on the peer reaching its next pass -- exactly what
lockstep forbids.

The gapped exchange is already a serialized chain: last rank sends, rank 0
receives and forwards, rank 1 receives and forwards, last rank receives. Every
send therefore has its matching receive posted inside the same iteration, so a
blocking send simply completes. Nothing is queued, nothing is flushed, and the
barrier has no debt to wait on. The overlap an isend buys is worth nothing on
this layout in any case -- the stages cannot compute concurrently, which is
the whole reason the barrier is affordable.

Contiguous boots keep their async sends.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 18, 2026
…ut one slot

v7pp12's barrier timed out after 120s with 'no peer could be proven dead'.
The peers were not dead. They had decided the output exchange was not due,
because the send gate reads mbs[(mb_id + pp_size) % pp_loop_size] and the
receive gate reads mbs[(mb_id + 1) % pp_loop_size]. Those two indices name
the same batch only while the pipeline stagger puts the ranks on different
slots at the same instant. A gapped forward drives the offsets to zero -- all
three stages are in one pass or none progresses -- and the gates then name
DIFFERENT batches. One rank sends, another declines to receive, the ring
starves.

This is the sgl-project#737 lesson one level up, and that commit is the reason to trust
the placement rather than the count: 'the bug was PLACEMENT, not
participation -- every stage calls the function, just never on the same
tick.' sgl-project#737 pulled a collective out of the per-microbatch path because
pipeline stages sit at different offsets by construction. The gapped layout
is the case where that construction does not hold: the crossings ARE a
rendezvous, so on this path the offsets are zero and a per-iteration
rendezvous is sound. It is sound at ONE slot and nowhere else, which is
exactly what v7pp12 measured.

WHY I SET pp_loop_size TO 1 BEFORE AND WAS WRONG ABOUT WHY IT FAILED. v7pp5
starved and I blamed the ring's fill slack -- the unfilled slot that lets a
receive return early during fill -- and reverted in d139c46. The slack was
never the mechanism, only a symptom: a middle rank SENT on 'if pp_outputs',
what it received LAST iteration, while RECEIVING whenever its slot held a
batch, so during fill it received without ever sending. Removing the lag
(4b7ce2a) turned its send gate into 'I received', and
_pp_output_exchange_due now makes that literally the same expression both
sides evaluate. With symmetric gates the slot count stops being a correctness
knob and becomes what it should always have been: how many passes may be in
flight, which a gapped layout fixes at one.

The split is refused by name rather than trusted to stay collapsed, so a
future ring-size change fails loudly instead of starving.

TESTS. 29 passing. Red against 0027603: 4 of the 6 new ones fail there
(the missing predicate, the missing one-slot selection, the send gate not
using the shared expression, the missing refusal); the 2 that pass are the
arithmetic premise -- that loop size 3 really does split the gates -- and are
correctly independent of the fix.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 18, 2026
…h too

Law sgl-project#584 makes the planner/ledger the sole VRAM authority, so this boot drops
the hand-picked --rank-gpu-memory-mib vector and lets the now-calibrated
ledger size each rank from real free VRAM. That moves sizing onto the other
branch of profile_max_num_token -- the one that takes available memory minus
slack -- where the corridor holdback was not applied.

Without it a gapped boot spends the whole CARD instead of the whole BUDGET
and arrives at the same OOM by the other road. Same predicate, same gate,
both branches.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 18, 2026
… idle tick blocks

v7pp17 fired up, warmed up symmetrically on all three ranks, went idle, and
the iteration barrier timed out 120s later with 'no peer could be proven
dead'. No request was ever scheduled -- the stall was in the idle loop, not
in a forward.

The peer was not dead. It was holding a send nobody had any reason to take.
_do_send took forward_now with a None DEFAULT, which made 'no exchange was
due, I received nothing' indistinguishable from 'not supplied', so the gapped
path fell back to the STALE pp_outputs left over from the last pass that did
exchange. On an idle tick the peer's receive early-returns for want of a
batch, so that send matched nothing -- and since gapped sends are synchronous
(0027603) an unmatched send blocks for ever instead of sitting harmlessly
in a queue. The rank never reached the barrier, and the barrier reported
exactly what it could see.

This is my own defect from the previous pass, and it is the last place the
two gates were still different questions: the receive side asked
_pp_output_exchange_due of its slot, the send side asked whether a stale
attribute happened to be truthy. A sentinel makes an explicit None mean what
it says, so receiving nothing sends nothing.

TESTS. 32 passing, three of them pinning this contract: the sentinel exists
and is not None, _do_send defaults to it, and the fallback is keyed on the
sentinel rather than on 'is None'.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 18, 2026
… layer instead of guessing

The gapped forward is silently wrong -- 'Paris' becomes '\n\n' on the very
first prefill token -- and reading has already cleared three candidate
mappings (local_slot, the dense full-attention map, mamba_map). Guessing at a
fourth is not a method.

This logs one line per layer on the FIRST forward only, naming the GLOBAL
layer id and the output norms of hidden_states and residual. Two boots of the
SAME checkpoint under DIFFERENT stage layouts can then be diffed layer by
layer: the first id whose norms disagree is the seam that corrupts, which
localizes the defect without a hypothesis.

The shipped --debug-tensor-dump-output-folder machinery was the prior art to
extend and is the wrong tool here -- it writes whole tensors, and a 64-layer
sweep across two boots is gigabytes moved to compare scalars.

Off unless SGLANG_LAYER_NORM_TRACE is set; then it costs one .item() per
layer, once. Row count is logged too, because two traces are only comparable
if the forward they describe had the same shape.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 18, 2026
…ard is wrong

MANDATORY GATE. The gapped cut boots clean, reports health 200, and answers
the determined-answer probe -- 'The capital of France is', temperature 0, seed
735000001 -- with '\n\n' where the same checkpoint under a contiguous layout
answers 'Paris'. Longer generations degenerate into a repeated token. The
first prefill token is already wrong, so the fault is in the forward, not in
decode or KV reuse.

This is the worst class this corpus tracks: nothing about it looks like a
failure. The boot is clean, throughput is plausible, and the text is
confidently wrong. A warning in a boot log is not a control, so this refuses.

There is also nothing left to trade against correctness. Measured per-GPU
utilization on the gapped cut is 16.6/34.7/15.0 % against 80.5/55.5/47.0 %
contiguous, at 2.5x the wall-clock on the same prompt, because the crossings
serialize the stages by construction. The performance premise that motivated
the layout is refuted.

SGLANG_PP_GAPPED_ALLOW_KNOWN_WRONG=1 still reaches the forward, because the
defect has to stay reachable to be fixed; it logs what it is doing and says in
its own name that the output is not to be trusted.

Contiguous layouts never reach the gate. 37 tests passing, including that the
refusal fires by default, names the defect rather than merely declining, that
'0'/''/'false' do not open the hatch, and that the gate sits on the path a
gapped boot actually takes.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 18, 2026
…as built to localize

TWO INSTRUMENT DEFECTS, THE SECOND ONLY REACHABLE ONCE THE FIRST WAS FIXED.

The trace recorded the FIRST forward of a boot, and that forward is the KV
memory-profiling dummy. On a PP layout its later stages receive zeros, so every
layer past stage 0 logged h=0.000000 r=0.000000 -- 36 of 64 on this rig. The
instrument built to find the first diverging layer could not distinguish any
layer from any other. SGLANG_LAYER_NORM_TRACE_PASSES now selects how many passes
per layer to record, so the profiling forward is pass=0 and the probe prompt
gets its own pass; the pass index is logged so the traces stay separable.

Extending it exposed the second: a norm is an .item(), a device-to-host sync,
which is illegal inside a CUDA graph capture. A one-pass trace never met a
capture because profiling precedes it; a multi-pass trace does, and the boot
died with cudaErrorStreamCaptureInvalidated. The trace now skips captured
passes, which costs nothing -- a capture replays a shape, it is not the forward
whose numerics are in question.

WHAT THE FIXED INSTRUMENT THEN SHOWED. The gapped layer set answers the sgl-project#753
determined-answer probe CORRECTLY on this tip: 'The capital of France is' ->
' Paris.' at temperature 0, seed 735000001, where sgl-project#753 recorded '\n\n', and a
40-token continuation runs clean instead of degenerating into a repeated token.
The layout was genuinely active -- the wire logged the 31 crossings the sgl-project#735
step-2 ticket derived (16/15, 8/8, 7/8). CUDA graphs were tested explicitly on
the gapped arm and are not the interacting feature.

THE GATE STAYS. These arms are a plain PP=3: no phase flip, no speculation,
context 8192, chunked prefill 512, overlap schedule off. The sgl-project#753 repro ran the
composite argv, which carries flip and spec. So this narrows the defect rather
than clearing it -- the gapped forward is correct on its own, and what produced
'\n\n' lives in the interaction with flip and/or spec. Lifting
SGLANG_PP_GAPPED_ALLOW_KNOWN_WRONG needs those arms re-run one variable at a
time, and nothing here does that.

NOT CLAIMED: a layer-by-layer equivalence. The two arms batched the same prompt
differently (rows=60 vs rows=329) and the instrument norms row 0 only, so the
tables are not aligned token-for-token and the deviations they show are not
evidence either way. The end-to-end acceptance is the load-bearing result.

Boots and traces under /spinning/evidence-665-f1; serving restored to the
known-good yarn1.5 unit afterwards and verified with a real generation.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 20, 2026
…ion, not before the exchange

A boot reached serving, one admissible queued request was never served, and the
process died. The wedge detector reported "1 queued, 0 running, NO first token
for 340-370s and no prefill chunk either" and named its own gap in the same
line -- "no phase-policy corroboration seen -- the wedge class is broader than
that path". It was right: this is not an admission defect at all.

EVIDENCE OF RECORD. py-spy on the specimen (WEDGE_788_specimen.log:732/915/1083)
catches all three ranks in a circular wait:

  PP0, PP1  gloo waitSend   _pp_commit_comm_work (scheduler_pp_mixin.py:2465)
                            from _pp_forward_and_process_input_requests:1007
  PP2       gloo waitRecv   _pp_recv_typed_dict:2709
                            from _pp_recv_proxy_tensors:2803

The request chain was flushed at the TOP of the pass, before the rank had
posted anything else it owed its peers that iteration -- the proxy tensor-dict
send and the output-ring send both come later in _event_loop_pp_body. A
downstream whose progress needs one of those was therefore waiting on a rank
that was itself waiting on that downstream. The chain recv is posted only at
the top of a pass (:420) and nowhere else in the loop body, so a rank parked in
the proxy receive cannot drain the message its upstream is blocked flushing.

THE FIX IS ONE ADDITION. _pp_forward_and_process_input_requests is byte-identical
to before: it still commits send_req_work, then posts the async forward, then
runs process_input_requests. What is new is _pp_commit_pending_req_work, called
once per iteration from _event_loop_pp_body after the proxy isend and the output
commit and BEFORE the phase-flip round hook. By the time that loop returns to
the top-of-pass commit, the handle has already been waited on and cleared, so
the old call site is a no-op there -- and the two disaggregation loops (:618,
:765), which do not call the new method, keep their previous behaviour exactly.

Deleting rather than moving the old call site is deliberate on both counts: it
keeps the sgl-project#633 ordering contract literally intact (commit, then forward, then
process, with send_req_work holding this pass's handle on return -- pinned by
test_scheduler_pp_request_order_633), and it avoids a second staging slot. An
earlier shape of this fix did stage the send separately; it broke that contract
and left the two disagg loops overwriting a live P2PWork handle every pass.

Precedent: a7ff250 "[sgl-project#753] Flush the output sends after the exchange, not
before it" made the same move for the OUTPUT channel. This is that fix for the
REQUEST channel, ungated -- the hazard is not gapped-specific.

NEGATIVE FINDING, RECORDED RATHER THAN BURIED. A deterministic 3-process gloo
reproduction of the specimen deadlock was attempted and NOT achieved under a
faithful model of the loop. Two candidate mechanisms were tested and refuted:

  - Eager-send asymmetry. Hypothesis: an empty request list puts one 8-byte
    tensor on the wire and completes eagerly, so only a large first request can
    block. MEASURED FALSE: a 2-process probe with a 2.0s-delayed matching recv
    blocked for the full delay at every payload size from 8 B to 1 MiB in this
    build. No eager completion at any size.
  - Schedule asymmetry. A linear chain+proxy relay that flushes the old handle
    before dispatching the new one is deadlock-free by induction (each rank's
    flush needs only its immediate downstream one pass behind), and dozens of
    real 3-process runs across depths and offset combinations all completed.

So the reduced two-channel model cannot close a cycle. The production graph has
an edge that model lacks: the output ring closes last-rank -> rank 0
(_pp_send_recv_and_preprocess_output_tensors:3038, last-rank branch :3012-3014,
via next_first_rank_mb_id at :416/:608/:754). That, and real GPU compute skew,
are the two named unconfirmed candidates for the missing ingredient. Neither is
built into the test, and the gap is stated in its docstring rather than papered
over. The mechanism's evidence of record therefore remains the py-spy trace
above plus the sgl-project#753 precedent, and the survival boot is the integration proof.

RECOVERY RUNG. The detector gains one bounded action: after a wedge stays
continuously alarming past a threshold well above the report threshold (default
3x, env SGLANG_ADMISSION_WEDGE_RECOVERY_SECONDS; non-positive values fall back
to the default rather than firing every poll), it makes ONE forced-admission
attempt per episode through the existing corridor_admission actuator and logs it
loudly either way. Its own docstring is explicit that it relieves VRAM pressure
at the admission site and will NOT move a comms deadlock like this one, and that
calling an actuator from the watchdog thread is a new cross-thread shape over
CUDA allocator state.

TESTS
  test_pp_chain_flush_deadlock_788.py (new; 3 real gloo processes, CPU only)
    - load-bearing: runtime ordering pin. The SHIPPED _pp_commit_pending_req_work
      is wrapped and the observed sequence asserted to be
      proxy_send -> chain_flush -> round_hook for every pass and every non-last
      rank, so the flush cannot drift back past the collective and cost it the
      "last blocking op of the iteration" property its own comment relies on.
    - can-fail: the same run with the flush relocated to the top records a
      different sequence, so the pin discriminates placement.
    - the honest negative case described above, in place of the deleted
      hang-repro. A test that is green or red for the wrong reason is worse
      than no test.
  test_pp_flip_leftover_proxy_757.py: harness-only repair, no assertion touched.
    It was silently DEAD on this branch -- its _GlooWire predated
    rank_in_group/world_size and the src positional recv_typed_tensor_dict now
    passes, so it errored 3/3 before reaching an assertion. Now 3 passed and a
    working regression check again.

  Verified green with this diff: test_pp_chain_flush_deadlock_788 and
  test_scheduler_pp_request_order_633 (8 passed), test_phase_policy (90 passed),
  test_pp_flip_leftover_proxy_757 (3 passed).

PRE-EXISTING FAILURES, MEASURED NOT ASSUMED. The managers slice reads 43F/2707P
here against 39F/2705P at a pristine detached ff5651a worktree. Every delta
is accounted for: -3 (the 757 repair above now passes), +5 stub drift and +1
ordering-contract break, both introduced by the earlier staging-slot shape and
both gone with it, +1 test_pp_drain_completeness_787 which is INTENTIONALLY RED
here -- that file's fix lives on fix/787-drain-completeness and it flips green
at the merge, which makes it a free integration can-fail. The residual 39 are
the same interface-drift family (rank_in_group, _pp_gapped_wire) plus one stale
constant, all present at base with no part of this diff.

DEBTS
  sgl-project#789                the two disaggregation PP loops keep the top-of-pass
                      flush and therefore still carry this hazard
  sgl-project#757-harness-drift  repaired here; the same drift still blinds
                      test_pp_proxy_stamp_631 and test_pp_slot_last_batch_631
  sgl-project#753-stale-constant 10.923 != 11.923 in the gapped entry protocol test
  sgl-project#766-pointer-stale  the register points sgl-project#766 at ARM_defaultfull7.log, which
                      is a 26-line host-ledger snapshot with no
                      Bar1CollectiveAborted and no proxy/drain lines
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 21, 2026
… it with a void

Boot instr11 wedged 4m18s into a flip drive: GPU util 0/0/0, log growth 846 B in 8 s, eight
requests in flight and never served. py-spy on all three ranks gave a three-way ring:

  PP0  _event_loop_pp_body:779 -> ... -> _pp_recv_dict_from_prev_stage:3865 -> BLOCKING recv
  PP1  _event_loop_pp_body:603 -> pp_chain_receiver.recv:329
  PP2  _event_loop_pp_body:603 -> pp_chain_receiver._advance:218

ROOT. A sgl-project#791 downstream retraction desynchronises the output ring, because the ring's two
gates read two DIFFERENT ranks' mbs. reconcile_pp_admission_decision
(pp_admission_congruence.py:462-483) amends the decision for every remaining DOWNSTREAM rank,
and PP0 is upstream of every rank that can retract. The boot's last four admission passes,
three passes after a tp_to_pp cutover, show it exactly:

  PP0  sgl-project#788 verdict=ADMIT n_reqs=1 rids=2f5e25a1... prefix_lens=512
  PP1  sgl-project#791 unhonourable prefix on rank 1: rid=2f5e25a1... told=512 local=0
  PP1  sgl-project#788 verdict=DECLINE n_reqs=0
  PP2  sgl-project#788 verdict=DECLINE n_reqs=0

PP0 kept the microbatch and launched it; the downstreams had nothing for it. Last rank's send
gate (:4101) reads its own empty slot and sends nothing; PP0's receive gate (:4306) reads its
own occupied slot and blocks (:4315). _pp_output_exchange_due (:328) made the two the same
EXPRESSION (sgl-project#753) but cannot make them the same FACT. PP0 never reaches the top of its next
pass, so the pass-N+1 chain send is never posted and both downstreams block.

The idle tail is load-bearing: a skipped send mid-burst is only a lag, since the pair is FIFO.
It becomes a DEFICIT exactly when the pipeline goes quiet behind the retraction, which is what
the log shows -- DECLINE, DECLINE, silence.

sgl-project#796 IS NOT THE CAUSE, and this retires that hypothesis. The wraparound it removed is an
ADMISSION_DECISION_KIND message, and recv_typed_tensor_dict (pp_typed_channel.py:136-145)
returns only on expected_kind, stashing everything else. No wraparound could ever have released
an expected_kind="output" receive, before or after sgl-project#796. Pinned by
test_wraparound_kind_cannot_satisfy_an_output_receive. Restoring it would have put one
unmatched message per pass back on the channel and unwedged nothing.

FIX, following sgl-project#791's own law (decide on rank 0, carry the decision) rather than a timeout.
_PP_OUTPUT_EXPECTED_KEY (:136) rides on the admission decision that already travels 0->1->...
->last in the SAME pass; PP0 publishes _pp_output_exchange_due(self.mbs[mb_id]), the identical
expression on the identical object its own _do_recv will apply, and middle ranks forward it
verbatim. The last rank (:4128) sends a void (_pp_void_output_payload, :4148) only for a slot
PP0's own published verdict obliges it to receive -- so this is not the bounded-recv corpse in
reverse. PP0 absorbs it (:4315, _pp_absorb_void_output, :4171), empties the slot so the loop's
None guard holds, releases each request through the existing idempotent
_release_dynamic_chunk_probe and re-queues it, and feeds record_return_trip from the
chain-reconciled decision riding back inside the void.

That last part also repairs collateral damage from sgl-project#796: record_return_trip
(pp_admission_congruence.py:276) was fed ONLY by the wraparound, so since sgl-project#796 _learned_floor
was never populated and prefix_len_for never clamped -- sgl-project#630's termination argument had no
feeder at all. It does again, without an unmatched message.

Absent key => False => no void => byte-identical to today, so stand-ins and pp_size<=1 are
unchanged.

TESTS. test/registered/unit/managers/test_pp_output_ring_retraction_wedge_791b.py, three live
spawned processes, real gloo, the shipped functions:
  test_retraction_wedges_the_ring_without_the_fix     (can-fail: neuters ONLY the fix IN THE
      CHILD and reproduces the specimen -- 3/3 ranks stuck, downstreams ahead of the rank they
      block on, the inverted stagger)
  test_ring_survives_the_retraction_with_the_fix      (12/12 passes, 1 void absorbed on PP0,
      1 request re-queued, 0 voids on PP1/PP2)
  test_void_payload_is_only_sent_when_the_first_rank_expects_one
  test_wraparound_kind_cannot_satisfy_an_output_receive
  -> 4 passed, three consecutive runs (40.95 / 39.57 / 38.44 s)
Neighbours (795, 796) -> 13 passed. Wider mixin set -> 19 failed / 176 passed, IDENTICAL at
HEAD (patch removed, re-run, re-applied); all 22 are _RingWire/_Group stand-ins missing
is_first_rank/is_last_rank, i.e. sgl-project#796's own gate. codespell clean; the one ruff F841 at
scheduler_pp_mixin.py:1395 is pre-existing and untouched.

KNOWN GAP, filed rather than folded in: a PARTIAL retraction (one rid of several) keeps the
ring matched, so PP0 processes a real output for a batch containing requests the downstream
never ran -- a membership divergence with no wedge and no error. Same root asymmetry, different
defect.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 22, 2026
…m never launched

The PP proxy channel carries a one-message-per-pass debt that is decided
independently at the two ends of the wire:

    sender    (:1567-1580)  sends iff self.mbs[mb_id]
    receiver  (:1518-1529)  receives iff self.mbs[mb_id], else drains iff
                            voided AND _pp_upstream_launched_incoming

Three of those four combinations were reconciled. `_pp_drain_voided_proxy`
was given an explicit gate on the sender's own statement, and its docstring
states the rule: a blocking receive for a message nobody sent is the
deadlock family this whole feature is a list of. The RECEIVE branch never
got that gate -- _PP_UPSTREAM_LAUNCHED_KEY was read in exactly one place in
the module, inside the drain (:4636). So the fourth combination, THIS RANK
HAS A BATCH AND ITS UPSTREAM DID NOT LAUNCH, entered a blocking receive for
a message that was never posted, consumed the NEXT pass's proxy instead, and
left every later receive permanently one message ahead.

That is the invariant of both crash specimens, and both are a surplus
receive rather than a slot-ring divergence: specimen 1 (boot_seed796,
22:44:52Z) refused a proxy stamped mb_id=2 while on mb_id=1, specimen 2
(boot_seed797b, 22:52:20Z) one stamped mb_id=1 while on mb_id=0. In both the
receiver is BEHIND in slot index and AHEAD in messages consumed; a rank that
had spun ahead would read a stamp BELOW its own index. The first error in
each log is "sgl-project#631 PROXY LEFTOVER REFUSED" at :5196, not the
terminate-without-active-exception line, which is SIGQUIT collateral.

An earlier reading of this defect blamed slot-ring drift and proposed
holding mb_id, mirroring sgl-project#631 defect Q's arming hold at :1625. That reading
is falsified here and the hold is not taken. Every peer-blocking op of a
slot iteration -- the chain receive (:1263), the admission-decision receive
(:1299), the decision-send reap (:1607) and the chain flush (:1609) -- runs
unconditionally on a voided pass; only the proxy receive (:1522) and
_pp_launch_batch (:1542) are skipped. A void makes a pass cheaper, not
unpaced, so it cannot desynchronise the ring on its own. That is pinned as a
test which was green BEFORE any fix
(test_genuine_void_keeps_the_channel_paired). Not taking the hold also
avoids adding a `continue` that would skip the sgl-project#753 gapped-lockstep barrier
on a condition that is not rank-uniform, which converts a harmless state
into a barrier hang.

The fix is a new helper, _pp_void_pass_without_upstream_launch(mb_id),
called at :1384 immediately after _pp_void_own_batch and STRICTLY BEFORE the
admission decision is forwarded. The placement is the whole correctness
argument: the `launched=self.mbs[mb_id] is not None` this rank forwards is
then already the voided value, so the ranks below take the same decision off
the same per-hop fact -- rank-agreed by construction, with no collective and
no new synchronisation point. Ordering it after the send would forward
launched=True while sending no proxy, which is the same defect one hop down.
It voids the pass, delegating the clearing to _pp_void_own_batch so there is
one implementation of the restore idiom, and it adds no `continue` and
changes no index.

The guard's `getattr(self, "_pp_upstream_launched_incoming", False)` default
is the dangerous direction, so its lifecycle was traced rather than assumed:
initialised at :3417, reset to False per pass at :1295, written from the
received message at :4364 via _pp_recv_admission_decision at :1299, and that
receive runs under exactly `pp_size > 1 and not is_first_rank` -- the same
set the guard applies to after its own early returns. There is no stale
window and no unset window.

No-op on every path that cannot have the problem: the first rank, pp_size
<= 1, a gapped layer set (there is no stage-boundary proxy there at all), an
upstream that did launch, and an already-empty slot. Inert in steady state
and at idle.

TESTS. test/registered/unit/managers/test_pp_void_slot_advance_798.py, four
cases, three REAL spawned gloo processes each, never stubs: a green control,
the green-before-the-fix falsifier named above, the fix case which is RED
before and green after, and a can-fail pin that removes only the guard call
and still reproduces the specimen invariant exactly (stamp slot ==
receiver slot + 1). test_pp_retracted_pass_void_797.py binds the new helper
on the stand-in holder of PPVoidOwnBatchWiring797d, whose rig drives the
real _event_loop_pp_body; the binding is provably inert there.

REGRESSION, matched A/B on the same selection, no git stash (repo hook):
test/registered/unit/managers -k pp_, 288 collected. HEAD 97dcff3: 16
failed / 268 passed / 39 subtests passed in 486.03s. With this change: 16
failed / 272 passed / 39 subtests passed in 521.84s. The fail lists are
byte-identical (md5 bf3bc62dae5248487393827c241cbec9 on both), and the +4
passed are exactly this commit's four new cases. Logs
/spinning/evidence-665-f1/sweep798_head.log and sweep798_withfix.log, fail
lists fails_head.txt and fails_withfix.txt.

LINT. codespell clean. ruff reports one F841 on `carries_flip_arm`, verified
present on HEAD as well (there at :2097, here at :2112 after the call-site
comment block shifts it) -- count unchanged at 1, not touched, to keep the
diff honest.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 28, 2026
…he silent hop

Boot 2 of window-flip-0828 wedged silently for 10+ minutes: PP0 and PP1
blocked in gloo waitSend under _pp_commit_comm_work's naked
p2p_work.work.wait() (PP1 via _pp_commit_pending_req_work), PP2 in
_do_recv -- a closed three-arc cycle on a group whose own timeout is two
hours. The sgl-project#753 comment in this file already described the exact shape
(boot v7pp9); the ordering was fixed then, the wait stayed naked.

The bound routes through the sgl-project#630/sgl-project#829 canon
(hicache_collective.bounded_wait -> ParkedWait): the unbounded wait()
parks on a thread and the deadline is on the JOIN. Deliberate deviation
from the order's 'pass the deadline into work.wait(timeout)': sgl-project#829
retracted that design in this tree -- an expired timed Work.wait closes
the gloo pair, and hicache_collective.py names _pp_commit_comm_work as a
measured victim (34 of 262 boot logs). Budget 120 s
(SGLANG_PP_RING_COMMIT_BUDGET_S; <= 0 = documented escape hatch,
byte-for-byte pre-sgl-project#973), reasoned against the canon's constants: 12.6x
the longest healthy cutover, 4x the sgl-project#789 budget, 5x under the HiCache
bound, 60x under the group timeout. On expiry: RingCommitTimeout with a
sgl-project#650-style peer statement naming the silent hop; transport failure is
NOT converted (sgl-project#734 stays distinguishable). Helpers are module-level,
not methods -- the method form broke ~12 one-method-at-a-time stand-in
holders (measured: 796 5->2, 801 14->3), recorded in a code comment.

Wait-site audit: :5253 bounded-now; :3270 bounded by delegation (proven
by test); _do_recv/:7592 and :5545 bounded-already via the sgl-project#789 gate;
parallel_state.py recv_object stays unbounded and is NAMED as its own
posten (needs the resumable PpChainReceiver treatment, not a terminal
bound mid-protocol).

Tests: test_ring_commit_bounded_973.py, 5 arms on real 3-process gloo --
pre-sgl-project#973 naked commit HANGS (distinguished from raised via fsynced
progress marker), bounded commit raises within budget with the peer
statement, healthy paired traffic unchanged, escape-hatch mutant hangs
again (can-fail), :3270 reachability arm. Gates: BEFORE == AFTER
byte-identical on 796(5)/801(14)/797(31)/630(5+14)/829(7) plus an
18-module sibling sweep; extraction count probe OK on every run.
ruff/codespell: 0 new findings.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 31, 2026
…et that has not existed since sgl-project#753

The comment in model_runner.forward -- the funnel every PP forward passes
through -- claimed that a cutover's init_pp_loop_state 'resets every buffer
including _pp_tensor_dict_inbox', and therefore that a COMMITTED cutover hides
any stranded proxy. Both halves are false at this pin.

sgl-project#753 moved the inbox off the scheduler onto the pp_group so the crossing wire
could share it; init_pp_loop_state has not touched it since. The sweep that
does clear it is pp_flip_retire_pp_loop_stash (sgl-project#800), called from the cutover,
and it works BY DISPOSITION: PP_LOOP_ONLY and UNDECLARED retired, BLOCKS_FLIP
deliberately left to the presence gate.

Measured on boot_855_1056acc_0840f82601_0831_150350: all 24 cutovers logged an
EMPTY PP-loop stash, 0 blocking, 0 undeclared -- and this guard still fired
three seconds after a cutover. The strand was not a survivor of the seam. The
pairing identity (epoch, slot) repeats every pp_loop_size passes (3 on that
boot form), so a pass three laps older in the SAME epoch satisfies it exactly.

Comment-only. py_compile green; diff verified to contain no non-comment line.
Evidence and the rebuild verdict: TICKET_1057_631_PP_OUT_OF_STEP.md,
DESIGN_968_PP0_AUTHORITATIVE_STATIC_HALF.md.
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 24, 2026
…ated fixture

Klassifikation (je Datei nur ihr eigener Test, via test27b.sh):

1. test_d_operating_points_1241 (1 rot) -- ECHTER kleiner Defekt, Nebenwirkung
   von d3e9625: launcher.py tippte das NEXTN-Spec-Literal ein zweites Mal
   (SPEC_FORM_DEFAULT / --spec-form choices) statt SPEC_ALGORITHM zu nennen;
   sgl-project#1241 MF-6 verlangt EINEN Schreiber je Spec-Literal. Fix: SPEC_FORM_DEFAULT
   = SPEC_ALGORITHM, choices=[SPEC_ALGORITHM, "DFLASH"]. Werte unveraendert.
   Ergebnis: 34 passed.

2. test_pp_cut_boot_sizing_1286 (1 rot) -- ECHTE Zensus-Luecke aus
   f3f9062 (Task sgl-project#48 C): der Runtime-Posten "prefill transient (measured)"
   (SGLANG_KV_BUDGET_PREFILL_TRANSIENT_MIB) fehlte in RUNTIME_BUDGET_POSTS,
   der Planer-Zensus nannte ihn nicht. Fix: Posten mit Status "not modelled --
   0 unless the group env books ..." eingetragen (auf der 27B-Linie 0).
   Ergebnis: 44 passed.

3. test_coresidence_budget_mapping (5 rot) -- VERALTETE Fixture, kein Defekt:
   _FakeRunner/_FakeServerArgs kannten drei spaeter hinzugekommene Namen
   nicht: _read_corridor_card_free_bytes / _gapped_corridor_holdback
   (7b775eb sgl-project#602, 7ac9673 sgl-project#753; an die echten Mixin-Methoden gebunden),
   _nvml_process_reach_gb (518f9f3 sgl-project#631; None = dokumentierte "NVML sagt
   nichts"-Antwort, Fallback auf die alte Arithmetik) und
   server_args.capture_reserve_mb (153fc05 sgl-project#1025; nur beruehrt, nie
   subtrahiert -> 0.0). Assertions unveraendert. Ergebnis: 8 passed.

pp_family_cut_485 (2 rot) ist vorbestehend und nicht Teil dieses Auftrags.
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