Skip to content

gates: two reds the 0.3.14 release batch found (qwen38 seat READS, the dspark-loop real-file literals) - #1195

Merged
midagedev merged 12 commits into
mainfrom
rel0314-fixes
Nov 13, 2026
Merged

midagedev merged 12 commits into
mainfrom
rel0314-fixes

Conversation

@midagedev

@midagedev midagedev commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

한 줄 요약: 0.3.14 릴리즈 배치가 찾은 main의 빨강 — qwen38 레버 목록, V4.1 dspark-loop 노드 상수, V4.1 serve의 슬롯·KV spill·r8·카드 바이트 절 — 을 고친다.

What and why

Reds the 0.3.14 release batch (real tier, both cards) found on main, and what fixing them uncovered.

  • gate-q38-serve-rules. The qwen38 seat calls levers.draft_word(), and its READS list did not name it.
  • gate-gpu-ds41-dspark-loop. The two real-file node literals dated from the 10-08 port. Re-pinned to the count the program predicts and the card captures (derived 1188), with PIN(2026-11-12).
  • gate_ds41_serve, slot clauses. A fresh and a warm run that part at a head token now read the head margin, and a row whose argmax the sampler banned reads the gap of the next two ids (PIN(2026-11-13)): both are near ties, not a divergence.
  • BLOOMERY_KV_HOST=spill. The host holds only the K/V pages past the floor. A host that cannot hold them is refused, and the refusal names the lever, the bytes and what to set instead.
  • V4.1 serve, host shorts. A K/V-spill short and the NVMe-tier floor now step the context down like a card short does (PlacementError::kv_host_short / host_room_short, folded only in V4.1's PlanRefusal::short). So a slot request that does not fit is refused with "a slot holds at most N", not with a floor the host can never meet.
  • V4.1 serve, r8. When the plan pages routed experts and BLOOMERY_R8 is unset, the host tier reads the source, and stderr names that. A user's BLOOMERY_R8=on keeps the named refusal.
  • V4.1 serve, card bytes. The seat now watches its card bytes (Loaded::from_model(..).watched(log.card_watch()?)). It printed no card bytes records before.

Release notes: Fixed — bloomery-serve-ds41 steps the context down instead of refusing when the host, not the card, is short, and names why it reads the source when the r8 sidecar cannot be used.

Code shape

  • No second copy. The host-short readings sit beside card_short in ctx_ask.rs. The numbers have one owner (host_floor_short).
  • Model code holds only architecture facts. The fold is in V4.1's PlanRefusal. Other families keep their named refusals.
  • Dead code is gone.
  • No silent failure. Every new path prints a named record or refusal.
  • Comments state what is true now.
  • No relaxed gate. Each re-pin carries PIN(date) and its derivation. The slot-over clause accepts {card|host} holds because the refusal now names either.
  • cargo fmt and cargo clippy are clean on the touched crates.

Duplication found or removed: none.

What I ran

Card: RTX 3090 + RTX A6000, the maintainers' workstation.

  • just weekly-gpu-ds41-serve at b9975cc's tree: the server gate passes in full, including slots_over_the_card_refused_before_the_load, card_bytes_hold_at_max_ctx (3 records, all within), slots_erase and slots_park_resume. The --mmproj run passes too.
  • The DSpark-draft step is red on draft_continuation_cache_n (cache_prompt=true continuation shows cache_n=0). The same step on unmodified main (bc930ce) is red the same way, so this red was already on main. It is tracked separately.
  • Pure tests: bloomery-placement --lib 299 passed, bloomery-model --lib 746 passed, bloomery-levers 64 passed. Each new test was shown red by a mutant first.
  • Earlier on this branch: the release batch at 004c1fc found the two original reds, and they are green at this branch's head.

🤖 Generated with Claude Code

https://claude.ai/code/session_01X1hsQeV6buMi1gT665GhFQ

midagedev and others added 2 commits November 12, 2026 17:19
…the step it captures (1185 + 3 a step, 2 x 1185 + 6 a pair)

The two literals dated from the 10-08 port, when the plain step was 1179 nodes. On the
1017-Q3_K_M-r8 file the capture equals nodes::predicted at 1185, and the tap adds its three
ds41_hc_mean nodes; only the literal witnesses were red. The fixture tier prints them and never
compares, so only the real tier saw it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01CjHkkjSnQu1gPsqfbYpEAQ
@github-actions github-actions Bot added gpu The card engine: crates/gpu*, crates/app needs-gpu Changes code a card must check, and carries no gate run on a card labels Nov 12, 2026
midagedev and others added 2 commits November 12, 2026 20:03
….1 tier depth 22, the GLM tier counts computed, ds41-serve plans at the serve K/V default, ds41-load's granule only on the page-locked fallback)

The card-term changes of 11-09/10 (the prompt front on every card, the K/V floor) moved real-tier
values no fixture landing runs. REAL_K3 is 22 from (831+19)/38. The GLM two-card and serve gates
ask the shared tier_experts question on their own census and hold the child within TIER_DRIFT of
it, printing the tier card's terms. gate_ds41_serve plans with the serve K/V default and each
stage's host page, as the seat does. ds41-load's check v allows the 2 MiB granule only when the
shadows are the page-locked fallback; host rooms leave none.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01CjHkkjSnQu1gPsqfbYpEAQ
… gate as another holder; GLM's opens install the card watch; nvtier prints late without judging it

gate_qwen38_media holds a context when it starts bloomery-serve, and under BLOOMERY_CARD_HELD the
server refused the card as held by another process. serve_cmd names the gate's pid
(BLOOMERY_CARD_FELLOW, only where the run holds its card) and the census leaves it out; any other
holder still refuses. GLM's ready() went through Loaded::from_model with no watch, so the card
bytes records were never written; it now installs log.card_watch(). gate_nvtier's late count is
host-lane speed, which no gate holds: printed, not judged (PIN 2026-11-12); unresident, faulting
and the ring's hold stay judged.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01CjHkkjSnQu1gPsqfbYpEAQ
@github-actions github-actions Bot added the host Host crates: qdot, threads, engram, engram-lab, runtime, sampler, levers, decision, vision, refset label Nov 12, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MUST_FIX: one proven duplication — the two new tier_experts_here functions re-implement the shared owner glm_place::tier_experts beside it (R14); the rest of the diff checks out.

Must fix

1. A third copy of the tier-plan derivation: both tier_experts_here functions re-implement glm_place::tier_experts

gate_glm5next_serve.rs:1075-1085 and gate_glm5next_twocard.rs:1403-1418 each build glm_machine(offer, tier_batch, slots, checkpoint_price, ctx), run plan_slots/plan_nextn_slots, sum tier_n_l — the exact body of shared/glm5next_place.rs:57-82, which the seat's rule already calls (serve_seats/glm.rs:585) and both gates' doc comments name. The 14-line tier-terms block is copied verbatim into both gates too. Three owners of one fact: the next plan-term change is a three-place fix, or a gate quietly asks a different question than the seat. Fixing now is two paste-ins. Fix — the shared owner returns the terms beside the count:

pub fn tier_experts(place: Place, inputs: &PlanInputs, ctx: u64, levers: &PlanLevers,
    nextn: Option<&NextnInputs>, lanes: KdaLanes, slots: usize,
) -> Result<(u64, String), GateError> {
    let machine = glm_machine(place, tier_batch(place, inputs)?, slots,
        checkpoint_price(inputs)?, ctx)?(inputs.model.layers);
    let plan = match nextn {
        None => inputs.plan_slots(&machine, ctx, levers, lanes, slots)?,
        Some(n) => inputs.plan_nextn_slots(&machine, ctx, levers, n, slots)?.plan,
    };
    let tier = plan.tier_n_l.iter().flatten().sum();
    let terms = plan.cards.get(1).map(|t| format!("[{}]", t.terms().iter()
        .map(|(n, b)| format!("{n}={b}")).collect::<Vec<_>>().join(",")))
        .unwrap_or_else(|| "no tier card".to_owned());
    Ok((tier, terms))
}

The three existing callers take .0 (generate_glm5next.rs:787, shared/routed_legs/glm5next.rs:147, serve_seats/glm.rs:585); each gate keeps only what differs:

fn tier_experts_here(levers: &bloomery_levers::Levers, ctx: u64) -> Result<(u64, String), GateError> {
    let offer = Place::by_cards(&gpu_census::census()?)?;
    let path = ref_model_path()?;
    let split = Split::open(&path).map_err(|e| format!("open {}: {e}", path.display()))?;
    let inputs = PlanInputs::read(&split)?;
    let nextn = NextnInputs::read(&inputs)?;
    Ok(crate::glm_place::tier_experts(offer, &inputs, ctx,
        &PlanLevers::from_levers(levers)?, Some(&nextn), KdaLanes::One, DEFAULT_SLOTS)?)
}

The twocard one passes nextn.as_ref() from its levers.draft() match and levers.gen_slots(); net about −40 lines, one owner.

Non-blocking

⚠ Undeclared shipped-code change: the body says "no shipped binary changes", but glm5next/mod.rs:251 wires the card-byte watch into every GLM open (under a held card a past-plan or unmeasured reading now refuses where it silently passed). All three opens are placed loads, so the watch attaches. Declare it, and paste the GLM gate runs at this head (marked "pending" in the body).

⚠ nvtier late bound: gate_nvtier.rs:245 removes the judged LATE_MAX with a dated PIN and run evidence (23 and 6 over the old bound of 4), which meets the contract. The attribution "host-lane speed, which no gate holds" cannot be re-derived from the log: paste the two runs' plan: margin lines — the print is now the only guard on the late tail.

⚠ seat_inputs mirror diverges on one arm: gate_ds41_serve.rs:3261 sets kv_host_page unconditionally; the seat sets it only when the effective backing is not off and falls back on a stage error (serve_seats/ds41.rs:644-662). A future BLOOMERY_KV_HOST=off arm would give gate and seat different inputs; guard it as the seat does.

Checked

Duplicates: 7 new items checked (tier_experts_here ×2, seat_inputs, FELLOW/fellow_pid, TIER_DRIFT ×2, child_ctx) — one hit, must-fix 1; dryer did not run.
Complexity: crapper did not run; both tier_experts_here are new flat functions whose split is must-fix 1.
Silent failure: 4 sites followed (fellow_pid non-pid, fellow named without a hold, child_ctx absent, stage_host_page error) — each refuses by name.
Tests: READS row removal panics naming draft_word (the release batch's rc=101); dropping the fellow filter turns a_listed_compute_app_names_its_card_holder red; a parse-to-default mutant turns a_fellow_is_a_pid_or_nothing red.
Gates: five pins moved, each with PIN(2026-11-12) and a reason (dsloop 1188/2376, REAL_K3 22, ds41-load !roomed granule, glm TIER_DRIFT ×2); nvtier's LATE_MAX removed with a dated PIN (⚠ above).
Escape catalog: none matched (no script changes; levers-direct.txt is a data row).

Notes

The body describes 2 of 13 changed files, head gate runs "pending"; dryer and crapper did not run (ModuleNotFoundError).

Card check: needs-gpu. This pull request changes crates/app/src/arch/glm5next/mod.rs, crates/gpu-gates/src/bin/bloomery_serve_qwen38.rs, crates/gpu-gates/src/bin/gate_deepseek41_dsloop.rs … and carries no gate run on a card (CONTRIBUTING's evidence list); a maintainer adds gpu-verified after one.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MUST_FIX: must-fix 1 is still open — both tier_experts_here copies still re-implement glm_place::tier_experts; the only change since the last review is a two-line compile fix.

Since the last review:

  • Must-fix 1 (tier_experts_here ×2 re-implements the shared owner): still open — gate_glm5next_serve.rs:1065, gate_glm5next_twocard.rs:1391.
  • ⚠ Undeclared shipped-code change (glm5next/mod.rs:251 wires the card-byte watch into every GLM open): still open — the body still says "no shipped binary changes".
  • ⚠ nvtier late-bound attribution (gate_nvtier.rs:245): still open — the two runs' plan: margin lines are still not in the body.
  • ⚠ seat_inputs sets kv_host_page unconditionally where the seat guards the backing: still open — gate_ds41_serve.rs:3261.

New since 41ff87b: .contains(t) → .contains(&t) at gate_glm5next_serve.rs:985 and gate_glm5next_twocard.rs:1361. tier_experts is Option<u64> (gate_glm5next_serve.rs:929), so the old line was a type error (Range::contains takes &u64): the head reviewed last time did not build. The fix is correct. Nothing else changed; nothing new to flag.

Must fix

1. A third copy of the tier-plan derivation: both tier_experts_here functions re-implement glm_place::tier_experts

gate_glm5next_serve.rs:1075-1100 and gate_glm5next_twocard.rs:1403-1432 each build glm_machine(offer, tier_batch, slots, checkpoint_price, ctx), run plan_slots/plan_nextn_slots and sum tier_n_l — the exact body of shared/glm5next_place.rs:66-81, which the seat's rule already calls (serve_seats/glm.rs:585) and both gates' doc comments name — beside a tier-terms block copied verbatim into both. Three owners of one fact: the next plan-term change is a three-place fix, or a gate quietly asks a different question than the seat. Fixing now is two paste-ins; later term changes pay it back with interest. Fix — the shared owner returns the terms beside the count (the three callers generate_glm5next.rs:787, shared/routed_legs/glm5next.rs:147, serve_seats/glm.rs:585 take .0):

pub fn tier_experts(
    place: Place,
    inputs: &PlanInputs,
    ctx: u64,
    levers: &PlanLevers,
    nextn: Option<&NextnInputs>,
    lanes: KdaLanes,
    slots: usize,
) -> Result<(u64, String), GateError> {
    let machine = glm_machine(
        place,
        tier_batch(place, inputs)?,
        slots,
        checkpoint_price(inputs)?,
        ctx,
    )?(inputs.model.layers);
    let plan = match nextn {
        None => inputs.plan_slots(&machine, ctx, levers, lanes, slots)?,
        Some(n) => {
            inputs
                .plan_nextn_slots(&machine, ctx, levers, n, slots)?
                .plan
        }
    };
    let terms = plan
        .cards
        .get(1)
        .map(|t| {
            format!(
                "[{}]",
                t.terms()
                    .iter()
                    .map(|(n, b)| format!("{n}={b}"))
                    .collect::<Vec<_>>()
                    .join(",")
            )
        })
        .unwrap_or_else(|| "no tier card".to_owned());
    Ok((plan.tier_n_l.iter().flatten().sum(), terms))
}

Each gate keeps only what differs (serve passes Some(&nextn), KdaLanes::One, DEFAULT_SLOTS; twocard passes its levers.draft() match as nextn.as_ref() and levers.gen_slots()):

fn tier_experts_here(
    levers: &bloomery_levers::Levers,
    ctx: u64,
) -> Result<(u64, String), GateError> {
    let offer = Place::by_cards(&gpu_census::census()?)?;
    let path = ref_model_path()?;
    let split = Split::open(&path).map_err(|e| format!("open {}: {e}", path.display()))?;
    let inputs = PlanInputs::read(&split)?;
    let nextn = NextnInputs::read(&inputs)?;
    Ok(crate::glm_place::tier_experts(
        offer,
        &inputs,
        ctx,
        &PlanLevers::from_levers(levers)?,
        Some(&nextn),
        KdaLanes::One,
        DEFAULT_SLOTS,
    )?)
}

Net about −40 lines, one owner of the derivation.

Checked

Duplicates: must-fix 1 re-verified — the new commits touch only the two .contains lines, so both copies are unchanged since the last review; no new items.
Complexity: crapper did not run; the new commits change one token inside two existing closures.
Silent failure: no new sites in the new commits.
Tests: unchanged since last review.
Gates: no pins moved in the new commits; the five PIN(2026-11-12) pins from last review stand.
Escape catalog: none matched (no script changes).

Notes

The real-tier gate runs at this head are still "(pending)" in the body — and the previously reviewed head could not run them, since it did not compile. dryer and crapper did not run (ModuleNotFoundError).

Card check: needs-gpu. This pull request changes crates/app/src/arch/glm5next/mod.rs, crates/gpu-gates/src/bin/bloomery_serve_qwen38.rs, crates/gpu-gates/src/bin/gate_deepseek41_dsloop.rs … and carries no gate run on a card (CONTRIBUTING's evidence list); a maintainer adds gpu-verified after one.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

…count (grow_plan_reserve by NextnPlan::card_reserve_bytes)

The draft plan keeps the target's totals the target's alone and reserves the NextN layer and its
arena beside them, but the load never grew the card count by that reserve, so the card-bytes
reading compared the made bytes with a count 223,477,760 B short. Nothing read the count for GLM
until its opens installed the watch; the draft-only arm of gate_glm5next_serve then refused the
first prompt as 26,308,408 B past the plan. The seat and the gate read the same method.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01CjHkkjSnQu1gPsqfbYpEAQ
@github-actions github-actions Bot added the model The CPU engine and model files: crates/model, models, hf, gguf, tokenizer, jinja label Nov 12, 2026
midagedev and others added 6 commits November 13, 2026 00:02
…xt_place.rs

gate_glm5next_serve and gate_glm5next_twocard include the module for
tier_batch only; its other items are generate_glm5next's and
bloomery-serve's. The lint ratchet counted 8 dead_code warnings (CI, run
43213289638); the include carries the same allow with a reason
gate_ds41_serve's ds41_place include has.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01CjHkknz4RyyoBnLW3MM7pX
…ved margin, and a hosted-expert catcher

The real-tier reds of the 0.3.14 batch were the grouped GEMM's sum order
(the batch and the steps differ only there; with the tile path every case
is 0.000e0), amplified at positions 0-1. The clauses now say so:

- gate_deepseek41_prefill: a catcher arm at P = 1, 13, 64 runs the card's
  experts by tiles (Body::set_batch_card_tiles, a gate-only switch; the
  engine default stays the grouped GEMM) and must be bit-exact; each
  compared position prints the steps' margin, the batch's gap and the
  shift; positions 0-1 are judged at HEAD_MARGIN_V41.
- tier B10 and nvtier rank record the fed ids and walk every row, not the
  first of 64.
- ds41 serve: the parted floor is derived in the run.
- the gates' plan levers carry BLOOMERY_CARD_EXPERTS_CAP (the calibration
  dial), and gate_deepseek41_prefill parses it.

HEAD_MARGIN_V41 equals MARGIN_FLOOR until the box calibration pins it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01CjHkknz4RyyoBnLW3MM7pX
…3649); the rank walks of two placements read PLACE_MARGIN_V41 = 9.7 at every position; a walk prints its largest top-2 gap shifts and each clear flip

- prompts: HEAD_MARGIN_V41 = 8.8 with its derivation; PLACE_MARGIN_V41 = 9.7 (2 × 4.8163, the largest shift over B10's
  64 and the NVMe-tier rank walk's 72 positions: as large past the head as at it, since the two plans run other
  experts on the card and the host)
- nvtier_family: Family::head_margin -> rank_margin, read at every position; B10's in_band_from_zero the same
- logits_band: walk_floors prints the largest |shift| at 0–1 and beyond and each clear flip (margin, shift);
  walk_at_head and its test go (no caller)
- FAIL-first (box, A6000): every layer's ranked host sum zeroed -> B10 red (3 clear flips, max 28.3, rms 3.60);
  one layer's -> green (rms 1.03 -> 1.17): the rank stage's bits clause holds that class

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017hHKUrKZUgKBgxJ69Ck91G
…row whose argmax the sampler banned reads the gap of the next two ids; gate_qwen4exp_iqleg names the model's new path

fresh_split raises the clarity floor to HEAD_MARGIN_V41 on the real tier when the runs part at token 0 or 1: the 13-id prompt's parting (fresh 0.3036 id 11111, warm 4.0539 id 223) is the prefill gate's P = 1 row, which that margin measures. picks() reads a banned argmax's row (ignore_eos) by its second and third ids instead of counting it clear: the budget continuation parted from its capped run at ids 21017 and 4114, 0.28 and 0.19 apart under the banned end-of-sentence id. The budget clause prints both raw entries where the runs part.

Box: weekly-gpu-ds41-serve passes every clause up to ctx_default, which is red for a separate defect (the default server's spill pages meet a host room the plan already gave to experts); gate-qwen4exp-iqleg green.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017hHKUrKZUgKBgxJ69Ck91G
…loor on the host, and a host that cannot hold them is refused naming the lever, the bytes and what to set instead

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01X1hsQeV6buMi1gT665GhFQ
… context down like a card short; a paged plan with BLOOMERY_R8 unset reads the source, named; the seat watches its card bytes; slot gates read a near tie at the head as a near tie

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01X1hsQeV6buMi1gT665GhFQ
@github-actions github-actions Bot added documentation Improvements or additions to documentation placement Placement planning: crates/placement labels Nov 13, 2026
@midagedev
midagedev merged commit 49c077e into main Nov 13, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation gpu The card engine: crates/gpu*, crates/app host Host crates: qdot, threads, engram, engram-lab, runtime, sampler, levers, decision, vision, refset model The CPU engine and model files: crates/model, models, hf, gguf, tokenizer, jinja needs-gpu Changes code a card must check, and carries no gate run on a card placement Placement planning: crates/placement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant