Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Infrastructure for Agents

Free · sign in to start and track progress

1 · Compute and execution

  • 1Where agents run
  • 2Sandboxes for agent code
  • 3Durable execution engines
  • 4Queues, schedules and background jobs

2 · State, access and delivery

  • 5State, sessions and checkpoints
  • 6Secrets, identity and tenant isolation
  • 7AI gateways
  • 8Environments and delivery for agents

    Exercise answers

    • Answer: Build a paired eval gate for CI
    • Answer: Roll out a prompt by matter, with shadow runs
CapstoneA production platform slice for one agentReference implementation

Module 2 · State, access and delivery · Lesson 8

Environments and delivery for agents

Shipping a prompt, model or gateway change to a fleet with hundreds of cases in flight. What a release contains, preview environments with database branches and capped keys, eval gates in CI and how much they can detect, gradual rollouts by customer and case, and what happens to work already running.

75 min 1 video 3 exercises 7-question quiz Answers
Setup for the exercises:Install Claude CodePython with uvRun evals in GitHub Actions

By the end of this lesson you can

  • Define an agent release as code, prompts, model IDs, tool schemas and gateway config, versioned together
  • Build a preview environment per pull request with a database branch, a capped gateway key and isolated queues and workflows
  • Compute what an eval gate can and cannot detect, and write gate rules that block real regressions
  • Plan a gradual rollout for agents that aren't driven by browser traffic, using flags, shadow runs and rolling releases
  • Decide what happens to in-flight workflows and queued messages on deploy and on rollback

On this page

  • Intuition: changing a precedent
  • What a release contains
  • Environments
  • The eval gate
  • Worked example: how sensitive is a 200-case gate?
  • Gradual rollout
  • Work in flight
  • Misconceptions and limits
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Intuition: changing a precedent
  2. 02What a release contains
  3. 03Environments
  4. 04The eval gate
  5. 05Gradual rollout
  6. 06Work in flight
  7. 07Misconceptions and limits
  8. 08Connections
  9. 09Summary

Sources & further reading

  • Adding Error Bars to Evals: A Statistical Approach to Language Model EvaluationsPaper · Evan Miller · Anthropic · 2024How to compute standard errors for eval scores, why paired comparisons on the same questions are far more sensitive than comparing two independent means, and how to size an eval. The statistical basis for the gate in this lesson.
  • (Why) Is My Prompt Getting Worse? Rethinking Regression Testing for Evolving LLM APIsPaper · Ma, Yang, Kästner · Carnegie Mellon University · 2023CAIN 2024. Shows that model API updates silently regress prompts and argues that regression testing for LLM applications needs different methods from traditional tests. Motivates treating model and prompt changes as releases.
  • Environments (Vercel)Docs · VercelLocal, Preview and Production environments, custom environments for staging, per-environment variables and staged production deployments that wait for manual promotion.
  • Rolling ReleasesDocs · VercelStaged traffic shifts with client buckets stored in a cookie, abort and instant rollback, start and complete endpoints for CI, and why Skew Protection should be on.
  • Workflow concepts (Skew Protection)Docs · VercelRuns stay on the deployment that created them; a rollback doesn't stop runs on the old deployment, and runs on a deleted deployment never finish on their own, so cancel them. Essential for planning releases of long-running agents.
  • Neon branchingDocs · NeonCopy-on-write database branches, including a branch per Vercel preview deployment through the Neon-managed integration, and reset or restore within the history window.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 9 more sections
  • 3 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks