Repository navigation
build(deps-dev): Bump tsx from 4.20.3 to 4.20.6 - #213
Closed
dependabot[bot] wants to merge 1 commit into
Closed
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [tsx](https://github.com/privatenumber/tsx) from 4.20.3 to 4.20.6. - [Release notes](https://github.com/privatenumber/tsx/releases) - [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs) - [Commits](privatenumber/tsx@v4.20.3...v4.20.6) --- updated-dependencies: - dependency-name: tsx dependency-version: 4.20.6 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
Contributor
Author
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
joelteply
added a commit
that referenced
this pull request
Jul 20, 2026
… serves the best USABLE allocation) Live specimen 2026-07-20: with an eval lane resident, Devstral re-homed to 2 lanes @ 2048 ctx while ~44GB VRAM sat free and 1 lane would have served ~30k. The lane math capped lanes by what fit at the FLOOR window (`kv_at(MIN_SERVE_CTX)`), so it admitted N lanes and then let the fixpoint collapse the window to the floor — a lane-count target chased off a cliff. A 2048-token mind can't hold its own memory + the task, so concurrency bought that way is worthless. This is the daemon's PURPOSE made concrete: serve as many concurrent minds as DEMAND wants, but only while each still gets a window big enough to THINK in. Rewrote the lanes+window computation to pick the LARGEST lane count (≤ demand, ≤ cores, ≤ MAX_LANES) whose per-lane window still clears the floor — the degrade path now SHEDS LANES (queue) instead of shrinking every mind to nothing. Falls back to 1 lane only under genuine starvation (honest, surfaced), never a silent collapse. One `window_for(l)` fixpoint helper (KV + window-scaled compute), no second formula to drift. Same lanes-follow-demand-on-a-roomy-host behavior (all 18 existing serving_plan tests green, including lanes_track_demand and fatter_kv_means_fewer_lanes); the only change is the small-host degrade sheds a lane rather than flooring. Regression pinned: a_squeeze_sheds_a_lane_rather_than_flooring_every_mind (1 real lane @ ~5.8k, not 2 @ 2048; roomy host still serves 2 @ ~51k). First step toward a memory system that accommodates now and negotiates for slots with the grid later ([[memory-system-is-fully-dynamic-nothing-static]]). Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 20, 2026
…ch can't freeze serving forever Live-confirmed on a clean boot: fresh serving = 45K@2lanes. A benchmark squeeze grabbed VRAM, the eval lane released (board recovered to 55GB free), but serving stayed FROZEN at 2048@2 — stable 100s+, never growing back. Root cause: the `reconciling` one-at-a-time gate is set `true` at the top of reconcile_to_plan (swap(true)) but was only cleared at the END of the spawned relaunch task's happy path. If that task panicked or was cancelled mid-await — an OOM llama-server spawn under the squeeze, a subprocess error — the clear never ran, the flag stranded `true`, and then EVERY future reconcile short-circuited at the gate. The plan recomputes correctly up to ~33K each authority tick, but the reconcile that would grow the lane can never START. One transient squeeze permanently hobbles the personas until reboot. Fix: RAII. A `GateClear(Arc<AtomicBool>)` guard whose Drop stores `false` is bound at the top of the spawned task, replacing the explicit end-of-happy-path store. Drop runs on panic AND on normal completion, so a stuck flag can never outlive the task that set it — self-healing by construction. This is the lifecycle-robustness class Joel named: a flag that leaks on the error path is exactly "the thing that might not have worked and didn't clean up." The symmetric completion of #213 (shed works; now grow can't be blocked by a leaked gate). 22/22 serving_daemon tests green (incl. the existing gate-cleared-for-retry test). Live grow validation on the next clean boot; the RAII guarantee is correct-by-construction regardless. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 21, 2026
…us serving (#1976) * fix(serving): #216 — don't re-plan while a relaunch is in flight (kills the VRAM-scan thrash loop) After #214 un-froze grow-back, serving THRASHED on a churned box: window flapped 44800↔7680 while the board's `available` swung 12.9↔41GB in 30s. Root: serving is scan-accounted (the board's `available = capacity − max(granted, physical_used)`, and serving holds no lease so granted=0), so `available` tracks the raw GPU scan. During serving's OWN relaunch (kill→respawn) the scan drops as the old lane exits and rises as the new one loads — a phantom free-VRAM spike/dip. `host_budget()` reads it, the plan flaps the window, and the flapped plan triggers ANOTHER relaunch: a feedback loop where serving's own churn re-plans its own lane off a transient budget. Fix: `recompute()` early-returns while a relaunch is in flight (`reconciling` true) — serving's own in-flight churn must not feed back into its own plan. Composes with #214: the RAII gate clears the instant the relaunch finishes OR fails, so re-planning resumes promptly against the STABLE post-relaunch budget — no thrash, no stall. The deeper fix (serving holds an explicit board lease so `granted` pins its residency and the scan transient never reaches `available`) is the #56 consumers-LEASE residual; this breaks the loop cleanly now. 22/22 serving_daemon tests green. Live thrash-gone validation on deploy. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(inference): retry a CONNECT to a mid-relaunch local lane instead of faulting the turn A local single-resident lane gets relaunched out from under an in-flight POST — grow-back (#214), a genome page-in, or memory pressure all bounce the llama-server process, and the published serving snapshot lags at ready=true for the seconds the socket is actually refused (a watch channel is inherently behind the process; the pre-flight ready-guard trusts the snapshot, the socket disagrees). The POST then faulted the whole turn on 'Connection refused (os error 61)'. A connect error to a resident lane means 'mid-relaunch', not 'gone': the connection never opened so nothing streamed, and re-sending the SAME lane/model is idempotent — resilience, NOT a fallback. Retry the connect with bounded linear backoff (1s..6s, ~21s total), scoped to single_resident_model (remote endpoints don't relaunch under us), then fail loud if it never returns. Live-glass-boxed 2026-07-20: a legitimate grow-back relaunch connection-refused every in-flight generation to :58057 mid-eval; 48 retry probes fired correctly on redeploy, recovering transient bounces. Live turns benefit identically — any turn coinciding with a relaunch previously died. Does NOT fully rescue a SUSTAINED relaunch loop (eval-on-shared-lane contention → #175 decode-failure self-heal thrash); that needs eval lane isolation (next). Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(resources): lane ADMISSION planner — the authority's 'does this fit, and how?' decision The governor's reconcile_for_demand is the RECLAIM half (frees bytes under pressure). This adds the missing ADMISSION half: plan_placement(capacity, resident, demand) — a PURE function returning what the daemon should DO with one new lane demand: - ShareLane — the base is ALREADY resident → co-tenant slots, NO duplicate weights - SpawnLane — a fresh base that fits (optionally after tiering lower tiers down) - CpuSpill — won't fit even after preempting everything preemptible (loud reason) The gotcha it kills (glass-boxed 2026-07-20): the eval path grabbed a GPU lease LOCALLY, against an under-reported footprint, and stood up a SECOND full copy of a base already resident. Two 24B copies don't fit one accelerator → Metal 500 → poison took the live lane down too. The first rule is the one that incident violated: same base resident ⇒ SHARE its weights (cost = added KV only), never a duplicate copy. Priority tiers (Live > Eval > Background): a demand may tier DOWN strictly-lower-priority, non-pinned lanes to fit; it never preempts equal-or-higher. So an Eval never bounces a Live lane — it spills to CPU instead. footprint() is concurrent-worst-case (KV for EVERY slot), the invariant a LiveKit huddle needs and the empty-slot sizing that OOM'd the shared lane. Scenario table IS the oracle — 5 unit tests on the REAL incident geometry (Devstral-24B Q4, ~38 GiB Comfort-fractioned): same-base-shares, fresh-fits-coresident, different-base-preempts- background-not-live, eval-never-preempts-live-spills-cpu, huddle-counts-kv-per-slot. All green. Pure + unwired this slice; next slices report honest footprints and route the eval + serving demands through it. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(resources): grid-aware admission — same model-aware kernel, across nodes that come and go plan_grid_placement(nodes, demand) runs the single-node plan_placement kernel on every REACHABLE node and picks the best by affinity/least-disruption: ShareLane (weights already WARM — no cold-load, no transfer) > clean SpawnLane > preempt > CpuSpill, then local before remote, then most-free. A joined node just appears in the snapshot and becomes eligible; a departed node has reachable=false and is ignored, so re-planning a stranded demand fails it over to a live node — all derived from the live snapshot, never held. This is the CONVERGENCE, not a 3rd allocator: capacity::grid (#176) owns the grid substrate (gossiped GridSnapshot, the deterministic sim, the reachable/stranded/per-node-OOM resilience invariants) but its LocalFirstFitPolicy places lanes MODEL-BLIND — by free bytes — so it would spill a lane to the emptiest peer even when another peer has that base WARM, paying a needless cold-load + weight transfer (the grid's version of the 2nd-copy incident, the MoE-affinity gap #180). plan_grid_placement makes affinity the first rule. capacity::grid's GridPlacementPolicy becomes a thin adapter over this once its GridSnapshot carries each node's resident models (the integration slice). 4 grid scenario tests (join / peer-loss-failover / partition / affinity-beats-free-bytes) + the 5 single-node scenarios, all green. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(serving): steady-hold — an eval on the shared lane suppresses the grow-back relaunch Wires placement::Placement::ShareLane's 'pin the lane for the demand's duration' clause. A living-persona benchmark (benchmark/run with no gene/base) runs as a CO-TENANT decode slot on her real serving lane — same base already resident, so NO second weight copy (the reverted 2026-07-20 isolation attempt was the wrong 2nd-copy approach that OOM'd the GPU). The one thing that bounced it was the grow-back RE-HOME: when the plan wants a bigger window it relaunches the lane, and the relaunch connection-refuses every in-flight generation (hard-rs 0/8, zero output tokens). New: a reference-counted RAII ServingSteadyHold; while any eval holds it, reconcile_to_plan SKIPS the starved grow-back re-home for an already-correctly- served lane. It deliberately does NOT suppress a model/genome change or a pressure-driven shrink — a real resource emergency still preempts (rare, correct). Live turns benefit too: any turn coinciding with a grow-back relaunch previously died. The eval acquires the hold for its whole run (dropped when run() returns → grow-back resumes). Unit test: the hold is refcounted + RAII (nested acquire, inner drop keeps the outer hold). NOT the whole story for hard-rs: a cold lane right after reboot (not-ready guard) and concurrent-worst-case KV windowing (the decode-failure self-heal axis) are separate — the steady-hold fixes the grow-back-bounce axis only. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(planning): Proctored Exam Session — dependable benchmark serving process The attack plan for making living-persona benchmarks trustworthy: a substrate-owned lifecycle (acquire a decode-VERIFIED serving context via plan_placement → hold stable → run with infra-fault != score-0 → release), NOT a timeout-hacked script. Documents the problem (fake passRate 0.0 on a not-ready shared lane), the foundation already built (retry + admission planner + steady-hold), and the build order B (trustworthy result) → C (concurrent-worst-case window) → A (preempt for a guaranteed-stable context, grid-general). Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(eval): Proctored Exam Session Slice B — the benchmark number is trustworthy or InfraUnavailable, never a fake 0 The dependability bug (glass-boxed this arc): a living-persona benchmark runs on the shared serving lane. When that lane flips not-ready under load (grow-back relaunch, #175 decode-overflow self-heal, pressure/cold-after-reboot), every task's generation is refused and the run reported `passRate: 0.0` — a fake zero INDISTINGUISHABLE from "she got them all wrong". Across every hard-rs run: 0 output tokens, always an infra cause, never her coding. Untrustworthy by construction; no timeout tuning fixes it. Slice B makes the number honest at the data path: - `PassOutcome` replaces the bare `(pass, results)` tuple: it also carries `infra_faults` + `infra_reason`. An `inference_error` (lane not-ready / connect-refused / "not the active served model" / compute-error / deadline-wedge) is an INFRA fault, never a wrong answer — a wrong answer settles with spoken text and no inference_error. - Bounded recovery in run_pass: on an infra fault, re-verify the lane (await_ready_serving) and retry the SAME task (the retried generation IS the decode proof), up to INFRA_FAULT_RETRIES=3. A transient bounce recovers and grades normally; an unrecoverable fault (lane never returns to ready) records the row for forensics, marks the run void, and ABORTS — every remaining task would only accrue more phantom zeros on a dead lane. - `infra_verdict(&PassOutcome) -> Option<InfraUnavailable>` (pure, one place decides void-ness) drives a new `CognitionEvalResult.infra_unavailable` field. When set, score/pass_rate are VOID: the ledger row carries `infraUnavailable`, benchmark/run surfaces it, and LEARN mode refuses to teach from a dead-lane run. A fake `passRate: 0.0` on an unverified lane is now impossible. - The old grading-match `inference_error` arm is gone — an infra fault can no longer masquerade as a graded miss. Team mode classifies + aborts identically (its full re-verify+retry is a scoped follow-up, as is the A/B EphemeralServingLane path which decode-verifies at spawn). Tests (fault-injection, in the existing eval test mod): an infra-faulted run resolves to InfraUnavailable naming the task + cause, never a scored 0; genuinely-wrong answers on a working lane stay Scored with the 0 counted (infra never masks a real capability miss). Foundation: builds on the retry (edd71bf), admission planner (aed37a3/765b1993d), steady-hold (25fc1dc). Plan: docs/planning/PROCTORED-EXAM-SESSION.md. Slices C (concurrent-worst-case windowing) and A (ExamServingContext preempt) follow. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(planning): mark Proctored Exam Slice B landed (f25c760) Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(planning): Slice C already satisfied — plan_serving fixpoint enforces concurrent-worst-case (audit) The Slice-C premise was stale: plan_serving:362-379 already solves the full fixpoint (l·(kv·C + compute) ≤ after_weights), #213/#214 fixed the floor/grow-back bugs, and served_window_footprint_fits_effective_budget_including_window_scaled_compute pins it. reconcile_window_to_served handles per-slot budgeting. The exam quiesces the fleet, so concurrent demand is low. No code change needed; next is live re-measure + Slice A. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(planning): live-validate Slice B — hard-rs 0/8-fake-zero → real 1/2 on the deployed binary Deployed B, ran live hard-rs on Asha (Devstral-24B). Ledger contrast: pre-B runId bf7bb829 = passRate 0.0 / 0-of-8 / 0 output tokens (the fake zero); B runId 97719703 = passRate 0.5 / 1-of-2 / 855 output tokens / infraUnavailable:null (a REAL number). Same benchmark, honest result. Lane held (quiesced exam) → Scored, not InfraUnavailable, so Slice A (preempt) is the heavy-load/grid answer, not needed for single-GPU exams — exactly as B→C→A predicted. InfraUnavailable path is unit-proven. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): Proctored Exam Session Slice A1 — ExamServingContext, the strategic ACQUIRE at the exam seam The living-persona benchmark used to grab a bare ServingSteadyHold and ASSUME it was measuring a co-tenant slot — the comment said "= Placement::ShareLane" but nothing computed it. The strategic decision was implicit. This installs it explicitly: - cognition/exam_serving.rs: ExamServingContext::acquire(capacity, resident, demand) runs the model-aware plan_placement kernel and acts on the verdict — ShareLane holds the live lane steady (RAII grow-back suppressor, reusing ServingSteadyHold), Spawn/CpuSpill hold nothing (the ephemeral/peer lane owns them) but the strategic verdict is still computed + probe-logged. ExamAcquire carries it for the ledger/curriculum. steady_fallback() preserves the historical hold when live inputs are unresolvable (never regresses). - eval.rs (None,None) branch: build the real inputs from the live serving snapshot (current_serving) + governed_host_budget + footprint_for, then acquire the strategic context instead of the blind steady-hold. Her same base ⇒ ShareLane (co-tenant slot, no second 24B copy — the incident this arc started from), held steady for the run. This is the seam the strategic layer plugs into: a DIFFERENT-base exam or a grid placement computes Spawn/preempt here (the ephemeral-lane / grid path drives the actual spawn). The decision is never silent again — Joel's "an algorithm, not a haphazard chaotic mess." 3 unit tests over the placement oracle (share+hold+RAII-release / different-base-spawn / cant-fit-cpu-spill). Behavior-preserving on single-GPU (the live re-measure showed ShareLane holds), so no regression; the value is the explicit, observable, capturable decision. Slice A2 (grid AffinityFitPolicy over plan_grid_placement) follows. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(planning): Slice A1 landed (ExamServingContext); A2 grid-affinity scoped + deliberately deferred A1 (9b511f5) installs the strategic plan_placement decision at the exam seam. A2 audit: capacity/grid policies are sim-only (no prod consumer), the two placement models differ in shape (1-node-per-lane vs N-lanes-spread), and it needs a 40-construction-site schema thread — so it is design/gym work with no live payoff, best built alongside the live grid-serving consumer (#180) rather than rushed. The plan_grid_placement kernel it will use is already green. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(capacity): Proctored Exam Slice A2 — AffinityFitPolicy, model-aware grid placement (video + benchmarks concurrently) The grid's LocalFirstFitPolicy places lanes by FREE BYTES — model-blind. It would cold-load a base onto the emptiest node even when a peer already holds it WARM, paying a needless weight load + cross-node transfer, and it eats the local GPU. AffinityFitPolicy converges the resources::placement kernel's affinity rule onto the grid policy shape: rank nodes AFFINITY-FIRST (a node already serving the demand's base beats one with more free RAM), then local (no hop), then most-free — with NO local floor, so a fully-warm peer can take the whole demand and leave the local accelerator free for live work. This is the concrete answer to "video chat AND a benchmark at once": the exam rides the warm peer while the local GPU stays free for the live huddle. Proven by the outlier test — a warm peer with LESS free RAM beats an emptier COLD local node (byte-fill routes local+cold-load; affinity routes to the warm peer, local_lanes=0), plus a no-signal fallback test showing it degrades cleanly to locality-then-free (a strict superset of byte-fill, resilience invariants intact). Minimal-churn by design: the warm-base map is carried on the policy (constructed per-scenario) rather than threaded onto the widely-built GridSnapshot/LeaseRequest — that ~48-site schema change buys nothing while these policies are simulator-only. It lands WITH the live grid-serving consumer (#180). The affinity IDEA is validated in the gym now; LocalFirstFit stays as the model-blind baseline/negative control it beats. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(planning): Slice A2 landed (AffinityFitPolicy, sim-validated) AffinityFitPolicy ranks grid nodes affinity-first (warm > free) with no local floor, so a warm peer takes the whole demand and the local GPU stays free for the live huddle — the video+benchmark-at-once answer, proven by the outlier test. Snapshot-threading deferred to the live grid-serving consumer (#180). Slices B, C, A1, A2 all landed. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(serving): Ludicrous mode — a benchmark declares Performance, the biggest window the machine can give (never a starved boot-window) Joel: "extreme mode for benchmarks or ludicrous lol ... as big as the model needs for bench software, whatever this machine can handle." The live incident: a 64GB M5 Pro with ~49GB free and pressure 0.0 served a 2048 window, because at boot only ~19GB was free (model loading) so the drive mode picked eco → tiny fraction → floored window, and then the exam's own steady-hold PINNED it there while its 2240-token prompt overflowed → deadlock. The fix is to grow the window, never clamp the prompt. Mechanism (mirrors ServingSteadyHold): - ServingLudicrousHold (refcounted RAII) + serving_ludicrous_active(). While held, host_budget() forces PowerMode::Performance (fraction 1.0 — "floors the whole GPU"), OVERRIDING serving_mode_for_pressure's timid read (which on UMA under-reports free memory). The drive mode follows the ACTIVITY (a declared benchmark intent → serve maximal), not just the pressure. - ExamServingContext now holds Ludicrous instead of the steady-hold: this resolves the deadlock (steady-hold suppressed the very grow the exam needed). Ludicrous keeps the plan STABLE at max (nothing bigger to grow-back to, pressure-shrink overridden), so it SUBSUMES the steady-hold's mid-exam-relaunch protection WITHOUT pinning a too-small window. One grow-relaunch on acquire, one shrink on drop — bookends, not a flap (no thrashing). Tests: serving_ludicrous_hold_is_refcounted_and_raii + exam_serving 3/3 + steady-hold test still green. Live deploy validation (exam serves a big Performance window + scores real on the starved- boot case) is the careful next step. First concrete step toward the Ludicrous↔Dream activity- driven serving spectrum. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(eval): revert exam wiring to steady-hold — naive Ludicrous acquire thrashed (relaunch bounce), needs grow→settle→pin Live validation of the Ludicrous exam wiring (020bb65) caught exactly the thrashing Joel warned about. The fresh boot already served a 22016 window (plenty), but forcing PowerMode::Performance on acquire triggered an UNNECESSARY relaunch — and because Ludicrous had REPLACED the steady-hold, nothing held the lane stable through it, so the exam bounced: infraUnavailable{infra_faults:1}, 0 output tokens, on a huge window that easily fit the prompt. My "Ludicrous keeps the plan stable, subsumes the steady-hold" reasoning was wrong: ACQUIRING Ludicrous is itself a re-plan → relaunch, and B's retries got bounced too. The correct design is BOTH, sequenced: acquire Ludicrous → wait for the grow-relaunch to SETTLE (decode-ready + stable) → THEN steady-hold to pin it for the tasks. That async settle-detection is a careful piece for a deliberate build. So revert the exam to the validated steady-hold (healthy boots already give 22016, so the exam works — B live-proven), and KEEP the Ludicrous mechanism (ServingLudicrousHold + host_budget Performance override, unit-tested) as a ready primitive to wire correctly next. Ship-broken isn't careful. exam_serving 3/3 + serving_ludicrous_hold test green. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(eval): Ludicrous done right — exam grows the window (Performance), SETTLES the relaunch, THEN pins (no thrash) The correct wiring for "benchmarks get the biggest window the machine can give" — the thing the naive 020bb65 got wrong (it forced Performance then ran, and the grow-relaunch bounced the exam). The fix is the sequence Joel's "without thrashing" pointed at: GROW — ExamServingContext declares Ludicrous (ServingLudicrousHold → PowerMode::Performance); the daemon re-plans the shared lane to the biggest window the machine fits. SETTLE — wait_for_serving_window_settle (new, watch-driven, in llama_server): within an 8s grace (> the 5s plan TICK) watch for the lane to go not-ready = a relaunch started; if it does, wait (bounded 180s) for it to come back decode-ready; if it doesn't, no grow was needed (already at target) → return immediately. No polling, no time-based stability guessing. PIN — take the steady-hold so no FURTHER relaunch bounces the running exam. ExamServingContext::acquire is now async (settling is a wait — the whole reason the sync version thrashed); holds BOTH Ludicrous + steady via an ExamHold, released together on drop (RAII). A pure `decide()` keeps the placement verdict unit-testable; acquire_exam_serving_context + the (None,None) eval branch are async now. Tests: 3 pure-decide verdict tests + 1 async grow→settle→pin holds test (both gauges set then released; settle is a fast no-op with no live daemon). This is the benchmark end of the Ludicrous↔Dream activity-driven serving spectrum, wired correctly. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jul 27, 2026
…-node swap/wedge fix (#234) (#2047) Root-caused 2026-07-26 (M5 + BigMama, Joel "address now"): plan_serving's `window_for` maximized the served window to fill the memory budget — on a roomy host that's tens of thousands of tokens (live: -c 94190), whose pre-allocated KV is ~33GB × parallel lanes. On M5's 64GB Mac that SWAPS (5.08M swapouts → decode collapses to 1.77 tok/s, 408s turns); the identical 94k×2 KV WEDGES BigMama's 32GB 5090 (500s generation, /health 200 but decode hung). Personas fill only ~9k — the window was ~10× the working set, mostly-empty KV inducing the swap. The bug is model-agnostic (bites any lane on any node), which is why one fix clears both. Two static estimates conspired (serving_budget = 0.80×free snapshot; kv_per_token tuned DOWN so big windows pass the fit-gate) — but re-tuning either just moves the "always wrong somewhere" point and re-breaks #213/#214/#216. Instead: provision for what personas USE, not for what RAM allows. Fix (one min()): served_context_window = window_for(lanes).min(DEMAND_CEIL).max(MIN_SERVE_CTX) where DEMAND_CEIL = BOOTSTRAP_WORKING_SET (= MIN_SERVE_CTX*8 = 16384 ≈ one persona turn: ~9k assembled prompt + generation). This is the "B-now" cold-start prior; the measured half — DEMAND_CEIL = max(BOOTSTRAP, p95(observed working set) + headroom), feeding a throughput-degradation recognition loop into the existing tier-down — is #234's A-next robustness layer. The cap only ever holds the window DOWN from the budget-max, is bounded by the model ceiling in window_for, and refines UP with data — never toward filling RAM. Anchored to the ONE runnable floor const, not a second magic number; NOT the forbidden per-tier prompt clamp (it's a demand prior on serving-lane residency, superseded by measurement). Lane selection (shed-on-squeeze, concurrency-on-roomy) is UNTOUCHED — the cap applies after lanes are chosen. Two litigated window-sizing tests updated from the old "window scales with the budget" premise to the demand contract, preserving the real invariants (mind gets a thinkable window; squeeze sheds a lane; roomy box buys MORE lanes not a bloated KV cache). New regression test asserts the cap holds down without inflating small-ceiling models up. All 20 serving_plan tests green. Split (BigMama): M5 owns this window fix; BigMama verifies it un-wedges the 5090. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps tsx from 4.20.3 to 4.20.6.
Release notes
Sourced from tsx's releases.
Commits
710a424fix: properly hide relaySignal from process.listeners() (#741)20b91c4docs: make sponsors dynamic08dcd59chore: move vercel settings to roote6d1a47docs: obfuscate aside classnamede2719dstyle: remove unused variable13f2954chore: upgrade docs deps0504525chore: upgrade manten132fdd8test: assert require.cachef057e7dtest: require loopa6f8f9frefactor: getFormat to handle all formatsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)