技能 编程开发 仓库就绪度与风险分析报告

仓库就绪度与风险分析报告

v20261108
harness-genome
Harness Genome 生成关于仓库就绪度的综合七部分报告。它评估仓库类型、代理拓扑、风险评分、MCP 表面积、测试置信度和发布就绪度。适用于预发布审查、漂移检测和 CI 门禁。作为 harness-score 的配套工具,提供代码质量和安全态势的分类与数值洞察。
获取技能
251 次下载
概览

Companion to harness-score. Where score is a 5-dimension numeric
scorecard, genome is a 7-section categorical/numeric report covering
repo type, agent topology recommendations, risk score (0-1), MCP
surface area, test confidence (0-1), and publish readiness (0-1).

Algorithm

Implementation: scripts/genome.mjs.

  1. Shell out to npx metaharness genome <path> --json (60s hard timeout).
  2. Parse the shape: `{ repotype, agenttopology[], risk_score,

mcpsurface, testconfidence, publish_readiness }`.

  1. Preserve upstream's readiness verdict as verdict and

verdictExitCode. Upstream exits 1 for needs-work and 2 for blocked;
these are valid reports, so the wrapper returns them successfully.

  1. If --alert-on-risk-above N: exit 1 when risk_score > N.
  2. Output JSON (default) or markdown.

Phase-0 baseline (ruflo, measured 2026-06-16)

{
  "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
}

Ruflo's risk_score: 0.27 is low (good). publish_readiness: 0.9 is
high. The mcp_surface: "remote" reflects that ruflo's MCP servers are
hosted, not bundled.

When to use

  • Pre-mint review: "before scaffolding a custom harness from this repo,

should we?" — genome answers it categorically.

  • Drift detection: capture genome snapshots over time, diff via

cost-diff-style tooling to spot when agent_topology recommendations
drift away from a deliberate architecture choice.

  • CI gate: --alert-on-risk-above 0.5 fails the build when the repo's

risk profile crosses a threshold.

Pairs with

  • harness-score — numeric readiness
  • harness-mcp-scan — static MCP security findings
  • harness-threat-model — enterprise-review-grade threat model
信息
分类 编程开发
名称 harness-genome
版本 v20261108
大小 2.19KB
更新时间 2026-11-11
语言