From 17002c7d6654f3a24da4dfb6c5432abe8adef9cd Mon Sep 17 00:00:00 2001 From: Jin Pan Date: Wed, 22 Jul 2026 23:57:19 +0000 Subject: [PATCH] fix(evolution): keep skill contracts growth-safe --- SKILL.md | 2 +- tests/test_validate.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SKILL.md b/SKILL.md index aae3e961..846a9ebb 100644 --- a/SKILL.md +++ b/SKILL.md @@ -1,6 +1,6 @@ --- name: rocm-kernel-wiki -description: Search and apply ROCmKernelWiki when optimizing AMD Instinct kernels for MI300/gfx942 or MI350/MI355X/gfx950. Use for MFMA, LDS, direct-to-LDS, s_waitcnt, FP8/FP6/FP4/MXFP, wave reductions, GEMM/attention/MoE, CUDA-to-HIP migration, and CK/CK-Tile/AITER/hipBLASLt/FlyDSL/Triton/HIP/GCN implementations. Also use for merged-PR evidence from composable_kernel, AITER, Tensile, rocBLAS, flash-attention, FlyDSL, Triton, vLLM, or SGLang. Do not use for other GPU architectures, NVIDIA-only kernels, host framework behavior, or ROCm installation and driver troubleshooting. +description: Search and apply ROCmKernelWiki when optimizing AMD Instinct kernels for MI300/gfx942 or MI350/MI355X/gfx950. Use for MFMA, LDS, direct-to-LDS, s_waitcnt, FP8/FP6/FP4/MXFP, wave reductions, GEMM/attention/MoE, CUDA-to-HIP migration, and CK/CK-Tile/AITER/ATOM/hipBLASLt/FlyDSL/Triton/HIP/GCN implementations. Also use for merged-PR evidence from ROCm/rocm-libraries, AITER, ATOM, flash-attention, FlyDSL, Triton, vLLM, or SGLang. Do not use for other GPU architectures, NVIDIA-only kernels, host framework behavior, or ROCm installation and driver troubleshooting. --- # ROCmKernelWiki — AMD CDNA Kernel Optimization Wiki diff --git a/tests/test_validate.py b/tests/test_validate.py index d54607ee..015f6f9a 100644 --- a/tests/test_validate.py +++ b/tests/test_validate.py @@ -119,9 +119,6 @@ def test_codex_skill_contract(): assert re.fullmatch(r"[a-z0-9]+(?:-[a-z0-9]+)*", skill["name"]) assert len(skill["description"]) <= 1024 assert "merged-PR" in skill["description"] - for repo in (ROOT / "sources/prs").iterdir(): - if repo.is_dir(): - assert repo.name.lower() in skill["description"].lower(), repo.name assert len(skill_text.splitlines()) < 500 assert "~/.claude/skills" not in skill_text assert "$HOME/.agents/skills" in readme @@ -234,7 +231,10 @@ def test_get_page_scope_and_index(): try: from _index import id_index - assert len(id_index()) == 7542 + manifest = yaml.safe_load( + (ROOT / "data/corpus-manifest.yaml").read_text(encoding="utf-8") + ) + assert len(id_index()) == manifest["counts"]["unique_page_ids"] finally: sys.path.remove(scripts_dir)