
Tracegate CI
io.github.davidscotttufts由 GitHub 账号 davidscotttufts 发布v0.10.1更新于 Nov 3, 2026
面向编码代理的本地 CI 代理与测试影响账本:队列、通道模式与失败运行数据包。
AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。
原文描述
Local CI broker and test-impact ledger for coding agents: queue, lane modes and red-run packets.
概览
Tracegate CI 的本地 MCP 服务;无需登录;STDIO。
暂无 AI 概览:以下信息来自注册中心条目和服务本身。
安装
在 SourceWeft 中
- 打开 控制台中的 Tracegate CI,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Tracegate CI
Local CI for TypeScript that runs only the tests a change can affect, and has to earn the right to skip the rest.
Tracegate records what each test file touches when it runs: the functions it executes, the modules it loads, and the files it reads. When you change code, a test whose recorded inputs didn't change can reuse its last green result. The rest run.
It doesn't skip anything until that has been shown to be safe:
- Shadow first. Every test still runs, and Tracegate logs what it would have skipped.
- Entry bar. A lane starts skipping only after 20 runs over 14 days, with no untriaged miss in the last 14 days.
- Random audits. 5% of the skippable tests run anyway.
- A miss suspends it. If a test predicted safe to skip fails anyway, the lane runs everything for 14 days, unless someone triages the miss as a flaky test.
It can't turn a red into a green. A failing test's record is dropped, and no record older than 72 hours is reused.
Tracegate came out of a private TypeScript monorepo with about 3,700 test files, where it gates every merge. Its measured miss rate there is published in docs/evidence/.
Install
init without --write only prints what it would do. It never overwrites an existing
config, and it tells you which Vitest configs to edit by hand.
Requirements: Node 22+, git, Vitest 4.1–5.x or Jest 30, and TypeScript 5 or 6 in your
repository. On TypeScript 7, also install 6 under an alias Tracegate looks for:
npm i -D tracegate-typescript@npm:typescript@6.
Claude Code plugin
The plugin adds an MCP server, two subagents (red-reader, deps-oracle), two skills,
and a hook. In a Tracegate repository, the hook stops agents from running a bare vitest
or npm test outside the queue, and from triaging misses or approving skipped tests
themselves. TRACEGATE_HOOK=off turns it off.
What the plugin runs and touches (also in PRIVACY.md):
- Runs:
nodeon its own files (the MCP server over stdio, and the hook),git, your test runner, the commands you givetracegate lease, andssh-keygenorgpgwhen you runattest. - Reads: your repository and its history, test coverage, and this machine's load and
memory (
ps,vm_stat,sysctlandpmseton macOS;/procon Linux). - Writes: its ledger in
.git/tracegate/, temporary files and a socket in the OS temp directory, git notes underrefs/notes/tracegatewhen you runattest, and the filesinit --writelists. - Sends: nothing by default: no telemetry and no network calls. Two features you turn
on yourself use the network through your own login:
attest --statusposts a GitHub commit status withgh, and the release bus reads and writes a GCS bucket you name, withgcloud. - Installs: nothing. The package has no runtime dependencies.
How it decides
A test reuses its last green result when nothing it depends on has changed since. That means no change to:
- a function it executed, a constant it uses, or a module it loaded;
- a file it read;
- the test file itself;
- a global input, such as
package.json, a lockfile or the Vitest config; - the repository's history, for a test that runs
giton it.
Uncommitted edits count. Edits inside functions the test never ran don't.
What a recording can't see is the clock, environment variables, the network, and other processes. The 72-hour limit, the random audit, and a full run at least once a day cover those. The full rules are in How a decision is made.
Commands
tracegate --help lists every command and flag.
Configuration
tracegate init --write creates tracegate.config.json. A lane is one test project:
List your test setup directory under globals: every test loads it, so a change there
runs the whole lane. All settings are in the guide.
What else is in the box
Why not Vitest's recordDependencies? The comparison
runs both on the same commits. Tracegate selects per function, sees files read at run
time, and audits its own skips.
More
- Guide: the full reference.
- Roadmap and changelog.
- Background: the research and measurements behind the design.
- Recipes: with claude-code-merge-queue, edit-level guards, worktrees, and
a
bin/ciscript.
来源:README.md,提交 b19ddd9
工具
0版本历史
2- v0.10.1最新Nov 3, 2026
- v0.9.1Oct 31, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分