Repository navigation
feat(tools): 新增三阶段技能准入评测与安全审计套件 - #1605
Closed
Xuanqi-Zhou wants to merge 1 commit into
Closed
Xuanqi-Zhou wants to merge 1 commit into
Xuanqi-Zhou wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
在
tools/skill-eval-suite/下新增独立可运行的三阶段技能/专家准入评测与安全审计套件(纯 Python 3.9+ 标准库,零外部 SDK 依赖),详见tools/skill-eval-suite/README.md。套件结构
scripts/security_gate.py+scripts/security/):正则扫描、Python AST 反绕过、PII/供应链审计、多宿主兼容预检(harness-check)、精确域名白名单证据处置,以及带原文精确命中反算行号抗幻觉核验的 LLM 静态语义审查(默认--llm-audit auto)。scripts/tier2_gate.py+scripts/tier2/):四维质量打分、向量(bge-m3)/ 离线 TF-IDF 双后端查重、skills/与experts/分池隔离及干扰项decoys.json导出。scripts/tier3_gate.py+scripts/tier3/):分片并发、With-Skill + DecoysvsWithout-Skill对照、CANARY_SECRET硬红线、LLM-as-a-judge 语义裁判与自包含样例合成,并在 README 中附带后续真沙箱演进方案。验证
cd tools/skill-eval-suite && python3 -m unittest tests.test_security_gate tests.test_tier2_gate tests.test_tier3_gate -v:22/22 全部通过。