CI/CD & Agent Lifecycle Best Practices
Ten practices for shipping agent changes safely and reversibly - plus operating checks so prompt, model, and tool updates do not become unbisectable incidents.
Search across all documentation pages
Ten practices for shipping agent changes safely and reversibly - plus operating checks so prompt, model, and tool updates do not become unbisectable incidents.
Use them as a design rubric for the release train and as a go-live checklist before continuous deployment of behavior packs.
code_sha with pack versions on every release. Immutability after ship is mandatory.Items 1-10 are the core shipping practices. Items 11-15 extend them into incident recovery and long-term hygiene so the list stays useful after the first launch.
Immutable versioned pins logged on every run (practices 1-3). Everything else depends on knowing what ran.
No. LangGraph, CrewAI, OpenAI Agents SDK, Pydantic AI, and custom runtimes all need pins, evals, and rollback. Frameworks do not replace the release discipline (verify versions at build).
Still gate safety and smoke quality. Loosen product-tone thresholds only in non-prod projects with no prod credentials.
Only for the lowest blast radius (draft-only, internal, no tools). Tools, money, or external send require progressive exposure.
Platform: pipeline, flag service, pin store, rollback plumbing. Agent team: gold sets, thresholds, go/no-go on quality, pack content.
Each override needs a version ID, owner, and eval subset. Never let one tenant's hot edit become the global default path.
Branch protection requires the eval job, and a deliberately broken pack PR fails the check in CI logs.
At least quarterly, and after any change to pin storage or flag plumbing.
They are dependency incidents. Still use model-route flags and fallbacks; postmortems should separate provider fail from your pin fail.
Pin scorers, retry only transport errors, quarantine flaky cases with owners, and keep a deterministic core gate.
In the section sidebar as the close-out checklist, and from ADRs or runbooks that introduce new agent products or CD automation.
Stack versions: Pins from the category manifest (verify at build): OpenRouter (~315+ models, July 2026 pricing/fees); LangGraph 1.0+; CrewAI 1.14+; Microsoft Agent Framework 1.0; Vercel AI SDK 6; Pydantic AI (latest); LlamaIndex (latest); OpenAI Agents SDK (latest + MCP); MCP (Linux Foundation governance); A2A (HTTP+SSE+JSON-RPC 2.0); Solana
@solana/web3.js+@solana/spl-token.
Reviewed by Chris St. John·Last updated Jul 16, 2026