编辑 | blame | 历史 | 原始文档

---
name: ai-agent-system-validate

description: Validate a repository Agent Team against the suite contracts, schemas, runtime policies, ownership rules, and project evidence. Use as the read-only validation phase of ai-agent-system-bootstrap or standalone to report structural and semantic defects without repairing files.

AI Agent System Validate

Validate rendered output without changing it. Return evidence, not repairs.

Required suite material

Read:

Validation

Resolve <suite-root> from this SKILL.md location and invoke the resulting absolute script path. The target repository working directory is not the suite root.

For bootstrap-candidate scope, require the BootstrapRun, ProjectSnapshot, SystemBlueprint, and RenderResult with matching IDs. Validate BootstrapRun.repository_root. Return blocked when any input is absent or inconsistent.

1. Run structural validation

Run:

python <suite-root>/shared/scripts/validate-structure.py --root <repository-root> --json

Account for every reported error and warning. Structural errors block successful completion.

Completion criterion: the script exits and its complete result is captured in the report.

2. Validate semantics

Check all of these surfaces:

  • generated components trace to current ProjectSnapshot evidence or declared assumptions
  • the Agent set is smallest complete: every responsibility domain has a justified disposition, responsibilities do not overlap, and no general Agent is overloaded across independently judged domains
  • Agent-role existence was decided independently from inline/SubAgent execution cost
  • exactly one primary Agent owns integration and completion
  • role selection and execution-thread selection are separate decisions
  • workflow graphs are acyclic and gates protect stable inputs, integration, and final review
  • concurrent writers have disjoint scopes and shared files have one owner
  • SubAgents are used only for bounded work with structured returns
  • review, QA, security, and exploration Agents are read-only by default
  • sequential inline fallback exists when SubAgents or worktrees are unavailable
  • global-Skill opt-in language is scoped to the generated team runtime
  • every project-local Skill is under .ai/skills, with no .agent or .agents output
  • orchestration essentials exist at every level and separate policy files match the evidenced orchestration level
  • the complete .ai ownership rule and managed AGENTS.md markers are consistent
  • every RenderResult file and hash matches the managed repository output
  • every applicable original capability in the behavior map has an implemented, traceable generated surface

Completion criterion: every semantic check has a pass, warning, or error with file/path evidence.

3. Decide status

Use only:

  • passed: no errors or warnings
  • passed-with-warnings: no errors and at least one warning
  • blocked: required evidence or safe ownership is unavailable
  • failed: structural or semantic requirements are violated

Return a ValidationReport with a final decision. Do not edit files, invoke Render, or silently waive warnings.

Completion criterion: the report accounts for every finding and identifies the exact gate that permits or blocks successful completion.

For standalone installed-team validation, set report scope to installed-standalone, allow absent input blueprint and render-result IDs, derive validated IDs from the strict installed manifest, and use final_decision: report-only. Skip only traceability checks that require unavailable bootstrap artifacts; mark each skipped check not-applicable.