cc-haha/adapters/AGENTS.md
程序员阿江(Relakkes) 435e4ccc9f ci: harden deterministic PR quality gates
Route required checks by changed surface, add offline provider and chat contracts, and keep fork PRs independent of live credentials. Layer agent guidance by subtree and enforce a compact instruction budget.

Tested: bun run check:policy
Confidence: high
Scope-risk: broad
2026-07-10 20:29:01 +08:00

772 B

Adapter Instructions

These rules apply to adapters/ changes in addition to the root instructions.

  • Reuse shared adapter utilities and keep platform-specific behavior within the relevant Telegram, Feishu, WeChat, or DingTalk package.
  • Install adapter dependencies in adapters/ on a fresh checkout; do not change root dependencies for an adapter-only task without a verified need.
  • Add focused tests for the affected adapter, then follow bun run check:impact; adapter changes normally select bun run check:adapters.
  • Required tests must not call real messaging platforms or use saved accounts/tokens. Use fixtures, mocked transports, and temporary session/config paths.
  • Do not read or mutate the user's real adapter bindings or session files during tests.