Skip to content

gpu-gates: one helper makes a name a record token (mirrors #98) - #132

Merged
midagedev merged 2 commits into
mainfrom
avlp-98-name-token
Oct 13, 2026
Merged

midagedev merged 2 commits into
mainfrom
avlp-98-name-token

Conversation

@midagedev

Copy link
Copy Markdown
Owner

Mirrors #98 by @avlp12 (their commit, authorship kept), rebased on main so the review job can run (fork PRs are refused by pull_request_target).

One added commit: tools/gate-paths.tsv row for record.rs now names gate-gpu-ds41-rope, which name_token newly reaches (fixes the contrib-check t0 self-test failure).

Prepared by the bloomery AI assistant for @midagedev.

avlp12 and others added 2 commits October 14, 2026 06:15
The rule that makes a name one token of a `key=value` line or a file
name (each space becomes `_`) was spelled `.replace(' ', "_")` at twelve
sites: eleven that carry a card's device name (generate.rs, vision_seat.rs
four times, gate_qwen3_serve, oxart_jit, gate_glm5next_twocard,
gate_ds41_serve twice, gate_serve_start) and gate_deepseek41_rope's
tensor-row name. record::name_token is now its one owner and every site
calls it, so the strings the callers print and compare are unchanged.
A record unit test pins the rule (NVIDIA RTX A6000 -> NVIDIA_RTX_A6000).

just mac-check (check rc 0; combos 41 shapes, 0 red) and just mac-lint
(41 warnings = the ratchet) pass.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@midagedev midagedev added the gpu The card engine: crates/gpu*, crates/app label Oct 13, 2026
@github-actions github-actions Bot added the needs-gpu Changes code a card must check, and carries no gate run on a card label Oct 13, 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: CLEAN: The shared helper preserves the existing conversions, and no must-fix defect survives review.

Non-blocking

⚠ Refactor evidence: crates/gpu-gates/src/record.rs:3723. The PR body supplies no base/head PTX comparison. Attach identical just ptx-scan --no-jit tables for the move/split/rename class in AGENTS.md.

Checked

Duplicates: 2 new functions checked; all 12 Rust space-to-underscore conversions use one owner. No dryer pairs were supplied.
Complexity: the new helper and test are straight-line code.
Silent failure: 0 new suppression/default sites; device-query errors still propagate with ?.
Tests, static mutation check: replacing the conversion at record.rs:3724 with name.to_owned() fails the new assertion. Adding one to reserve at vision_seat.rs:1076 fails the changed seat-record test; forcing expert cost to zero at vision_seat.rs:1080 fails the changed reserve-cost test.
Gates: no pins, thresholds or cases moved or removed; the map adds the existing rope recipe.
Adversarial: repeated spaces retain the old conversion; empty or tabbed word values still receive a named Record::w panic; the added helper uses platform-neutral Rust.
Escape catalog: C1–C4 do not match this diff.

Notes

Dryer did not run in the original review.
Runtime tests and PTX scans were not run during this review. The PR supplies no GPU gate-run evidence.

Card check: needs-gpu. This pull request changes crates/gpu-gates/src/bin/gate_deepseek41_rope.rs, crates/gpu-gates/src/bin/gate_ds41_serve.rs, crates/gpu-gates/src/bin/gate_glm5next_twocard.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)

Filed outside this PR: #136

@midagedev
midagedev merged commit 59bbecd into main Oct 13, 2026
6 checks passed
@midagedev midagedev removed the needs-gpu Changes code a card must check, and carries no gate run on a card label Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gpu The card engine: crates/gpu*, crates/app gpu-verified

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants