# Workflow: agent-build-deploy — build, validate, test, stage, deploy agents id: agent-build-deploy-cycle name: Agent Build & Deployment Cycle description: > Build all agent definitions → validate registry cross-references → run the fast test suite → stage artifact manifest → deploy guarded (site + HF datasets via the repo release pipeline). trigger: manual/manual.yaml stages: - id: build run: python3 scripts/build_agents.py --json > artifacts/agent-manifest.json gate: manifest.status == PASS - id: validate run: python3 scripts/verify_registries.py gate: exit 0 - id: test run: .venv/bin/pytest tests/ -q --ignore=tests/test_72h_closed_loop.py gate: exit 0 - id: stage run: python3 scripts/production_check.py gate: status == PASS - id: deploy description: guarded rollout — site pages + datasets; requires human approval approval: chamber actions: - git push origin main - upload scripts (kyrexis/pec5d datasets) when HF_TOKEN present rollback: - git revert HEAD - restore previous dataset revisions