X-Templates / tests
AGENTS.md16 starsChanged 6 days agoMITView on GitHub
Quy ước riêng của thư mục này, nạp khi làm việc ở tests/ (Claude Code: qua CLAUDE.md cùng thư mục). Luật chung: ../AGENTS.md; mẫu theo thư mục: XC-DOCAI-011.
In this repository39 other files it gives its agents.
- AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- scripts/CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
- adrSkill
- auditSkill
- autopilotSkill
- blueprintSkill
- completeSkill
- debugSkill
- factorySkill
- gateSkill
- handoverSkill
- incidentSkill
- migrate-dbSkill
- optimizeSkill
- researchSkill
- reviewSkill
- tddSkill
- ui-verifySkill
- upgradeSkill
- adrSkill
- auditSkill
- autopilotSkill
- blueprintSkill
- completeSkill
- debugSkill
- factorySkill
- gateSkill
- handoverSkill
- incidentSkill
- migrate-dbSkill
- optimizeSkill
- researchSkill
- reviewSkill
- tddSkill
- ui-verifySkill
- upgradeSkill
The file
Files
AGENTS.md — tests/
Quy ước riêng của thư mục này, nạp khi làm việc ở
tests/(Claude Code: quaCLAUDE.mdcùng thư mục). Luật chung:../AGENTS.md; mẫu theo thư mục:XC-DOCAI-011.
- Nhập test khác:
sys.path.insert(0, str(Path(__file__).resolve().parent))rồifrom test_x import …(mẫu:test_deploy_receipt.py). Khôngfrom tests.test_x import …:test-selectkhông lần theo import dạngtests., nên lớp phụ thuộc bị bỏ ở cổng nhanh (AUD-TEST-136). - Chạy:
python3 -m unittest tests.test_x. Toàn bộ kèm coverage:PATH=<venv>:$PATH scripts/dev-task.sh test(song song; CI chạy 8 shard). Coverage dòng + nhánh 100 % do CI đo, cả tiến trình con. - Không ngưỡng giây/CPU cứng (
BASE-GATE-005): dùngcpu_budget.assert_not_quadratic; hạn chống treo quacpu_budget.run_with_deadline(…, hang="lý do")(sànHANG_FLOOR). Không dùng chỉ thị bỏ qua coverage, lint hay skip (BASE-GATE-003). - Đổi
.claude/hooks/guard.py: chạy thêmtest_green_shell,test_green_gh,test_signoff2_scripts,test_audit_dot4_har— chúng ghim các quyết định "được qua" và mãBUDGETcũ (AUD-SEC-747, 603). Luật guard mới phải là tập cha của luật cũ: so quyết định thô base với nhánh ở cả hai chính sách (mặc định vàXT_GUARD_POLICY=strict). Fixturefixtures/autonomy/guard.json: ca chặn đi kèm ca đối chứng không chặn oan. Agent không tự nới trần byte; nới là quyết định ADR (ADR-0089). - Test cần git: tự đặt
user.name/user.emailtrong repo tạm; runner CI không có cấu hình toàn cục. - Bench tự hành: ID 🔴/🟠
đã sửalà bắt buộc phủ; chưa có ca thì khai vàofixtures/autonomy/scope.jsonkèm lý do. - Lớp test mới:
shard-weights.jsongiữ trọng số để CI chia shard đều;tests/test_ci_shard.pycho thiếu trọng số tới 15 % số lớp, quá ngưỡng thì chạyscripts/dev-task.sh test-weights.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

