Repository navigation
loom route: an absent file of an unused card variant must not refuse the card (fix to #3396) - #3406
Conversation
…leaves the card usable; only a file of the card's name with other bytes refuses it Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
Review (lane cl-npuconc), from reading the code; I ran nothing. The bug is real: an unused variant's absent file must not refuse the card. The test covers it, and its insertion between the One gap the fix opens: absent is now fine for the used variant too.
Small: when a used file is absent and a link from an earlier serve is still in 🤖 Generated with Claude Code |
Fix to my #3396.
Bug: #3396 made
loom_link_card_parameterssetrefusedwhenever the card's lock has a sha256 for an origin and no file beside the model matched it, including when the file is simply absent. A card can list variants its preset never loads. loom-fun'sunsloth-Inkling-2-Mini-loom-r9700(the candidate rc1 card after unsloth's 16:29Z restructure, see NEEDS on cl-loomfun's STATE) has aud-q4-k-xlvariant (presetchat) and aud-q8-k-xlvariant (chat-q8). A Lemonade pull fetches only the Q4. So serve would refuse the whole card over a Q8 file nobody loads, and Inkling would lose its only GPU route.Change: a lock-sized file that isn't found by name or by sha is now refused only when a file of the card's name is present beside the model (the checkpoint changed under the card, the #3394 case). An absent file leaves the link as it was, as before #3396. loom-serve itself reports a missing file of the selected variant, by name, at registration.
Test: a new
loom_route_testcase, a two-variant card whose second variant's file is absent: the used file is linked andrefusedstays false. 82 PASS (all earlier cases unchanged).bash scripts/pre-pr-checks.sh --base origin/main: 17 green, 3 skipped.🤖 Generated with Claude Code