一键导入
validate-tests
Check that all required test tiers have been run for the current changes. Use after making code changes and before committing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check that all required test tiers have been run for the current changes. Use after making code changes and before committing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run ASOPB evaluation with credential routing, build context sync, and baseline comparison
Walk the full ADEPT Code Hygiene Quick Reference Card checklist and report PASS/FAIL/N-A for each item. Use as a final check before pushing.
Full task closure workflow -- runs test validation, session report, tracking doc updates, commit preparation, and hygiene audit in sequence. Use at the end of a development session. Pass an optional title hint as argument.
Configure Claude Code to connect to an ADEPT instance (local Docker stack or remote server). Generates .mcp.json, runs doctor check, verifies connectivity. Use when setting up or switching between ADEPT instances.
Guided workflow to deploy ADEPT on cloud infrastructure (AWS, Azure, or GCP) as a single VM or A2A mesh pair. Covers provisioning, OS prep, stack deployment, and optional A2A federation between two independently-deployed stacks.
Add a new tool to an existing MCP server following the canonical register(mcp) + Pydantic pattern. Use during Phase 4 (Implement) of the feature development lifecycle.
| name | validate-tests |
| description | Check that all required test tiers have been run for the current changes. Use after making code changes and before committing. |
| disable-model-invocation | true |
| allowed-tools | Bash(make validate*) Bash(git *) Bash(ls *) Bash(stat *) Read Glob Grep |
You are assisting an ADEPT developer with test validation before committing.
Do not use emojis in any output.
Enforce all rules in docs/development/AGENT_CODING_RULES.md throughout this skill execution.
# Build lint-tools image if missing (fast no-op if already built)
docker images agentic-framework-lint-tools:latest --format "{{.ID}}" | grep -q . || make build-lint-tools
If the image does not exist, build it before proceeding. This is required for Docker-based linting targets (make lint-dead-code).
Read docs/development/CODE_HYGIENE.md Section 3 (Testing Strategy Before Commits) to understand the current testing tiers, mandatory execution patterns, and the adept_connectors "all tiers mandatory" policy. Also read docs/testing/DOCKER_TEST_EXECUTION_REFERENCE.md for container execution patterns and credential injection (6 validated patterns including Makefile targets, ephemeral venvs, .env injection, and credentials directory mounts).
Run these commands to understand the scope of changes:
git diff --name-only
git diff --cached --name-only
git diff --stat
Classify the change type based on file paths:
src/ = code change (unit tests mandatory)src/ = cross-component (integration tests required)agent_gateway/ = API change (E2E tests required)examples/adept_connectors/ = connector change (ALL 4 tiers mandatory per Section 3.6)examples/*_mcp_server/ = external stack (re-registration may be needed)scripts/release/scan_*.py or scripts/release/compensating_controls.py = scanner tools (unit tests in scripts/release/tests/)docs/ = docs-only (no test tiers needed)Look in the logs/ directory for timestamped test log files. For each required tier, check:
stat on both the log and the changed source files to compare.)Flag any log files that are older than the code changes as stale evidence.
Present a table:
| Tier | Required | Evidence | Status |
|--------------|----------|------------------|-----------|
| Unit | Yes/No | logs/file or N/A | PASS/MISSING/STALE |
| Integration | Yes/No | logs/file or N/A | PASS/MISSING/STALE |
| E2E | Yes/No | logs/file or N/A | PASS/MISSING/STALE |
| UAT | Yes/No | logs/file or N/A | PASS/MISSING/STALE |
| Contract | Yes/No | logs/file or N/A | PASS/MISSING/STALE |
MANDATORY for any changes under src/. Running unit tests against read-only mounts validates syntax but NOT runtime behavior -- the service containers must be rebuilt so that integration and E2E tests exercise the actual deployed code.
Check whether affected service containers need rebuilding by mapping changed source paths to services:
| Source path prefix | Service | Rebuild command |
|---|---|---|
src/agentic_framework_pkg/orchestration_service/ | orchestration_service | make rebuild-orchestrator |
src/agentic_framework_pkg/agent_gateway/ | agent_gateway | make rebuild-gateway |
src/agentic_framework_pkg/gateway_registry/ | gateway_registry | make rebuild-registry |
src/agentic_framework_pkg/mcp_server/ | mcp_server | make rebuild-mcp |
src/agentic_framework_pkg/hpc_mcp_server/ | hpc_mcp_server | make rebuild-hpc-mcp |
src/agentic_framework_pkg/sandbox_mcp_server/ | sandbox_mcp_server | make rebuild-sandbox-mcp |
src/agentic_framework_pkg/core/ | orchestration_service (+ all MCP servers) | make rebuild-orchestrator (minimum) |
src/agentic_framework_sdk/ | No container (SDK is client-side) | N/A |
Verify the container image is newer than the source changes:
# Check container image creation time vs source file modification time
docker inspect --format='{{.Created}}' <container_name>
stat --format='%Y' <changed_source_file>
If the container image predates the source changes, flag it:
WARNING: <service> container was built BEFORE the latest source changes.
Run: make rebuild-<service>
Do NOT report test validation as complete if affected containers are stale.
For any MISSING or STALE tiers, provide the exact nohup + make commands to run, following the pattern from CODE_HYGIENE.md Section 3.2:
mkdir -p logs && nohup make validate-<target> \
> logs/<scope>_<tier>_$(date +%Y%m%d_%H%M%S).log 2>&1 &
Also check:
scripts/release/scan_*.py or compensating_controls.py changed, run their unit tests:
mkdir -p logs && nohup conda run -n adept-session pytest scripts/release/tests/ -v \
> logs/scanner_unit_$(date +%Y%m%d_%H%M%S).log 2>&1 &
For docs-only changes, confirm that no test tiers are needed and the developer can proceed to commit.