Skip to content

[handoff] WS-B Stage B: ctx-adaptive lane admission (lift QWISP_LANE_CTX 16K cap) #141

Description

@penta2himajin

Snapshot

  • Branch: claude/lane-ctx-adaptive
  • Last commit: 0261551 @ 2026-07-25
  • Working tree: clean
  • Last session: 2026-07-25 (Fable — spec authoring only, no implementation)

Status

in-progress (spec complete and binding; implementation not started — intended for a Sonnet session)

Next action

FIRST: merge PR #138 (WS-A archive — RAWTESTS 92→96; Stage B's locked test is numbered 97 on that precondition, see notes/22 "Preconditions"). Then run the devloop recon step from notes/22 §"Suggested session shape" (verify the four load-bearing facts against HEAD line numbers, which will drift after the #138 merge), then the devloop loop phase: locked tests RED (RAWTESTS 97 lane_admit_restore_cross_arena_bitexact + COMPTEST lanesize_*/lanemem_*) → implement → adversarial review.

Verification

  • Spec: notes/22-ws-b-stage-b-ctx-adaptive-spec.md — read it IN FULL before any edit. All ambiguities are pre-resolved as binding ("Resolved ambiguities" section); do not re-open them in-session. Engine-physics questions beyond the spec → /askfable (read-only), not guesswork.
  • Gates that must stay green through every commit: RAWTESTS (96/96 post-WS-A archive: sdpa_prefill_mma probe kernel (flag-off) + NO-GO verdict #138, 97/97 after the new test lands), COMPTEST 83/83 + new cases, BENCHBATCHTEST PASS.
  • Definition of done for the implementation session: notes/22 §"Locked tests" all green + build green; the bench section (§"Bench verification") is run by the driver AFTER green, results appended to notes/22.

Context pointers

Decisions made (binding, from notes/22)

  • Adaptive sizing rides the Stage A scheduler flag (budgeted path only); QWISP_TOKEN_BUDGET_SCHED=0 keeps the legacy fixed-16K path bit-for-bit as the escape hatch.
  • QWISP_LANE_CTX becomes an eligibility-cap override, default = model context (the 16384 default IS the bug being fixed).
  • Memory gate: FCFS head-of-line wait (vLLM semantics), QWISP_LANE_KV_MB default 8192 (≥48GB RAM) / 4096, clamp-to-fit floor prompt+2, visible failure instead of the silent empty stream.
  • REJECTED (terminal, do not implement): live warm-lane reuse (L1-incompatible — GDN recurrence no-rewind + decode-produced KV ≠ canonical prefill), warmth-based admission reordering (breaks locked FCFS test), PrefixPersist tier for lanes (backlog, owner decision pending).

Failed approaches

(none yet — spec phase only. Stage A's bench false-starts are documented in issue #139's session log and notes/21; the 35K filler-prompt generator in tools/lane_budget_probe.mjs already carries the units bugfix.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    session-handoffLong-running workstream handoff between Claude sessions

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions