From 099f665b2032f86182e42f83dcbd0955f14eccda Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Thu, 3 Dec 2026 20:04:22 +0800 Subject: [PATCH] docs: add standard AGENTS.md onboarding contract --- AGENTS.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 AGENTS.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..849b1f2 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,40 @@ +# AiTaskService AGENTS.md + +## What this repository is + +Shared Cloudflare Worker core package (`@codegovernancelab/ai-task-service`) providing authenticated AI task submission, provider routing, and webhook delivery, vendored by downstream consumer services. + +## Stack + +- JavaScript ES Modules (`src/`, `config/`) +- Node.js built-in test runner + Miniflare (`test/`) +- esbuild bundle pipeline (`scripts/`) + +## Layout + +- `src/` — Worker router, provider adapters, workload auth, and task store +- `config/` — Model tier policy and static configuration schemas +- `scripts/` — Build and verification scripts +- `test/` — Unit and contract tests + +## Local checks + +```bash +npm ci +npm test +``` + +## Do not + +- Do not patch vendored copies inside downstream repositories directly; land changes here first and sync downstream. +- Do not commit real API keys, webhook tokens, account IDs, or production domains. + + +- Public repository: NEVER commit real account IDs, credentials, personal info, or private deployment origins. +- Keep `wrangler.example.jsonc` strictly placeholder-only. + + +## Commits and pull requests + +- Use imperative Conventional Commits (`feat`, `fix`, `docs`, `refactor`, `test`, `chore`, `ci`) within 72 characters. +- Run `npm test` before pushing and keep PRs focused on a single concern.