Scan your whole stack
Are you using ai-test-workbench?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v6.2.0
ai-test-workbench was last scanned on 25 Nov 2026 at version 6.2.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 6.2.0 LATEST | 25 Nov 2026 | No rules fired |
| 6.1.0 | 24 Nov 2026 | No rules fired |
| 6.0.0 | 24 Nov 2026 | No rules fired |
| 5.1.1 | 24 Nov 2026 | Not shown |
| 5.1.0 | 24 Nov 2026 | Not shown |
Findings for v6.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 6.2.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
v6.2.0)面向 AI 编码 Agent 的独立可信验证内核与原生多协议 MCP 服务端
提供 四层 fail-closed AST 防假绿门禁 (S0–S5 + AITEST-G101..G117 + 跨文件符号表 + Dieselgate 防护) · 一键变更判决 (verify-change · in-toto v1 + T0/T1/T2) · 原生零依赖 MCP 服务端 (stdio / /mcp / /sse · 16 权威工具 · 帧化子进程 IPC) · 不可变 TrustContext 与粘性 T1 · 全自动零阻塞回环自举 (aitest_bootstrap) · 只读站点探索与接口 Schema 推断 · 真实 PerformanceObserver Web Vitals
English README · v5→v6 升级指南 · 治理与四层门禁 · AI Agent 快速上手 · AGENTS.md · 系统架构 · v6 重构评估报告 · 更新日志
当编码 Agent(Claude Code、Codex CLI、Cursor、VS Code Copilot、Gemini CLI 等)高频生成与修改 Playwright 测试时,核心工程风险是假绿(Fake-Green):测试通过并非因为业务正确,而是因为断言被弱化(toHaveText('49/50') → toBeVisible() 或 expect(true).toBe(true))、异常被吞掉(.catch(() => null) / expect.soft() / test.fail())、治理配置被篡改(testIgnore / 关闭 ESLint 规则),或复用了过期的 results.json。
ai-test-workbench 将这些约束从提示词下沉为工具强执的独立验证内核:
| 指标 | 已核实实测值(标明语料范围与复现入口) | 对应保障机制 |
|---|---|---|
假绿逃逸率 (FGER-internal / FGER-holdout) |
内部对抗语料 0.0% (26/26) · 红队留出集 0.0% (24/24)(npm run bench) |
四层 fail-closed AST 门禁 (AITEST-G101..G115) + T1 MAC 治理锁 |
| 良性重构误报率(内部良性语料) | 0.0% (12/12)(Prettier 换行、定位器重命名、ARIA 合并,npm run bench) |
TypeScript Compiler API 全文件语义 AST 比对 |
Gate FPR(真实提交未见留出集,n=50,seed=20261125) |
6.1% (3/49 正常提交,Wilson 95% CI [2.1%, 16.5%]);原始告警 8.0% (4/50,保留 1/1 真报);较 v5.1.1 的 12.2% (6/49, CI [5.7%, 24.2%]) 下降 50% |
5 个宽松许可开源仓盲测,详见 v6 留出集对比报告 |
Gate FPR(真实提交试跑集,n=50,seed=20261124) |
4.2% (2/48,Wilson 95% CI [1.2%, 14.0%]);较 v5.1.1 的 20.8% (10/48, CI [11.7%, 34.3%]) 下降 80%;合并 n=100 为 5.2% (5/97,CI [2.2%, 11.5%],保留 3/3 真报);>=200 正式评测:pending(不外推) |
跨文件标题池化 + 词法作用域栈 + 结构化 skip 计次 + web-first 格校准 + 蜜罐感知(ADR-0004) |
自治红队假绿逃逸率 (FGER-agentic) |
脚本化多步红队基线(live-playwright,n=16,npm run bench:agentic):本地 T1 12.5% (2/16, CI [3.5%, 36.0%] — 仅同用户边界探针 AG-B4/AG-C4) · CI T2 合入级 0.0% (0/16, CI [0.0%, 19.4%]) · 合法修复对照 4/4 T2 通过;实盘 LLM (claude/codex/gemini):pending(适配器就绪,不做外推) |
隔离沙箱 + 隐藏业务断言 + 临时 Fulcio T2 CA;详见 红队架构设计 与 实测基线报告 |
种子缺陷检出率 (SDDR) |
单应用靶场 demo-campus 100.0% (7/7)(npm run bench) |
零依赖 JSON Schema 校验 + RBAC/并发竞态 + WCAG 2.0/2.1/2.2 |
| 诊断分类准确率 / C→A 误判率 / 误修率 | 内部语料 45/45 + 真实 Playwright 堆栈 12/12:100% · C→A 0.0% · 误修率 0.0% |
结构化运行时守卫 + C 优先于 A 规则 + 防篡改自愈状态机 |
| 凭据脱敏召回率 | 内部对抗语料 100.0% (35/35)(npm run bench) |
Redaction v2(结构化先解析后脱敏,保留 heal_*/job_* ID) |
判决信任分级 (T0 / T1 / T2) |
T0 = 未经验证的本地运行 · T1 = 本地 Run Ledger + MAC(证明完整性,不证明来源) · T2 = 在 GitHub 托管的 runner 上从干净 checkout 重跑,用 Sigstore 免密钥签名,并且校验通过签发者身份 | 只有 T2 是合入级绿灯;详见 可复用工作流示例 与 attest verify |
在业务仓库接入 T2 可复用工作流(见 examples/workflows/use-aitest-verify.yml):
jobs:
aitest-t2-verdict:
uses: seaworld008/ai-test-workbench/.github/workflows/aitest-verify.yml@v6.2.0
permissions:
id-token: write
attestations: write
contents: read
security-events: write
with:
qa-dir: qa
suite: impact
node-version: '22'
signer: github-attest # 默认;可选 cosign
离线校验 T2 证书(默认 fail-closed,缺签名 / 仅 T1 / 身份不符 / 改动 1 字节均非 0 退出且 trustLevel <= T1):
npx ai-test-workbench@6.2.0 attest verify \
--file attestation.json \
--bundle attestation.sigstore.json \
--expect-repo owner/repo \
--expect-workflow .github/workflows/aitest-verify.yml \
--expect-ref refs/heads/main
私有仓库签名方式说明:默认
signer: github-attest使用 GitHub Artifact Attestations(actions/attest),私有仓库需 GitHub Enterprise Cloud;若切换signer: cosign,公共 Sigstore 会将仓库与工作流身份写入公开透明日志(Rekor),私有项目须自行评估后再决定是否启用。
v6.2.0 在零循环四层单向依赖基础上引入稳定应用门面 (src/app/index.mjs) 与不可变 TrustContext,全仓所有 src/**/*.mjs 均控制在 <= 500 行内(详见 ARCHITECTURE.md 与 ADR-0002):
flowchart TB
L4["Layer 4: 协议与交互层 — src/cli/ (CommandResult v2) · src/mcp/ (16 权威工具 + 帧化 IPC 作业)"]
L3["Layer 3: 应用门面与领域子系统层 — src/app/ · trust · explore · codemap · perf · verdict · heal · diagnose · impact · bootstrap"]
L2["Layer 2: 权威验证内核 SSoT — src/kernel/ (target-guard · schema-validator · gate/ SymbolTable + G101..G117)"]
L1["Layer 1: 零依赖基础叶模块 — src/core/ (version · outcome · config · redact v3 · glob · proc) · src/types/*.d.ts"]
TPL["脚手架分发镜像 (单向生成) — templates/playwright-qa/support/ (@generated + sha256 戳)"]
L4 --> L3 --> L2 --> L1
L4 --> L2
L2 -. "npm run sync:vendor (CI 强校字节一致)" .-> TPL
>= 22.12.0(推荐 24 LTS 或 26 LTS);支持 Windows PowerShell (pwsh)、macOS、Linux。package.json 不含运行时 dependencies;请始终锁定精确版本 npx ai-test-workbench@6.2.0 <cmd>、全局安装后的短命令 aitw <cmd>(npm i -g ai-test-workbench@6.2.0),或源码直连 node tools/aitest.mjs <cmd>。stdio / /mcp / /sse)claude mcp add ai-test-workbench -- npx --package=ai-test-workbench@6.2.0 ai-test-workbench mcp-serve --workspace-root /path/to/your-repo
.codex/config.toml):[mcp_servers.ai-test-workbench]
command = "npx"
args = ["--package=ai-test-workbench@6.2.0", "ai-test-workbench", "mcp-serve"]
.mcp.json):{
"mcpServers": {
"ai-test-workbench": {
"command": "npx",
"args": ["--package=ai-test-workbench@6.2.0", "ai-test-workbench", "mcp-serve"]
}
}
}
/mcp) + Legacy SSE (/sse):npx ai-test-workbench@6.2.0 mcp-serve --transport http --port 3847 --target /path/to/your-repo --workspace-root /path/to/your-repo
conformance/ 下的官方回归套件(不随 npm 包发布,由 CI mcp-conformance 执行):@modelcontextprotocol/conformance@0.1.16(Streamable HTTP /mcp,active 套件 30 场景):8/8 协议通用场景全部通过,22 项预期未适用场景登记在 conformance/expected-failures.json,0 项未登记失败。@modelcontextprotocol/sdk@1.32.2 参考 Client(5/5 通过):覆盖 stdio、Streamable HTTP (/mcp) 与 Legacy SSE (/sse + /messages),验证 2024-11-05..2025-11-25 版本协商、tools/list 精确 16 个工具与合法 Schema、structuredContent、notifications/progress 与 AbortController 取消请求。# 1. 体检、初始化与模板安全升级
npx ai-test-workbench@6.2.0 doctor
npx ai-test-workbench@6.2.0 init --name my-app --target "/path/to/your-repo" --loop codex
npx ai-test-workbench@6.2.0 upgrade --target "/path/to/your-repo" --dry-run
# 2. 登录态捕获 -> 只读探索 -> 代码地图 -> 锁版本外部 MCP
npx ai-test-workbench@6.2.0 auth-login --target "/path/to/your-repo" --base-url https://staging.example.internal
npx ai-test-workbench@6.2.0 explore --target "/path/to/your-repo" --base-url https://staging.example.internal --max-pages 30
npx ai-test-workbench@6.2.0 map --target "/path/to/your-repo"
npx ai-test-workbench@6.2.0 mcp add --target "/path/to/your-repo" --profile full-link && npx ai-test-workbench@6.2.0 mcp doctor --target "/path/to/your-repo" --lock
# 3. 性能 SLO 与提交前一键变更判决
npx ai-test-workbench@6.2.0 perf --target "/path/to/your-repo" --concurrency 4 --iterations 12 --enforce-budget
npx ai-test-workbench@6.2.0 verify-change --target "/path/to/your-repo" --base origin/main
本机克隆全量自检(零外部服务器):
git clone https://github.com/seaworld008/ai-test-workbench.git
cd ai-test-workbench
npm ci && (cd templates/playwright-qa && npm ci && npx playwright install chromium)
npm run check:vendor && npm run lint:docs && npm run typecheck && npm test && npm run smoke && npm run demo:verify && npm run bench
下表由 scripts/generate-docs.mjs 从 src/mcp/registry.mjs 单源自动生成,并由 npm run lint:docs 强制防漂移:
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.