test-discipline
Update tests when changing APIs — no exceptions
- License 许可
- MIT
- 最近更新
- 2026-10-27
- Stars
- ★ 0
- Forks
- 3
01 前言 Front Matter
- name
- test-discipline
- domain
- quality
- source
- earned (Fenster/Hockney incident, test assertion sync violations)
- confidence
- high
- description
- Update tests when changing APIs — no exceptions
02 资源文件 110
- 参考文档copilot-studio/agent.sync.yaml174 B
- 参考文档copilot-studio/behaviors/aibast_competitive-landscape.mcs.yml1.0 KB
- 参考文档copilot-studio/behaviors/aibast_coverage-gaps.mcs.yml1.0 KB
- 参考文档copilot-studio/behaviors/aibast_labor-trends.mcs.yml1.0 KB
- 参考文档copilot-studio/behaviors/aibast_market-sizing.mcs.yml1.1 KB
- 参考文档copilot-studio/behaviors/aibast_territory-plan.mcs.yml1.1 KB
- 参考文档copilot-studio/behaviors/aibast_territory-snapshot.mcs.yml1.1 KB
- 参考文档copilot-studio/capabilities/knowledge/files/aibast_staffing-territory-planning-rules-and-guardrails.md2.8 KB
- 参考文档copilot-studio/capabilities/knowledge/files/aibast_staffing-territory-planning-rules-and-guardrails.md.mcs.yml220 B
- 参考文档copilot-studio/capabilities/knowledge/files/aibast_staffing-territory-planning-synthetic-records.md12.4 KB
- 参考文档copilot-studio/capabilities/knowledge/files/aibast_staffing-territory-planning-synthetic-records.md.mcs.yml214 B
- 参考文档copilot-studio/settings.mcs.yml4.3 KB
- 参考文档deployment.json4.2 KB
- 参考文档EASY-MODE-COPILOT-CHAT.md245 B
- 参考文档EASY-MODE-PERSONLESS.md245 B
- 参考文档EASY-MODE.md2.7 KB
- 参考文档evals/copilot-studio-preview-evidence.json2.1 KB
- 参考文档evals/dataverse-draft-evidence.json1.6 KB
- 参考文档evals/manual-build-evidence.json3.6 KB
- 参考文档evals/onepager-map.json4.2 KB
- 参考文档evals/source-audit.json1.7 KB
- 参考文档evals/transcripts.json15.4 KB
- 参考文档evals/visual-checkpoints.json30.1 KB
- 参考文档evidence-report.html31.2 KB
- 参考文档export-manifest.json57.4 KB
- 参考文档exports/README.md1.6 KB
- 资产文件exports/staffing-territory-planning-copilot-studio-solution.zip43.7 KB
- 参考文档exports/staffing-territory-planning-deployment-settings.json213 B
- 参考文档exports/staffing-territory-planning-solution-export.json1.1 KB
- 参考文档field-guide.html38.2 KB
- 参考文档FIELD-GUIDE.md13.9 KB
- 参考文档manual-tutorial.html92.9 KB
- 参考文档manual/GLOBAL-INSTRUCTIONS.md3.4 KB
- 参考文档manual/knowledge/aibast_staffing-territory-planning-rules-and-guardrails.md2.8 KB
- 参考文档manual/knowledge/aibast_staffing-territory-planning-synthetic-records.md12.4 KB
- 参考文档quest.html146.4 KB
- 参考文档README.md3.8 KB
- 资产文件screenshots/assisted/01-review-build.jpg123.7 KB
- 资产文件screenshots/assisted/02-stp-01.jpg118.4 KB
- 资产文件screenshots/assisted/03-stp-02.jpg132.9 KB
- 资产文件screenshots/assisted/04-stp-03.jpg139.6 KB
- 资产文件screenshots/assisted/05-stp-04.jpg129.5 KB
- 资产文件screenshots/assisted/06-stp-05.jpg135.4 KB
- 资产文件screenshots/assisted/07-stp-06.jpg212.5 KB
- 资产文件screenshots/assisted/08-confirm-draft.jpg28.5 KB
- 资产文件screenshots/assisted/annotated/01-review-build.png131.3 KB
- 资产文件screenshots/assisted/annotated/02-stp-01.png118.4 KB
- 资产文件screenshots/assisted/annotated/03-stp-02.png137.1 KB
- 资产文件screenshots/assisted/annotated/04-stp-03.png139.0 KB
- 资产文件screenshots/assisted/annotated/05-stp-04.png127.1 KB
- 资产文件screenshots/assisted/annotated/06-stp-05.png137.6 KB
- 资产文件screenshots/assisted/annotated/07-stp-06.png200.4 KB
- 资产文件screenshots/assisted/annotated/08-confirm-draft.png29.3 KB
- 参考文档screenshots/assisted/browserfilm.json1.6 KB
- 资产文件screenshots/assisted/copilot-assisted-contact-sheet.jpg205.6 KB
- 资产文件screenshots/assisted/copilot-assisted-walkthrough.gif1.1 MB
- 参考文档screenshots/assisted/README.md467 B
- 资产文件screenshots/manual/01-create-blank-agent.jpg57.7 KB
- 资产文件screenshots/manual/02-name-agent.jpg57.3 KB
- 资产文件screenshots/manual/03-enter-instructions.jpg131.9 KB
- 资产文件screenshots/manual/04-save-instructions.jpg133.5 KB
- 资产文件screenshots/manual/05-remove-web-search.jpg131.5 KB
- 资产文件screenshots/manual/06-add-aibast-staffing-territory-planning-rules-and-guardrails.jpg133.8 KB
- 资产文件screenshots/manual/07-add-aibast-staffing-territory-planning-synthetic-records.jpg136.8 KB
- 资产文件screenshots/manual/08-add-aibast-competitive-landscape-04.jpg139.7 KB
- 资产文件screenshots/manual/09-add-aibast-coverage-gaps-03.jpg141.0 KB
- 资产文件screenshots/manual/10-add-aibast-labor-trends-05.jpg142.3 KB
- 资产文件screenshots/manual/11-add-aibast-market-sizing-02.jpg143.5 KB
- 资产文件screenshots/manual/12-add-aibast-territory-plan-06.jpg144.7 KB
- 资产文件screenshots/manual/13-add-aibast-territory-snapshot-01.jpg144.8 KB
- 资产文件screenshots/manual/14-review-inventory.jpg144.7 KB
- 资产文件screenshots/manual/15-review-skills.jpg134.8 KB
- 资产文件screenshots/manual/16-review-skills-more.jpg136.6 KB
- 资产文件screenshots/manual/17-open-preview.jpg31.7 KB
- 资产文件screenshots/manual/18-stp-01.jpg93.0 KB
- 资产文件screenshots/manual/19-stp-02.jpg124.4 KB
- 资产文件screenshots/manual/20-stp-03.jpg107.1 KB
- 资产文件screenshots/manual/21-stp-04.jpg129.0 KB
- 资产文件screenshots/manual/22-stp-05.jpg99.6 KB
- 资产文件screenshots/manual/23-stp-06.jpg116.3 KB
- 资产文件screenshots/manual/24-confirm-draft.jpg28.5 KB
- 资产文件screenshots/manual/annotated/01-create-blank-agent.png62.7 KB
- 资产文件screenshots/manual/annotated/02-name-agent.png63.1 KB
- 资产文件screenshots/manual/annotated/03-enter-instructions.png134.6 KB
- 资产文件screenshots/manual/annotated/04-save-instructions.png132.8 KB
- 资产文件screenshots/manual/annotated/05-remove-web-search.png133.9 KB
- 资产文件screenshots/manual/annotated/06-add-aibast-staffing-territory-planning-rules-and-guardrails.png137.7 KB
- 资产文件screenshots/manual/annotated/07-add-aibast-staffing-territory-planning-synthetic-records.png140.1 KB
- 资产文件screenshots/manual/annotated/08-add-aibast-competitive-landscape-04.png140.6 KB
- 资产文件screenshots/manual/annotated/09-add-aibast-coverage-gaps-03.png141.2 KB
- 资产文件screenshots/manual/annotated/10-add-aibast-labor-trends-05.png142.4 KB
- 资产文件screenshots/manual/annotated/11-add-aibast-market-sizing-02.png143.4 KB
- 资产文件screenshots/manual/annotated/12-add-aibast-territory-plan-06.png144.6 KB
- 资产文件screenshots/manual/annotated/13-add-aibast-territory-snapshot-01.png145.1 KB
- 资产文件screenshots/manual/annotated/14-review-inventory.png154.2 KB
- 资产文件screenshots/manual/annotated/15-review-skills.png148.7 KB
- 资产文件screenshots/manual/annotated/16-review-skills-more.png154.6 KB
- 资产文件screenshots/manual/annotated/17-open-preview.png31.2 KB
- 资产文件screenshots/manual/annotated/18-stp-01.png94.9 KB
- 资产文件screenshots/manual/annotated/19-stp-02.png127.5 KB
- 资产文件screenshots/manual/annotated/20-stp-03.png105.3 KB
- 资产文件screenshots/manual/annotated/21-stp-04.png130.5 KB
- 资产文件screenshots/manual/annotated/22-stp-05.png102.6 KB
- 资产文件screenshots/manual/annotated/23-stp-06.png122.2 KB
- 资产文件screenshots/manual/annotated/24-confirm-draft.png29.2 KB
- 参考文档screenshots/manual/browserfilm.json4.3 KB
- 资产文件screenshots/manual/manual-build-contact-sheet.jpg846.1 KB
- 资产文件screenshots/manual/manual-build-walkthrough.gif5.4 MB
- 参考文档screenshots/manual/README.md461 B
- 参考文档screenshots/README.md521 B
03 SKILL.md 正文
Context
When APIs or public interfaces change, tests must be updated in the same commit. When test assertions reference file counts or expected arrays, they must be kept in sync with disk reality. Stale tests block CI for other contributors.
Patterns
- API changes → test updates (same commit): If you change a function signature, public interface, or exported API, update the corresponding tests before committing
- Test assertions → disk reality: When test files contain expected counts (e.g.,
EXPECTED_FEATURES,EXPECTED_SCENARIOS), they must match the actual files on disk - Add files → update assertions: When adding docs pages, features, or any counted resource, update the test assertion array in the same commit
- CI failures → check assertions first: Before debugging complex failures, verify test assertion arrays match filesystem state
Examples
✓ Correct:
- Changed auth API signature → updated auth.test.ts in same commit
- Added
distributed-mesh.mdto features/ → added'distributed-mesh'to EXPECTED_FEATURES array - Deleted two scenario files → removed entries from EXPECTED_SCENARIOS
✗ Incorrect:
- Changed spawn parameters → committed without updating casting.test.ts (CI breaks for next person)
- Added
built-in-roles.md→ left EXPECTED_FEATURES at old count (PR blocked) - Test says "expected 7 files" but disk has 25 (assertion staleness)
Anti-Patterns
- Committing API changes without test updates ("I'll fix tests later")
- Treating test assertion arrays as static (they evolve with content)
- Assuming CI passing means coverage is correct (stale assertions can pass while being wrong)
- Leaving gaps for other agents to discover
04 同仓库更多 Skills
{skill-name}
{what this skill teaches agents}
azd-seed-hook
暂无简介
{skill-name}
{what this skill teaches agents}
tiered-memory
Three-tier agent memory model (hot/cold/wiki) for context reduction per spawn
test-discipline
Update tests when changing APIs — no exceptions
squad
Squad's command catalog and interactive menu. Invoke via /squad (slash command) or natural language ("squad commands", "what can squad do", "show me squad options"). Presents categorized operations (Install & Upgrade, Team Management, Issues & PRs, Plugins & Skills, Model & Cost, Sessions & State) as an interactive picker. Routes to the right squad CLI command or the Squad coordinator agent.