Agent Skills
› different-ai/openwork
› build-a-witness
build-a-witness
GitHub构建确定性测试见证,通过模拟提供者、伪造API及管理请求日志,支持@openwork/testkit规范下的自动化测试与断言。
触发场景
需要为测试套件构建模拟环境
编写或运行基于testkit的规格测试
安装
npx skills add different-ai/openwork --skill build-a-witness -g -y
SKILL.md
Frontmatter
{
"name": "build-a-witness",
"description": "Mock a provider, add a mock, fake the API for tests. Use when building a deterministic provider witness for @openwork\/testkit specs."
}
Skill: Build a Witness
Follow the pattern established by labs/mock-mcp and the Google fixtures.
Witness contracts
- Attribute requests per identity using the credential. Key observations by
CREDENTIALtoken-ID fingerprints, never by global state. - Expose since-ISO-scoped request logs so each assertion observes only its run.
- Negative queries return immediately. An empty mailbox must not consume its full timeout; slow negative assertions are the first assertions people delete.
- Consent and chooser pages must be programmatically drivable. Resolve only after the callback was actually served, never after a timer.
- A mock contributes environment to
server()at boot. Its address is Den boot configuration; a mock started after Den is a mock Den ignores. - On Daytona, publish the mock at a URL reachable by the remote Den with
exposeMock.
版本历史
- ff5d298 当前 2026-08-20 11:35


