Files
club-3090/scripts/tests
noonghunnaandClaude Opus 4.8 e09eb3f0af feat(c3): hide hardware-incompatible slugs by default + warn-before-download
On rigs whose card can't run a slug's kernels (registry required_sm above
the local SM — e.g. the NVFP4 slugs on this sm_86 rig), the catalog showed
the slugs normally and the Download card pitched a 20 GB fetch that could
never boot. Now:

- kv-calc fit verdict gains the arch floor: fit_verdict()/fit_all_verdicts()
  return {"verdict": "incompatible-hw", required_sm, card_sm, error} when
  the card's SM (derived from the hardware profiles — same source as compat
  C3) is below the slug's required_sm. Bare-number --card carries no arch
  info → gate skipped (permissive). Applies to kvcalc-SKIP slugs too.
- Catalog: incompatible-hw rows share the DEPRECATED [h] bucket — hidden by
  default, revealed by [h]; status line counts them separately
  ("+N incompatible-hw hidden — h"). The verdict lands with async fit
  enrichment, so rows fold away on the enrichment refresh.
- Download confirm card leads with "⊘ no compatible hardware detected —
  requires sm ≥ X (Hopper/Blackwell); this rig's card is sm_Y. It will NOT
  boot on this machine." BEFORE the size/disk pitch — download still
  proceeds (staging for another rig is legitimate). Serve card gets the
  same warning line under fit.
- FitVerdict: incompatible-hw verdict + ⊘ glyph + required_sm/card_sm.

Also updates test-registry-json's VARIANT_KEYS for the #600 emit fields
(kv_format / weights_format / weights_quant_label) — the contract gate
only surfaced post-merge.

Tests: kv-calc-fit section (f) — 3090→incompatible-hw w/ sm fields,
5090→fits-clean, bare-number permissive, fit-all parity; 2 new headless
(hide+reveal+count, download-card warning). Full scripts/tests suite green.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01EfF565T9eSLaqGzidyJ1Pm
2026-07-06 21:49:01 +00:00
..