SuperAPI AI 工具集

harness-genome

通用与其它

查看项目

更新于 10-15 23:33

技能介绍

用途:作为 harness-score 的补充,genome 提供 7 段式分类与数值报告,覆盖 repo_type、agent_topology、risk_score(0-1)、mcp_surface、test_confidence(0-1)与 publish_readiness(0-1),用于在基于某仓库脚手架自定义 harness 之前做预审、随时间做漂移检测,或作为 CI 门禁。

主要能力:实现位于 scripts/genome.mjs,通过 shell 调用 npx metaharness genome <path> --json(硬超时 60 秒),解析返回的 { repo_type, agent_topology[], risk_score, mcp_surface, test_confidence, publish_readiness }。保留上游的 readiness 判定为 verdict 与 verdictExitCode;上游对 needs-work 退出码 1、对 blocked 退出码 2,这些属于有效报告,包装器仍视为成功返回。支持 --alert-on-risk-above N:当 risk_score > N 时退出码 1。输出默认 JSON,也可输出 markdown。

用法与基线:以 ruflo 在 2026-06-16 的 Phase-0 基线为例,结果为 repo_type: node_mcp_ci、agent_topology: [maintainer, tester, security, release]、risk_score: 0.27、mcp_surface: remote、test_confidence: 0.8、publish_readiness: 0.9;其中 0.27 属于低风险(良好),0.9 为高发布就绪度,mcp_surface 为 remote 表示 MCP 服务器为托管而非内置。

适用场景与限制:适合预铸审查、长期快照差异比对与 CI 风险阈值门禁;可与 harness-score(数值就绪度)、harness-mcp-scan(静态 MCP 安全发现)、harness-threat-model(企业评审级威胁模型)配合使用。除上述内容外,其他细节暂未提供。