sovereign-integration / workflows /agent-build-deploy.yaml
Codexcoder's picture
integration: add workflows/agent-build-deploy.yaml
49439f4 verified
Raw History Blame Contribute Delete
1.1 kB
# 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