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
This commit is contained in:
程序员阿江(Relakkes)
2026-07-10 20:29:01 +08:00
parent a6964f1932
commit 435e4ccc9f
33 changed files with 1228 additions and 675 deletions
+9
View File
@@ -0,0 +1,9 @@
# 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.