Skip to content

fix(serving): parallel to the max — fail-fast backstop, pinned lane floor, sidecar yield, served-model provenance - #2570

Merged
joelteply merged 5 commits into
canaryfrom
probe/defer-brackets
Aug 30, 2026
Merged

joelteply merged 5 commits into
canaryfrom
probe/defer-brackets

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Four live-validated commits that turned the single-lane crawl into a three-lane fleet, plus the provenance stamp that makes cross-model benchmark claims publishable.

What ships

  1. Fail-fast hold backstop (openai_adapter.rs): a permit-holding caller that hits the measured-work hold now returns an error instead of parking — kills the two-defer race where a background generation took a lane pre-hold and then waited on it forever, wedging the fleet.
  2. Pinned solve floor → parallel lanes (serving_plan.rs, benchmark_resume.rs): ServingDemand.window_floor_tokens + SOLVE_WINDOW_FLOOR pinned to the regime window (40448). LANE_CAP 1→4; lanes multiply only while each clears the floor — the 718-flap law holds because lane count derives from the pinned floor, never from demand.
  3. Vision sidecar yields to solves (serving_daemon.rs): while a solve floor stands, the sidecar drops its slot — this bought the third lane.
  4. served_model on every verdict (swe_bench.rs): verdicts stamp the live served model. Cards carry no model, so before this, a Flash-Next-vs-Ornith claim on the same instance was unpublishable. This is the honesty layer for the routing economy — a verdict without provenance poisons the price signal.

Validation

  • Commits 1–3 are running live: 3 lanes × 52,865 ctx, 85+ acts, 4 deadline reaps, 0 hold backoffs, two simultaneous decodes observed on distinct slots.
  • Regression scorecard on this binary: sympy-24152 ✅ astropy-12907 ✅ pytest-11143 ✅ (astropy-14182 in flight).
  • Commit 4 deploys at the next boundary reboot; the Flash-Next residue audition is gated on it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

… probes decide the recurring 25-min tick wedge
…mit-holding caller must never park (the two-defer race)

Glass-boxed: a background gen passed the pre-gate defer (no hold yet),
took the serving lane, a solve acquired the hold, and the adapter
backstop parked it WITH the lane — every solve tick starved at
lane_wait behind it. The backstop now refuses (typed error), the
caller's scope drops its permits, and the deliberation retry re-enters
through the pre-gate defer which waits holding NOTHING. Also places the
delib.defer.passed probe whose earlier insertion silently missed its
anchor (this one asserted).
…4, lanes multiply only while each clears the solve regime window

The LANE_CAP=1 receipt (2026-08-27: 4 lanes sold the window to 20k/slot,
every solve starved at the #390 gate) named its own fix: a per-lane
window floor for solve-class demand. ServingDemand now carries
window_floor_tokens — set to the PINNED, published REGIME_WINDOW (40448)
by the benchmark lease while Working rounds exist, cleared after. The
planner's lane pick honors max(bootstrap, floor): lanes multiply only
while EVERY lane fits a real solve. Constant-while-set, so the lane
count cannot flap with p95 (the 718 law holds). Near-simultaneous
near-frontier minds, no starvation — the RTOS advantage nobody running
stock llama + python has.
…ile a solve floor stands, buying the second lane

Measured this hour: 84k x 1 lane afforded, 40448 x 2 refused by a few GB
— exactly the sidecar's ~9GB. Solve-regime work is text-only by
construction; the sidecar's Drop frees the RAM, the next plan fits two
real solve lanes, and sight respawns when the floor clears (like dreams,
sight belongs to the idle era during measured work).
…so cross-model claims were unpublishable without it
@joelteply
joelteply merged commit 2b25de7 into canary Aug 30, 2026
5 checks passed
@joelteply
joelteply deleted the probe/defer-brackets branch August 30, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant