stalegreen
确保编码智能体绿色测试声明真实的钩子插件:记录未遮蔽的验证运行,并在证据过期、失败或被遮蔽时阻止“完成”操作。
AI 分析
用于规范 AI 编码智能体的测试验证流程,防止其在测试未通过或凭据过期时虚报成功。适合对代码质量和自动化测试有严格要求的开发者。
安裝
此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗
說明文件
閱讀完整 README ↗Configuration
~/.stalegreen/config.json, overridable per repository in .stalegreen.json:
{
"policy": "block",
"mode": "rewrite",
"strictNoEvidence": false,
"tailLines": 40,
"categories": { "test": true, "typecheck": true, "lint": true, "build": true },
"ignoreCommands": ["make lint-fast"],
"extraRunners": [{ "match": "^make check", "category": "test", "pass": "^OK", "fail": "FAILED" }],
"fingerprintIgnore": ["*.md", "docs/**"],
"fingerprintBudgetMs": 150,
"deferredTtlMinutes": 10,
"maxLogBytes": 5242880,
"permission": "inherit",
"prune": "30d"
}
policy:block(default) oradvisory, which records verdicts without blocking.mode:rewrite(default),strict(masked commands that cannot be wrapped are denied with a rerun instruction) oroff(no rewriting).strictNoEvidence: block claims that have no run at all.tailLines: how many lines of a wrapped run the agent sees; the agent's owntail -nis kept when it asks for at least 20.categories,ignoreCommands,extraRunners: which categories are gated, commands never treated as runs, and your own runners (matchis a regular expression on the command,passandfailon the output).fingerprintIgnore,fingerprintBudgetMs: paths left out of the working-tree hash, and the time after which the hash is marked unavailable and edit events decide.deferredTtlMinutes: how long a background run counts as in flight.maxLogBytes: logs above this size are truncated with a marker.permission:inherit(default, an allow decision only when your own rules already allow the command),allow(every verification run) orask(never a decision; on Codex this turns the rewrite off).prune: the windowstalegreen doctor --prunekeeps; older sessions are removed from the store.