Dev → Test → Promote
Lifecycle
Section titled “Lifecycle”create → dev → test → promoteStart the agent against the local control plane:
mesh dev my-agentThe agent registers on the mesh, discovers tools, and is ready to receive calls. Other agents can find it via discovery.
Run validation checks:
mesh test my-agentChecks: schema validity, Python imports, required files, manifest completeness.
Promote
Section titled “Promote”Deploy to the target mesh:
mesh promote my-agent --dry-run # Preview firstmesh promote my-agent # Copy + auto-startPromotion:
- Validates all checks pass
- Bumps the version (1.0.0 → 1.0.1)
- Snapshots the agent files for rollback
- Copies to the target mesh directory
- Auto-starts the agent on the control plane
Versioning
Section titled “Versioning”Each promotion bumps the patch version and saves a snapshot:
agents/my_agent/.versions/ 1.0.1/ # Snapshot of promoted files 1.0.2/ # Next promotionRollback to any version:
curl -X POST localhost:8100/agents/my-agent/rollback/1.0.1Dirty State
Section titled “Dirty State”| State | Meaning |
|---|---|
unpromoted | Agent exists in dev but never promoted |
files_changed | Dev copy differs from promoted |
clean | Dev matches promoted |