Repository navigation
start: a host-side placement refusal names the bytes it asked for in the plan's refusal line - #1081
Conversation
…the plan's refusal line
There was a problem hiding this comment.
Verdict: CLEAN: The shared classifier reports host refusal byte counts while preserving refusal classes and card handling.
Checked
Duplicates: 1 new test function and 1 renamed test checked by Grep; no duplicate owner. The tests cover distinct refusal variants and wrapper paths.
Complexity: crapper flagged no functions. named_by adds a lazy fallback to an existing reader.
Silent failure: 2 changed extraction sites followed through classify, exit_serve and refusal_json; host shortages now carry their requested bytes to the JSON consumer.
Tests: Removing the fallback at start.rs:347 makes the reserve, family and arena assertions fail. Restoring pool_short() at start.rs:364 makes the discrete-host assertion fail. These are static mutation checks; the PR supplies FAIL-first output and reports 11 passing tests on head.
Gates: No gate, threshold, lint or test case removed or relaxed.
Adversarial checks: Wrapped host errors reach their source; unified-memory host errors retain the same byte calculation; card errors keep precedence; unrelated placement errors retain an absent byte count. No reachable regression found.
Performance: Startup refusal reporting only; no decode, prefill or kernel work changed.
Escape catalog: No C1–C4 pattern matched.
Notes
dryer did not run. Its stated reason contradicts the changed-file list, so duplicate checks used manual Grep.
Tests were not rerun. GPU evidence is incomplete: the PR supplies no nvidia-smi card/driver line, tested commit hashes or just gate-* output.
Card check: needs-gpu. This pull request changes crates/gpu-gates/src/start.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)
|
The review is done and the contribution check passed, so I'm merging this. |
host 쪽 배치 거부가
--plan --json거부 줄의need에 요청한 byte 수를 내도록 고쳤습니다.What and why
A host-side placement refusal (
HostRoomFloor,NvTierArena,NvTierArenaUnder,DraftHostRoom, and a load'sHostShort) printed"code":"no-fit"with"need":nullin thebloomery.plan/1refusal line, although the refusal knows the bytes it asked for.start::named_byreadneedonly fromcard_short(), which isNonefor every host-side refusal, and frompool_short()forHostShort, which isNoneon a host whose cards have their own memory.neednow comes from the same two readersplacement_codealready uses to class the refusal (card_short(), thenhost_floor_short()), and aHostShortgives its host need. The class and the exit status are unchanged. Every family reaches this one owner throughPlacementError::source(), so no model-specific branch is added.Release notes: Fixed: a host-side placement refusal now reports the bytes it asked for in
needof the--plan --jsonrefusal line instead ofnull.Code shape
copying it (
AGENTS.md"Common code first",docs/rust-quality.mdR14). Where I found an existing copy, Inamed it below.
(tensor shapes, the attention kind, the quant). A common owner gained no per-model branch, flag or trait method.
tools/check-comments.sh).PIN(YYYY-MM-DD):and its reason.
cargo fmtandcargo clippyare clean on what I touched; the lint count did not go up.Duplication found or removed (
path:line), or "none": none. The change reusesPlacementError::host_floor_shortandHostNeed::bytesincrates/gpu-gates/src/start.rs.What I ran
Tests of the changed
start::module on a GB10 node,cargo oxide test --arch sm_121a -- -p bloomery-gpu-gates --lib start::with the two production lines ofnamed_byput back to base, then on this head:Real binary,
BLOOMERY_HOST_ROOM=4G ./target/release/bloomery-serve --plan --jsonon the GLM fixture (glm53-fixture-00001-of-00003.gguf, three shards). On head the refusal line carries the NVMe expert tier's floor:The class (
no-fit) and the exit status (80) are unchanged.AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.