An Agent RuntimeAgent Runtime
Composes models, tools, sessions, plugins and loops so an Agent can do work.组合模型、工具、会话、插件和循环,让 Agent 能把事情做起来。
agent.run(input) → result
hekouwang Harness Doctor inspects the control plane around an Agent: rules, hooks, CI, contracts, recovery, hosts, and the evidence that connects them. hekouwang Harness Doctor 检查 Agent 外围的控制面:规则、Hook、CI、契约、恢复、宿主,以及把它们连起来的证据。
The runtime executes. The acceptance layer asks whether its boundaries can be independently checked.运行时负责执行;验收层负责追问:它的边界能不能被独立检查、复现和交接。
Composes models, tools, sessions, plugins and loops so an Agent can do work.组合模型、工具、会话、插件和循环,让 Agent 能把事情做起来。
agent.run(input) → result
Inspects any Harness repository and turns claims into evidence, gates and a rerunnable scorecard.检查任何 Harness 仓库,把“我们有”变成证据、门槛和可重跑的评分卡。
harness.audit(repo) → evidence
DeepSeek, Claude, Codex, Cursor, CodeBuddy, or your own runtime.DeepSeek、Claude、Codex、Cursor、CodeBuddy,或者你自己写的运行时。
NO MODEL LOCK-INPaths, lines, commands, exit codes, fixtures and run records outrank README keywords.路径、行号、命令、退出码、fixture 和运行记录优先于 README 关键词。
NO ARTIFACT · NO PASSWorking tree, staged and CI are reported separately. One cannot impersonate another.工作区、暂存区和 CI 分开报告。一次本地通过,不能冒充另外两个。
PARITY OVER CLAIMSA config file proves mounting. A real smoke test proves triggering. Unknown stays unknown.配置文件只能证明挂载,真实烟测才证明触发。没有证据,就保持 unknown。
CONFIG ≠ TRIGGERThis page is driven by a real JSON scan of the content-agent reference Harness. Click a dimension; the evidence ledger changes with it.这一块由真实扫描生成的 JSON 驱动。点击一个维度,下面的证据台账会跟着变化。
Demo note: the score is a decision aid, not a runtime quality guarantee. The sample is a real scan with local paths reduced to repository-relative evidence.演示说明:分数是决策辅助,不是运行时质量保证。示例来自真实扫描,路径已收敛为仓库相对证据。
A beginner-friendly route based on the 36-page Harness tutorial, extended with the acceptance layer that most introductions leave implicit.基于 36 页 Harness 入门教程整理,并补上多数入门文章没有展开的独立验收层。
Start with Agent = Model + Harness. Separate what the model can generate from what the control plane can constrain.先理解 Agent = Model + Harness:把模型能生成什么,和控制面能约束什么分开。
CLAUDE.md explains the path; Skills package repeatable work; a Task Contract defines “done”.CLAUDE.md 说明正确路径,Skill 封装重复流程,Task Contract 定义“完成”到底是什么。
Hooks, Safety Gates and independent Evaluators catch dangerous or false-complete paths before they become delivery claims.Hook、安全门和独立 Evaluator 在危险动作或虚假完成变成交付结论前拦住它们。
Failure ledgers, Context Reset and Sprint Contracts make long work resumable instead of dependent on one chat window.失败台账、Context Reset 和 Sprint Contract 让长任务可以恢复,而不是依赖一段聊天记忆。
Run working-tree, staged and CI separately; keep configured hosts unknown until a real smoke test leaves evidence.分别运行工作区、暂存区和 CI;真实烟测留下证据前,已配置宿主仍保持 unknown。

Every important claim passes through the same small loop. The output is explainable to an engineer, a reviewer and a CI job.每一个重要结论都走同一条小闭环。工程师、审阅者和 CI 都能读懂同一份结果。
$ python3 harness_score.py ./my-harness \ --mode working-tree --mode ci \ --format json --output scorecard.json [scan] source of truth found [run ] working-tree exit 0 [run ] ci exit 0 [host] Claude Code smoke unknown [gate] evidence contract partial → decision: CONDITIONAL
Keep the 12-dimension core stable. Add vertical governance as a profile instead of hard-coding one team's rules into the universal score.通用 12 维保持稳定;把垂直治理做成 Profile,而不是把某个团队的规则硬编码进通用分。
A vertical layer for content workflows: publication state, provenance, channel contracts, artifact boundaries, visual acceptance and external side effects.内容工作流的垂直层:已发布状态、来源、渠道合同、生成物边界、视觉验收和外部副作用。
It can tell you that a visual review field exists. It cannot pretend that a human has looked at the image.它可以告诉你视觉验收字段存在,但不能假装人已经看过了图片。
A content team can add “already published?” or “channel contract?” without changing the universal score engine.内容团队可以加入“是否已发布”“是否有渠道合同”,而不用改动通用评分引擎。
The same JSON can drive a different team's web page, a release artifact or a before/after GIF.同一份 JSON 可以驱动另一个团队的网页、发布 Artifact 或修复前后 GIF。
The checker is a standard-library CLI and an Agent Skill. It does not replace your repository's verification source; it makes that source independently legible.检查器是标准库 CLI 加 Agent Skill。它不替代仓库自己的验证真源,而是让这份真源可以被独立读懂。
Open the repository →打开仓库 →.harness/scripts/verify.sh --working-tree --staged --ci
Find the truth source first. If it is missing, the result is not guessed.先找真源。真源不存在时,结果不会被猜出来。
It can inspect a Harness built on a different model or runtime.可以检查基于不同模型、不同运行时构建的 Harness。
The number is constrained by evidence quality, not test-count theater.分数受证据质量约束,不是测试数量的表演。
It does not rank models or claim that a score predicts intelligence.不排名模型,也不声称分数能预测智能程度。
A configured host remains unknown until a real smoke test leaves evidence.宿主配置存在,直到真实烟测留下证据前,仍然是 unknown。